1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.64 for RapptureGUI 1.1. |
---|
4 | # |
---|
5 | # Report bugs to <rappture@nanohub.org>. |
---|
6 | # |
---|
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
---|
9 | # Foundation, Inc. |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | ## -------------------- ## |
---|
14 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | as_nl=' |
---|
37 | ' |
---|
38 | export as_nl |
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
44 | # but without wasting forks for bash or zsh. |
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
47 | as_echo='print -r --' |
---|
48 | as_echo_n='print -rn --' |
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
50 | as_echo='printf %s\n' |
---|
51 | as_echo_n='printf %s' |
---|
52 | else |
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
55 | as_echo_n='/usr/ucb/echo -n' |
---|
56 | else |
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
58 | as_echo_n_body='eval |
---|
59 | arg=$1; |
---|
60 | case $arg in #( |
---|
61 | *"$as_nl"*) |
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
64 | esac; |
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
66 | ' |
---|
67 | export as_echo_n_body |
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
69 | fi |
---|
70 | export as_echo_body |
---|
71 | as_echo='sh -c $as_echo_body as_echo' |
---|
72 | fi |
---|
73 | |
---|
74 | # The user is always right. |
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
76 | PATH_SEPARATOR=: |
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
79 | PATH_SEPARATOR=';' |
---|
80 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | # IFS |
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
86 | # there to prevent editors from complaining about space-tab. |
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
88 | # splitting by setting IFS to empty value.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | case $0 in #(( |
---|
93 | *[\\/]* ) as_myself=$0 ;; |
---|
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
95 | for as_dir in $PATH |
---|
96 | do |
---|
97 | IFS=$as_save_IFS |
---|
98 | test -z "$as_dir" && as_dir=. |
---|
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
100 | done |
---|
101 | IFS=$as_save_IFS |
---|
102 | |
---|
103 | ;; |
---|
104 | esac |
---|
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
106 | # in which case we are not to be found in the path. |
---|
107 | if test "x$as_myself" = x; then |
---|
108 | as_myself=$0 |
---|
109 | fi |
---|
110 | if test ! -f "$as_myself"; then |
---|
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
112 | exit 1 |
---|
113 | fi |
---|
114 | |
---|
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
117 | # suppresses any "Segmentation fault" message there. '((' could |
---|
118 | # trigger a bug in pdksh 5.2.14. |
---|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
120 | do eval test x\${$as_var+set} = xset \ |
---|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
122 | done |
---|
123 | PS1='$ ' |
---|
124 | PS2='> ' |
---|
125 | PS4='+ ' |
---|
126 | |
---|
127 | # NLS nuisances. |
---|
128 | LC_ALL=C |
---|
129 | export LC_ALL |
---|
130 | LANGUAGE=C |
---|
131 | export LANGUAGE |
---|
132 | |
---|
133 | # CDPATH. |
---|
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
135 | |
---|
136 | if test "x$CONFIG_SHELL" = x; then |
---|
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
138 | emulate sh |
---|
139 | NULLCMD=: |
---|
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
141 | # is contrary to our usage. Disable this feature. |
---|
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
143 | setopt NO_GLOB_SUBST |
---|
144 | else |
---|
145 | case \`(set -o) 2>/dev/null\` in #( |
---|
146 | *posix*) : |
---|
147 | set -o posix ;; #( |
---|
148 | *) : |
---|
149 | ;; |
---|
150 | esac |
---|
151 | fi |
---|
152 | " |
---|
153 | as_required="as_fn_return () { (exit \$1); } |
---|
154 | as_fn_success () { as_fn_return 0; } |
---|
155 | as_fn_failure () { as_fn_return 1; } |
---|
156 | as_fn_ret_success () { return 0; } |
---|
157 | as_fn_ret_failure () { return 1; } |
---|
158 | |
---|
159 | exitcode=0 |
---|
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
165 | |
---|
166 | else |
---|
167 | exitcode=1; echo positional parameters were not saved. |
---|
168 | fi |
---|
169 | test x\$exitcode = x0 || exit 1" |
---|
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
174 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
175 | if (eval "$as_required") 2>/dev/null; then : |
---|
176 | as_have_required=yes |
---|
177 | else |
---|
178 | as_have_required=no |
---|
179 | fi |
---|
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
181 | |
---|
182 | else |
---|
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
184 | as_found=false |
---|
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
186 | do |
---|
187 | IFS=$as_save_IFS |
---|
188 | test -z "$as_dir" && as_dir=. |
---|
189 | as_found=: |
---|
190 | case $as_dir in #( |
---|
191 | /*) |
---|
192 | for as_base in sh bash ksh sh5; do |
---|
193 | # Try only shells that exist, to save several forks. |
---|
194 | as_shell=$as_dir/$as_base |
---|
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
197 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
199 | break 2 |
---|
200 | fi |
---|
201 | fi |
---|
202 | done;; |
---|
203 | esac |
---|
204 | as_found=false |
---|
205 | done |
---|
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
208 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
209 | fi; } |
---|
210 | IFS=$as_save_IFS |
---|
211 | |
---|
212 | |
---|
213 | if test "x$CONFIG_SHELL" != x; then : |
---|
214 | # We cannot yet assume a decent shell, so we have to provide a |
---|
215 | # neutralization value for shells without unset; and this also |
---|
216 | # works around shells that cannot unset nonexistent variables. |
---|
217 | BASH_ENV=/dev/null |
---|
218 | ENV=/dev/null |
---|
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
220 | export CONFIG_SHELL |
---|
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
222 | fi |
---|
223 | |
---|
224 | if test x$as_have_required = xno; then : |
---|
225 | $as_echo "$0: This script requires a shell more modern than all" |
---|
226 | $as_echo "$0: the shells that I found on your system." |
---|
227 | if test x${ZSH_VERSION+set} = xset ; then |
---|
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
230 | else |
---|
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
232 | $0: rappture@nanohub.org about your system, including any |
---|
233 | $0: error possibly output before this message. Then install |
---|
234 | $0: a modern shell, or manually run the script under such a |
---|
235 | $0: shell if you do have one." |
---|
236 | fi |
---|
237 | exit 1 |
---|
238 | fi |
---|
239 | fi |
---|
240 | fi |
---|
241 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
242 | export SHELL |
---|
243 | # Unset more variables known to interfere with behavior of common tools. |
---|
244 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
245 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
246 | |
---|
247 | ## --------------------- ## |
---|
248 | ## M4sh Shell Functions. ## |
---|
249 | ## --------------------- ## |
---|
250 | # as_fn_unset VAR |
---|
251 | # --------------- |
---|
252 | # Portably unset VAR. |
---|
253 | as_fn_unset () |
---|
254 | { |
---|
255 | { eval $1=; unset $1;} |
---|
256 | } |
---|
257 | as_unset=as_fn_unset |
---|
258 | |
---|
259 | # as_fn_set_status STATUS |
---|
260 | # ----------------------- |
---|
261 | # Set $? to STATUS, without forking. |
---|
262 | as_fn_set_status () |
---|
263 | { |
---|
264 | return $1 |
---|
265 | } # as_fn_set_status |
---|
266 | |
---|
267 | # as_fn_exit STATUS |
---|
268 | # ----------------- |
---|
269 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
270 | as_fn_exit () |
---|
271 | { |
---|
272 | set +e |
---|
273 | as_fn_set_status $1 |
---|
274 | exit $1 |
---|
275 | } # as_fn_exit |
---|
276 | |
---|
277 | # as_fn_mkdir_p |
---|
278 | # ------------- |
---|
279 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
280 | as_fn_mkdir_p () |
---|
281 | { |
---|
282 | |
---|
283 | case $as_dir in #( |
---|
284 | -*) as_dir=./$as_dir;; |
---|
285 | esac |
---|
286 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
287 | as_dirs= |
---|
288 | while :; do |
---|
289 | case $as_dir in #( |
---|
290 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
291 | *) as_qdir=$as_dir;; |
---|
292 | esac |
---|
293 | as_dirs="'$as_qdir' $as_dirs" |
---|
294 | as_dir=`$as_dirname -- "$as_dir" || |
---|
295 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
296 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
297 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
298 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
299 | $as_echo X"$as_dir" | |
---|
300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
301 | s//\1/ |
---|
302 | q |
---|
303 | } |
---|
304 | /^X\(\/\/\)[^/].*/{ |
---|
305 | s//\1/ |
---|
306 | q |
---|
307 | } |
---|
308 | /^X\(\/\/\)$/{ |
---|
309 | s//\1/ |
---|
310 | q |
---|
311 | } |
---|
312 | /^X\(\/\).*/{ |
---|
313 | s//\1/ |
---|
314 | q |
---|
315 | } |
---|
316 | s/.*/./; q'` |
---|
317 | test -d "$as_dir" && break |
---|
318 | done |
---|
319 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
320 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
---|
321 | |
---|
322 | |
---|
323 | } # as_fn_mkdir_p |
---|
324 | # as_fn_append VAR VALUE |
---|
325 | # ---------------------- |
---|
326 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
327 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
328 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
329 | # implementations. |
---|
330 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
331 | eval 'as_fn_append () |
---|
332 | { |
---|
333 | eval $1+=\$2 |
---|
334 | }' |
---|
335 | else |
---|
336 | as_fn_append () |
---|
337 | { |
---|
338 | eval $1=\$$1\$2 |
---|
339 | } |
---|
340 | fi # as_fn_append |
---|
341 | |
---|
342 | # as_fn_arith ARG... |
---|
343 | # ------------------ |
---|
344 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
345 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
346 | # must be portable across $(()) and expr. |
---|
347 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
348 | eval 'as_fn_arith () |
---|
349 | { |
---|
350 | as_val=$(( $* )) |
---|
351 | }' |
---|
352 | else |
---|
353 | as_fn_arith () |
---|
354 | { |
---|
355 | as_val=`expr "$@" || test $? -eq 1` |
---|
356 | } |
---|
357 | fi # as_fn_arith |
---|
358 | |
---|
359 | |
---|
360 | # as_fn_error ERROR [LINENO LOG_FD] |
---|
361 | # --------------------------------- |
---|
362 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
363 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
364 | # script with status $?, using 1 if that was 0. |
---|
365 | as_fn_error () |
---|
366 | { |
---|
367 | as_status=$?; test $as_status -eq 0 && as_status=1 |
---|
368 | if test "$3"; then |
---|
369 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
370 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
---|
371 | fi |
---|
372 | $as_echo "$as_me: error: $1" >&2 |
---|
373 | as_fn_exit $as_status |
---|
374 | } # as_fn_error |
---|
375 | |
---|
376 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
377 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
378 | as_expr=expr |
---|
379 | else |
---|
380 | as_expr=false |
---|
381 | fi |
---|
382 | |
---|
383 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
384 | as_basename=basename |
---|
385 | else |
---|
386 | as_basename=false |
---|
387 | fi |
---|
388 | |
---|
389 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
390 | as_dirname=dirname |
---|
391 | else |
---|
392 | as_dirname=false |
---|
393 | fi |
---|
394 | |
---|
395 | as_me=`$as_basename -- "$0" || |
---|
396 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
397 | X"$0" : 'X\(//\)$' \| \ |
---|
398 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
399 | $as_echo X/"$0" | |
---|
400 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
401 | s//\1/ |
---|
402 | q |
---|
403 | } |
---|
404 | /^X\/\(\/\/\)$/{ |
---|
405 | s//\1/ |
---|
406 | q |
---|
407 | } |
---|
408 | /^X\/\(\/\).*/{ |
---|
409 | s//\1/ |
---|
410 | q |
---|
411 | } |
---|
412 | s/.*/./; q'` |
---|
413 | |
---|
414 | # Avoid depending upon Character Ranges. |
---|
415 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
416 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
417 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
418 | as_cr_digits='0123456789' |
---|
419 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
420 | |
---|
421 | |
---|
422 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
423 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
424 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
425 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
426 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
427 | sed -n ' |
---|
428 | p |
---|
429 | /[$]LINENO/= |
---|
430 | ' <$as_myself | |
---|
431 | sed ' |
---|
432 | s/[$]LINENO.*/&-/ |
---|
433 | t lineno |
---|
434 | b |
---|
435 | :lineno |
---|
436 | N |
---|
437 | :loop |
---|
438 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
439 | t loop |
---|
440 | s/-\n.*// |
---|
441 | ' >$as_me.lineno && |
---|
442 | chmod +x "$as_me.lineno" || |
---|
443 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
444 | |
---|
445 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
446 | # (the dirname of $[0] is not the place where we might find the |
---|
447 | # original and so on. Autoconf is especially sensitive to this). |
---|
448 | . "./$as_me.lineno" |
---|
449 | # Exit status is that of the last command. |
---|
450 | exit |
---|
451 | } |
---|
452 | |
---|
453 | ECHO_C= ECHO_N= ECHO_T= |
---|
454 | case `echo -n x` in #((((( |
---|
455 | -n*) |
---|
456 | case `echo 'xy\c'` in |
---|
457 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
458 | xy) ECHO_C='\c';; |
---|
459 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
460 | ECHO_T=' ';; |
---|
461 | esac;; |
---|
462 | *) |
---|
463 | ECHO_N='-n';; |
---|
464 | esac |
---|
465 | |
---|
466 | rm -f conf$$ conf$$.exe conf$$.file |
---|
467 | if test -d conf$$.dir; then |
---|
468 | rm -f conf$$.dir/conf$$.file |
---|
469 | else |
---|
470 | rm -f conf$$.dir |
---|
471 | mkdir conf$$.dir 2>/dev/null |
---|
472 | fi |
---|
473 | if (echo >conf$$.file) 2>/dev/null; then |
---|
474 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
475 | as_ln_s='ln -s' |
---|
476 | # ... but there are two gotchas: |
---|
477 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
478 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
479 | # In both cases, we have to default to `cp -p'. |
---|
480 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
481 | as_ln_s='cp -p' |
---|
482 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
483 | as_ln_s=ln |
---|
484 | else |
---|
485 | as_ln_s='cp -p' |
---|
486 | fi |
---|
487 | else |
---|
488 | as_ln_s='cp -p' |
---|
489 | fi |
---|
490 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
491 | rmdir conf$$.dir 2>/dev/null |
---|
492 | |
---|
493 | if mkdir -p . 2>/dev/null; then |
---|
494 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
495 | else |
---|
496 | test -d ./-p && rmdir ./-p |
---|
497 | as_mkdir_p=false |
---|
498 | fi |
---|
499 | |
---|
500 | if test -x / >/dev/null 2>&1; then |
---|
501 | as_test_x='test -x' |
---|
502 | else |
---|
503 | if ls -dL / >/dev/null 2>&1; then |
---|
504 | as_ls_L_option=L |
---|
505 | else |
---|
506 | as_ls_L_option= |
---|
507 | fi |
---|
508 | as_test_x=' |
---|
509 | eval sh -c '\'' |
---|
510 | if test -d "$1"; then |
---|
511 | test -d "$1/."; |
---|
512 | else |
---|
513 | case $1 in #( |
---|
514 | -*)set "./$1";; |
---|
515 | esac; |
---|
516 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
517 | ???[sx]*):;;*)false;;esac;fi |
---|
518 | '\'' sh |
---|
519 | ' |
---|
520 | fi |
---|
521 | as_executable_p=$as_test_x |
---|
522 | |
---|
523 | # Sed expression to map a string onto a valid CPP name. |
---|
524 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
525 | |
---|
526 | # Sed expression to map a string onto a valid variable name. |
---|
527 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
528 | |
---|
529 | |
---|
530 | exec 7<&0 </dev/null 6>&1 |
---|
531 | |
---|
532 | # Name of the host. |
---|
533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
534 | # so uname gets run too. |
---|
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
536 | |
---|
537 | # |
---|
538 | # Initializations. |
---|
539 | # |
---|
540 | ac_default_prefix=/usr/local |
---|
541 | ac_clean_files= |
---|
542 | ac_config_libobj_dir=. |
---|
543 | LIBOBJS= |
---|
544 | cross_compiling=no |
---|
545 | subdirs= |
---|
546 | MFLAGS= |
---|
547 | MAKEFLAGS= |
---|
548 | |
---|
549 | # Identity of this package. |
---|
550 | PACKAGE_NAME='RapptureGUI' |
---|
551 | PACKAGE_TARNAME='rappturegui' |
---|
552 | PACKAGE_VERSION='1.1' |
---|
553 | PACKAGE_STRING='RapptureGUI 1.1' |
---|
554 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
555 | PACKAGE_URL='' |
---|
556 | |
---|
557 | # Factoring default headers for most tests. |
---|
558 | ac_includes_default="\ |
---|
559 | #include <stdio.h> |
---|
560 | #ifdef HAVE_SYS_TYPES_H |
---|
561 | # include <sys/types.h> |
---|
562 | #endif |
---|
563 | #ifdef HAVE_SYS_STAT_H |
---|
564 | # include <sys/stat.h> |
---|
565 | #endif |
---|
566 | #ifdef STDC_HEADERS |
---|
567 | # include <stdlib.h> |
---|
568 | # include <stddef.h> |
---|
569 | #else |
---|
570 | # ifdef HAVE_STDLIB_H |
---|
571 | # include <stdlib.h> |
---|
572 | # endif |
---|
573 | #endif |
---|
574 | #ifdef HAVE_STRING_H |
---|
575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
576 | # include <memory.h> |
---|
577 | # endif |
---|
578 | # include <string.h> |
---|
579 | #endif |
---|
580 | #ifdef HAVE_STRINGS_H |
---|
581 | # include <strings.h> |
---|
582 | #endif |
---|
583 | #ifdef HAVE_INTTYPES_H |
---|
584 | # include <inttypes.h> |
---|
585 | #endif |
---|
586 | #ifdef HAVE_STDINT_H |
---|
587 | # include <stdint.h> |
---|
588 | #endif |
---|
589 | #ifdef HAVE_UNISTD_H |
---|
590 | # include <unistd.h> |
---|
591 | #endif" |
---|
592 | |
---|
593 | ac_subst_vars='LTLIBOBJS |
---|
594 | LIBOBJS |
---|
595 | TK_VERSION |
---|
596 | TCL_LIB_SPEC |
---|
597 | TCL_INC_SPEC |
---|
598 | TCL_VERSION |
---|
599 | TCLSH |
---|
600 | ENABLE_GUI |
---|
601 | MAKE |
---|
602 | SHLIB_LDFLAGS |
---|
603 | INSTALL_STUB_LIB |
---|
604 | INSTALL_LIB |
---|
605 | MAKE_STUB_LIB |
---|
606 | MAKE_LIB |
---|
607 | SHLIB_SUFFIX |
---|
608 | SHLIB_CFLAGS |
---|
609 | SHLIB_LD_LIBS |
---|
610 | TK_SHLIB_LD_EXTRAS |
---|
611 | TCL_SHLIB_LD_EXTRAS |
---|
612 | SHLIB_LD |
---|
613 | STLIB_LD |
---|
614 | LD_SEARCH_FLAGS |
---|
615 | CC_SEARCH_FLAGS |
---|
616 | LDFLAGS_OPTIMIZE |
---|
617 | LDFLAGS_DEBUG |
---|
618 | CFLAGS_WARNING |
---|
619 | CFLAGS_OPTIMIZE |
---|
620 | CFLAGS_DEBUG |
---|
621 | PLAT_SRCS |
---|
622 | PLAT_OBJS |
---|
623 | DL_OBJS |
---|
624 | DL_LIBS |
---|
625 | EGREP |
---|
626 | GREP |
---|
627 | CPP |
---|
628 | AR |
---|
629 | OBJEXT |
---|
630 | EXEEXT |
---|
631 | ac_ct_CC |
---|
632 | CPPFLAGS |
---|
633 | LDFLAGS |
---|
634 | CFLAGS |
---|
635 | CC |
---|
636 | SET_MAKE |
---|
637 | MKDIR_P |
---|
638 | LN_S |
---|
639 | RANLIB |
---|
640 | INSTALL_DATA |
---|
641 | INSTALL_SCRIPT |
---|
642 | INSTALL_PROGRAM |
---|
643 | LIB_SEARCH_DIRS |
---|
644 | target_os |
---|
645 | target_vendor |
---|
646 | target_cpu |
---|
647 | target |
---|
648 | host_os |
---|
649 | host_vendor |
---|
650 | host_cpu |
---|
651 | host |
---|
652 | build_os |
---|
653 | build_vendor |
---|
654 | build_cpu |
---|
655 | build |
---|
656 | target_alias |
---|
657 | host_alias |
---|
658 | build_alias |
---|
659 | LIBS |
---|
660 | ECHO_T |
---|
661 | ECHO_N |
---|
662 | ECHO_C |
---|
663 | DEFS |
---|
664 | mandir |
---|
665 | localedir |
---|
666 | libdir |
---|
667 | psdir |
---|
668 | pdfdir |
---|
669 | dvidir |
---|
670 | htmldir |
---|
671 | infodir |
---|
672 | docdir |
---|
673 | oldincludedir |
---|
674 | includedir |
---|
675 | localstatedir |
---|
676 | sharedstatedir |
---|
677 | sysconfdir |
---|
678 | datadir |
---|
679 | datarootdir |
---|
680 | libexecdir |
---|
681 | sbindir |
---|
682 | bindir |
---|
683 | program_transform_name |
---|
684 | prefix |
---|
685 | exec_prefix |
---|
686 | PACKAGE_URL |
---|
687 | PACKAGE_BUGREPORT |
---|
688 | PACKAGE_STRING |
---|
689 | PACKAGE_VERSION |
---|
690 | PACKAGE_TARNAME |
---|
691 | PACKAGE_NAME |
---|
692 | PATH_SEPARATOR |
---|
693 | SHELL' |
---|
694 | ac_subst_files='' |
---|
695 | ac_user_opts=' |
---|
696 | enable_option_checking |
---|
697 | enable_64bit |
---|
698 | enable_64bit_vis |
---|
699 | enable_corefoundation |
---|
700 | enable_load |
---|
701 | enable_shared |
---|
702 | enable_gui |
---|
703 | with_tclsh |
---|
704 | ' |
---|
705 | ac_precious_vars='build_alias |
---|
706 | host_alias |
---|
707 | target_alias |
---|
708 | CC |
---|
709 | CFLAGS |
---|
710 | LDFLAGS |
---|
711 | LIBS |
---|
712 | CPPFLAGS |
---|
713 | CPP' |
---|
714 | |
---|
715 | |
---|
716 | # Initialize some variables set by options. |
---|
717 | ac_init_help= |
---|
718 | ac_init_version=false |
---|
719 | ac_unrecognized_opts= |
---|
720 | ac_unrecognized_sep= |
---|
721 | # The variables have the same names as the options, with |
---|
722 | # dashes changed to underlines. |
---|
723 | cache_file=/dev/null |
---|
724 | exec_prefix=NONE |
---|
725 | no_create= |
---|
726 | no_recursion= |
---|
727 | prefix=NONE |
---|
728 | program_prefix=NONE |
---|
729 | program_suffix=NONE |
---|
730 | program_transform_name=s,x,x, |
---|
731 | silent= |
---|
732 | site= |
---|
733 | srcdir= |
---|
734 | verbose= |
---|
735 | x_includes=NONE |
---|
736 | x_libraries=NONE |
---|
737 | |
---|
738 | # Installation directory options. |
---|
739 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
740 | # and all the variables that are supposed to be based on exec_prefix |
---|
741 | # by default will actually change. |
---|
742 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
743 | # (The list follows the same order as the GNU Coding Standards.) |
---|
744 | bindir='${exec_prefix}/bin' |
---|
745 | sbindir='${exec_prefix}/sbin' |
---|
746 | libexecdir='${exec_prefix}/libexec' |
---|
747 | datarootdir='${prefix}/share' |
---|
748 | datadir='${datarootdir}' |
---|
749 | sysconfdir='${prefix}/etc' |
---|
750 | sharedstatedir='${prefix}/com' |
---|
751 | localstatedir='${prefix}/var' |
---|
752 | includedir='${prefix}/include' |
---|
753 | oldincludedir='/usr/include' |
---|
754 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
755 | infodir='${datarootdir}/info' |
---|
756 | htmldir='${docdir}' |
---|
757 | dvidir='${docdir}' |
---|
758 | pdfdir='${docdir}' |
---|
759 | psdir='${docdir}' |
---|
760 | libdir='${exec_prefix}/lib' |
---|
761 | localedir='${datarootdir}/locale' |
---|
762 | mandir='${datarootdir}/man' |
---|
763 | |
---|
764 | ac_prev= |
---|
765 | ac_dashdash= |
---|
766 | for ac_option |
---|
767 | do |
---|
768 | # If the previous option needs an argument, assign it. |
---|
769 | if test -n "$ac_prev"; then |
---|
770 | eval $ac_prev=\$ac_option |
---|
771 | ac_prev= |
---|
772 | continue |
---|
773 | fi |
---|
774 | |
---|
775 | case $ac_option in |
---|
776 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
777 | *) ac_optarg=yes ;; |
---|
778 | esac |
---|
779 | |
---|
780 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
781 | |
---|
782 | case $ac_dashdash$ac_option in |
---|
783 | --) |
---|
784 | ac_dashdash=yes ;; |
---|
785 | |
---|
786 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
787 | ac_prev=bindir ;; |
---|
788 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
789 | bindir=$ac_optarg ;; |
---|
790 | |
---|
791 | -build | --build | --buil | --bui | --bu) |
---|
792 | ac_prev=build_alias ;; |
---|
793 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
794 | build_alias=$ac_optarg ;; |
---|
795 | |
---|
796 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
797 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
798 | ac_prev=cache_file ;; |
---|
799 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
800 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
801 | cache_file=$ac_optarg ;; |
---|
802 | |
---|
803 | --config-cache | -C) |
---|
804 | cache_file=config.cache ;; |
---|
805 | |
---|
806 | -datadir | --datadir | --datadi | --datad) |
---|
807 | ac_prev=datadir ;; |
---|
808 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
809 | datadir=$ac_optarg ;; |
---|
810 | |
---|
811 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
812 | | --dataroo | --dataro | --datar) |
---|
813 | ac_prev=datarootdir ;; |
---|
814 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
815 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
816 | datarootdir=$ac_optarg ;; |
---|
817 | |
---|
818 | -disable-* | --disable-*) |
---|
819 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
820 | # Reject names that are not valid shell variable names. |
---|
821 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
822 | as_fn_error "invalid feature name: $ac_useropt" |
---|
823 | ac_useropt_orig=$ac_useropt |
---|
824 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
825 | case $ac_user_opts in |
---|
826 | *" |
---|
827 | "enable_$ac_useropt" |
---|
828 | "*) ;; |
---|
829 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
830 | ac_unrecognized_sep=', ';; |
---|
831 | esac |
---|
832 | eval enable_$ac_useropt=no ;; |
---|
833 | |
---|
834 | -docdir | --docdir | --docdi | --doc | --do) |
---|
835 | ac_prev=docdir ;; |
---|
836 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
837 | docdir=$ac_optarg ;; |
---|
838 | |
---|
839 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
840 | ac_prev=dvidir ;; |
---|
841 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
842 | dvidir=$ac_optarg ;; |
---|
843 | |
---|
844 | -enable-* | --enable-*) |
---|
845 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
846 | # Reject names that are not valid shell variable names. |
---|
847 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
848 | as_fn_error "invalid feature name: $ac_useropt" |
---|
849 | ac_useropt_orig=$ac_useropt |
---|
850 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
851 | case $ac_user_opts in |
---|
852 | *" |
---|
853 | "enable_$ac_useropt" |
---|
854 | "*) ;; |
---|
855 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
856 | ac_unrecognized_sep=', ';; |
---|
857 | esac |
---|
858 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
859 | |
---|
860 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
861 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
862 | | --exec | --exe | --ex) |
---|
863 | ac_prev=exec_prefix ;; |
---|
864 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
865 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
866 | | --exec=* | --exe=* | --ex=*) |
---|
867 | exec_prefix=$ac_optarg ;; |
---|
868 | |
---|
869 | -gas | --gas | --ga | --g) |
---|
870 | # Obsolete; use --with-gas. |
---|
871 | with_gas=yes ;; |
---|
872 | |
---|
873 | -help | --help | --hel | --he | -h) |
---|
874 | ac_init_help=long ;; |
---|
875 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
876 | ac_init_help=recursive ;; |
---|
877 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
878 | ac_init_help=short ;; |
---|
879 | |
---|
880 | -host | --host | --hos | --ho) |
---|
881 | ac_prev=host_alias ;; |
---|
882 | -host=* | --host=* | --hos=* | --ho=*) |
---|
883 | host_alias=$ac_optarg ;; |
---|
884 | |
---|
885 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
886 | ac_prev=htmldir ;; |
---|
887 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
888 | | --ht=*) |
---|
889 | htmldir=$ac_optarg ;; |
---|
890 | |
---|
891 | -includedir | --includedir | --includedi | --included | --include \ |
---|
892 | | --includ | --inclu | --incl | --inc) |
---|
893 | ac_prev=includedir ;; |
---|
894 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
895 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
896 | includedir=$ac_optarg ;; |
---|
897 | |
---|
898 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
899 | ac_prev=infodir ;; |
---|
900 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
901 | infodir=$ac_optarg ;; |
---|
902 | |
---|
903 | -libdir | --libdir | --libdi | --libd) |
---|
904 | ac_prev=libdir ;; |
---|
905 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
906 | libdir=$ac_optarg ;; |
---|
907 | |
---|
908 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
909 | | --libexe | --libex | --libe) |
---|
910 | ac_prev=libexecdir ;; |
---|
911 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
912 | | --libexe=* | --libex=* | --libe=*) |
---|
913 | libexecdir=$ac_optarg ;; |
---|
914 | |
---|
915 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
916 | ac_prev=localedir ;; |
---|
917 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
918 | localedir=$ac_optarg ;; |
---|
919 | |
---|
920 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
921 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
922 | ac_prev=localstatedir ;; |
---|
923 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
924 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
925 | localstatedir=$ac_optarg ;; |
---|
926 | |
---|
927 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
928 | ac_prev=mandir ;; |
---|
929 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
930 | mandir=$ac_optarg ;; |
---|
931 | |
---|
932 | -nfp | --nfp | --nf) |
---|
933 | # Obsolete; use --without-fp. |
---|
934 | with_fp=no ;; |
---|
935 | |
---|
936 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
937 | | --no-cr | --no-c | -n) |
---|
938 | no_create=yes ;; |
---|
939 | |
---|
940 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
941 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
942 | no_recursion=yes ;; |
---|
943 | |
---|
944 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
945 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
946 | | --oldin | --oldi | --old | --ol | --o) |
---|
947 | ac_prev=oldincludedir ;; |
---|
948 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
949 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
950 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
951 | oldincludedir=$ac_optarg ;; |
---|
952 | |
---|
953 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
954 | ac_prev=prefix ;; |
---|
955 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
956 | prefix=$ac_optarg ;; |
---|
957 | |
---|
958 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
959 | | --program-pre | --program-pr | --program-p) |
---|
960 | ac_prev=program_prefix ;; |
---|
961 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
962 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
963 | program_prefix=$ac_optarg ;; |
---|
964 | |
---|
965 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
966 | | --program-suf | --program-su | --program-s) |
---|
967 | ac_prev=program_suffix ;; |
---|
968 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
969 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
970 | program_suffix=$ac_optarg ;; |
---|
971 | |
---|
972 | -program-transform-name | --program-transform-name \ |
---|
973 | | --program-transform-nam | --program-transform-na \ |
---|
974 | | --program-transform-n | --program-transform- \ |
---|
975 | | --program-transform | --program-transfor \ |
---|
976 | | --program-transfo | --program-transf \ |
---|
977 | | --program-trans | --program-tran \ |
---|
978 | | --progr-tra | --program-tr | --program-t) |
---|
979 | ac_prev=program_transform_name ;; |
---|
980 | -program-transform-name=* | --program-transform-name=* \ |
---|
981 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
982 | | --program-transform-n=* | --program-transform-=* \ |
---|
983 | | --program-transform=* | --program-transfor=* \ |
---|
984 | | --program-transfo=* | --program-transf=* \ |
---|
985 | | --program-trans=* | --program-tran=* \ |
---|
986 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
987 | program_transform_name=$ac_optarg ;; |
---|
988 | |
---|
989 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
990 | ac_prev=pdfdir ;; |
---|
991 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
992 | pdfdir=$ac_optarg ;; |
---|
993 | |
---|
994 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
995 | ac_prev=psdir ;; |
---|
996 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
997 | psdir=$ac_optarg ;; |
---|
998 | |
---|
999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1000 | | -silent | --silent | --silen | --sile | --sil) |
---|
1001 | silent=yes ;; |
---|
1002 | |
---|
1003 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1004 | ac_prev=sbindir ;; |
---|
1005 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1006 | | --sbi=* | --sb=*) |
---|
1007 | sbindir=$ac_optarg ;; |
---|
1008 | |
---|
1009 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1010 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1011 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1012 | | --sha | --sh) |
---|
1013 | ac_prev=sharedstatedir ;; |
---|
1014 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1015 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1016 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1017 | | --sha=* | --sh=*) |
---|
1018 | sharedstatedir=$ac_optarg ;; |
---|
1019 | |
---|
1020 | -site | --site | --sit) |
---|
1021 | ac_prev=site ;; |
---|
1022 | -site=* | --site=* | --sit=*) |
---|
1023 | site=$ac_optarg ;; |
---|
1024 | |
---|
1025 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1026 | ac_prev=srcdir ;; |
---|
1027 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1028 | srcdir=$ac_optarg ;; |
---|
1029 | |
---|
1030 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1031 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1032 | ac_prev=sysconfdir ;; |
---|
1033 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1034 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1035 | sysconfdir=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1038 | ac_prev=target_alias ;; |
---|
1039 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1040 | target_alias=$ac_optarg ;; |
---|
1041 | |
---|
1042 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1043 | verbose=yes ;; |
---|
1044 | |
---|
1045 | -version | --version | --versio | --versi | --vers | -V) |
---|
1046 | ac_init_version=: ;; |
---|
1047 | |
---|
1048 | -with-* | --with-*) |
---|
1049 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1050 | # Reject names that are not valid shell variable names. |
---|
1051 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1052 | as_fn_error "invalid package name: $ac_useropt" |
---|
1053 | ac_useropt_orig=$ac_useropt |
---|
1054 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1055 | case $ac_user_opts in |
---|
1056 | *" |
---|
1057 | "with_$ac_useropt" |
---|
1058 | "*) ;; |
---|
1059 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1060 | ac_unrecognized_sep=', ';; |
---|
1061 | esac |
---|
1062 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1063 | |
---|
1064 | -without-* | --without-*) |
---|
1065 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1066 | # Reject names that are not valid shell variable names. |
---|
1067 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1068 | as_fn_error "invalid package name: $ac_useropt" |
---|
1069 | ac_useropt_orig=$ac_useropt |
---|
1070 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1071 | case $ac_user_opts in |
---|
1072 | *" |
---|
1073 | "with_$ac_useropt" |
---|
1074 | "*) ;; |
---|
1075 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1076 | ac_unrecognized_sep=', ';; |
---|
1077 | esac |
---|
1078 | eval with_$ac_useropt=no ;; |
---|
1079 | |
---|
1080 | --x) |
---|
1081 | # Obsolete; use --with-x. |
---|
1082 | with_x=yes ;; |
---|
1083 | |
---|
1084 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1085 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1086 | ac_prev=x_includes ;; |
---|
1087 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1088 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1089 | x_includes=$ac_optarg ;; |
---|
1090 | |
---|
1091 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1092 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1093 | ac_prev=x_libraries ;; |
---|
1094 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1095 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1096 | x_libraries=$ac_optarg ;; |
---|
1097 | |
---|
1098 | -*) as_fn_error "unrecognized option: \`$ac_option' |
---|
1099 | Try \`$0 --help' for more information." |
---|
1100 | ;; |
---|
1101 | |
---|
1102 | *=*) |
---|
1103 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1104 | # Reject names that are not valid shell variable names. |
---|
1105 | case $ac_envvar in #( |
---|
1106 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1107 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
---|
1108 | esac |
---|
1109 | eval $ac_envvar=\$ac_optarg |
---|
1110 | export $ac_envvar ;; |
---|
1111 | |
---|
1112 | *) |
---|
1113 | # FIXME: should be removed in autoconf 3.0. |
---|
1114 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1115 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1116 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1117 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1118 | ;; |
---|
1119 | |
---|
1120 | esac |
---|
1121 | done |
---|
1122 | |
---|
1123 | if test -n "$ac_prev"; then |
---|
1124 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1125 | as_fn_error "missing argument to $ac_option" |
---|
1126 | fi |
---|
1127 | |
---|
1128 | if test -n "$ac_unrecognized_opts"; then |
---|
1129 | case $enable_option_checking in |
---|
1130 | no) ;; |
---|
1131 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1132 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1133 | esac |
---|
1134 | fi |
---|
1135 | |
---|
1136 | # Check all directory arguments for consistency. |
---|
1137 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1138 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1139 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1140 | libdir localedir mandir |
---|
1141 | do |
---|
1142 | eval ac_val=\$$ac_var |
---|
1143 | # Remove trailing slashes. |
---|
1144 | case $ac_val in |
---|
1145 | */ ) |
---|
1146 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1147 | eval $ac_var=\$ac_val;; |
---|
1148 | esac |
---|
1149 | # Be sure to have absolute directory names. |
---|
1150 | case $ac_val in |
---|
1151 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1152 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1153 | esac |
---|
1154 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1155 | done |
---|
1156 | |
---|
1157 | # There might be people who depend on the old broken behavior: `$host' |
---|
1158 | # used to hold the argument of --host etc. |
---|
1159 | # FIXME: To remove some day. |
---|
1160 | build=$build_alias |
---|
1161 | host=$host_alias |
---|
1162 | target=$target_alias |
---|
1163 | |
---|
1164 | # FIXME: To remove some day. |
---|
1165 | if test "x$host_alias" != x; then |
---|
1166 | if test "x$build_alias" = x; then |
---|
1167 | cross_compiling=maybe |
---|
1168 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1169 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1170 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1171 | cross_compiling=yes |
---|
1172 | fi |
---|
1173 | fi |
---|
1174 | |
---|
1175 | ac_tool_prefix= |
---|
1176 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1177 | |
---|
1178 | test "$silent" = yes && exec 6>/dev/null |
---|
1179 | |
---|
1180 | |
---|
1181 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1182 | ac_ls_di=`ls -di .` && |
---|
1183 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1184 | as_fn_error "working directory cannot be determined" |
---|
1185 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1186 | as_fn_error "pwd does not report name of working directory" |
---|
1187 | |
---|
1188 | |
---|
1189 | # Find the source files, if location was not specified. |
---|
1190 | if test -z "$srcdir"; then |
---|
1191 | ac_srcdir_defaulted=yes |
---|
1192 | # Try the directory containing this script, then the parent directory. |
---|
1193 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1194 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1195 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1196 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1197 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1198 | $as_echo X"$as_myself" | |
---|
1199 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1200 | s//\1/ |
---|
1201 | q |
---|
1202 | } |
---|
1203 | /^X\(\/\/\)[^/].*/{ |
---|
1204 | s//\1/ |
---|
1205 | q |
---|
1206 | } |
---|
1207 | /^X\(\/\/\)$/{ |
---|
1208 | s//\1/ |
---|
1209 | q |
---|
1210 | } |
---|
1211 | /^X\(\/\).*/{ |
---|
1212 | s//\1/ |
---|
1213 | q |
---|
1214 | } |
---|
1215 | s/.*/./; q'` |
---|
1216 | srcdir=$ac_confdir |
---|
1217 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1218 | srcdir=.. |
---|
1219 | fi |
---|
1220 | else |
---|
1221 | ac_srcdir_defaulted=no |
---|
1222 | fi |
---|
1223 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1224 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1225 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1226 | fi |
---|
1227 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1228 | ac_abs_confdir=`( |
---|
1229 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
---|
1230 | pwd)` |
---|
1231 | # When building in place, set srcdir=. |
---|
1232 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1233 | srcdir=. |
---|
1234 | fi |
---|
1235 | # Remove unnecessary trailing slashes from srcdir. |
---|
1236 | # Double slashes in file names in object file debugging info |
---|
1237 | # mess up M-x gdb in Emacs. |
---|
1238 | case $srcdir in |
---|
1239 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1240 | esac |
---|
1241 | for ac_var in $ac_precious_vars; do |
---|
1242 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1243 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1244 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1245 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1246 | done |
---|
1247 | |
---|
1248 | # |
---|
1249 | # Report the --help message. |
---|
1250 | # |
---|
1251 | if test "$ac_init_help" = "long"; then |
---|
1252 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1253 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1254 | cat <<_ACEOF |
---|
1255 | \`configure' configures RapptureGUI 1.1 to adapt to many kinds of systems. |
---|
1256 | |
---|
1257 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1258 | |
---|
1259 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1260 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1261 | |
---|
1262 | Defaults for the options are specified in brackets. |
---|
1263 | |
---|
1264 | Configuration: |
---|
1265 | -h, --help display this help and exit |
---|
1266 | --help=short display options specific to this package |
---|
1267 | --help=recursive display the short help of all the included packages |
---|
1268 | -V, --version display version information and exit |
---|
1269 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1270 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1271 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1272 | -n, --no-create do not create output files |
---|
1273 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1274 | |
---|
1275 | Installation directories: |
---|
1276 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1277 | [$ac_default_prefix] |
---|
1278 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1279 | [PREFIX] |
---|
1280 | |
---|
1281 | By default, \`make install' will install all the files in |
---|
1282 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1283 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1284 | for instance \`--prefix=\$HOME'. |
---|
1285 | |
---|
1286 | For better control, use the options below. |
---|
1287 | |
---|
1288 | Fine tuning of the installation directories: |
---|
1289 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1290 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1291 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1292 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1293 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1294 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1295 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1296 | --includedir=DIR C header files [PREFIX/include] |
---|
1297 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1298 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1299 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1300 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1301 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1302 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1303 | --docdir=DIR documentation root [DATAROOTDIR/doc/rappturegui] |
---|
1304 | --htmldir=DIR html documentation [DOCDIR] |
---|
1305 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1306 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1307 | --psdir=DIR ps documentation [DOCDIR] |
---|
1308 | _ACEOF |
---|
1309 | |
---|
1310 | cat <<\_ACEOF |
---|
1311 | |
---|
1312 | System types: |
---|
1313 | --build=BUILD configure for building on BUILD [guessed] |
---|
1314 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1315 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
1316 | _ACEOF |
---|
1317 | fi |
---|
1318 | |
---|
1319 | if test -n "$ac_init_help"; then |
---|
1320 | case $ac_init_help in |
---|
1321 | short | recursive ) echo "Configuration of RapptureGUI 1.1:";; |
---|
1322 | esac |
---|
1323 | cat <<\_ACEOF |
---|
1324 | |
---|
1325 | Optional Features: |
---|
1326 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1327 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1328 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1329 | --enable-64bit enable 64bit support (where applicable) |
---|
1330 | --enable-64bit-vis enable 64bit Sparc VIS support |
---|
1331 | --enable-corefoundation use CoreFoundation API --enable-corefoundation |
---|
1332 | --disable-load disallow dynamic loading and "load" command |
---|
1333 | --enable-shared build and link with shared libraries --enable-shared |
---|
1334 | --enable-gui build code related to the graphical user interface |
---|
1335 | [default=yes] |
---|
1336 | |
---|
1337 | Optional Packages: |
---|
1338 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1339 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1340 | --with-tclsh=DIR location of tclsh [default=yes] |
---|
1341 | |
---|
1342 | Some influential environment variables: |
---|
1343 | CC C compiler command |
---|
1344 | CFLAGS C compiler flags |
---|
1345 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1346 | nonstandard directory <lib dir> |
---|
1347 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1348 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
1349 | you have headers in a nonstandard directory <include dir> |
---|
1350 | CPP C preprocessor |
---|
1351 | |
---|
1352 | Use these variables to override the choices made by `configure' or to help |
---|
1353 | it to find libraries and programs with nonstandard names/locations. |
---|
1354 | |
---|
1355 | Report bugs to <rappture@nanohub.org>. |
---|
1356 | _ACEOF |
---|
1357 | ac_status=$? |
---|
1358 | fi |
---|
1359 | |
---|
1360 | if test "$ac_init_help" = "recursive"; then |
---|
1361 | # If there are subdirs, report their specific --help. |
---|
1362 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1363 | test -d "$ac_dir" || |
---|
1364 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1365 | continue |
---|
1366 | ac_builddir=. |
---|
1367 | |
---|
1368 | case "$ac_dir" in |
---|
1369 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1370 | *) |
---|
1371 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1372 | # A ".." for each directory in $ac_dir_suffix. |
---|
1373 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1374 | case $ac_top_builddir_sub in |
---|
1375 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1376 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1377 | esac ;; |
---|
1378 | esac |
---|
1379 | ac_abs_top_builddir=$ac_pwd |
---|
1380 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1381 | # for backward compatibility: |
---|
1382 | ac_top_builddir=$ac_top_build_prefix |
---|
1383 | |
---|
1384 | case $srcdir in |
---|
1385 | .) # We are building in place. |
---|
1386 | ac_srcdir=. |
---|
1387 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1388 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1389 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1390 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1391 | ac_top_srcdir=$srcdir |
---|
1392 | ac_abs_top_srcdir=$srcdir ;; |
---|
1393 | *) # Relative name. |
---|
1394 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1395 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1396 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1397 | esac |
---|
1398 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1399 | |
---|
1400 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1401 | # Check for guested configure. |
---|
1402 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1403 | echo && |
---|
1404 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1405 | elif test -f "$ac_srcdir/configure"; then |
---|
1406 | echo && |
---|
1407 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1408 | else |
---|
1409 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1410 | fi || ac_status=$? |
---|
1411 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1412 | done |
---|
1413 | fi |
---|
1414 | |
---|
1415 | test -n "$ac_init_help" && exit $ac_status |
---|
1416 | if $ac_init_version; then |
---|
1417 | cat <<\_ACEOF |
---|
1418 | RapptureGUI configure 1.1 |
---|
1419 | generated by GNU Autoconf 2.64 |
---|
1420 | |
---|
1421 | Copyright (C) 2009 Free Software Foundation, Inc. |
---|
1422 | This configure script is free software; the Free Software Foundation |
---|
1423 | gives unlimited permission to copy, distribute and modify it. |
---|
1424 | _ACEOF |
---|
1425 | exit |
---|
1426 | fi |
---|
1427 | |
---|
1428 | ## ------------------------ ## |
---|
1429 | ## Autoconf initialization. ## |
---|
1430 | ## ------------------------ ## |
---|
1431 | |
---|
1432 | # ac_fn_c_try_compile LINENO |
---|
1433 | # -------------------------- |
---|
1434 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1435 | ac_fn_c_try_compile () |
---|
1436 | { |
---|
1437 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1438 | rm -f conftest.$ac_objext |
---|
1439 | if { { ac_try="$ac_compile" |
---|
1440 | case "(($ac_try" in |
---|
1441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1442 | *) ac_try_echo=$ac_try;; |
---|
1443 | esac |
---|
1444 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1445 | $as_echo "$ac_try_echo"; } >&5 |
---|
1446 | (eval "$ac_compile") 2>conftest.err |
---|
1447 | ac_status=$? |
---|
1448 | if test -s conftest.err; then |
---|
1449 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1450 | cat conftest.er1 >&5 |
---|
1451 | mv -f conftest.er1 conftest.err |
---|
1452 | fi |
---|
1453 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1454 | test $ac_status = 0; } && { |
---|
1455 | test -z "$ac_c_werror_flag" || |
---|
1456 | test ! -s conftest.err |
---|
1457 | } && test -s conftest.$ac_objext; then : |
---|
1458 | ac_retval=0 |
---|
1459 | else |
---|
1460 | $as_echo "$as_me: failed program was:" >&5 |
---|
1461 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1462 | |
---|
1463 | ac_retval=1 |
---|
1464 | fi |
---|
1465 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1466 | return $ac_retval |
---|
1467 | |
---|
1468 | } # ac_fn_c_try_compile |
---|
1469 | |
---|
1470 | # ac_fn_c_try_link LINENO |
---|
1471 | # ----------------------- |
---|
1472 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1473 | ac_fn_c_try_link () |
---|
1474 | { |
---|
1475 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1476 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1477 | if { { ac_try="$ac_link" |
---|
1478 | case "(($ac_try" in |
---|
1479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1480 | *) ac_try_echo=$ac_try;; |
---|
1481 | esac |
---|
1482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1483 | $as_echo "$ac_try_echo"; } >&5 |
---|
1484 | (eval "$ac_link") 2>conftest.err |
---|
1485 | ac_status=$? |
---|
1486 | if test -s conftest.err; then |
---|
1487 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1488 | cat conftest.er1 >&5 |
---|
1489 | mv -f conftest.er1 conftest.err |
---|
1490 | fi |
---|
1491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1492 | test $ac_status = 0; } && { |
---|
1493 | test -z "$ac_c_werror_flag" || |
---|
1494 | test ! -s conftest.err |
---|
1495 | } && test -s conftest$ac_exeext && { |
---|
1496 | test "$cross_compiling" = yes || |
---|
1497 | $as_test_x conftest$ac_exeext |
---|
1498 | }; then : |
---|
1499 | ac_retval=0 |
---|
1500 | else |
---|
1501 | $as_echo "$as_me: failed program was:" >&5 |
---|
1502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1503 | |
---|
1504 | ac_retval=1 |
---|
1505 | fi |
---|
1506 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1507 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1508 | # interfere with the next link command; also delete a directory that is |
---|
1509 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1510 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1511 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1512 | return $ac_retval |
---|
1513 | |
---|
1514 | } # ac_fn_c_try_link |
---|
1515 | |
---|
1516 | # ac_fn_c_try_cpp LINENO |
---|
1517 | # ---------------------- |
---|
1518 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1519 | ac_fn_c_try_cpp () |
---|
1520 | { |
---|
1521 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1522 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1523 | case "(($ac_try" in |
---|
1524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1525 | *) ac_try_echo=$ac_try;; |
---|
1526 | esac |
---|
1527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1528 | $as_echo "$ac_try_echo"; } >&5 |
---|
1529 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1530 | ac_status=$? |
---|
1531 | if test -s conftest.err; then |
---|
1532 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1533 | cat conftest.er1 >&5 |
---|
1534 | mv -f conftest.er1 conftest.err |
---|
1535 | fi |
---|
1536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1537 | test $ac_status = 0; } >/dev/null && { |
---|
1538 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1539 | test ! -s conftest.err |
---|
1540 | }; then : |
---|
1541 | ac_retval=0 |
---|
1542 | else |
---|
1543 | $as_echo "$as_me: failed program was:" >&5 |
---|
1544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1545 | |
---|
1546 | ac_retval=1 |
---|
1547 | fi |
---|
1548 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1549 | return $ac_retval |
---|
1550 | |
---|
1551 | } # ac_fn_c_try_cpp |
---|
1552 | |
---|
1553 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1554 | # ------------------------------------------------------- |
---|
1555 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1556 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1557 | # accordingly. |
---|
1558 | ac_fn_c_check_header_mongrel () |
---|
1559 | { |
---|
1560 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1561 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1563 | $as_echo_n "checking for $2... " >&6; } |
---|
1564 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1565 | $as_echo_n "(cached) " >&6 |
---|
1566 | fi |
---|
1567 | eval ac_res=\$$3 |
---|
1568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1569 | $as_echo "$ac_res" >&6; } |
---|
1570 | else |
---|
1571 | # Is the header compilable? |
---|
1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1573 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1575 | /* end confdefs.h. */ |
---|
1576 | $4 |
---|
1577 | #include <$2> |
---|
1578 | _ACEOF |
---|
1579 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1580 | ac_header_compiler=yes |
---|
1581 | else |
---|
1582 | ac_header_compiler=no |
---|
1583 | fi |
---|
1584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1586 | $as_echo "$ac_header_compiler" >&6; } |
---|
1587 | |
---|
1588 | # Is the header present? |
---|
1589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1590 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1592 | /* end confdefs.h. */ |
---|
1593 | #include <$2> |
---|
1594 | _ACEOF |
---|
1595 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1596 | ac_header_preproc=yes |
---|
1597 | else |
---|
1598 | ac_header_preproc=no |
---|
1599 | fi |
---|
1600 | rm -f conftest.err conftest.$ac_ext |
---|
1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1602 | $as_echo "$ac_header_preproc" >&6; } |
---|
1603 | |
---|
1604 | # So? What about this header? |
---|
1605 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1606 | yes:no: ) |
---|
1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1608 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1610 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1611 | ;; |
---|
1612 | no:yes:* ) |
---|
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1614 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1616 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1618 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1620 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 | ( cat <<\_ASBOX |
---|
1624 | ## ----------------------------------- ## |
---|
1625 | ## Report this to rappture@nanohub.org ## |
---|
1626 | ## ----------------------------------- ## |
---|
1627 | _ASBOX |
---|
1628 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1629 | ;; |
---|
1630 | esac |
---|
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1632 | $as_echo_n "checking for $2... " >&6; } |
---|
1633 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1634 | $as_echo_n "(cached) " >&6 |
---|
1635 | else |
---|
1636 | eval "$3=\$ac_header_compiler" |
---|
1637 | fi |
---|
1638 | eval ac_res=\$$3 |
---|
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1640 | $as_echo "$ac_res" >&6; } |
---|
1641 | fi |
---|
1642 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1643 | |
---|
1644 | } # ac_fn_c_check_header_mongrel |
---|
1645 | |
---|
1646 | # ac_fn_c_try_run LINENO |
---|
1647 | # ---------------------- |
---|
1648 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1649 | # that executables *can* be run. |
---|
1650 | ac_fn_c_try_run () |
---|
1651 | { |
---|
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1653 | if { { ac_try="$ac_link" |
---|
1654 | case "(($ac_try" in |
---|
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1656 | *) ac_try_echo=$ac_try;; |
---|
1657 | esac |
---|
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1659 | $as_echo "$ac_try_echo"; } >&5 |
---|
1660 | (eval "$ac_link") 2>&5 |
---|
1661 | ac_status=$? |
---|
1662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1663 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
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_try") 2>&5 |
---|
1671 | ac_status=$? |
---|
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1673 | test $ac_status = 0; }; }; then : |
---|
1674 | ac_retval=0 |
---|
1675 | else |
---|
1676 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1677 | $as_echo "$as_me: failed program was:" >&5 |
---|
1678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1679 | |
---|
1680 | ac_retval=$ac_status |
---|
1681 | fi |
---|
1682 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1683 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1684 | return $ac_retval |
---|
1685 | |
---|
1686 | } # ac_fn_c_try_run |
---|
1687 | |
---|
1688 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1689 | # ------------------------------------------------------- |
---|
1690 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1691 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1692 | ac_fn_c_check_header_compile () |
---|
1693 | { |
---|
1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1696 | $as_echo_n "checking for $2... " >&6; } |
---|
1697 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1698 | $as_echo_n "(cached) " >&6 |
---|
1699 | else |
---|
1700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1701 | /* end confdefs.h. */ |
---|
1702 | $4 |
---|
1703 | #include <$2> |
---|
1704 | _ACEOF |
---|
1705 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1706 | eval "$3=yes" |
---|
1707 | else |
---|
1708 | eval "$3=no" |
---|
1709 | fi |
---|
1710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1711 | fi |
---|
1712 | eval ac_res=\$$3 |
---|
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1714 | $as_echo "$ac_res" >&6; } |
---|
1715 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1716 | |
---|
1717 | } # ac_fn_c_check_header_compile |
---|
1718 | cat >config.log <<_ACEOF |
---|
1719 | This file contains any messages produced by compilers while |
---|
1720 | running configure, to aid debugging if configure makes a mistake. |
---|
1721 | |
---|
1722 | It was created by RapptureGUI $as_me 1.1, which was |
---|
1723 | generated by GNU Autoconf 2.64. Invocation command line was |
---|
1724 | |
---|
1725 | $ $0 $@ |
---|
1726 | |
---|
1727 | _ACEOF |
---|
1728 | exec 5>>config.log |
---|
1729 | { |
---|
1730 | cat <<_ASUNAME |
---|
1731 | ## --------- ## |
---|
1732 | ## Platform. ## |
---|
1733 | ## --------- ## |
---|
1734 | |
---|
1735 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1736 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1737 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1738 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1739 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1740 | |
---|
1741 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1742 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1743 | |
---|
1744 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1745 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1746 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1747 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1748 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1749 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1750 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1751 | |
---|
1752 | _ASUNAME |
---|
1753 | |
---|
1754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1755 | for as_dir in $PATH |
---|
1756 | do |
---|
1757 | IFS=$as_save_IFS |
---|
1758 | test -z "$as_dir" && as_dir=. |
---|
1759 | $as_echo "PATH: $as_dir" |
---|
1760 | done |
---|
1761 | IFS=$as_save_IFS |
---|
1762 | |
---|
1763 | } >&5 |
---|
1764 | |
---|
1765 | cat >&5 <<_ACEOF |
---|
1766 | |
---|
1767 | |
---|
1768 | ## ----------- ## |
---|
1769 | ## Core tests. ## |
---|
1770 | ## ----------- ## |
---|
1771 | |
---|
1772 | _ACEOF |
---|
1773 | |
---|
1774 | |
---|
1775 | # Keep a trace of the command line. |
---|
1776 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1777 | # Strip out --silent because we don't want to record it for future runs. |
---|
1778 | # Also quote any args containing shell meta-characters. |
---|
1779 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1780 | ac_configure_args= |
---|
1781 | ac_configure_args0= |
---|
1782 | ac_configure_args1= |
---|
1783 | ac_must_keep_next=false |
---|
1784 | for ac_pass in 1 2 |
---|
1785 | do |
---|
1786 | for ac_arg |
---|
1787 | do |
---|
1788 | case $ac_arg in |
---|
1789 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1790 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1791 | | -silent | --silent | --silen | --sile | --sil) |
---|
1792 | continue ;; |
---|
1793 | *\'*) |
---|
1794 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1795 | esac |
---|
1796 | case $ac_pass in |
---|
1797 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
1798 | 2) |
---|
1799 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
1800 | if test $ac_must_keep_next = true; then |
---|
1801 | ac_must_keep_next=false # Got value, back to normal. |
---|
1802 | else |
---|
1803 | case $ac_arg in |
---|
1804 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1805 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1806 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1807 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1808 | case "$ac_configure_args0 " in |
---|
1809 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1810 | esac |
---|
1811 | ;; |
---|
1812 | -* ) ac_must_keep_next=true ;; |
---|
1813 | esac |
---|
1814 | fi |
---|
1815 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
1816 | ;; |
---|
1817 | esac |
---|
1818 | done |
---|
1819 | done |
---|
1820 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
1821 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
1822 | |
---|
1823 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1824 | # config.log. We remove comments because anyway the quotes in there |
---|
1825 | # would cause problems or look ugly. |
---|
1826 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1827 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1828 | trap 'exit_status=$? |
---|
1829 | # Save into config.log some information that might help in debugging. |
---|
1830 | { |
---|
1831 | echo |
---|
1832 | |
---|
1833 | cat <<\_ASBOX |
---|
1834 | ## ---------------- ## |
---|
1835 | ## Cache variables. ## |
---|
1836 | ## ---------------- ## |
---|
1837 | _ASBOX |
---|
1838 | echo |
---|
1839 | # The following way of writing the cache mishandles newlines in values, |
---|
1840 | ( |
---|
1841 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1842 | eval ac_val=\$$ac_var |
---|
1843 | case $ac_val in #( |
---|
1844 | *${as_nl}*) |
---|
1845 | case $ac_var in #( |
---|
1846 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1847 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1848 | esac |
---|
1849 | case $ac_var in #( |
---|
1850 | _ | IFS | as_nl) ;; #( |
---|
1851 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1852 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
1853 | esac ;; |
---|
1854 | esac |
---|
1855 | done |
---|
1856 | (set) 2>&1 | |
---|
1857 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1858 | *${as_nl}ac_space=\ *) |
---|
1859 | sed -n \ |
---|
1860 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1861 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1862 | ;; #( |
---|
1863 | *) |
---|
1864 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1865 | ;; |
---|
1866 | esac | |
---|
1867 | sort |
---|
1868 | ) |
---|
1869 | echo |
---|
1870 | |
---|
1871 | cat <<\_ASBOX |
---|
1872 | ## ----------------- ## |
---|
1873 | ## Output variables. ## |
---|
1874 | ## ----------------- ## |
---|
1875 | _ASBOX |
---|
1876 | echo |
---|
1877 | for ac_var in $ac_subst_vars |
---|
1878 | do |
---|
1879 | eval ac_val=\$$ac_var |
---|
1880 | case $ac_val in |
---|
1881 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1882 | esac |
---|
1883 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1884 | done | sort |
---|
1885 | echo |
---|
1886 | |
---|
1887 | if test -n "$ac_subst_files"; then |
---|
1888 | cat <<\_ASBOX |
---|
1889 | ## ------------------- ## |
---|
1890 | ## File substitutions. ## |
---|
1891 | ## ------------------- ## |
---|
1892 | _ASBOX |
---|
1893 | echo |
---|
1894 | for ac_var in $ac_subst_files |
---|
1895 | do |
---|
1896 | eval ac_val=\$$ac_var |
---|
1897 | case $ac_val in |
---|
1898 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1899 | esac |
---|
1900 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1901 | done | sort |
---|
1902 | echo |
---|
1903 | fi |
---|
1904 | |
---|
1905 | if test -s confdefs.h; then |
---|
1906 | cat <<\_ASBOX |
---|
1907 | ## ----------- ## |
---|
1908 | ## confdefs.h. ## |
---|
1909 | ## ----------- ## |
---|
1910 | _ASBOX |
---|
1911 | echo |
---|
1912 | cat confdefs.h |
---|
1913 | echo |
---|
1914 | fi |
---|
1915 | test "$ac_signal" != 0 && |
---|
1916 | $as_echo "$as_me: caught signal $ac_signal" |
---|
1917 | $as_echo "$as_me: exit $exit_status" |
---|
1918 | } >&5 |
---|
1919 | rm -f core *.core core.conftest.* && |
---|
1920 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1921 | exit $exit_status |
---|
1922 | ' 0 |
---|
1923 | for ac_signal in 1 2 13 15; do |
---|
1924 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
1925 | done |
---|
1926 | ac_signal=0 |
---|
1927 | |
---|
1928 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1929 | rm -f -r conftest* confdefs.h |
---|
1930 | |
---|
1931 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
1932 | |
---|
1933 | # Predefined preprocessor variables. |
---|
1934 | |
---|
1935 | cat >>confdefs.h <<_ACEOF |
---|
1936 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1937 | _ACEOF |
---|
1938 | |
---|
1939 | cat >>confdefs.h <<_ACEOF |
---|
1940 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1941 | _ACEOF |
---|
1942 | |
---|
1943 | cat >>confdefs.h <<_ACEOF |
---|
1944 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1945 | _ACEOF |
---|
1946 | |
---|
1947 | cat >>confdefs.h <<_ACEOF |
---|
1948 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1949 | _ACEOF |
---|
1950 | |
---|
1951 | cat >>confdefs.h <<_ACEOF |
---|
1952 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1953 | _ACEOF |
---|
1954 | |
---|
1955 | cat >>confdefs.h <<_ACEOF |
---|
1956 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
1957 | _ACEOF |
---|
1958 | |
---|
1959 | |
---|
1960 | # Let the site file select an alternate cache file if it wants to. |
---|
1961 | # Prefer an explicitly selected file to automatically selected ones. |
---|
1962 | ac_site_file1=NONE |
---|
1963 | ac_site_file2=NONE |
---|
1964 | if test -n "$CONFIG_SITE"; then |
---|
1965 | ac_site_file1=$CONFIG_SITE |
---|
1966 | elif test "x$prefix" != xNONE; then |
---|
1967 | ac_site_file1=$prefix/share/config.site |
---|
1968 | ac_site_file2=$prefix/etc/config.site |
---|
1969 | else |
---|
1970 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
1971 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
1972 | fi |
---|
1973 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
1974 | do |
---|
1975 | test "x$ac_site_file" = xNONE && continue |
---|
1976 | if test -r "$ac_site_file"; then |
---|
1977 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
1978 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1979 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1980 | . "$ac_site_file" |
---|
1981 | fi |
---|
1982 | done |
---|
1983 | |
---|
1984 | if test -r "$cache_file"; then |
---|
1985 | # Some versions of bash will fail to source /dev/null (special |
---|
1986 | # files actually), so we avoid doing that. |
---|
1987 | if test -f "$cache_file"; then |
---|
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
1989 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
1990 | case $cache_file in |
---|
1991 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1992 | *) . "./$cache_file";; |
---|
1993 | esac |
---|
1994 | fi |
---|
1995 | else |
---|
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
1997 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
1998 | >$cache_file |
---|
1999 | fi |
---|
2000 | |
---|
2001 | # Check that the precious variables saved in the cache have kept the same |
---|
2002 | # value. |
---|
2003 | ac_cache_corrupted=false |
---|
2004 | for ac_var in $ac_precious_vars; do |
---|
2005 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2006 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2007 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2008 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2009 | case $ac_old_set,$ac_new_set in |
---|
2010 | set,) |
---|
2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2012 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2013 | ac_cache_corrupted=: ;; |
---|
2014 | ,set) |
---|
2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2016 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2017 | ac_cache_corrupted=: ;; |
---|
2018 | ,);; |
---|
2019 | *) |
---|
2020 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2021 | # differences in whitespace do not lead to failure. |
---|
2022 | ac_old_val_w=`echo x $ac_old_val` |
---|
2023 | ac_new_val_w=`echo x $ac_new_val` |
---|
2024 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2026 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2027 | ac_cache_corrupted=: |
---|
2028 | else |
---|
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2030 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2031 | eval $ac_var=\$ac_old_val |
---|
2032 | fi |
---|
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2034 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2036 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2037 | fi;; |
---|
2038 | esac |
---|
2039 | # Pass precious variables to config.status. |
---|
2040 | if test "$ac_new_set" = set; then |
---|
2041 | case $ac_new_val in |
---|
2042 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2043 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2044 | esac |
---|
2045 | case " $ac_configure_args " in |
---|
2046 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2047 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2048 | esac |
---|
2049 | fi |
---|
2050 | done |
---|
2051 | if $ac_cache_corrupted; then |
---|
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2053 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2055 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2056 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2057 | fi |
---|
2058 | ## -------------------- ## |
---|
2059 | ## Main body of script. ## |
---|
2060 | ## -------------------- ## |
---|
2061 | |
---|
2062 | ac_ext=c |
---|
2063 | ac_cpp='$CPP $CPPFLAGS' |
---|
2064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2067 | |
---|
2068 | |
---|
2069 | ac_aux_dir= |
---|
2070 | for ac_dir in cf "$srcdir"/cf; do |
---|
2071 | for ac_t in install-sh install.sh shtool; do |
---|
2072 | if test -f "$ac_dir/$ac_t"; then |
---|
2073 | ac_aux_dir=$ac_dir |
---|
2074 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
---|
2075 | break 2 |
---|
2076 | fi |
---|
2077 | done |
---|
2078 | done |
---|
2079 | if test -z "$ac_aux_dir"; then |
---|
2080 | as_fn_error "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
2081 | fi |
---|
2082 | |
---|
2083 | # These three variables are undocumented and unsupported, |
---|
2084 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2085 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2086 | # whose full name contains unusual characters. |
---|
2087 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2088 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2089 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2090 | |
---|
2091 | |
---|
2092 | #------------------------------------------------------------------------ |
---|
2093 | # Handle the --prefix=... option |
---|
2094 | #------------------------------------------------------------------------ |
---|
2095 | |
---|
2096 | if test "${prefix}" = "NONE"; then |
---|
2097 | prefix=/usr/local |
---|
2098 | fi |
---|
2099 | if test "${exec_prefix}" = "NONE"; then |
---|
2100 | exec_prefix=$prefix |
---|
2101 | fi |
---|
2102 | |
---|
2103 | if test "${libdir}" != "${prefix}/lib"; then |
---|
2104 | LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" |
---|
2105 | else |
---|
2106 | LIB_SEARCH_DIRS="-L${libdir}" |
---|
2107 | fi |
---|
2108 | # Make sure we can run config.sub. |
---|
2109 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2110 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
2111 | |
---|
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
2113 | $as_echo_n "checking build system type... " >&6; } |
---|
2114 | if test "${ac_cv_build+set}" = set; then : |
---|
2115 | $as_echo_n "(cached) " >&6 |
---|
2116 | else |
---|
2117 | ac_build_alias=$build_alias |
---|
2118 | test "x$ac_build_alias" = x && |
---|
2119 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2120 | test "x$ac_build_alias" = x && |
---|
2121 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
2122 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2123 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
2124 | |
---|
2125 | fi |
---|
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
2127 | $as_echo "$ac_cv_build" >&6; } |
---|
2128 | case $ac_cv_build in |
---|
2129 | *-*-*) ;; |
---|
2130 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
---|
2131 | esac |
---|
2132 | build=$ac_cv_build |
---|
2133 | ac_save_IFS=$IFS; IFS='-' |
---|
2134 | set x $ac_cv_build |
---|
2135 | shift |
---|
2136 | build_cpu=$1 |
---|
2137 | build_vendor=$2 |
---|
2138 | shift; shift |
---|
2139 | # Remember, the first character of IFS is used to create $*, |
---|
2140 | # except with old shells: |
---|
2141 | build_os=$* |
---|
2142 | IFS=$ac_save_IFS |
---|
2143 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2144 | |
---|
2145 | |
---|
2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
2147 | $as_echo_n "checking host system type... " >&6; } |
---|
2148 | if test "${ac_cv_host+set}" = set; then : |
---|
2149 | $as_echo_n "(cached) " >&6 |
---|
2150 | else |
---|
2151 | if test "x$host_alias" = x; then |
---|
2152 | ac_cv_host=$ac_cv_build |
---|
2153 | else |
---|
2154 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2155 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
2156 | fi |
---|
2157 | |
---|
2158 | fi |
---|
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
2160 | $as_echo "$ac_cv_host" >&6; } |
---|
2161 | case $ac_cv_host in |
---|
2162 | *-*-*) ;; |
---|
2163 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
---|
2164 | esac |
---|
2165 | host=$ac_cv_host |
---|
2166 | ac_save_IFS=$IFS; IFS='-' |
---|
2167 | set x $ac_cv_host |
---|
2168 | shift |
---|
2169 | host_cpu=$1 |
---|
2170 | host_vendor=$2 |
---|
2171 | shift; shift |
---|
2172 | # Remember, the first character of IFS is used to create $*, |
---|
2173 | # except with old shells: |
---|
2174 | host_os=$* |
---|
2175 | IFS=$ac_save_IFS |
---|
2176 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2177 | |
---|
2178 | |
---|
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
---|
2180 | $as_echo_n "checking target system type... " >&6; } |
---|
2181 | if test "${ac_cv_target+set}" = set; then : |
---|
2182 | $as_echo_n "(cached) " >&6 |
---|
2183 | else |
---|
2184 | if test "x$target_alias" = x; then |
---|
2185 | ac_cv_target=$ac_cv_host |
---|
2186 | else |
---|
2187 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
---|
2188 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
---|
2189 | fi |
---|
2190 | |
---|
2191 | fi |
---|
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
---|
2193 | $as_echo "$ac_cv_target" >&6; } |
---|
2194 | case $ac_cv_target in |
---|
2195 | *-*-*) ;; |
---|
2196 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
---|
2197 | esac |
---|
2198 | target=$ac_cv_target |
---|
2199 | ac_save_IFS=$IFS; IFS='-' |
---|
2200 | set x $ac_cv_target |
---|
2201 | shift |
---|
2202 | target_cpu=$1 |
---|
2203 | target_vendor=$2 |
---|
2204 | shift; shift |
---|
2205 | # Remember, the first character of IFS is used to create $*, |
---|
2206 | # except with old shells: |
---|
2207 | target_os=$* |
---|
2208 | IFS=$ac_save_IFS |
---|
2209 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
---|
2210 | |
---|
2211 | |
---|
2212 | # The aliases save the names the user supplied, while $host etc. |
---|
2213 | # will get canonicalized. |
---|
2214 | test -n "$target_alias" && |
---|
2215 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
2216 | NONENONEs,x,x, && |
---|
2217 | program_prefix=${target_alias}- |
---|
2218 | |
---|
2219 | |
---|
2220 | # Find a good install program. We prefer a C program (faster), |
---|
2221 | # so one script is as good as another. But avoid the broken or |
---|
2222 | # incompatible versions: |
---|
2223 | # SysV /etc/install, /usr/sbin/install |
---|
2224 | # SunOS /usr/etc/install |
---|
2225 | # IRIX /sbin/install |
---|
2226 | # AIX /bin/install |
---|
2227 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2228 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2229 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2230 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2231 | # OS/2's system install, which has a completely different semantic |
---|
2232 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2233 | # Reject install programs that cannot install multiple files. |
---|
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2235 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2236 | if test -z "$INSTALL"; then |
---|
2237 | if test "${ac_cv_path_install+set}" = set; then : |
---|
2238 | $as_echo_n "(cached) " >&6 |
---|
2239 | else |
---|
2240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2241 | for as_dir in $PATH |
---|
2242 | do |
---|
2243 | IFS=$as_save_IFS |
---|
2244 | test -z "$as_dir" && as_dir=. |
---|
2245 | # Account for people who put trailing slashes in PATH elements. |
---|
2246 | case $as_dir/ in #(( |
---|
2247 | ./ | .// | /[cC]/* | \ |
---|
2248 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2249 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2250 | /usr/ucb/* ) ;; |
---|
2251 | *) |
---|
2252 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2253 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2254 | # by default. |
---|
2255 | for ac_prog in ginstall scoinst install; do |
---|
2256 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2257 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2258 | if test $ac_prog = install && |
---|
2259 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2260 | # AIX install. It has an incompatible calling convention. |
---|
2261 | : |
---|
2262 | elif test $ac_prog = install && |
---|
2263 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2264 | # program-specific install script used by HP pwplus--don't use. |
---|
2265 | : |
---|
2266 | else |
---|
2267 | rm -rf conftest.one conftest.two conftest.dir |
---|
2268 | echo one > conftest.one |
---|
2269 | echo two > conftest.two |
---|
2270 | mkdir conftest.dir |
---|
2271 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2272 | test -s conftest.one && test -s conftest.two && |
---|
2273 | test -s conftest.dir/conftest.one && |
---|
2274 | test -s conftest.dir/conftest.two |
---|
2275 | then |
---|
2276 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2277 | break 3 |
---|
2278 | fi |
---|
2279 | fi |
---|
2280 | fi |
---|
2281 | done |
---|
2282 | done |
---|
2283 | ;; |
---|
2284 | esac |
---|
2285 | |
---|
2286 | done |
---|
2287 | IFS=$as_save_IFS |
---|
2288 | |
---|
2289 | rm -rf conftest.one conftest.two conftest.dir |
---|
2290 | |
---|
2291 | fi |
---|
2292 | if test "${ac_cv_path_install+set}" = set; then |
---|
2293 | INSTALL=$ac_cv_path_install |
---|
2294 | else |
---|
2295 | # As a last resort, use the slow shell script. Don't cache a |
---|
2296 | # value for INSTALL within a source directory, because that will |
---|
2297 | # break other packages using the cache if that directory is |
---|
2298 | # removed, or if the value is a relative name. |
---|
2299 | INSTALL=$ac_install_sh |
---|
2300 | fi |
---|
2301 | fi |
---|
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2303 | $as_echo "$INSTALL" >&6; } |
---|
2304 | |
---|
2305 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2306 | # It thinks the first close brace ends the variable substitution. |
---|
2307 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2308 | |
---|
2309 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2310 | |
---|
2311 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2312 | |
---|
2313 | |
---|
2314 | if test -n "$ac_tool_prefix"; then |
---|
2315 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2316 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2318 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2319 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
---|
2320 | $as_echo_n "(cached) " >&6 |
---|
2321 | else |
---|
2322 | if test -n "$RANLIB"; then |
---|
2323 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2324 | else |
---|
2325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2326 | for as_dir in $PATH |
---|
2327 | do |
---|
2328 | IFS=$as_save_IFS |
---|
2329 | test -z "$as_dir" && as_dir=. |
---|
2330 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2332 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2334 | break 2 |
---|
2335 | fi |
---|
2336 | done |
---|
2337 | done |
---|
2338 | IFS=$as_save_IFS |
---|
2339 | |
---|
2340 | fi |
---|
2341 | fi |
---|
2342 | RANLIB=$ac_cv_prog_RANLIB |
---|
2343 | if test -n "$RANLIB"; then |
---|
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
2345 | $as_echo "$RANLIB" >&6; } |
---|
2346 | else |
---|
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2348 | $as_echo "no" >&6; } |
---|
2349 | fi |
---|
2350 | |
---|
2351 | |
---|
2352 | fi |
---|
2353 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2354 | ac_ct_RANLIB=$RANLIB |
---|
2355 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2356 | set dummy ranlib; ac_word=$2 |
---|
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2358 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2359 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
---|
2360 | $as_echo_n "(cached) " >&6 |
---|
2361 | else |
---|
2362 | if test -n "$ac_ct_RANLIB"; then |
---|
2363 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2364 | else |
---|
2365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2366 | for as_dir in $PATH |
---|
2367 | do |
---|
2368 | IFS=$as_save_IFS |
---|
2369 | test -z "$as_dir" && as_dir=. |
---|
2370 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2372 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2374 | break 2 |
---|
2375 | fi |
---|
2376 | done |
---|
2377 | done |
---|
2378 | IFS=$as_save_IFS |
---|
2379 | |
---|
2380 | fi |
---|
2381 | fi |
---|
2382 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2383 | if test -n "$ac_ct_RANLIB"; then |
---|
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
2385 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2386 | else |
---|
2387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2388 | $as_echo "no" >&6; } |
---|
2389 | fi |
---|
2390 | |
---|
2391 | if test "x$ac_ct_RANLIB" = x; then |
---|
2392 | RANLIB=":" |
---|
2393 | else |
---|
2394 | case $cross_compiling:$ac_tool_warned in |
---|
2395 | yes:) |
---|
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2398 | ac_tool_warned=yes ;; |
---|
2399 | esac |
---|
2400 | RANLIB=$ac_ct_RANLIB |
---|
2401 | fi |
---|
2402 | else |
---|
2403 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2404 | fi |
---|
2405 | |
---|
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
2407 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
2408 | LN_S=$as_ln_s |
---|
2409 | if test "$LN_S" = "ln -s"; then |
---|
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2411 | $as_echo "yes" >&6; } |
---|
2412 | else |
---|
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
2414 | $as_echo "no, using $LN_S" >&6; } |
---|
2415 | fi |
---|
2416 | |
---|
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2418 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2419 | if test -z "$MKDIR_P"; then |
---|
2420 | if test "${ac_cv_path_mkdir+set}" = set; then : |
---|
2421 | $as_echo_n "(cached) " >&6 |
---|
2422 | else |
---|
2423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2424 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2425 | do |
---|
2426 | IFS=$as_save_IFS |
---|
2427 | test -z "$as_dir" && as_dir=. |
---|
2428 | for ac_prog in mkdir gmkdir; do |
---|
2429 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2430 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2431 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2432 | 'mkdir (GNU coreutils) '* | \ |
---|
2433 | 'mkdir (coreutils) '* | \ |
---|
2434 | 'mkdir (fileutils) '4.1*) |
---|
2435 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2436 | break 3;; |
---|
2437 | esac |
---|
2438 | done |
---|
2439 | done |
---|
2440 | done |
---|
2441 | IFS=$as_save_IFS |
---|
2442 | |
---|
2443 | fi |
---|
2444 | |
---|
2445 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2446 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2447 | else |
---|
2448 | # As a last resort, use the slow shell script. Don't cache a |
---|
2449 | # value for MKDIR_P within a source directory, because that will |
---|
2450 | # break other packages using the cache if that directory is |
---|
2451 | # removed, or if the value is a relative name. |
---|
2452 | test -d ./--version && rmdir ./--version |
---|
2453 | MKDIR_P="$ac_install_sh -d" |
---|
2454 | fi |
---|
2455 | fi |
---|
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2457 | $as_echo "$MKDIR_P" >&6; } |
---|
2458 | |
---|
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2460 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2461 | set x ${MAKE-make} |
---|
2462 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2463 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
2464 | $as_echo_n "(cached) " >&6 |
---|
2465 | else |
---|
2466 | cat >conftest.make <<\_ACEOF |
---|
2467 | SHELL = /bin/sh |
---|
2468 | all: |
---|
2469 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2470 | _ACEOF |
---|
2471 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
2472 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2473 | *@@@%%%=?*=@@@%%%*) |
---|
2474 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2475 | *) |
---|
2476 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2477 | esac |
---|
2478 | rm -f conftest.make |
---|
2479 | fi |
---|
2480 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2482 | $as_echo "yes" >&6; } |
---|
2483 | SET_MAKE= |
---|
2484 | else |
---|
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2486 | $as_echo "no" >&6; } |
---|
2487 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2488 | fi |
---|
2489 | |
---|
2490 | ac_ext=c |
---|
2491 | ac_cpp='$CPP $CPPFLAGS' |
---|
2492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2495 | if test -n "$ac_tool_prefix"; then |
---|
2496 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2497 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2499 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2500 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2501 | $as_echo_n "(cached) " >&6 |
---|
2502 | else |
---|
2503 | if test -n "$CC"; then |
---|
2504 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2505 | else |
---|
2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2507 | for as_dir in $PATH |
---|
2508 | do |
---|
2509 | IFS=$as_save_IFS |
---|
2510 | test -z "$as_dir" && as_dir=. |
---|
2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2513 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2515 | break 2 |
---|
2516 | fi |
---|
2517 | done |
---|
2518 | done |
---|
2519 | IFS=$as_save_IFS |
---|
2520 | |
---|
2521 | fi |
---|
2522 | fi |
---|
2523 | CC=$ac_cv_prog_CC |
---|
2524 | if test -n "$CC"; then |
---|
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2526 | $as_echo "$CC" >&6; } |
---|
2527 | else |
---|
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2529 | $as_echo "no" >&6; } |
---|
2530 | fi |
---|
2531 | |
---|
2532 | |
---|
2533 | fi |
---|
2534 | if test -z "$ac_cv_prog_CC"; then |
---|
2535 | ac_ct_CC=$CC |
---|
2536 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2537 | set dummy gcc; ac_word=$2 |
---|
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2539 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2540 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
---|
2541 | $as_echo_n "(cached) " >&6 |
---|
2542 | else |
---|
2543 | if test -n "$ac_ct_CC"; then |
---|
2544 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2545 | else |
---|
2546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2547 | for as_dir in $PATH |
---|
2548 | do |
---|
2549 | IFS=$as_save_IFS |
---|
2550 | test -z "$as_dir" && as_dir=. |
---|
2551 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2553 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2555 | break 2 |
---|
2556 | fi |
---|
2557 | done |
---|
2558 | done |
---|
2559 | IFS=$as_save_IFS |
---|
2560 | |
---|
2561 | fi |
---|
2562 | fi |
---|
2563 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2564 | if test -n "$ac_ct_CC"; then |
---|
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2566 | $as_echo "$ac_ct_CC" >&6; } |
---|
2567 | else |
---|
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2569 | $as_echo "no" >&6; } |
---|
2570 | fi |
---|
2571 | |
---|
2572 | if test "x$ac_ct_CC" = x; then |
---|
2573 | CC="" |
---|
2574 | else |
---|
2575 | case $cross_compiling:$ac_tool_warned in |
---|
2576 | yes:) |
---|
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2578 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2579 | ac_tool_warned=yes ;; |
---|
2580 | esac |
---|
2581 | CC=$ac_ct_CC |
---|
2582 | fi |
---|
2583 | else |
---|
2584 | CC="$ac_cv_prog_CC" |
---|
2585 | fi |
---|
2586 | |
---|
2587 | if test -z "$CC"; then |
---|
2588 | if test -n "$ac_tool_prefix"; then |
---|
2589 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2590 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2592 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2593 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2594 | $as_echo_n "(cached) " >&6 |
---|
2595 | else |
---|
2596 | if test -n "$CC"; then |
---|
2597 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2598 | else |
---|
2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2600 | for as_dir in $PATH |
---|
2601 | do |
---|
2602 | IFS=$as_save_IFS |
---|
2603 | test -z "$as_dir" && as_dir=. |
---|
2604 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2606 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2608 | break 2 |
---|
2609 | fi |
---|
2610 | done |
---|
2611 | done |
---|
2612 | IFS=$as_save_IFS |
---|
2613 | |
---|
2614 | fi |
---|
2615 | fi |
---|
2616 | CC=$ac_cv_prog_CC |
---|
2617 | if test -n "$CC"; then |
---|
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2619 | $as_echo "$CC" >&6; } |
---|
2620 | else |
---|
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2622 | $as_echo "no" >&6; } |
---|
2623 | fi |
---|
2624 | |
---|
2625 | |
---|
2626 | fi |
---|
2627 | fi |
---|
2628 | if test -z "$CC"; then |
---|
2629 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2630 | set dummy cc; ac_word=$2 |
---|
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2632 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2633 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2634 | $as_echo_n "(cached) " >&6 |
---|
2635 | else |
---|
2636 | if test -n "$CC"; then |
---|
2637 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2638 | else |
---|
2639 | ac_prog_rejected=no |
---|
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2641 | for as_dir in $PATH |
---|
2642 | do |
---|
2643 | IFS=$as_save_IFS |
---|
2644 | test -z "$as_dir" && as_dir=. |
---|
2645 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2647 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2648 | ac_prog_rejected=yes |
---|
2649 | continue |
---|
2650 | fi |
---|
2651 | ac_cv_prog_CC="cc" |
---|
2652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2653 | break 2 |
---|
2654 | fi |
---|
2655 | done |
---|
2656 | done |
---|
2657 | IFS=$as_save_IFS |
---|
2658 | |
---|
2659 | if test $ac_prog_rejected = yes; then |
---|
2660 | # We found a bogon in the path, so make sure we never use it. |
---|
2661 | set dummy $ac_cv_prog_CC |
---|
2662 | shift |
---|
2663 | if test $# != 0; then |
---|
2664 | # We chose a different compiler from the bogus one. |
---|
2665 | # However, it has the same basename, so the bogon will be chosen |
---|
2666 | # first if we set CC to just the basename; use the full file name. |
---|
2667 | shift |
---|
2668 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2669 | fi |
---|
2670 | fi |
---|
2671 | fi |
---|
2672 | fi |
---|
2673 | CC=$ac_cv_prog_CC |
---|
2674 | if test -n "$CC"; then |
---|
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2676 | $as_echo "$CC" >&6; } |
---|
2677 | else |
---|
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2679 | $as_echo "no" >&6; } |
---|
2680 | fi |
---|
2681 | |
---|
2682 | |
---|
2683 | fi |
---|
2684 | if test -z "$CC"; then |
---|
2685 | if test -n "$ac_tool_prefix"; then |
---|
2686 | for ac_prog in cl.exe |
---|
2687 | do |
---|
2688 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2689 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2691 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2692 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2693 | $as_echo_n "(cached) " >&6 |
---|
2694 | else |
---|
2695 | if test -n "$CC"; then |
---|
2696 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2697 | else |
---|
2698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2699 | for as_dir in $PATH |
---|
2700 | do |
---|
2701 | IFS=$as_save_IFS |
---|
2702 | test -z "$as_dir" && as_dir=. |
---|
2703 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2705 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2707 | break 2 |
---|
2708 | fi |
---|
2709 | done |
---|
2710 | done |
---|
2711 | IFS=$as_save_IFS |
---|
2712 | |
---|
2713 | fi |
---|
2714 | fi |
---|
2715 | CC=$ac_cv_prog_CC |
---|
2716 | if test -n "$CC"; then |
---|
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2718 | $as_echo "$CC" >&6; } |
---|
2719 | else |
---|
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2721 | $as_echo "no" >&6; } |
---|
2722 | fi |
---|
2723 | |
---|
2724 | |
---|
2725 | test -n "$CC" && break |
---|
2726 | done |
---|
2727 | fi |
---|
2728 | if test -z "$CC"; then |
---|
2729 | ac_ct_CC=$CC |
---|
2730 | for ac_prog in cl.exe |
---|
2731 | do |
---|
2732 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2733 | set dummy $ac_prog; ac_word=$2 |
---|
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2735 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
---|
2737 | $as_echo_n "(cached) " >&6 |
---|
2738 | else |
---|
2739 | if test -n "$ac_ct_CC"; then |
---|
2740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2741 | else |
---|
2742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2743 | for as_dir in $PATH |
---|
2744 | do |
---|
2745 | IFS=$as_save_IFS |
---|
2746 | test -z "$as_dir" && as_dir=. |
---|
2747 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2749 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2751 | break 2 |
---|
2752 | fi |
---|
2753 | done |
---|
2754 | done |
---|
2755 | IFS=$as_save_IFS |
---|
2756 | |
---|
2757 | fi |
---|
2758 | fi |
---|
2759 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2760 | if test -n "$ac_ct_CC"; then |
---|
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2762 | $as_echo "$ac_ct_CC" >&6; } |
---|
2763 | else |
---|
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2765 | $as_echo "no" >&6; } |
---|
2766 | fi |
---|
2767 | |
---|
2768 | |
---|
2769 | test -n "$ac_ct_CC" && break |
---|
2770 | done |
---|
2771 | |
---|
2772 | if test "x$ac_ct_CC" = x; then |
---|
2773 | CC="" |
---|
2774 | else |
---|
2775 | case $cross_compiling:$ac_tool_warned in |
---|
2776 | yes:) |
---|
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2778 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2779 | ac_tool_warned=yes ;; |
---|
2780 | esac |
---|
2781 | CC=$ac_ct_CC |
---|
2782 | fi |
---|
2783 | fi |
---|
2784 | |
---|
2785 | fi |
---|
2786 | |
---|
2787 | |
---|
2788 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2789 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2790 | as_fn_error "no acceptable C compiler found in \$PATH |
---|
2791 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2792 | |
---|
2793 | # Provide some information about the compiler. |
---|
2794 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
2795 | set X $ac_compile |
---|
2796 | ac_compiler=$2 |
---|
2797 | for ac_option in --version -v -V -qversion; do |
---|
2798 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2799 | case "(($ac_try" in |
---|
2800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2801 | *) ac_try_echo=$ac_try;; |
---|
2802 | esac |
---|
2803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2804 | $as_echo "$ac_try_echo"; } >&5 |
---|
2805 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2806 | ac_status=$? |
---|
2807 | if test -s conftest.err; then |
---|
2808 | sed '10a\ |
---|
2809 | ... rest of stderr output deleted ... |
---|
2810 | 10q' conftest.err >conftest.er1 |
---|
2811 | cat conftest.er1 >&5 |
---|
2812 | rm -f conftest.er1 conftest.err |
---|
2813 | fi |
---|
2814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2815 | test $ac_status = 0; } |
---|
2816 | done |
---|
2817 | |
---|
2818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2819 | /* end confdefs.h. */ |
---|
2820 | #include <stdio.h> |
---|
2821 | int |
---|
2822 | main () |
---|
2823 | { |
---|
2824 | FILE *f = fopen ("conftest.out", "w"); |
---|
2825 | return ferror (f) || fclose (f) != 0; |
---|
2826 | |
---|
2827 | ; |
---|
2828 | return 0; |
---|
2829 | } |
---|
2830 | _ACEOF |
---|
2831 | ac_clean_files_save=$ac_clean_files |
---|
2832 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
---|
2833 | # Try to create an executable without -o first, disregard a.out. |
---|
2834 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2835 | # of exeext. |
---|
2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
2837 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
2838 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2839 | |
---|
2840 | # The possible output files: |
---|
2841 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2842 | |
---|
2843 | ac_rmfiles= |
---|
2844 | for ac_file in $ac_files |
---|
2845 | do |
---|
2846 | case $ac_file in |
---|
2847 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2848 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2849 | esac |
---|
2850 | done |
---|
2851 | rm -f $ac_rmfiles |
---|
2852 | |
---|
2853 | if { { ac_try="$ac_link_default" |
---|
2854 | case "(($ac_try" in |
---|
2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2856 | *) ac_try_echo=$ac_try;; |
---|
2857 | esac |
---|
2858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2859 | $as_echo "$ac_try_echo"; } >&5 |
---|
2860 | (eval "$ac_link_default") 2>&5 |
---|
2861 | ac_status=$? |
---|
2862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2863 | test $ac_status = 0; }; then : |
---|
2864 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2865 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2866 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2867 | # so that the user can short-circuit this test for compilers unknown to |
---|
2868 | # Autoconf. |
---|
2869 | for ac_file in $ac_files '' |
---|
2870 | do |
---|
2871 | test -f "$ac_file" || continue |
---|
2872 | case $ac_file in |
---|
2873 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2874 | ;; |
---|
2875 | [ab].out ) |
---|
2876 | # We found the default executable, but exeext='' is most |
---|
2877 | # certainly right. |
---|
2878 | break;; |
---|
2879 | *.* ) |
---|
2880 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2881 | then :; else |
---|
2882 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2883 | fi |
---|
2884 | # We set ac_cv_exeext here because the later test for it is not |
---|
2885 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2886 | # argument, so we may need to know it at that point already. |
---|
2887 | # Even if this section looks crufty: it has the advantage of |
---|
2888 | # actually working. |
---|
2889 | break;; |
---|
2890 | * ) |
---|
2891 | break;; |
---|
2892 | esac |
---|
2893 | done |
---|
2894 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2895 | |
---|
2896 | else |
---|
2897 | ac_file='' |
---|
2898 | fi |
---|
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2900 | $as_echo "$ac_file" >&6; } |
---|
2901 | if test -z "$ac_file"; then : |
---|
2902 | $as_echo "$as_me: failed program was:" >&5 |
---|
2903 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2904 | |
---|
2905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2906 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2907 | { as_fn_set_status 77 |
---|
2908 | as_fn_error "C compiler cannot create executables |
---|
2909 | See \`config.log' for more details." "$LINENO" 5; }; } |
---|
2910 | fi |
---|
2911 | ac_exeext=$ac_cv_exeext |
---|
2912 | |
---|
2913 | # Check that the compiler produces executables we can run. If not, either |
---|
2914 | # the compiler is broken, or we cross compile. |
---|
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
2916 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
2917 | # If not cross compiling, check that we can run a simple program. |
---|
2918 | if test "$cross_compiling" != yes; then |
---|
2919 | if { ac_try='./$ac_file' |
---|
2920 | { { case "(($ac_try" in |
---|
2921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2922 | *) ac_try_echo=$ac_try;; |
---|
2923 | esac |
---|
2924 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2925 | $as_echo "$ac_try_echo"; } >&5 |
---|
2926 | (eval "$ac_try") 2>&5 |
---|
2927 | ac_status=$? |
---|
2928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2929 | test $ac_status = 0; }; }; then |
---|
2930 | cross_compiling=no |
---|
2931 | else |
---|
2932 | if test "$cross_compiling" = maybe; then |
---|
2933 | cross_compiling=yes |
---|
2934 | else |
---|
2935 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2936 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2937 | as_fn_error "cannot run C compiled programs. |
---|
2938 | If you meant to cross compile, use \`--host'. |
---|
2939 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2940 | fi |
---|
2941 | fi |
---|
2942 | fi |
---|
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2944 | $as_echo "yes" >&6; } |
---|
2945 | |
---|
2946 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
---|
2947 | ac_clean_files=$ac_clean_files_save |
---|
2948 | # Check that the compiler produces executables we can run. If not, either |
---|
2949 | # the compiler is broken, or we cross compile. |
---|
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
2951 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
2953 | $as_echo "$cross_compiling" >&6; } |
---|
2954 | |
---|
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2956 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2957 | if { { ac_try="$ac_link" |
---|
2958 | case "(($ac_try" in |
---|
2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2960 | *) ac_try_echo=$ac_try;; |
---|
2961 | esac |
---|
2962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2963 | $as_echo "$ac_try_echo"; } >&5 |
---|
2964 | (eval "$ac_link") 2>&5 |
---|
2965 | ac_status=$? |
---|
2966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2967 | test $ac_status = 0; }; then : |
---|
2968 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2969 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2970 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2971 | # `rm'. |
---|
2972 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2973 | test -f "$ac_file" || continue |
---|
2974 | case $ac_file in |
---|
2975 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2976 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2977 | break;; |
---|
2978 | * ) break;; |
---|
2979 | esac |
---|
2980 | done |
---|
2981 | else |
---|
2982 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2983 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2984 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
---|
2985 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2986 | fi |
---|
2987 | rm -f conftest$ac_cv_exeext |
---|
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2989 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2990 | |
---|
2991 | rm -f conftest.$ac_ext |
---|
2992 | EXEEXT=$ac_cv_exeext |
---|
2993 | ac_exeext=$EXEEXT |
---|
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
2995 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
2996 | if test "${ac_cv_objext+set}" = set; then : |
---|
2997 | $as_echo_n "(cached) " >&6 |
---|
2998 | else |
---|
2999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3000 | /* end confdefs.h. */ |
---|
3001 | |
---|
3002 | int |
---|
3003 | main () |
---|
3004 | { |
---|
3005 | |
---|
3006 | ; |
---|
3007 | return 0; |
---|
3008 | } |
---|
3009 | _ACEOF |
---|
3010 | rm -f conftest.o conftest.obj |
---|
3011 | if { { ac_try="$ac_compile" |
---|
3012 | case "(($ac_try" in |
---|
3013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3014 | *) ac_try_echo=$ac_try;; |
---|
3015 | esac |
---|
3016 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3017 | $as_echo "$ac_try_echo"; } >&5 |
---|
3018 | (eval "$ac_compile") 2>&5 |
---|
3019 | ac_status=$? |
---|
3020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3021 | test $ac_status = 0; }; then : |
---|
3022 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3023 | test -f "$ac_file" || continue; |
---|
3024 | case $ac_file in |
---|
3025 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3026 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3027 | break;; |
---|
3028 | esac |
---|
3029 | done |
---|
3030 | else |
---|
3031 | $as_echo "$as_me: failed program was:" >&5 |
---|
3032 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3033 | |
---|
3034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3036 | as_fn_error "cannot compute suffix of object files: cannot compile |
---|
3037 | See \`config.log' for more details." "$LINENO" 5; } |
---|
3038 | fi |
---|
3039 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3040 | fi |
---|
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3042 | $as_echo "$ac_cv_objext" >&6; } |
---|
3043 | OBJEXT=$ac_cv_objext |
---|
3044 | ac_objext=$OBJEXT |
---|
3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3046 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3047 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
---|
3048 | $as_echo_n "(cached) " >&6 |
---|
3049 | else |
---|
3050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3051 | /* end confdefs.h. */ |
---|
3052 | |
---|
3053 | int |
---|
3054 | main () |
---|
3055 | { |
---|
3056 | #ifndef __GNUC__ |
---|
3057 | choke me |
---|
3058 | #endif |
---|
3059 | |
---|
3060 | ; |
---|
3061 | return 0; |
---|
3062 | } |
---|
3063 | _ACEOF |
---|
3064 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3065 | ac_compiler_gnu=yes |
---|
3066 | else |
---|
3067 | ac_compiler_gnu=no |
---|
3068 | fi |
---|
3069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3070 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3071 | |
---|
3072 | fi |
---|
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3074 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3075 | if test $ac_compiler_gnu = yes; then |
---|
3076 | GCC=yes |
---|
3077 | else |
---|
3078 | GCC= |
---|
3079 | fi |
---|
3080 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3081 | ac_save_CFLAGS=$CFLAGS |
---|
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3083 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3084 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
---|
3085 | $as_echo_n "(cached) " >&6 |
---|
3086 | else |
---|
3087 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3088 | ac_c_werror_flag=yes |
---|
3089 | ac_cv_prog_cc_g=no |
---|
3090 | CFLAGS="-g" |
---|
3091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3092 | /* end confdefs.h. */ |
---|
3093 | |
---|
3094 | int |
---|
3095 | main () |
---|
3096 | { |
---|
3097 | |
---|
3098 | ; |
---|
3099 | return 0; |
---|
3100 | } |
---|
3101 | _ACEOF |
---|
3102 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3103 | ac_cv_prog_cc_g=yes |
---|
3104 | else |
---|
3105 | CFLAGS="" |
---|
3106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3107 | /* end confdefs.h. */ |
---|
3108 | |
---|
3109 | int |
---|
3110 | main () |
---|
3111 | { |
---|
3112 | |
---|
3113 | ; |
---|
3114 | return 0; |
---|
3115 | } |
---|
3116 | _ACEOF |
---|
3117 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3118 | |
---|
3119 | else |
---|
3120 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3121 | CFLAGS="-g" |
---|
3122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3123 | /* end confdefs.h. */ |
---|
3124 | |
---|
3125 | int |
---|
3126 | main () |
---|
3127 | { |
---|
3128 | |
---|
3129 | ; |
---|
3130 | return 0; |
---|
3131 | } |
---|
3132 | _ACEOF |
---|
3133 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3134 | ac_cv_prog_cc_g=yes |
---|
3135 | fi |
---|
3136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3137 | fi |
---|
3138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3139 | fi |
---|
3140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3141 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3142 | fi |
---|
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3144 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3145 | if test "$ac_test_CFLAGS" = set; then |
---|
3146 | CFLAGS=$ac_save_CFLAGS |
---|
3147 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3148 | if test "$GCC" = yes; then |
---|
3149 | CFLAGS="-g -O2" |
---|
3150 | else |
---|
3151 | CFLAGS="-g" |
---|
3152 | fi |
---|
3153 | else |
---|
3154 | if test "$GCC" = yes; then |
---|
3155 | CFLAGS="-O2" |
---|
3156 | else |
---|
3157 | CFLAGS= |
---|
3158 | fi |
---|
3159 | fi |
---|
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3161 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3162 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
---|
3163 | $as_echo_n "(cached) " >&6 |
---|
3164 | else |
---|
3165 | ac_cv_prog_cc_c89=no |
---|
3166 | ac_save_CC=$CC |
---|
3167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3168 | /* end confdefs.h. */ |
---|
3169 | #include <stdarg.h> |
---|
3170 | #include <stdio.h> |
---|
3171 | #include <sys/types.h> |
---|
3172 | #include <sys/stat.h> |
---|
3173 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3174 | struct buf { int x; }; |
---|
3175 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3176 | static char *e (p, i) |
---|
3177 | char **p; |
---|
3178 | int i; |
---|
3179 | { |
---|
3180 | return p[i]; |
---|
3181 | } |
---|
3182 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3183 | { |
---|
3184 | char *s; |
---|
3185 | va_list v; |
---|
3186 | va_start (v,p); |
---|
3187 | s = g (p, va_arg (v,int)); |
---|
3188 | va_end (v); |
---|
3189 | return s; |
---|
3190 | } |
---|
3191 | |
---|
3192 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3193 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3194 | These don't provoke an error unfortunately, instead are silently treated |
---|
3195 | as 'x'. The following induces an error, until -std is added to get |
---|
3196 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3197 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3198 | that's true only with -std. */ |
---|
3199 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3200 | |
---|
3201 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3202 | inside strings and character constants. */ |
---|
3203 | #define FOO(x) 'x' |
---|
3204 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3205 | |
---|
3206 | int test (int i, double x); |
---|
3207 | struct s1 {int (*f) (int a);}; |
---|
3208 | struct s2 {int (*f) (double a);}; |
---|
3209 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3210 | int argc; |
---|
3211 | char **argv; |
---|
3212 | int |
---|
3213 | main () |
---|
3214 | { |
---|
3215 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3216 | ; |
---|
3217 | return 0; |
---|
3218 | } |
---|
3219 | _ACEOF |
---|
3220 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3221 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3222 | do |
---|
3223 | CC="$ac_save_CC $ac_arg" |
---|
3224 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3225 | ac_cv_prog_cc_c89=$ac_arg |
---|
3226 | fi |
---|
3227 | rm -f core conftest.err conftest.$ac_objext |
---|
3228 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3229 | done |
---|
3230 | rm -f conftest.$ac_ext |
---|
3231 | CC=$ac_save_CC |
---|
3232 | |
---|
3233 | fi |
---|
3234 | # AC_CACHE_VAL |
---|
3235 | case "x$ac_cv_prog_cc_c89" in |
---|
3236 | x) |
---|
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3238 | $as_echo "none needed" >&6; } ;; |
---|
3239 | xno) |
---|
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3241 | $as_echo "unsupported" >&6; } ;; |
---|
3242 | *) |
---|
3243 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3245 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3246 | esac |
---|
3247 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3248 | |
---|
3249 | fi |
---|
3250 | |
---|
3251 | ac_ext=c |
---|
3252 | ac_cpp='$CPP $CPPFLAGS' |
---|
3253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3256 | |
---|
3257 | |
---|
3258 | |
---|
3259 | ac_ext=c |
---|
3260 | ac_cpp='$CPP $CPPFLAGS' |
---|
3261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
3265 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
3266 | # On Suns, sometimes $CPP names a directory. |
---|
3267 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3268 | CPP= |
---|
3269 | fi |
---|
3270 | if test -z "$CPP"; then |
---|
3271 | if test "${ac_cv_prog_CPP+set}" = set; then : |
---|
3272 | $as_echo_n "(cached) " >&6 |
---|
3273 | else |
---|
3274 | # Double quotes because CPP needs to be expanded |
---|
3275 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3276 | do |
---|
3277 | ac_preproc_ok=false |
---|
3278 | for ac_c_preproc_warn_flag in '' yes |
---|
3279 | do |
---|
3280 | # Use a header file that comes with gcc, so configuring glibc |
---|
3281 | # with a fresh cross-compiler works. |
---|
3282 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3283 | # <limits.h> exists even on freestanding compilers. |
---|
3284 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3285 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3287 | /* end confdefs.h. */ |
---|
3288 | #ifdef __STDC__ |
---|
3289 | # include <limits.h> |
---|
3290 | #else |
---|
3291 | # include <assert.h> |
---|
3292 | #endif |
---|
3293 | Syntax error |
---|
3294 | _ACEOF |
---|
3295 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3296 | |
---|
3297 | else |
---|
3298 | # Broken: fails on valid input. |
---|
3299 | continue |
---|
3300 | fi |
---|
3301 | rm -f conftest.err conftest.$ac_ext |
---|
3302 | |
---|
3303 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3304 | # can be detected and how. |
---|
3305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3306 | /* end confdefs.h. */ |
---|
3307 | #include <ac_nonexistent.h> |
---|
3308 | _ACEOF |
---|
3309 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3310 | # Broken: success on invalid input. |
---|
3311 | continue |
---|
3312 | else |
---|
3313 | # Passes both tests. |
---|
3314 | ac_preproc_ok=: |
---|
3315 | break |
---|
3316 | fi |
---|
3317 | rm -f conftest.err conftest.$ac_ext |
---|
3318 | |
---|
3319 | done |
---|
3320 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3321 | rm -f conftest.err conftest.$ac_ext |
---|
3322 | if $ac_preproc_ok; then : |
---|
3323 | break |
---|
3324 | fi |
---|
3325 | |
---|
3326 | done |
---|
3327 | ac_cv_prog_CPP=$CPP |
---|
3328 | |
---|
3329 | fi |
---|
3330 | CPP=$ac_cv_prog_CPP |
---|
3331 | else |
---|
3332 | ac_cv_prog_CPP=$CPP |
---|
3333 | fi |
---|
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
3335 | $as_echo "$CPP" >&6; } |
---|
3336 | ac_preproc_ok=false |
---|
3337 | for ac_c_preproc_warn_flag in '' yes |
---|
3338 | do |
---|
3339 | # Use a header file that comes with gcc, so configuring glibc |
---|
3340 | # with a fresh cross-compiler works. |
---|
3341 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3342 | # <limits.h> exists even on freestanding compilers. |
---|
3343 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3344 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3346 | /* end confdefs.h. */ |
---|
3347 | #ifdef __STDC__ |
---|
3348 | # include <limits.h> |
---|
3349 | #else |
---|
3350 | # include <assert.h> |
---|
3351 | #endif |
---|
3352 | Syntax error |
---|
3353 | _ACEOF |
---|
3354 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3355 | |
---|
3356 | else |
---|
3357 | # Broken: fails on valid input. |
---|
3358 | continue |
---|
3359 | fi |
---|
3360 | rm -f conftest.err conftest.$ac_ext |
---|
3361 | |
---|
3362 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3363 | # can be detected and how. |
---|
3364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3365 | /* end confdefs.h. */ |
---|
3366 | #include <ac_nonexistent.h> |
---|
3367 | _ACEOF |
---|
3368 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3369 | # Broken: success on invalid input. |
---|
3370 | continue |
---|
3371 | else |
---|
3372 | # Passes both tests. |
---|
3373 | ac_preproc_ok=: |
---|
3374 | break |
---|
3375 | fi |
---|
3376 | rm -f conftest.err conftest.$ac_ext |
---|
3377 | |
---|
3378 | done |
---|
3379 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3380 | rm -f conftest.err conftest.$ac_ext |
---|
3381 | if $ac_preproc_ok; then : |
---|
3382 | |
---|
3383 | else |
---|
3384 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3385 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3386 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
---|
3387 | See \`config.log' for more details." "$LINENO" 5; } |
---|
3388 | fi |
---|
3389 | |
---|
3390 | ac_ext=c |
---|
3391 | ac_cpp='$CPP $CPPFLAGS' |
---|
3392 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3393 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3394 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3395 | |
---|
3396 | |
---|
3397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
3398 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
3399 | if test "${ac_cv_path_GREP+set}" = set; then : |
---|
3400 | $as_echo_n "(cached) " >&6 |
---|
3401 | else |
---|
3402 | if test -z "$GREP"; then |
---|
3403 | ac_path_GREP_found=false |
---|
3404 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3406 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3407 | do |
---|
3408 | IFS=$as_save_IFS |
---|
3409 | test -z "$as_dir" && as_dir=. |
---|
3410 | for ac_prog in grep ggrep; do |
---|
3411 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3412 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3413 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
3414 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
3415 | # Check for GNU $ac_path_GREP |
---|
3416 | case `"$ac_path_GREP" --version 2>&1` in |
---|
3417 | *GNU*) |
---|
3418 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
3419 | *) |
---|
3420 | ac_count=0 |
---|
3421 | $as_echo_n 0123456789 >"conftest.in" |
---|
3422 | while : |
---|
3423 | do |
---|
3424 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3425 | mv "conftest.tmp" "conftest.in" |
---|
3426 | cp "conftest.in" "conftest.nl" |
---|
3427 | $as_echo 'GREP' >> "conftest.nl" |
---|
3428 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3429 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3430 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3431 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
3432 | # Best one so far, save it but keep looking for a better one |
---|
3433 | ac_cv_path_GREP="$ac_path_GREP" |
---|
3434 | ac_path_GREP_max=$ac_count |
---|
3435 | fi |
---|
3436 | # 10*(2^10) chars as input seems more than enough |
---|
3437 | test $ac_count -gt 10 && break |
---|
3438 | done |
---|
3439 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3440 | esac |
---|
3441 | |
---|
3442 | $ac_path_GREP_found && break 3 |
---|
3443 | done |
---|
3444 | done |
---|
3445 | done |
---|
3446 | IFS=$as_save_IFS |
---|
3447 | if test -z "$ac_cv_path_GREP"; then |
---|
3448 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3449 | fi |
---|
3450 | else |
---|
3451 | ac_cv_path_GREP=$GREP |
---|
3452 | fi |
---|
3453 | |
---|
3454 | fi |
---|
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
3456 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
3457 | GREP="$ac_cv_path_GREP" |
---|
3458 | |
---|
3459 | |
---|
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
3461 | $as_echo_n "checking for egrep... " >&6; } |
---|
3462 | if test "${ac_cv_path_EGREP+set}" = set; then : |
---|
3463 | $as_echo_n "(cached) " >&6 |
---|
3464 | else |
---|
3465 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3466 | then ac_cv_path_EGREP="$GREP -E" |
---|
3467 | else |
---|
3468 | if test -z "$EGREP"; then |
---|
3469 | ac_path_EGREP_found=false |
---|
3470 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3472 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3473 | do |
---|
3474 | IFS=$as_save_IFS |
---|
3475 | test -z "$as_dir" && as_dir=. |
---|
3476 | for ac_prog in egrep; do |
---|
3477 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3478 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3479 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
3480 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3481 | # Check for GNU $ac_path_EGREP |
---|
3482 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3483 | *GNU*) |
---|
3484 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3485 | *) |
---|
3486 | ac_count=0 |
---|
3487 | $as_echo_n 0123456789 >"conftest.in" |
---|
3488 | while : |
---|
3489 | do |
---|
3490 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3491 | mv "conftest.tmp" "conftest.in" |
---|
3492 | cp "conftest.in" "conftest.nl" |
---|
3493 | $as_echo 'EGREP' >> "conftest.nl" |
---|
3494 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3495 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3496 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3497 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3498 | # Best one so far, save it but keep looking for a better one |
---|
3499 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
3500 | ac_path_EGREP_max=$ac_count |
---|
3501 | fi |
---|
3502 | # 10*(2^10) chars as input seems more than enough |
---|
3503 | test $ac_count -gt 10 && break |
---|
3504 | done |
---|
3505 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3506 | esac |
---|
3507 | |
---|
3508 | $ac_path_EGREP_found && break 3 |
---|
3509 | done |
---|
3510 | done |
---|
3511 | done |
---|
3512 | IFS=$as_save_IFS |
---|
3513 | if test -z "$ac_cv_path_EGREP"; then |
---|
3514 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3515 | fi |
---|
3516 | else |
---|
3517 | ac_cv_path_EGREP=$EGREP |
---|
3518 | fi |
---|
3519 | |
---|
3520 | fi |
---|
3521 | fi |
---|
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
3523 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
3524 | EGREP="$ac_cv_path_EGREP" |
---|
3525 | |
---|
3526 | |
---|
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
3528 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
3529 | if test "${ac_cv_header_stdc+set}" = set; then : |
---|
3530 | $as_echo_n "(cached) " >&6 |
---|
3531 | else |
---|
3532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3533 | /* end confdefs.h. */ |
---|
3534 | #include <stdlib.h> |
---|
3535 | #include <stdarg.h> |
---|
3536 | #include <string.h> |
---|
3537 | #include <float.h> |
---|
3538 | |
---|
3539 | int |
---|
3540 | main () |
---|
3541 | { |
---|
3542 | |
---|
3543 | ; |
---|
3544 | return 0; |
---|
3545 | } |
---|
3546 | _ACEOF |
---|
3547 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3548 | ac_cv_header_stdc=yes |
---|
3549 | else |
---|
3550 | ac_cv_header_stdc=no |
---|
3551 | fi |
---|
3552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3553 | |
---|
3554 | if test $ac_cv_header_stdc = yes; then |
---|
3555 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3557 | /* end confdefs.h. */ |
---|
3558 | #include <string.h> |
---|
3559 | |
---|
3560 | _ACEOF |
---|
3561 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3562 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
3563 | |
---|
3564 | else |
---|
3565 | ac_cv_header_stdc=no |
---|
3566 | fi |
---|
3567 | rm -f conftest* |
---|
3568 | |
---|
3569 | fi |
---|
3570 | |
---|
3571 | if test $ac_cv_header_stdc = yes; then |
---|
3572 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3574 | /* end confdefs.h. */ |
---|
3575 | #include <stdlib.h> |
---|
3576 | |
---|
3577 | _ACEOF |
---|
3578 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3579 | $EGREP "free" >/dev/null 2>&1; then : |
---|
3580 | |
---|
3581 | else |
---|
3582 | ac_cv_header_stdc=no |
---|
3583 | fi |
---|
3584 | rm -f conftest* |
---|
3585 | |
---|
3586 | fi |
---|
3587 | |
---|
3588 | if test $ac_cv_header_stdc = yes; then |
---|
3589 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3590 | if test "$cross_compiling" = yes; then : |
---|
3591 | : |
---|
3592 | else |
---|
3593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3594 | /* end confdefs.h. */ |
---|
3595 | #include <ctype.h> |
---|
3596 | #include <stdlib.h> |
---|
3597 | #if ((' ' & 0x0FF) == 0x020) |
---|
3598 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3599 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3600 | #else |
---|
3601 | # define ISLOWER(c) \ |
---|
3602 | (('a' <= (c) && (c) <= 'i') \ |
---|
3603 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3604 | || ('s' <= (c) && (c) <= 'z')) |
---|
3605 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3606 | #endif |
---|
3607 | |
---|
3608 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3609 | int |
---|
3610 | main () |
---|
3611 | { |
---|
3612 | int i; |
---|
3613 | for (i = 0; i < 256; i++) |
---|
3614 | if (XOR (islower (i), ISLOWER (i)) |
---|
3615 | || toupper (i) != TOUPPER (i)) |
---|
3616 | return 2; |
---|
3617 | return 0; |
---|
3618 | } |
---|
3619 | _ACEOF |
---|
3620 | if ac_fn_c_try_run "$LINENO"; then : |
---|
3621 | |
---|
3622 | else |
---|
3623 | ac_cv_header_stdc=no |
---|
3624 | fi |
---|
3625 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
3626 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3627 | fi |
---|
3628 | |
---|
3629 | fi |
---|
3630 | fi |
---|
3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
3632 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
3633 | if test $ac_cv_header_stdc = yes; then |
---|
3634 | |
---|
3635 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
3636 | |
---|
3637 | fi |
---|
3638 | |
---|
3639 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3640 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3641 | inttypes.h stdint.h unistd.h |
---|
3642 | do : |
---|
3643 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3644 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
3645 | " |
---|
3646 | eval as_val=\$$as_ac_Header |
---|
3647 | if test "x$as_val" = x""yes; then : |
---|
3648 | cat >>confdefs.h <<_ACEOF |
---|
3649 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3650 | _ACEOF |
---|
3651 | |
---|
3652 | fi |
---|
3653 | |
---|
3654 | done |
---|
3655 | |
---|
3656 | |
---|
3657 | |
---|
3658 | |
---|
3659 | # Step 0.a: Enable 64 bit support? |
---|
3660 | |
---|
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
---|
3662 | $as_echo_n "checking if 64bit support is requested... " >&6; } |
---|
3663 | # Check whether --enable-64bit was given. |
---|
3664 | if test "${enable_64bit+set}" = set; then : |
---|
3665 | enableval=$enable_64bit; do64bit=$enableval |
---|
3666 | else |
---|
3667 | do64bit=no |
---|
3668 | fi |
---|
3669 | |
---|
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
---|
3671 | $as_echo "$do64bit" >&6; } |
---|
3672 | |
---|
3673 | # Step 0.b: Enable Solaris 64 bit VIS support? |
---|
3674 | |
---|
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
---|
3676 | $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } |
---|
3677 | # Check whether --enable-64bit-vis was given. |
---|
3678 | if test "${enable_64bit_vis+set}" = set; then : |
---|
3679 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
---|
3680 | else |
---|
3681 | do64bitVIS=no |
---|
3682 | fi |
---|
3683 | |
---|
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
---|
3685 | $as_echo "$do64bitVIS" >&6; } |
---|
3686 | |
---|
3687 | if test "$do64bitVIS" = "yes"; then |
---|
3688 | # Force 64bit on with VIS |
---|
3689 | do64bit=yes |
---|
3690 | fi |
---|
3691 | |
---|
3692 | # Step 1: set the variable "system" to hold the name and version number |
---|
3693 | # for the system. |
---|
3694 | |
---|
3695 | |
---|
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
---|
3697 | $as_echo_n "checking system version... " >&6; } |
---|
3698 | if test "${tcl_cv_sys_version+set}" = set; then : |
---|
3699 | $as_echo_n "(cached) " >&6 |
---|
3700 | else |
---|
3701 | |
---|
3702 | if test -f /usr/lib/NextStep/software_version; then |
---|
3703 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
---|
3704 | else |
---|
3705 | tcl_cv_sys_version=`uname -s`-`uname -r` |
---|
3706 | if test "$?" -ne 0 ; then |
---|
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
---|
3708 | $as_echo "$as_me: WARNING: can't find uname command" >&2;} |
---|
3709 | tcl_cv_sys_version=unknown |
---|
3710 | else |
---|
3711 | # Special check for weird MP-RAS system (uname returns weird |
---|
3712 | # results, and the version is kept in special file). |
---|
3713 | |
---|
3714 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
---|
3715 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
---|
3716 | fi |
---|
3717 | if test "`uname -s`" = "AIX" ; then |
---|
3718 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
---|
3719 | fi |
---|
3720 | fi |
---|
3721 | fi |
---|
3722 | |
---|
3723 | fi |
---|
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
---|
3725 | $as_echo "$tcl_cv_sys_version" >&6; } |
---|
3726 | system=$tcl_cv_sys_version |
---|
3727 | |
---|
3728 | |
---|
3729 | # Step 2: check for existence of -ldl library. This is needed because |
---|
3730 | # Linux can use either -ldl or -ldld for dynamic loading. |
---|
3731 | |
---|
3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
3733 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
3734 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
---|
3735 | $as_echo_n "(cached) " >&6 |
---|
3736 | else |
---|
3737 | ac_check_lib_save_LIBS=$LIBS |
---|
3738 | LIBS="-ldl $LIBS" |
---|
3739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3740 | /* end confdefs.h. */ |
---|
3741 | |
---|
3742 | /* Override any GCC internal prototype to avoid an error. |
---|
3743 | Use char because int might match the return type of a GCC |
---|
3744 | builtin and then its argument prototype would still apply. */ |
---|
3745 | #ifdef __cplusplus |
---|
3746 | extern "C" |
---|
3747 | #endif |
---|
3748 | char dlopen (); |
---|
3749 | int |
---|
3750 | main () |
---|
3751 | { |
---|
3752 | return dlopen (); |
---|
3753 | ; |
---|
3754 | return 0; |
---|
3755 | } |
---|
3756 | _ACEOF |
---|
3757 | if ac_fn_c_try_link "$LINENO"; then : |
---|
3758 | ac_cv_lib_dl_dlopen=yes |
---|
3759 | else |
---|
3760 | ac_cv_lib_dl_dlopen=no |
---|
3761 | fi |
---|
3762 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3763 | conftest$ac_exeext conftest.$ac_ext |
---|
3764 | LIBS=$ac_check_lib_save_LIBS |
---|
3765 | fi |
---|
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
3767 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
3768 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
---|
3769 | have_dl=yes |
---|
3770 | else |
---|
3771 | have_dl=no |
---|
3772 | fi |
---|
3773 | |
---|
3774 | |
---|
3775 | # Require ranlib early so we can override it in special cases below. |
---|
3776 | |
---|
3777 | |
---|
3778 | |
---|
3779 | # Step 3: set configuration options based on system name and version. |
---|
3780 | |
---|
3781 | do64bit_ok=no |
---|
3782 | LDFLAGS_ORIG="$LDFLAGS" |
---|
3783 | TCL_EXPORT_FILE_SUFFIX="" |
---|
3784 | UNSHARED_LIB_SUFFIX="" |
---|
3785 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
---|
3786 | ECHO_VERSION='`echo ${VERSION}`' |
---|
3787 | TCL_LIB_VERSIONS_OK=ok |
---|
3788 | CFLAGS_DEBUG=-g |
---|
3789 | CFLAGS_OPTIMIZE=-O |
---|
3790 | if test "$GCC" = "yes" ; then |
---|
3791 | CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" |
---|
3792 | else |
---|
3793 | CFLAGS_WARNING="" |
---|
3794 | fi |
---|
3795 | TCL_NEEDS_EXP_FILE=0 |
---|
3796 | TCL_BUILD_EXP_FILE="" |
---|
3797 | TCL_EXP_FILE="" |
---|
3798 | # Extract the first word of "ar", so it can be a program name with args. |
---|
3799 | set dummy ar; ac_word=$2 |
---|
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3801 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3802 | if test "${ac_cv_prog_AR+set}" = set; then : |
---|
3803 | $as_echo_n "(cached) " >&6 |
---|
3804 | else |
---|
3805 | if test -n "$AR"; then |
---|
3806 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
3807 | else |
---|
3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3809 | for as_dir in $PATH |
---|
3810 | do |
---|
3811 | IFS=$as_save_IFS |
---|
3812 | test -z "$as_dir" && as_dir=. |
---|
3813 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3815 | ac_cv_prog_AR="ar" |
---|
3816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3817 | break 2 |
---|
3818 | fi |
---|
3819 | done |
---|
3820 | done |
---|
3821 | IFS=$as_save_IFS |
---|
3822 | |
---|
3823 | fi |
---|
3824 | fi |
---|
3825 | AR=$ac_cv_prog_AR |
---|
3826 | if test -n "$AR"; then |
---|
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
3828 | $as_echo "$AR" >&6; } |
---|
3829 | else |
---|
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3831 | $as_echo "no" >&6; } |
---|
3832 | fi |
---|
3833 | |
---|
3834 | |
---|
3835 | if test "${AR}" = "" ; then |
---|
3836 | as_fn_error "Required archive tool 'ar' not found on PATH." "$LINENO" 5 |
---|
3837 | fi |
---|
3838 | STLIB_LD='${AR} cr' |
---|
3839 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
---|
3840 | PLAT_OBJS="" |
---|
3841 | PLAT_SRCS="" |
---|
3842 | case $system in |
---|
3843 | AIX-*) |
---|
3844 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then |
---|
3845 | # AIX requires the _r compiler when gcc isn't being used |
---|
3846 | case "${CC}" in |
---|
3847 | *_r) |
---|
3848 | # ok ... |
---|
3849 | ;; |
---|
3850 | *) |
---|
3851 | CC=${CC}_r |
---|
3852 | ;; |
---|
3853 | esac |
---|
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
---|
3855 | $as_echo "Using $CC for compiling with threads" >&6; } |
---|
3856 | fi |
---|
3857 | LIBS="$LIBS -lc" |
---|
3858 | SHLIB_CFLAGS="" |
---|
3859 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
3860 | # symbols when dynamically loaded into tclsh. |
---|
3861 | SHLIB_LD_LIBS='${LIBS}' |
---|
3862 | SHLIB_SUFFIX=".so" |
---|
3863 | |
---|
3864 | DL_OBJS="tclLoadDl.o" |
---|
3865 | LD_LIBRARY_PATH_VAR="LIBPATH" |
---|
3866 | |
---|
3867 | # Check to enable 64-bit flags for compiler/linker on AIX 4+ |
---|
3868 | if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then |
---|
3869 | if test "$GCC" = "yes" ; then |
---|
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
3871 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
3872 | else |
---|
3873 | do64bit_ok=yes |
---|
3874 | CFLAGS="$CFLAGS -q64" |
---|
3875 | LDFLAGS="$LDFLAGS -q64" |
---|
3876 | RANLIB="${RANLIB} -X64" |
---|
3877 | AR="${AR} -X64" |
---|
3878 | SHLIB_LD_FLAGS="-b64" |
---|
3879 | fi |
---|
3880 | fi |
---|
3881 | |
---|
3882 | if test "`uname -m`" = "ia64" ; then |
---|
3883 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
---|
3884 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
3885 | # AIX-5 has dl* in libc.so |
---|
3886 | DL_LIBS="" |
---|
3887 | if test "$GCC" = "yes" ; then |
---|
3888 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
3889 | else |
---|
3890 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
---|
3891 | fi |
---|
3892 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
3893 | else |
---|
3894 | if test "$GCC" = "yes" ; then |
---|
3895 | SHLIB_LD="gcc -shared" |
---|
3896 | else |
---|
3897 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" |
---|
3898 | fi |
---|
3899 | SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
---|
3900 | DL_LIBS="-ldl" |
---|
3901 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
3902 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
3903 | TCL_NEEDS_EXP_FILE=1 |
---|
3904 | TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' |
---|
3905 | fi |
---|
3906 | |
---|
3907 | # AIX v<=4.1 has some different flags than 4.2+ |
---|
3908 | if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then |
---|
3909 | LIBOBJS="$LIBOBJS tclLoadAix.o" |
---|
3910 | DL_LIBS="-lld" |
---|
3911 | fi |
---|
3912 | |
---|
3913 | # On AIX <=v4 systems, libbsd.a has to be linked in to support |
---|
3914 | # non-blocking file IO. This library has to be linked in after |
---|
3915 | # the MATH_LIBS or it breaks the pow() function. The way to |
---|
3916 | # insure proper sequencing, is to add it to the tail of MATH_LIBS. |
---|
3917 | # This library also supplies gettimeofday. |
---|
3918 | # |
---|
3919 | # AIX does not have a timezone field in struct tm. When the AIX |
---|
3920 | # bsd library is used, the timezone global and the gettimeofday |
---|
3921 | # methods are to be avoided for timezone deduction instead, we |
---|
3922 | # deduce the timezone by comparing the localtime result on a |
---|
3923 | # known GMT value. |
---|
3924 | |
---|
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 |
---|
3926 | $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } |
---|
3927 | if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then : |
---|
3928 | $as_echo_n "(cached) " >&6 |
---|
3929 | else |
---|
3930 | ac_check_lib_save_LIBS=$LIBS |
---|
3931 | LIBS="-lbsd $LIBS" |
---|
3932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3933 | /* end confdefs.h. */ |
---|
3934 | |
---|
3935 | /* Override any GCC internal prototype to avoid an error. |
---|
3936 | Use char because int might match the return type of a GCC |
---|
3937 | builtin and then its argument prototype would still apply. */ |
---|
3938 | #ifdef __cplusplus |
---|
3939 | extern "C" |
---|
3940 | #endif |
---|
3941 | char gettimeofday (); |
---|
3942 | int |
---|
3943 | main () |
---|
3944 | { |
---|
3945 | return gettimeofday (); |
---|
3946 | ; |
---|
3947 | return 0; |
---|
3948 | } |
---|
3949 | _ACEOF |
---|
3950 | if ac_fn_c_try_link "$LINENO"; then : |
---|
3951 | ac_cv_lib_bsd_gettimeofday=yes |
---|
3952 | else |
---|
3953 | ac_cv_lib_bsd_gettimeofday=no |
---|
3954 | fi |
---|
3955 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3956 | conftest$ac_exeext conftest.$ac_ext |
---|
3957 | LIBS=$ac_check_lib_save_LIBS |
---|
3958 | fi |
---|
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 |
---|
3960 | $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } |
---|
3961 | if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then : |
---|
3962 | libbsd=yes |
---|
3963 | else |
---|
3964 | libbsd=no |
---|
3965 | fi |
---|
3966 | |
---|
3967 | if test $libbsd = yes; then |
---|
3968 | MATH_LIBS="$MATH_LIBS -lbsd" |
---|
3969 | $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h |
---|
3970 | |
---|
3971 | fi |
---|
3972 | ;; |
---|
3973 | BeOS*) |
---|
3974 | SHLIB_CFLAGS="-fPIC" |
---|
3975 | SHLIB_LD="${CC} -nostart" |
---|
3976 | SHLIB_LD_LIBS='${LIBS}' |
---|
3977 | SHLIB_SUFFIX=".so" |
---|
3978 | DL_OBJS="tclLoadDl.o" |
---|
3979 | DL_LIBS="-ldl" |
---|
3980 | |
---|
3981 | #----------------------------------------------------------- |
---|
3982 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
---|
3983 | # -lsocket, even if the network functions are in -lnet which |
---|
3984 | # is always linked to, for compatibility. |
---|
3985 | #----------------------------------------------------------- |
---|
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
---|
3987 | $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } |
---|
3988 | if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then : |
---|
3989 | $as_echo_n "(cached) " >&6 |
---|
3990 | else |
---|
3991 | ac_check_lib_save_LIBS=$LIBS |
---|
3992 | LIBS="-lbind $LIBS" |
---|
3993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3994 | /* end confdefs.h. */ |
---|
3995 | |
---|
3996 | /* Override any GCC internal prototype to avoid an error. |
---|
3997 | Use char because int might match the return type of a GCC |
---|
3998 | builtin and then its argument prototype would still apply. */ |
---|
3999 | #ifdef __cplusplus |
---|
4000 | extern "C" |
---|
4001 | #endif |
---|
4002 | char inet_ntoa (); |
---|
4003 | int |
---|
4004 | main () |
---|
4005 | { |
---|
4006 | return inet_ntoa (); |
---|
4007 | ; |
---|
4008 | return 0; |
---|
4009 | } |
---|
4010 | _ACEOF |
---|
4011 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4012 | ac_cv_lib_bind_inet_ntoa=yes |
---|
4013 | else |
---|
4014 | ac_cv_lib_bind_inet_ntoa=no |
---|
4015 | fi |
---|
4016 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4017 | conftest$ac_exeext conftest.$ac_ext |
---|
4018 | LIBS=$ac_check_lib_save_LIBS |
---|
4019 | fi |
---|
4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
---|
4021 | $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } |
---|
4022 | if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then : |
---|
4023 | LIBS="$LIBS -lbind -lsocket" |
---|
4024 | fi |
---|
4025 | |
---|
4026 | ;; |
---|
4027 | BSD/OS-2.1*|BSD/OS-3*) |
---|
4028 | SHLIB_CFLAGS="" |
---|
4029 | SHLIB_LD="shlicc -r" |
---|
4030 | SHLIB_LD_LIBS='${LIBS}' |
---|
4031 | SHLIB_SUFFIX=".so" |
---|
4032 | DL_OBJS="tclLoadDl.o" |
---|
4033 | DL_LIBS="-ldl" |
---|
4034 | CC_SEARCH_FLAGS="" |
---|
4035 | LD_SEARCH_FLAGS="" |
---|
4036 | ;; |
---|
4037 | BSD/OS-4.*) |
---|
4038 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
---|
4039 | SHLIB_LD="cc -shared" |
---|
4040 | SHLIB_LD_LIBS='${LIBS}' |
---|
4041 | SHLIB_SUFFIX=".so" |
---|
4042 | DL_OBJS="tclLoadDl.o" |
---|
4043 | DL_LIBS="-ldl" |
---|
4044 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
4045 | CC_SEARCH_FLAGS="" |
---|
4046 | LD_SEARCH_FLAGS="" |
---|
4047 | ;; |
---|
4048 | dgux*) |
---|
4049 | SHLIB_CFLAGS="-K PIC" |
---|
4050 | SHLIB_LD="cc -G" |
---|
4051 | SHLIB_LD_LIBS="" |
---|
4052 | SHLIB_SUFFIX=".so" |
---|
4053 | DL_OBJS="tclLoadDl.o" |
---|
4054 | DL_LIBS="-ldl" |
---|
4055 | CC_SEARCH_FLAGS="" |
---|
4056 | LD_SEARCH_FLAGS="" |
---|
4057 | ;; |
---|
4058 | HP-UX-*.11.*) |
---|
4059 | # Use updated header definitions where possible |
---|
4060 | $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h |
---|
4061 | # Use the XOPEN network library |
---|
4062 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
---|
4063 | # Use the XOPEN network library |
---|
4064 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
---|
4065 | |
---|
4066 | if test "`uname -m`" = "ia64" ; then |
---|
4067 | SHLIB_SUFFIX=".so" |
---|
4068 | else |
---|
4069 | SHLIB_SUFFIX=".sl" |
---|
4070 | fi |
---|
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
4072 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
4073 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
---|
4074 | $as_echo_n "(cached) " >&6 |
---|
4075 | else |
---|
4076 | ac_check_lib_save_LIBS=$LIBS |
---|
4077 | LIBS="-ldld $LIBS" |
---|
4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4079 | /* end confdefs.h. */ |
---|
4080 | |
---|
4081 | /* Override any GCC internal prototype to avoid an error. |
---|
4082 | Use char because int might match the return type of a GCC |
---|
4083 | builtin and then its argument prototype would still apply. */ |
---|
4084 | #ifdef __cplusplus |
---|
4085 | extern "C" |
---|
4086 | #endif |
---|
4087 | char shl_load (); |
---|
4088 | int |
---|
4089 | main () |
---|
4090 | { |
---|
4091 | return shl_load (); |
---|
4092 | ; |
---|
4093 | return 0; |
---|
4094 | } |
---|
4095 | _ACEOF |
---|
4096 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4097 | ac_cv_lib_dld_shl_load=yes |
---|
4098 | else |
---|
4099 | ac_cv_lib_dld_shl_load=no |
---|
4100 | fi |
---|
4101 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4102 | conftest$ac_exeext conftest.$ac_ext |
---|
4103 | LIBS=$ac_check_lib_save_LIBS |
---|
4104 | fi |
---|
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
4106 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
4107 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
---|
4108 | tcl_ok=yes |
---|
4109 | else |
---|
4110 | tcl_ok=no |
---|
4111 | fi |
---|
4112 | |
---|
4113 | if test "$tcl_ok" = yes; then |
---|
4114 | SHLIB_CFLAGS="+z" |
---|
4115 | SHLIB_LD="ld -b" |
---|
4116 | SHLIB_LD_LIBS='${LIBS}' |
---|
4117 | DL_OBJS="tclLoadShl.o" |
---|
4118 | DL_LIBS="-ldld" |
---|
4119 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
4120 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
4121 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
4122 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
4123 | fi |
---|
4124 | if test "$GCC" = "yes" ; then |
---|
4125 | SHLIB_LD="gcc -shared" |
---|
4126 | SHLIB_LD_LIBS='${LIBS}' |
---|
4127 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4128 | fi |
---|
4129 | |
---|
4130 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
---|
4131 | #CFLAGS="$CFLAGS +DAportable" |
---|
4132 | |
---|
4133 | # Check to enable 64-bit flags for compiler/linker |
---|
4134 | if test "$do64bit" = "yes" ; then |
---|
4135 | if test "$GCC" = "yes" ; then |
---|
4136 | hpux_arch=`${CC} -dumpmachine` |
---|
4137 | case $hpux_arch in |
---|
4138 | hppa64*) |
---|
4139 | # 64-bit gcc in use. Fix flags for GNU ld. |
---|
4140 | do64bit_ok=yes |
---|
4141 | SHLIB_LD="${CC} -shared" |
---|
4142 | SHLIB_LD_LIBS='${LIBS}' |
---|
4143 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4144 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4145 | ;; |
---|
4146 | *) |
---|
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
4148 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
4149 | ;; |
---|
4150 | esac |
---|
4151 | else |
---|
4152 | do64bit_ok=yes |
---|
4153 | CFLAGS="$CFLAGS +DD64" |
---|
4154 | LDFLAGS="$LDFLAGS +DD64" |
---|
4155 | fi |
---|
4156 | fi |
---|
4157 | ;; |
---|
4158 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
---|
4159 | SHLIB_SUFFIX=".sl" |
---|
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
4161 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
4162 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
---|
4163 | $as_echo_n "(cached) " >&6 |
---|
4164 | else |
---|
4165 | ac_check_lib_save_LIBS=$LIBS |
---|
4166 | LIBS="-ldld $LIBS" |
---|
4167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4168 | /* end confdefs.h. */ |
---|
4169 | |
---|
4170 | /* Override any GCC internal prototype to avoid an error. |
---|
4171 | Use char because int might match the return type of a GCC |
---|
4172 | builtin and then its argument prototype would still apply. */ |
---|
4173 | #ifdef __cplusplus |
---|
4174 | extern "C" |
---|
4175 | #endif |
---|
4176 | char shl_load (); |
---|
4177 | int |
---|
4178 | main () |
---|
4179 | { |
---|
4180 | return shl_load (); |
---|
4181 | ; |
---|
4182 | return 0; |
---|
4183 | } |
---|
4184 | _ACEOF |
---|
4185 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4186 | ac_cv_lib_dld_shl_load=yes |
---|
4187 | else |
---|
4188 | ac_cv_lib_dld_shl_load=no |
---|
4189 | fi |
---|
4190 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4191 | conftest$ac_exeext conftest.$ac_ext |
---|
4192 | LIBS=$ac_check_lib_save_LIBS |
---|
4193 | fi |
---|
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
4195 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
4196 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
---|
4197 | tcl_ok=yes |
---|
4198 | else |
---|
4199 | tcl_ok=no |
---|
4200 | fi |
---|
4201 | |
---|
4202 | if test "$tcl_ok" = yes; then |
---|
4203 | SHLIB_CFLAGS="+z" |
---|
4204 | SHLIB_LD="ld -b" |
---|
4205 | SHLIB_LD_LIBS="" |
---|
4206 | DL_OBJS="tclLoadShl.o" |
---|
4207 | DL_LIBS="-ldld" |
---|
4208 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
4209 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
4210 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
4211 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
4212 | fi |
---|
4213 | ;; |
---|
4214 | IRIX-4.*) |
---|
4215 | SHLIB_CFLAGS="-G 0" |
---|
4216 | SHLIB_SUFFIX=".a" |
---|
4217 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
4218 | SHLIB_LD_LIBS='${LIBS}' |
---|
4219 | DL_OBJS="tclLoadAout.o" |
---|
4220 | DL_LIBS="" |
---|
4221 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
4222 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4223 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4224 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
4225 | ;; |
---|
4226 | IRIX-5.*) |
---|
4227 | SHLIB_CFLAGS="" |
---|
4228 | SHLIB_LD="ld -shared -rdata_shared" |
---|
4229 | SHLIB_LD_LIBS='${LIBS}' |
---|
4230 | SHLIB_SUFFIX=".so" |
---|
4231 | DL_OBJS="tclLoadDl.o" |
---|
4232 | DL_LIBS="" |
---|
4233 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4234 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4235 | ;; |
---|
4236 | IRIX-6.*) |
---|
4237 | SHLIB_CFLAGS="" |
---|
4238 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
4239 | SHLIB_LD_LIBS='${LIBS}' |
---|
4240 | SHLIB_SUFFIX=".so" |
---|
4241 | DL_OBJS="tclLoadDl.o" |
---|
4242 | DL_LIBS="" |
---|
4243 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4244 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4245 | if test "$GCC" = "yes" ; then |
---|
4246 | CFLAGS="$CFLAGS -mabi=n32" |
---|
4247 | LDFLAGS="$LDFLAGS -mabi=n32" |
---|
4248 | else |
---|
4249 | case $system in |
---|
4250 | IRIX-6.3) |
---|
4251 | # Use to build 6.2 compatible binaries on 6.3. |
---|
4252 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
---|
4253 | ;; |
---|
4254 | *) |
---|
4255 | CFLAGS="$CFLAGS -n32" |
---|
4256 | ;; |
---|
4257 | esac |
---|
4258 | LDFLAGS="$LDFLAGS -n32" |
---|
4259 | fi |
---|
4260 | ;; |
---|
4261 | IRIX64-6.*) |
---|
4262 | SHLIB_CFLAGS="" |
---|
4263 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
4264 | SHLIB_LD_LIBS='${LIBS}' |
---|
4265 | SHLIB_SUFFIX=".so" |
---|
4266 | DL_OBJS="tclLoadDl.o" |
---|
4267 | DL_LIBS="" |
---|
4268 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4269 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4270 | |
---|
4271 | # Check to enable 64-bit flags for compiler/linker |
---|
4272 | |
---|
4273 | if test "$do64bit" = "yes" ; then |
---|
4274 | if test "$GCC" = "yes" ; then |
---|
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
---|
4276 | $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
---|
4277 | else |
---|
4278 | do64bit_ok=yes |
---|
4279 | SHLIB_LD="ld -64 -shared -rdata_shared" |
---|
4280 | CFLAGS="$CFLAGS -64" |
---|
4281 | LDFLAGS="$LDFLAGS -64" |
---|
4282 | fi |
---|
4283 | fi |
---|
4284 | ;; |
---|
4285 | Linux*) |
---|
4286 | SHLIB_CFLAGS="-fPIC" |
---|
4287 | SHLIB_LD_LIBS='${LIBS}' |
---|
4288 | SHLIB_SUFFIX=".so" |
---|
4289 | |
---|
4290 | CFLAGS_OPTIMIZE=-O2 |
---|
4291 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
---|
4292 | # when you inline the string and math operations. Turn this off to |
---|
4293 | # get rid of the warnings. |
---|
4294 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
---|
4295 | |
---|
4296 | if test "$have_dl" = yes; then |
---|
4297 | SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' |
---|
4298 | DL_OBJS="tclLoadDl.o" |
---|
4299 | DL_LIBS="-ldl" |
---|
4300 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
4301 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4302 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4303 | else |
---|
4304 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
4305 | if test "x$ac_cv_header_dld_h" = x""yes; then : |
---|
4306 | |
---|
4307 | SHLIB_LD="ld -shared" |
---|
4308 | DL_OBJS="tclLoadDld.o" |
---|
4309 | DL_LIBS="-ldld" |
---|
4310 | CC_SEARCH_FLAGS="" |
---|
4311 | LD_SEARCH_FLAGS="" |
---|
4312 | fi |
---|
4313 | |
---|
4314 | |
---|
4315 | fi |
---|
4316 | if test "`uname -m`" = "alpha" ; then |
---|
4317 | CFLAGS="$CFLAGS -mieee" |
---|
4318 | fi |
---|
4319 | if test $do64bit = yes; then |
---|
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
---|
4321 | $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } |
---|
4322 | if test "${tcl_cv_cc_m64+set}" = set; then : |
---|
4323 | $as_echo_n "(cached) " >&6 |
---|
4324 | else |
---|
4325 | |
---|
4326 | hold_cflags=$CFLAGS |
---|
4327 | CFLAGS="$CFLAGS -m64" |
---|
4328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4329 | /* end confdefs.h. */ |
---|
4330 | |
---|
4331 | int |
---|
4332 | main () |
---|
4333 | { |
---|
4334 | |
---|
4335 | ; |
---|
4336 | return 0; |
---|
4337 | } |
---|
4338 | _ACEOF |
---|
4339 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4340 | tcl_cv_cc_m64=yes |
---|
4341 | else |
---|
4342 | tcl_cv_cc_m64=no |
---|
4343 | fi |
---|
4344 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4345 | conftest$ac_exeext conftest.$ac_ext |
---|
4346 | CFLAGS=$hold_cflags |
---|
4347 | fi |
---|
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
---|
4349 | $as_echo "$tcl_cv_cc_m64" >&6; } |
---|
4350 | if test $tcl_cv_cc_m64 = yes; then |
---|
4351 | CFLAGS="$CFLAGS -m64" |
---|
4352 | do64bit_ok=yes |
---|
4353 | fi |
---|
4354 | fi |
---|
4355 | |
---|
4356 | # The combo of gcc + glibc has a bug related |
---|
4357 | # to inlining of functions like strtod(). The |
---|
4358 | # -fno-builtin flag should address this problem |
---|
4359 | # but it does not work. The -fno-inline flag |
---|
4360 | # is kind of overkill but it works. |
---|
4361 | # Disable inlining only when one of the |
---|
4362 | # files in compat/*.c is being linked in. |
---|
4363 | if test x"${LIBOBJS}" != x ; then |
---|
4364 | CFLAGS="$CFLAGS -fno-inline" |
---|
4365 | fi |
---|
4366 | |
---|
4367 | # XIM peeking works under XFree86. |
---|
4368 | $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h |
---|
4369 | |
---|
4370 | |
---|
4371 | ;; |
---|
4372 | GNU*) |
---|
4373 | SHLIB_CFLAGS="-fPIC" |
---|
4374 | SHLIB_LD_LIBS='${LIBS}' |
---|
4375 | SHLIB_SUFFIX=".so" |
---|
4376 | |
---|
4377 | if test "$have_dl" = yes; then |
---|
4378 | SHLIB_LD="${CC} -shared" |
---|
4379 | DL_OBJS="" |
---|
4380 | DL_LIBS="-ldl" |
---|
4381 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
4382 | CC_SEARCH_FLAGS="" |
---|
4383 | LD_SEARCH_FLAGS="" |
---|
4384 | else |
---|
4385 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
4386 | if test "x$ac_cv_header_dld_h" = x""yes; then : |
---|
4387 | |
---|
4388 | SHLIB_LD="ld -shared" |
---|
4389 | DL_OBJS="" |
---|
4390 | DL_LIBS="-ldld" |
---|
4391 | CC_SEARCH_FLAGS="" |
---|
4392 | LD_SEARCH_FLAGS="" |
---|
4393 | fi |
---|
4394 | |
---|
4395 | |
---|
4396 | fi |
---|
4397 | if test "`uname -m`" = "alpha" ; then |
---|
4398 | CFLAGS="$CFLAGS -mieee" |
---|
4399 | fi |
---|
4400 | ;; |
---|
4401 | Lynx*) |
---|
4402 | SHLIB_CFLAGS="-fPIC" |
---|
4403 | SHLIB_LD_LIBS='${LIBS}' |
---|
4404 | SHLIB_SUFFIX=".so" |
---|
4405 | CFLAGS_OPTIMIZE=-02 |
---|
4406 | SHLIB_LD="${CC} -shared " |
---|
4407 | DL_OBJS="tclLoadDl.o" |
---|
4408 | DL_LIBS="-mshared -ldl" |
---|
4409 | LD_FLAGS="-Wl,--export-dynamic" |
---|
4410 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4411 | LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4412 | ;; |
---|
4413 | MP-RAS-02*) |
---|
4414 | SHLIB_CFLAGS="-K PIC" |
---|
4415 | SHLIB_LD="cc -G" |
---|
4416 | SHLIB_LD_LIBS="" |
---|
4417 | SHLIB_SUFFIX=".so" |
---|
4418 | DL_OBJS="tclLoadDl.o" |
---|
4419 | DL_LIBS="-ldl" |
---|
4420 | CC_SEARCH_FLAGS="" |
---|
4421 | LD_SEARCH_FLAGS="" |
---|
4422 | ;; |
---|
4423 | MP-RAS-*) |
---|
4424 | SHLIB_CFLAGS="-K PIC" |
---|
4425 | SHLIB_LD="cc -G" |
---|
4426 | SHLIB_LD_LIBS="" |
---|
4427 | SHLIB_SUFFIX=".so" |
---|
4428 | DL_OBJS="tclLoadDl.o" |
---|
4429 | DL_LIBS="-ldl" |
---|
4430 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
4431 | CC_SEARCH_FLAGS="" |
---|
4432 | LD_SEARCH_FLAGS="" |
---|
4433 | ;; |
---|
4434 | NetBSD-*|FreeBSD-[1-2].*) |
---|
4435 | # Not available on all versions: check for include file. |
---|
4436 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
---|
4437 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
---|
4438 | |
---|
4439 | # NetBSD/SPARC needs -fPIC, -fpic will not do. |
---|
4440 | SHLIB_CFLAGS="-fPIC" |
---|
4441 | SHLIB_LD="ld -Bshareable -x" |
---|
4442 | SHLIB_LD_LIBS='${LIBS}' |
---|
4443 | SHLIB_SUFFIX=".so" |
---|
4444 | DL_OBJS="tclLoadDl.o" |
---|
4445 | DL_LIBS="" |
---|
4446 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4447 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
4449 | $as_echo_n "checking for ELF... " >&6; } |
---|
4450 | if test "${tcl_cv_ld_elf+set}" = set; then : |
---|
4451 | $as_echo_n "(cached) " >&6 |
---|
4452 | else |
---|
4453 | |
---|
4454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4455 | /* end confdefs.h. */ |
---|
4456 | |
---|
4457 | #ifdef __ELF__ |
---|
4458 | yes |
---|
4459 | #endif |
---|
4460 | |
---|
4461 | _ACEOF |
---|
4462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4463 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
4464 | tcl_cv_ld_elf=yes |
---|
4465 | else |
---|
4466 | tcl_cv_ld_elf=no |
---|
4467 | fi |
---|
4468 | rm -f conftest* |
---|
4469 | |
---|
4470 | fi |
---|
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
4472 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
4473 | if test $tcl_cv_ld_elf = yes; then |
---|
4474 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
4475 | else |
---|
4476 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
4477 | fi |
---|
4478 | |
---|
4479 | else |
---|
4480 | |
---|
4481 | SHLIB_CFLAGS="" |
---|
4482 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
4483 | SHLIB_LD_LIBS='${LIBS}' |
---|
4484 | SHLIB_SUFFIX=".a" |
---|
4485 | DL_OBJS="tclLoadAout.o" |
---|
4486 | DL_LIBS="" |
---|
4487 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4488 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4489 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4490 | |
---|
4491 | fi |
---|
4492 | |
---|
4493 | |
---|
4494 | |
---|
4495 | # FreeBSD doesn't handle version numbers with dots. |
---|
4496 | |
---|
4497 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4498 | TCL_LIB_VERSIONS_OK=nodots |
---|
4499 | ;; |
---|
4500 | OpenBSD-*) |
---|
4501 | case `arch -s` in |
---|
4502 | m88k|vax) |
---|
4503 | SHLIB_CFLAGS="" |
---|
4504 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
4505 | SHLIB_LD_LIBS='${LIBS}' |
---|
4506 | SHLIB_SUFFIX=".a" |
---|
4507 | DL_OBJS="tclLoadAout.o" |
---|
4508 | DL_LIBS="" |
---|
4509 | LDFLAGS="" |
---|
4510 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4511 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4512 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4513 | ;; |
---|
4514 | *) |
---|
4515 | # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. |
---|
4516 | case `machine` in |
---|
4517 | sparc|sparc64) |
---|
4518 | SHLIB_CFLAGS="-fPIC";; |
---|
4519 | *) |
---|
4520 | SHLIB_CFLAGS="-fpic";; |
---|
4521 | esac |
---|
4522 | SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" |
---|
4523 | SHLIB_LD_LIBS='${LIBS}' |
---|
4524 | SHLIB_SUFFIX=".so" |
---|
4525 | DL_OBJS="tclLoadDl.o" |
---|
4526 | DL_LIBS="" |
---|
4527 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4528 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4529 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
4531 | $as_echo_n "checking for ELF... " >&6; } |
---|
4532 | if test "${tcl_cv_ld_elf+set}" = set; then : |
---|
4533 | $as_echo_n "(cached) " >&6 |
---|
4534 | else |
---|
4535 | |
---|
4536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4537 | /* end confdefs.h. */ |
---|
4538 | |
---|
4539 | #ifdef __ELF__ |
---|
4540 | yes |
---|
4541 | #endif |
---|
4542 | |
---|
4543 | _ACEOF |
---|
4544 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4545 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
4546 | tcl_cv_ld_elf=yes |
---|
4547 | else |
---|
4548 | tcl_cv_ld_elf=no |
---|
4549 | fi |
---|
4550 | rm -f conftest* |
---|
4551 | |
---|
4552 | fi |
---|
4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
4554 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
4555 | if test $tcl_cv_ld_elf = yes; then |
---|
4556 | LDFLAGS=-Wl,-export-dynamic |
---|
4557 | else |
---|
4558 | LDFLAGS="" |
---|
4559 | fi |
---|
4560 | ;; |
---|
4561 | esac |
---|
4562 | |
---|
4563 | # OpenBSD doesn't do version numbers with dots. |
---|
4564 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4565 | TCL_LIB_VERSIONS_OK=nodots |
---|
4566 | ;; |
---|
4567 | FreeBSD-*) |
---|
4568 | # FreeBSD 3.* and greater have ELF. |
---|
4569 | SHLIB_CFLAGS="-fPIC" |
---|
4570 | SHLIB_LD="ld -Bshareable -x" |
---|
4571 | SHLIB_LD_LIBS='${LIBS}' |
---|
4572 | SHLIB_SUFFIX=".so" |
---|
4573 | DL_OBJS="tclLoadDl.o" |
---|
4574 | DL_LIBS="" |
---|
4575 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
4576 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4577 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4578 | if test "${TCL_THREADS}" = "1" ; then |
---|
4579 | # The -pthread needs to go in the CFLAGS, not LIBS |
---|
4580 | LIBS=`echo $LIBS | sed s/-pthread//` |
---|
4581 | CFLAGS="$CFLAGS -pthread" |
---|
4582 | LDFLAGS="$LDFLAGS -pthread" |
---|
4583 | fi |
---|
4584 | case $system in |
---|
4585 | FreeBSD-3.*) |
---|
4586 | # FreeBSD-3 doesn't handle version numbers with dots. |
---|
4587 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4588 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
4589 | TCL_LIB_VERSIONS_OK=nodots |
---|
4590 | ;; |
---|
4591 | esac |
---|
4592 | ;; |
---|
4593 | Darwin-*) |
---|
4594 | CFLAGS_OPTIMIZE="-Os" |
---|
4595 | SHLIB_CFLAGS="-fno-common" |
---|
4596 | # To avoid discrepancies between what headers configure sees during |
---|
4597 | # preprocessing tests and compiling tests, move any -isysroot and |
---|
4598 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
---|
4599 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
---|
4600 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
4601 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
---|
4602 | CFLAGS="`echo " ${CFLAGS}" | \ |
---|
4603 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
4604 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
---|
4605 | if test $do64bit = yes; then |
---|
4606 | case `arch` in |
---|
4607 | ppc) |
---|
4608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
---|
4609 | $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } |
---|
4610 | if test "${tcl_cv_cc_arch_ppc64+set}" = set; then : |
---|
4611 | $as_echo_n "(cached) " >&6 |
---|
4612 | else |
---|
4613 | |
---|
4614 | hold_cflags=$CFLAGS |
---|
4615 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
4616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4617 | /* end confdefs.h. */ |
---|
4618 | |
---|
4619 | int |
---|
4620 | main () |
---|
4621 | { |
---|
4622 | |
---|
4623 | ; |
---|
4624 | return 0; |
---|
4625 | } |
---|
4626 | _ACEOF |
---|
4627 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4628 | tcl_cv_cc_arch_ppc64=yes |
---|
4629 | else |
---|
4630 | tcl_cv_cc_arch_ppc64=no |
---|
4631 | fi |
---|
4632 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4633 | conftest$ac_exeext conftest.$ac_ext |
---|
4634 | CFLAGS=$hold_cflags |
---|
4635 | fi |
---|
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
---|
4637 | $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } |
---|
4638 | if test $tcl_cv_cc_arch_ppc64 = yes; then |
---|
4639 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
4640 | do64bit_ok=yes |
---|
4641 | fi;; |
---|
4642 | i386) |
---|
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
---|
4644 | $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } |
---|
4645 | if test "${tcl_cv_cc_arch_x86_64+set}" = set; then : |
---|
4646 | $as_echo_n "(cached) " >&6 |
---|
4647 | else |
---|
4648 | |
---|
4649 | hold_cflags=$CFLAGS |
---|
4650 | CFLAGS="$CFLAGS -arch x86_64" |
---|
4651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4652 | /* end confdefs.h. */ |
---|
4653 | |
---|
4654 | int |
---|
4655 | main () |
---|
4656 | { |
---|
4657 | |
---|
4658 | ; |
---|
4659 | return 0; |
---|
4660 | } |
---|
4661 | _ACEOF |
---|
4662 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4663 | tcl_cv_cc_arch_x86_64=yes |
---|
4664 | else |
---|
4665 | tcl_cv_cc_arch_x86_64=no |
---|
4666 | fi |
---|
4667 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4668 | conftest$ac_exeext conftest.$ac_ext |
---|
4669 | CFLAGS=$hold_cflags |
---|
4670 | fi |
---|
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
---|
4672 | $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } |
---|
4673 | if test $tcl_cv_cc_arch_x86_64 = yes; then |
---|
4674 | CFLAGS="$CFLAGS -arch x86_64" |
---|
4675 | do64bit_ok=yes |
---|
4676 | fi;; |
---|
4677 | *) |
---|
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
---|
4679 | $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
---|
4680 | esac |
---|
4681 | else |
---|
4682 | # Check for combined 32-bit and 64-bit fat build |
---|
4683 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ |
---|
4684 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ |
---|
4685 | fat_32_64=yes |
---|
4686 | fi |
---|
4687 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
---|
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
---|
4689 | $as_echo_n "checking if ld accepts -single_module flag... " >&6; } |
---|
4690 | if test "${tcl_cv_ld_single_module+set}" = set; then : |
---|
4691 | $as_echo_n "(cached) " >&6 |
---|
4692 | else |
---|
4693 | |
---|
4694 | hold_ldflags=$LDFLAGS |
---|
4695 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
---|
4696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4697 | /* end confdefs.h. */ |
---|
4698 | |
---|
4699 | int |
---|
4700 | main () |
---|
4701 | { |
---|
4702 | int i; |
---|
4703 | ; |
---|
4704 | return 0; |
---|
4705 | } |
---|
4706 | _ACEOF |
---|
4707 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4708 | tcl_cv_ld_single_module=yes |
---|
4709 | else |
---|
4710 | tcl_cv_ld_single_module=no |
---|
4711 | fi |
---|
4712 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4713 | conftest$ac_exeext conftest.$ac_ext |
---|
4714 | LDFLAGS=$hold_ldflags |
---|
4715 | fi |
---|
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
---|
4717 | $as_echo "$tcl_cv_ld_single_module" >&6; } |
---|
4718 | if test $tcl_cv_ld_single_module = yes; then |
---|
4719 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
---|
4720 | fi |
---|
4721 | SHLIB_LD_LIBS='${LIBS}' |
---|
4722 | SHLIB_SUFFIX=".dylib" |
---|
4723 | DL_OBJS="tclLoadDyld.o" |
---|
4724 | DL_LIBS="" |
---|
4725 | # Don't use -prebind when building for Mac OS X 10.4 or later only: |
---|
4726 | test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ |
---|
4727 | "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ |
---|
4728 | LDFLAGS="$LDFLAGS -prebind" |
---|
4729 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
---|
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
---|
4731 | $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } |
---|
4732 | if test "${tcl_cv_ld_search_paths_first+set}" = set; then : |
---|
4733 | $as_echo_n "(cached) " >&6 |
---|
4734 | else |
---|
4735 | |
---|
4736 | hold_ldflags=$LDFLAGS |
---|
4737 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4739 | /* end confdefs.h. */ |
---|
4740 | |
---|
4741 | int |
---|
4742 | main () |
---|
4743 | { |
---|
4744 | int i; |
---|
4745 | ; |
---|
4746 | return 0; |
---|
4747 | } |
---|
4748 | _ACEOF |
---|
4749 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4750 | tcl_cv_ld_search_paths_first=yes |
---|
4751 | else |
---|
4752 | tcl_cv_ld_search_paths_first=no |
---|
4753 | fi |
---|
4754 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4755 | conftest$ac_exeext conftest.$ac_ext |
---|
4756 | LDFLAGS=$hold_ldflags |
---|
4757 | fi |
---|
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
---|
4759 | $as_echo "$tcl_cv_ld_search_paths_first" >&6; } |
---|
4760 | if test $tcl_cv_ld_search_paths_first = yes; then |
---|
4761 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
4762 | fi |
---|
4763 | CC_SEARCH_FLAGS="" |
---|
4764 | LD_SEARCH_FLAGS="" |
---|
4765 | LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" |
---|
4766 | PLAT_OBJS=\$\(MAC\_OSX_OBJS\) |
---|
4767 | PLAT_SRCS=\$\(MAC\_OSX_SRCS\) |
---|
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
---|
4769 | $as_echo_n "checking whether to use CoreFoundation... " >&6; } |
---|
4770 | # Check whether --enable-corefoundation was given. |
---|
4771 | if test "${enable_corefoundation+set}" = set; then : |
---|
4772 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
---|
4773 | else |
---|
4774 | tcl_corefoundation=yes |
---|
4775 | fi |
---|
4776 | |
---|
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
---|
4778 | $as_echo "$tcl_corefoundation" >&6; } |
---|
4779 | if test $tcl_corefoundation = yes; then |
---|
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
---|
4781 | $as_echo_n "checking for CoreFoundation.framework... " >&6; } |
---|
4782 | if test "${tcl_cv_lib_corefoundation+set}" = set; then : |
---|
4783 | $as_echo_n "(cached) " >&6 |
---|
4784 | else |
---|
4785 | |
---|
4786 | hold_libs=$LIBS |
---|
4787 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4788 | # On Tiger there is no 64-bit CF, so remove 64-bit archs |
---|
4789 | # from CFLAGS et al. while testing for presence of CF. |
---|
4790 | # 64-bit CF is disabled in tclUnixPort.h if necessary. |
---|
4791 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
---|
4792 | done; fi |
---|
4793 | LIBS="$LIBS -framework CoreFoundation" |
---|
4794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4795 | /* end confdefs.h. */ |
---|
4796 | #include <CoreFoundation/CoreFoundation.h> |
---|
4797 | int |
---|
4798 | main () |
---|
4799 | { |
---|
4800 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
4801 | ; |
---|
4802 | return 0; |
---|
4803 | } |
---|
4804 | _ACEOF |
---|
4805 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4806 | tcl_cv_lib_corefoundation=yes |
---|
4807 | else |
---|
4808 | tcl_cv_lib_corefoundation=no |
---|
4809 | fi |
---|
4810 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4811 | conftest$ac_exeext conftest.$ac_ext |
---|
4812 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4813 | eval $v'="$hold_'$v'"' |
---|
4814 | done; fi; LIBS=$hold_libs |
---|
4815 | fi |
---|
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
---|
4817 | $as_echo "$tcl_cv_lib_corefoundation" >&6; } |
---|
4818 | if test $tcl_cv_lib_corefoundation = yes; then |
---|
4819 | LIBS="$LIBS -framework CoreFoundation" |
---|
4820 | $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
---|
4821 | |
---|
4822 | else |
---|
4823 | tcl_corefoundation=no |
---|
4824 | fi |
---|
4825 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then |
---|
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
---|
4827 | $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } |
---|
4828 | if test "${tcl_cv_lib_corefoundation_64+set}" = set; then : |
---|
4829 | $as_echo_n "(cached) " >&6 |
---|
4830 | else |
---|
4831 | |
---|
4832 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4833 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
---|
4834 | done |
---|
4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4836 | /* end confdefs.h. */ |
---|
4837 | #include <CoreFoundation/CoreFoundation.h> |
---|
4838 | int |
---|
4839 | main () |
---|
4840 | { |
---|
4841 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
4842 | ; |
---|
4843 | return 0; |
---|
4844 | } |
---|
4845 | _ACEOF |
---|
4846 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4847 | tcl_cv_lib_corefoundation_64=yes |
---|
4848 | else |
---|
4849 | tcl_cv_lib_corefoundation_64=no |
---|
4850 | fi |
---|
4851 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4852 | conftest$ac_exeext conftest.$ac_ext |
---|
4853 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4854 | eval $v'="$hold_'$v'"' |
---|
4855 | done |
---|
4856 | fi |
---|
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
---|
4858 | $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } |
---|
4859 | if test $tcl_cv_lib_corefoundation_64 = no; then |
---|
4860 | $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
---|
4861 | |
---|
4862 | fi |
---|
4863 | fi |
---|
4864 | fi |
---|
4865 | $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h |
---|
4866 | |
---|
4867 | ;; |
---|
4868 | NEXTSTEP-*) |
---|
4869 | SHLIB_CFLAGS="" |
---|
4870 | SHLIB_LD="cc -nostdlib -r" |
---|
4871 | SHLIB_LD_LIBS="" |
---|
4872 | SHLIB_SUFFIX=".so" |
---|
4873 | DL_OBJS="tclLoadNext.o" |
---|
4874 | DL_LIBS="" |
---|
4875 | CC_SEARCH_FLAGS="" |
---|
4876 | LD_SEARCH_FLAGS="" |
---|
4877 | ;; |
---|
4878 | OS/390-*) |
---|
4879 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
---|
4880 | $as_echo "#define _OE_SOCKETS 1" >>confdefs.h |
---|
4881 | # needed in sys/socket.h |
---|
4882 | ;; |
---|
4883 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
---|
4884 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
---|
4885 | SHLIB_CFLAGS="" |
---|
4886 | # Hack: make package name same as library name |
---|
4887 | SHLIB_LD='ld -R -export :' |
---|
4888 | SHLIB_LD_LIBS="" |
---|
4889 | SHLIB_SUFFIX=".so" |
---|
4890 | DL_OBJS="tclLoadOSF.o" |
---|
4891 | DL_LIBS="" |
---|
4892 | CC_SEARCH_FLAGS="" |
---|
4893 | LD_SEARCH_FLAGS="" |
---|
4894 | ;; |
---|
4895 | OSF1-1.*) |
---|
4896 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
---|
4897 | SHLIB_CFLAGS="-fPIC" |
---|
4898 | if test "$SHARED_BUILD" = "1" ; then |
---|
4899 | SHLIB_LD="ld -shared" |
---|
4900 | else |
---|
4901 | SHLIB_LD="ld -non_shared" |
---|
4902 | fi |
---|
4903 | SHLIB_LD_LIBS="" |
---|
4904 | SHLIB_SUFFIX=".so" |
---|
4905 | DL_OBJS="tclLoadDl.o" |
---|
4906 | DL_LIBS="" |
---|
4907 | CC_SEARCH_FLAGS="" |
---|
4908 | LD_SEARCH_FLAGS="" |
---|
4909 | ;; |
---|
4910 | OSF1-V*) |
---|
4911 | # Digital OSF/1 |
---|
4912 | SHLIB_CFLAGS="" |
---|
4913 | if test "$SHARED_BUILD" = "1" ; then |
---|
4914 | SHLIB_LD='ld -shared -expect_unresolved "*"' |
---|
4915 | else |
---|
4916 | SHLIB_LD='ld -non_shared -expect_unresolved "*"' |
---|
4917 | fi |
---|
4918 | SHLIB_LD_LIBS="" |
---|
4919 | SHLIB_SUFFIX=".so" |
---|
4920 | DL_OBJS="tclLoadDl.o" |
---|
4921 | DL_LIBS="" |
---|
4922 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4923 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4924 | if test "$GCC" = "yes" ; then |
---|
4925 | CFLAGS="$CFLAGS -mieee" |
---|
4926 | else |
---|
4927 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" |
---|
4928 | fi |
---|
4929 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
---|
4930 | if test "${TCL_THREADS}" = "1" ; then |
---|
4931 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
---|
4932 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
---|
4933 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
---|
4934 | if test "$GCC" = "yes" ; then |
---|
4935 | LIBS="$LIBS -lpthread -lmach -lexc" |
---|
4936 | else |
---|
4937 | CFLAGS="$CFLAGS -pthread" |
---|
4938 | LDFLAGS="$LDFLAGS -pthread" |
---|
4939 | fi |
---|
4940 | fi |
---|
4941 | |
---|
4942 | ;; |
---|
4943 | QNX-6*) |
---|
4944 | # QNX RTP |
---|
4945 | # This may work for all QNX, but it was only reported for v6. |
---|
4946 | SHLIB_CFLAGS="-fPIC" |
---|
4947 | SHLIB_LD="ld -Bshareable -x" |
---|
4948 | SHLIB_LD_LIBS="" |
---|
4949 | SHLIB_SUFFIX=".so" |
---|
4950 | DL_OBJS="tclLoadDl.o" |
---|
4951 | # dlopen is in -lc on QNX |
---|
4952 | DL_LIBS="" |
---|
4953 | CC_SEARCH_FLAGS="" |
---|
4954 | LD_SEARCH_FLAGS="" |
---|
4955 | ;; |
---|
4956 | RISCos-*) |
---|
4957 | SHLIB_CFLAGS="-G 0" |
---|
4958 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
4959 | SHLIB_LD_LIBS='${LIBS}' |
---|
4960 | SHLIB_SUFFIX=".a" |
---|
4961 | DL_OBJS="tclLoadAout.o" |
---|
4962 | DL_LIBS="" |
---|
4963 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
4964 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4965 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4966 | ;; |
---|
4967 | SCO_SV-3.2*) |
---|
4968 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
---|
4969 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
---|
4970 | # below. |
---|
4971 | if test "$GCC" = "yes" ; then |
---|
4972 | SHLIB_CFLAGS="-fPIC -melf" |
---|
4973 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
---|
4974 | else |
---|
4975 | SHLIB_CFLAGS="-Kpic -belf" |
---|
4976 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
---|
4977 | fi |
---|
4978 | SHLIB_LD="ld -G" |
---|
4979 | SHLIB_LD_LIBS="" |
---|
4980 | SHLIB_SUFFIX=".so" |
---|
4981 | DL_OBJS="tclLoadDl.o" |
---|
4982 | DL_LIBS="" |
---|
4983 | CC_SEARCH_FLAGS="" |
---|
4984 | LD_SEARCH_FLAGS="" |
---|
4985 | ;; |
---|
4986 | SINIX*5.4*) |
---|
4987 | SHLIB_CFLAGS="-K PIC" |
---|
4988 | SHLIB_LD="cc -G" |
---|
4989 | SHLIB_LD_LIBS="" |
---|
4990 | SHLIB_SUFFIX=".so" |
---|
4991 | DL_OBJS="tclLoadDl.o" |
---|
4992 | DL_LIBS="-ldl" |
---|
4993 | CC_SEARCH_FLAGS="" |
---|
4994 | LD_SEARCH_FLAGS="" |
---|
4995 | ;; |
---|
4996 | SunOS-4*) |
---|
4997 | SHLIB_CFLAGS="-PIC" |
---|
4998 | SHLIB_LD="ld" |
---|
4999 | SHLIB_LD_LIBS="" |
---|
5000 | SHLIB_SUFFIX=".so" |
---|
5001 | DL_OBJS="tclLoadDl.o" |
---|
5002 | DL_LIBS="-ldl" |
---|
5003 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5004 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5005 | |
---|
5006 | # SunOS can't handle version numbers with dots in them in library |
---|
5007 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
---|
5008 | # requires an extra version number at the end of .so file names. |
---|
5009 | # So, the library has to have a name like libtcl75.so.1.0 |
---|
5010 | |
---|
5011 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
5012 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5013 | TCL_LIB_VERSIONS_OK=nodots |
---|
5014 | ;; |
---|
5015 | SunOS-5.[0-6]) |
---|
5016 | # Careful to not let 5.10+ fall into this case |
---|
5017 | |
---|
5018 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
5019 | # won't define thread-safe library routines. |
---|
5020 | |
---|
5021 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
5022 | |
---|
5023 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
5024 | |
---|
5025 | |
---|
5026 | SHLIB_CFLAGS="-KPIC" |
---|
5027 | |
---|
5028 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5029 | # symbols when dynamically loaded into tclsh. |
---|
5030 | |
---|
5031 | SHLIB_LD_LIBS='${LIBS}' |
---|
5032 | SHLIB_SUFFIX=".so" |
---|
5033 | DL_OBJS="tclLoadDl.o" |
---|
5034 | DL_LIBS="-ldl" |
---|
5035 | if test "$GCC" = "yes" ; then |
---|
5036 | SHLIB_LD="$CC -shared" |
---|
5037 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5038 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5039 | else |
---|
5040 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
5041 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5042 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5043 | fi |
---|
5044 | ;; |
---|
5045 | SunOS-5*) |
---|
5046 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
5047 | # won't define thread-safe library routines. |
---|
5048 | |
---|
5049 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
5050 | |
---|
5051 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
5052 | |
---|
5053 | |
---|
5054 | SHLIB_CFLAGS="-KPIC" |
---|
5055 | |
---|
5056 | # Check to enable 64-bit flags for compiler/linker |
---|
5057 | if test "$do64bit" = "yes" ; then |
---|
5058 | arch=`isainfo` |
---|
5059 | if test "$arch" = "sparcv9 sparc" ; then |
---|
5060 | if test "$GCC" = "yes" ; then |
---|
5061 | if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then |
---|
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
---|
5063 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
---|
5064 | else |
---|
5065 | do64bit_ok=yes |
---|
5066 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
---|
5067 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
---|
5068 | SHLIB_CFLAGS="-fPIC" |
---|
5069 | fi |
---|
5070 | else |
---|
5071 | do64bit_ok=yes |
---|
5072 | if test "$do64bitVIS" = "yes" ; then |
---|
5073 | CFLAGS="$CFLAGS -xarch=v9a" |
---|
5074 | LDFLAGS="$LDFLAGS -xarch=v9a" |
---|
5075 | else |
---|
5076 | CFLAGS="$CFLAGS -xarch=v9" |
---|
5077 | LDFLAGS="$LDFLAGS -xarch=v9" |
---|
5078 | fi |
---|
5079 | # Solaris 64 uses this as well |
---|
5080 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
---|
5081 | fi |
---|
5082 | elif test "$arch" = "amd64 i386" ; then |
---|
5083 | if test "$GCC" = "yes" ; then |
---|
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
5085 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
5086 | else |
---|
5087 | do64bit_ok=yes |
---|
5088 | CFLAGS="$CFLAGS -xarch=amd64" |
---|
5089 | LDFLAGS="$LDFLAGS -xarch=amd64" |
---|
5090 | fi |
---|
5091 | else |
---|
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
---|
5093 | $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} |
---|
5094 | fi |
---|
5095 | fi |
---|
5096 | |
---|
5097 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5098 | # symbols when dynamically loaded into tclsh. |
---|
5099 | |
---|
5100 | SHLIB_LD_LIBS='${LIBS}' |
---|
5101 | SHLIB_SUFFIX=".so" |
---|
5102 | DL_OBJS="tclLoadDl.o" |
---|
5103 | DL_LIBS="-ldl" |
---|
5104 | if test "$GCC" = "yes" ; then |
---|
5105 | SHLIB_LD="$CC -shared" |
---|
5106 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5107 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5108 | if test "$do64bit_ok" = "yes" ; then |
---|
5109 | # We need to specify -static-libgcc or we need to |
---|
5110 | # add the path to the sparv9 libgcc. |
---|
5111 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
---|
5112 | # for finding sparcv9 libgcc, get the regular libgcc |
---|
5113 | # path, remove so name and append 'sparcv9' |
---|
5114 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
---|
5115 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
---|
5116 | fi |
---|
5117 | else |
---|
5118 | case $system in |
---|
5119 | SunOS-5.[1-9][0-9]*) |
---|
5120 | SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; |
---|
5121 | *) |
---|
5122 | SHLIB_LD="/usr/ccs/bin/ld -G -z text";; |
---|
5123 | esac |
---|
5124 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5125 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5126 | fi |
---|
5127 | ;; |
---|
5128 | ULTRIX-4.*) |
---|
5129 | SHLIB_CFLAGS="-G 0" |
---|
5130 | SHLIB_SUFFIX=".a" |
---|
5131 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
5132 | SHLIB_LD_LIBS='${LIBS}' |
---|
5133 | DL_OBJS="tclLoadAout.o" |
---|
5134 | DL_LIBS="" |
---|
5135 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
5136 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5137 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5138 | if test "$GCC" != "yes" ; then |
---|
5139 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1" |
---|
5140 | fi |
---|
5141 | ;; |
---|
5142 | UNIX_SV* | UnixWare-5*) |
---|
5143 | SHLIB_CFLAGS="-KPIC" |
---|
5144 | SHLIB_LD="cc -G" |
---|
5145 | SHLIB_LD_LIBS="" |
---|
5146 | SHLIB_SUFFIX=".so" |
---|
5147 | DL_OBJS="tclLoadDl.o" |
---|
5148 | DL_LIBS="-ldl" |
---|
5149 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
---|
5150 | # that don't grok the -Bexport option. Test that it does. |
---|
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
---|
5152 | $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } |
---|
5153 | if test "${tcl_cv_ld_Bexport+set}" = set; then : |
---|
5154 | $as_echo_n "(cached) " >&6 |
---|
5155 | else |
---|
5156 | |
---|
5157 | hold_ldflags=$LDFLAGS |
---|
5158 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
5159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5160 | /* end confdefs.h. */ |
---|
5161 | |
---|
5162 | int |
---|
5163 | main () |
---|
5164 | { |
---|
5165 | int i; |
---|
5166 | ; |
---|
5167 | return 0; |
---|
5168 | } |
---|
5169 | _ACEOF |
---|
5170 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5171 | tcl_cv_ld_Bexport=yes |
---|
5172 | else |
---|
5173 | tcl_cv_ld_Bexport=no |
---|
5174 | fi |
---|
5175 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5176 | conftest$ac_exeext conftest.$ac_ext |
---|
5177 | LDFLAGS=$hold_ldflags |
---|
5178 | fi |
---|
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
---|
5180 | $as_echo "$tcl_cv_ld_Bexport" >&6; } |
---|
5181 | if test $tcl_cv_ld_Bexport = yes; then |
---|
5182 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
5183 | fi |
---|
5184 | CC_SEARCH_FLAGS="" |
---|
5185 | LD_SEARCH_FLAGS="" |
---|
5186 | ;; |
---|
5187 | esac |
---|
5188 | |
---|
5189 | if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then |
---|
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
---|
5191 | $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
---|
5192 | fi |
---|
5193 | |
---|
5194 | |
---|
5195 | |
---|
5196 | |
---|
5197 | # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic |
---|
5198 | # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, |
---|
5199 | # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need |
---|
5200 | # to determine which of several header files defines the a.out file |
---|
5201 | # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we |
---|
5202 | # support only a file format that is more or less version-7-compatible. |
---|
5203 | # In particular, |
---|
5204 | # - a.out files must begin with `struct exec'. |
---|
5205 | # - the N_TXTOFF on the `struct exec' must compute the seek address |
---|
5206 | # of the text segment |
---|
5207 | # - The `struct exec' must contain a_magic, a_text, a_data, a_bss |
---|
5208 | # and a_entry fields. |
---|
5209 | # The following compilation should succeed if and only if either sys/exec.h |
---|
5210 | # or a.out.h is usable for the purpose. |
---|
5211 | # |
---|
5212 | # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the |
---|
5213 | # `struct exec' includes a second header that contains information that |
---|
5214 | # duplicates the v7 fields that are needed. |
---|
5215 | |
---|
5216 | if test "x$DL_OBJS" = "xtclLoadAout.o" ; then |
---|
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 |
---|
5218 | $as_echo_n "checking sys/exec.h... " >&6; } |
---|
5219 | if test "${tcl_cv_sysexec_h+set}" = set; then : |
---|
5220 | $as_echo_n "(cached) " >&6 |
---|
5221 | else |
---|
5222 | |
---|
5223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5224 | /* end confdefs.h. */ |
---|
5225 | #include <sys/exec.h> |
---|
5226 | int |
---|
5227 | main () |
---|
5228 | { |
---|
5229 | |
---|
5230 | struct exec foo; |
---|
5231 | unsigned long seek; |
---|
5232 | int flag; |
---|
5233 | #if defined(__mips) || defined(mips) |
---|
5234 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5235 | #else |
---|
5236 | seek = N_TXTOFF (foo); |
---|
5237 | #endif |
---|
5238 | flag = (foo.a_magic == OMAGIC); |
---|
5239 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5240 | |
---|
5241 | ; |
---|
5242 | return 0; |
---|
5243 | } |
---|
5244 | _ACEOF |
---|
5245 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5246 | tcl_cv_sysexec_h=usable |
---|
5247 | else |
---|
5248 | tcl_cv_sysexec_h=unusable |
---|
5249 | fi |
---|
5250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5251 | fi |
---|
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 |
---|
5253 | $as_echo "$tcl_cv_sysexec_h" >&6; } |
---|
5254 | if test $tcl_cv_sysexec_h = usable; then |
---|
5255 | $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h |
---|
5256 | |
---|
5257 | else |
---|
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 |
---|
5259 | $as_echo_n "checking a.out.h... " >&6; } |
---|
5260 | if test "${tcl_cv_aout_h+set}" = set; then : |
---|
5261 | $as_echo_n "(cached) " >&6 |
---|
5262 | else |
---|
5263 | |
---|
5264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5265 | /* end confdefs.h. */ |
---|
5266 | #include <a.out.h> |
---|
5267 | int |
---|
5268 | main () |
---|
5269 | { |
---|
5270 | |
---|
5271 | struct exec foo; |
---|
5272 | unsigned long seek; |
---|
5273 | int flag; |
---|
5274 | #if defined(__mips) || defined(mips) |
---|
5275 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5276 | #else |
---|
5277 | seek = N_TXTOFF (foo); |
---|
5278 | #endif |
---|
5279 | flag = (foo.a_magic == OMAGIC); |
---|
5280 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5281 | |
---|
5282 | ; |
---|
5283 | return 0; |
---|
5284 | } |
---|
5285 | _ACEOF |
---|
5286 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5287 | tcl_cv_aout_h=usable |
---|
5288 | else |
---|
5289 | tcl_cv_aout_h=unusable |
---|
5290 | fi |
---|
5291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5292 | fi |
---|
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 |
---|
5294 | $as_echo "$tcl_cv_aout_h" >&6; } |
---|
5295 | if test $tcl_cv_aout_h = usable; then |
---|
5296 | $as_echo "#define USE_A_OUT_H 1" >>confdefs.h |
---|
5297 | |
---|
5298 | else |
---|
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 |
---|
5300 | $as_echo_n "checking sys/exec_aout.h... " >&6; } |
---|
5301 | if test "${tcl_cv_sysexecaout_h+set}" = set; then : |
---|
5302 | $as_echo_n "(cached) " >&6 |
---|
5303 | else |
---|
5304 | |
---|
5305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5306 | /* end confdefs.h. */ |
---|
5307 | #include <sys/exec_aout.h> |
---|
5308 | int |
---|
5309 | main () |
---|
5310 | { |
---|
5311 | |
---|
5312 | struct exec foo; |
---|
5313 | unsigned long seek; |
---|
5314 | int flag; |
---|
5315 | #if defined(__mips) || defined(mips) |
---|
5316 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5317 | #else |
---|
5318 | seek = N_TXTOFF (foo); |
---|
5319 | #endif |
---|
5320 | flag = (foo.a_midmag == OMAGIC); |
---|
5321 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5322 | |
---|
5323 | ; |
---|
5324 | return 0; |
---|
5325 | } |
---|
5326 | _ACEOF |
---|
5327 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5328 | tcl_cv_sysexecaout_h=usable |
---|
5329 | else |
---|
5330 | tcl_cv_sysexecaout_h=unusable |
---|
5331 | fi |
---|
5332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5333 | fi |
---|
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 |
---|
5335 | $as_echo "$tcl_cv_sysexecaout_h" >&6; } |
---|
5336 | if test $tcl_cv_sysexecaout_h = usable; then |
---|
5337 | $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h |
---|
5338 | |
---|
5339 | else |
---|
5340 | DL_OBJS="" |
---|
5341 | fi |
---|
5342 | fi |
---|
5343 | fi |
---|
5344 | fi |
---|
5345 | |
---|
5346 | # Step 5: disable dynamic loading if requested via a command-line switch. |
---|
5347 | |
---|
5348 | # Check whether --enable-load was given. |
---|
5349 | if test "${enable_load+set}" = set; then : |
---|
5350 | enableval=$enable_load; tcl_ok=$enableval |
---|
5351 | else |
---|
5352 | tcl_ok=yes |
---|
5353 | fi |
---|
5354 | |
---|
5355 | if test "$tcl_ok" = "no"; then |
---|
5356 | DL_OBJS="" |
---|
5357 | fi |
---|
5358 | |
---|
5359 | if test "x$DL_OBJS" != "x" ; then |
---|
5360 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
---|
5361 | else |
---|
5362 | echo "Can't figure out how to do dynamic loading or shared libraries" |
---|
5363 | echo "on this system." |
---|
5364 | SHLIB_CFLAGS="" |
---|
5365 | SHLIB_LD="" |
---|
5366 | SHLIB_SUFFIX="" |
---|
5367 | DL_OBJS="tclLoadNone.o" |
---|
5368 | DL_LIBS="" |
---|
5369 | LDFLAGS="$LDFLAGS_ORIG" |
---|
5370 | CC_SEARCH_FLAGS="" |
---|
5371 | LD_SEARCH_FLAGS="" |
---|
5372 | BUILD_DLTEST="" |
---|
5373 | fi |
---|
5374 | |
---|
5375 | # If we're running gcc, then change the C flags for compiling shared |
---|
5376 | # libraries to the right flags for gcc, instead of those for the |
---|
5377 | # standard manufacturer compiler. |
---|
5378 | |
---|
5379 | if test "$DL_OBJS" != "tclLoadNone.o" ; then |
---|
5380 | if test "$GCC" = "yes" ; then |
---|
5381 | case $system in |
---|
5382 | AIX-*) |
---|
5383 | ;; |
---|
5384 | BSD/OS*) |
---|
5385 | ;; |
---|
5386 | IRIX*) |
---|
5387 | ;; |
---|
5388 | NetBSD-*|FreeBSD-*|OpenBSD-*) |
---|
5389 | ;; |
---|
5390 | Darwin-*) |
---|
5391 | ;; |
---|
5392 | RISCos-*) |
---|
5393 | ;; |
---|
5394 | SCO_SV-3.2*) |
---|
5395 | ;; |
---|
5396 | ULTRIX-4.*) |
---|
5397 | ;; |
---|
5398 | *) |
---|
5399 | SHLIB_CFLAGS="-fPIC" |
---|
5400 | ;; |
---|
5401 | esac |
---|
5402 | fi |
---|
5403 | fi |
---|
5404 | |
---|
5405 | if test "$SHARED_LIB_SUFFIX" = "" ; then |
---|
5406 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' |
---|
5407 | fi |
---|
5408 | if test "$UNSHARED_LIB_SUFFIX" = "" ; then |
---|
5409 | UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
5410 | fi |
---|
5411 | |
---|
5412 | if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then |
---|
5413 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
---|
5414 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
---|
5415 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
5416 | else |
---|
5417 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
---|
5418 | |
---|
5419 | if test "$RANLIB" = "" ; then |
---|
5420 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
---|
5421 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
5422 | else |
---|
5423 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
---|
5424 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' |
---|
5425 | fi |
---|
5426 | |
---|
5427 | fi |
---|
5428 | |
---|
5429 | |
---|
5430 | # Stub lib does not depend on shared/static configuration |
---|
5431 | if test "$RANLIB" = "" ; then |
---|
5432 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
---|
5433 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' |
---|
5434 | else |
---|
5435 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
---|
5436 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' |
---|
5437 | fi |
---|
5438 | |
---|
5439 | |
---|
5440 | |
---|
5441 | |
---|
5442 | |
---|
5443 | |
---|
5444 | |
---|
5445 | |
---|
5446 | |
---|
5447 | |
---|
5448 | |
---|
5449 | |
---|
5450 | |
---|
5451 | |
---|
5452 | |
---|
5453 | |
---|
5454 | |
---|
5455 | |
---|
5456 | |
---|
5457 | |
---|
5458 | |
---|
5459 | |
---|
5460 | |
---|
5461 | |
---|
5462 | |
---|
5463 | |
---|
5464 | |
---|
5465 | |
---|
5466 | |
---|
5467 | |
---|
5468 | |
---|
5469 | |
---|
5470 | |
---|
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 |
---|
5472 | $as_echo_n "checking how to build libraries... " >&6; } |
---|
5473 | # Check whether --enable-shared was given. |
---|
5474 | if test "${enable_shared+set}" = set; then : |
---|
5475 | enableval=$enable_shared; tcl_ok=$enableval |
---|
5476 | else |
---|
5477 | tcl_ok=yes |
---|
5478 | fi |
---|
5479 | |
---|
5480 | |
---|
5481 | if test "${enable_shared+set}" = set; then |
---|
5482 | enableval="$enable_shared" |
---|
5483 | tcl_ok=$enableval |
---|
5484 | else |
---|
5485 | tcl_ok=yes |
---|
5486 | fi |
---|
5487 | |
---|
5488 | if test "$tcl_ok" = "yes" ; then |
---|
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 |
---|
5490 | $as_echo "shared" >&6; } |
---|
5491 | SHARED_BUILD=1 |
---|
5492 | else |
---|
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
---|
5494 | $as_echo "static" >&6; } |
---|
5495 | SHARED_BUILD=0 |
---|
5496 | $as_echo "#define STATIC_BUILD 1" >>confdefs.h |
---|
5497 | |
---|
5498 | fi |
---|
5499 | |
---|
5500 | |
---|
5501 | |
---|
5502 | |
---|
5503 | |
---|
5504 | |
---|
5505 | |
---|
5506 | |
---|
5507 | |
---|
5508 | |
---|
5509 | gui_with_tcl="" |
---|
5510 | |
---|
5511 | make_command="" |
---|
5512 | for m in "$MAKE" make gmake gnumake ; do |
---|
5513 | if test "x${m}" != "x" ; then |
---|
5514 | if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then |
---|
5515 | make_command=$m; break; |
---|
5516 | fi |
---|
5517 | fi |
---|
5518 | done |
---|
5519 | if test "x${make_command}" = "x" ; then |
---|
5520 | as_fn_error "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5 |
---|
5521 | fi |
---|
5522 | MAKE=${make_command} |
---|
5523 | |
---|
5524 | |
---|
5525 | # Check whether --enable-gui was given. |
---|
5526 | if test "${enable_gui+set}" = set; then : |
---|
5527 | enableval=$enable_gui; |
---|
5528 | else |
---|
5529 | enable_gui=yes |
---|
5530 | fi |
---|
5531 | |
---|
5532 | |
---|
5533 | ENABLE_GUI= |
---|
5534 | if test "$enable_gui" != "no" ; then |
---|
5535 | ENABLE_GUI="yes" |
---|
5536 | fi |
---|
5537 | |
---|
5538 | |
---|
5539 | with_tclsh="yes" |
---|
5540 | |
---|
5541 | # Check whether --with-tclsh was given. |
---|
5542 | if test "${with_tclsh+set}" = set; then : |
---|
5543 | withval=$with_tclsh; |
---|
5544 | else |
---|
5545 | with_tclsh=yes |
---|
5546 | fi |
---|
5547 | |
---|
5548 | |
---|
5549 | TCLSH= |
---|
5550 | # ----------------------------------------------------------------------- |
---|
5551 | # |
---|
5552 | # Find the Tcl build configuration file "tclConfig.sh" |
---|
5553 | # |
---|
5554 | # ----------------------------------------------------------------------- |
---|
5555 | |
---|
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5 |
---|
5557 | $as_echo_n "checking for tclConfig.sh... " >&6; } |
---|
5558 | tcl_config_sh="" |
---|
5559 | if test "x$gui_with_tcl" != "x" ; then |
---|
5560 | |
---|
5561 | # Verify that a tclConfig.sh file exists in the directory specified |
---|
5562 | # by --with-tcl. |
---|
5563 | |
---|
5564 | for dir in \ |
---|
5565 | $gui_with_tcl |
---|
5566 | do |
---|
5567 | if test -r "$dir/tclConfig.sh" ; then |
---|
5568 | tcl_config_sh="$dir/tclConfig.sh" |
---|
5569 | break |
---|
5570 | elif test -r "$dir/lib/tclConfig.sh" ; then |
---|
5571 | tcl_config_sh="$dir/lib/tclConfig.sh" |
---|
5572 | break |
---|
5573 | fi |
---|
5574 | done |
---|
5575 | else |
---|
5576 | |
---|
5577 | # Otherwise, search for Tcl configuration file. |
---|
5578 | |
---|
5579 | # 1. Search previously named locations. |
---|
5580 | |
---|
5581 | for dir in \ |
---|
5582 | $prefix \ |
---|
5583 | $exec_prefix \ |
---|
5584 | $gui_cv_tcl_lib |
---|
5585 | do |
---|
5586 | if test -r "$dir/tclConfig.sh" ; then |
---|
5587 | tcl_config_sh="$dir/tclConfig.sh" |
---|
5588 | break |
---|
5589 | elif test -r "$dir/lib/tclConfig.sh" ; then |
---|
5590 | tcl_config_sh="$dir/lib/tclConfig.sh" |
---|
5591 | break |
---|
5592 | fi |
---|
5593 | done |
---|
5594 | fi |
---|
5595 | |
---|
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5 |
---|
5597 | $as_echo "${tcl_config_sh}" >&6; } |
---|
5598 | |
---|
5599 | if test "x$tcl_config_sh" = "x" ; then |
---|
5600 | echo "can't find Tcl configuration script \"tclConfig.sh\"" |
---|
5601 | exit 1 |
---|
5602 | fi |
---|
5603 | . ${tcl_config_sh} |
---|
5604 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
5605 | |
---|
5606 | case $target in |
---|
5607 | *-*-cygwin*|*-*-mingw*) |
---|
5608 | gui_platform="win" |
---|
5609 | TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION} |
---|
5610 | ;; |
---|
5611 | *-*-darwin*) |
---|
5612 | gui_platform="macosx" |
---|
5613 | TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} |
---|
5614 | ;; |
---|
5615 | *) |
---|
5616 | blt_platform="unix" |
---|
5617 | TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} |
---|
5618 | ;; |
---|
5619 | esac |
---|
5620 | |
---|
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH}" >&5 |
---|
5622 | $as_echo "${TCLSH}" >&6; } |
---|
5623 | |
---|
5624 | |
---|
5625 | |
---|
5626 | |
---|
5627 | |
---|
5628 | |
---|
5629 | if test -f "${exec_prefix}/lib/tclConfig.sh" ; then |
---|
5630 | . ${exec_prefix}/lib/tclConfig.sh |
---|
5631 | fi |
---|
5632 | if test -f "${exec_prefix}/lib/tclConfig.sh" ; then |
---|
5633 | . ${exec_prefix}/lib/tkConfig.sh |
---|
5634 | fi |
---|
5635 | |
---|
5636 | |
---|
5637 | |
---|
5638 | 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" |
---|
5639 | |
---|
5640 | cat >confcache <<\_ACEOF |
---|
5641 | # This file is a shell script that caches the results of configure |
---|
5642 | # tests run on this system so they can be shared between configure |
---|
5643 | # scripts and configure runs, see configure's option --config-cache. |
---|
5644 | # It is not useful on other systems. If it contains results you don't |
---|
5645 | # want to keep, you may remove or edit it. |
---|
5646 | # |
---|
5647 | # config.status only pays attention to the cache file if you give it |
---|
5648 | # the --recheck option to rerun configure. |
---|
5649 | # |
---|
5650 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5651 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5652 | # following values. |
---|
5653 | |
---|
5654 | _ACEOF |
---|
5655 | |
---|
5656 | # The following way of writing the cache mishandles newlines in values, |
---|
5657 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5658 | # So, we kill variables containing newlines. |
---|
5659 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5660 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5661 | ( |
---|
5662 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5663 | eval ac_val=\$$ac_var |
---|
5664 | case $ac_val in #( |
---|
5665 | *${as_nl}*) |
---|
5666 | case $ac_var in #( |
---|
5667 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5668 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5669 | esac |
---|
5670 | case $ac_var in #( |
---|
5671 | _ | IFS | as_nl) ;; #( |
---|
5672 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5673 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5674 | esac ;; |
---|
5675 | esac |
---|
5676 | done |
---|
5677 | |
---|
5678 | (set) 2>&1 | |
---|
5679 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5680 | *${as_nl}ac_space=\ *) |
---|
5681 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5682 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5683 | sed -n \ |
---|
5684 | "s/'/'\\\\''/g; |
---|
5685 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5686 | ;; #( |
---|
5687 | *) |
---|
5688 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5689 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5690 | ;; |
---|
5691 | esac | |
---|
5692 | sort |
---|
5693 | ) | |
---|
5694 | sed ' |
---|
5695 | /^ac_cv_env_/b end |
---|
5696 | t clear |
---|
5697 | :clear |
---|
5698 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5699 | t end |
---|
5700 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5701 | :end' >>confcache |
---|
5702 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5703 | if test -w "$cache_file"; then |
---|
5704 | test "x$cache_file" != "x/dev/null" && |
---|
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5706 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
5707 | cat confcache >$cache_file |
---|
5708 | else |
---|
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5710 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5711 | fi |
---|
5712 | fi |
---|
5713 | rm -f confcache |
---|
5714 | |
---|
5715 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5716 | # Let make expand exec_prefix. |
---|
5717 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5718 | |
---|
5719 | # Transform confdefs.h into DEFS. |
---|
5720 | # Protect against shell expansion while executing Makefile rules. |
---|
5721 | # Protect against Makefile macro expansion. |
---|
5722 | # |
---|
5723 | # If the first sed substitution is executed (which looks for macros that |
---|
5724 | # take arguments), then branch to the quote section. Otherwise, |
---|
5725 | # look for a macro that doesn't take arguments. |
---|
5726 | ac_script=' |
---|
5727 | :mline |
---|
5728 | /\\$/{ |
---|
5729 | N |
---|
5730 | s,\\\n,, |
---|
5731 | b mline |
---|
5732 | } |
---|
5733 | t clear |
---|
5734 | :clear |
---|
5735 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
5736 | t quote |
---|
5737 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
5738 | t quote |
---|
5739 | b any |
---|
5740 | :quote |
---|
5741 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
5742 | s/\[/\\&/g |
---|
5743 | s/\]/\\&/g |
---|
5744 | s/\$/$$/g |
---|
5745 | H |
---|
5746 | :any |
---|
5747 | ${ |
---|
5748 | g |
---|
5749 | s/^\n// |
---|
5750 | s/\n/ /g |
---|
5751 | p |
---|
5752 | } |
---|
5753 | ' |
---|
5754 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
5755 | |
---|
5756 | |
---|
5757 | ac_libobjs= |
---|
5758 | ac_ltlibobjs= |
---|
5759 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5760 | # 1. Remove the extension, and $U if already installed. |
---|
5761 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5762 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
5763 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5764 | # will be set to the directory where LIBOBJS objects are built. |
---|
5765 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5766 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5767 | done |
---|
5768 | LIBOBJS=$ac_libobjs |
---|
5769 | |
---|
5770 | LTLIBOBJS=$ac_ltlibobjs |
---|
5771 | |
---|
5772 | |
---|
5773 | |
---|
5774 | : ${CONFIG_STATUS=./config.status} |
---|
5775 | ac_write_fail=0 |
---|
5776 | ac_clean_files_save=$ac_clean_files |
---|
5777 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5779 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5780 | as_write_fail=0 |
---|
5781 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5782 | #! $SHELL |
---|
5783 | # Generated by $as_me. |
---|
5784 | # Run this file to recreate the current configuration. |
---|
5785 | # Compiler output produced by configure, useful for debugging |
---|
5786 | # configure, is in config.log if it exists. |
---|
5787 | |
---|
5788 | debug=false |
---|
5789 | ac_cs_recheck=false |
---|
5790 | ac_cs_silent=false |
---|
5791 | |
---|
5792 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5793 | export SHELL |
---|
5794 | _ASEOF |
---|
5795 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5796 | ## -------------------- ## |
---|
5797 | ## M4sh Initialization. ## |
---|
5798 | ## -------------------- ## |
---|
5799 | |
---|
5800 | # Be more Bourne compatible |
---|
5801 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5802 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
5803 | emulate sh |
---|
5804 | NULLCMD=: |
---|
5805 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5806 | # is contrary to our usage. Disable this feature. |
---|
5807 | alias -g '${1+"$@"}'='"$@"' |
---|
5808 | setopt NO_GLOB_SUBST |
---|
5809 | else |
---|
5810 | case `(set -o) 2>/dev/null` in #( |
---|
5811 | *posix*) : |
---|
5812 | set -o posix ;; #( |
---|
5813 | *) : |
---|
5814 | ;; |
---|
5815 | esac |
---|
5816 | fi |
---|
5817 | |
---|
5818 | |
---|
5819 | as_nl=' |
---|
5820 | ' |
---|
5821 | export as_nl |
---|
5822 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
5823 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5824 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5825 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5826 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
5827 | # but without wasting forks for bash or zsh. |
---|
5828 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
5829 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5830 | as_echo='print -r --' |
---|
5831 | as_echo_n='print -rn --' |
---|
5832 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5833 | as_echo='printf %s\n' |
---|
5834 | as_echo_n='printf %s' |
---|
5835 | else |
---|
5836 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
5837 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
5838 | as_echo_n='/usr/ucb/echo -n' |
---|
5839 | else |
---|
5840 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
5841 | as_echo_n_body='eval |
---|
5842 | arg=$1; |
---|
5843 | case $arg in #( |
---|
5844 | *"$as_nl"*) |
---|
5845 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
5846 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
5847 | esac; |
---|
5848 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
5849 | ' |
---|
5850 | export as_echo_n_body |
---|
5851 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
5852 | fi |
---|
5853 | export as_echo_body |
---|
5854 | as_echo='sh -c $as_echo_body as_echo' |
---|
5855 | fi |
---|
5856 | |
---|
5857 | # The user is always right. |
---|
5858 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5859 | PATH_SEPARATOR=: |
---|
5860 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5861 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5862 | PATH_SEPARATOR=';' |
---|
5863 | } |
---|
5864 | fi |
---|
5865 | |
---|
5866 | |
---|
5867 | # IFS |
---|
5868 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
5869 | # there to prevent editors from complaining about space-tab. |
---|
5870 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
5871 | # splitting by setting IFS to empty value.) |
---|
5872 | IFS=" "" $as_nl" |
---|
5873 | |
---|
5874 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5875 | case $0 in #(( |
---|
5876 | *[\\/]* ) as_myself=$0 ;; |
---|
5877 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5878 | for as_dir in $PATH |
---|
5879 | do |
---|
5880 | IFS=$as_save_IFS |
---|
5881 | test -z "$as_dir" && as_dir=. |
---|
5882 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5883 | done |
---|
5884 | IFS=$as_save_IFS |
---|
5885 | |
---|
5886 | ;; |
---|
5887 | esac |
---|
5888 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5889 | # in which case we are not to be found in the path. |
---|
5890 | if test "x$as_myself" = x; then |
---|
5891 | as_myself=$0 |
---|
5892 | fi |
---|
5893 | if test ! -f "$as_myself"; then |
---|
5894 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
5895 | exit 1 |
---|
5896 | fi |
---|
5897 | |
---|
5898 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
5899 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
5900 | # suppresses any "Segmentation fault" message there. '((' could |
---|
5901 | # trigger a bug in pdksh 5.2.14. |
---|
5902 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
5903 | do eval test x\${$as_var+set} = xset \ |
---|
5904 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
5905 | done |
---|
5906 | PS1='$ ' |
---|
5907 | PS2='> ' |
---|
5908 | PS4='+ ' |
---|
5909 | |
---|
5910 | # NLS nuisances. |
---|
5911 | LC_ALL=C |
---|
5912 | export LC_ALL |
---|
5913 | LANGUAGE=C |
---|
5914 | export LANGUAGE |
---|
5915 | |
---|
5916 | # CDPATH. |
---|
5917 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
5918 | |
---|
5919 | |
---|
5920 | # as_fn_error ERROR [LINENO LOG_FD] |
---|
5921 | # --------------------------------- |
---|
5922 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
5923 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
5924 | # script with status $?, using 1 if that was 0. |
---|
5925 | as_fn_error () |
---|
5926 | { |
---|
5927 | as_status=$?; test $as_status -eq 0 && as_status=1 |
---|
5928 | if test "$3"; then |
---|
5929 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
5930 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
---|
5931 | fi |
---|
5932 | $as_echo "$as_me: error: $1" >&2 |
---|
5933 | as_fn_exit $as_status |
---|
5934 | } # as_fn_error |
---|
5935 | |
---|
5936 | |
---|
5937 | # as_fn_set_status STATUS |
---|
5938 | # ----------------------- |
---|
5939 | # Set $? to STATUS, without forking. |
---|
5940 | as_fn_set_status () |
---|
5941 | { |
---|
5942 | return $1 |
---|
5943 | } # as_fn_set_status |
---|
5944 | |
---|
5945 | # as_fn_exit STATUS |
---|
5946 | # ----------------- |
---|
5947 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
5948 | as_fn_exit () |
---|
5949 | { |
---|
5950 | set +e |
---|
5951 | as_fn_set_status $1 |
---|
5952 | exit $1 |
---|
5953 | } # as_fn_exit |
---|
5954 | |
---|
5955 | # as_fn_unset VAR |
---|
5956 | # --------------- |
---|
5957 | # Portably unset VAR. |
---|
5958 | as_fn_unset () |
---|
5959 | { |
---|
5960 | { eval $1=; unset $1;} |
---|
5961 | } |
---|
5962 | as_unset=as_fn_unset |
---|
5963 | # as_fn_append VAR VALUE |
---|
5964 | # ---------------------- |
---|
5965 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
5966 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
5967 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
5968 | # implementations. |
---|
5969 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
5970 | eval 'as_fn_append () |
---|
5971 | { |
---|
5972 | eval $1+=\$2 |
---|
5973 | }' |
---|
5974 | else |
---|
5975 | as_fn_append () |
---|
5976 | { |
---|
5977 | eval $1=\$$1\$2 |
---|
5978 | } |
---|
5979 | fi # as_fn_append |
---|
5980 | |
---|
5981 | # as_fn_arith ARG... |
---|
5982 | # ------------------ |
---|
5983 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
5984 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
5985 | # must be portable across $(()) and expr. |
---|
5986 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
5987 | eval 'as_fn_arith () |
---|
5988 | { |
---|
5989 | as_val=$(( $* )) |
---|
5990 | }' |
---|
5991 | else |
---|
5992 | as_fn_arith () |
---|
5993 | { |
---|
5994 | as_val=`expr "$@" || test $? -eq 1` |
---|
5995 | } |
---|
5996 | fi # as_fn_arith |
---|
5997 | |
---|
5998 | |
---|
5999 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6000 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6001 | as_expr=expr |
---|
6002 | else |
---|
6003 | as_expr=false |
---|
6004 | fi |
---|
6005 | |
---|
6006 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6007 | as_basename=basename |
---|
6008 | else |
---|
6009 | as_basename=false |
---|
6010 | fi |
---|
6011 | |
---|
6012 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6013 | as_dirname=dirname |
---|
6014 | else |
---|
6015 | as_dirname=false |
---|
6016 | fi |
---|
6017 | |
---|
6018 | as_me=`$as_basename -- "$0" || |
---|
6019 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6020 | X"$0" : 'X\(//\)$' \| \ |
---|
6021 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6022 | $as_echo X/"$0" | |
---|
6023 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6024 | s//\1/ |
---|
6025 | q |
---|
6026 | } |
---|
6027 | /^X\/\(\/\/\)$/{ |
---|
6028 | s//\1/ |
---|
6029 | q |
---|
6030 | } |
---|
6031 | /^X\/\(\/\).*/{ |
---|
6032 | s//\1/ |
---|
6033 | q |
---|
6034 | } |
---|
6035 | s/.*/./; q'` |
---|
6036 | |
---|
6037 | # Avoid depending upon Character Ranges. |
---|
6038 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6039 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6040 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6041 | as_cr_digits='0123456789' |
---|
6042 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6043 | |
---|
6044 | ECHO_C= ECHO_N= ECHO_T= |
---|
6045 | case `echo -n x` in #((((( |
---|
6046 | -n*) |
---|
6047 | case `echo 'xy\c'` in |
---|
6048 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6049 | xy) ECHO_C='\c';; |
---|
6050 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6051 | ECHO_T=' ';; |
---|
6052 | esac;; |
---|
6053 | *) |
---|
6054 | ECHO_N='-n';; |
---|
6055 | esac |
---|
6056 | |
---|
6057 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6058 | if test -d conf$$.dir; then |
---|
6059 | rm -f conf$$.dir/conf$$.file |
---|
6060 | else |
---|
6061 | rm -f conf$$.dir |
---|
6062 | mkdir conf$$.dir 2>/dev/null |
---|
6063 | fi |
---|
6064 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6065 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6066 | as_ln_s='ln -s' |
---|
6067 | # ... but there are two gotchas: |
---|
6068 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6069 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6070 | # In both cases, we have to default to `cp -p'. |
---|
6071 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6072 | as_ln_s='cp -p' |
---|
6073 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6074 | as_ln_s=ln |
---|
6075 | else |
---|
6076 | as_ln_s='cp -p' |
---|
6077 | fi |
---|
6078 | else |
---|
6079 | as_ln_s='cp -p' |
---|
6080 | fi |
---|
6081 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6082 | rmdir conf$$.dir 2>/dev/null |
---|
6083 | |
---|
6084 | |
---|
6085 | # as_fn_mkdir_p |
---|
6086 | # ------------- |
---|
6087 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6088 | as_fn_mkdir_p () |
---|
6089 | { |
---|
6090 | |
---|
6091 | case $as_dir in #( |
---|
6092 | -*) as_dir=./$as_dir;; |
---|
6093 | esac |
---|
6094 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6095 | as_dirs= |
---|
6096 | while :; do |
---|
6097 | case $as_dir in #( |
---|
6098 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6099 | *) as_qdir=$as_dir;; |
---|
6100 | esac |
---|
6101 | as_dirs="'$as_qdir' $as_dirs" |
---|
6102 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6103 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6104 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6105 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6106 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6107 | $as_echo X"$as_dir" | |
---|
6108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6109 | s//\1/ |
---|
6110 | q |
---|
6111 | } |
---|
6112 | /^X\(\/\/\)[^/].*/{ |
---|
6113 | s//\1/ |
---|
6114 | q |
---|
6115 | } |
---|
6116 | /^X\(\/\/\)$/{ |
---|
6117 | s//\1/ |
---|
6118 | q |
---|
6119 | } |
---|
6120 | /^X\(\/\).*/{ |
---|
6121 | s//\1/ |
---|
6122 | q |
---|
6123 | } |
---|
6124 | s/.*/./; q'` |
---|
6125 | test -d "$as_dir" && break |
---|
6126 | done |
---|
6127 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6128 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
---|
6129 | |
---|
6130 | |
---|
6131 | } # as_fn_mkdir_p |
---|
6132 | if mkdir -p . 2>/dev/null; then |
---|
6133 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6134 | else |
---|
6135 | test -d ./-p && rmdir ./-p |
---|
6136 | as_mkdir_p=false |
---|
6137 | fi |
---|
6138 | |
---|
6139 | if test -x / >/dev/null 2>&1; then |
---|
6140 | as_test_x='test -x' |
---|
6141 | else |
---|
6142 | if ls -dL / >/dev/null 2>&1; then |
---|
6143 | as_ls_L_option=L |
---|
6144 | else |
---|
6145 | as_ls_L_option= |
---|
6146 | fi |
---|
6147 | as_test_x=' |
---|
6148 | eval sh -c '\'' |
---|
6149 | if test -d "$1"; then |
---|
6150 | test -d "$1/."; |
---|
6151 | else |
---|
6152 | case $1 in #( |
---|
6153 | -*)set "./$1";; |
---|
6154 | esac; |
---|
6155 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
6156 | ???[sx]*):;;*)false;;esac;fi |
---|
6157 | '\'' sh |
---|
6158 | ' |
---|
6159 | fi |
---|
6160 | as_executable_p=$as_test_x |
---|
6161 | |
---|
6162 | # Sed expression to map a string onto a valid CPP name. |
---|
6163 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6164 | |
---|
6165 | # Sed expression to map a string onto a valid variable name. |
---|
6166 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6167 | |
---|
6168 | |
---|
6169 | exec 6>&1 |
---|
6170 | ## ----------------------------------- ## |
---|
6171 | ## Main body of $CONFIG_STATUS script. ## |
---|
6172 | ## ----------------------------------- ## |
---|
6173 | _ASEOF |
---|
6174 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6175 | |
---|
6176 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6177 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6178 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6179 | # values after options handling. |
---|
6180 | ac_log=" |
---|
6181 | This file was extended by RapptureGUI $as_me 1.1, which was |
---|
6182 | generated by GNU Autoconf 2.64. Invocation command line was |
---|
6183 | |
---|
6184 | CONFIG_FILES = $CONFIG_FILES |
---|
6185 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6186 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6187 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6188 | $ $0 $@ |
---|
6189 | |
---|
6190 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6191 | " |
---|
6192 | |
---|
6193 | _ACEOF |
---|
6194 | |
---|
6195 | case $ac_config_files in *" |
---|
6196 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6197 | esac |
---|
6198 | |
---|
6199 | |
---|
6200 | |
---|
6201 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6202 | # Files that config.status was made for. |
---|
6203 | config_files="$ac_config_files" |
---|
6204 | |
---|
6205 | _ACEOF |
---|
6206 | |
---|
6207 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6208 | ac_cs_usage="\ |
---|
6209 | \`$as_me' instantiates files and other configuration actions |
---|
6210 | from templates according to the current configuration. Unless the files |
---|
6211 | and actions are specified as TAGs, all are instantiated by default. |
---|
6212 | |
---|
6213 | Usage: $0 [OPTION]... [TAG]... |
---|
6214 | |
---|
6215 | -h, --help print this help, then exit |
---|
6216 | -V, --version print version number and configuration settings, then exit |
---|
6217 | -q, --quiet, --silent |
---|
6218 | do not print progress messages |
---|
6219 | -d, --debug don't remove temporary files |
---|
6220 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6221 | --file=FILE[:TEMPLATE] |
---|
6222 | instantiate the configuration file FILE |
---|
6223 | |
---|
6224 | Configuration files: |
---|
6225 | $config_files |
---|
6226 | |
---|
6227 | Report bugs to <rappture@nanohub.org>." |
---|
6228 | |
---|
6229 | _ACEOF |
---|
6230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6231 | ac_cs_version="\\ |
---|
6232 | RapptureGUI config.status 1.1 |
---|
6233 | configured by $0, generated by GNU Autoconf 2.64, |
---|
6234 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
6235 | |
---|
6236 | Copyright (C) 2009 Free Software Foundation, Inc. |
---|
6237 | This config.status script is free software; the Free Software Foundation |
---|
6238 | gives unlimited permission to copy, distribute and modify it." |
---|
6239 | |
---|
6240 | ac_pwd='$ac_pwd' |
---|
6241 | srcdir='$srcdir' |
---|
6242 | INSTALL='$INSTALL' |
---|
6243 | MKDIR_P='$MKDIR_P' |
---|
6244 | test -n "\$AWK" || AWK=awk |
---|
6245 | _ACEOF |
---|
6246 | |
---|
6247 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6248 | # The default lists apply if the user does not specify any file. |
---|
6249 | ac_need_defaults=: |
---|
6250 | while test $# != 0 |
---|
6251 | do |
---|
6252 | case $1 in |
---|
6253 | --*=*) |
---|
6254 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6255 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6256 | ac_shift=: |
---|
6257 | ;; |
---|
6258 | *) |
---|
6259 | ac_option=$1 |
---|
6260 | ac_optarg=$2 |
---|
6261 | ac_shift=shift |
---|
6262 | ;; |
---|
6263 | esac |
---|
6264 | |
---|
6265 | case $ac_option in |
---|
6266 | # Handling of the options. |
---|
6267 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6268 | ac_cs_recheck=: ;; |
---|
6269 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6270 | $as_echo "$ac_cs_version"; exit ;; |
---|
6271 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6272 | debug=: ;; |
---|
6273 | --file | --fil | --fi | --f ) |
---|
6274 | $ac_shift |
---|
6275 | case $ac_optarg in |
---|
6276 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6277 | esac |
---|
6278 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6279 | ac_need_defaults=false;; |
---|
6280 | --he | --h | --help | --hel | -h ) |
---|
6281 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6282 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6283 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6284 | ac_cs_silent=: ;; |
---|
6285 | |
---|
6286 | # This is an error. |
---|
6287 | -*) as_fn_error "unrecognized option: \`$1' |
---|
6288 | Try \`$0 --help' for more information." ;; |
---|
6289 | |
---|
6290 | *) as_fn_append ac_config_targets " $1" |
---|
6291 | ac_need_defaults=false ;; |
---|
6292 | |
---|
6293 | esac |
---|
6294 | shift |
---|
6295 | done |
---|
6296 | |
---|
6297 | ac_configure_extra_args= |
---|
6298 | |
---|
6299 | if $ac_cs_silent; then |
---|
6300 | exec 6>/dev/null |
---|
6301 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6302 | fi |
---|
6303 | |
---|
6304 | _ACEOF |
---|
6305 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6306 | if \$ac_cs_recheck; then |
---|
6307 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6308 | shift |
---|
6309 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6310 | CONFIG_SHELL='$SHELL' |
---|
6311 | export CONFIG_SHELL |
---|
6312 | exec "\$@" |
---|
6313 | fi |
---|
6314 | |
---|
6315 | _ACEOF |
---|
6316 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6317 | exec 5>>config.log |
---|
6318 | { |
---|
6319 | echo |
---|
6320 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6321 | ## Running $as_me. ## |
---|
6322 | _ASBOX |
---|
6323 | $as_echo "$ac_log" |
---|
6324 | } >&5 |
---|
6325 | |
---|
6326 | _ACEOF |
---|
6327 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6328 | _ACEOF |
---|
6329 | |
---|
6330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6331 | |
---|
6332 | # Handling of arguments. |
---|
6333 | for ac_config_target in $ac_config_targets |
---|
6334 | do |
---|
6335 | case $ac_config_target in |
---|
6336 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6337 | "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; |
---|
6338 | "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;; |
---|
6339 | "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;; |
---|
6340 | "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;; |
---|
6341 | "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;; |
---|
6342 | "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;; |
---|
6343 | "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;; |
---|
6344 | "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;; |
---|
6345 | "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;; |
---|
6346 | "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;; |
---|
6347 | "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;; |
---|
6348 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
---|
6349 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6350 | |
---|
6351 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
6352 | esac |
---|
6353 | done |
---|
6354 | |
---|
6355 | |
---|
6356 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6357 | # then the envvar interface is used. Set only those that are not. |
---|
6358 | # We use the long form for the default assignment because of an extremely |
---|
6359 | # bizarre bug on SunOS 4.1.3. |
---|
6360 | if $ac_need_defaults; then |
---|
6361 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6362 | fi |
---|
6363 | |
---|
6364 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6365 | # simply because there is no reason against having it here, and in addition, |
---|
6366 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6367 | # Hook for its removal unless debugging. |
---|
6368 | # Note that there is a small window in which the directory will not be cleaned: |
---|
6369 | # after its creation but before its name has been assigned to `$tmp'. |
---|
6370 | $debug || |
---|
6371 | { |
---|
6372 | tmp= |
---|
6373 | trap 'exit_status=$? |
---|
6374 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
6375 | ' 0 |
---|
6376 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
6377 | } |
---|
6378 | # Create a (secure) tmp directory for tmp files. |
---|
6379 | |
---|
6380 | { |
---|
6381 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
6382 | test -n "$tmp" && test -d "$tmp" |
---|
6383 | } || |
---|
6384 | { |
---|
6385 | tmp=./conf$$-$RANDOM |
---|
6386 | (umask 077 && mkdir "$tmp") |
---|
6387 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
---|
6388 | |
---|
6389 | # Set up the scripts for CONFIG_FILES section. |
---|
6390 | # No need to generate them if there are no CONFIG_FILES. |
---|
6391 | # This happens for instance with `./config.status config.h'. |
---|
6392 | if test -n "$CONFIG_FILES"; then |
---|
6393 | |
---|
6394 | |
---|
6395 | ac_cr=`echo X | tr X '\015'` |
---|
6396 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
6397 | # But we know of no other shell where ac_cr would be empty at this |
---|
6398 | # point, so we can use a bashism as a fallback. |
---|
6399 | if test "x$ac_cr" = x; then |
---|
6400 | eval ac_cr=\$\'\\r\' |
---|
6401 | fi |
---|
6402 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
6403 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
6404 | ac_cs_awk_cr='\r' |
---|
6405 | else |
---|
6406 | ac_cs_awk_cr=$ac_cr |
---|
6407 | fi |
---|
6408 | |
---|
6409 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
---|
6410 | _ACEOF |
---|
6411 | |
---|
6412 | |
---|
6413 | { |
---|
6414 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
6415 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
6416 | echo "_ACEOF" |
---|
6417 | } >conf$$subs.sh || |
---|
6418 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6419 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
---|
6420 | ac_delim='%!_!# ' |
---|
6421 | for ac_last_try in false false false false false :; do |
---|
6422 | . ./conf$$subs.sh || |
---|
6423 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6424 | |
---|
6425 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
6426 | if test $ac_delim_n = $ac_delim_num; then |
---|
6427 | break |
---|
6428 | elif $ac_last_try; then |
---|
6429 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6430 | else |
---|
6431 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6432 | fi |
---|
6433 | done |
---|
6434 | rm -f conf$$subs.sh |
---|
6435 | |
---|
6436 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6437 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
---|
6438 | _ACEOF |
---|
6439 | sed -n ' |
---|
6440 | h |
---|
6441 | s/^/S["/; s/!.*/"]=/ |
---|
6442 | p |
---|
6443 | g |
---|
6444 | s/^[^!]*!// |
---|
6445 | :repl |
---|
6446 | t repl |
---|
6447 | s/'"$ac_delim"'$// |
---|
6448 | t delim |
---|
6449 | :nl |
---|
6450 | h |
---|
6451 | s/\(.\{148\}\).*/\1/ |
---|
6452 | t more1 |
---|
6453 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
6454 | p |
---|
6455 | n |
---|
6456 | b repl |
---|
6457 | :more1 |
---|
6458 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6459 | p |
---|
6460 | g |
---|
6461 | s/.\{148\}// |
---|
6462 | t nl |
---|
6463 | :delim |
---|
6464 | h |
---|
6465 | s/\(.\{148\}\).*/\1/ |
---|
6466 | t more2 |
---|
6467 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
6468 | p |
---|
6469 | b |
---|
6470 | :more2 |
---|
6471 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6472 | p |
---|
6473 | g |
---|
6474 | s/.\{148\}// |
---|
6475 | t delim |
---|
6476 | ' <conf$$subs.awk | sed ' |
---|
6477 | /^[^""]/{ |
---|
6478 | N |
---|
6479 | s/\n// |
---|
6480 | } |
---|
6481 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6482 | rm -f conf$$subs.awk |
---|
6483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6484 | _ACAWK |
---|
6485 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
---|
6486 | for (key in S) S_is_set[key] = 1 |
---|
6487 | FS = "" |
---|
6488 | |
---|
6489 | } |
---|
6490 | { |
---|
6491 | line = $ 0 |
---|
6492 | nfields = split(line, field, "@") |
---|
6493 | substed = 0 |
---|
6494 | len = length(field[1]) |
---|
6495 | for (i = 2; i < nfields; i++) { |
---|
6496 | key = field[i] |
---|
6497 | keylen = length(key) |
---|
6498 | if (S_is_set[key]) { |
---|
6499 | value = S[key] |
---|
6500 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
6501 | len += length(value) + length(field[++i]) |
---|
6502 | substed = 1 |
---|
6503 | } else |
---|
6504 | len += 1 + keylen |
---|
6505 | } |
---|
6506 | |
---|
6507 | print line |
---|
6508 | } |
---|
6509 | |
---|
6510 | _ACAWK |
---|
6511 | _ACEOF |
---|
6512 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6513 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
6514 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
6515 | else |
---|
6516 | cat |
---|
6517 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
---|
6518 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
---|
6519 | _ACEOF |
---|
6520 | |
---|
6521 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6522 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6523 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6524 | # (actually we leave an empty line to preserve line numbers). |
---|
6525 | if test "x$srcdir" = x.; then |
---|
6526 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6527 | s/:*\$(srcdir):*/:/ |
---|
6528 | s/:*\${srcdir}:*/:/ |
---|
6529 | s/:*@srcdir@:*/:/ |
---|
6530 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
6531 | s/:*$// |
---|
6532 | s/^[^=]*=[ ]*$// |
---|
6533 | }' |
---|
6534 | fi |
---|
6535 | |
---|
6536 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6537 | fi # test -n "$CONFIG_FILES" |
---|
6538 | |
---|
6539 | |
---|
6540 | eval set X " :F $CONFIG_FILES " |
---|
6541 | shift |
---|
6542 | for ac_tag |
---|
6543 | do |
---|
6544 | case $ac_tag in |
---|
6545 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6546 | esac |
---|
6547 | case $ac_mode$ac_tag in |
---|
6548 | :[FHL]*:*);; |
---|
6549 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6550 | :[FH]-) ac_tag=-:-;; |
---|
6551 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6552 | esac |
---|
6553 | ac_save_IFS=$IFS |
---|
6554 | IFS=: |
---|
6555 | set x $ac_tag |
---|
6556 | IFS=$ac_save_IFS |
---|
6557 | shift |
---|
6558 | ac_file=$1 |
---|
6559 | shift |
---|
6560 | |
---|
6561 | case $ac_mode in |
---|
6562 | :L) ac_source=$1;; |
---|
6563 | :[FH]) |
---|
6564 | ac_file_inputs= |
---|
6565 | for ac_f |
---|
6566 | do |
---|
6567 | case $ac_f in |
---|
6568 | -) ac_f="$tmp/stdin";; |
---|
6569 | *) # Look for the file first in the build tree, then in the source tree |
---|
6570 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6571 | # because $ac_f cannot contain `:'. |
---|
6572 | test -f "$ac_f" || |
---|
6573 | case $ac_f in |
---|
6574 | [\\/$]*) false;; |
---|
6575 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6576 | esac || |
---|
6577 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6578 | esac |
---|
6579 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6580 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6581 | done |
---|
6582 | |
---|
6583 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6584 | # use $as_me), people would be surprised to read: |
---|
6585 | # /* config.h. Generated by config.status. */ |
---|
6586 | configure_input='Generated from '` |
---|
6587 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6588 | `' by configure.' |
---|
6589 | if test x"$ac_file" != x-; then |
---|
6590 | configure_input="$ac_file. $configure_input" |
---|
6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6592 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
6593 | fi |
---|
6594 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6595 | case $configure_input in #( |
---|
6596 | *\&* | *\|* | *\\* ) |
---|
6597 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
6598 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6599 | *) ac_sed_conf_input=$configure_input;; |
---|
6600 | esac |
---|
6601 | |
---|
6602 | case $ac_tag in |
---|
6603 | *:-:* | *:-) cat >"$tmp/stdin" \ |
---|
6604 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
---|
6605 | esac |
---|
6606 | ;; |
---|
6607 | esac |
---|
6608 | |
---|
6609 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6610 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6611 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6612 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6613 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6614 | $as_echo X"$ac_file" | |
---|
6615 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6616 | s//\1/ |
---|
6617 | q |
---|
6618 | } |
---|
6619 | /^X\(\/\/\)[^/].*/{ |
---|
6620 | s//\1/ |
---|
6621 | q |
---|
6622 | } |
---|
6623 | /^X\(\/\/\)$/{ |
---|
6624 | s//\1/ |
---|
6625 | q |
---|
6626 | } |
---|
6627 | /^X\(\/\).*/{ |
---|
6628 | s//\1/ |
---|
6629 | q |
---|
6630 | } |
---|
6631 | s/.*/./; q'` |
---|
6632 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6633 | ac_builddir=. |
---|
6634 | |
---|
6635 | case "$ac_dir" in |
---|
6636 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6637 | *) |
---|
6638 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6639 | # A ".." for each directory in $ac_dir_suffix. |
---|
6640 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6641 | case $ac_top_builddir_sub in |
---|
6642 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6643 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6644 | esac ;; |
---|
6645 | esac |
---|
6646 | ac_abs_top_builddir=$ac_pwd |
---|
6647 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6648 | # for backward compatibility: |
---|
6649 | ac_top_builddir=$ac_top_build_prefix |
---|
6650 | |
---|
6651 | case $srcdir in |
---|
6652 | .) # We are building in place. |
---|
6653 | ac_srcdir=. |
---|
6654 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6655 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6656 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6657 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6658 | ac_top_srcdir=$srcdir |
---|
6659 | ac_abs_top_srcdir=$srcdir ;; |
---|
6660 | *) # Relative name. |
---|
6661 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6662 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6663 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6664 | esac |
---|
6665 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6666 | |
---|
6667 | |
---|
6668 | case $ac_mode in |
---|
6669 | :F) |
---|
6670 | # |
---|
6671 | # CONFIG_FILE |
---|
6672 | # |
---|
6673 | |
---|
6674 | case $INSTALL in |
---|
6675 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6676 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
6677 | esac |
---|
6678 | ac_MKDIR_P=$MKDIR_P |
---|
6679 | case $MKDIR_P in |
---|
6680 | [\\/$]* | ?:[\\/]* ) ;; |
---|
6681 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
6682 | esac |
---|
6683 | _ACEOF |
---|
6684 | |
---|
6685 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6686 | # If the template does not know about datarootdir, expand it. |
---|
6687 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6688 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6689 | ac_sed_dataroot=' |
---|
6690 | /datarootdir/ { |
---|
6691 | p |
---|
6692 | q |
---|
6693 | } |
---|
6694 | /@datadir@/p |
---|
6695 | /@docdir@/p |
---|
6696 | /@infodir@/p |
---|
6697 | /@localedir@/p |
---|
6698 | /@mandir@/p' |
---|
6699 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6700 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6701 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6703 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6704 | _ACEOF |
---|
6705 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6706 | ac_datarootdir_hack=' |
---|
6707 | s&@datadir@&$datadir&g |
---|
6708 | s&@docdir@&$docdir&g |
---|
6709 | s&@infodir@&$infodir&g |
---|
6710 | s&@localedir@&$localedir&g |
---|
6711 | s&@mandir@&$mandir&g |
---|
6712 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6713 | esac |
---|
6714 | _ACEOF |
---|
6715 | |
---|
6716 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6717 | # Shell code in configure.ac might set extrasub. |
---|
6718 | # FIXME: do we really want to maintain this feature? |
---|
6719 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6720 | ac_sed_extra="$ac_vpsub |
---|
6721 | $extrasub |
---|
6722 | _ACEOF |
---|
6723 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6724 | :t |
---|
6725 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6726 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6727 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6728 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
6729 | s&@srcdir@&$ac_srcdir&;t t |
---|
6730 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
6731 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
6732 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
6733 | s&@builddir@&$ac_builddir&;t t |
---|
6734 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
6735 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
6736 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
6737 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
6738 | $ac_datarootdir_hack |
---|
6739 | " |
---|
6740 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
---|
6741 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
6742 | |
---|
6743 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
6744 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
6745 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6747 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
6748 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6749 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
6750 | |
---|
6751 | rm -f "$tmp/stdin" |
---|
6752 | case $ac_file in |
---|
6753 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
---|
6754 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
---|
6755 | esac \ |
---|
6756 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
6757 | ;; |
---|
6758 | |
---|
6759 | |
---|
6760 | |
---|
6761 | esac |
---|
6762 | |
---|
6763 | done # for ac_tag |
---|
6764 | |
---|
6765 | |
---|
6766 | as_fn_exit 0 |
---|
6767 | _ACEOF |
---|
6768 | ac_clean_files=$ac_clean_files_save |
---|
6769 | |
---|
6770 | test $ac_write_fail = 0 || |
---|
6771 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
6772 | |
---|
6773 | |
---|
6774 | # configure is writing to config.log, and then calls config.status. |
---|
6775 | # config.status does its own redirection, appending to config.log. |
---|
6776 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6777 | # by configure, so config.status won't be able to write to it; its |
---|
6778 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6779 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6780 | # appended to by config.status. When coming back to configure, we |
---|
6781 | # need to make the FD available again. |
---|
6782 | if test "$no_create" != yes; then |
---|
6783 | ac_cs_success=: |
---|
6784 | ac_config_status_args= |
---|
6785 | test "$silent" = yes && |
---|
6786 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6787 | exec 5>/dev/null |
---|
6788 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6789 | exec 5>>config.log |
---|
6790 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6791 | # would make configure fail if this is the last instruction. |
---|
6792 | $ac_cs_success || as_fn_exit $? |
---|
6793 | fi |
---|
6794 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
6796 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
6797 | fi |
---|
6798 | |
---|