1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for RapptureVideo 1.4. |
---|
4 | # |
---|
5 | # Report bugs to <rappture@nanohub.org>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
9 | # |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | ## -------------------- ## |
---|
14 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | as_nl=' |
---|
37 | ' |
---|
38 | export as_nl |
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
44 | # but without wasting forks for bash or zsh. |
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
47 | as_echo='print -r --' |
---|
48 | as_echo_n='print -rn --' |
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
50 | as_echo='printf %s\n' |
---|
51 | as_echo_n='printf %s' |
---|
52 | else |
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
55 | as_echo_n='/usr/ucb/echo -n' |
---|
56 | else |
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
58 | as_echo_n_body='eval |
---|
59 | arg=$1; |
---|
60 | case $arg in #( |
---|
61 | *"$as_nl"*) |
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
64 | esac; |
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
66 | ' |
---|
67 | export as_echo_n_body |
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
69 | fi |
---|
70 | export as_echo_body |
---|
71 | as_echo='sh -c $as_echo_body as_echo' |
---|
72 | fi |
---|
73 | |
---|
74 | # The user is always right. |
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
76 | PATH_SEPARATOR=: |
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
79 | PATH_SEPARATOR=';' |
---|
80 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | # IFS |
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
86 | # there to prevent editors from complaining about space-tab. |
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
88 | # splitting by setting IFS to empty value.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | as_myself= |
---|
93 | case $0 in #(( |
---|
94 | *[\\/]* ) as_myself=$0 ;; |
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
96 | for as_dir in $PATH |
---|
97 | do |
---|
98 | IFS=$as_save_IFS |
---|
99 | test -z "$as_dir" && as_dir=. |
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
101 | done |
---|
102 | IFS=$as_save_IFS |
---|
103 | |
---|
104 | ;; |
---|
105 | esac |
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
107 | # in which case we are not to be found in the path. |
---|
108 | if test "x$as_myself" = x; then |
---|
109 | as_myself=$0 |
---|
110 | fi |
---|
111 | if test ! -f "$as_myself"; then |
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
113 | exit 1 |
---|
114 | fi |
---|
115 | |
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
118 | # suppresses any "Segmentation fault" message there. '((' could |
---|
119 | # trigger a bug in pdksh 5.2.14. |
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
121 | do eval test x\${$as_var+set} = xset \ |
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # CDPATH. |
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
136 | |
---|
137 | # Use a proper internal environment variable to ensure we don't fall |
---|
138 | # into an infinite loop, continuously re-executing ourselves. |
---|
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
140 | _as_can_reexec=no; export _as_can_reexec; |
---|
141 | # We cannot yet assume a decent shell, so we have to provide a |
---|
142 | # neutralization value for shells without unset; and this also |
---|
143 | # works around shells that cannot unset nonexistent variables. |
---|
144 | # Preserve -v and -x to the replacement shell. |
---|
145 | BASH_ENV=/dev/null |
---|
146 | ENV=/dev/null |
---|
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
148 | case $- in # (((( |
---|
149 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
150 | *v* ) as_opts=-v ;; |
---|
151 | *x* ) as_opts=-x ;; |
---|
152 | * ) as_opts= ;; |
---|
153 | esac |
---|
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
155 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
156 | # out after a failed `exec'. |
---|
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
158 | as_fn_exit 255 |
---|
159 | fi |
---|
160 | # We don't want this to propagate to other subprocesses. |
---|
161 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
162 | if test "x$CONFIG_SHELL" = x; then |
---|
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
164 | emulate sh |
---|
165 | NULLCMD=: |
---|
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
167 | # is contrary to our usage. Disable this feature. |
---|
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
169 | setopt NO_GLOB_SUBST |
---|
170 | else |
---|
171 | case \`(set -o) 2>/dev/null\` in #( |
---|
172 | *posix*) : |
---|
173 | set -o posix ;; #( |
---|
174 | *) : |
---|
175 | ;; |
---|
176 | esac |
---|
177 | fi |
---|
178 | " |
---|
179 | as_required="as_fn_return () { (exit \$1); } |
---|
180 | as_fn_success () { as_fn_return 0; } |
---|
181 | as_fn_failure () { as_fn_return 1; } |
---|
182 | as_fn_ret_success () { return 0; } |
---|
183 | as_fn_ret_failure () { return 1; } |
---|
184 | |
---|
185 | exitcode=0 |
---|
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
191 | |
---|
192 | else |
---|
193 | exitcode=1; echo positional parameters were not saved. |
---|
194 | fi |
---|
195 | test x\$exitcode = x0 || exit 1 |
---|
196 | test -x / || exit 1" |
---|
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
202 | if (eval "$as_required") 2>/dev/null; then : |
---|
203 | as_have_required=yes |
---|
204 | else |
---|
205 | as_have_required=no |
---|
206 | fi |
---|
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
208 | |
---|
209 | else |
---|
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
211 | as_found=false |
---|
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
213 | do |
---|
214 | IFS=$as_save_IFS |
---|
215 | test -z "$as_dir" && as_dir=. |
---|
216 | as_found=: |
---|
217 | case $as_dir in #( |
---|
218 | /*) |
---|
219 | for as_base in sh bash ksh sh5; do |
---|
220 | # Try only shells that exist, to save several forks. |
---|
221 | as_shell=$as_dir/$as_base |
---|
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
226 | break 2 |
---|
227 | fi |
---|
228 | fi |
---|
229 | done;; |
---|
230 | esac |
---|
231 | as_found=false |
---|
232 | done |
---|
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
236 | fi; } |
---|
237 | IFS=$as_save_IFS |
---|
238 | |
---|
239 | |
---|
240 | if test "x$CONFIG_SHELL" != x; then : |
---|
241 | export CONFIG_SHELL |
---|
242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
243 | # neutralization value for shells without unset; and this also |
---|
244 | # works around shells that cannot unset nonexistent variables. |
---|
245 | # Preserve -v and -x to the replacement shell. |
---|
246 | BASH_ENV=/dev/null |
---|
247 | ENV=/dev/null |
---|
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
249 | case $- in # (((( |
---|
250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
251 | *v* ) as_opts=-v ;; |
---|
252 | *x* ) as_opts=-x ;; |
---|
253 | * ) as_opts= ;; |
---|
254 | esac |
---|
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
257 | # out after a failed `exec'. |
---|
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
259 | exit 255 |
---|
260 | fi |
---|
261 | |
---|
262 | if test x$as_have_required = xno; then : |
---|
263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
264 | $as_echo "$0: the shells that I found on your system." |
---|
265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
268 | else |
---|
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
270 | $0: rappture@nanohub.org about your system, including any |
---|
271 | $0: error possibly output before this message. Then install |
---|
272 | $0: a modern shell, or manually run the script under such a |
---|
273 | $0: shell if you do have one." |
---|
274 | fi |
---|
275 | exit 1 |
---|
276 | fi |
---|
277 | fi |
---|
278 | fi |
---|
279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
280 | export SHELL |
---|
281 | # Unset more variables known to interfere with behavior of common tools. |
---|
282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
284 | |
---|
285 | ## --------------------- ## |
---|
286 | ## M4sh Shell Functions. ## |
---|
287 | ## --------------------- ## |
---|
288 | # as_fn_unset VAR |
---|
289 | # --------------- |
---|
290 | # Portably unset VAR. |
---|
291 | as_fn_unset () |
---|
292 | { |
---|
293 | { eval $1=; unset $1;} |
---|
294 | } |
---|
295 | as_unset=as_fn_unset |
---|
296 | |
---|
297 | # as_fn_set_status STATUS |
---|
298 | # ----------------------- |
---|
299 | # Set $? to STATUS, without forking. |
---|
300 | as_fn_set_status () |
---|
301 | { |
---|
302 | return $1 |
---|
303 | } # as_fn_set_status |
---|
304 | |
---|
305 | # as_fn_exit STATUS |
---|
306 | # ----------------- |
---|
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
308 | as_fn_exit () |
---|
309 | { |
---|
310 | set +e |
---|
311 | as_fn_set_status $1 |
---|
312 | exit $1 |
---|
313 | } # as_fn_exit |
---|
314 | |
---|
315 | # as_fn_mkdir_p |
---|
316 | # ------------- |
---|
317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
318 | as_fn_mkdir_p () |
---|
319 | { |
---|
320 | |
---|
321 | case $as_dir in #( |
---|
322 | -*) as_dir=./$as_dir;; |
---|
323 | esac |
---|
324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
325 | as_dirs= |
---|
326 | while :; do |
---|
327 | case $as_dir in #( |
---|
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
329 | *) as_qdir=$as_dir;; |
---|
330 | esac |
---|
331 | as_dirs="'$as_qdir' $as_dirs" |
---|
332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
337 | $as_echo X"$as_dir" | |
---|
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
339 | s//\1/ |
---|
340 | q |
---|
341 | } |
---|
342 | /^X\(\/\/\)[^/].*/{ |
---|
343 | s//\1/ |
---|
344 | q |
---|
345 | } |
---|
346 | /^X\(\/\/\)$/{ |
---|
347 | s//\1/ |
---|
348 | q |
---|
349 | } |
---|
350 | /^X\(\/\).*/{ |
---|
351 | s//\1/ |
---|
352 | q |
---|
353 | } |
---|
354 | s/.*/./; q'` |
---|
355 | test -d "$as_dir" && break |
---|
356 | done |
---|
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
359 | |
---|
360 | |
---|
361 | } # as_fn_mkdir_p |
---|
362 | |
---|
363 | # as_fn_executable_p FILE |
---|
364 | # ----------------------- |
---|
365 | # Test if FILE is an executable regular file. |
---|
366 | as_fn_executable_p () |
---|
367 | { |
---|
368 | test -f "$1" && test -x "$1" |
---|
369 | } # as_fn_executable_p |
---|
370 | # as_fn_append VAR VALUE |
---|
371 | # ---------------------- |
---|
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
375 | # implementations. |
---|
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
377 | eval 'as_fn_append () |
---|
378 | { |
---|
379 | eval $1+=\$2 |
---|
380 | }' |
---|
381 | else |
---|
382 | as_fn_append () |
---|
383 | { |
---|
384 | eval $1=\$$1\$2 |
---|
385 | } |
---|
386 | fi # as_fn_append |
---|
387 | |
---|
388 | # as_fn_arith ARG... |
---|
389 | # ------------------ |
---|
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
392 | # must be portable across $(()) and expr. |
---|
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
394 | eval 'as_fn_arith () |
---|
395 | { |
---|
396 | as_val=$(( $* )) |
---|
397 | }' |
---|
398 | else |
---|
399 | as_fn_arith () |
---|
400 | { |
---|
401 | as_val=`expr "$@" || test $? -eq 1` |
---|
402 | } |
---|
403 | fi # as_fn_arith |
---|
404 | |
---|
405 | |
---|
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
407 | # ---------------------------------------- |
---|
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
410 | # script with STATUS, using 1 if that was 0. |
---|
411 | as_fn_error () |
---|
412 | { |
---|
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
414 | if test "$4"; then |
---|
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
417 | fi |
---|
418 | $as_echo "$as_me: error: $2" >&2 |
---|
419 | as_fn_exit $as_status |
---|
420 | } # as_fn_error |
---|
421 | |
---|
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
424 | as_expr=expr |
---|
425 | else |
---|
426 | as_expr=false |
---|
427 | fi |
---|
428 | |
---|
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
430 | as_basename=basename |
---|
431 | else |
---|
432 | as_basename=false |
---|
433 | fi |
---|
434 | |
---|
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
436 | as_dirname=dirname |
---|
437 | else |
---|
438 | as_dirname=false |
---|
439 | fi |
---|
440 | |
---|
441 | as_me=`$as_basename -- "$0" || |
---|
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
443 | X"$0" : 'X\(//\)$' \| \ |
---|
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
445 | $as_echo X/"$0" | |
---|
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
447 | s//\1/ |
---|
448 | q |
---|
449 | } |
---|
450 | /^X\/\(\/\/\)$/{ |
---|
451 | s//\1/ |
---|
452 | q |
---|
453 | } |
---|
454 | /^X\/\(\/\).*/{ |
---|
455 | s//\1/ |
---|
456 | q |
---|
457 | } |
---|
458 | s/.*/./; q'` |
---|
459 | |
---|
460 | # Avoid depending upon Character Ranges. |
---|
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
464 | as_cr_digits='0123456789' |
---|
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
466 | |
---|
467 | |
---|
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
473 | sed -n ' |
---|
474 | p |
---|
475 | /[$]LINENO/= |
---|
476 | ' <$as_myself | |
---|
477 | sed ' |
---|
478 | s/[$]LINENO.*/&-/ |
---|
479 | t lineno |
---|
480 | b |
---|
481 | :lineno |
---|
482 | N |
---|
483 | :loop |
---|
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
485 | t loop |
---|
486 | s/-\n.*// |
---|
487 | ' >$as_me.lineno && |
---|
488 | chmod +x "$as_me.lineno" || |
---|
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
490 | |
---|
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
492 | # already done that, so ensure we don't try to do so again and fall |
---|
493 | # in an infinite loop. This has already happened in practice. |
---|
494 | _as_can_reexec=no; export _as_can_reexec |
---|
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
496 | # (the dirname of $[0] is not the place where we might find the |
---|
497 | # original and so on. Autoconf is especially sensitive to this). |
---|
498 | . "./$as_me.lineno" |
---|
499 | # Exit status is that of the last command. |
---|
500 | exit |
---|
501 | } |
---|
502 | |
---|
503 | ECHO_C= ECHO_N= ECHO_T= |
---|
504 | case `echo -n x` in #((((( |
---|
505 | -n*) |
---|
506 | case `echo 'xy\c'` in |
---|
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
508 | xy) ECHO_C='\c';; |
---|
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
510 | ECHO_T=' ';; |
---|
511 | esac;; |
---|
512 | *) |
---|
513 | ECHO_N='-n';; |
---|
514 | esac |
---|
515 | |
---|
516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
517 | if test -d conf$$.dir; then |
---|
518 | rm -f conf$$.dir/conf$$.file |
---|
519 | else |
---|
520 | rm -f conf$$.dir |
---|
521 | mkdir conf$$.dir 2>/dev/null |
---|
522 | fi |
---|
523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
525 | as_ln_s='ln -s' |
---|
526 | # ... but there are two gotchas: |
---|
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
529 | # In both cases, we have to default to `cp -pR'. |
---|
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
531 | as_ln_s='cp -pR' |
---|
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
533 | as_ln_s=ln |
---|
534 | else |
---|
535 | as_ln_s='cp -pR' |
---|
536 | fi |
---|
537 | else |
---|
538 | as_ln_s='cp -pR' |
---|
539 | fi |
---|
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
541 | rmdir conf$$.dir 2>/dev/null |
---|
542 | |
---|
543 | if mkdir -p . 2>/dev/null; then |
---|
544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
545 | else |
---|
546 | test -d ./-p && rmdir ./-p |
---|
547 | as_mkdir_p=false |
---|
548 | fi |
---|
549 | |
---|
550 | as_test_x='test -x' |
---|
551 | as_executable_p=as_fn_executable_p |
---|
552 | |
---|
553 | # Sed expression to map a string onto a valid CPP name. |
---|
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
555 | |
---|
556 | # Sed expression to map a string onto a valid variable name. |
---|
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
558 | |
---|
559 | |
---|
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
561 | exec 6>&1 |
---|
562 | |
---|
563 | # Name of the host. |
---|
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
565 | # so uname gets run too. |
---|
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
567 | |
---|
568 | # |
---|
569 | # Initializations. |
---|
570 | # |
---|
571 | ac_default_prefix=/usr/local |
---|
572 | ac_clean_files= |
---|
573 | ac_config_libobj_dir=. |
---|
574 | LIBOBJS= |
---|
575 | cross_compiling=no |
---|
576 | subdirs= |
---|
577 | MFLAGS= |
---|
578 | MAKEFLAGS= |
---|
579 | |
---|
580 | # Identity of this package. |
---|
581 | PACKAGE_NAME='RapptureVideo' |
---|
582 | PACKAGE_TARNAME='rappturevideo' |
---|
583 | PACKAGE_VERSION='1.4' |
---|
584 | PACKAGE_STRING='RapptureVideo 1.4' |
---|
585 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
586 | PACKAGE_URL='' |
---|
587 | |
---|
588 | # Factoring default headers for most tests. |
---|
589 | ac_includes_default="\ |
---|
590 | #include <stdio.h> |
---|
591 | #ifdef HAVE_SYS_TYPES_H |
---|
592 | # include <sys/types.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_SYS_STAT_H |
---|
595 | # include <sys/stat.h> |
---|
596 | #endif |
---|
597 | #ifdef STDC_HEADERS |
---|
598 | # include <stdlib.h> |
---|
599 | # include <stddef.h> |
---|
600 | #else |
---|
601 | # ifdef HAVE_STDLIB_H |
---|
602 | # include <stdlib.h> |
---|
603 | # endif |
---|
604 | #endif |
---|
605 | #ifdef HAVE_STRING_H |
---|
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
607 | # include <memory.h> |
---|
608 | # endif |
---|
609 | # include <string.h> |
---|
610 | #endif |
---|
611 | #ifdef HAVE_STRINGS_H |
---|
612 | # include <strings.h> |
---|
613 | #endif |
---|
614 | #ifdef HAVE_INTTYPES_H |
---|
615 | # include <inttypes.h> |
---|
616 | #endif |
---|
617 | #ifdef HAVE_STDINT_H |
---|
618 | # include <stdint.h> |
---|
619 | #endif |
---|
620 | #ifdef HAVE_UNISTD_H |
---|
621 | # include <unistd.h> |
---|
622 | #endif" |
---|
623 | |
---|
624 | ac_subst_vars='LTLIBOBJS |
---|
625 | LIBOBJS |
---|
626 | WORDSIZE |
---|
627 | X_LIBRARIES |
---|
628 | X_INCLUDES |
---|
629 | TK_VERSION |
---|
630 | TK_XLIBSW |
---|
631 | TK_LIB_SPEC |
---|
632 | TK_INC_SPEC |
---|
633 | TCL_VERSION |
---|
634 | TCL_SHLIB_SUFFIX |
---|
635 | TCL_SHLIB_LDFLAGS |
---|
636 | TCL_SHLIB_LD |
---|
637 | TCL_SHLIB_CFLAGS |
---|
638 | TCL_CFLAGS_OPTIMIZE |
---|
639 | TCL_CFLAGS_DEBUG |
---|
640 | TCL_LIB_SPEC |
---|
641 | TCL_INC_SPEC |
---|
642 | SIZEOF_VOID_P |
---|
643 | SIZEOF_LONG_LONG |
---|
644 | SIZEOF_LONG |
---|
645 | SIZEOF_INT |
---|
646 | SHLIB_LDFLAGS |
---|
647 | SVN_VERSION |
---|
648 | LIB_SEARCH_DIRS |
---|
649 | HAVE_INTTYPES_H |
---|
650 | HAVE_FFMPEG_LIBS |
---|
651 | FFMPEG |
---|
652 | LDFLAGS_DEFAULT |
---|
653 | CFLAGS_DEFAULT |
---|
654 | INSTALL_STUB_LIB |
---|
655 | INSTALL_LIB |
---|
656 | MAKE_STUB_LIB |
---|
657 | MAKE_LIB |
---|
658 | SHLIB_SUFFIX |
---|
659 | SHLIB_CFLAGS |
---|
660 | SHLIB_LD_LIBS |
---|
661 | TK_SHLIB_LD_EXTRAS |
---|
662 | TCL_SHLIB_LD_EXTRAS |
---|
663 | SHLIB_LD |
---|
664 | STLIB_LD |
---|
665 | LD_SEARCH_FLAGS |
---|
666 | CC_SEARCH_FLAGS |
---|
667 | LDFLAGS_OPTIMIZE |
---|
668 | LDFLAGS_DEBUG |
---|
669 | CFLAGS_WARNING |
---|
670 | CFLAGS_OPTIMIZE |
---|
671 | CFLAGS_DEBUG |
---|
672 | PLAT_SRCS |
---|
673 | PLAT_OBJS |
---|
674 | DL_OBJS |
---|
675 | DL_LIBS |
---|
676 | AR |
---|
677 | CXXCPP |
---|
678 | XMKMF |
---|
679 | EGREP |
---|
680 | GREP |
---|
681 | CPP |
---|
682 | ac_ct_F77 |
---|
683 | FFLAGS |
---|
684 | F77 |
---|
685 | ac_ct_CXX |
---|
686 | CXXFLAGS |
---|
687 | CXX |
---|
688 | OBJEXT |
---|
689 | EXEEXT |
---|
690 | ac_ct_CC |
---|
691 | CPPFLAGS |
---|
692 | LDFLAGS |
---|
693 | CFLAGS |
---|
694 | CC |
---|
695 | SET_MAKE |
---|
696 | MKDIR_P |
---|
697 | LN_S |
---|
698 | RANLIB |
---|
699 | INSTALL_DATA |
---|
700 | INSTALL_SCRIPT |
---|
701 | INSTALL_PROGRAM |
---|
702 | target_alias |
---|
703 | host_alias |
---|
704 | build_alias |
---|
705 | LIBS |
---|
706 | ECHO_T |
---|
707 | ECHO_N |
---|
708 | ECHO_C |
---|
709 | DEFS |
---|
710 | mandir |
---|
711 | localedir |
---|
712 | libdir |
---|
713 | psdir |
---|
714 | pdfdir |
---|
715 | dvidir |
---|
716 | htmldir |
---|
717 | infodir |
---|
718 | docdir |
---|
719 | oldincludedir |
---|
720 | includedir |
---|
721 | localstatedir |
---|
722 | sharedstatedir |
---|
723 | sysconfdir |
---|
724 | datadir |
---|
725 | datarootdir |
---|
726 | libexecdir |
---|
727 | sbindir |
---|
728 | bindir |
---|
729 | program_transform_name |
---|
730 | prefix |
---|
731 | exec_prefix |
---|
732 | PACKAGE_URL |
---|
733 | PACKAGE_BUGREPORT |
---|
734 | PACKAGE_STRING |
---|
735 | PACKAGE_VERSION |
---|
736 | PACKAGE_TARNAME |
---|
737 | PACKAGE_NAME |
---|
738 | PATH_SEPARATOR |
---|
739 | SHELL' |
---|
740 | ac_subst_files='' |
---|
741 | ac_user_opts=' |
---|
742 | enable_option_checking |
---|
743 | with_x |
---|
744 | enable_64bit |
---|
745 | enable_64bit_vis |
---|
746 | enable_corefoundation |
---|
747 | enable_load |
---|
748 | enable_shared |
---|
749 | enable_symbols |
---|
750 | ' |
---|
751 | ac_precious_vars='build_alias |
---|
752 | host_alias |
---|
753 | target_alias |
---|
754 | CC |
---|
755 | CFLAGS |
---|
756 | LDFLAGS |
---|
757 | LIBS |
---|
758 | CPPFLAGS |
---|
759 | CXX |
---|
760 | CXXFLAGS |
---|
761 | CCC |
---|
762 | F77 |
---|
763 | FFLAGS |
---|
764 | CPP |
---|
765 | XMKMF |
---|
766 | CXXCPP' |
---|
767 | |
---|
768 | |
---|
769 | # Initialize some variables set by options. |
---|
770 | ac_init_help= |
---|
771 | ac_init_version=false |
---|
772 | ac_unrecognized_opts= |
---|
773 | ac_unrecognized_sep= |
---|
774 | # The variables have the same names as the options, with |
---|
775 | # dashes changed to underlines. |
---|
776 | cache_file=/dev/null |
---|
777 | exec_prefix=NONE |
---|
778 | no_create= |
---|
779 | no_recursion= |
---|
780 | prefix=NONE |
---|
781 | program_prefix=NONE |
---|
782 | program_suffix=NONE |
---|
783 | program_transform_name=s,x,x, |
---|
784 | silent= |
---|
785 | site= |
---|
786 | srcdir= |
---|
787 | verbose= |
---|
788 | x_includes=NONE |
---|
789 | x_libraries=NONE |
---|
790 | |
---|
791 | # Installation directory options. |
---|
792 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
793 | # and all the variables that are supposed to be based on exec_prefix |
---|
794 | # by default will actually change. |
---|
795 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
796 | # (The list follows the same order as the GNU Coding Standards.) |
---|
797 | bindir='${exec_prefix}/bin' |
---|
798 | sbindir='${exec_prefix}/sbin' |
---|
799 | libexecdir='${exec_prefix}/libexec' |
---|
800 | datarootdir='${prefix}/share' |
---|
801 | datadir='${datarootdir}' |
---|
802 | sysconfdir='${prefix}/etc' |
---|
803 | sharedstatedir='${prefix}/com' |
---|
804 | localstatedir='${prefix}/var' |
---|
805 | includedir='${prefix}/include' |
---|
806 | oldincludedir='/usr/include' |
---|
807 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
808 | infodir='${datarootdir}/info' |
---|
809 | htmldir='${docdir}' |
---|
810 | dvidir='${docdir}' |
---|
811 | pdfdir='${docdir}' |
---|
812 | psdir='${docdir}' |
---|
813 | libdir='${exec_prefix}/lib' |
---|
814 | localedir='${datarootdir}/locale' |
---|
815 | mandir='${datarootdir}/man' |
---|
816 | |
---|
817 | ac_prev= |
---|
818 | ac_dashdash= |
---|
819 | for ac_option |
---|
820 | do |
---|
821 | # If the previous option needs an argument, assign it. |
---|
822 | if test -n "$ac_prev"; then |
---|
823 | eval $ac_prev=\$ac_option |
---|
824 | ac_prev= |
---|
825 | continue |
---|
826 | fi |
---|
827 | |
---|
828 | case $ac_option in |
---|
829 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
830 | *=) ac_optarg= ;; |
---|
831 | *) ac_optarg=yes ;; |
---|
832 | esac |
---|
833 | |
---|
834 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
835 | |
---|
836 | case $ac_dashdash$ac_option in |
---|
837 | --) |
---|
838 | ac_dashdash=yes ;; |
---|
839 | |
---|
840 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
841 | ac_prev=bindir ;; |
---|
842 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
843 | bindir=$ac_optarg ;; |
---|
844 | |
---|
845 | -build | --build | --buil | --bui | --bu) |
---|
846 | ac_prev=build_alias ;; |
---|
847 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
848 | build_alias=$ac_optarg ;; |
---|
849 | |
---|
850 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
851 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
852 | ac_prev=cache_file ;; |
---|
853 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
854 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
855 | cache_file=$ac_optarg ;; |
---|
856 | |
---|
857 | --config-cache | -C) |
---|
858 | cache_file=config.cache ;; |
---|
859 | |
---|
860 | -datadir | --datadir | --datadi | --datad) |
---|
861 | ac_prev=datadir ;; |
---|
862 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
863 | datadir=$ac_optarg ;; |
---|
864 | |
---|
865 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
866 | | --dataroo | --dataro | --datar) |
---|
867 | ac_prev=datarootdir ;; |
---|
868 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
869 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
870 | datarootdir=$ac_optarg ;; |
---|
871 | |
---|
872 | -disable-* | --disable-*) |
---|
873 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
874 | # Reject names that are not valid shell variable names. |
---|
875 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
876 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
877 | ac_useropt_orig=$ac_useropt |
---|
878 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
879 | case $ac_user_opts in |
---|
880 | *" |
---|
881 | "enable_$ac_useropt" |
---|
882 | "*) ;; |
---|
883 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
884 | ac_unrecognized_sep=', ';; |
---|
885 | esac |
---|
886 | eval enable_$ac_useropt=no ;; |
---|
887 | |
---|
888 | -docdir | --docdir | --docdi | --doc | --do) |
---|
889 | ac_prev=docdir ;; |
---|
890 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
891 | docdir=$ac_optarg ;; |
---|
892 | |
---|
893 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
894 | ac_prev=dvidir ;; |
---|
895 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
896 | dvidir=$ac_optarg ;; |
---|
897 | |
---|
898 | -enable-* | --enable-*) |
---|
899 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
900 | # Reject names that are not valid shell variable names. |
---|
901 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
902 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
903 | ac_useropt_orig=$ac_useropt |
---|
904 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
905 | case $ac_user_opts in |
---|
906 | *" |
---|
907 | "enable_$ac_useropt" |
---|
908 | "*) ;; |
---|
909 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
910 | ac_unrecognized_sep=', ';; |
---|
911 | esac |
---|
912 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
913 | |
---|
914 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
915 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
916 | | --exec | --exe | --ex) |
---|
917 | ac_prev=exec_prefix ;; |
---|
918 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
919 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
920 | | --exec=* | --exe=* | --ex=*) |
---|
921 | exec_prefix=$ac_optarg ;; |
---|
922 | |
---|
923 | -gas | --gas | --ga | --g) |
---|
924 | # Obsolete; use --with-gas. |
---|
925 | with_gas=yes ;; |
---|
926 | |
---|
927 | -help | --help | --hel | --he | -h) |
---|
928 | ac_init_help=long ;; |
---|
929 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
930 | ac_init_help=recursive ;; |
---|
931 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
932 | ac_init_help=short ;; |
---|
933 | |
---|
934 | -host | --host | --hos | --ho) |
---|
935 | ac_prev=host_alias ;; |
---|
936 | -host=* | --host=* | --hos=* | --ho=*) |
---|
937 | host_alias=$ac_optarg ;; |
---|
938 | |
---|
939 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
940 | ac_prev=htmldir ;; |
---|
941 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
942 | | --ht=*) |
---|
943 | htmldir=$ac_optarg ;; |
---|
944 | |
---|
945 | -includedir | --includedir | --includedi | --included | --include \ |
---|
946 | | --includ | --inclu | --incl | --inc) |
---|
947 | ac_prev=includedir ;; |
---|
948 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
949 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
950 | includedir=$ac_optarg ;; |
---|
951 | |
---|
952 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
953 | ac_prev=infodir ;; |
---|
954 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
955 | infodir=$ac_optarg ;; |
---|
956 | |
---|
957 | -libdir | --libdir | --libdi | --libd) |
---|
958 | ac_prev=libdir ;; |
---|
959 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
960 | libdir=$ac_optarg ;; |
---|
961 | |
---|
962 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
963 | | --libexe | --libex | --libe) |
---|
964 | ac_prev=libexecdir ;; |
---|
965 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
966 | | --libexe=* | --libex=* | --libe=*) |
---|
967 | libexecdir=$ac_optarg ;; |
---|
968 | |
---|
969 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
970 | ac_prev=localedir ;; |
---|
971 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
972 | localedir=$ac_optarg ;; |
---|
973 | |
---|
974 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
975 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
976 | ac_prev=localstatedir ;; |
---|
977 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
978 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
979 | localstatedir=$ac_optarg ;; |
---|
980 | |
---|
981 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
982 | ac_prev=mandir ;; |
---|
983 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
984 | mandir=$ac_optarg ;; |
---|
985 | |
---|
986 | -nfp | --nfp | --nf) |
---|
987 | # Obsolete; use --without-fp. |
---|
988 | with_fp=no ;; |
---|
989 | |
---|
990 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
991 | | --no-cr | --no-c | -n) |
---|
992 | no_create=yes ;; |
---|
993 | |
---|
994 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
995 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
996 | no_recursion=yes ;; |
---|
997 | |
---|
998 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
999 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1000 | | --oldin | --oldi | --old | --ol | --o) |
---|
1001 | ac_prev=oldincludedir ;; |
---|
1002 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1003 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1004 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1005 | oldincludedir=$ac_optarg ;; |
---|
1006 | |
---|
1007 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1008 | ac_prev=prefix ;; |
---|
1009 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1010 | prefix=$ac_optarg ;; |
---|
1011 | |
---|
1012 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1013 | | --program-pre | --program-pr | --program-p) |
---|
1014 | ac_prev=program_prefix ;; |
---|
1015 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1016 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1017 | program_prefix=$ac_optarg ;; |
---|
1018 | |
---|
1019 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1020 | | --program-suf | --program-su | --program-s) |
---|
1021 | ac_prev=program_suffix ;; |
---|
1022 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1023 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1024 | program_suffix=$ac_optarg ;; |
---|
1025 | |
---|
1026 | -program-transform-name | --program-transform-name \ |
---|
1027 | | --program-transform-nam | --program-transform-na \ |
---|
1028 | | --program-transform-n | --program-transform- \ |
---|
1029 | | --program-transform | --program-transfor \ |
---|
1030 | | --program-transfo | --program-transf \ |
---|
1031 | | --program-trans | --program-tran \ |
---|
1032 | | --progr-tra | --program-tr | --program-t) |
---|
1033 | ac_prev=program_transform_name ;; |
---|
1034 | -program-transform-name=* | --program-transform-name=* \ |
---|
1035 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1036 | | --program-transform-n=* | --program-transform-=* \ |
---|
1037 | | --program-transform=* | --program-transfor=* \ |
---|
1038 | | --program-transfo=* | --program-transf=* \ |
---|
1039 | | --program-trans=* | --program-tran=* \ |
---|
1040 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1041 | program_transform_name=$ac_optarg ;; |
---|
1042 | |
---|
1043 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1044 | ac_prev=pdfdir ;; |
---|
1045 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1046 | pdfdir=$ac_optarg ;; |
---|
1047 | |
---|
1048 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1049 | ac_prev=psdir ;; |
---|
1050 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1051 | psdir=$ac_optarg ;; |
---|
1052 | |
---|
1053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1054 | | -silent | --silent | --silen | --sile | --sil) |
---|
1055 | silent=yes ;; |
---|
1056 | |
---|
1057 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1058 | ac_prev=sbindir ;; |
---|
1059 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1060 | | --sbi=* | --sb=*) |
---|
1061 | sbindir=$ac_optarg ;; |
---|
1062 | |
---|
1063 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1064 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1065 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1066 | | --sha | --sh) |
---|
1067 | ac_prev=sharedstatedir ;; |
---|
1068 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1069 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1070 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1071 | | --sha=* | --sh=*) |
---|
1072 | sharedstatedir=$ac_optarg ;; |
---|
1073 | |
---|
1074 | -site | --site | --sit) |
---|
1075 | ac_prev=site ;; |
---|
1076 | -site=* | --site=* | --sit=*) |
---|
1077 | site=$ac_optarg ;; |
---|
1078 | |
---|
1079 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1080 | ac_prev=srcdir ;; |
---|
1081 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1082 | srcdir=$ac_optarg ;; |
---|
1083 | |
---|
1084 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1085 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1086 | ac_prev=sysconfdir ;; |
---|
1087 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1088 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1089 | sysconfdir=$ac_optarg ;; |
---|
1090 | |
---|
1091 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1092 | ac_prev=target_alias ;; |
---|
1093 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1094 | target_alias=$ac_optarg ;; |
---|
1095 | |
---|
1096 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1097 | verbose=yes ;; |
---|
1098 | |
---|
1099 | -version | --version | --versio | --versi | --vers | -V) |
---|
1100 | ac_init_version=: ;; |
---|
1101 | |
---|
1102 | -with-* | --with-*) |
---|
1103 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1104 | # Reject names that are not valid shell variable names. |
---|
1105 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1106 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1107 | ac_useropt_orig=$ac_useropt |
---|
1108 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1109 | case $ac_user_opts in |
---|
1110 | *" |
---|
1111 | "with_$ac_useropt" |
---|
1112 | "*) ;; |
---|
1113 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1114 | ac_unrecognized_sep=', ';; |
---|
1115 | esac |
---|
1116 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1117 | |
---|
1118 | -without-* | --without-*) |
---|
1119 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1120 | # Reject names that are not valid shell variable names. |
---|
1121 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1122 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1123 | ac_useropt_orig=$ac_useropt |
---|
1124 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1125 | case $ac_user_opts in |
---|
1126 | *" |
---|
1127 | "with_$ac_useropt" |
---|
1128 | "*) ;; |
---|
1129 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1130 | ac_unrecognized_sep=', ';; |
---|
1131 | esac |
---|
1132 | eval with_$ac_useropt=no ;; |
---|
1133 | |
---|
1134 | --x) |
---|
1135 | # Obsolete; use --with-x. |
---|
1136 | with_x=yes ;; |
---|
1137 | |
---|
1138 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1139 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1140 | ac_prev=x_includes ;; |
---|
1141 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1142 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1143 | x_includes=$ac_optarg ;; |
---|
1144 | |
---|
1145 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1146 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1147 | ac_prev=x_libraries ;; |
---|
1148 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1149 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1150 | x_libraries=$ac_optarg ;; |
---|
1151 | |
---|
1152 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1153 | Try \`$0 --help' for more information" |
---|
1154 | ;; |
---|
1155 | |
---|
1156 | *=*) |
---|
1157 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1158 | # Reject names that are not valid shell variable names. |
---|
1159 | case $ac_envvar in #( |
---|
1160 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1161 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1162 | esac |
---|
1163 | eval $ac_envvar=\$ac_optarg |
---|
1164 | export $ac_envvar ;; |
---|
1165 | |
---|
1166 | *) |
---|
1167 | # FIXME: should be removed in autoconf 3.0. |
---|
1168 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1169 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1170 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1171 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1172 | ;; |
---|
1173 | |
---|
1174 | esac |
---|
1175 | done |
---|
1176 | |
---|
1177 | if test -n "$ac_prev"; then |
---|
1178 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1179 | as_fn_error $? "missing argument to $ac_option" |
---|
1180 | fi |
---|
1181 | |
---|
1182 | if test -n "$ac_unrecognized_opts"; then |
---|
1183 | case $enable_option_checking in |
---|
1184 | no) ;; |
---|
1185 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1186 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1187 | esac |
---|
1188 | fi |
---|
1189 | |
---|
1190 | # Check all directory arguments for consistency. |
---|
1191 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1192 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1193 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1194 | libdir localedir mandir |
---|
1195 | do |
---|
1196 | eval ac_val=\$$ac_var |
---|
1197 | # Remove trailing slashes. |
---|
1198 | case $ac_val in |
---|
1199 | */ ) |
---|
1200 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1201 | eval $ac_var=\$ac_val;; |
---|
1202 | esac |
---|
1203 | # Be sure to have absolute directory names. |
---|
1204 | case $ac_val in |
---|
1205 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1206 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1207 | esac |
---|
1208 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1209 | done |
---|
1210 | |
---|
1211 | # There might be people who depend on the old broken behavior: `$host' |
---|
1212 | # used to hold the argument of --host etc. |
---|
1213 | # FIXME: To remove some day. |
---|
1214 | build=$build_alias |
---|
1215 | host=$host_alias |
---|
1216 | target=$target_alias |
---|
1217 | |
---|
1218 | # FIXME: To remove some day. |
---|
1219 | if test "x$host_alias" != x; then |
---|
1220 | if test "x$build_alias" = x; then |
---|
1221 | cross_compiling=maybe |
---|
1222 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1223 | cross_compiling=yes |
---|
1224 | fi |
---|
1225 | fi |
---|
1226 | |
---|
1227 | ac_tool_prefix= |
---|
1228 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1229 | |
---|
1230 | test "$silent" = yes && exec 6>/dev/null |
---|
1231 | |
---|
1232 | |
---|
1233 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1234 | ac_ls_di=`ls -di .` && |
---|
1235 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1236 | as_fn_error $? "working directory cannot be determined" |
---|
1237 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1238 | as_fn_error $? "pwd does not report name of working directory" |
---|
1239 | |
---|
1240 | |
---|
1241 | # Find the source files, if location was not specified. |
---|
1242 | if test -z "$srcdir"; then |
---|
1243 | ac_srcdir_defaulted=yes |
---|
1244 | # Try the directory containing this script, then the parent directory. |
---|
1245 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1246 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1247 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1248 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1249 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1250 | $as_echo X"$as_myself" | |
---|
1251 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1252 | s//\1/ |
---|
1253 | q |
---|
1254 | } |
---|
1255 | /^X\(\/\/\)[^/].*/{ |
---|
1256 | s//\1/ |
---|
1257 | q |
---|
1258 | } |
---|
1259 | /^X\(\/\/\)$/{ |
---|
1260 | s//\1/ |
---|
1261 | q |
---|
1262 | } |
---|
1263 | /^X\(\/\).*/{ |
---|
1264 | s//\1/ |
---|
1265 | q |
---|
1266 | } |
---|
1267 | s/.*/./; q'` |
---|
1268 | srcdir=$ac_confdir |
---|
1269 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1270 | srcdir=.. |
---|
1271 | fi |
---|
1272 | else |
---|
1273 | ac_srcdir_defaulted=no |
---|
1274 | fi |
---|
1275 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1276 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1277 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1278 | fi |
---|
1279 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1280 | ac_abs_confdir=`( |
---|
1281 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1282 | pwd)` |
---|
1283 | # When building in place, set srcdir=. |
---|
1284 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1285 | srcdir=. |
---|
1286 | fi |
---|
1287 | # Remove unnecessary trailing slashes from srcdir. |
---|
1288 | # Double slashes in file names in object file debugging info |
---|
1289 | # mess up M-x gdb in Emacs. |
---|
1290 | case $srcdir in |
---|
1291 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1292 | esac |
---|
1293 | for ac_var in $ac_precious_vars; do |
---|
1294 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1295 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1296 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1297 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1298 | done |
---|
1299 | |
---|
1300 | # |
---|
1301 | # Report the --help message. |
---|
1302 | # |
---|
1303 | if test "$ac_init_help" = "long"; then |
---|
1304 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1305 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1306 | cat <<_ACEOF |
---|
1307 | \`configure' configures RapptureVideo 1.4 to adapt to many kinds of systems. |
---|
1308 | |
---|
1309 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1310 | |
---|
1311 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1312 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1313 | |
---|
1314 | Defaults for the options are specified in brackets. |
---|
1315 | |
---|
1316 | Configuration: |
---|
1317 | -h, --help display this help and exit |
---|
1318 | --help=short display options specific to this package |
---|
1319 | --help=recursive display the short help of all the included packages |
---|
1320 | -V, --version display version information and exit |
---|
1321 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1322 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1323 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1324 | -n, --no-create do not create output files |
---|
1325 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1326 | |
---|
1327 | Installation directories: |
---|
1328 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1329 | [$ac_default_prefix] |
---|
1330 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1331 | [PREFIX] |
---|
1332 | |
---|
1333 | By default, \`make install' will install all the files in |
---|
1334 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1335 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1336 | for instance \`--prefix=\$HOME'. |
---|
1337 | |
---|
1338 | For better control, use the options below. |
---|
1339 | |
---|
1340 | Fine tuning of the installation directories: |
---|
1341 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1342 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1343 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1344 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1345 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1346 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1347 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1348 | --includedir=DIR C header files [PREFIX/include] |
---|
1349 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1350 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1351 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1352 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1353 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1354 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1355 | --docdir=DIR documentation root [DATAROOTDIR/doc/rappturevideo] |
---|
1356 | --htmldir=DIR html documentation [DOCDIR] |
---|
1357 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1358 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1359 | --psdir=DIR ps documentation [DOCDIR] |
---|
1360 | _ACEOF |
---|
1361 | |
---|
1362 | cat <<\_ACEOF |
---|
1363 | |
---|
1364 | X features: |
---|
1365 | --x-includes=DIR X include files are in DIR |
---|
1366 | --x-libraries=DIR X library files are in DIR |
---|
1367 | _ACEOF |
---|
1368 | fi |
---|
1369 | |
---|
1370 | if test -n "$ac_init_help"; then |
---|
1371 | case $ac_init_help in |
---|
1372 | short | recursive ) echo "Configuration of RapptureVideo 1.4:";; |
---|
1373 | esac |
---|
1374 | cat <<\_ACEOF |
---|
1375 | |
---|
1376 | Optional Features: |
---|
1377 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1378 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1379 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1380 | --enable-64bit enable 64bit support (where applicable) |
---|
1381 | --enable-64bit-vis enable 64bit Sparc VIS support |
---|
1382 | --enable-corefoundation use CoreFoundation API --enable-corefoundation |
---|
1383 | --disable-load disallow dynamic loading and "load" command |
---|
1384 | --enable-shared build and link with shared libraries --enable-shared |
---|
1385 | --enable-symbols build with debugging symbols --disable-symbols |
---|
1386 | |
---|
1387 | Optional Packages: |
---|
1388 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1389 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1390 | --with-x use the X Window System |
---|
1391 | |
---|
1392 | Some influential environment variables: |
---|
1393 | CC C compiler command |
---|
1394 | CFLAGS C compiler flags |
---|
1395 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1396 | nonstandard directory <lib dir> |
---|
1397 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1398 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1399 | you have headers in a nonstandard directory <include dir> |
---|
1400 | CXX C++ compiler command |
---|
1401 | CXXFLAGS C++ compiler flags |
---|
1402 | F77 Fortran 77 compiler command |
---|
1403 | FFLAGS Fortran 77 compiler flags |
---|
1404 | CPP C preprocessor |
---|
1405 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1406 | CXXCPP C++ preprocessor |
---|
1407 | |
---|
1408 | Use these variables to override the choices made by `configure' or to help |
---|
1409 | it to find libraries and programs with nonstandard names/locations. |
---|
1410 | |
---|
1411 | Report bugs to <rappture@nanohub.org>. |
---|
1412 | _ACEOF |
---|
1413 | ac_status=$? |
---|
1414 | fi |
---|
1415 | |
---|
1416 | if test "$ac_init_help" = "recursive"; then |
---|
1417 | # If there are subdirs, report their specific --help. |
---|
1418 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1419 | test -d "$ac_dir" || |
---|
1420 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1421 | continue |
---|
1422 | ac_builddir=. |
---|
1423 | |
---|
1424 | case "$ac_dir" in |
---|
1425 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1426 | *) |
---|
1427 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1428 | # A ".." for each directory in $ac_dir_suffix. |
---|
1429 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1430 | case $ac_top_builddir_sub in |
---|
1431 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1432 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1433 | esac ;; |
---|
1434 | esac |
---|
1435 | ac_abs_top_builddir=$ac_pwd |
---|
1436 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1437 | # for backward compatibility: |
---|
1438 | ac_top_builddir=$ac_top_build_prefix |
---|
1439 | |
---|
1440 | case $srcdir in |
---|
1441 | .) # We are building in place. |
---|
1442 | ac_srcdir=. |
---|
1443 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1444 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1445 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1446 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1447 | ac_top_srcdir=$srcdir |
---|
1448 | ac_abs_top_srcdir=$srcdir ;; |
---|
1449 | *) # Relative name. |
---|
1450 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1451 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1452 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1453 | esac |
---|
1454 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1455 | |
---|
1456 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1457 | # Check for guested configure. |
---|
1458 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1459 | echo && |
---|
1460 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1461 | elif test -f "$ac_srcdir/configure"; then |
---|
1462 | echo && |
---|
1463 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1464 | else |
---|
1465 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1466 | fi || ac_status=$? |
---|
1467 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1468 | done |
---|
1469 | fi |
---|
1470 | |
---|
1471 | test -n "$ac_init_help" && exit $ac_status |
---|
1472 | if $ac_init_version; then |
---|
1473 | cat <<\_ACEOF |
---|
1474 | RapptureVideo configure 1.4 |
---|
1475 | generated by GNU Autoconf 2.69 |
---|
1476 | |
---|
1477 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1478 | This configure script is free software; the Free Software Foundation |
---|
1479 | gives unlimited permission to copy, distribute and modify it. |
---|
1480 | _ACEOF |
---|
1481 | exit |
---|
1482 | fi |
---|
1483 | |
---|
1484 | ## ------------------------ ## |
---|
1485 | ## Autoconf initialization. ## |
---|
1486 | ## ------------------------ ## |
---|
1487 | |
---|
1488 | # ac_fn_c_try_compile LINENO |
---|
1489 | # -------------------------- |
---|
1490 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1491 | ac_fn_c_try_compile () |
---|
1492 | { |
---|
1493 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1494 | rm -f conftest.$ac_objext |
---|
1495 | if { { ac_try="$ac_compile" |
---|
1496 | case "(($ac_try" in |
---|
1497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1498 | *) ac_try_echo=$ac_try;; |
---|
1499 | esac |
---|
1500 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1501 | $as_echo "$ac_try_echo"; } >&5 |
---|
1502 | (eval "$ac_compile") 2>conftest.err |
---|
1503 | ac_status=$? |
---|
1504 | if test -s conftest.err; then |
---|
1505 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1506 | cat conftest.er1 >&5 |
---|
1507 | mv -f conftest.er1 conftest.err |
---|
1508 | fi |
---|
1509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1510 | test $ac_status = 0; } && { |
---|
1511 | test -z "$ac_c_werror_flag" || |
---|
1512 | test ! -s conftest.err |
---|
1513 | } && test -s conftest.$ac_objext; then : |
---|
1514 | ac_retval=0 |
---|
1515 | else |
---|
1516 | $as_echo "$as_me: failed program was:" >&5 |
---|
1517 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1518 | |
---|
1519 | ac_retval=1 |
---|
1520 | fi |
---|
1521 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1522 | as_fn_set_status $ac_retval |
---|
1523 | |
---|
1524 | } # ac_fn_c_try_compile |
---|
1525 | |
---|
1526 | # ac_fn_cxx_try_compile LINENO |
---|
1527 | # ---------------------------- |
---|
1528 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1529 | ac_fn_cxx_try_compile () |
---|
1530 | { |
---|
1531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1532 | rm -f conftest.$ac_objext |
---|
1533 | if { { ac_try="$ac_compile" |
---|
1534 | case "(($ac_try" in |
---|
1535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1536 | *) ac_try_echo=$ac_try;; |
---|
1537 | esac |
---|
1538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1539 | $as_echo "$ac_try_echo"; } >&5 |
---|
1540 | (eval "$ac_compile") 2>conftest.err |
---|
1541 | ac_status=$? |
---|
1542 | if test -s conftest.err; then |
---|
1543 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1544 | cat conftest.er1 >&5 |
---|
1545 | mv -f conftest.er1 conftest.err |
---|
1546 | fi |
---|
1547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1548 | test $ac_status = 0; } && { |
---|
1549 | test -z "$ac_cxx_werror_flag" || |
---|
1550 | test ! -s conftest.err |
---|
1551 | } && test -s conftest.$ac_objext; then : |
---|
1552 | ac_retval=0 |
---|
1553 | else |
---|
1554 | $as_echo "$as_me: failed program was:" >&5 |
---|
1555 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1556 | |
---|
1557 | ac_retval=1 |
---|
1558 | fi |
---|
1559 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1560 | as_fn_set_status $ac_retval |
---|
1561 | |
---|
1562 | } # ac_fn_cxx_try_compile |
---|
1563 | |
---|
1564 | # ac_fn_f77_try_compile LINENO |
---|
1565 | # ---------------------------- |
---|
1566 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1567 | ac_fn_f77_try_compile () |
---|
1568 | { |
---|
1569 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1570 | rm -f conftest.$ac_objext |
---|
1571 | if { { ac_try="$ac_compile" |
---|
1572 | case "(($ac_try" in |
---|
1573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1574 | *) ac_try_echo=$ac_try;; |
---|
1575 | esac |
---|
1576 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1577 | $as_echo "$ac_try_echo"; } >&5 |
---|
1578 | (eval "$ac_compile") 2>conftest.err |
---|
1579 | ac_status=$? |
---|
1580 | if test -s conftest.err; then |
---|
1581 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1582 | cat conftest.er1 >&5 |
---|
1583 | mv -f conftest.er1 conftest.err |
---|
1584 | fi |
---|
1585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1586 | test $ac_status = 0; } && { |
---|
1587 | test -z "$ac_f77_werror_flag" || |
---|
1588 | test ! -s conftest.err |
---|
1589 | } && test -s conftest.$ac_objext; then : |
---|
1590 | ac_retval=0 |
---|
1591 | else |
---|
1592 | $as_echo "$as_me: failed program was:" >&5 |
---|
1593 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1594 | |
---|
1595 | ac_retval=1 |
---|
1596 | fi |
---|
1597 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1598 | as_fn_set_status $ac_retval |
---|
1599 | |
---|
1600 | } # ac_fn_f77_try_compile |
---|
1601 | |
---|
1602 | # ac_fn_c_try_cpp LINENO |
---|
1603 | # ---------------------- |
---|
1604 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1605 | ac_fn_c_try_cpp () |
---|
1606 | { |
---|
1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1608 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1609 | case "(($ac_try" in |
---|
1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1611 | *) ac_try_echo=$ac_try;; |
---|
1612 | esac |
---|
1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1614 | $as_echo "$ac_try_echo"; } >&5 |
---|
1615 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1616 | ac_status=$? |
---|
1617 | if test -s conftest.err; then |
---|
1618 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1619 | cat conftest.er1 >&5 |
---|
1620 | mv -f conftest.er1 conftest.err |
---|
1621 | fi |
---|
1622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1623 | test $ac_status = 0; } > conftest.i && { |
---|
1624 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1625 | test ! -s conftest.err |
---|
1626 | }; then : |
---|
1627 | ac_retval=0 |
---|
1628 | else |
---|
1629 | $as_echo "$as_me: failed program was:" >&5 |
---|
1630 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1631 | |
---|
1632 | ac_retval=1 |
---|
1633 | fi |
---|
1634 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1635 | as_fn_set_status $ac_retval |
---|
1636 | |
---|
1637 | } # ac_fn_c_try_cpp |
---|
1638 | |
---|
1639 | # ac_fn_c_try_run LINENO |
---|
1640 | # ---------------------- |
---|
1641 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1642 | # that executables *can* be run. |
---|
1643 | ac_fn_c_try_run () |
---|
1644 | { |
---|
1645 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1646 | if { { ac_try="$ac_link" |
---|
1647 | case "(($ac_try" in |
---|
1648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1649 | *) ac_try_echo=$ac_try;; |
---|
1650 | esac |
---|
1651 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1652 | $as_echo "$ac_try_echo"; } >&5 |
---|
1653 | (eval "$ac_link") 2>&5 |
---|
1654 | ac_status=$? |
---|
1655 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1656 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1657 | { { case "(($ac_try" in |
---|
1658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1659 | *) ac_try_echo=$ac_try;; |
---|
1660 | esac |
---|
1661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1662 | $as_echo "$ac_try_echo"; } >&5 |
---|
1663 | (eval "$ac_try") 2>&5 |
---|
1664 | ac_status=$? |
---|
1665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1666 | test $ac_status = 0; }; }; then : |
---|
1667 | ac_retval=0 |
---|
1668 | else |
---|
1669 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1670 | $as_echo "$as_me: failed program was:" >&5 |
---|
1671 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1672 | |
---|
1673 | ac_retval=$ac_status |
---|
1674 | fi |
---|
1675 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1676 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1677 | as_fn_set_status $ac_retval |
---|
1678 | |
---|
1679 | } # ac_fn_c_try_run |
---|
1680 | |
---|
1681 | # ac_fn_cxx_try_cpp LINENO |
---|
1682 | # ------------------------ |
---|
1683 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1684 | ac_fn_cxx_try_cpp () |
---|
1685 | { |
---|
1686 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1687 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1688 | case "(($ac_try" in |
---|
1689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1690 | *) ac_try_echo=$ac_try;; |
---|
1691 | esac |
---|
1692 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1693 | $as_echo "$ac_try_echo"; } >&5 |
---|
1694 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1695 | ac_status=$? |
---|
1696 | if test -s conftest.err; then |
---|
1697 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1698 | cat conftest.er1 >&5 |
---|
1699 | mv -f conftest.er1 conftest.err |
---|
1700 | fi |
---|
1701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1702 | test $ac_status = 0; } > conftest.i && { |
---|
1703 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1704 | test ! -s conftest.err |
---|
1705 | }; then : |
---|
1706 | ac_retval=0 |
---|
1707 | else |
---|
1708 | $as_echo "$as_me: failed program was:" >&5 |
---|
1709 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1710 | |
---|
1711 | ac_retval=1 |
---|
1712 | fi |
---|
1713 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1714 | as_fn_set_status $ac_retval |
---|
1715 | |
---|
1716 | } # ac_fn_cxx_try_cpp |
---|
1717 | |
---|
1718 | # ac_fn_cxx_try_link LINENO |
---|
1719 | # ------------------------- |
---|
1720 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1721 | ac_fn_cxx_try_link () |
---|
1722 | { |
---|
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1724 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1725 | if { { ac_try="$ac_link" |
---|
1726 | case "(($ac_try" in |
---|
1727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1728 | *) ac_try_echo=$ac_try;; |
---|
1729 | esac |
---|
1730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1731 | $as_echo "$ac_try_echo"; } >&5 |
---|
1732 | (eval "$ac_link") 2>conftest.err |
---|
1733 | ac_status=$? |
---|
1734 | if test -s conftest.err; then |
---|
1735 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1736 | cat conftest.er1 >&5 |
---|
1737 | mv -f conftest.er1 conftest.err |
---|
1738 | fi |
---|
1739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1740 | test $ac_status = 0; } && { |
---|
1741 | test -z "$ac_cxx_werror_flag" || |
---|
1742 | test ! -s conftest.err |
---|
1743 | } && test -s conftest$ac_exeext && { |
---|
1744 | test "$cross_compiling" = yes || |
---|
1745 | test -x conftest$ac_exeext |
---|
1746 | }; then : |
---|
1747 | ac_retval=0 |
---|
1748 | else |
---|
1749 | $as_echo "$as_me: failed program was:" >&5 |
---|
1750 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1751 | |
---|
1752 | ac_retval=1 |
---|
1753 | fi |
---|
1754 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1755 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1756 | # interfere with the next link command; also delete a directory that is |
---|
1757 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1758 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1759 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1760 | as_fn_set_status $ac_retval |
---|
1761 | |
---|
1762 | } # ac_fn_cxx_try_link |
---|
1763 | |
---|
1764 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1765 | # --------------------------------------------------------- |
---|
1766 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1767 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1768 | # accordingly. |
---|
1769 | ac_fn_cxx_check_header_mongrel () |
---|
1770 | { |
---|
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1772 | if eval \${$3+:} false; then : |
---|
1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1774 | $as_echo_n "checking for $2... " >&6; } |
---|
1775 | if eval \${$3+:} false; then : |
---|
1776 | $as_echo_n "(cached) " >&6 |
---|
1777 | fi |
---|
1778 | eval ac_res=\$$3 |
---|
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1780 | $as_echo "$ac_res" >&6; } |
---|
1781 | else |
---|
1782 | # Is the header compilable? |
---|
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1784 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1786 | /* end confdefs.h. */ |
---|
1787 | $4 |
---|
1788 | #include <$2> |
---|
1789 | _ACEOF |
---|
1790 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1791 | ac_header_compiler=yes |
---|
1792 | else |
---|
1793 | ac_header_compiler=no |
---|
1794 | fi |
---|
1795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1797 | $as_echo "$ac_header_compiler" >&6; } |
---|
1798 | |
---|
1799 | # Is the header present? |
---|
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1801 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1803 | /* end confdefs.h. */ |
---|
1804 | #include <$2> |
---|
1805 | _ACEOF |
---|
1806 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
1807 | ac_header_preproc=yes |
---|
1808 | else |
---|
1809 | ac_header_preproc=no |
---|
1810 | fi |
---|
1811 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1813 | $as_echo "$ac_header_preproc" >&6; } |
---|
1814 | |
---|
1815 | # So? What about this header? |
---|
1816 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
1817 | yes:no: ) |
---|
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1819 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1821 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1822 | ;; |
---|
1823 | no:yes:* ) |
---|
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1825 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1827 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1829 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1831 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1833 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1834 | ( $as_echo "## ----------------------------------- ## |
---|
1835 | ## Report this to rappture@nanohub.org ## |
---|
1836 | ## ----------------------------------- ##" |
---|
1837 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1838 | ;; |
---|
1839 | esac |
---|
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1841 | $as_echo_n "checking for $2... " >&6; } |
---|
1842 | if eval \${$3+:} false; then : |
---|
1843 | $as_echo_n "(cached) " >&6 |
---|
1844 | else |
---|
1845 | eval "$3=\$ac_header_compiler" |
---|
1846 | fi |
---|
1847 | eval ac_res=\$$3 |
---|
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1849 | $as_echo "$ac_res" >&6; } |
---|
1850 | fi |
---|
1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1852 | |
---|
1853 | } # ac_fn_cxx_check_header_mongrel |
---|
1854 | |
---|
1855 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1856 | # --------------------------------------------------------- |
---|
1857 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1858 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1859 | ac_fn_cxx_check_header_compile () |
---|
1860 | { |
---|
1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1863 | $as_echo_n "checking for $2... " >&6; } |
---|
1864 | if eval \${$3+:} false; then : |
---|
1865 | $as_echo_n "(cached) " >&6 |
---|
1866 | else |
---|
1867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1868 | /* end confdefs.h. */ |
---|
1869 | $4 |
---|
1870 | #include <$2> |
---|
1871 | _ACEOF |
---|
1872 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1873 | eval "$3=yes" |
---|
1874 | else |
---|
1875 | eval "$3=no" |
---|
1876 | fi |
---|
1877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1878 | fi |
---|
1879 | eval ac_res=\$$3 |
---|
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1881 | $as_echo "$ac_res" >&6; } |
---|
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1883 | |
---|
1884 | } # ac_fn_cxx_check_header_compile |
---|
1885 | |
---|
1886 | # ac_fn_cxx_try_run LINENO |
---|
1887 | # ------------------------ |
---|
1888 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1889 | # that executables *can* be run. |
---|
1890 | ac_fn_cxx_try_run () |
---|
1891 | { |
---|
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1893 | if { { ac_try="$ac_link" |
---|
1894 | case "(($ac_try" in |
---|
1895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1896 | *) ac_try_echo=$ac_try;; |
---|
1897 | esac |
---|
1898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1899 | $as_echo "$ac_try_echo"; } >&5 |
---|
1900 | (eval "$ac_link") 2>&5 |
---|
1901 | ac_status=$? |
---|
1902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1903 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1904 | { { case "(($ac_try" in |
---|
1905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1906 | *) ac_try_echo=$ac_try;; |
---|
1907 | esac |
---|
1908 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1909 | $as_echo "$ac_try_echo"; } >&5 |
---|
1910 | (eval "$ac_try") 2>&5 |
---|
1911 | ac_status=$? |
---|
1912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1913 | test $ac_status = 0; }; }; then : |
---|
1914 | ac_retval=0 |
---|
1915 | else |
---|
1916 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1917 | $as_echo "$as_me: failed program was:" >&5 |
---|
1918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1919 | |
---|
1920 | ac_retval=$ac_status |
---|
1921 | fi |
---|
1922 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1923 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1924 | as_fn_set_status $ac_retval |
---|
1925 | |
---|
1926 | } # ac_fn_cxx_try_run |
---|
1927 | |
---|
1928 | # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES |
---|
1929 | # ---------------------------------------------- |
---|
1930 | # Tries to find the compile-time value of EXPR in a program that includes |
---|
1931 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
---|
1932 | # computed |
---|
1933 | ac_fn_cxx_compute_int () |
---|
1934 | { |
---|
1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1936 | if test "$cross_compiling" = yes; then |
---|
1937 | # Depending upon the size, compute the lo and hi bounds. |
---|
1938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1939 | /* end confdefs.h. */ |
---|
1940 | $4 |
---|
1941 | int |
---|
1942 | main () |
---|
1943 | { |
---|
1944 | static int test_array [1 - 2 * !(($2) >= 0)]; |
---|
1945 | test_array [0] = 0; |
---|
1946 | return test_array [0]; |
---|
1947 | |
---|
1948 | ; |
---|
1949 | return 0; |
---|
1950 | } |
---|
1951 | _ACEOF |
---|
1952 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1953 | ac_lo=0 ac_mid=0 |
---|
1954 | while :; do |
---|
1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1956 | /* end confdefs.h. */ |
---|
1957 | $4 |
---|
1958 | int |
---|
1959 | main () |
---|
1960 | { |
---|
1961 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
1962 | test_array [0] = 0; |
---|
1963 | return test_array [0]; |
---|
1964 | |
---|
1965 | ; |
---|
1966 | return 0; |
---|
1967 | } |
---|
1968 | _ACEOF |
---|
1969 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1970 | ac_hi=$ac_mid; break |
---|
1971 | else |
---|
1972 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
---|
1973 | if test $ac_lo -le $ac_mid; then |
---|
1974 | ac_lo= ac_hi= |
---|
1975 | break |
---|
1976 | fi |
---|
1977 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
---|
1978 | fi |
---|
1979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1980 | done |
---|
1981 | else |
---|
1982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1983 | /* end confdefs.h. */ |
---|
1984 | $4 |
---|
1985 | int |
---|
1986 | main () |
---|
1987 | { |
---|
1988 | static int test_array [1 - 2 * !(($2) < 0)]; |
---|
1989 | test_array [0] = 0; |
---|
1990 | return test_array [0]; |
---|
1991 | |
---|
1992 | ; |
---|
1993 | return 0; |
---|
1994 | } |
---|
1995 | _ACEOF |
---|
1996 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1997 | ac_hi=-1 ac_mid=-1 |
---|
1998 | while :; do |
---|
1999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2000 | /* end confdefs.h. */ |
---|
2001 | $4 |
---|
2002 | int |
---|
2003 | main () |
---|
2004 | { |
---|
2005 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
---|
2006 | test_array [0] = 0; |
---|
2007 | return test_array [0]; |
---|
2008 | |
---|
2009 | ; |
---|
2010 | return 0; |
---|
2011 | } |
---|
2012 | _ACEOF |
---|
2013 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2014 | ac_lo=$ac_mid; break |
---|
2015 | else |
---|
2016 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
---|
2017 | if test $ac_mid -le $ac_hi; then |
---|
2018 | ac_lo= ac_hi= |
---|
2019 | break |
---|
2020 | fi |
---|
2021 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
---|
2022 | fi |
---|
2023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2024 | done |
---|
2025 | else |
---|
2026 | ac_lo= ac_hi= |
---|
2027 | fi |
---|
2028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2029 | fi |
---|
2030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2031 | # Binary search between lo and hi bounds. |
---|
2032 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
2033 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
---|
2034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2035 | /* end confdefs.h. */ |
---|
2036 | $4 |
---|
2037 | int |
---|
2038 | main () |
---|
2039 | { |
---|
2040 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2041 | test_array [0] = 0; |
---|
2042 | return test_array [0]; |
---|
2043 | |
---|
2044 | ; |
---|
2045 | return 0; |
---|
2046 | } |
---|
2047 | _ACEOF |
---|
2048 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2049 | ac_hi=$ac_mid |
---|
2050 | else |
---|
2051 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
---|
2052 | fi |
---|
2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2054 | done |
---|
2055 | case $ac_lo in #(( |
---|
2056 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
---|
2057 | '') ac_retval=1 ;; |
---|
2058 | esac |
---|
2059 | else |
---|
2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2061 | /* end confdefs.h. */ |
---|
2062 | $4 |
---|
2063 | static long int longval () { return $2; } |
---|
2064 | static unsigned long int ulongval () { return $2; } |
---|
2065 | #include <stdio.h> |
---|
2066 | #include <stdlib.h> |
---|
2067 | int |
---|
2068 | main () |
---|
2069 | { |
---|
2070 | |
---|
2071 | FILE *f = fopen ("conftest.val", "w"); |
---|
2072 | if (! f) |
---|
2073 | return 1; |
---|
2074 | if (($2) < 0) |
---|
2075 | { |
---|
2076 | long int i = longval (); |
---|
2077 | if (i != ($2)) |
---|
2078 | return 1; |
---|
2079 | fprintf (f, "%ld", i); |
---|
2080 | } |
---|
2081 | else |
---|
2082 | { |
---|
2083 | unsigned long int i = ulongval (); |
---|
2084 | if (i != ($2)) |
---|
2085 | return 1; |
---|
2086 | fprintf (f, "%lu", i); |
---|
2087 | } |
---|
2088 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
2089 | on some platforms. */ |
---|
2090 | return ferror (f) || fclose (f) != 0; |
---|
2091 | |
---|
2092 | ; |
---|
2093 | return 0; |
---|
2094 | } |
---|
2095 | _ACEOF |
---|
2096 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
2097 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
---|
2098 | else |
---|
2099 | ac_retval=1 |
---|
2100 | fi |
---|
2101 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
2102 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
2103 | rm -f conftest.val |
---|
2104 | |
---|
2105 | fi |
---|
2106 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2107 | as_fn_set_status $ac_retval |
---|
2108 | |
---|
2109 | } # ac_fn_cxx_compute_int |
---|
2110 | |
---|
2111 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
2112 | # ------------------------------------ |
---|
2113 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
2114 | ac_fn_cxx_check_func () |
---|
2115 | { |
---|
2116 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2118 | $as_echo_n "checking for $2... " >&6; } |
---|
2119 | if eval \${$3+:} false; then : |
---|
2120 | $as_echo_n "(cached) " >&6 |
---|
2121 | else |
---|
2122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2123 | /* end confdefs.h. */ |
---|
2124 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
2125 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
2126 | #define $2 innocuous_$2 |
---|
2127 | |
---|
2128 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2129 | which can conflict with char $2 (); below. |
---|
2130 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2131 | <limits.h> exists even on freestanding compilers. */ |
---|
2132 | |
---|
2133 | #ifdef __STDC__ |
---|
2134 | # include <limits.h> |
---|
2135 | #else |
---|
2136 | # include <assert.h> |
---|
2137 | #endif |
---|
2138 | |
---|
2139 | #undef $2 |
---|
2140 | |
---|
2141 | /* Override any GCC internal prototype to avoid an error. |
---|
2142 | Use char because int might match the return type of a GCC |
---|
2143 | builtin and then its argument prototype would still apply. */ |
---|
2144 | #ifdef __cplusplus |
---|
2145 | extern "C" |
---|
2146 | #endif |
---|
2147 | char $2 (); |
---|
2148 | /* The GNU C library defines this for functions which it implements |
---|
2149 | to always fail with ENOSYS. Some functions are actually named |
---|
2150 | something starting with __ and the normal name is an alias. */ |
---|
2151 | #if defined __stub_$2 || defined __stub___$2 |
---|
2152 | choke me |
---|
2153 | #endif |
---|
2154 | |
---|
2155 | int |
---|
2156 | main () |
---|
2157 | { |
---|
2158 | return $2 (); |
---|
2159 | ; |
---|
2160 | return 0; |
---|
2161 | } |
---|
2162 | _ACEOF |
---|
2163 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
2164 | eval "$3=yes" |
---|
2165 | else |
---|
2166 | eval "$3=no" |
---|
2167 | fi |
---|
2168 | rm -f core conftest.err conftest.$ac_objext \ |
---|
2169 | conftest$ac_exeext conftest.$ac_ext |
---|
2170 | fi |
---|
2171 | eval ac_res=\$$3 |
---|
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2173 | $as_echo "$ac_res" >&6; } |
---|
2174 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2175 | |
---|
2176 | } # ac_fn_cxx_check_func |
---|
2177 | cat >config.log <<_ACEOF |
---|
2178 | This file contains any messages produced by compilers while |
---|
2179 | running configure, to aid debugging if configure makes a mistake. |
---|
2180 | |
---|
2181 | It was created by RapptureVideo $as_me 1.4, which was |
---|
2182 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2183 | |
---|
2184 | $ $0 $@ |
---|
2185 | |
---|
2186 | _ACEOF |
---|
2187 | exec 5>>config.log |
---|
2188 | { |
---|
2189 | cat <<_ASUNAME |
---|
2190 | ## --------- ## |
---|
2191 | ## Platform. ## |
---|
2192 | ## --------- ## |
---|
2193 | |
---|
2194 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2195 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2196 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2197 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2198 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2199 | |
---|
2200 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2201 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2202 | |
---|
2203 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2204 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2205 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2206 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2207 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2208 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2209 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2210 | |
---|
2211 | _ASUNAME |
---|
2212 | |
---|
2213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2214 | for as_dir in $PATH |
---|
2215 | do |
---|
2216 | IFS=$as_save_IFS |
---|
2217 | test -z "$as_dir" && as_dir=. |
---|
2218 | $as_echo "PATH: $as_dir" |
---|
2219 | done |
---|
2220 | IFS=$as_save_IFS |
---|
2221 | |
---|
2222 | } >&5 |
---|
2223 | |
---|
2224 | cat >&5 <<_ACEOF |
---|
2225 | |
---|
2226 | |
---|
2227 | ## ----------- ## |
---|
2228 | ## Core tests. ## |
---|
2229 | ## ----------- ## |
---|
2230 | |
---|
2231 | _ACEOF |
---|
2232 | |
---|
2233 | |
---|
2234 | # Keep a trace of the command line. |
---|
2235 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2236 | # Strip out --silent because we don't want to record it for future runs. |
---|
2237 | # Also quote any args containing shell meta-characters. |
---|
2238 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2239 | ac_configure_args= |
---|
2240 | ac_configure_args0= |
---|
2241 | ac_configure_args1= |
---|
2242 | ac_must_keep_next=false |
---|
2243 | for ac_pass in 1 2 |
---|
2244 | do |
---|
2245 | for ac_arg |
---|
2246 | do |
---|
2247 | case $ac_arg in |
---|
2248 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2249 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2250 | | -silent | --silent | --silen | --sile | --sil) |
---|
2251 | continue ;; |
---|
2252 | *\'*) |
---|
2253 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2254 | esac |
---|
2255 | case $ac_pass in |
---|
2256 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2257 | 2) |
---|
2258 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2259 | if test $ac_must_keep_next = true; then |
---|
2260 | ac_must_keep_next=false # Got value, back to normal. |
---|
2261 | else |
---|
2262 | case $ac_arg in |
---|
2263 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2264 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2265 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2266 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2267 | case "$ac_configure_args0 " in |
---|
2268 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2269 | esac |
---|
2270 | ;; |
---|
2271 | -* ) ac_must_keep_next=true ;; |
---|
2272 | esac |
---|
2273 | fi |
---|
2274 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2275 | ;; |
---|
2276 | esac |
---|
2277 | done |
---|
2278 | done |
---|
2279 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2280 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2281 | |
---|
2282 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2283 | # config.log. We remove comments because anyway the quotes in there |
---|
2284 | # would cause problems or look ugly. |
---|
2285 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2286 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2287 | trap 'exit_status=$? |
---|
2288 | # Save into config.log some information that might help in debugging. |
---|
2289 | { |
---|
2290 | echo |
---|
2291 | |
---|
2292 | $as_echo "## ---------------- ## |
---|
2293 | ## Cache variables. ## |
---|
2294 | ## ---------------- ##" |
---|
2295 | echo |
---|
2296 | # The following way of writing the cache mishandles newlines in values, |
---|
2297 | ( |
---|
2298 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2299 | eval ac_val=\$$ac_var |
---|
2300 | case $ac_val in #( |
---|
2301 | *${as_nl}*) |
---|
2302 | case $ac_var in #( |
---|
2303 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2304 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2305 | esac |
---|
2306 | case $ac_var in #( |
---|
2307 | _ | IFS | as_nl) ;; #( |
---|
2308 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2309 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2310 | esac ;; |
---|
2311 | esac |
---|
2312 | done |
---|
2313 | (set) 2>&1 | |
---|
2314 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2315 | *${as_nl}ac_space=\ *) |
---|
2316 | sed -n \ |
---|
2317 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2318 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2319 | ;; #( |
---|
2320 | *) |
---|
2321 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2322 | ;; |
---|
2323 | esac | |
---|
2324 | sort |
---|
2325 | ) |
---|
2326 | echo |
---|
2327 | |
---|
2328 | $as_echo "## ----------------- ## |
---|
2329 | ## Output variables. ## |
---|
2330 | ## ----------------- ##" |
---|
2331 | echo |
---|
2332 | for ac_var in $ac_subst_vars |
---|
2333 | do |
---|
2334 | eval ac_val=\$$ac_var |
---|
2335 | case $ac_val in |
---|
2336 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2337 | esac |
---|
2338 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2339 | done | sort |
---|
2340 | echo |
---|
2341 | |
---|
2342 | if test -n "$ac_subst_files"; then |
---|
2343 | $as_echo "## ------------------- ## |
---|
2344 | ## File substitutions. ## |
---|
2345 | ## ------------------- ##" |
---|
2346 | echo |
---|
2347 | for ac_var in $ac_subst_files |
---|
2348 | do |
---|
2349 | eval ac_val=\$$ac_var |
---|
2350 | case $ac_val in |
---|
2351 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2352 | esac |
---|
2353 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2354 | done | sort |
---|
2355 | echo |
---|
2356 | fi |
---|
2357 | |
---|
2358 | if test -s confdefs.h; then |
---|
2359 | $as_echo "## ----------- ## |
---|
2360 | ## confdefs.h. ## |
---|
2361 | ## ----------- ##" |
---|
2362 | echo |
---|
2363 | cat confdefs.h |
---|
2364 | echo |
---|
2365 | fi |
---|
2366 | test "$ac_signal" != 0 && |
---|
2367 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2368 | $as_echo "$as_me: exit $exit_status" |
---|
2369 | } >&5 |
---|
2370 | rm -f core *.core core.conftest.* && |
---|
2371 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2372 | exit $exit_status |
---|
2373 | ' 0 |
---|
2374 | for ac_signal in 1 2 13 15; do |
---|
2375 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2376 | done |
---|
2377 | ac_signal=0 |
---|
2378 | |
---|
2379 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2380 | rm -f -r conftest* confdefs.h |
---|
2381 | |
---|
2382 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2383 | |
---|
2384 | # Predefined preprocessor variables. |
---|
2385 | |
---|
2386 | cat >>confdefs.h <<_ACEOF |
---|
2387 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2388 | _ACEOF |
---|
2389 | |
---|
2390 | cat >>confdefs.h <<_ACEOF |
---|
2391 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2392 | _ACEOF |
---|
2393 | |
---|
2394 | cat >>confdefs.h <<_ACEOF |
---|
2395 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2396 | _ACEOF |
---|
2397 | |
---|
2398 | cat >>confdefs.h <<_ACEOF |
---|
2399 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2400 | _ACEOF |
---|
2401 | |
---|
2402 | cat >>confdefs.h <<_ACEOF |
---|
2403 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2404 | _ACEOF |
---|
2405 | |
---|
2406 | cat >>confdefs.h <<_ACEOF |
---|
2407 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2408 | _ACEOF |
---|
2409 | |
---|
2410 | |
---|
2411 | # Let the site file select an alternate cache file if it wants to. |
---|
2412 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2413 | ac_site_file1=NONE |
---|
2414 | ac_site_file2=NONE |
---|
2415 | if test -n "$CONFIG_SITE"; then |
---|
2416 | # We do not want a PATH search for config.site. |
---|
2417 | case $CONFIG_SITE in #(( |
---|
2418 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2419 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2420 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2421 | esac |
---|
2422 | elif test "x$prefix" != xNONE; then |
---|
2423 | ac_site_file1=$prefix/share/config.site |
---|
2424 | ac_site_file2=$prefix/etc/config.site |
---|
2425 | else |
---|
2426 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2427 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2428 | fi |
---|
2429 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2430 | do |
---|
2431 | test "x$ac_site_file" = xNONE && continue |
---|
2432 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2434 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2435 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2436 | . "$ac_site_file" \ |
---|
2437 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2438 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2439 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2440 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2441 | fi |
---|
2442 | done |
---|
2443 | |
---|
2444 | if test -r "$cache_file"; then |
---|
2445 | # Some versions of bash will fail to source /dev/null (special files |
---|
2446 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2447 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2449 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2450 | case $cache_file in |
---|
2451 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2452 | *) . "./$cache_file";; |
---|
2453 | esac |
---|
2454 | fi |
---|
2455 | else |
---|
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2457 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2458 | >$cache_file |
---|
2459 | fi |
---|
2460 | |
---|
2461 | # Check that the precious variables saved in the cache have kept the same |
---|
2462 | # value. |
---|
2463 | ac_cache_corrupted=false |
---|
2464 | for ac_var in $ac_precious_vars; do |
---|
2465 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2466 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2467 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2468 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2469 | case $ac_old_set,$ac_new_set in |
---|
2470 | set,) |
---|
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2472 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2473 | ac_cache_corrupted=: ;; |
---|
2474 | ,set) |
---|
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2476 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2477 | ac_cache_corrupted=: ;; |
---|
2478 | ,);; |
---|
2479 | *) |
---|
2480 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2481 | # differences in whitespace do not lead to failure. |
---|
2482 | ac_old_val_w=`echo x $ac_old_val` |
---|
2483 | ac_new_val_w=`echo x $ac_new_val` |
---|
2484 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2486 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2487 | ac_cache_corrupted=: |
---|
2488 | else |
---|
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2490 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2491 | eval $ac_var=\$ac_old_val |
---|
2492 | fi |
---|
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2494 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2496 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2497 | fi;; |
---|
2498 | esac |
---|
2499 | # Pass precious variables to config.status. |
---|
2500 | if test "$ac_new_set" = set; then |
---|
2501 | case $ac_new_val in |
---|
2502 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2503 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2504 | esac |
---|
2505 | case " $ac_configure_args " in |
---|
2506 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2507 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2508 | esac |
---|
2509 | fi |
---|
2510 | done |
---|
2511 | if $ac_cache_corrupted; then |
---|
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2515 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2516 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2517 | fi |
---|
2518 | ## -------------------- ## |
---|
2519 | ## Main body of script. ## |
---|
2520 | ## -------------------- ## |
---|
2521 | |
---|
2522 | ac_ext=c |
---|
2523 | ac_cpp='$CPP $CPPFLAGS' |
---|
2524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2527 | |
---|
2528 | |
---|
2529 | ac_aux_dir= |
---|
2530 | for ac_dir in cf "$srcdir"/cf; do |
---|
2531 | if test -f "$ac_dir/install-sh"; then |
---|
2532 | ac_aux_dir=$ac_dir |
---|
2533 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2534 | break |
---|
2535 | elif test -f "$ac_dir/install.sh"; then |
---|
2536 | ac_aux_dir=$ac_dir |
---|
2537 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2538 | break |
---|
2539 | elif test -f "$ac_dir/shtool"; then |
---|
2540 | ac_aux_dir=$ac_dir |
---|
2541 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2542 | break |
---|
2543 | fi |
---|
2544 | done |
---|
2545 | if test -z "$ac_aux_dir"; then |
---|
2546 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
2547 | fi |
---|
2548 | |
---|
2549 | # These three variables are undocumented and unsupported, |
---|
2550 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2551 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2552 | # whose full name contains unusual characters. |
---|
2553 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2554 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2555 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2556 | |
---|
2557 | |
---|
2558 | ac_config_headers="$ac_config_headers config.h" |
---|
2559 | |
---|
2560 | |
---|
2561 | #------------------------------------------------------------------------ |
---|
2562 | # Handle the --prefix=... option |
---|
2563 | #------------------------------------------------------------------------ |
---|
2564 | |
---|
2565 | if test "${prefix}" = "NONE"; then |
---|
2566 | prefix=/usr/local |
---|
2567 | fi |
---|
2568 | if test "${exec_prefix}" = "NONE"; then |
---|
2569 | exec_prefix=$prefix |
---|
2570 | fi |
---|
2571 | |
---|
2572 | # Find a good install program. We prefer a C program (faster), |
---|
2573 | # so one script is as good as another. But avoid the broken or |
---|
2574 | # incompatible versions: |
---|
2575 | # SysV /etc/install, /usr/sbin/install |
---|
2576 | # SunOS /usr/etc/install |
---|
2577 | # IRIX /sbin/install |
---|
2578 | # AIX /bin/install |
---|
2579 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2580 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2581 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2582 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2583 | # OS/2's system install, which has a completely different semantic |
---|
2584 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2585 | # Reject install programs that cannot install multiple files. |
---|
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2587 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2588 | if test -z "$INSTALL"; then |
---|
2589 | if ${ac_cv_path_install+:} false; then : |
---|
2590 | $as_echo_n "(cached) " >&6 |
---|
2591 | else |
---|
2592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2593 | for as_dir in $PATH |
---|
2594 | do |
---|
2595 | IFS=$as_save_IFS |
---|
2596 | test -z "$as_dir" && as_dir=. |
---|
2597 | # Account for people who put trailing slashes in PATH elements. |
---|
2598 | case $as_dir/ in #(( |
---|
2599 | ./ | .// | /[cC]/* | \ |
---|
2600 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2601 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2602 | /usr/ucb/* ) ;; |
---|
2603 | *) |
---|
2604 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2605 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2606 | # by default. |
---|
2607 | for ac_prog in ginstall scoinst install; do |
---|
2608 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2609 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2610 | if test $ac_prog = install && |
---|
2611 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2612 | # AIX install. It has an incompatible calling convention. |
---|
2613 | : |
---|
2614 | elif test $ac_prog = install && |
---|
2615 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2616 | # program-specific install script used by HP pwplus--don't use. |
---|
2617 | : |
---|
2618 | else |
---|
2619 | rm -rf conftest.one conftest.two conftest.dir |
---|
2620 | echo one > conftest.one |
---|
2621 | echo two > conftest.two |
---|
2622 | mkdir conftest.dir |
---|
2623 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2624 | test -s conftest.one && test -s conftest.two && |
---|
2625 | test -s conftest.dir/conftest.one && |
---|
2626 | test -s conftest.dir/conftest.two |
---|
2627 | then |
---|
2628 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2629 | break 3 |
---|
2630 | fi |
---|
2631 | fi |
---|
2632 | fi |
---|
2633 | done |
---|
2634 | done |
---|
2635 | ;; |
---|
2636 | esac |
---|
2637 | |
---|
2638 | done |
---|
2639 | IFS=$as_save_IFS |
---|
2640 | |
---|
2641 | rm -rf conftest.one conftest.two conftest.dir |
---|
2642 | |
---|
2643 | fi |
---|
2644 | if test "${ac_cv_path_install+set}" = set; then |
---|
2645 | INSTALL=$ac_cv_path_install |
---|
2646 | else |
---|
2647 | # As a last resort, use the slow shell script. Don't cache a |
---|
2648 | # value for INSTALL within a source directory, because that will |
---|
2649 | # break other packages using the cache if that directory is |
---|
2650 | # removed, or if the value is a relative name. |
---|
2651 | INSTALL=$ac_install_sh |
---|
2652 | fi |
---|
2653 | fi |
---|
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2655 | $as_echo "$INSTALL" >&6; } |
---|
2656 | |
---|
2657 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2658 | # It thinks the first close brace ends the variable substitution. |
---|
2659 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2660 | |
---|
2661 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2662 | |
---|
2663 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2664 | |
---|
2665 | |
---|
2666 | if test -n "$ac_tool_prefix"; then |
---|
2667 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2668 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2670 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2671 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
2672 | $as_echo_n "(cached) " >&6 |
---|
2673 | else |
---|
2674 | if test -n "$RANLIB"; then |
---|
2675 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2676 | else |
---|
2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2678 | for as_dir in $PATH |
---|
2679 | do |
---|
2680 | IFS=$as_save_IFS |
---|
2681 | test -z "$as_dir" && as_dir=. |
---|
2682 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2684 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2686 | break 2 |
---|
2687 | fi |
---|
2688 | done |
---|
2689 | done |
---|
2690 | IFS=$as_save_IFS |
---|
2691 | |
---|
2692 | fi |
---|
2693 | fi |
---|
2694 | RANLIB=$ac_cv_prog_RANLIB |
---|
2695 | if test -n "$RANLIB"; then |
---|
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
2697 | $as_echo "$RANLIB" >&6; } |
---|
2698 | else |
---|
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2700 | $as_echo "no" >&6; } |
---|
2701 | fi |
---|
2702 | |
---|
2703 | |
---|
2704 | fi |
---|
2705 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2706 | ac_ct_RANLIB=$RANLIB |
---|
2707 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2708 | set dummy ranlib; ac_word=$2 |
---|
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2710 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2711 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
2712 | $as_echo_n "(cached) " >&6 |
---|
2713 | else |
---|
2714 | if test -n "$ac_ct_RANLIB"; then |
---|
2715 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2716 | else |
---|
2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2718 | for as_dir in $PATH |
---|
2719 | do |
---|
2720 | IFS=$as_save_IFS |
---|
2721 | test -z "$as_dir" && as_dir=. |
---|
2722 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2724 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2726 | break 2 |
---|
2727 | fi |
---|
2728 | done |
---|
2729 | done |
---|
2730 | IFS=$as_save_IFS |
---|
2731 | |
---|
2732 | fi |
---|
2733 | fi |
---|
2734 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2735 | if test -n "$ac_ct_RANLIB"; then |
---|
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
2737 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2738 | else |
---|
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2740 | $as_echo "no" >&6; } |
---|
2741 | fi |
---|
2742 | |
---|
2743 | if test "x$ac_ct_RANLIB" = x; then |
---|
2744 | RANLIB=":" |
---|
2745 | else |
---|
2746 | case $cross_compiling:$ac_tool_warned in |
---|
2747 | yes:) |
---|
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2749 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2750 | ac_tool_warned=yes ;; |
---|
2751 | esac |
---|
2752 | RANLIB=$ac_ct_RANLIB |
---|
2753 | fi |
---|
2754 | else |
---|
2755 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2756 | fi |
---|
2757 | |
---|
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
2759 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
2760 | LN_S=$as_ln_s |
---|
2761 | if test "$LN_S" = "ln -s"; then |
---|
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2763 | $as_echo "yes" >&6; } |
---|
2764 | else |
---|
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
2766 | $as_echo "no, using $LN_S" >&6; } |
---|
2767 | fi |
---|
2768 | |
---|
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2770 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2771 | if test -z "$MKDIR_P"; then |
---|
2772 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2773 | $as_echo_n "(cached) " >&6 |
---|
2774 | else |
---|
2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2776 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2777 | do |
---|
2778 | IFS=$as_save_IFS |
---|
2779 | test -z "$as_dir" && as_dir=. |
---|
2780 | for ac_prog in mkdir gmkdir; do |
---|
2781 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2782 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
2783 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2784 | 'mkdir (GNU coreutils) '* | \ |
---|
2785 | 'mkdir (coreutils) '* | \ |
---|
2786 | 'mkdir (fileutils) '4.1*) |
---|
2787 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2788 | break 3;; |
---|
2789 | esac |
---|
2790 | done |
---|
2791 | done |
---|
2792 | done |
---|
2793 | IFS=$as_save_IFS |
---|
2794 | |
---|
2795 | fi |
---|
2796 | |
---|
2797 | test -d ./--version && rmdir ./--version |
---|
2798 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2799 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2800 | else |
---|
2801 | # As a last resort, use the slow shell script. Don't cache a |
---|
2802 | # value for MKDIR_P within a source directory, because that will |
---|
2803 | # break other packages using the cache if that directory is |
---|
2804 | # removed, or if the value is a relative name. |
---|
2805 | MKDIR_P="$ac_install_sh -d" |
---|
2806 | fi |
---|
2807 | fi |
---|
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2809 | $as_echo "$MKDIR_P" >&6; } |
---|
2810 | |
---|
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2812 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2813 | set x ${MAKE-make} |
---|
2814 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2815 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2816 | $as_echo_n "(cached) " >&6 |
---|
2817 | else |
---|
2818 | cat >conftest.make <<\_ACEOF |
---|
2819 | SHELL = /bin/sh |
---|
2820 | all: |
---|
2821 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2822 | _ACEOF |
---|
2823 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2824 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2825 | *@@@%%%=?*=@@@%%%*) |
---|
2826 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2827 | *) |
---|
2828 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2829 | esac |
---|
2830 | rm -f conftest.make |
---|
2831 | fi |
---|
2832 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2834 | $as_echo "yes" >&6; } |
---|
2835 | SET_MAKE= |
---|
2836 | else |
---|
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2838 | $as_echo "no" >&6; } |
---|
2839 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2840 | fi |
---|
2841 | |
---|
2842 | |
---|
2843 | # Check for C, C++, and FORTRAN |
---|
2844 | ac_ext=c |
---|
2845 | ac_cpp='$CPP $CPPFLAGS' |
---|
2846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2849 | if test -n "$ac_tool_prefix"; then |
---|
2850 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2851 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2853 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2854 | if ${ac_cv_prog_CC+:} false; then : |
---|
2855 | $as_echo_n "(cached) " >&6 |
---|
2856 | else |
---|
2857 | if test -n "$CC"; then |
---|
2858 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2859 | else |
---|
2860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2861 | for as_dir in $PATH |
---|
2862 | do |
---|
2863 | IFS=$as_save_IFS |
---|
2864 | test -z "$as_dir" && as_dir=. |
---|
2865 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2867 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2869 | break 2 |
---|
2870 | fi |
---|
2871 | done |
---|
2872 | done |
---|
2873 | IFS=$as_save_IFS |
---|
2874 | |
---|
2875 | fi |
---|
2876 | fi |
---|
2877 | CC=$ac_cv_prog_CC |
---|
2878 | if test -n "$CC"; then |
---|
2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2880 | $as_echo "$CC" >&6; } |
---|
2881 | else |
---|
2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2883 | $as_echo "no" >&6; } |
---|
2884 | fi |
---|
2885 | |
---|
2886 | |
---|
2887 | fi |
---|
2888 | if test -z "$ac_cv_prog_CC"; then |
---|
2889 | ac_ct_CC=$CC |
---|
2890 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2891 | set dummy gcc; ac_word=$2 |
---|
2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2893 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2894 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2895 | $as_echo_n "(cached) " >&6 |
---|
2896 | else |
---|
2897 | if test -n "$ac_ct_CC"; then |
---|
2898 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2899 | else |
---|
2900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2901 | for as_dir in $PATH |
---|
2902 | do |
---|
2903 | IFS=$as_save_IFS |
---|
2904 | test -z "$as_dir" && as_dir=. |
---|
2905 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2907 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2909 | break 2 |
---|
2910 | fi |
---|
2911 | done |
---|
2912 | done |
---|
2913 | IFS=$as_save_IFS |
---|
2914 | |
---|
2915 | fi |
---|
2916 | fi |
---|
2917 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2918 | if test -n "$ac_ct_CC"; then |
---|
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2920 | $as_echo "$ac_ct_CC" >&6; } |
---|
2921 | else |
---|
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2923 | $as_echo "no" >&6; } |
---|
2924 | fi |
---|
2925 | |
---|
2926 | if test "x$ac_ct_CC" = x; then |
---|
2927 | CC="" |
---|
2928 | else |
---|
2929 | case $cross_compiling:$ac_tool_warned in |
---|
2930 | yes:) |
---|
2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2932 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2933 | ac_tool_warned=yes ;; |
---|
2934 | esac |
---|
2935 | CC=$ac_ct_CC |
---|
2936 | fi |
---|
2937 | else |
---|
2938 | CC="$ac_cv_prog_CC" |
---|
2939 | fi |
---|
2940 | |
---|
2941 | if test -z "$CC"; then |
---|
2942 | if test -n "$ac_tool_prefix"; then |
---|
2943 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2944 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2946 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2947 | if ${ac_cv_prog_CC+:} false; then : |
---|
2948 | $as_echo_n "(cached) " >&6 |
---|
2949 | else |
---|
2950 | if test -n "$CC"; then |
---|
2951 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2952 | else |
---|
2953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2954 | for as_dir in $PATH |
---|
2955 | do |
---|
2956 | IFS=$as_save_IFS |
---|
2957 | test -z "$as_dir" && as_dir=. |
---|
2958 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2960 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2962 | break 2 |
---|
2963 | fi |
---|
2964 | done |
---|
2965 | done |
---|
2966 | IFS=$as_save_IFS |
---|
2967 | |
---|
2968 | fi |
---|
2969 | fi |
---|
2970 | CC=$ac_cv_prog_CC |
---|
2971 | if test -n "$CC"; then |
---|
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2973 | $as_echo "$CC" >&6; } |
---|
2974 | else |
---|
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2976 | $as_echo "no" >&6; } |
---|
2977 | fi |
---|
2978 | |
---|
2979 | |
---|
2980 | fi |
---|
2981 | fi |
---|
2982 | if test -z "$CC"; then |
---|
2983 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2984 | set dummy cc; ac_word=$2 |
---|
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2986 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2987 | if ${ac_cv_prog_CC+:} false; then : |
---|
2988 | $as_echo_n "(cached) " >&6 |
---|
2989 | else |
---|
2990 | if test -n "$CC"; then |
---|
2991 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2992 | else |
---|
2993 | ac_prog_rejected=no |
---|
2994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2995 | for as_dir in $PATH |
---|
2996 | do |
---|
2997 | IFS=$as_save_IFS |
---|
2998 | test -z "$as_dir" && as_dir=. |
---|
2999 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3001 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3002 | ac_prog_rejected=yes |
---|
3003 | continue |
---|
3004 | fi |
---|
3005 | ac_cv_prog_CC="cc" |
---|
3006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3007 | break 2 |
---|
3008 | fi |
---|
3009 | done |
---|
3010 | done |
---|
3011 | IFS=$as_save_IFS |
---|
3012 | |
---|
3013 | if test $ac_prog_rejected = yes; then |
---|
3014 | # We found a bogon in the path, so make sure we never use it. |
---|
3015 | set dummy $ac_cv_prog_CC |
---|
3016 | shift |
---|
3017 | if test $# != 0; then |
---|
3018 | # We chose a different compiler from the bogus one. |
---|
3019 | # However, it has the same basename, so the bogon will be chosen |
---|
3020 | # first if we set CC to just the basename; use the full file name. |
---|
3021 | shift |
---|
3022 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3023 | fi |
---|
3024 | fi |
---|
3025 | fi |
---|
3026 | fi |
---|
3027 | CC=$ac_cv_prog_CC |
---|
3028 | if test -n "$CC"; then |
---|
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3030 | $as_echo "$CC" >&6; } |
---|
3031 | else |
---|
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3033 | $as_echo "no" >&6; } |
---|
3034 | fi |
---|
3035 | |
---|
3036 | |
---|
3037 | fi |
---|
3038 | if test -z "$CC"; then |
---|
3039 | if test -n "$ac_tool_prefix"; then |
---|
3040 | for ac_prog in cl.exe |
---|
3041 | do |
---|
3042 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3043 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3045 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3046 | if ${ac_cv_prog_CC+:} false; then : |
---|
3047 | $as_echo_n "(cached) " >&6 |
---|
3048 | else |
---|
3049 | if test -n "$CC"; then |
---|
3050 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3051 | else |
---|
3052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3053 | for as_dir in $PATH |
---|
3054 | do |
---|
3055 | IFS=$as_save_IFS |
---|
3056 | test -z "$as_dir" && as_dir=. |
---|
3057 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3059 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3061 | break 2 |
---|
3062 | fi |
---|
3063 | done |
---|
3064 | done |
---|
3065 | IFS=$as_save_IFS |
---|
3066 | |
---|
3067 | fi |
---|
3068 | fi |
---|
3069 | CC=$ac_cv_prog_CC |
---|
3070 | if test -n "$CC"; then |
---|
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3072 | $as_echo "$CC" >&6; } |
---|
3073 | else |
---|
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3075 | $as_echo "no" >&6; } |
---|
3076 | fi |
---|
3077 | |
---|
3078 | |
---|
3079 | test -n "$CC" && break |
---|
3080 | done |
---|
3081 | fi |
---|
3082 | if test -z "$CC"; then |
---|
3083 | ac_ct_CC=$CC |
---|
3084 | for ac_prog in cl.exe |
---|
3085 | do |
---|
3086 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3087 | set dummy $ac_prog; ac_word=$2 |
---|
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3089 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3090 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3091 | $as_echo_n "(cached) " >&6 |
---|
3092 | else |
---|
3093 | if test -n "$ac_ct_CC"; then |
---|
3094 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3095 | else |
---|
3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3097 | for as_dir in $PATH |
---|
3098 | do |
---|
3099 | IFS=$as_save_IFS |
---|
3100 | test -z "$as_dir" && as_dir=. |
---|
3101 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3103 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3105 | break 2 |
---|
3106 | fi |
---|
3107 | done |
---|
3108 | done |
---|
3109 | IFS=$as_save_IFS |
---|
3110 | |
---|
3111 | fi |
---|
3112 | fi |
---|
3113 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3114 | if test -n "$ac_ct_CC"; then |
---|
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3116 | $as_echo "$ac_ct_CC" >&6; } |
---|
3117 | else |
---|
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3119 | $as_echo "no" >&6; } |
---|
3120 | fi |
---|
3121 | |
---|
3122 | |
---|
3123 | test -n "$ac_ct_CC" && break |
---|
3124 | done |
---|
3125 | |
---|
3126 | if test "x$ac_ct_CC" = x; then |
---|
3127 | CC="" |
---|
3128 | else |
---|
3129 | case $cross_compiling:$ac_tool_warned in |
---|
3130 | yes:) |
---|
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3132 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3133 | ac_tool_warned=yes ;; |
---|
3134 | esac |
---|
3135 | CC=$ac_ct_CC |
---|
3136 | fi |
---|
3137 | fi |
---|
3138 | |
---|
3139 | fi |
---|
3140 | |
---|
3141 | |
---|
3142 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3143 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3144 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3145 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3146 | |
---|
3147 | # Provide some information about the compiler. |
---|
3148 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3149 | set X $ac_compile |
---|
3150 | ac_compiler=$2 |
---|
3151 | for ac_option in --version -v -V -qversion; do |
---|
3152 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3153 | case "(($ac_try" in |
---|
3154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3155 | *) ac_try_echo=$ac_try;; |
---|
3156 | esac |
---|
3157 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3158 | $as_echo "$ac_try_echo"; } >&5 |
---|
3159 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3160 | ac_status=$? |
---|
3161 | if test -s conftest.err; then |
---|
3162 | sed '10a\ |
---|
3163 | ... rest of stderr output deleted ... |
---|
3164 | 10q' conftest.err >conftest.er1 |
---|
3165 | cat conftest.er1 >&5 |
---|
3166 | fi |
---|
3167 | rm -f conftest.er1 conftest.err |
---|
3168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3169 | test $ac_status = 0; } |
---|
3170 | done |
---|
3171 | |
---|
3172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3173 | /* end confdefs.h. */ |
---|
3174 | |
---|
3175 | int |
---|
3176 | main () |
---|
3177 | { |
---|
3178 | |
---|
3179 | ; |
---|
3180 | return 0; |
---|
3181 | } |
---|
3182 | _ACEOF |
---|
3183 | ac_clean_files_save=$ac_clean_files |
---|
3184 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3185 | # Try to create an executable without -o first, disregard a.out. |
---|
3186 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3187 | # of exeext. |
---|
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
3189 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
3190 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3191 | |
---|
3192 | # The possible output files: |
---|
3193 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3194 | |
---|
3195 | ac_rmfiles= |
---|
3196 | for ac_file in $ac_files |
---|
3197 | do |
---|
3198 | case $ac_file in |
---|
3199 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3200 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3201 | esac |
---|
3202 | done |
---|
3203 | rm -f $ac_rmfiles |
---|
3204 | |
---|
3205 | if { { ac_try="$ac_link_default" |
---|
3206 | case "(($ac_try" in |
---|
3207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3208 | *) ac_try_echo=$ac_try;; |
---|
3209 | esac |
---|
3210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3211 | $as_echo "$ac_try_echo"; } >&5 |
---|
3212 | (eval "$ac_link_default") 2>&5 |
---|
3213 | ac_status=$? |
---|
3214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3215 | test $ac_status = 0; }; then : |
---|
3216 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3217 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3218 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3219 | # so that the user can short-circuit this test for compilers unknown to |
---|
3220 | # Autoconf. |
---|
3221 | for ac_file in $ac_files '' |
---|
3222 | do |
---|
3223 | test -f "$ac_file" || continue |
---|
3224 | case $ac_file in |
---|
3225 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3226 | ;; |
---|
3227 | [ab].out ) |
---|
3228 | # We found the default executable, but exeext='' is most |
---|
3229 | # certainly right. |
---|
3230 | break;; |
---|
3231 | *.* ) |
---|
3232 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3233 | then :; else |
---|
3234 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3235 | fi |
---|
3236 | # We set ac_cv_exeext here because the later test for it is not |
---|
3237 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3238 | # argument, so we may need to know it at that point already. |
---|
3239 | # Even if this section looks crufty: it has the advantage of |
---|
3240 | # actually working. |
---|
3241 | break;; |
---|
3242 | * ) |
---|
3243 | break;; |
---|
3244 | esac |
---|
3245 | done |
---|
3246 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3247 | |
---|
3248 | else |
---|
3249 | ac_file='' |
---|
3250 | fi |
---|
3251 | if test -z "$ac_file"; then : |
---|
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3253 | $as_echo "no" >&6; } |
---|
3254 | $as_echo "$as_me: failed program was:" >&5 |
---|
3255 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3256 | |
---|
3257 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3258 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3259 | as_fn_error 77 "C compiler cannot create executables |
---|
3260 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3261 | else |
---|
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3263 | $as_echo "yes" >&6; } |
---|
3264 | fi |
---|
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
3266 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3268 | $as_echo "$ac_file" >&6; } |
---|
3269 | ac_exeext=$ac_cv_exeext |
---|
3270 | |
---|
3271 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3272 | ac_clean_files=$ac_clean_files_save |
---|
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3274 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3275 | if { { ac_try="$ac_link" |
---|
3276 | case "(($ac_try" in |
---|
3277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3278 | *) ac_try_echo=$ac_try;; |
---|
3279 | esac |
---|
3280 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3281 | $as_echo "$ac_try_echo"; } >&5 |
---|
3282 | (eval "$ac_link") 2>&5 |
---|
3283 | ac_status=$? |
---|
3284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3285 | test $ac_status = 0; }; then : |
---|
3286 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3287 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3288 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3289 | # `rm'. |
---|
3290 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3291 | test -f "$ac_file" || continue |
---|
3292 | case $ac_file in |
---|
3293 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3294 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3295 | break;; |
---|
3296 | * ) break;; |
---|
3297 | esac |
---|
3298 | done |
---|
3299 | else |
---|
3300 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3301 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3302 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3303 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3304 | fi |
---|
3305 | rm -f conftest conftest$ac_cv_exeext |
---|
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3307 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3308 | |
---|
3309 | rm -f conftest.$ac_ext |
---|
3310 | EXEEXT=$ac_cv_exeext |
---|
3311 | ac_exeext=$EXEEXT |
---|
3312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3313 | /* end confdefs.h. */ |
---|
3314 | #include <stdio.h> |
---|
3315 | int |
---|
3316 | main () |
---|
3317 | { |
---|
3318 | FILE *f = fopen ("conftest.out", "w"); |
---|
3319 | return ferror (f) || fclose (f) != 0; |
---|
3320 | |
---|
3321 | ; |
---|
3322 | return 0; |
---|
3323 | } |
---|
3324 | _ACEOF |
---|
3325 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3326 | # Check that the compiler produces executables we can run. If not, either |
---|
3327 | # the compiler is broken, or we cross compile. |
---|
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3329 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3330 | if test "$cross_compiling" != yes; then |
---|
3331 | { { ac_try="$ac_link" |
---|
3332 | case "(($ac_try" in |
---|
3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3334 | *) ac_try_echo=$ac_try;; |
---|
3335 | esac |
---|
3336 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3337 | $as_echo "$ac_try_echo"; } >&5 |
---|
3338 | (eval "$ac_link") 2>&5 |
---|
3339 | ac_status=$? |
---|
3340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3341 | test $ac_status = 0; } |
---|
3342 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3343 | { { case "(($ac_try" in |
---|
3344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3345 | *) ac_try_echo=$ac_try;; |
---|
3346 | esac |
---|
3347 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3348 | $as_echo "$ac_try_echo"; } >&5 |
---|
3349 | (eval "$ac_try") 2>&5 |
---|
3350 | ac_status=$? |
---|
3351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3352 | test $ac_status = 0; }; }; then |
---|
3353 | cross_compiling=no |
---|
3354 | else |
---|
3355 | if test "$cross_compiling" = maybe; then |
---|
3356 | cross_compiling=yes |
---|
3357 | else |
---|
3358 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3360 | as_fn_error $? "cannot run C compiled programs. |
---|
3361 | If you meant to cross compile, use \`--host'. |
---|
3362 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3363 | fi |
---|
3364 | fi |
---|
3365 | fi |
---|
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3367 | $as_echo "$cross_compiling" >&6; } |
---|
3368 | |
---|
3369 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3370 | ac_clean_files=$ac_clean_files_save |
---|
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3372 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3373 | if ${ac_cv_objext+:} false; then : |
---|
3374 | $as_echo_n "(cached) " >&6 |
---|
3375 | else |
---|
3376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3377 | /* end confdefs.h. */ |
---|
3378 | |
---|
3379 | int |
---|
3380 | main () |
---|
3381 | { |
---|
3382 | |
---|
3383 | ; |
---|
3384 | return 0; |
---|
3385 | } |
---|
3386 | _ACEOF |
---|
3387 | rm -f conftest.o conftest.obj |
---|
3388 | if { { ac_try="$ac_compile" |
---|
3389 | case "(($ac_try" in |
---|
3390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3391 | *) ac_try_echo=$ac_try;; |
---|
3392 | esac |
---|
3393 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3394 | $as_echo "$ac_try_echo"; } >&5 |
---|
3395 | (eval "$ac_compile") 2>&5 |
---|
3396 | ac_status=$? |
---|
3397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3398 | test $ac_status = 0; }; then : |
---|
3399 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3400 | test -f "$ac_file" || continue; |
---|
3401 | case $ac_file in |
---|
3402 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3403 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3404 | break;; |
---|
3405 | esac |
---|
3406 | done |
---|
3407 | else |
---|
3408 | $as_echo "$as_me: failed program was:" >&5 |
---|
3409 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3410 | |
---|
3411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3413 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3414 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3415 | fi |
---|
3416 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3417 | fi |
---|
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3419 | $as_echo "$ac_cv_objext" >&6; } |
---|
3420 | OBJEXT=$ac_cv_objext |
---|
3421 | ac_objext=$OBJEXT |
---|
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3423 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3424 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3425 | $as_echo_n "(cached) " >&6 |
---|
3426 | else |
---|
3427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3428 | /* end confdefs.h. */ |
---|
3429 | |
---|
3430 | int |
---|
3431 | main () |
---|
3432 | { |
---|
3433 | #ifndef __GNUC__ |
---|
3434 | choke me |
---|
3435 | #endif |
---|
3436 | |
---|
3437 | ; |
---|
3438 | return 0; |
---|
3439 | } |
---|
3440 | _ACEOF |
---|
3441 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3442 | ac_compiler_gnu=yes |
---|
3443 | else |
---|
3444 | ac_compiler_gnu=no |
---|
3445 | fi |
---|
3446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3447 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3448 | |
---|
3449 | fi |
---|
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3451 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3452 | if test $ac_compiler_gnu = yes; then |
---|
3453 | GCC=yes |
---|
3454 | else |
---|
3455 | GCC= |
---|
3456 | fi |
---|
3457 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3458 | ac_save_CFLAGS=$CFLAGS |
---|
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3460 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3461 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3462 | $as_echo_n "(cached) " >&6 |
---|
3463 | else |
---|
3464 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3465 | ac_c_werror_flag=yes |
---|
3466 | ac_cv_prog_cc_g=no |
---|
3467 | CFLAGS="-g" |
---|
3468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3469 | /* end confdefs.h. */ |
---|
3470 | |
---|
3471 | int |
---|
3472 | main () |
---|
3473 | { |
---|
3474 | |
---|
3475 | ; |
---|
3476 | return 0; |
---|
3477 | } |
---|
3478 | _ACEOF |
---|
3479 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3480 | ac_cv_prog_cc_g=yes |
---|
3481 | else |
---|
3482 | CFLAGS="" |
---|
3483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3484 | /* end confdefs.h. */ |
---|
3485 | |
---|
3486 | int |
---|
3487 | main () |
---|
3488 | { |
---|
3489 | |
---|
3490 | ; |
---|
3491 | return 0; |
---|
3492 | } |
---|
3493 | _ACEOF |
---|
3494 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3495 | |
---|
3496 | else |
---|
3497 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3498 | CFLAGS="-g" |
---|
3499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3500 | /* end confdefs.h. */ |
---|
3501 | |
---|
3502 | int |
---|
3503 | main () |
---|
3504 | { |
---|
3505 | |
---|
3506 | ; |
---|
3507 | return 0; |
---|
3508 | } |
---|
3509 | _ACEOF |
---|
3510 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3511 | ac_cv_prog_cc_g=yes |
---|
3512 | fi |
---|
3513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3514 | fi |
---|
3515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3516 | fi |
---|
3517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3518 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3519 | fi |
---|
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3521 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3522 | if test "$ac_test_CFLAGS" = set; then |
---|
3523 | CFLAGS=$ac_save_CFLAGS |
---|
3524 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3525 | if test "$GCC" = yes; then |
---|
3526 | CFLAGS="-g -O2" |
---|
3527 | else |
---|
3528 | CFLAGS="-g" |
---|
3529 | fi |
---|
3530 | else |
---|
3531 | if test "$GCC" = yes; then |
---|
3532 | CFLAGS="-O2" |
---|
3533 | else |
---|
3534 | CFLAGS= |
---|
3535 | fi |
---|
3536 | fi |
---|
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3538 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3539 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3540 | $as_echo_n "(cached) " >&6 |
---|
3541 | else |
---|
3542 | ac_cv_prog_cc_c89=no |
---|
3543 | ac_save_CC=$CC |
---|
3544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3545 | /* end confdefs.h. */ |
---|
3546 | #include <stdarg.h> |
---|
3547 | #include <stdio.h> |
---|
3548 | struct stat; |
---|
3549 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3550 | struct buf { int x; }; |
---|
3551 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3552 | static char *e (p, i) |
---|
3553 | char **p; |
---|
3554 | int i; |
---|
3555 | { |
---|
3556 | return p[i]; |
---|
3557 | } |
---|
3558 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3559 | { |
---|
3560 | char *s; |
---|
3561 | va_list v; |
---|
3562 | va_start (v,p); |
---|
3563 | s = g (p, va_arg (v,int)); |
---|
3564 | va_end (v); |
---|
3565 | return s; |
---|
3566 | } |
---|
3567 | |
---|
3568 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3569 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3570 | These don't provoke an error unfortunately, instead are silently treated |
---|
3571 | as 'x'. The following induces an error, until -std is added to get |
---|
3572 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3573 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3574 | that's true only with -std. */ |
---|
3575 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3576 | |
---|
3577 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3578 | inside strings and character constants. */ |
---|
3579 | #define FOO(x) 'x' |
---|
3580 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3581 | |
---|
3582 | int test (int i, double x); |
---|
3583 | struct s1 {int (*f) (int a);}; |
---|
3584 | struct s2 {int (*f) (double a);}; |
---|
3585 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3586 | int argc; |
---|
3587 | char **argv; |
---|
3588 | int |
---|
3589 | main () |
---|
3590 | { |
---|
3591 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3592 | ; |
---|
3593 | return 0; |
---|
3594 | } |
---|
3595 | _ACEOF |
---|
3596 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3597 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3598 | do |
---|
3599 | CC="$ac_save_CC $ac_arg" |
---|
3600 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3601 | ac_cv_prog_cc_c89=$ac_arg |
---|
3602 | fi |
---|
3603 | rm -f core conftest.err conftest.$ac_objext |
---|
3604 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3605 | done |
---|
3606 | rm -f conftest.$ac_ext |
---|
3607 | CC=$ac_save_CC |
---|
3608 | |
---|
3609 | fi |
---|
3610 | # AC_CACHE_VAL |
---|
3611 | case "x$ac_cv_prog_cc_c89" in |
---|
3612 | x) |
---|
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3614 | $as_echo "none needed" >&6; } ;; |
---|
3615 | xno) |
---|
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3617 | $as_echo "unsupported" >&6; } ;; |
---|
3618 | *) |
---|
3619 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3621 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3622 | esac |
---|
3623 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3624 | |
---|
3625 | fi |
---|
3626 | |
---|
3627 | ac_ext=c |
---|
3628 | ac_cpp='$CPP $CPPFLAGS' |
---|
3629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3632 | |
---|
3633 | ac_ext=cpp |
---|
3634 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3635 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3636 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3637 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3638 | if test -z "$CXX"; then |
---|
3639 | if test -n "$CCC"; then |
---|
3640 | CXX=$CCC |
---|
3641 | else |
---|
3642 | if test -n "$ac_tool_prefix"; then |
---|
3643 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3644 | do |
---|
3645 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3646 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3648 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3649 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3650 | $as_echo_n "(cached) " >&6 |
---|
3651 | else |
---|
3652 | if test -n "$CXX"; then |
---|
3653 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3654 | else |
---|
3655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3656 | for as_dir in $PATH |
---|
3657 | do |
---|
3658 | IFS=$as_save_IFS |
---|
3659 | test -z "$as_dir" && as_dir=. |
---|
3660 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3662 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3664 | break 2 |
---|
3665 | fi |
---|
3666 | done |
---|
3667 | done |
---|
3668 | IFS=$as_save_IFS |
---|
3669 | |
---|
3670 | fi |
---|
3671 | fi |
---|
3672 | CXX=$ac_cv_prog_CXX |
---|
3673 | if test -n "$CXX"; then |
---|
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3675 | $as_echo "$CXX" >&6; } |
---|
3676 | else |
---|
3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3678 | $as_echo "no" >&6; } |
---|
3679 | fi |
---|
3680 | |
---|
3681 | |
---|
3682 | test -n "$CXX" && break |
---|
3683 | done |
---|
3684 | fi |
---|
3685 | if test -z "$CXX"; then |
---|
3686 | ac_ct_CXX=$CXX |
---|
3687 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3688 | do |
---|
3689 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3690 | set dummy $ac_prog; ac_word=$2 |
---|
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3692 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3693 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3694 | $as_echo_n "(cached) " >&6 |
---|
3695 | else |
---|
3696 | if test -n "$ac_ct_CXX"; then |
---|
3697 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3698 | else |
---|
3699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3700 | for as_dir in $PATH |
---|
3701 | do |
---|
3702 | IFS=$as_save_IFS |
---|
3703 | test -z "$as_dir" && as_dir=. |
---|
3704 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3705 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3706 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3708 | break 2 |
---|
3709 | fi |
---|
3710 | done |
---|
3711 | done |
---|
3712 | IFS=$as_save_IFS |
---|
3713 | |
---|
3714 | fi |
---|
3715 | fi |
---|
3716 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3717 | if test -n "$ac_ct_CXX"; then |
---|
3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3719 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3720 | else |
---|
3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3722 | $as_echo "no" >&6; } |
---|
3723 | fi |
---|
3724 | |
---|
3725 | |
---|
3726 | test -n "$ac_ct_CXX" && break |
---|
3727 | done |
---|
3728 | |
---|
3729 | if test "x$ac_ct_CXX" = x; then |
---|
3730 | CXX="g++" |
---|
3731 | else |
---|
3732 | case $cross_compiling:$ac_tool_warned in |
---|
3733 | yes:) |
---|
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3735 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3736 | ac_tool_warned=yes ;; |
---|
3737 | esac |
---|
3738 | CXX=$ac_ct_CXX |
---|
3739 | fi |
---|
3740 | fi |
---|
3741 | |
---|
3742 | fi |
---|
3743 | fi |
---|
3744 | # Provide some information about the compiler. |
---|
3745 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3746 | set X $ac_compile |
---|
3747 | ac_compiler=$2 |
---|
3748 | for ac_option in --version -v -V -qversion; do |
---|
3749 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3750 | case "(($ac_try" in |
---|
3751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3752 | *) ac_try_echo=$ac_try;; |
---|
3753 | esac |
---|
3754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3755 | $as_echo "$ac_try_echo"; } >&5 |
---|
3756 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3757 | ac_status=$? |
---|
3758 | if test -s conftest.err; then |
---|
3759 | sed '10a\ |
---|
3760 | ... rest of stderr output deleted ... |
---|
3761 | 10q' conftest.err >conftest.er1 |
---|
3762 | cat conftest.er1 >&5 |
---|
3763 | fi |
---|
3764 | rm -f conftest.er1 conftest.err |
---|
3765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3766 | test $ac_status = 0; } |
---|
3767 | done |
---|
3768 | |
---|
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3770 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3771 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3772 | $as_echo_n "(cached) " >&6 |
---|
3773 | else |
---|
3774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3775 | /* end confdefs.h. */ |
---|
3776 | |
---|
3777 | int |
---|
3778 | main () |
---|
3779 | { |
---|
3780 | #ifndef __GNUC__ |
---|
3781 | choke me |
---|
3782 | #endif |
---|
3783 | |
---|
3784 | ; |
---|
3785 | return 0; |
---|
3786 | } |
---|
3787 | _ACEOF |
---|
3788 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3789 | ac_compiler_gnu=yes |
---|
3790 | else |
---|
3791 | ac_compiler_gnu=no |
---|
3792 | fi |
---|
3793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3794 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3795 | |
---|
3796 | fi |
---|
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3798 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3799 | if test $ac_compiler_gnu = yes; then |
---|
3800 | GXX=yes |
---|
3801 | else |
---|
3802 | GXX= |
---|
3803 | fi |
---|
3804 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3805 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3807 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3808 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3809 | $as_echo_n "(cached) " >&6 |
---|
3810 | else |
---|
3811 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3812 | ac_cxx_werror_flag=yes |
---|
3813 | ac_cv_prog_cxx_g=no |
---|
3814 | CXXFLAGS="-g" |
---|
3815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3816 | /* end confdefs.h. */ |
---|
3817 | |
---|
3818 | int |
---|
3819 | main () |
---|
3820 | { |
---|
3821 | |
---|
3822 | ; |
---|
3823 | return 0; |
---|
3824 | } |
---|
3825 | _ACEOF |
---|
3826 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3827 | ac_cv_prog_cxx_g=yes |
---|
3828 | else |
---|
3829 | CXXFLAGS="" |
---|
3830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3831 | /* end confdefs.h. */ |
---|
3832 | |
---|
3833 | int |
---|
3834 | main () |
---|
3835 | { |
---|
3836 | |
---|
3837 | ; |
---|
3838 | return 0; |
---|
3839 | } |
---|
3840 | _ACEOF |
---|
3841 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3842 | |
---|
3843 | else |
---|
3844 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3845 | CXXFLAGS="-g" |
---|
3846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3847 | /* end confdefs.h. */ |
---|
3848 | |
---|
3849 | int |
---|
3850 | main () |
---|
3851 | { |
---|
3852 | |
---|
3853 | ; |
---|
3854 | return 0; |
---|
3855 | } |
---|
3856 | _ACEOF |
---|
3857 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3858 | ac_cv_prog_cxx_g=yes |
---|
3859 | fi |
---|
3860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3861 | fi |
---|
3862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3863 | fi |
---|
3864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3865 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3866 | fi |
---|
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3868 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3869 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3870 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3871 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3872 | if test "$GXX" = yes; then |
---|
3873 | CXXFLAGS="-g -O2" |
---|
3874 | else |
---|
3875 | CXXFLAGS="-g" |
---|
3876 | fi |
---|
3877 | else |
---|
3878 | if test "$GXX" = yes; then |
---|
3879 | CXXFLAGS="-O2" |
---|
3880 | else |
---|
3881 | CXXFLAGS= |
---|
3882 | fi |
---|
3883 | fi |
---|
3884 | ac_ext=c |
---|
3885 | ac_cpp='$CPP $CPPFLAGS' |
---|
3886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3889 | |
---|
3890 | # Avoid g95 |
---|
3891 | ac_ext=f |
---|
3892 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3893 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3894 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3895 | if test -n "$ac_tool_prefix"; then |
---|
3896 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
3897 | do |
---|
3898 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3899 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3901 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3902 | if ${ac_cv_prog_F77+:} false; then : |
---|
3903 | $as_echo_n "(cached) " >&6 |
---|
3904 | else |
---|
3905 | if test -n "$F77"; then |
---|
3906 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3907 | else |
---|
3908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3909 | for as_dir in $PATH |
---|
3910 | do |
---|
3911 | IFS=$as_save_IFS |
---|
3912 | test -z "$as_dir" && as_dir=. |
---|
3913 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3915 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3917 | break 2 |
---|
3918 | fi |
---|
3919 | done |
---|
3920 | done |
---|
3921 | IFS=$as_save_IFS |
---|
3922 | |
---|
3923 | fi |
---|
3924 | fi |
---|
3925 | F77=$ac_cv_prog_F77 |
---|
3926 | if test -n "$F77"; then |
---|
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 |
---|
3928 | $as_echo "$F77" >&6; } |
---|
3929 | else |
---|
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3931 | $as_echo "no" >&6; } |
---|
3932 | fi |
---|
3933 | |
---|
3934 | |
---|
3935 | test -n "$F77" && break |
---|
3936 | done |
---|
3937 | fi |
---|
3938 | if test -z "$F77"; then |
---|
3939 | ac_ct_F77=$F77 |
---|
3940 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
3941 | do |
---|
3942 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3943 | set dummy $ac_prog; ac_word=$2 |
---|
3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3945 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3946 | if ${ac_cv_prog_ac_ct_F77+:} false; then : |
---|
3947 | $as_echo_n "(cached) " >&6 |
---|
3948 | else |
---|
3949 | if test -n "$ac_ct_F77"; then |
---|
3950 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3951 | else |
---|
3952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3953 | for as_dir in $PATH |
---|
3954 | do |
---|
3955 | IFS=$as_save_IFS |
---|
3956 | test -z "$as_dir" && as_dir=. |
---|
3957 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3959 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3961 | break 2 |
---|
3962 | fi |
---|
3963 | done |
---|
3964 | done |
---|
3965 | IFS=$as_save_IFS |
---|
3966 | |
---|
3967 | fi |
---|
3968 | fi |
---|
3969 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3970 | if test -n "$ac_ct_F77"; then |
---|
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 |
---|
3972 | $as_echo "$ac_ct_F77" >&6; } |
---|
3973 | else |
---|
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3975 | $as_echo "no" >&6; } |
---|
3976 | fi |
---|
3977 | |
---|
3978 | |
---|
3979 | test -n "$ac_ct_F77" && break |
---|
3980 | done |
---|
3981 | |
---|
3982 | if test "x$ac_ct_F77" = x; then |
---|
3983 | F77="" |
---|
3984 | else |
---|
3985 | case $cross_compiling:$ac_tool_warned in |
---|
3986 | yes:) |
---|
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3988 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3989 | ac_tool_warned=yes ;; |
---|
3990 | esac |
---|
3991 | F77=$ac_ct_F77 |
---|
3992 | fi |
---|
3993 | fi |
---|
3994 | |
---|
3995 | |
---|
3996 | # Provide some information about the compiler. |
---|
3997 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 |
---|
3998 | set X $ac_compile |
---|
3999 | ac_compiler=$2 |
---|
4000 | for ac_option in --version -v -V -qversion; do |
---|
4001 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4002 | case "(($ac_try" in |
---|
4003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4004 | *) ac_try_echo=$ac_try;; |
---|
4005 | esac |
---|
4006 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4007 | $as_echo "$ac_try_echo"; } >&5 |
---|
4008 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4009 | ac_status=$? |
---|
4010 | if test -s conftest.err; then |
---|
4011 | sed '10a\ |
---|
4012 | ... rest of stderr output deleted ... |
---|
4013 | 10q' conftest.err >conftest.er1 |
---|
4014 | cat conftest.er1 >&5 |
---|
4015 | fi |
---|
4016 | rm -f conftest.er1 conftest.err |
---|
4017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4018 | test $ac_status = 0; } |
---|
4019 | done |
---|
4020 | rm -f a.out |
---|
4021 | |
---|
4022 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
4023 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
4024 | ac_save_ext=$ac_ext |
---|
4025 | ac_ext=F |
---|
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
4027 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } |
---|
4028 | if ${ac_cv_f77_compiler_gnu+:} false; then : |
---|
4029 | $as_echo_n "(cached) " >&6 |
---|
4030 | else |
---|
4031 | cat > conftest.$ac_ext <<_ACEOF |
---|
4032 | program main |
---|
4033 | #ifndef __GNUC__ |
---|
4034 | choke me |
---|
4035 | #endif |
---|
4036 | |
---|
4037 | end |
---|
4038 | _ACEOF |
---|
4039 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4040 | ac_compiler_gnu=yes |
---|
4041 | else |
---|
4042 | ac_compiler_gnu=no |
---|
4043 | fi |
---|
4044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4045 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
4046 | |
---|
4047 | fi |
---|
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
4049 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } |
---|
4050 | ac_ext=$ac_save_ext |
---|
4051 | ac_test_FFLAGS=${FFLAGS+set} |
---|
4052 | ac_save_FFLAGS=$FFLAGS |
---|
4053 | FFLAGS= |
---|
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 |
---|
4055 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } |
---|
4056 | if ${ac_cv_prog_f77_g+:} false; then : |
---|
4057 | $as_echo_n "(cached) " >&6 |
---|
4058 | else |
---|
4059 | FFLAGS=-g |
---|
4060 | cat > conftest.$ac_ext <<_ACEOF |
---|
4061 | program main |
---|
4062 | |
---|
4063 | end |
---|
4064 | _ACEOF |
---|
4065 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4066 | ac_cv_prog_f77_g=yes |
---|
4067 | else |
---|
4068 | ac_cv_prog_f77_g=no |
---|
4069 | fi |
---|
4070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4071 | |
---|
4072 | fi |
---|
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 |
---|
4074 | $as_echo "$ac_cv_prog_f77_g" >&6; } |
---|
4075 | if test "$ac_test_FFLAGS" = set; then |
---|
4076 | FFLAGS=$ac_save_FFLAGS |
---|
4077 | elif test $ac_cv_prog_f77_g = yes; then |
---|
4078 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4079 | FFLAGS="-g -O2" |
---|
4080 | else |
---|
4081 | FFLAGS="-g" |
---|
4082 | fi |
---|
4083 | else |
---|
4084 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4085 | FFLAGS="-O2" |
---|
4086 | else |
---|
4087 | FFLAGS= |
---|
4088 | fi |
---|
4089 | fi |
---|
4090 | |
---|
4091 | if test $ac_compiler_gnu = yes; then |
---|
4092 | G77=yes |
---|
4093 | else |
---|
4094 | G77= |
---|
4095 | fi |
---|
4096 | ac_ext=c |
---|
4097 | ac_cpp='$CPP $CPPFLAGS' |
---|
4098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4101 | |
---|
4102 | |
---|
4103 | ac_ext=c |
---|
4104 | ac_cpp='$CPP $CPPFLAGS' |
---|
4105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4108 | |
---|
4109 | |
---|
4110 | |
---|
4111 | ac_ext=c |
---|
4112 | ac_cpp='$CPP $CPPFLAGS' |
---|
4113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4117 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4118 | # On Suns, sometimes $CPP names a directory. |
---|
4119 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4120 | CPP= |
---|
4121 | fi |
---|
4122 | if test -z "$CPP"; then |
---|
4123 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4124 | $as_echo_n "(cached) " >&6 |
---|
4125 | else |
---|
4126 | # Double quotes because CPP needs to be expanded |
---|
4127 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4128 | do |
---|
4129 | ac_preproc_ok=false |
---|
4130 | for ac_c_preproc_warn_flag in '' yes |
---|
4131 | do |
---|
4132 | # Use a header file that comes with gcc, so configuring glibc |
---|
4133 | # with a fresh cross-compiler works. |
---|
4134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4135 | # <limits.h> exists even on freestanding compilers. |
---|
4136 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4137 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4139 | /* end confdefs.h. */ |
---|
4140 | #ifdef __STDC__ |
---|
4141 | # include <limits.h> |
---|
4142 | #else |
---|
4143 | # include <assert.h> |
---|
4144 | #endif |
---|
4145 | Syntax error |
---|
4146 | _ACEOF |
---|
4147 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4148 | |
---|
4149 | else |
---|
4150 | # Broken: fails on valid input. |
---|
4151 | continue |
---|
4152 | fi |
---|
4153 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4154 | |
---|
4155 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4156 | # can be detected and how. |
---|
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4158 | /* end confdefs.h. */ |
---|
4159 | #include <ac_nonexistent.h> |
---|
4160 | _ACEOF |
---|
4161 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4162 | # Broken: success on invalid input. |
---|
4163 | continue |
---|
4164 | else |
---|
4165 | # Passes both tests. |
---|
4166 | ac_preproc_ok=: |
---|
4167 | break |
---|
4168 | fi |
---|
4169 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4170 | |
---|
4171 | done |
---|
4172 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4173 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4174 | if $ac_preproc_ok; then : |
---|
4175 | break |
---|
4176 | fi |
---|
4177 | |
---|
4178 | done |
---|
4179 | ac_cv_prog_CPP=$CPP |
---|
4180 | |
---|
4181 | fi |
---|
4182 | CPP=$ac_cv_prog_CPP |
---|
4183 | else |
---|
4184 | ac_cv_prog_CPP=$CPP |
---|
4185 | fi |
---|
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4187 | $as_echo "$CPP" >&6; } |
---|
4188 | ac_preproc_ok=false |
---|
4189 | for ac_c_preproc_warn_flag in '' yes |
---|
4190 | do |
---|
4191 | # Use a header file that comes with gcc, so configuring glibc |
---|
4192 | # with a fresh cross-compiler works. |
---|
4193 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4194 | # <limits.h> exists even on freestanding compilers. |
---|
4195 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4196 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4198 | /* end confdefs.h. */ |
---|
4199 | #ifdef __STDC__ |
---|
4200 | # include <limits.h> |
---|
4201 | #else |
---|
4202 | # include <assert.h> |
---|
4203 | #endif |
---|
4204 | Syntax error |
---|
4205 | _ACEOF |
---|
4206 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4207 | |
---|
4208 | else |
---|
4209 | # Broken: fails on valid input. |
---|
4210 | continue |
---|
4211 | fi |
---|
4212 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4213 | |
---|
4214 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4215 | # can be detected and how. |
---|
4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4217 | /* end confdefs.h. */ |
---|
4218 | #include <ac_nonexistent.h> |
---|
4219 | _ACEOF |
---|
4220 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4221 | # Broken: success on invalid input. |
---|
4222 | continue |
---|
4223 | else |
---|
4224 | # Passes both tests. |
---|
4225 | ac_preproc_ok=: |
---|
4226 | break |
---|
4227 | fi |
---|
4228 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4229 | |
---|
4230 | done |
---|
4231 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4232 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4233 | if $ac_preproc_ok; then : |
---|
4234 | |
---|
4235 | else |
---|
4236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4238 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4239 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4240 | fi |
---|
4241 | |
---|
4242 | ac_ext=c |
---|
4243 | ac_cpp='$CPP $CPPFLAGS' |
---|
4244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4247 | |
---|
4248 | |
---|
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4250 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4251 | if ${ac_cv_path_GREP+:} false; then : |
---|
4252 | $as_echo_n "(cached) " >&6 |
---|
4253 | else |
---|
4254 | if test -z "$GREP"; then |
---|
4255 | ac_path_GREP_found=false |
---|
4256 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4258 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4259 | do |
---|
4260 | IFS=$as_save_IFS |
---|
4261 | test -z "$as_dir" && as_dir=. |
---|
4262 | for ac_prog in grep ggrep; do |
---|
4263 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4264 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4265 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
4266 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4267 | # Check for GNU $ac_path_GREP |
---|
4268 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4269 | *GNU*) |
---|
4270 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4271 | *) |
---|
4272 | ac_count=0 |
---|
4273 | $as_echo_n 0123456789 >"conftest.in" |
---|
4274 | while : |
---|
4275 | do |
---|
4276 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4277 | mv "conftest.tmp" "conftest.in" |
---|
4278 | cp "conftest.in" "conftest.nl" |
---|
4279 | $as_echo 'GREP' >> "conftest.nl" |
---|
4280 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4281 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4282 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4283 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4284 | # Best one so far, save it but keep looking for a better one |
---|
4285 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4286 | ac_path_GREP_max=$ac_count |
---|
4287 | fi |
---|
4288 | # 10*(2^10) chars as input seems more than enough |
---|
4289 | test $ac_count -gt 10 && break |
---|
4290 | done |
---|
4291 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4292 | esac |
---|
4293 | |
---|
4294 | $ac_path_GREP_found && break 3 |
---|
4295 | done |
---|
4296 | done |
---|
4297 | done |
---|
4298 | IFS=$as_save_IFS |
---|
4299 | if test -z "$ac_cv_path_GREP"; then |
---|
4300 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4301 | fi |
---|
4302 | else |
---|
4303 | ac_cv_path_GREP=$GREP |
---|
4304 | fi |
---|
4305 | |
---|
4306 | fi |
---|
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4308 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4309 | GREP="$ac_cv_path_GREP" |
---|
4310 | |
---|
4311 | |
---|
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4313 | $as_echo_n "checking for egrep... " >&6; } |
---|
4314 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4315 | $as_echo_n "(cached) " >&6 |
---|
4316 | else |
---|
4317 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4318 | then ac_cv_path_EGREP="$GREP -E" |
---|
4319 | else |
---|
4320 | if test -z "$EGREP"; then |
---|
4321 | ac_path_EGREP_found=false |
---|
4322 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4324 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4325 | do |
---|
4326 | IFS=$as_save_IFS |
---|
4327 | test -z "$as_dir" && as_dir=. |
---|
4328 | for ac_prog in egrep; do |
---|
4329 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4330 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4331 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
4332 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4333 | # Check for GNU $ac_path_EGREP |
---|
4334 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4335 | *GNU*) |
---|
4336 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4337 | *) |
---|
4338 | ac_count=0 |
---|
4339 | $as_echo_n 0123456789 >"conftest.in" |
---|
4340 | while : |
---|
4341 | do |
---|
4342 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4343 | mv "conftest.tmp" "conftest.in" |
---|
4344 | cp "conftest.in" "conftest.nl" |
---|
4345 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4346 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4347 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4348 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4349 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4350 | # Best one so far, save it but keep looking for a better one |
---|
4351 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4352 | ac_path_EGREP_max=$ac_count |
---|
4353 | fi |
---|
4354 | # 10*(2^10) chars as input seems more than enough |
---|
4355 | test $ac_count -gt 10 && break |
---|
4356 | done |
---|
4357 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4358 | esac |
---|
4359 | |
---|
4360 | $ac_path_EGREP_found && break 3 |
---|
4361 | done |
---|
4362 | done |
---|
4363 | done |
---|
4364 | IFS=$as_save_IFS |
---|
4365 | if test -z "$ac_cv_path_EGREP"; then |
---|
4366 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4367 | fi |
---|
4368 | else |
---|
4369 | ac_cv_path_EGREP=$EGREP |
---|
4370 | fi |
---|
4371 | |
---|
4372 | fi |
---|
4373 | fi |
---|
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4375 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4376 | EGREP="$ac_cv_path_EGREP" |
---|
4377 | |
---|
4378 | |
---|
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4380 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4381 | if ${ac_cv_header_stdc+:} false; then : |
---|
4382 | $as_echo_n "(cached) " >&6 |
---|
4383 | else |
---|
4384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4385 | /* end confdefs.h. */ |
---|
4386 | #include <stdlib.h> |
---|
4387 | #include <stdarg.h> |
---|
4388 | #include <string.h> |
---|
4389 | #include <float.h> |
---|
4390 | |
---|
4391 | int |
---|
4392 | main () |
---|
4393 | { |
---|
4394 | |
---|
4395 | ; |
---|
4396 | return 0; |
---|
4397 | } |
---|
4398 | _ACEOF |
---|
4399 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4400 | ac_cv_header_stdc=yes |
---|
4401 | else |
---|
4402 | ac_cv_header_stdc=no |
---|
4403 | fi |
---|
4404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4405 | |
---|
4406 | if test $ac_cv_header_stdc = yes; then |
---|
4407 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4409 | /* end confdefs.h. */ |
---|
4410 | #include <string.h> |
---|
4411 | |
---|
4412 | _ACEOF |
---|
4413 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4414 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4415 | |
---|
4416 | else |
---|
4417 | ac_cv_header_stdc=no |
---|
4418 | fi |
---|
4419 | rm -f conftest* |
---|
4420 | |
---|
4421 | fi |
---|
4422 | |
---|
4423 | if test $ac_cv_header_stdc = yes; then |
---|
4424 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4426 | /* end confdefs.h. */ |
---|
4427 | #include <stdlib.h> |
---|
4428 | |
---|
4429 | _ACEOF |
---|
4430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4431 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4432 | |
---|
4433 | else |
---|
4434 | ac_cv_header_stdc=no |
---|
4435 | fi |
---|
4436 | rm -f conftest* |
---|
4437 | |
---|
4438 | fi |
---|
4439 | |
---|
4440 | if test $ac_cv_header_stdc = yes; then |
---|
4441 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4442 | if test "$cross_compiling" = yes; then : |
---|
4443 | : |
---|
4444 | else |
---|
4445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4446 | /* end confdefs.h. */ |
---|
4447 | #include <ctype.h> |
---|
4448 | #include <stdlib.h> |
---|
4449 | #if ((' ' & 0x0FF) == 0x020) |
---|
4450 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4451 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4452 | #else |
---|
4453 | # define ISLOWER(c) \ |
---|
4454 | (('a' <= (c) && (c) <= 'i') \ |
---|
4455 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4456 | || ('s' <= (c) && (c) <= 'z')) |
---|
4457 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4458 | #endif |
---|
4459 | |
---|
4460 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4461 | int |
---|
4462 | main () |
---|
4463 | { |
---|
4464 | int i; |
---|
4465 | for (i = 0; i < 256; i++) |
---|
4466 | if (XOR (islower (i), ISLOWER (i)) |
---|
4467 | || toupper (i) != TOUPPER (i)) |
---|
4468 | return 2; |
---|
4469 | return 0; |
---|
4470 | } |
---|
4471 | _ACEOF |
---|
4472 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4473 | |
---|
4474 | else |
---|
4475 | ac_cv_header_stdc=no |
---|
4476 | fi |
---|
4477 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4478 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4479 | fi |
---|
4480 | |
---|
4481 | fi |
---|
4482 | fi |
---|
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4484 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4485 | if test $ac_cv_header_stdc = yes; then |
---|
4486 | |
---|
4487 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4488 | |
---|
4489 | fi |
---|
4490 | |
---|
4491 | |
---|
4492 | ac_ext=cpp |
---|
4493 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4494 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4495 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4496 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4497 | |
---|
4498 | |
---|
4499 | ac_ext=cpp |
---|
4500 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4501 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4502 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4503 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
4505 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
4506 | if test -z "$CXXCPP"; then |
---|
4507 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
4508 | $as_echo_n "(cached) " >&6 |
---|
4509 | else |
---|
4510 | # Double quotes because CXXCPP needs to be expanded |
---|
4511 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
4512 | do |
---|
4513 | ac_preproc_ok=false |
---|
4514 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4515 | do |
---|
4516 | # Use a header file that comes with gcc, so configuring glibc |
---|
4517 | # with a fresh cross-compiler works. |
---|
4518 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4519 | # <limits.h> exists even on freestanding compilers. |
---|
4520 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4521 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4523 | /* end confdefs.h. */ |
---|
4524 | #ifdef __STDC__ |
---|
4525 | # include <limits.h> |
---|
4526 | #else |
---|
4527 | # include <assert.h> |
---|
4528 | #endif |
---|
4529 | Syntax error |
---|
4530 | _ACEOF |
---|
4531 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4532 | |
---|
4533 | else |
---|
4534 | # Broken: fails on valid input. |
---|
4535 | continue |
---|
4536 | fi |
---|
4537 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4538 | |
---|
4539 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4540 | # can be detected and how. |
---|
4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4542 | /* end confdefs.h. */ |
---|
4543 | #include <ac_nonexistent.h> |
---|
4544 | _ACEOF |
---|
4545 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4546 | # Broken: success on invalid input. |
---|
4547 | continue |
---|
4548 | else |
---|
4549 | # Passes both tests. |
---|
4550 | ac_preproc_ok=: |
---|
4551 | break |
---|
4552 | fi |
---|
4553 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4554 | |
---|
4555 | done |
---|
4556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4557 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4558 | if $ac_preproc_ok; then : |
---|
4559 | break |
---|
4560 | fi |
---|
4561 | |
---|
4562 | done |
---|
4563 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4564 | |
---|
4565 | fi |
---|
4566 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
4567 | else |
---|
4568 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4569 | fi |
---|
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
4571 | $as_echo "$CXXCPP" >&6; } |
---|
4572 | ac_preproc_ok=false |
---|
4573 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4574 | do |
---|
4575 | # Use a header file that comes with gcc, so configuring glibc |
---|
4576 | # with a fresh cross-compiler works. |
---|
4577 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4578 | # <limits.h> exists even on freestanding compilers. |
---|
4579 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4580 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4582 | /* end confdefs.h. */ |
---|
4583 | #ifdef __STDC__ |
---|
4584 | # include <limits.h> |
---|
4585 | #else |
---|
4586 | # include <assert.h> |
---|
4587 | #endif |
---|
4588 | Syntax error |
---|
4589 | _ACEOF |
---|
4590 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4591 | |
---|
4592 | else |
---|
4593 | # Broken: fails on valid input. |
---|
4594 | continue |
---|
4595 | fi |
---|
4596 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4597 | |
---|
4598 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4599 | # can be detected and how. |
---|
4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4601 | /* end confdefs.h. */ |
---|
4602 | #include <ac_nonexistent.h> |
---|
4603 | _ACEOF |
---|
4604 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4605 | # Broken: success on invalid input. |
---|
4606 | continue |
---|
4607 | else |
---|
4608 | # Passes both tests. |
---|
4609 | ac_preproc_ok=: |
---|
4610 | break |
---|
4611 | fi |
---|
4612 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4613 | |
---|
4614 | done |
---|
4615 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4616 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4617 | if $ac_preproc_ok; then : |
---|
4618 | |
---|
4619 | else |
---|
4620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4622 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
4623 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4624 | fi |
---|
4625 | |
---|
4626 | ac_ext=cpp |
---|
4627 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4631 | |
---|
4632 | |
---|
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
4634 | $as_echo_n "checking for X... " >&6; } |
---|
4635 | |
---|
4636 | |
---|
4637 | # Check whether --with-x was given. |
---|
4638 | if test "${with_x+set}" = set; then : |
---|
4639 | withval=$with_x; |
---|
4640 | fi |
---|
4641 | |
---|
4642 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
4643 | if test "x$with_x" = xno; then |
---|
4644 | # The user explicitly disabled X. |
---|
4645 | have_x=disabled |
---|
4646 | else |
---|
4647 | case $x_includes,$x_libraries in #( |
---|
4648 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
4649 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
4650 | $as_echo_n "(cached) " >&6 |
---|
4651 | else |
---|
4652 | # One or both of the vars are not set, and there is no cached value. |
---|
4653 | ac_x_includes=no ac_x_libraries=no |
---|
4654 | rm -f -r conftest.dir |
---|
4655 | if mkdir conftest.dir; then |
---|
4656 | cd conftest.dir |
---|
4657 | cat >Imakefile <<'_ACEOF' |
---|
4658 | incroot: |
---|
4659 | @echo incroot='${INCROOT}' |
---|
4660 | usrlibdir: |
---|
4661 | @echo usrlibdir='${USRLIBDIR}' |
---|
4662 | libdir: |
---|
4663 | @echo libdir='${LIBDIR}' |
---|
4664 | _ACEOF |
---|
4665 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
4666 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4667 | for ac_var in incroot usrlibdir libdir; do |
---|
4668 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
4669 | done |
---|
4670 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
4671 | for ac_extension in a so sl dylib la dll; do |
---|
4672 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
4673 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
4674 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
4675 | fi |
---|
4676 | done |
---|
4677 | # Screen out bogus values from the imake configuration. They are |
---|
4678 | # bogus both because they are the default anyway, and because |
---|
4679 | # using them would break gcc on systems where it needs fixed includes. |
---|
4680 | case $ac_im_incroot in |
---|
4681 | /usr/include) ac_x_includes= ;; |
---|
4682 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
4683 | esac |
---|
4684 | case $ac_im_usrlibdir in |
---|
4685 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
4686 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
4687 | esac |
---|
4688 | fi |
---|
4689 | cd .. |
---|
4690 | rm -f -r conftest.dir |
---|
4691 | fi |
---|
4692 | |
---|
4693 | # Standard set of common directories for X headers. |
---|
4694 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
4695 | ac_x_header_dirs=' |
---|
4696 | /usr/X11/include |
---|
4697 | /usr/X11R7/include |
---|
4698 | /usr/X11R6/include |
---|
4699 | /usr/X11R5/include |
---|
4700 | /usr/X11R4/include |
---|
4701 | |
---|
4702 | /usr/include/X11 |
---|
4703 | /usr/include/X11R7 |
---|
4704 | /usr/include/X11R6 |
---|
4705 | /usr/include/X11R5 |
---|
4706 | /usr/include/X11R4 |
---|
4707 | |
---|
4708 | /usr/local/X11/include |
---|
4709 | /usr/local/X11R7/include |
---|
4710 | /usr/local/X11R6/include |
---|
4711 | /usr/local/X11R5/include |
---|
4712 | /usr/local/X11R4/include |
---|
4713 | |
---|
4714 | /usr/local/include/X11 |
---|
4715 | /usr/local/include/X11R7 |
---|
4716 | /usr/local/include/X11R6 |
---|
4717 | /usr/local/include/X11R5 |
---|
4718 | /usr/local/include/X11R4 |
---|
4719 | |
---|
4720 | /usr/X386/include |
---|
4721 | /usr/x386/include |
---|
4722 | /usr/XFree86/include/X11 |
---|
4723 | |
---|
4724 | /usr/include |
---|
4725 | /usr/local/include |
---|
4726 | /usr/unsupported/include |
---|
4727 | /usr/athena/include |
---|
4728 | /usr/local/x11r5/include |
---|
4729 | /usr/lpp/Xamples/include |
---|
4730 | |
---|
4731 | /usr/openwin/include |
---|
4732 | /usr/openwin/share/include' |
---|
4733 | |
---|
4734 | if test "$ac_x_includes" = no; then |
---|
4735 | # Guess where to find include files, by looking for Xlib.h. |
---|
4736 | # First, try using that file with no special directory specified. |
---|
4737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4738 | /* end confdefs.h. */ |
---|
4739 | #include <X11/Xlib.h> |
---|
4740 | _ACEOF |
---|
4741 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4742 | # We can compile using X headers with no special include directory. |
---|
4743 | ac_x_includes= |
---|
4744 | else |
---|
4745 | for ac_dir in $ac_x_header_dirs; do |
---|
4746 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
4747 | ac_x_includes=$ac_dir |
---|
4748 | break |
---|
4749 | fi |
---|
4750 | done |
---|
4751 | fi |
---|
4752 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4753 | fi # $ac_x_includes = no |
---|
4754 | |
---|
4755 | if test "$ac_x_libraries" = no; then |
---|
4756 | # Check for the libraries. |
---|
4757 | # See if we find them without any special options. |
---|
4758 | # Don't add to $LIBS permanently. |
---|
4759 | ac_save_LIBS=$LIBS |
---|
4760 | LIBS="-lX11 $LIBS" |
---|
4761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4762 | /* end confdefs.h. */ |
---|
4763 | #include <X11/Xlib.h> |
---|
4764 | int |
---|
4765 | main () |
---|
4766 | { |
---|
4767 | XrmInitialize () |
---|
4768 | ; |
---|
4769 | return 0; |
---|
4770 | } |
---|
4771 | _ACEOF |
---|
4772 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
4773 | LIBS=$ac_save_LIBS |
---|
4774 | # We can link X programs with no special library path. |
---|
4775 | ac_x_libraries= |
---|
4776 | else |
---|
4777 | LIBS=$ac_save_LIBS |
---|
4778 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
4779 | do |
---|
4780 | # Don't even attempt the hair of trying to link an X program! |
---|
4781 | for ac_extension in a so sl dylib la dll; do |
---|
4782 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
4783 | ac_x_libraries=$ac_dir |
---|
4784 | break 2 |
---|
4785 | fi |
---|
4786 | done |
---|
4787 | done |
---|
4788 | fi |
---|
4789 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4790 | conftest$ac_exeext conftest.$ac_ext |
---|
4791 | fi # $ac_x_libraries = no |
---|
4792 | |
---|
4793 | case $ac_x_includes,$ac_x_libraries in #( |
---|
4794 | no,* | *,no | *\'*) |
---|
4795 | # Didn't find X, or a directory has "'" in its name. |
---|
4796 | ac_cv_have_x="have_x=no";; #( |
---|
4797 | *) |
---|
4798 | # Record where we found X for the cache. |
---|
4799 | ac_cv_have_x="have_x=yes\ |
---|
4800 | ac_x_includes='$ac_x_includes'\ |
---|
4801 | ac_x_libraries='$ac_x_libraries'" |
---|
4802 | esac |
---|
4803 | fi |
---|
4804 | ;; #( |
---|
4805 | *) have_x=yes;; |
---|
4806 | esac |
---|
4807 | eval "$ac_cv_have_x" |
---|
4808 | fi # $with_x != no |
---|
4809 | |
---|
4810 | if test "$have_x" != yes; then |
---|
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
4812 | $as_echo "$have_x" >&6; } |
---|
4813 | no_x=yes |
---|
4814 | else |
---|
4815 | # If each of the values was on the command line, it overrides each guess. |
---|
4816 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
4817 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
4818 | # Update the cache value to reflect the command line values. |
---|
4819 | ac_cv_have_x="have_x=yes\ |
---|
4820 | ac_x_includes='$x_includes'\ |
---|
4821 | ac_x_libraries='$x_libraries'" |
---|
4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
4823 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
4824 | fi |
---|
4825 | |
---|
4826 | |
---|
4827 | if test "${libdir}" != "${prefix}/lib"; then |
---|
4828 | LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" |
---|
4829 | else |
---|
4830 | LIB_SEARCH_DIRS="-L${libdir}" |
---|
4831 | fi |
---|
4832 | |
---|
4833 | SVN_VERSION=`svnversion $srcdir` |
---|
4834 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4835 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4836 | inttypes.h stdint.h unistd.h |
---|
4837 | do : |
---|
4838 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4839 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4840 | " |
---|
4841 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4842 | cat >>confdefs.h <<_ACEOF |
---|
4843 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4844 | _ACEOF |
---|
4845 | |
---|
4846 | fi |
---|
4847 | |
---|
4848 | done |
---|
4849 | |
---|
4850 | |
---|
4851 | |
---|
4852 | |
---|
4853 | # Step 0.a: Enable 64 bit support? |
---|
4854 | |
---|
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
---|
4856 | $as_echo_n "checking if 64bit support is requested... " >&6; } |
---|
4857 | # Check whether --enable-64bit was given. |
---|
4858 | if test "${enable_64bit+set}" = set; then : |
---|
4859 | enableval=$enable_64bit; do64bit=$enableval |
---|
4860 | else |
---|
4861 | do64bit=no |
---|
4862 | fi |
---|
4863 | |
---|
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
---|
4865 | $as_echo "$do64bit" >&6; } |
---|
4866 | |
---|
4867 | # Step 0.b: Enable Solaris 64 bit VIS support? |
---|
4868 | |
---|
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
---|
4870 | $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } |
---|
4871 | # Check whether --enable-64bit-vis was given. |
---|
4872 | if test "${enable_64bit_vis+set}" = set; then : |
---|
4873 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
---|
4874 | else |
---|
4875 | do64bitVIS=no |
---|
4876 | fi |
---|
4877 | |
---|
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
---|
4879 | $as_echo "$do64bitVIS" >&6; } |
---|
4880 | |
---|
4881 | if test "$do64bitVIS" = "yes"; then |
---|
4882 | # Force 64bit on with VIS |
---|
4883 | do64bit=yes |
---|
4884 | fi |
---|
4885 | |
---|
4886 | # Step 1: set the variable "system" to hold the name and version number |
---|
4887 | # for the system. |
---|
4888 | |
---|
4889 | |
---|
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
---|
4891 | $as_echo_n "checking system version... " >&6; } |
---|
4892 | if ${tcl_cv_sys_version+:} false; then : |
---|
4893 | $as_echo_n "(cached) " >&6 |
---|
4894 | else |
---|
4895 | |
---|
4896 | if test -f /usr/lib/NextStep/software_version; then |
---|
4897 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
---|
4898 | else |
---|
4899 | tcl_cv_sys_version=`uname -s`-`uname -r` |
---|
4900 | if test "$?" -ne 0 ; then |
---|
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
---|
4902 | $as_echo "$as_me: WARNING: can't find uname command" >&2;} |
---|
4903 | tcl_cv_sys_version=unknown |
---|
4904 | else |
---|
4905 | # Special check for weird MP-RAS system (uname returns weird |
---|
4906 | # results, and the version is kept in special file). |
---|
4907 | |
---|
4908 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
---|
4909 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
---|
4910 | fi |
---|
4911 | if test "`uname -s`" = "AIX" ; then |
---|
4912 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
---|
4913 | fi |
---|
4914 | fi |
---|
4915 | fi |
---|
4916 | |
---|
4917 | fi |
---|
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
---|
4919 | $as_echo "$tcl_cv_sys_version" >&6; } |
---|
4920 | system=$tcl_cv_sys_version |
---|
4921 | |
---|
4922 | |
---|
4923 | # Step 2: check for existence of -ldl library. This is needed because |
---|
4924 | # Linux can use either -ldl or -ldld for dynamic loading. |
---|
4925 | |
---|
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
4927 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
4928 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
4929 | $as_echo_n "(cached) " >&6 |
---|
4930 | else |
---|
4931 | ac_check_lib_save_LIBS=$LIBS |
---|
4932 | LIBS="-ldl $LIBS" |
---|
4933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4934 | /* end confdefs.h. */ |
---|
4935 | |
---|
4936 | /* Override any GCC internal prototype to avoid an error. |
---|
4937 | Use char because int might match the return type of a GCC |
---|
4938 | builtin and then its argument prototype would still apply. */ |
---|
4939 | #ifdef __cplusplus |
---|
4940 | extern "C" |
---|
4941 | #endif |
---|
4942 | char dlopen (); |
---|
4943 | int |
---|
4944 | main () |
---|
4945 | { |
---|
4946 | return dlopen (); |
---|
4947 | ; |
---|
4948 | return 0; |
---|
4949 | } |
---|
4950 | _ACEOF |
---|
4951 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
4952 | ac_cv_lib_dl_dlopen=yes |
---|
4953 | else |
---|
4954 | ac_cv_lib_dl_dlopen=no |
---|
4955 | fi |
---|
4956 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4957 | conftest$ac_exeext conftest.$ac_ext |
---|
4958 | LIBS=$ac_check_lib_save_LIBS |
---|
4959 | fi |
---|
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
4961 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
4962 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
4963 | have_dl=yes |
---|
4964 | else |
---|
4965 | have_dl=no |
---|
4966 | fi |
---|
4967 | |
---|
4968 | |
---|
4969 | # Require ranlib early so we can override it in special cases below. |
---|
4970 | |
---|
4971 | |
---|
4972 | |
---|
4973 | # Step 3: set configuration options based on system name and version. |
---|
4974 | |
---|
4975 | do64bit_ok=no |
---|
4976 | LDFLAGS_ORIG="$LDFLAGS" |
---|
4977 | TCL_EXPORT_FILE_SUFFIX="" |
---|
4978 | UNSHARED_LIB_SUFFIX="" |
---|
4979 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
---|
4980 | ECHO_VERSION='`echo ${VERSION}`' |
---|
4981 | TCL_LIB_VERSIONS_OK=ok |
---|
4982 | CFLAGS_DEBUG=-g |
---|
4983 | CFLAGS_OPTIMIZE=-O |
---|
4984 | if test "$GCC" = "yes" ; then |
---|
4985 | CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" |
---|
4986 | else |
---|
4987 | CFLAGS_WARNING="" |
---|
4988 | fi |
---|
4989 | TCL_NEEDS_EXP_FILE=0 |
---|
4990 | TCL_BUILD_EXP_FILE="" |
---|
4991 | TCL_EXP_FILE="" |
---|
4992 | # Extract the first word of "ar", so it can be a program name with args. |
---|
4993 | set dummy ar; ac_word=$2 |
---|
4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4995 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4996 | if ${ac_cv_prog_AR+:} false; then : |
---|
4997 | $as_echo_n "(cached) " >&6 |
---|
4998 | else |
---|
4999 | if test -n "$AR"; then |
---|
5000 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
5001 | else |
---|
5002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5003 | for as_dir in $PATH |
---|
5004 | do |
---|
5005 | IFS=$as_save_IFS |
---|
5006 | test -z "$as_dir" && as_dir=. |
---|
5007 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5009 | ac_cv_prog_AR="ar" |
---|
5010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5011 | break 2 |
---|
5012 | fi |
---|
5013 | done |
---|
5014 | done |
---|
5015 | IFS=$as_save_IFS |
---|
5016 | |
---|
5017 | fi |
---|
5018 | fi |
---|
5019 | AR=$ac_cv_prog_AR |
---|
5020 | if test -n "$AR"; then |
---|
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
5022 | $as_echo "$AR" >&6; } |
---|
5023 | else |
---|
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5025 | $as_echo "no" >&6; } |
---|
5026 | fi |
---|
5027 | |
---|
5028 | |
---|
5029 | if test "${AR}" = "" ; then |
---|
5030 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 |
---|
5031 | fi |
---|
5032 | STLIB_LD='${AR} cr' |
---|
5033 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
---|
5034 | PLAT_OBJS="" |
---|
5035 | PLAT_SRCS="" |
---|
5036 | case $system in |
---|
5037 | AIX-*) |
---|
5038 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then |
---|
5039 | # AIX requires the _r compiler when gcc isn't being used |
---|
5040 | case "${CC}" in |
---|
5041 | *_r) |
---|
5042 | # ok ... |
---|
5043 | ;; |
---|
5044 | *) |
---|
5045 | CC=${CC}_r |
---|
5046 | ;; |
---|
5047 | esac |
---|
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
---|
5049 | $as_echo "Using $CC for compiling with threads" >&6; } |
---|
5050 | fi |
---|
5051 | LIBS="$LIBS -lc" |
---|
5052 | SHLIB_CFLAGS="" |
---|
5053 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5054 | # symbols when dynamically loaded into tclsh. |
---|
5055 | SHLIB_LD_LIBS='${LIBS}' |
---|
5056 | SHLIB_SUFFIX=".so" |
---|
5057 | |
---|
5058 | DL_OBJS="tclLoadDl.o" |
---|
5059 | LD_LIBRARY_PATH_VAR="LIBPATH" |
---|
5060 | |
---|
5061 | # Check to enable 64-bit flags for compiler/linker on AIX 4+ |
---|
5062 | if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then |
---|
5063 | if test "$GCC" = "yes" ; then |
---|
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
5065 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
5066 | else |
---|
5067 | do64bit_ok=yes |
---|
5068 | CFLAGS="$CFLAGS -q64" |
---|
5069 | LDFLAGS="$LDFLAGS -q64" |
---|
5070 | RANLIB="${RANLIB} -X64" |
---|
5071 | AR="${AR} -X64" |
---|
5072 | SHLIB_LD_FLAGS="-b64" |
---|
5073 | fi |
---|
5074 | fi |
---|
5075 | |
---|
5076 | if test "`uname -m`" = "ia64" ; then |
---|
5077 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
---|
5078 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
5079 | # AIX-5 has dl* in libc.so |
---|
5080 | DL_LIBS="" |
---|
5081 | if test "$GCC" = "yes" ; then |
---|
5082 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5083 | else |
---|
5084 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
---|
5085 | fi |
---|
5086 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5087 | else |
---|
5088 | if test "$GCC" = "yes" ; then |
---|
5089 | SHLIB_LD="gcc -shared" |
---|
5090 | else |
---|
5091 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" |
---|
5092 | fi |
---|
5093 | SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
---|
5094 | DL_LIBS="-ldl" |
---|
5095 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5096 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5097 | TCL_NEEDS_EXP_FILE=1 |
---|
5098 | TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' |
---|
5099 | fi |
---|
5100 | |
---|
5101 | # AIX v<=4.1 has some different flags than 4.2+ |
---|
5102 | if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then |
---|
5103 | LIBOBJS="$LIBOBJS tclLoadAix.o" |
---|
5104 | DL_LIBS="-lld" |
---|
5105 | fi |
---|
5106 | |
---|
5107 | # On AIX <=v4 systems, libbsd.a has to be linked in to support |
---|
5108 | # non-blocking file IO. This library has to be linked in after |
---|
5109 | # the MATH_LIBS or it breaks the pow() function. The way to |
---|
5110 | # insure proper sequencing, is to add it to the tail of MATH_LIBS. |
---|
5111 | # This library also supplies gettimeofday. |
---|
5112 | # |
---|
5113 | # AIX does not have a timezone field in struct tm. When the AIX |
---|
5114 | # bsd library is used, the timezone global and the gettimeofday |
---|
5115 | # methods are to be avoided for timezone deduction instead, we |
---|
5116 | # deduce the timezone by comparing the localtime result on a |
---|
5117 | # known GMT value. |
---|
5118 | |
---|
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 |
---|
5120 | $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } |
---|
5121 | if ${ac_cv_lib_bsd_gettimeofday+:} false; then : |
---|
5122 | $as_echo_n "(cached) " >&6 |
---|
5123 | else |
---|
5124 | ac_check_lib_save_LIBS=$LIBS |
---|
5125 | LIBS="-lbsd $LIBS" |
---|
5126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5127 | /* end confdefs.h. */ |
---|
5128 | |
---|
5129 | /* Override any GCC internal prototype to avoid an error. |
---|
5130 | Use char because int might match the return type of a GCC |
---|
5131 | builtin and then its argument prototype would still apply. */ |
---|
5132 | #ifdef __cplusplus |
---|
5133 | extern "C" |
---|
5134 | #endif |
---|
5135 | char gettimeofday (); |
---|
5136 | int |
---|
5137 | main () |
---|
5138 | { |
---|
5139 | return gettimeofday (); |
---|
5140 | ; |
---|
5141 | return 0; |
---|
5142 | } |
---|
5143 | _ACEOF |
---|
5144 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5145 | ac_cv_lib_bsd_gettimeofday=yes |
---|
5146 | else |
---|
5147 | ac_cv_lib_bsd_gettimeofday=no |
---|
5148 | fi |
---|
5149 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5150 | conftest$ac_exeext conftest.$ac_ext |
---|
5151 | LIBS=$ac_check_lib_save_LIBS |
---|
5152 | fi |
---|
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 |
---|
5154 | $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } |
---|
5155 | if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : |
---|
5156 | libbsd=yes |
---|
5157 | else |
---|
5158 | libbsd=no |
---|
5159 | fi |
---|
5160 | |
---|
5161 | if test $libbsd = yes; then |
---|
5162 | MATH_LIBS="$MATH_LIBS -lbsd" |
---|
5163 | $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h |
---|
5164 | |
---|
5165 | fi |
---|
5166 | ;; |
---|
5167 | BeOS*) |
---|
5168 | SHLIB_CFLAGS="-fPIC" |
---|
5169 | SHLIB_LD="${CC} -nostart" |
---|
5170 | SHLIB_LD_LIBS='${LIBS}' |
---|
5171 | SHLIB_SUFFIX=".so" |
---|
5172 | DL_OBJS="tclLoadDl.o" |
---|
5173 | DL_LIBS="-ldl" |
---|
5174 | |
---|
5175 | #----------------------------------------------------------- |
---|
5176 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
---|
5177 | # -lsocket, even if the network functions are in -lnet which |
---|
5178 | # is always linked to, for compatibility. |
---|
5179 | #----------------------------------------------------------- |
---|
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
---|
5181 | $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } |
---|
5182 | if ${ac_cv_lib_bind_inet_ntoa+:} false; then : |
---|
5183 | $as_echo_n "(cached) " >&6 |
---|
5184 | else |
---|
5185 | ac_check_lib_save_LIBS=$LIBS |
---|
5186 | LIBS="-lbind $LIBS" |
---|
5187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5188 | /* end confdefs.h. */ |
---|
5189 | |
---|
5190 | /* Override any GCC internal prototype to avoid an error. |
---|
5191 | Use char because int might match the return type of a GCC |
---|
5192 | builtin and then its argument prototype would still apply. */ |
---|
5193 | #ifdef __cplusplus |
---|
5194 | extern "C" |
---|
5195 | #endif |
---|
5196 | char inet_ntoa (); |
---|
5197 | int |
---|
5198 | main () |
---|
5199 | { |
---|
5200 | return inet_ntoa (); |
---|
5201 | ; |
---|
5202 | return 0; |
---|
5203 | } |
---|
5204 | _ACEOF |
---|
5205 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5206 | ac_cv_lib_bind_inet_ntoa=yes |
---|
5207 | else |
---|
5208 | ac_cv_lib_bind_inet_ntoa=no |
---|
5209 | fi |
---|
5210 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5211 | conftest$ac_exeext conftest.$ac_ext |
---|
5212 | LIBS=$ac_check_lib_save_LIBS |
---|
5213 | fi |
---|
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
---|
5215 | $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } |
---|
5216 | if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : |
---|
5217 | LIBS="$LIBS -lbind -lsocket" |
---|
5218 | fi |
---|
5219 | |
---|
5220 | ;; |
---|
5221 | BSD/OS-2.1*|BSD/OS-3*) |
---|
5222 | SHLIB_CFLAGS="" |
---|
5223 | SHLIB_LD="shlicc -r" |
---|
5224 | SHLIB_LD_LIBS='${LIBS}' |
---|
5225 | SHLIB_SUFFIX=".so" |
---|
5226 | DL_OBJS="tclLoadDl.o" |
---|
5227 | DL_LIBS="-ldl" |
---|
5228 | CC_SEARCH_FLAGS="" |
---|
5229 | LD_SEARCH_FLAGS="" |
---|
5230 | ;; |
---|
5231 | BSD/OS-4.*) |
---|
5232 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
---|
5233 | SHLIB_LD="cc -shared" |
---|
5234 | SHLIB_LD_LIBS='${LIBS}' |
---|
5235 | SHLIB_SUFFIX=".so" |
---|
5236 | DL_OBJS="tclLoadDl.o" |
---|
5237 | DL_LIBS="-ldl" |
---|
5238 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
5239 | CC_SEARCH_FLAGS="" |
---|
5240 | LD_SEARCH_FLAGS="" |
---|
5241 | ;; |
---|
5242 | dgux*) |
---|
5243 | SHLIB_CFLAGS="-K PIC" |
---|
5244 | SHLIB_LD="cc -G" |
---|
5245 | SHLIB_LD_LIBS="" |
---|
5246 | SHLIB_SUFFIX=".so" |
---|
5247 | DL_OBJS="tclLoadDl.o" |
---|
5248 | DL_LIBS="-ldl" |
---|
5249 | CC_SEARCH_FLAGS="" |
---|
5250 | LD_SEARCH_FLAGS="" |
---|
5251 | ;; |
---|
5252 | HP-UX-*.11.*) |
---|
5253 | # Use updated header definitions where possible |
---|
5254 | $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h |
---|
5255 | # Use the XOPEN network library |
---|
5256 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
---|
5257 | # Use the XOPEN network library |
---|
5258 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
---|
5259 | |
---|
5260 | if test "`uname -m`" = "ia64" ; then |
---|
5261 | SHLIB_SUFFIX=".so" |
---|
5262 | else |
---|
5263 | SHLIB_SUFFIX=".sl" |
---|
5264 | fi |
---|
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
5266 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
5267 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
5268 | $as_echo_n "(cached) " >&6 |
---|
5269 | else |
---|
5270 | ac_check_lib_save_LIBS=$LIBS |
---|
5271 | LIBS="-ldld $LIBS" |
---|
5272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5273 | /* end confdefs.h. */ |
---|
5274 | |
---|
5275 | /* Override any GCC internal prototype to avoid an error. |
---|
5276 | Use char because int might match the return type of a GCC |
---|
5277 | builtin and then its argument prototype would still apply. */ |
---|
5278 | #ifdef __cplusplus |
---|
5279 | extern "C" |
---|
5280 | #endif |
---|
5281 | char shl_load (); |
---|
5282 | int |
---|
5283 | main () |
---|
5284 | { |
---|
5285 | return shl_load (); |
---|
5286 | ; |
---|
5287 | return 0; |
---|
5288 | } |
---|
5289 | _ACEOF |
---|
5290 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5291 | ac_cv_lib_dld_shl_load=yes |
---|
5292 | else |
---|
5293 | ac_cv_lib_dld_shl_load=no |
---|
5294 | fi |
---|
5295 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5296 | conftest$ac_exeext conftest.$ac_ext |
---|
5297 | LIBS=$ac_check_lib_save_LIBS |
---|
5298 | fi |
---|
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
5300 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
5301 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
5302 | tcl_ok=yes |
---|
5303 | else |
---|
5304 | tcl_ok=no |
---|
5305 | fi |
---|
5306 | |
---|
5307 | if test "$tcl_ok" = yes; then |
---|
5308 | SHLIB_CFLAGS="+z" |
---|
5309 | SHLIB_LD="ld -b" |
---|
5310 | SHLIB_LD_LIBS='${LIBS}' |
---|
5311 | DL_OBJS="tclLoadShl.o" |
---|
5312 | DL_LIBS="-ldld" |
---|
5313 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
5314 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
5315 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
5316 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
5317 | fi |
---|
5318 | if test "$GCC" = "yes" ; then |
---|
5319 | SHLIB_LD="gcc -shared" |
---|
5320 | SHLIB_LD_LIBS='${LIBS}' |
---|
5321 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5322 | fi |
---|
5323 | |
---|
5324 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
---|
5325 | #CFLAGS="$CFLAGS +DAportable" |
---|
5326 | |
---|
5327 | # Check to enable 64-bit flags for compiler/linker |
---|
5328 | if test "$do64bit" = "yes" ; then |
---|
5329 | if test "$GCC" = "yes" ; then |
---|
5330 | hpux_arch=`${CC} -dumpmachine` |
---|
5331 | case $hpux_arch in |
---|
5332 | hppa64*) |
---|
5333 | # 64-bit gcc in use. Fix flags for GNU ld. |
---|
5334 | do64bit_ok=yes |
---|
5335 | SHLIB_LD="${CC} -shared" |
---|
5336 | SHLIB_LD_LIBS='${LIBS}' |
---|
5337 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5338 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5339 | ;; |
---|
5340 | *) |
---|
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
5342 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
5343 | ;; |
---|
5344 | esac |
---|
5345 | else |
---|
5346 | do64bit_ok=yes |
---|
5347 | CFLAGS="$CFLAGS +DD64" |
---|
5348 | LDFLAGS="$LDFLAGS +DD64" |
---|
5349 | fi |
---|
5350 | fi |
---|
5351 | ;; |
---|
5352 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
---|
5353 | SHLIB_SUFFIX=".sl" |
---|
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
5355 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
5356 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
5357 | $as_echo_n "(cached) " >&6 |
---|
5358 | else |
---|
5359 | ac_check_lib_save_LIBS=$LIBS |
---|
5360 | LIBS="-ldld $LIBS" |
---|
5361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5362 | /* end confdefs.h. */ |
---|
5363 | |
---|
5364 | /* Override any GCC internal prototype to avoid an error. |
---|
5365 | Use char because int might match the return type of a GCC |
---|
5366 | builtin and then its argument prototype would still apply. */ |
---|
5367 | #ifdef __cplusplus |
---|
5368 | extern "C" |
---|
5369 | #endif |
---|
5370 | char shl_load (); |
---|
5371 | int |
---|
5372 | main () |
---|
5373 | { |
---|
5374 | return shl_load (); |
---|
5375 | ; |
---|
5376 | return 0; |
---|
5377 | } |
---|
5378 | _ACEOF |
---|
5379 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5380 | ac_cv_lib_dld_shl_load=yes |
---|
5381 | else |
---|
5382 | ac_cv_lib_dld_shl_load=no |
---|
5383 | fi |
---|
5384 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5385 | conftest$ac_exeext conftest.$ac_ext |
---|
5386 | LIBS=$ac_check_lib_save_LIBS |
---|
5387 | fi |
---|
5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
5389 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
5390 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
5391 | tcl_ok=yes |
---|
5392 | else |
---|
5393 | tcl_ok=no |
---|
5394 | fi |
---|
5395 | |
---|
5396 | if test "$tcl_ok" = yes; then |
---|
5397 | SHLIB_CFLAGS="+z" |
---|
5398 | SHLIB_LD="ld -b" |
---|
5399 | SHLIB_LD_LIBS="" |
---|
5400 | DL_OBJS="tclLoadShl.o" |
---|
5401 | DL_LIBS="-ldld" |
---|
5402 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
5403 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
5404 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
5405 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
5406 | fi |
---|
5407 | ;; |
---|
5408 | IRIX-4.*) |
---|
5409 | SHLIB_CFLAGS="-G 0" |
---|
5410 | SHLIB_SUFFIX=".a" |
---|
5411 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
5412 | SHLIB_LD_LIBS='${LIBS}' |
---|
5413 | DL_OBJS="tclLoadAout.o" |
---|
5414 | DL_LIBS="" |
---|
5415 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
5416 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5417 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5418 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
5419 | ;; |
---|
5420 | IRIX-5.*) |
---|
5421 | SHLIB_CFLAGS="" |
---|
5422 | SHLIB_LD="ld -shared -rdata_shared" |
---|
5423 | SHLIB_LD_LIBS='${LIBS}' |
---|
5424 | SHLIB_SUFFIX=".so" |
---|
5425 | DL_OBJS="tclLoadDl.o" |
---|
5426 | DL_LIBS="" |
---|
5427 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5428 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5429 | ;; |
---|
5430 | IRIX-6.*) |
---|
5431 | SHLIB_CFLAGS="" |
---|
5432 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
5433 | SHLIB_LD_LIBS='${LIBS}' |
---|
5434 | SHLIB_SUFFIX=".so" |
---|
5435 | DL_OBJS="tclLoadDl.o" |
---|
5436 | DL_LIBS="" |
---|
5437 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5438 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5439 | if test "$GCC" = "yes" ; then |
---|
5440 | CFLAGS="$CFLAGS -mabi=n32" |
---|
5441 | LDFLAGS="$LDFLAGS -mabi=n32" |
---|
5442 | else |
---|
5443 | case $system in |
---|
5444 | IRIX-6.3) |
---|
5445 | # Use to build 6.2 compatible binaries on 6.3. |
---|
5446 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
---|
5447 | ;; |
---|
5448 | *) |
---|
5449 | CFLAGS="$CFLAGS -n32" |
---|
5450 | ;; |
---|
5451 | esac |
---|
5452 | LDFLAGS="$LDFLAGS -n32" |
---|
5453 | fi |
---|
5454 | ;; |
---|
5455 | IRIX64-6.*) |
---|
5456 | SHLIB_CFLAGS="" |
---|
5457 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
5458 | SHLIB_LD_LIBS='${LIBS}' |
---|
5459 | SHLIB_SUFFIX=".so" |
---|
5460 | DL_OBJS="tclLoadDl.o" |
---|
5461 | DL_LIBS="" |
---|
5462 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5463 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5464 | |
---|
5465 | # Check to enable 64-bit flags for compiler/linker |
---|
5466 | |
---|
5467 | if test "$do64bit" = "yes" ; then |
---|
5468 | if test "$GCC" = "yes" ; then |
---|
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
---|
5470 | $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
---|
5471 | else |
---|
5472 | do64bit_ok=yes |
---|
5473 | SHLIB_LD="ld -64 -shared -rdata_shared" |
---|
5474 | CFLAGS="$CFLAGS -64" |
---|
5475 | LDFLAGS="$LDFLAGS -64" |
---|
5476 | fi |
---|
5477 | fi |
---|
5478 | ;; |
---|
5479 | Linux*) |
---|
5480 | SHLIB_CFLAGS="-fPIC" |
---|
5481 | SHLIB_LD_LIBS='${LIBS}' |
---|
5482 | SHLIB_SUFFIX=".so" |
---|
5483 | |
---|
5484 | CFLAGS_OPTIMIZE=-O2 |
---|
5485 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
---|
5486 | # when you inline the string and math operations. Turn this off to |
---|
5487 | # get rid of the warnings. |
---|
5488 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
---|
5489 | |
---|
5490 | if test "$have_dl" = yes; then |
---|
5491 | SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' |
---|
5492 | DL_OBJS="tclLoadDl.o" |
---|
5493 | DL_LIBS="-ldl" |
---|
5494 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
5495 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5496 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5497 | else |
---|
5498 | ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
5499 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
5500 | |
---|
5501 | SHLIB_LD="ld -shared" |
---|
5502 | DL_OBJS="tclLoadDld.o" |
---|
5503 | DL_LIBS="-ldld" |
---|
5504 | CC_SEARCH_FLAGS="" |
---|
5505 | LD_SEARCH_FLAGS="" |
---|
5506 | fi |
---|
5507 | |
---|
5508 | |
---|
5509 | fi |
---|
5510 | if test "`uname -m`" = "alpha" ; then |
---|
5511 | CFLAGS="$CFLAGS -mieee" |
---|
5512 | fi |
---|
5513 | if test $do64bit = yes; then |
---|
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
---|
5515 | $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } |
---|
5516 | if ${tcl_cv_cc_m64+:} false; then : |
---|
5517 | $as_echo_n "(cached) " >&6 |
---|
5518 | else |
---|
5519 | |
---|
5520 | hold_cflags=$CFLAGS |
---|
5521 | CFLAGS="$CFLAGS -m64" |
---|
5522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5523 | /* end confdefs.h. */ |
---|
5524 | |
---|
5525 | int |
---|
5526 | main () |
---|
5527 | { |
---|
5528 | |
---|
5529 | ; |
---|
5530 | return 0; |
---|
5531 | } |
---|
5532 | _ACEOF |
---|
5533 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5534 | tcl_cv_cc_m64=yes |
---|
5535 | else |
---|
5536 | tcl_cv_cc_m64=no |
---|
5537 | fi |
---|
5538 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5539 | conftest$ac_exeext conftest.$ac_ext |
---|
5540 | CFLAGS=$hold_cflags |
---|
5541 | fi |
---|
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
---|
5543 | $as_echo "$tcl_cv_cc_m64" >&6; } |
---|
5544 | if test $tcl_cv_cc_m64 = yes; then |
---|
5545 | CFLAGS="$CFLAGS -m64" |
---|
5546 | do64bit_ok=yes |
---|
5547 | fi |
---|
5548 | fi |
---|
5549 | |
---|
5550 | # The combo of gcc + glibc has a bug related |
---|
5551 | # to inlining of functions like strtod(). The |
---|
5552 | # -fno-builtin flag should address this problem |
---|
5553 | # but it does not work. The -fno-inline flag |
---|
5554 | # is kind of overkill but it works. |
---|
5555 | # Disable inlining only when one of the |
---|
5556 | # files in compat/*.c is being linked in. |
---|
5557 | if test x"${LIBOBJS}" != x ; then |
---|
5558 | CFLAGS="$CFLAGS -fno-inline" |
---|
5559 | fi |
---|
5560 | |
---|
5561 | # XIM peeking works under XFree86. |
---|
5562 | $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h |
---|
5563 | |
---|
5564 | |
---|
5565 | ;; |
---|
5566 | GNU*) |
---|
5567 | SHLIB_CFLAGS="-fPIC" |
---|
5568 | SHLIB_LD_LIBS='${LIBS}' |
---|
5569 | SHLIB_SUFFIX=".so" |
---|
5570 | |
---|
5571 | if test "$have_dl" = yes; then |
---|
5572 | SHLIB_LD="${CC} -shared" |
---|
5573 | DL_OBJS="" |
---|
5574 | DL_LIBS="-ldl" |
---|
5575 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
5576 | CC_SEARCH_FLAGS="" |
---|
5577 | LD_SEARCH_FLAGS="" |
---|
5578 | else |
---|
5579 | ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
5580 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
5581 | |
---|
5582 | SHLIB_LD="ld -shared" |
---|
5583 | DL_OBJS="" |
---|
5584 | DL_LIBS="-ldld" |
---|
5585 | CC_SEARCH_FLAGS="" |
---|
5586 | LD_SEARCH_FLAGS="" |
---|
5587 | fi |
---|
5588 | |
---|
5589 | |
---|
5590 | fi |
---|
5591 | if test "`uname -m`" = "alpha" ; then |
---|
5592 | CFLAGS="$CFLAGS -mieee" |
---|
5593 | fi |
---|
5594 | ;; |
---|
5595 | Lynx*) |
---|
5596 | SHLIB_CFLAGS="-fPIC" |
---|
5597 | SHLIB_LD_LIBS='${LIBS}' |
---|
5598 | SHLIB_SUFFIX=".so" |
---|
5599 | CFLAGS_OPTIMIZE=-02 |
---|
5600 | SHLIB_LD="${CC} -shared " |
---|
5601 | DL_OBJS="tclLoadDl.o" |
---|
5602 | DL_LIBS="-mshared -ldl" |
---|
5603 | LD_FLAGS="-Wl,--export-dynamic" |
---|
5604 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5605 | LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5606 | ;; |
---|
5607 | MP-RAS-02*) |
---|
5608 | SHLIB_CFLAGS="-K PIC" |
---|
5609 | SHLIB_LD="cc -G" |
---|
5610 | SHLIB_LD_LIBS="" |
---|
5611 | SHLIB_SUFFIX=".so" |
---|
5612 | DL_OBJS="tclLoadDl.o" |
---|
5613 | DL_LIBS="-ldl" |
---|
5614 | CC_SEARCH_FLAGS="" |
---|
5615 | LD_SEARCH_FLAGS="" |
---|
5616 | ;; |
---|
5617 | MP-RAS-*) |
---|
5618 | SHLIB_CFLAGS="-K PIC" |
---|
5619 | SHLIB_LD="cc -G" |
---|
5620 | SHLIB_LD_LIBS="" |
---|
5621 | SHLIB_SUFFIX=".so" |
---|
5622 | DL_OBJS="tclLoadDl.o" |
---|
5623 | DL_LIBS="-ldl" |
---|
5624 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
5625 | CC_SEARCH_FLAGS="" |
---|
5626 | LD_SEARCH_FLAGS="" |
---|
5627 | ;; |
---|
5628 | NetBSD-*|FreeBSD-[1-2].*) |
---|
5629 | # Not available on all versions: check for include file. |
---|
5630 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
---|
5631 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
5632 | |
---|
5633 | # NetBSD/SPARC needs -fPIC, -fpic will not do. |
---|
5634 | SHLIB_CFLAGS="-fPIC" |
---|
5635 | SHLIB_LD="ld -Bshareable -x" |
---|
5636 | SHLIB_LD_LIBS='${LIBS}' |
---|
5637 | SHLIB_SUFFIX=".so" |
---|
5638 | DL_OBJS="tclLoadDl.o" |
---|
5639 | DL_LIBS="" |
---|
5640 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5641 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
5643 | $as_echo_n "checking for ELF... " >&6; } |
---|
5644 | if ${tcl_cv_ld_elf+:} false; then : |
---|
5645 | $as_echo_n "(cached) " >&6 |
---|
5646 | else |
---|
5647 | |
---|
5648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5649 | /* end confdefs.h. */ |
---|
5650 | |
---|
5651 | #ifdef __ELF__ |
---|
5652 | yes |
---|
5653 | #endif |
---|
5654 | |
---|
5655 | _ACEOF |
---|
5656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5657 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
5658 | tcl_cv_ld_elf=yes |
---|
5659 | else |
---|
5660 | tcl_cv_ld_elf=no |
---|
5661 | fi |
---|
5662 | rm -f conftest* |
---|
5663 | |
---|
5664 | fi |
---|
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
5666 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
5667 | if test $tcl_cv_ld_elf = yes; then |
---|
5668 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
5669 | else |
---|
5670 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
5671 | fi |
---|
5672 | |
---|
5673 | else |
---|
5674 | |
---|
5675 | SHLIB_CFLAGS="" |
---|
5676 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
5677 | SHLIB_LD_LIBS='${LIBS}' |
---|
5678 | SHLIB_SUFFIX=".a" |
---|
5679 | DL_OBJS="tclLoadAout.o" |
---|
5680 | DL_LIBS="" |
---|
5681 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5682 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5683 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5684 | |
---|
5685 | fi |
---|
5686 | |
---|
5687 | |
---|
5688 | |
---|
5689 | # FreeBSD doesn't handle version numbers with dots. |
---|
5690 | |
---|
5691 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5692 | TCL_LIB_VERSIONS_OK=nodots |
---|
5693 | ;; |
---|
5694 | OpenBSD-*) |
---|
5695 | case `arch -s` in |
---|
5696 | m88k|vax) |
---|
5697 | SHLIB_CFLAGS="" |
---|
5698 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
5699 | SHLIB_LD_LIBS='${LIBS}' |
---|
5700 | SHLIB_SUFFIX=".a" |
---|
5701 | DL_OBJS="tclLoadAout.o" |
---|
5702 | DL_LIBS="" |
---|
5703 | LDFLAGS="" |
---|
5704 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5705 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5706 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5707 | ;; |
---|
5708 | *) |
---|
5709 | # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. |
---|
5710 | case `machine` in |
---|
5711 | sparc|sparc64) |
---|
5712 | SHLIB_CFLAGS="-fPIC";; |
---|
5713 | *) |
---|
5714 | SHLIB_CFLAGS="-fpic";; |
---|
5715 | esac |
---|
5716 | SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" |
---|
5717 | SHLIB_LD_LIBS='${LIBS}' |
---|
5718 | SHLIB_SUFFIX=".so" |
---|
5719 | DL_OBJS="tclLoadDl.o" |
---|
5720 | DL_LIBS="" |
---|
5721 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5722 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5723 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
5725 | $as_echo_n "checking for ELF... " >&6; } |
---|
5726 | if ${tcl_cv_ld_elf+:} false; then : |
---|
5727 | $as_echo_n "(cached) " >&6 |
---|
5728 | else |
---|
5729 | |
---|
5730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5731 | /* end confdefs.h. */ |
---|
5732 | |
---|
5733 | #ifdef __ELF__ |
---|
5734 | yes |
---|
5735 | #endif |
---|
5736 | |
---|
5737 | _ACEOF |
---|
5738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5739 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
5740 | tcl_cv_ld_elf=yes |
---|
5741 | else |
---|
5742 | tcl_cv_ld_elf=no |
---|
5743 | fi |
---|
5744 | rm -f conftest* |
---|
5745 | |
---|
5746 | fi |
---|
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
5748 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
5749 | if test $tcl_cv_ld_elf = yes; then |
---|
5750 | LDFLAGS=-Wl,-export-dynamic |
---|
5751 | else |
---|
5752 | LDFLAGS="" |
---|
5753 | fi |
---|
5754 | ;; |
---|
5755 | esac |
---|
5756 | |
---|
5757 | # OpenBSD doesn't do version numbers with dots. |
---|
5758 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5759 | TCL_LIB_VERSIONS_OK=nodots |
---|
5760 | ;; |
---|
5761 | FreeBSD-*) |
---|
5762 | # FreeBSD 3.* and greater have ELF. |
---|
5763 | SHLIB_CFLAGS="-fPIC" |
---|
5764 | SHLIB_LD="ld -Bshareable -x" |
---|
5765 | SHLIB_LD_LIBS='${LIBS}' |
---|
5766 | SHLIB_SUFFIX=".so" |
---|
5767 | DL_OBJS="tclLoadDl.o" |
---|
5768 | DL_LIBS="" |
---|
5769 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
5770 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
5771 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
5772 | if test "${TCL_THREADS}" = "1" ; then |
---|
5773 | # The -pthread needs to go in the CFLAGS, not LIBS |
---|
5774 | LIBS=`echo $LIBS | sed s/-pthread//` |
---|
5775 | CFLAGS="$CFLAGS -pthread" |
---|
5776 | LDFLAGS="$LDFLAGS -pthread" |
---|
5777 | fi |
---|
5778 | case $system in |
---|
5779 | FreeBSD-3.*) |
---|
5780 | # FreeBSD-3 doesn't handle version numbers with dots. |
---|
5781 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5782 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
5783 | TCL_LIB_VERSIONS_OK=nodots |
---|
5784 | ;; |
---|
5785 | esac |
---|
5786 | ;; |
---|
5787 | Darwin-*) |
---|
5788 | CFLAGS_OPTIMIZE="-Os" |
---|
5789 | SHLIB_CFLAGS="-fno-common" |
---|
5790 | # To avoid discrepancies between what headers configure sees during |
---|
5791 | # preprocessing tests and compiling tests, move any -isysroot and |
---|
5792 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
---|
5793 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
---|
5794 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
5795 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
---|
5796 | CFLAGS="`echo " ${CFLAGS}" | \ |
---|
5797 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
5798 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
---|
5799 | if test $do64bit = yes; then |
---|
5800 | case `arch` in |
---|
5801 | ppc) |
---|
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
---|
5803 | $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } |
---|
5804 | if ${tcl_cv_cc_arch_ppc64+:} false; then : |
---|
5805 | $as_echo_n "(cached) " >&6 |
---|
5806 | else |
---|
5807 | |
---|
5808 | hold_cflags=$CFLAGS |
---|
5809 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
5810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5811 | /* end confdefs.h. */ |
---|
5812 | |
---|
5813 | int |
---|
5814 | main () |
---|
5815 | { |
---|
5816 | |
---|
5817 | ; |
---|
5818 | return 0; |
---|
5819 | } |
---|
5820 | _ACEOF |
---|
5821 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5822 | tcl_cv_cc_arch_ppc64=yes |
---|
5823 | else |
---|
5824 | tcl_cv_cc_arch_ppc64=no |
---|
5825 | fi |
---|
5826 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5827 | conftest$ac_exeext conftest.$ac_ext |
---|
5828 | CFLAGS=$hold_cflags |
---|
5829 | fi |
---|
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
---|
5831 | $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } |
---|
5832 | if test $tcl_cv_cc_arch_ppc64 = yes; then |
---|
5833 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
5834 | do64bit_ok=yes |
---|
5835 | fi;; |
---|
5836 | i386) |
---|
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
---|
5838 | $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } |
---|
5839 | if ${tcl_cv_cc_arch_x86_64+:} false; then : |
---|
5840 | $as_echo_n "(cached) " >&6 |
---|
5841 | else |
---|
5842 | |
---|
5843 | hold_cflags=$CFLAGS |
---|
5844 | CFLAGS="$CFLAGS -arch x86_64" |
---|
5845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5846 | /* end confdefs.h. */ |
---|
5847 | |
---|
5848 | int |
---|
5849 | main () |
---|
5850 | { |
---|
5851 | |
---|
5852 | ; |
---|
5853 | return 0; |
---|
5854 | } |
---|
5855 | _ACEOF |
---|
5856 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5857 | tcl_cv_cc_arch_x86_64=yes |
---|
5858 | else |
---|
5859 | tcl_cv_cc_arch_x86_64=no |
---|
5860 | fi |
---|
5861 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5862 | conftest$ac_exeext conftest.$ac_ext |
---|
5863 | CFLAGS=$hold_cflags |
---|
5864 | fi |
---|
5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
---|
5866 | $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } |
---|
5867 | if test $tcl_cv_cc_arch_x86_64 = yes; then |
---|
5868 | CFLAGS="$CFLAGS -arch x86_64" |
---|
5869 | do64bit_ok=yes |
---|
5870 | fi;; |
---|
5871 | *) |
---|
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
---|
5873 | $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
---|
5874 | esac |
---|
5875 | else |
---|
5876 | # Check for combined 32-bit and 64-bit fat build |
---|
5877 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ |
---|
5878 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ |
---|
5879 | fat_32_64=yes |
---|
5880 | fi |
---|
5881 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
---|
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
---|
5883 | $as_echo_n "checking if ld accepts -single_module flag... " >&6; } |
---|
5884 | if ${tcl_cv_ld_single_module+:} false; then : |
---|
5885 | $as_echo_n "(cached) " >&6 |
---|
5886 | else |
---|
5887 | |
---|
5888 | hold_ldflags=$LDFLAGS |
---|
5889 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
---|
5890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5891 | /* end confdefs.h. */ |
---|
5892 | |
---|
5893 | int |
---|
5894 | main () |
---|
5895 | { |
---|
5896 | int i; |
---|
5897 | ; |
---|
5898 | return 0; |
---|
5899 | } |
---|
5900 | _ACEOF |
---|
5901 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5902 | tcl_cv_ld_single_module=yes |
---|
5903 | else |
---|
5904 | tcl_cv_ld_single_module=no |
---|
5905 | fi |
---|
5906 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5907 | conftest$ac_exeext conftest.$ac_ext |
---|
5908 | LDFLAGS=$hold_ldflags |
---|
5909 | fi |
---|
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
---|
5911 | $as_echo "$tcl_cv_ld_single_module" >&6; } |
---|
5912 | if test $tcl_cv_ld_single_module = yes; then |
---|
5913 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
---|
5914 | fi |
---|
5915 | SHLIB_LD_LIBS='${LIBS}' |
---|
5916 | SHLIB_SUFFIX=".dylib" |
---|
5917 | DL_OBJS="tclLoadDyld.o" |
---|
5918 | DL_LIBS="" |
---|
5919 | # Don't use -prebind when building for Mac OS X 10.4 or later only: |
---|
5920 | test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ |
---|
5921 | "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ |
---|
5922 | LDFLAGS="$LDFLAGS -prebind" |
---|
5923 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
---|
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
---|
5925 | $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } |
---|
5926 | if ${tcl_cv_ld_search_paths_first+:} false; then : |
---|
5927 | $as_echo_n "(cached) " >&6 |
---|
5928 | else |
---|
5929 | |
---|
5930 | hold_ldflags=$LDFLAGS |
---|
5931 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
5932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5933 | /* end confdefs.h. */ |
---|
5934 | |
---|
5935 | int |
---|
5936 | main () |
---|
5937 | { |
---|
5938 | int i; |
---|
5939 | ; |
---|
5940 | return 0; |
---|
5941 | } |
---|
5942 | _ACEOF |
---|
5943 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5944 | tcl_cv_ld_search_paths_first=yes |
---|
5945 | else |
---|
5946 | tcl_cv_ld_search_paths_first=no |
---|
5947 | fi |
---|
5948 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5949 | conftest$ac_exeext conftest.$ac_ext |
---|
5950 | LDFLAGS=$hold_ldflags |
---|
5951 | fi |
---|
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
---|
5953 | $as_echo "$tcl_cv_ld_search_paths_first" >&6; } |
---|
5954 | if test $tcl_cv_ld_search_paths_first = yes; then |
---|
5955 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
5956 | fi |
---|
5957 | CC_SEARCH_FLAGS="" |
---|
5958 | LD_SEARCH_FLAGS="" |
---|
5959 | LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" |
---|
5960 | PLAT_OBJS=\$\(MAC\_OSX_OBJS\) |
---|
5961 | PLAT_SRCS=\$\(MAC\_OSX_SRCS\) |
---|
5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
---|
5963 | $as_echo_n "checking whether to use CoreFoundation... " >&6; } |
---|
5964 | # Check whether --enable-corefoundation was given. |
---|
5965 | if test "${enable_corefoundation+set}" = set; then : |
---|
5966 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
---|
5967 | else |
---|
5968 | tcl_corefoundation=yes |
---|
5969 | fi |
---|
5970 | |
---|
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
---|
5972 | $as_echo "$tcl_corefoundation" >&6; } |
---|
5973 | if test $tcl_corefoundation = yes; then |
---|
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
---|
5975 | $as_echo_n "checking for CoreFoundation.framework... " >&6; } |
---|
5976 | if ${tcl_cv_lib_corefoundation+:} false; then : |
---|
5977 | $as_echo_n "(cached) " >&6 |
---|
5978 | else |
---|
5979 | |
---|
5980 | hold_libs=$LIBS |
---|
5981 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
5982 | # On Tiger there is no 64-bit CF, so remove 64-bit archs |
---|
5983 | # from CFLAGS et al. while testing for presence of CF. |
---|
5984 | # 64-bit CF is disabled in tclUnixPort.h if necessary. |
---|
5985 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
---|
5986 | done; fi |
---|
5987 | LIBS="$LIBS -framework CoreFoundation" |
---|
5988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5989 | /* end confdefs.h. */ |
---|
5990 | #include <CoreFoundation/CoreFoundation.h> |
---|
5991 | int |
---|
5992 | main () |
---|
5993 | { |
---|
5994 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
5995 | ; |
---|
5996 | return 0; |
---|
5997 | } |
---|
5998 | _ACEOF |
---|
5999 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6000 | tcl_cv_lib_corefoundation=yes |
---|
6001 | else |
---|
6002 | tcl_cv_lib_corefoundation=no |
---|
6003 | fi |
---|
6004 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6005 | conftest$ac_exeext conftest.$ac_ext |
---|
6006 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
6007 | eval $v'="$hold_'$v'"' |
---|
6008 | done; fi; LIBS=$hold_libs |
---|
6009 | fi |
---|
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
---|
6011 | $as_echo "$tcl_cv_lib_corefoundation" >&6; } |
---|
6012 | if test $tcl_cv_lib_corefoundation = yes; then |
---|
6013 | LIBS="$LIBS -framework CoreFoundation" |
---|
6014 | $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
---|
6015 | |
---|
6016 | else |
---|
6017 | tcl_corefoundation=no |
---|
6018 | fi |
---|
6019 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then |
---|
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
---|
6021 | $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } |
---|
6022 | if ${tcl_cv_lib_corefoundation_64+:} false; then : |
---|
6023 | $as_echo_n "(cached) " >&6 |
---|
6024 | else |
---|
6025 | |
---|
6026 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
6027 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
---|
6028 | done |
---|
6029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6030 | /* end confdefs.h. */ |
---|
6031 | #include <CoreFoundation/CoreFoundation.h> |
---|
6032 | int |
---|
6033 | main () |
---|
6034 | { |
---|
6035 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
6036 | ; |
---|
6037 | return 0; |
---|
6038 | } |
---|
6039 | _ACEOF |
---|
6040 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6041 | tcl_cv_lib_corefoundation_64=yes |
---|
6042 | else |
---|
6043 | tcl_cv_lib_corefoundation_64=no |
---|
6044 | fi |
---|
6045 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6046 | conftest$ac_exeext conftest.$ac_ext |
---|
6047 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
6048 | eval $v'="$hold_'$v'"' |
---|
6049 | done |
---|
6050 | fi |
---|
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
---|
6052 | $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } |
---|
6053 | if test $tcl_cv_lib_corefoundation_64 = no; then |
---|
6054 | $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
---|
6055 | |
---|
6056 | fi |
---|
6057 | fi |
---|
6058 | fi |
---|
6059 | $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h |
---|
6060 | |
---|
6061 | ;; |
---|
6062 | NEXTSTEP-*) |
---|
6063 | SHLIB_CFLAGS="" |
---|
6064 | SHLIB_LD="cc -nostdlib -r" |
---|
6065 | SHLIB_LD_LIBS="" |
---|
6066 | SHLIB_SUFFIX=".so" |
---|
6067 | DL_OBJS="tclLoadNext.o" |
---|
6068 | DL_LIBS="" |
---|
6069 | CC_SEARCH_FLAGS="" |
---|
6070 | LD_SEARCH_FLAGS="" |
---|
6071 | ;; |
---|
6072 | OS/390-*) |
---|
6073 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
---|
6074 | $as_echo "#define _OE_SOCKETS 1" >>confdefs.h |
---|
6075 | # needed in sys/socket.h |
---|
6076 | ;; |
---|
6077 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
---|
6078 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
---|
6079 | SHLIB_CFLAGS="" |
---|
6080 | # Hack: make package name same as library name |
---|
6081 | SHLIB_LD='ld -R -export :' |
---|
6082 | SHLIB_LD_LIBS="" |
---|
6083 | SHLIB_SUFFIX=".so" |
---|
6084 | DL_OBJS="tclLoadOSF.o" |
---|
6085 | DL_LIBS="" |
---|
6086 | CC_SEARCH_FLAGS="" |
---|
6087 | LD_SEARCH_FLAGS="" |
---|
6088 | ;; |
---|
6089 | OSF1-1.*) |
---|
6090 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
---|
6091 | SHLIB_CFLAGS="-fPIC" |
---|
6092 | if test "$SHARED_BUILD" = "1" ; then |
---|
6093 | SHLIB_LD="ld -shared" |
---|
6094 | else |
---|
6095 | SHLIB_LD="ld -non_shared" |
---|
6096 | fi |
---|
6097 | SHLIB_LD_LIBS="" |
---|
6098 | SHLIB_SUFFIX=".so" |
---|
6099 | DL_OBJS="tclLoadDl.o" |
---|
6100 | DL_LIBS="" |
---|
6101 | CC_SEARCH_FLAGS="" |
---|
6102 | LD_SEARCH_FLAGS="" |
---|
6103 | ;; |
---|
6104 | OSF1-V*) |
---|
6105 | # Digital OSF/1 |
---|
6106 | SHLIB_CFLAGS="" |
---|
6107 | if test "$SHARED_BUILD" = "1" ; then |
---|
6108 | SHLIB_LD='ld -shared -expect_unresolved "*"' |
---|
6109 | else |
---|
6110 | SHLIB_LD='ld -non_shared -expect_unresolved "*"' |
---|
6111 | fi |
---|
6112 | SHLIB_LD_LIBS="" |
---|
6113 | SHLIB_SUFFIX=".so" |
---|
6114 | DL_OBJS="tclLoadDl.o" |
---|
6115 | DL_LIBS="" |
---|
6116 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6117 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6118 | if test "$GCC" = "yes" ; then |
---|
6119 | CFLAGS="$CFLAGS -mieee" |
---|
6120 | else |
---|
6121 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" |
---|
6122 | fi |
---|
6123 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
---|
6124 | if test "${TCL_THREADS}" = "1" ; then |
---|
6125 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
---|
6126 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
---|
6127 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
---|
6128 | if test "$GCC" = "yes" ; then |
---|
6129 | LIBS="$LIBS -lpthread -lmach -lexc" |
---|
6130 | else |
---|
6131 | CFLAGS="$CFLAGS -pthread" |
---|
6132 | LDFLAGS="$LDFLAGS -pthread" |
---|
6133 | fi |
---|
6134 | fi |
---|
6135 | |
---|
6136 | ;; |
---|
6137 | QNX-6*) |
---|
6138 | # QNX RTP |
---|
6139 | # This may work for all QNX, but it was only reported for v6. |
---|
6140 | SHLIB_CFLAGS="-fPIC" |
---|
6141 | SHLIB_LD="ld -Bshareable -x" |
---|
6142 | SHLIB_LD_LIBS="" |
---|
6143 | SHLIB_SUFFIX=".so" |
---|
6144 | DL_OBJS="tclLoadDl.o" |
---|
6145 | # dlopen is in -lc on QNX |
---|
6146 | DL_LIBS="" |
---|
6147 | CC_SEARCH_FLAGS="" |
---|
6148 | LD_SEARCH_FLAGS="" |
---|
6149 | ;; |
---|
6150 | RISCos-*) |
---|
6151 | SHLIB_CFLAGS="-G 0" |
---|
6152 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
6153 | SHLIB_LD_LIBS='${LIBS}' |
---|
6154 | SHLIB_SUFFIX=".a" |
---|
6155 | DL_OBJS="tclLoadAout.o" |
---|
6156 | DL_LIBS="" |
---|
6157 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
6158 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6159 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6160 | ;; |
---|
6161 | SCO_SV-3.2*) |
---|
6162 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
---|
6163 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
---|
6164 | # below. |
---|
6165 | if test "$GCC" = "yes" ; then |
---|
6166 | SHLIB_CFLAGS="-fPIC -melf" |
---|
6167 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
---|
6168 | else |
---|
6169 | SHLIB_CFLAGS="-Kpic -belf" |
---|
6170 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
---|
6171 | fi |
---|
6172 | SHLIB_LD="ld -G" |
---|
6173 | SHLIB_LD_LIBS="" |
---|
6174 | SHLIB_SUFFIX=".so" |
---|
6175 | DL_OBJS="tclLoadDl.o" |
---|
6176 | DL_LIBS="" |
---|
6177 | CC_SEARCH_FLAGS="" |
---|
6178 | LD_SEARCH_FLAGS="" |
---|
6179 | ;; |
---|
6180 | SINIX*5.4*) |
---|
6181 | SHLIB_CFLAGS="-K PIC" |
---|
6182 | SHLIB_LD="cc -G" |
---|
6183 | SHLIB_LD_LIBS="" |
---|
6184 | SHLIB_SUFFIX=".so" |
---|
6185 | DL_OBJS="tclLoadDl.o" |
---|
6186 | DL_LIBS="-ldl" |
---|
6187 | CC_SEARCH_FLAGS="" |
---|
6188 | LD_SEARCH_FLAGS="" |
---|
6189 | ;; |
---|
6190 | SunOS-4*) |
---|
6191 | SHLIB_CFLAGS="-PIC" |
---|
6192 | SHLIB_LD="ld" |
---|
6193 | SHLIB_LD_LIBS="" |
---|
6194 | SHLIB_SUFFIX=".so" |
---|
6195 | DL_OBJS="tclLoadDl.o" |
---|
6196 | DL_LIBS="-ldl" |
---|
6197 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6198 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6199 | |
---|
6200 | # SunOS can't handle version numbers with dots in them in library |
---|
6201 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
---|
6202 | # requires an extra version number at the end of .so file names. |
---|
6203 | # So, the library has to have a name like libtcl75.so.1.0 |
---|
6204 | |
---|
6205 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
6206 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6207 | TCL_LIB_VERSIONS_OK=nodots |
---|
6208 | ;; |
---|
6209 | SunOS-5.[0-6]) |
---|
6210 | # Careful to not let 5.10+ fall into this case |
---|
6211 | |
---|
6212 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
6213 | # won't define thread-safe library routines. |
---|
6214 | |
---|
6215 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
6216 | |
---|
6217 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
6218 | |
---|
6219 | |
---|
6220 | SHLIB_CFLAGS="-KPIC" |
---|
6221 | |
---|
6222 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
6223 | # symbols when dynamically loaded into tclsh. |
---|
6224 | |
---|
6225 | SHLIB_LD_LIBS='${LIBS}' |
---|
6226 | SHLIB_SUFFIX=".so" |
---|
6227 | DL_OBJS="tclLoadDl.o" |
---|
6228 | DL_LIBS="-ldl" |
---|
6229 | if test "$GCC" = "yes" ; then |
---|
6230 | SHLIB_LD="$CC -shared" |
---|
6231 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
6232 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6233 | else |
---|
6234 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
6235 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
6236 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6237 | fi |
---|
6238 | ;; |
---|
6239 | SunOS-5*) |
---|
6240 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
6241 | # won't define thread-safe library routines. |
---|
6242 | |
---|
6243 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
6244 | |
---|
6245 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
6246 | |
---|
6247 | |
---|
6248 | SHLIB_CFLAGS="-KPIC" |
---|
6249 | |
---|
6250 | # Check to enable 64-bit flags for compiler/linker |
---|
6251 | if test "$do64bit" = "yes" ; then |
---|
6252 | arch=`isainfo` |
---|
6253 | if test "$arch" = "sparcv9 sparc" ; then |
---|
6254 | if test "$GCC" = "yes" ; then |
---|
6255 | if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then |
---|
6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
---|
6257 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
---|
6258 | else |
---|
6259 | do64bit_ok=yes |
---|
6260 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
---|
6261 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
---|
6262 | SHLIB_CFLAGS="-fPIC" |
---|
6263 | fi |
---|
6264 | else |
---|
6265 | do64bit_ok=yes |
---|
6266 | if test "$do64bitVIS" = "yes" ; then |
---|
6267 | CFLAGS="$CFLAGS -xarch=v9a" |
---|
6268 | LDFLAGS="$LDFLAGS -xarch=v9a" |
---|
6269 | else |
---|
6270 | CFLAGS="$CFLAGS -xarch=v9" |
---|
6271 | LDFLAGS="$LDFLAGS -xarch=v9" |
---|
6272 | fi |
---|
6273 | # Solaris 64 uses this as well |
---|
6274 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
---|
6275 | fi |
---|
6276 | elif test "$arch" = "amd64 i386" ; then |
---|
6277 | if test "$GCC" = "yes" ; then |
---|
6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
6279 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
6280 | else |
---|
6281 | do64bit_ok=yes |
---|
6282 | CFLAGS="$CFLAGS -xarch=amd64" |
---|
6283 | LDFLAGS="$LDFLAGS -xarch=amd64" |
---|
6284 | fi |
---|
6285 | else |
---|
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
---|
6287 | $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} |
---|
6288 | fi |
---|
6289 | fi |
---|
6290 | |
---|
6291 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
6292 | # symbols when dynamically loaded into tclsh. |
---|
6293 | |
---|
6294 | SHLIB_LD_LIBS='${LIBS}' |
---|
6295 | SHLIB_SUFFIX=".so" |
---|
6296 | DL_OBJS="tclLoadDl.o" |
---|
6297 | DL_LIBS="-ldl" |
---|
6298 | if test "$GCC" = "yes" ; then |
---|
6299 | SHLIB_LD="$CC -shared" |
---|
6300 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
6301 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6302 | if test "$do64bit_ok" = "yes" ; then |
---|
6303 | # We need to specify -static-libgcc or we need to |
---|
6304 | # add the path to the sparv9 libgcc. |
---|
6305 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
---|
6306 | # for finding sparcv9 libgcc, get the regular libgcc |
---|
6307 | # path, remove so name and append 'sparcv9' |
---|
6308 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
---|
6309 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
---|
6310 | fi |
---|
6311 | else |
---|
6312 | case $system in |
---|
6313 | SunOS-5.[1-9][0-9]*) |
---|
6314 | SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; |
---|
6315 | *) |
---|
6316 | SHLIB_LD="/usr/ccs/bin/ld -G -z text";; |
---|
6317 | esac |
---|
6318 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
6319 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
6320 | fi |
---|
6321 | ;; |
---|
6322 | ULTRIX-4.*) |
---|
6323 | SHLIB_CFLAGS="-G 0" |
---|
6324 | SHLIB_SUFFIX=".a" |
---|
6325 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
6326 | SHLIB_LD_LIBS='${LIBS}' |
---|
6327 | DL_OBJS="tclLoadAout.o" |
---|
6328 | DL_LIBS="" |
---|
6329 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
6330 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6331 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6332 | if test "$GCC" != "yes" ; then |
---|
6333 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1" |
---|
6334 | fi |
---|
6335 | ;; |
---|
6336 | UNIX_SV* | UnixWare-5*) |
---|
6337 | SHLIB_CFLAGS="-KPIC" |
---|
6338 | SHLIB_LD="cc -G" |
---|
6339 | SHLIB_LD_LIBS="" |
---|
6340 | SHLIB_SUFFIX=".so" |
---|
6341 | DL_OBJS="tclLoadDl.o" |
---|
6342 | DL_LIBS="-ldl" |
---|
6343 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
---|
6344 | # that don't grok the -Bexport option. Test that it does. |
---|
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
---|
6346 | $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } |
---|
6347 | if ${tcl_cv_ld_Bexport+:} false; then : |
---|
6348 | $as_echo_n "(cached) " >&6 |
---|
6349 | else |
---|
6350 | |
---|
6351 | hold_ldflags=$LDFLAGS |
---|
6352 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
6353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6354 | /* end confdefs.h. */ |
---|
6355 | |
---|
6356 | int |
---|
6357 | main () |
---|
6358 | { |
---|
6359 | int i; |
---|
6360 | ; |
---|
6361 | return 0; |
---|
6362 | } |
---|
6363 | _ACEOF |
---|
6364 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6365 | tcl_cv_ld_Bexport=yes |
---|
6366 | else |
---|
6367 | tcl_cv_ld_Bexport=no |
---|
6368 | fi |
---|
6369 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6370 | conftest$ac_exeext conftest.$ac_ext |
---|
6371 | LDFLAGS=$hold_ldflags |
---|
6372 | fi |
---|
6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
---|
6374 | $as_echo "$tcl_cv_ld_Bexport" >&6; } |
---|
6375 | if test $tcl_cv_ld_Bexport = yes; then |
---|
6376 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
6377 | fi |
---|
6378 | CC_SEARCH_FLAGS="" |
---|
6379 | LD_SEARCH_FLAGS="" |
---|
6380 | ;; |
---|
6381 | esac |
---|
6382 | |
---|
6383 | if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then |
---|
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
---|
6385 | $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
---|
6386 | fi |
---|
6387 | |
---|
6388 | |
---|
6389 | |
---|
6390 | |
---|
6391 | # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic |
---|
6392 | # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, |
---|
6393 | # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need |
---|
6394 | # to determine which of several header files defines the a.out file |
---|
6395 | # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we |
---|
6396 | # support only a file format that is more or less version-7-compatible. |
---|
6397 | # In particular, |
---|
6398 | # - a.out files must begin with `struct exec'. |
---|
6399 | # - the N_TXTOFF on the `struct exec' must compute the seek address |
---|
6400 | # of the text segment |
---|
6401 | # - The `struct exec' must contain a_magic, a_text, a_data, a_bss |
---|
6402 | # and a_entry fields. |
---|
6403 | # The following compilation should succeed if and only if either sys/exec.h |
---|
6404 | # or a.out.h is usable for the purpose. |
---|
6405 | # |
---|
6406 | # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the |
---|
6407 | # `struct exec' includes a second header that contains information that |
---|
6408 | # duplicates the v7 fields that are needed. |
---|
6409 | |
---|
6410 | if test "x$DL_OBJS" = "xtclLoadAout.o" ; then |
---|
6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 |
---|
6412 | $as_echo_n "checking sys/exec.h... " >&6; } |
---|
6413 | if ${tcl_cv_sysexec_h+:} false; then : |
---|
6414 | $as_echo_n "(cached) " >&6 |
---|
6415 | else |
---|
6416 | |
---|
6417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6418 | /* end confdefs.h. */ |
---|
6419 | #include <sys/exec.h> |
---|
6420 | int |
---|
6421 | main () |
---|
6422 | { |
---|
6423 | |
---|
6424 | struct exec foo; |
---|
6425 | unsigned long seek; |
---|
6426 | int flag; |
---|
6427 | #if defined(__mips) || defined(mips) |
---|
6428 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
6429 | #else |
---|
6430 | seek = N_TXTOFF (foo); |
---|
6431 | #endif |
---|
6432 | flag = (foo.a_magic == OMAGIC); |
---|
6433 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
6434 | |
---|
6435 | ; |
---|
6436 | return 0; |
---|
6437 | } |
---|
6438 | _ACEOF |
---|
6439 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6440 | tcl_cv_sysexec_h=usable |
---|
6441 | else |
---|
6442 | tcl_cv_sysexec_h=unusable |
---|
6443 | fi |
---|
6444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6445 | fi |
---|
6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 |
---|
6447 | $as_echo "$tcl_cv_sysexec_h" >&6; } |
---|
6448 | if test $tcl_cv_sysexec_h = usable; then |
---|
6449 | $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h |
---|
6450 | |
---|
6451 | else |
---|
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 |
---|
6453 | $as_echo_n "checking a.out.h... " >&6; } |
---|
6454 | if ${tcl_cv_aout_h+:} false; then : |
---|
6455 | $as_echo_n "(cached) " >&6 |
---|
6456 | else |
---|
6457 | |
---|
6458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6459 | /* end confdefs.h. */ |
---|
6460 | #include <a.out.h> |
---|
6461 | int |
---|
6462 | main () |
---|
6463 | { |
---|
6464 | |
---|
6465 | struct exec foo; |
---|
6466 | unsigned long seek; |
---|
6467 | int flag; |
---|
6468 | #if defined(__mips) || defined(mips) |
---|
6469 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
6470 | #else |
---|
6471 | seek = N_TXTOFF (foo); |
---|
6472 | #endif |
---|
6473 | flag = (foo.a_magic == OMAGIC); |
---|
6474 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
6475 | |
---|
6476 | ; |
---|
6477 | return 0; |
---|
6478 | } |
---|
6479 | _ACEOF |
---|
6480 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6481 | tcl_cv_aout_h=usable |
---|
6482 | else |
---|
6483 | tcl_cv_aout_h=unusable |
---|
6484 | fi |
---|
6485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6486 | fi |
---|
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 |
---|
6488 | $as_echo "$tcl_cv_aout_h" >&6; } |
---|
6489 | if test $tcl_cv_aout_h = usable; then |
---|
6490 | $as_echo "#define USE_A_OUT_H 1" >>confdefs.h |
---|
6491 | |
---|
6492 | else |
---|
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 |
---|
6494 | $as_echo_n "checking sys/exec_aout.h... " >&6; } |
---|
6495 | if ${tcl_cv_sysexecaout_h+:} false; then : |
---|
6496 | $as_echo_n "(cached) " >&6 |
---|
6497 | else |
---|
6498 | |
---|
6499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6500 | /* end confdefs.h. */ |
---|
6501 | #include <sys/exec_aout.h> |
---|
6502 | int |
---|
6503 | main () |
---|
6504 | { |
---|
6505 | |
---|
6506 | struct exec foo; |
---|
6507 | unsigned long seek; |
---|
6508 | int flag; |
---|
6509 | #if defined(__mips) || defined(mips) |
---|
6510 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
6511 | #else |
---|
6512 | seek = N_TXTOFF (foo); |
---|
6513 | #endif |
---|
6514 | flag = (foo.a_midmag == OMAGIC); |
---|
6515 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
6516 | |
---|
6517 | ; |
---|
6518 | return 0; |
---|
6519 | } |
---|
6520 | _ACEOF |
---|
6521 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6522 | tcl_cv_sysexecaout_h=usable |
---|
6523 | else |
---|
6524 | tcl_cv_sysexecaout_h=unusable |
---|
6525 | fi |
---|
6526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6527 | fi |
---|
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 |
---|
6529 | $as_echo "$tcl_cv_sysexecaout_h" >&6; } |
---|
6530 | if test $tcl_cv_sysexecaout_h = usable; then |
---|
6531 | $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h |
---|
6532 | |
---|
6533 | else |
---|
6534 | DL_OBJS="" |
---|
6535 | fi |
---|
6536 | fi |
---|
6537 | fi |
---|
6538 | fi |
---|
6539 | |
---|
6540 | # Step 5: disable dynamic loading if requested via a command-line switch. |
---|
6541 | |
---|
6542 | # Check whether --enable-load was given. |
---|
6543 | if test "${enable_load+set}" = set; then : |
---|
6544 | enableval=$enable_load; tcl_ok=$enableval |
---|
6545 | else |
---|
6546 | tcl_ok=yes |
---|
6547 | fi |
---|
6548 | |
---|
6549 | if test "$tcl_ok" = "no"; then |
---|
6550 | DL_OBJS="" |
---|
6551 | fi |
---|
6552 | |
---|
6553 | if test "x$DL_OBJS" != "x" ; then |
---|
6554 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
---|
6555 | else |
---|
6556 | echo "Can't figure out how to do dynamic loading or shared libraries" |
---|
6557 | echo "on this system." |
---|
6558 | SHLIB_CFLAGS="" |
---|
6559 | SHLIB_LD="" |
---|
6560 | SHLIB_SUFFIX="" |
---|
6561 | DL_OBJS="tclLoadNone.o" |
---|
6562 | DL_LIBS="" |
---|
6563 | LDFLAGS="$LDFLAGS_ORIG" |
---|
6564 | CC_SEARCH_FLAGS="" |
---|
6565 | LD_SEARCH_FLAGS="" |
---|
6566 | BUILD_DLTEST="" |
---|
6567 | fi |
---|
6568 | |
---|
6569 | # If we're running gcc, then change the C flags for compiling shared |
---|
6570 | # libraries to the right flags for gcc, instead of those for the |
---|
6571 | # standard manufacturer compiler. |
---|
6572 | |
---|
6573 | if test "$DL_OBJS" != "tclLoadNone.o" ; then |
---|
6574 | if test "$GCC" = "yes" ; then |
---|
6575 | case $system in |
---|
6576 | AIX-*) |
---|
6577 | ;; |
---|
6578 | BSD/OS*) |
---|
6579 | ;; |
---|
6580 | IRIX*) |
---|
6581 | ;; |
---|
6582 | NetBSD-*|FreeBSD-*|OpenBSD-*) |
---|
6583 | ;; |
---|
6584 | Darwin-*) |
---|
6585 | ;; |
---|
6586 | RISCos-*) |
---|
6587 | ;; |
---|
6588 | SCO_SV-3.2*) |
---|
6589 | ;; |
---|
6590 | ULTRIX-4.*) |
---|
6591 | ;; |
---|
6592 | *) |
---|
6593 | SHLIB_CFLAGS="-fPIC" |
---|
6594 | ;; |
---|
6595 | esac |
---|
6596 | fi |
---|
6597 | fi |
---|
6598 | |
---|
6599 | if test "$SHARED_LIB_SUFFIX" = "" ; then |
---|
6600 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' |
---|
6601 | fi |
---|
6602 | if test "$UNSHARED_LIB_SUFFIX" = "" ; then |
---|
6603 | UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
6604 | fi |
---|
6605 | |
---|
6606 | if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then |
---|
6607 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
---|
6608 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
---|
6609 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
6610 | else |
---|
6611 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
---|
6612 | |
---|
6613 | if test "$RANLIB" = "" ; then |
---|
6614 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
---|
6615 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
6616 | else |
---|
6617 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
---|
6618 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' |
---|
6619 | fi |
---|
6620 | |
---|
6621 | fi |
---|
6622 | |
---|
6623 | |
---|
6624 | # Stub lib does not depend on shared/static configuration |
---|
6625 | if test "$RANLIB" = "" ; then |
---|
6626 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
---|
6627 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' |
---|
6628 | else |
---|
6629 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
---|
6630 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' |
---|
6631 | fi |
---|
6632 | |
---|
6633 | |
---|
6634 | |
---|
6635 | |
---|
6636 | |
---|
6637 | |
---|
6638 | |
---|
6639 | |
---|
6640 | |
---|
6641 | |
---|
6642 | |
---|
6643 | |
---|
6644 | |
---|
6645 | |
---|
6646 | |
---|
6647 | |
---|
6648 | |
---|
6649 | |
---|
6650 | |
---|
6651 | |
---|
6652 | |
---|
6653 | |
---|
6654 | |
---|
6655 | |
---|
6656 | |
---|
6657 | |
---|
6658 | |
---|
6659 | |
---|
6660 | |
---|
6661 | |
---|
6662 | |
---|
6663 | |
---|
6664 | |
---|
6665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 |
---|
6666 | $as_echo_n "checking how to build libraries... " >&6; } |
---|
6667 | # Check whether --enable-shared was given. |
---|
6668 | if test "${enable_shared+set}" = set; then : |
---|
6669 | enableval=$enable_shared; tcl_ok=$enableval |
---|
6670 | else |
---|
6671 | tcl_ok=yes |
---|
6672 | fi |
---|
6673 | |
---|
6674 | |
---|
6675 | if test "${enable_shared+set}" = set; then |
---|
6676 | enableval="$enable_shared" |
---|
6677 | tcl_ok=$enableval |
---|
6678 | else |
---|
6679 | tcl_ok=yes |
---|
6680 | fi |
---|
6681 | |
---|
6682 | if test "$tcl_ok" = "yes" ; then |
---|
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 |
---|
6684 | $as_echo "shared" >&6; } |
---|
6685 | SHARED_BUILD=1 |
---|
6686 | else |
---|
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
---|
6688 | $as_echo "static" >&6; } |
---|
6689 | SHARED_BUILD=0 |
---|
6690 | $as_echo "#define STATIC_BUILD 1" >>confdefs.h |
---|
6691 | |
---|
6692 | fi |
---|
6693 | |
---|
6694 | |
---|
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 |
---|
6696 | $as_echo_n "checking for build with symbols... " >&6; } |
---|
6697 | # Check whether --enable-symbols was given. |
---|
6698 | if test "${enable_symbols+set}" = set; then : |
---|
6699 | enableval=$enable_symbols; tcl_ok=$enableval |
---|
6700 | else |
---|
6701 | tcl_ok=no |
---|
6702 | fi |
---|
6703 | |
---|
6704 | # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. |
---|
6705 | if test "$tcl_ok" = "no"; then |
---|
6706 | CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' |
---|
6707 | LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' |
---|
6708 | DBGX="" |
---|
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6710 | $as_echo "no" >&6; } |
---|
6711 | else |
---|
6712 | CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' |
---|
6713 | LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' |
---|
6714 | DBGX=g |
---|
6715 | if test "$tcl_ok" = "yes"; then |
---|
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 |
---|
6717 | $as_echo "yes (standard debugging)" >&6; } |
---|
6718 | fi |
---|
6719 | fi |
---|
6720 | |
---|
6721 | |
---|
6722 | |
---|
6723 | if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then |
---|
6724 | $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h |
---|
6725 | |
---|
6726 | fi |
---|
6727 | |
---|
6728 | if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then |
---|
6729 | $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h |
---|
6730 | |
---|
6731 | $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h |
---|
6732 | |
---|
6733 | fi |
---|
6734 | |
---|
6735 | if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then |
---|
6736 | if test "$tcl_ok" = "all"; then |
---|
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5 |
---|
6738 | $as_echo "enabled symbols mem compile debugging" >&6; } |
---|
6739 | else |
---|
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 |
---|
6741 | $as_echo "enabled $tcl_ok debugging" >&6; } |
---|
6742 | fi |
---|
6743 | fi |
---|
6744 | |
---|
6745 | |
---|
6746 | if test -f "${exec_prefix}/lib/tclConfig.sh" ; then |
---|
6747 | . ${exec_prefix}/lib/tclConfig.sh |
---|
6748 | fi |
---|
6749 | if test -f "${exec_prefix}/lib/tkConfig.sh" ; then |
---|
6750 | . ${exec_prefix}/lib/tkConfig.sh |
---|
6751 | fi |
---|
6752 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
6753 | |
---|
6754 | # ----------------------------------------------------------------------- |
---|
6755 | # |
---|
6756 | # Compiler characteristics: |
---|
6757 | # Check for existence of types of size_t and pid_t |
---|
6758 | # |
---|
6759 | # ----------------------------------------------------------------------- |
---|
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
6761 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
6762 | if ${ac_cv_c_bigendian+:} false; then : |
---|
6763 | $as_echo_n "(cached) " >&6 |
---|
6764 | else |
---|
6765 | ac_cv_c_bigendian=unknown |
---|
6766 | # See if we're dealing with a universal compiler. |
---|
6767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6768 | /* end confdefs.h. */ |
---|
6769 | #ifndef __APPLE_CC__ |
---|
6770 | not a universal capable compiler |
---|
6771 | #endif |
---|
6772 | typedef int dummy; |
---|
6773 | |
---|
6774 | _ACEOF |
---|
6775 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6776 | |
---|
6777 | # Check for potential -arch flags. It is not universal unless |
---|
6778 | # there are at least two -arch flags with different values. |
---|
6779 | ac_arch= |
---|
6780 | ac_prev= |
---|
6781 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
6782 | if test -n "$ac_prev"; then |
---|
6783 | case $ac_word in |
---|
6784 | i?86 | x86_64 | ppc | ppc64) |
---|
6785 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
6786 | ac_arch=$ac_word |
---|
6787 | else |
---|
6788 | ac_cv_c_bigendian=universal |
---|
6789 | break |
---|
6790 | fi |
---|
6791 | ;; |
---|
6792 | esac |
---|
6793 | ac_prev= |
---|
6794 | elif test "x$ac_word" = "x-arch"; then |
---|
6795 | ac_prev=arch |
---|
6796 | fi |
---|
6797 | done |
---|
6798 | fi |
---|
6799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6800 | if test $ac_cv_c_bigendian = unknown; then |
---|
6801 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
6802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6803 | /* end confdefs.h. */ |
---|
6804 | #include <sys/types.h> |
---|
6805 | #include <sys/param.h> |
---|
6806 | |
---|
6807 | int |
---|
6808 | main () |
---|
6809 | { |
---|
6810 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
6811 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
6812 | && LITTLE_ENDIAN) |
---|
6813 | bogus endian macros |
---|
6814 | #endif |
---|
6815 | |
---|
6816 | ; |
---|
6817 | return 0; |
---|
6818 | } |
---|
6819 | _ACEOF |
---|
6820 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6821 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
6822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6823 | /* end confdefs.h. */ |
---|
6824 | #include <sys/types.h> |
---|
6825 | #include <sys/param.h> |
---|
6826 | |
---|
6827 | int |
---|
6828 | main () |
---|
6829 | { |
---|
6830 | #if BYTE_ORDER != BIG_ENDIAN |
---|
6831 | not big endian |
---|
6832 | #endif |
---|
6833 | |
---|
6834 | ; |
---|
6835 | return 0; |
---|
6836 | } |
---|
6837 | _ACEOF |
---|
6838 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6839 | ac_cv_c_bigendian=yes |
---|
6840 | else |
---|
6841 | ac_cv_c_bigendian=no |
---|
6842 | fi |
---|
6843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6844 | fi |
---|
6845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6846 | fi |
---|
6847 | if test $ac_cv_c_bigendian = unknown; then |
---|
6848 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
6849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6850 | /* end confdefs.h. */ |
---|
6851 | #include <limits.h> |
---|
6852 | |
---|
6853 | int |
---|
6854 | main () |
---|
6855 | { |
---|
6856 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
6857 | bogus endian macros |
---|
6858 | #endif |
---|
6859 | |
---|
6860 | ; |
---|
6861 | return 0; |
---|
6862 | } |
---|
6863 | _ACEOF |
---|
6864 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6865 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
6866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6867 | /* end confdefs.h. */ |
---|
6868 | #include <limits.h> |
---|
6869 | |
---|
6870 | int |
---|
6871 | main () |
---|
6872 | { |
---|
6873 | #ifndef _BIG_ENDIAN |
---|
6874 | not big endian |
---|
6875 | #endif |
---|
6876 | |
---|
6877 | ; |
---|
6878 | return 0; |
---|
6879 | } |
---|
6880 | _ACEOF |
---|
6881 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6882 | ac_cv_c_bigendian=yes |
---|
6883 | else |
---|
6884 | ac_cv_c_bigendian=no |
---|
6885 | fi |
---|
6886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6887 | fi |
---|
6888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6889 | fi |
---|
6890 | if test $ac_cv_c_bigendian = unknown; then |
---|
6891 | # Compile a test program. |
---|
6892 | if test "$cross_compiling" = yes; then : |
---|
6893 | # Try to guess by grepping values from an object file. |
---|
6894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6895 | /* end confdefs.h. */ |
---|
6896 | short int ascii_mm[] = |
---|
6897 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
6898 | short int ascii_ii[] = |
---|
6899 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
6900 | int use_ascii (int i) { |
---|
6901 | return ascii_mm[i] + ascii_ii[i]; |
---|
6902 | } |
---|
6903 | short int ebcdic_ii[] = |
---|
6904 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
6905 | short int ebcdic_mm[] = |
---|
6906 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
6907 | int use_ebcdic (int i) { |
---|
6908 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
6909 | } |
---|
6910 | extern int foo; |
---|
6911 | |
---|
6912 | int |
---|
6913 | main () |
---|
6914 | { |
---|
6915 | return use_ascii (foo) == use_ebcdic (foo); |
---|
6916 | ; |
---|
6917 | return 0; |
---|
6918 | } |
---|
6919 | _ACEOF |
---|
6920 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
6921 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
6922 | ac_cv_c_bigendian=yes |
---|
6923 | fi |
---|
6924 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
6925 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
6926 | ac_cv_c_bigendian=no |
---|
6927 | else |
---|
6928 | # finding both strings is unlikely to happen, but who knows? |
---|
6929 | ac_cv_c_bigendian=unknown |
---|
6930 | fi |
---|
6931 | fi |
---|
6932 | fi |
---|
6933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6934 | else |
---|
6935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6936 | /* end confdefs.h. */ |
---|
6937 | $ac_includes_default |
---|
6938 | int |
---|
6939 | main () |
---|
6940 | { |
---|
6941 | |
---|
6942 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
6943 | union |
---|
6944 | { |
---|
6945 | long int l; |
---|
6946 | char c[sizeof (long int)]; |
---|
6947 | } u; |
---|
6948 | u.l = 1; |
---|
6949 | return u.c[sizeof (long int) - 1] == 1; |
---|
6950 | |
---|
6951 | ; |
---|
6952 | return 0; |
---|
6953 | } |
---|
6954 | _ACEOF |
---|
6955 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
6956 | ac_cv_c_bigendian=no |
---|
6957 | else |
---|
6958 | ac_cv_c_bigendian=yes |
---|
6959 | fi |
---|
6960 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
6961 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
6962 | fi |
---|
6963 | |
---|
6964 | fi |
---|
6965 | fi |
---|
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
6967 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
6968 | case $ac_cv_c_bigendian in #( |
---|
6969 | yes) |
---|
6970 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
6971 | ;; #( |
---|
6972 | no) |
---|
6973 | ;; #( |
---|
6974 | universal) |
---|
6975 | |
---|
6976 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
6977 | |
---|
6978 | ;; #( |
---|
6979 | *) |
---|
6980 | as_fn_error $? "unknown endianness |
---|
6981 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
6982 | esac |
---|
6983 | |
---|
6984 | # The cast to long int works around a bug in the HP C Compiler |
---|
6985 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
6986 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
6987 | # This bug is HP SR number 8606223364. |
---|
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
---|
6989 | $as_echo_n "checking size of int... " >&6; } |
---|
6990 | if ${ac_cv_sizeof_int+:} false; then : |
---|
6991 | $as_echo_n "(cached) " >&6 |
---|
6992 | else |
---|
6993 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
---|
6994 | |
---|
6995 | else |
---|
6996 | if test "$ac_cv_type_int" = yes; then |
---|
6997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
6998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
6999 | as_fn_error 77 "cannot compute sizeof (int) |
---|
7000 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7001 | else |
---|
7002 | ac_cv_sizeof_int=0 |
---|
7003 | fi |
---|
7004 | fi |
---|
7005 | |
---|
7006 | fi |
---|
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
---|
7008 | $as_echo "$ac_cv_sizeof_int" >&6; } |
---|
7009 | |
---|
7010 | |
---|
7011 | |
---|
7012 | cat >>confdefs.h <<_ACEOF |
---|
7013 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
7014 | _ACEOF |
---|
7015 | |
---|
7016 | |
---|
7017 | # The cast to long int works around a bug in the HP C Compiler |
---|
7018 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7019 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7020 | # This bug is HP SR number 8606223364. |
---|
7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
---|
7022 | $as_echo_n "checking size of long... " >&6; } |
---|
7023 | if ${ac_cv_sizeof_long+:} false; then : |
---|
7024 | $as_echo_n "(cached) " >&6 |
---|
7025 | else |
---|
7026 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
---|
7027 | |
---|
7028 | else |
---|
7029 | if test "$ac_cv_type_long" = yes; then |
---|
7030 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7031 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7032 | as_fn_error 77 "cannot compute sizeof (long) |
---|
7033 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7034 | else |
---|
7035 | ac_cv_sizeof_long=0 |
---|
7036 | fi |
---|
7037 | fi |
---|
7038 | |
---|
7039 | fi |
---|
7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
---|
7041 | $as_echo "$ac_cv_sizeof_long" >&6; } |
---|
7042 | |
---|
7043 | |
---|
7044 | |
---|
7045 | cat >>confdefs.h <<_ACEOF |
---|
7046 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
7047 | _ACEOF |
---|
7048 | |
---|
7049 | |
---|
7050 | # The cast to long int works around a bug in the HP C Compiler |
---|
7051 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7052 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7053 | # This bug is HP SR number 8606223364. |
---|
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
---|
7055 | $as_echo_n "checking size of long long... " >&6; } |
---|
7056 | if ${ac_cv_sizeof_long_long+:} false; then : |
---|
7057 | $as_echo_n "(cached) " >&6 |
---|
7058 | else |
---|
7059 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
---|
7060 | |
---|
7061 | else |
---|
7062 | if test "$ac_cv_type_long_long" = yes; then |
---|
7063 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7064 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7065 | as_fn_error 77 "cannot compute sizeof (long long) |
---|
7066 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7067 | else |
---|
7068 | ac_cv_sizeof_long_long=0 |
---|
7069 | fi |
---|
7070 | fi |
---|
7071 | |
---|
7072 | fi |
---|
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
---|
7074 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
---|
7075 | |
---|
7076 | |
---|
7077 | |
---|
7078 | cat >>confdefs.h <<_ACEOF |
---|
7079 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
---|
7080 | _ACEOF |
---|
7081 | |
---|
7082 | |
---|
7083 | # The cast to long int works around a bug in the HP C Compiler |
---|
7084 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7085 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7086 | # This bug is HP SR number 8606223364. |
---|
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
---|
7088 | $as_echo_n "checking size of void *... " >&6; } |
---|
7089 | if ${ac_cv_sizeof_void_p+:} false; then : |
---|
7090 | $as_echo_n "(cached) " >&6 |
---|
7091 | else |
---|
7092 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
---|
7093 | |
---|
7094 | else |
---|
7095 | if test "$ac_cv_type_void_p" = yes; then |
---|
7096 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7097 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7098 | as_fn_error 77 "cannot compute sizeof (void *) |
---|
7099 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7100 | else |
---|
7101 | ac_cv_sizeof_void_p=0 |
---|
7102 | fi |
---|
7103 | fi |
---|
7104 | |
---|
7105 | fi |
---|
7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
---|
7107 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
---|
7108 | |
---|
7109 | |
---|
7110 | |
---|
7111 | cat >>confdefs.h <<_ACEOF |
---|
7112 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
---|
7113 | _ACEOF |
---|
7114 | |
---|
7115 | |
---|
7116 | |
---|
7117 | SIZEOF_LONG="${ac_cv_sizeof_long}" |
---|
7118 | SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" |
---|
7119 | SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" |
---|
7120 | SIZEOF_INT="${ac_cv_sizeof_int}" |
---|
7121 | |
---|
7122 | #-------------------------------------------------------------------- |
---|
7123 | # search for ffmpeg libraries libavcodec, libavformat, libswscale |
---|
7124 | #-------------------------------------------------------------------- |
---|
7125 | if test "${with_ffmpeg}" = "yes" ; then |
---|
7126 | # Extract the first word of "ffmpeg", so it can be a program name with args. |
---|
7127 | set dummy ffmpeg; ac_word=$2 |
---|
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7129 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7130 | if ${ac_cv_path_FFMPEG+:} false; then : |
---|
7131 | $as_echo_n "(cached) " >&6 |
---|
7132 | else |
---|
7133 | case $FFMPEG in |
---|
7134 | [\\/]* | ?:[\\/]*) |
---|
7135 | ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path. |
---|
7136 | ;; |
---|
7137 | *) |
---|
7138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7139 | for as_dir in $PATH |
---|
7140 | do |
---|
7141 | IFS=$as_save_IFS |
---|
7142 | test -z "$as_dir" && as_dir=. |
---|
7143 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7144 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7145 | ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext" |
---|
7146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7147 | break 2 |
---|
7148 | fi |
---|
7149 | done |
---|
7150 | done |
---|
7151 | IFS=$as_save_IFS |
---|
7152 | |
---|
7153 | ;; |
---|
7154 | esac |
---|
7155 | fi |
---|
7156 | FFMPEG=$ac_cv_path_FFMPEG |
---|
7157 | if test -n "$FFMPEG"; then |
---|
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5 |
---|
7159 | $as_echo "$FFMPEG" >&6; } |
---|
7160 | else |
---|
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7162 | $as_echo "no" >&6; } |
---|
7163 | fi |
---|
7164 | |
---|
7165 | |
---|
7166 | else |
---|
7167 | # Extract the first word of "ffmpeg", so it can be a program name with args. |
---|
7168 | set dummy ffmpeg; ac_word=$2 |
---|
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
7170 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
7171 | if ${ac_cv_path_FFMPEG+:} false; then : |
---|
7172 | $as_echo_n "(cached) " >&6 |
---|
7173 | else |
---|
7174 | case $FFMPEG in |
---|
7175 | [\\/]* | ?:[\\/]*) |
---|
7176 | ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path. |
---|
7177 | ;; |
---|
7178 | *) |
---|
7179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7180 | as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}" |
---|
7181 | for as_dir in $as_dummy |
---|
7182 | do |
---|
7183 | IFS=$as_save_IFS |
---|
7184 | test -z "$as_dir" && as_dir=. |
---|
7185 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7187 | ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext" |
---|
7188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7189 | break 2 |
---|
7190 | fi |
---|
7191 | done |
---|
7192 | done |
---|
7193 | IFS=$as_save_IFS |
---|
7194 | |
---|
7195 | ;; |
---|
7196 | esac |
---|
7197 | fi |
---|
7198 | FFMPEG=$ac_cv_path_FFMPEG |
---|
7199 | if test -n "$FFMPEG"; then |
---|
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5 |
---|
7201 | $as_echo "$FFMPEG" >&6; } |
---|
7202 | else |
---|
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7204 | $as_echo "no" >&6; } |
---|
7205 | fi |
---|
7206 | |
---|
7207 | |
---|
7208 | fi |
---|
7209 | if test "${FFMPEG}x" != "x" ; then |
---|
7210 | |
---|
7211 | $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h |
---|
7212 | |
---|
7213 | fi |
---|
7214 | |
---|
7215 | for ac_header in ffmpeg/avcodec.h |
---|
7216 | do : |
---|
7217 | ac_fn_cxx_check_header_mongrel "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default" |
---|
7218 | if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes; then : |
---|
7219 | cat >>confdefs.h <<_ACEOF |
---|
7220 | #define HAVE_FFMPEG_AVCODEC_H 1 |
---|
7221 | _ACEOF |
---|
7222 | |
---|
7223 | fi |
---|
7224 | |
---|
7225 | done |
---|
7226 | |
---|
7227 | for ac_header in libavcodec/avcodec.h |
---|
7228 | do : |
---|
7229 | ac_fn_cxx_check_header_mongrel "$LINENO" "libavcodec/avcodec.h" "ac_cv_header_libavcodec_avcodec_h" "$ac_includes_default" |
---|
7230 | if test "x$ac_cv_header_libavcodec_avcodec_h" = xyes; then : |
---|
7231 | cat >>confdefs.h <<_ACEOF |
---|
7232 | #define HAVE_LIBAVCODEC_AVCODEC_H 1 |
---|
7233 | _ACEOF |
---|
7234 | |
---|
7235 | fi |
---|
7236 | |
---|
7237 | done |
---|
7238 | |
---|
7239 | for ac_header in ffmpeg/avformat.h |
---|
7240 | do : |
---|
7241 | ac_fn_cxx_check_header_mongrel "$LINENO" "ffmpeg/avformat.h" "ac_cv_header_ffmpeg_avformat_h" "$ac_includes_default" |
---|
7242 | if test "x$ac_cv_header_ffmpeg_avformat_h" = xyes; then : |
---|
7243 | cat >>confdefs.h <<_ACEOF |
---|
7244 | #define HAVE_FFMPEG_AVFORMAT_H 1 |
---|
7245 | _ACEOF |
---|
7246 | |
---|
7247 | fi |
---|
7248 | |
---|
7249 | done |
---|
7250 | |
---|
7251 | for ac_header in libavformat/avformat.h |
---|
7252 | do : |
---|
7253 | ac_fn_cxx_check_header_mongrel "$LINENO" "libavformat/avformat.h" "ac_cv_header_libavformat_avformat_h" "$ac_includes_default" |
---|
7254 | if test "x$ac_cv_header_libavformat_avformat_h" = xyes; then : |
---|
7255 | cat >>confdefs.h <<_ACEOF |
---|
7256 | #define HAVE_LIBAVFORMAT_AVFORMAT_H 1 |
---|
7257 | _ACEOF |
---|
7258 | |
---|
7259 | fi |
---|
7260 | |
---|
7261 | done |
---|
7262 | |
---|
7263 | for ac_header in ffmpeg/avutil.h |
---|
7264 | do : |
---|
7265 | ac_fn_cxx_check_header_mongrel "$LINENO" "ffmpeg/avutil.h" "ac_cv_header_ffmpeg_avutil_h" "$ac_includes_default" |
---|
7266 | if test "x$ac_cv_header_ffmpeg_avutil_h" = xyes; then : |
---|
7267 | cat >>confdefs.h <<_ACEOF |
---|
7268 | #define HAVE_FFMPEG_AVUTIL_H 1 |
---|
7269 | _ACEOF |
---|
7270 | |
---|
7271 | fi |
---|
7272 | |
---|
7273 | done |
---|
7274 | |
---|
7275 | for ac_header in libavutil/avutil.h |
---|
7276 | do : |
---|
7277 | ac_fn_cxx_check_header_mongrel "$LINENO" "libavutil/avutil.h" "ac_cv_header_libavutil_avutil_h" "$ac_includes_default" |
---|
7278 | if test "x$ac_cv_header_libavutil_avutil_h" = xyes; then : |
---|
7279 | cat >>confdefs.h <<_ACEOF |
---|
7280 | #define HAVE_LIBAVUTIL_AVUTIL_H 1 |
---|
7281 | _ACEOF |
---|
7282 | |
---|
7283 | fi |
---|
7284 | |
---|
7285 | done |
---|
7286 | |
---|
7287 | for ac_header in libavutil/mathematics.h |
---|
7288 | do : |
---|
7289 | ac_fn_cxx_check_header_mongrel "$LINENO" "libavutil/mathematics.h" "ac_cv_header_libavutil_mathematics_h" "$ac_includes_default" |
---|
7290 | if test "x$ac_cv_header_libavutil_mathematics_h" = xyes; then : |
---|
7291 | cat >>confdefs.h <<_ACEOF |
---|
7292 | #define HAVE_LIBAVUTIL_MATHEMATICS_H 1 |
---|
7293 | _ACEOF |
---|
7294 | |
---|
7295 | fi |
---|
7296 | |
---|
7297 | done |
---|
7298 | |
---|
7299 | for ac_header in ffmpeg/swscale.h |
---|
7300 | do : |
---|
7301 | ac_fn_cxx_check_header_mongrel "$LINENO" "ffmpeg/swscale.h" "ac_cv_header_ffmpeg_swscale_h" "$ac_includes_default" |
---|
7302 | if test "x$ac_cv_header_ffmpeg_swscale_h" = xyes; then : |
---|
7303 | cat >>confdefs.h <<_ACEOF |
---|
7304 | #define HAVE_FFMPEG_SWSCALE_H 1 |
---|
7305 | _ACEOF |
---|
7306 | |
---|
7307 | fi |
---|
7308 | |
---|
7309 | done |
---|
7310 | |
---|
7311 | for ac_header in libswscale/swscale.h |
---|
7312 | do : |
---|
7313 | ac_fn_cxx_check_header_mongrel "$LINENO" "libswscale/swscale.h" "ac_cv_header_libswscale_swscale_h" "$ac_includes_default" |
---|
7314 | if test "x$ac_cv_header_libswscale_swscale_h" = xyes; then : |
---|
7315 | cat >>confdefs.h <<_ACEOF |
---|
7316 | #define HAVE_LIBSWSCALE_SWSCALE_H 1 |
---|
7317 | _ACEOF |
---|
7318 | |
---|
7319 | fi |
---|
7320 | |
---|
7321 | done |
---|
7322 | |
---|
7323 | |
---|
7324 | HAVE_FFMPEG_LIBS="" |
---|
7325 | if test "${with_ffmpeg}" != "no"; then |
---|
7326 | if [ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \ |
---|
7327 | "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \ |
---|
7328 | \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \ |
---|
7329 | "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \ |
---|
7330 | \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \ |
---|
7331 | "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \ |
---|
7332 | \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \ |
---|
7333 | "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ] ; then |
---|
7334 | HAVE_FFMPEG_LIBS="yes" |
---|
7335 | |
---|
7336 | $as_echo "#define BUILD_with_ffmpeg 1" >>confdefs.h |
---|
7337 | |
---|
7338 | fi |
---|
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5 |
---|
7340 | $as_echo_n "checking for main in -lavcodec... " >&6; } |
---|
7341 | if ${ac_cv_lib_avcodec_main+:} false; then : |
---|
7342 | $as_echo_n "(cached) " >&6 |
---|
7343 | else |
---|
7344 | ac_check_lib_save_LIBS=$LIBS |
---|
7345 | LIBS="-lavcodec $LIBS" |
---|
7346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7347 | /* end confdefs.h. */ |
---|
7348 | |
---|
7349 | |
---|
7350 | int |
---|
7351 | main () |
---|
7352 | { |
---|
7353 | return main (); |
---|
7354 | ; |
---|
7355 | return 0; |
---|
7356 | } |
---|
7357 | _ACEOF |
---|
7358 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7359 | ac_cv_lib_avcodec_main=yes |
---|
7360 | else |
---|
7361 | ac_cv_lib_avcodec_main=no |
---|
7362 | fi |
---|
7363 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7364 | conftest$ac_exeext conftest.$ac_ext |
---|
7365 | LIBS=$ac_check_lib_save_LIBS |
---|
7366 | fi |
---|
7367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5 |
---|
7368 | $as_echo "$ac_cv_lib_avcodec_main" >&6; } |
---|
7369 | if test "x$ac_cv_lib_avcodec_main" = xyes; then : |
---|
7370 | cat >>confdefs.h <<_ACEOF |
---|
7371 | #define HAVE_LIBAVCODEC 1 |
---|
7372 | _ACEOF |
---|
7373 | |
---|
7374 | LIBS="-lavcodec $LIBS" |
---|
7375 | |
---|
7376 | else |
---|
7377 | as_fn_error $? "librappture requires libavcodec" "$LINENO" 5 |
---|
7378 | fi |
---|
7379 | |
---|
7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5 |
---|
7381 | $as_echo_n "checking for main in -lavutil... " >&6; } |
---|
7382 | if ${ac_cv_lib_avutil_main+:} false; then : |
---|
7383 | $as_echo_n "(cached) " >&6 |
---|
7384 | else |
---|
7385 | ac_check_lib_save_LIBS=$LIBS |
---|
7386 | LIBS="-lavutil $LIBS" |
---|
7387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7388 | /* end confdefs.h. */ |
---|
7389 | |
---|
7390 | |
---|
7391 | int |
---|
7392 | main () |
---|
7393 | { |
---|
7394 | return main (); |
---|
7395 | ; |
---|
7396 | return 0; |
---|
7397 | } |
---|
7398 | _ACEOF |
---|
7399 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7400 | ac_cv_lib_avutil_main=yes |
---|
7401 | else |
---|
7402 | ac_cv_lib_avutil_main=no |
---|
7403 | fi |
---|
7404 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7405 | conftest$ac_exeext conftest.$ac_ext |
---|
7406 | LIBS=$ac_check_lib_save_LIBS |
---|
7407 | fi |
---|
7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5 |
---|
7409 | $as_echo "$ac_cv_lib_avutil_main" >&6; } |
---|
7410 | if test "x$ac_cv_lib_avutil_main" = xyes; then : |
---|
7411 | cat >>confdefs.h <<_ACEOF |
---|
7412 | #define HAVE_LIBAVUTIL 1 |
---|
7413 | _ACEOF |
---|
7414 | |
---|
7415 | LIBS="-lavutil $LIBS" |
---|
7416 | |
---|
7417 | else |
---|
7418 | as_fn_error $? "librappture requires libavutil" "$LINENO" 5 |
---|
7419 | fi |
---|
7420 | |
---|
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5 |
---|
7422 | $as_echo_n "checking for main in -lavformat... " >&6; } |
---|
7423 | if ${ac_cv_lib_avformat_main+:} false; then : |
---|
7424 | $as_echo_n "(cached) " >&6 |
---|
7425 | else |
---|
7426 | ac_check_lib_save_LIBS=$LIBS |
---|
7427 | LIBS="-lavformat $LIBS" |
---|
7428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7429 | /* end confdefs.h. */ |
---|
7430 | |
---|
7431 | |
---|
7432 | int |
---|
7433 | main () |
---|
7434 | { |
---|
7435 | return main (); |
---|
7436 | ; |
---|
7437 | return 0; |
---|
7438 | } |
---|
7439 | _ACEOF |
---|
7440 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7441 | ac_cv_lib_avformat_main=yes |
---|
7442 | else |
---|
7443 | ac_cv_lib_avformat_main=no |
---|
7444 | fi |
---|
7445 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7446 | conftest$ac_exeext conftest.$ac_ext |
---|
7447 | LIBS=$ac_check_lib_save_LIBS |
---|
7448 | fi |
---|
7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5 |
---|
7450 | $as_echo "$ac_cv_lib_avformat_main" >&6; } |
---|
7451 | if test "x$ac_cv_lib_avformat_main" = xyes; then : |
---|
7452 | cat >>confdefs.h <<_ACEOF |
---|
7453 | #define HAVE_LIBAVFORMAT 1 |
---|
7454 | _ACEOF |
---|
7455 | |
---|
7456 | LIBS="-lavformat $LIBS" |
---|
7457 | |
---|
7458 | else |
---|
7459 | as_fn_error $? "librappture requires libavformat" "$LINENO" 5 |
---|
7460 | fi |
---|
7461 | |
---|
7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5 |
---|
7463 | $as_echo_n "checking for main in -lswscale... " >&6; } |
---|
7464 | if ${ac_cv_lib_swscale_main+:} false; then : |
---|
7465 | $as_echo_n "(cached) " >&6 |
---|
7466 | else |
---|
7467 | ac_check_lib_save_LIBS=$LIBS |
---|
7468 | LIBS="-lswscale $LIBS" |
---|
7469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7470 | /* end confdefs.h. */ |
---|
7471 | |
---|
7472 | |
---|
7473 | int |
---|
7474 | main () |
---|
7475 | { |
---|
7476 | return main (); |
---|
7477 | ; |
---|
7478 | return 0; |
---|
7479 | } |
---|
7480 | _ACEOF |
---|
7481 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7482 | ac_cv_lib_swscale_main=yes |
---|
7483 | else |
---|
7484 | ac_cv_lib_swscale_main=no |
---|
7485 | fi |
---|
7486 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7487 | conftest$ac_exeext conftest.$ac_ext |
---|
7488 | LIBS=$ac_check_lib_save_LIBS |
---|
7489 | fi |
---|
7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5 |
---|
7491 | $as_echo "$ac_cv_lib_swscale_main" >&6; } |
---|
7492 | if test "x$ac_cv_lib_swscale_main" = xyes; then : |
---|
7493 | cat >>confdefs.h <<_ACEOF |
---|
7494 | #define HAVE_LIBSWSCALE 1 |
---|
7495 | _ACEOF |
---|
7496 | |
---|
7497 | LIBS="-lswscale $LIBS" |
---|
7498 | |
---|
7499 | fi |
---|
7500 | |
---|
7501 | for ac_func in av_find_stream_info |
---|
7502 | do : |
---|
7503 | ac_fn_cxx_check_func "$LINENO" "av_find_stream_info" "ac_cv_func_av_find_stream_info" |
---|
7504 | if test "x$ac_cv_func_av_find_stream_info" = xyes; then : |
---|
7505 | cat >>confdefs.h <<_ACEOF |
---|
7506 | #define HAVE_AV_FIND_STREAM_INFO 1 |
---|
7507 | _ACEOF |
---|
7508 | |
---|
7509 | fi |
---|
7510 | done |
---|
7511 | |
---|
7512 | for ac_func in av_open_input_file |
---|
7513 | do : |
---|
7514 | ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file" |
---|
7515 | if test "x$ac_cv_func_av_open_input_file" = xyes; then : |
---|
7516 | cat >>confdefs.h <<_ACEOF |
---|
7517 | #define HAVE_AV_OPEN_INPUT_FILE 1 |
---|
7518 | _ACEOF |
---|
7519 | |
---|
7520 | fi |
---|
7521 | done |
---|
7522 | |
---|
7523 | for ac_func in avcodec_decode_video |
---|
7524 | do : |
---|
7525 | ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video" |
---|
7526 | if test "x$ac_cv_func_avcodec_decode_video" = xyes; then : |
---|
7527 | cat >>confdefs.h <<_ACEOF |
---|
7528 | #define HAVE_AVCODEC_DECODE_VIDEO 1 |
---|
7529 | _ACEOF |
---|
7530 | |
---|
7531 | fi |
---|
7532 | done |
---|
7533 | |
---|
7534 | for ac_func in avcodec_decode_video2 |
---|
7535 | do : |
---|
7536 | ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2" |
---|
7537 | if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then : |
---|
7538 | cat >>confdefs.h <<_ACEOF |
---|
7539 | #define HAVE_AVCODEC_DECODE_VIDEO2 1 |
---|
7540 | _ACEOF |
---|
7541 | |
---|
7542 | fi |
---|
7543 | done |
---|
7544 | |
---|
7545 | for ac_func in avcodec_open |
---|
7546 | do : |
---|
7547 | ac_fn_cxx_check_func "$LINENO" "avcodec_open" "ac_cv_func_avcodec_open" |
---|
7548 | if test "x$ac_cv_func_avcodec_open" = xyes; then : |
---|
7549 | cat >>confdefs.h <<_ACEOF |
---|
7550 | #define HAVE_AVCODEC_OPEN 1 |
---|
7551 | _ACEOF |
---|
7552 | |
---|
7553 | fi |
---|
7554 | done |
---|
7555 | |
---|
7556 | for ac_func in avcodec_open2 |
---|
7557 | do : |
---|
7558 | ac_fn_cxx_check_func "$LINENO" "avcodec_open2" "ac_cv_func_avcodec_open2" |
---|
7559 | if test "x$ac_cv_func_avcodec_open2" = xyes; then : |
---|
7560 | cat >>confdefs.h <<_ACEOF |
---|
7561 | #define HAVE_AVCODEC_OPEN2 1 |
---|
7562 | _ACEOF |
---|
7563 | |
---|
7564 | fi |
---|
7565 | done |
---|
7566 | |
---|
7567 | for ac_func in avformat_find_stream_info |
---|
7568 | do : |
---|
7569 | ac_fn_cxx_check_func "$LINENO" "avformat_find_stream_info" "ac_cv_func_avformat_find_stream_info" |
---|
7570 | if test "x$ac_cv_func_avformat_find_stream_info" = xyes; then : |
---|
7571 | cat >>confdefs.h <<_ACEOF |
---|
7572 | #define HAVE_AVFORMAT_FIND_STREAM_INFO 1 |
---|
7573 | _ACEOF |
---|
7574 | |
---|
7575 | fi |
---|
7576 | done |
---|
7577 | |
---|
7578 | for ac_func in avformat_open_input |
---|
7579 | do : |
---|
7580 | ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input" |
---|
7581 | if test "x$ac_cv_func_avformat_open_input" = xyes; then : |
---|
7582 | cat >>confdefs.h <<_ACEOF |
---|
7583 | #define HAVE_AVFORMAT_OPEN_INPUT 1 |
---|
7584 | _ACEOF |
---|
7585 | |
---|
7586 | fi |
---|
7587 | done |
---|
7588 | |
---|
7589 | for ac_func in avio_close |
---|
7590 | do : |
---|
7591 | ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close" |
---|
7592 | if test "x$ac_cv_func_avio_close" = xyes; then : |
---|
7593 | cat >>confdefs.h <<_ACEOF |
---|
7594 | #define HAVE_AVIO_CLOSE 1 |
---|
7595 | _ACEOF |
---|
7596 | |
---|
7597 | fi |
---|
7598 | done |
---|
7599 | |
---|
7600 | for ac_func in img_convert |
---|
7601 | do : |
---|
7602 | ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert" |
---|
7603 | if test "x$ac_cv_func_img_convert" = xyes; then : |
---|
7604 | cat >>confdefs.h <<_ACEOF |
---|
7605 | #define HAVE_IMG_CONVERT 1 |
---|
7606 | _ACEOF |
---|
7607 | |
---|
7608 | fi |
---|
7609 | done |
---|
7610 | |
---|
7611 | for ac_func in sws_getCachedContext |
---|
7612 | do : |
---|
7613 | ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext" |
---|
7614 | if test "x$ac_cv_func_sws_getCachedContext" = xyes; then : |
---|
7615 | cat >>confdefs.h <<_ACEOF |
---|
7616 | #define HAVE_SWS_GETCACHEDCONTEXT 1 |
---|
7617 | _ACEOF |
---|
7618 | |
---|
7619 | fi |
---|
7620 | done |
---|
7621 | |
---|
7622 | for ac_func in sws_scale |
---|
7623 | do : |
---|
7624 | ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale" |
---|
7625 | if test "x$ac_cv_func_sws_scale" = xyes; then : |
---|
7626 | cat >>confdefs.h <<_ACEOF |
---|
7627 | #define HAVE_SWS_SCALE 1 |
---|
7628 | _ACEOF |
---|
7629 | |
---|
7630 | fi |
---|
7631 | done |
---|
7632 | |
---|
7633 | for ac_func in url_close |
---|
7634 | do : |
---|
7635 | ac_fn_cxx_check_func "$LINENO" "url_close" "ac_cv_func_url_close" |
---|
7636 | if test "x$ac_cv_func_url_close" = xyes; then : |
---|
7637 | cat >>confdefs.h <<_ACEOF |
---|
7638 | #define HAVE_URL_CLOSE 1 |
---|
7639 | _ACEOF |
---|
7640 | |
---|
7641 | fi |
---|
7642 | done |
---|
7643 | |
---|
7644 | for ac_func in av_close_input_file |
---|
7645 | do : |
---|
7646 | ac_fn_cxx_check_func "$LINENO" "av_close_input_file" "ac_cv_func_av_close_input_file" |
---|
7647 | if test "x$ac_cv_func_av_close_input_file" = xyes; then : |
---|
7648 | cat >>confdefs.h <<_ACEOF |
---|
7649 | #define HAVE_AV_CLOSE_INPUT_FILE 1 |
---|
7650 | _ACEOF |
---|
7651 | |
---|
7652 | fi |
---|
7653 | done |
---|
7654 | |
---|
7655 | for ac_func in avformat_close_input |
---|
7656 | do : |
---|
7657 | ac_fn_cxx_check_func "$LINENO" "avformat_close_input" "ac_cv_func_avformat_close_input" |
---|
7658 | if test "x$ac_cv_func_avformat_close_input" = xyes; then : |
---|
7659 | cat >>confdefs.h <<_ACEOF |
---|
7660 | #define HAVE_AVFORMAT_CLOSE_INPUT 1 |
---|
7661 | _ACEOF |
---|
7662 | |
---|
7663 | fi |
---|
7664 | done |
---|
7665 | |
---|
7666 | |
---|
7667 | ac_fn_cxx_check_func "$LINENO" "avcodec_find_decoder" "ac_cv_func_avcodec_find_decoder" |
---|
7668 | if test "x$ac_cv_func_avcodec_find_decoder" = xyes; then : |
---|
7669 | |
---|
7670 | else |
---|
7671 | as_fn_error $? "oops! no av_codec_find_decoder ?!?" "$LINENO" 5 |
---|
7672 | fi |
---|
7673 | |
---|
7674 | ac_fn_cxx_check_func "$LINENO" "avcodec_alloc_frame" "ac_cv_func_avcodec_alloc_frame" |
---|
7675 | if test "x$ac_cv_func_avcodec_alloc_frame" = xyes; then : |
---|
7676 | |
---|
7677 | else |
---|
7678 | as_fn_error $? "oops! no avcode_alloc_frame ?!?" "$LINENO" 5 |
---|
7679 | fi |
---|
7680 | |
---|
7681 | ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q" |
---|
7682 | if test "x$ac_cv_func_av_rescale_q" = xyes; then : |
---|
7683 | |
---|
7684 | else |
---|
7685 | as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5 |
---|
7686 | fi |
---|
7687 | |
---|
7688 | ac_fn_cxx_check_func "$LINENO" "av_read_frame" "ac_cv_func_av_read_frame" |
---|
7689 | if test "x$ac_cv_func_av_read_frame" = xyes; then : |
---|
7690 | |
---|
7691 | else |
---|
7692 | as_fn_error $? "oops! av_read_frame ?!?" "$LINENO" 5 |
---|
7693 | fi |
---|
7694 | |
---|
7695 | ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free" |
---|
7696 | if test "x$ac_cv_func_av_free" = xyes; then : |
---|
7697 | |
---|
7698 | else |
---|
7699 | as_fn_error $? "oops! no av_frame ?!?" "$LINENO" 5 |
---|
7700 | fi |
---|
7701 | |
---|
7702 | ac_fn_cxx_check_func "$LINENO" "avcodec_default_release_buffer" "ac_cv_func_avcodec_default_release_buffer" |
---|
7703 | if test "x$ac_cv_func_avcodec_default_release_buffer" = xyes; then : |
---|
7704 | |
---|
7705 | else |
---|
7706 | as_fn_error $? "oops! no avcode_default_release_buffer ?!?" "$LINENO" 5 |
---|
7707 | fi |
---|
7708 | |
---|
7709 | ac_fn_cxx_check_func "$LINENO" "avpicture_get_size" "ac_cv_func_avpicture_get_size" |
---|
7710 | if test "x$ac_cv_func_avpicture_get_size" = xyes; then : |
---|
7711 | |
---|
7712 | else |
---|
7713 | as_fn_error $? "oops! no avpicture_get_size ?!?" "$LINENO" 5 |
---|
7714 | fi |
---|
7715 | |
---|
7716 | ac_fn_cxx_check_func "$LINENO" "avpicture_fill" "ac_cv_func_avpicture_fill" |
---|
7717 | if test "x$ac_cv_func_avpicture_fill" = xyes; then : |
---|
7718 | |
---|
7719 | else |
---|
7720 | as_fn_error $? "oops! no avpicture_fill ?!?" "$LINENO" 5 |
---|
7721 | fi |
---|
7722 | |
---|
7723 | for ac_func in sws_getCachedContext |
---|
7724 | do : |
---|
7725 | ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext" |
---|
7726 | if test "x$ac_cv_func_sws_getCachedContext" = xyes; then : |
---|
7727 | cat >>confdefs.h <<_ACEOF |
---|
7728 | #define HAVE_SWS_GETCACHEDCONTEXT 1 |
---|
7729 | _ACEOF |
---|
7730 | |
---|
7731 | fi |
---|
7732 | done |
---|
7733 | |
---|
7734 | for ac_func in img_convert |
---|
7735 | do : |
---|
7736 | ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert" |
---|
7737 | if test "x$ac_cv_func_img_convert" = xyes; then : |
---|
7738 | cat >>confdefs.h <<_ACEOF |
---|
7739 | #define HAVE_IMG_CONVERT 1 |
---|
7740 | _ACEOF |
---|
7741 | |
---|
7742 | fi |
---|
7743 | done |
---|
7744 | |
---|
7745 | for ac_func in sws_scale |
---|
7746 | do : |
---|
7747 | ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale" |
---|
7748 | if test "x$ac_cv_func_sws_scale" = xyes; then : |
---|
7749 | cat >>confdefs.h <<_ACEOF |
---|
7750 | #define HAVE_SWS_SCALE 1 |
---|
7751 | _ACEOF |
---|
7752 | |
---|
7753 | fi |
---|
7754 | done |
---|
7755 | |
---|
7756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7757 | /* end confdefs.h. */ |
---|
7758 | |
---|
7759 | #define __STDC_CONSTANT_MACROS 1 |
---|
7760 | #include <stdlib.h> |
---|
7761 | #ifdef HAVE_FFMPEG_AVCODEC_H |
---|
7762 | # include <ffmpeg/avcodec.h> |
---|
7763 | #endif |
---|
7764 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
---|
7765 | # include <libavcodec/avcodec.h> |
---|
7766 | #endif |
---|
7767 | int x = AVMEDIA_TYPE_VIDEO; |
---|
7768 | |
---|
7769 | int |
---|
7770 | main () |
---|
7771 | { |
---|
7772 | |
---|
7773 | ; |
---|
7774 | return 0; |
---|
7775 | } |
---|
7776 | _ACEOF |
---|
7777 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7778 | ac_avmedia_type_video="yes" |
---|
7779 | else |
---|
7780 | ac_avmedia_type_video="no" |
---|
7781 | fi |
---|
7782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7783 | if test "$ac_avmedia_type_video" == "yes" ; then |
---|
7784 | |
---|
7785 | $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h |
---|
7786 | |
---|
7787 | fi |
---|
7788 | fi |
---|
7789 | |
---|
7790 | |
---|
7791 | |
---|
7792 | |
---|
7793 | |
---|
7794 | |
---|
7795 | |
---|
7796 | |
---|
7797 | |
---|
7798 | |
---|
7799 | |
---|
7800 | |
---|
7801 | |
---|
7802 | |
---|
7803 | |
---|
7804 | |
---|
7805 | |
---|
7806 | |
---|
7807 | |
---|
7808 | |
---|
7809 | |
---|
7810 | |
---|
7811 | |
---|
7812 | |
---|
7813 | |
---|
7814 | |
---|
7815 | |
---|
7816 | |
---|
7817 | |
---|
7818 | |
---|
7819 | |
---|
7820 | |
---|
7821 | |
---|
7822 | |
---|
7823 | |
---|
7824 | |
---|
7825 | |
---|
7826 | |
---|
7827 | |
---|
7828 | |
---|
7829 | ac_config_files="$ac_config_files Makefile pkgIndex.tcl" |
---|
7830 | |
---|
7831 | cat >confcache <<\_ACEOF |
---|
7832 | # This file is a shell script that caches the results of configure |
---|
7833 | # tests run on this system so they can be shared between configure |
---|
7834 | # scripts and configure runs, see configure's option --config-cache. |
---|
7835 | # It is not useful on other systems. If it contains results you don't |
---|
7836 | # want to keep, you may remove or edit it. |
---|
7837 | # |
---|
7838 | # config.status only pays attention to the cache file if you give it |
---|
7839 | # the --recheck option to rerun configure. |
---|
7840 | # |
---|
7841 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7842 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7843 | # following values. |
---|
7844 | |
---|
7845 | _ACEOF |
---|
7846 | |
---|
7847 | # The following way of writing the cache mishandles newlines in values, |
---|
7848 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7849 | # So, we kill variables containing newlines. |
---|
7850 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7851 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7852 | ( |
---|
7853 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
7854 | eval ac_val=\$$ac_var |
---|
7855 | case $ac_val in #( |
---|
7856 | *${as_nl}*) |
---|
7857 | case $ac_var in #( |
---|
7858 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
7859 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
7860 | esac |
---|
7861 | case $ac_var in #( |
---|
7862 | _ | IFS | as_nl) ;; #( |
---|
7863 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
7864 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
7865 | esac ;; |
---|
7866 | esac |
---|
7867 | done |
---|
7868 | |
---|
7869 | (set) 2>&1 | |
---|
7870 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
7871 | *${as_nl}ac_space=\ *) |
---|
7872 | # `set' does not quote correctly, so add quotes: double-quote |
---|
7873 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
7874 | sed -n \ |
---|
7875 | "s/'/'\\\\''/g; |
---|
7876 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7877 | ;; #( |
---|
7878 | *) |
---|
7879 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7880 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
7881 | ;; |
---|
7882 | esac | |
---|
7883 | sort |
---|
7884 | ) | |
---|
7885 | sed ' |
---|
7886 | /^ac_cv_env_/b end |
---|
7887 | t clear |
---|
7888 | :clear |
---|
7889 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7890 | t end |
---|
7891 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7892 | :end' >>confcache |
---|
7893 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
7894 | if test -w "$cache_file"; then |
---|
7895 | if test "x$cache_file" != "x/dev/null"; then |
---|
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
7897 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
7898 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
7899 | cat confcache >"$cache_file" |
---|
7900 | else |
---|
7901 | case $cache_file in #( |
---|
7902 | */* | ?:*) |
---|
7903 | mv -f confcache "$cache_file"$$ && |
---|
7904 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
7905 | *) |
---|
7906 | mv -f confcache "$cache_file" ;; |
---|
7907 | esac |
---|
7908 | fi |
---|
7909 | fi |
---|
7910 | else |
---|
7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
7912 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
7913 | fi |
---|
7914 | fi |
---|
7915 | rm -f confcache |
---|
7916 | |
---|
7917 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7918 | # Let make expand exec_prefix. |
---|
7919 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7920 | |
---|
7921 | DEFS=-DHAVE_CONFIG_H |
---|
7922 | |
---|
7923 | ac_libobjs= |
---|
7924 | ac_ltlibobjs= |
---|
7925 | U= |
---|
7926 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7927 | # 1. Remove the extension, and $U if already installed. |
---|
7928 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
7929 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
7930 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
7931 | # will be set to the directory where LIBOBJS objects are built. |
---|
7932 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
7933 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
7934 | done |
---|
7935 | LIBOBJS=$ac_libobjs |
---|
7936 | |
---|
7937 | LTLIBOBJS=$ac_ltlibobjs |
---|
7938 | |
---|
7939 | |
---|
7940 | |
---|
7941 | |
---|
7942 | : "${CONFIG_STATUS=./config.status}" |
---|
7943 | ac_write_fail=0 |
---|
7944 | ac_clean_files_save=$ac_clean_files |
---|
7945 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
7947 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7948 | as_write_fail=0 |
---|
7949 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
7950 | #! $SHELL |
---|
7951 | # Generated by $as_me. |
---|
7952 | # Run this file to recreate the current configuration. |
---|
7953 | # Compiler output produced by configure, useful for debugging |
---|
7954 | # configure, is in config.log if it exists. |
---|
7955 | |
---|
7956 | debug=false |
---|
7957 | ac_cs_recheck=false |
---|
7958 | ac_cs_silent=false |
---|
7959 | |
---|
7960 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7961 | export SHELL |
---|
7962 | _ASEOF |
---|
7963 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
7964 | ## -------------------- ## |
---|
7965 | ## M4sh Initialization. ## |
---|
7966 | ## -------------------- ## |
---|
7967 | |
---|
7968 | # Be more Bourne compatible |
---|
7969 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
7970 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
7971 | emulate sh |
---|
7972 | NULLCMD=: |
---|
7973 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
7974 | # is contrary to our usage. Disable this feature. |
---|
7975 | alias -g '${1+"$@"}'='"$@"' |
---|
7976 | setopt NO_GLOB_SUBST |
---|
7977 | else |
---|
7978 | case `(set -o) 2>/dev/null` in #( |
---|
7979 | *posix*) : |
---|
7980 | set -o posix ;; #( |
---|
7981 | *) : |
---|
7982 | ;; |
---|
7983 | esac |
---|
7984 | fi |
---|
7985 | |
---|
7986 | |
---|
7987 | as_nl=' |
---|
7988 | ' |
---|
7989 | export as_nl |
---|
7990 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
7991 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
7992 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
7993 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
7994 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
7995 | # but without wasting forks for bash or zsh. |
---|
7996 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
7997 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
7998 | as_echo='print -r --' |
---|
7999 | as_echo_n='print -rn --' |
---|
8000 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
8001 | as_echo='printf %s\n' |
---|
8002 | as_echo_n='printf %s' |
---|
8003 | else |
---|
8004 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
8005 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
8006 | as_echo_n='/usr/ucb/echo -n' |
---|
8007 | else |
---|
8008 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
8009 | as_echo_n_body='eval |
---|
8010 | arg=$1; |
---|
8011 | case $arg in #( |
---|
8012 | *"$as_nl"*) |
---|
8013 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
8014 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
8015 | esac; |
---|
8016 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
8017 | ' |
---|
8018 | export as_echo_n_body |
---|
8019 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
8020 | fi |
---|
8021 | export as_echo_body |
---|
8022 | as_echo='sh -c $as_echo_body as_echo' |
---|
8023 | fi |
---|
8024 | |
---|
8025 | # The user is always right. |
---|
8026 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8027 | PATH_SEPARATOR=: |
---|
8028 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
8029 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
8030 | PATH_SEPARATOR=';' |
---|
8031 | } |
---|
8032 | fi |
---|
8033 | |
---|
8034 | |
---|
8035 | # IFS |
---|
8036 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
8037 | # there to prevent editors from complaining about space-tab. |
---|
8038 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
8039 | # splitting by setting IFS to empty value.) |
---|
8040 | IFS=" "" $as_nl" |
---|
8041 | |
---|
8042 | # Find who we are. Look in the path if we contain no directory separator. |
---|
8043 | as_myself= |
---|
8044 | case $0 in #(( |
---|
8045 | *[\\/]* ) as_myself=$0 ;; |
---|
8046 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8047 | for as_dir in $PATH |
---|
8048 | do |
---|
8049 | IFS=$as_save_IFS |
---|
8050 | test -z "$as_dir" && as_dir=. |
---|
8051 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
8052 | done |
---|
8053 | IFS=$as_save_IFS |
---|
8054 | |
---|
8055 | ;; |
---|
8056 | esac |
---|
8057 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
8058 | # in which case we are not to be found in the path. |
---|
8059 | if test "x$as_myself" = x; then |
---|
8060 | as_myself=$0 |
---|
8061 | fi |
---|
8062 | if test ! -f "$as_myself"; then |
---|
8063 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
8064 | exit 1 |
---|
8065 | fi |
---|
8066 | |
---|
8067 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
8068 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
8069 | # suppresses any "Segmentation fault" message there. '((' could |
---|
8070 | # trigger a bug in pdksh 5.2.14. |
---|
8071 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
8072 | do eval test x\${$as_var+set} = xset \ |
---|
8073 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
8074 | done |
---|
8075 | PS1='$ ' |
---|
8076 | PS2='> ' |
---|
8077 | PS4='+ ' |
---|
8078 | |
---|
8079 | # NLS nuisances. |
---|
8080 | LC_ALL=C |
---|
8081 | export LC_ALL |
---|
8082 | LANGUAGE=C |
---|
8083 | export LANGUAGE |
---|
8084 | |
---|
8085 | # CDPATH. |
---|
8086 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
8087 | |
---|
8088 | |
---|
8089 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
8090 | # ---------------------------------------- |
---|
8091 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
8092 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
8093 | # script with STATUS, using 1 if that was 0. |
---|
8094 | as_fn_error () |
---|
8095 | { |
---|
8096 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
8097 | if test "$4"; then |
---|
8098 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
8099 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
8100 | fi |
---|
8101 | $as_echo "$as_me: error: $2" >&2 |
---|
8102 | as_fn_exit $as_status |
---|
8103 | } # as_fn_error |
---|
8104 | |
---|
8105 | |
---|
8106 | # as_fn_set_status STATUS |
---|
8107 | # ----------------------- |
---|
8108 | # Set $? to STATUS, without forking. |
---|
8109 | as_fn_set_status () |
---|
8110 | { |
---|
8111 | return $1 |
---|
8112 | } # as_fn_set_status |
---|
8113 | |
---|
8114 | # as_fn_exit STATUS |
---|
8115 | # ----------------- |
---|
8116 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
8117 | as_fn_exit () |
---|
8118 | { |
---|
8119 | set +e |
---|
8120 | as_fn_set_status $1 |
---|
8121 | exit $1 |
---|
8122 | } # as_fn_exit |
---|
8123 | |
---|
8124 | # as_fn_unset VAR |
---|
8125 | # --------------- |
---|
8126 | # Portably unset VAR. |
---|
8127 | as_fn_unset () |
---|
8128 | { |
---|
8129 | { eval $1=; unset $1;} |
---|
8130 | } |
---|
8131 | as_unset=as_fn_unset |
---|
8132 | # as_fn_append VAR VALUE |
---|
8133 | # ---------------------- |
---|
8134 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
8135 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
8136 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
8137 | # implementations. |
---|
8138 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
8139 | eval 'as_fn_append () |
---|
8140 | { |
---|
8141 | eval $1+=\$2 |
---|
8142 | }' |
---|
8143 | else |
---|
8144 | as_fn_append () |
---|
8145 | { |
---|
8146 | eval $1=\$$1\$2 |
---|
8147 | } |
---|
8148 | fi # as_fn_append |
---|
8149 | |
---|
8150 | # as_fn_arith ARG... |
---|
8151 | # ------------------ |
---|
8152 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
8153 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
8154 | # must be portable across $(()) and expr. |
---|
8155 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
8156 | eval 'as_fn_arith () |
---|
8157 | { |
---|
8158 | as_val=$(( $* )) |
---|
8159 | }' |
---|
8160 | else |
---|
8161 | as_fn_arith () |
---|
8162 | { |
---|
8163 | as_val=`expr "$@" || test $? -eq 1` |
---|
8164 | } |
---|
8165 | fi # as_fn_arith |
---|
8166 | |
---|
8167 | |
---|
8168 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
8169 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
8170 | as_expr=expr |
---|
8171 | else |
---|
8172 | as_expr=false |
---|
8173 | fi |
---|
8174 | |
---|
8175 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
8176 | as_basename=basename |
---|
8177 | else |
---|
8178 | as_basename=false |
---|
8179 | fi |
---|
8180 | |
---|
8181 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
8182 | as_dirname=dirname |
---|
8183 | else |
---|
8184 | as_dirname=false |
---|
8185 | fi |
---|
8186 | |
---|
8187 | as_me=`$as_basename -- "$0" || |
---|
8188 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8189 | X"$0" : 'X\(//\)$' \| \ |
---|
8190 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
8191 | $as_echo X/"$0" | |
---|
8192 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
8193 | s//\1/ |
---|
8194 | q |
---|
8195 | } |
---|
8196 | /^X\/\(\/\/\)$/{ |
---|
8197 | s//\1/ |
---|
8198 | q |
---|
8199 | } |
---|
8200 | /^X\/\(\/\).*/{ |
---|
8201 | s//\1/ |
---|
8202 | q |
---|
8203 | } |
---|
8204 | s/.*/./; q'` |
---|
8205 | |
---|
8206 | # Avoid depending upon Character Ranges. |
---|
8207 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8208 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8209 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8210 | as_cr_digits='0123456789' |
---|
8211 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8212 | |
---|
8213 | ECHO_C= ECHO_N= ECHO_T= |
---|
8214 | case `echo -n x` in #((((( |
---|
8215 | -n*) |
---|
8216 | case `echo 'xy\c'` in |
---|
8217 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
8218 | xy) ECHO_C='\c';; |
---|
8219 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
8220 | ECHO_T=' ';; |
---|
8221 | esac;; |
---|
8222 | *) |
---|
8223 | ECHO_N='-n';; |
---|
8224 | esac |
---|
8225 | |
---|
8226 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8227 | if test -d conf$$.dir; then |
---|
8228 | rm -f conf$$.dir/conf$$.file |
---|
8229 | else |
---|
8230 | rm -f conf$$.dir |
---|
8231 | mkdir conf$$.dir 2>/dev/null |
---|
8232 | fi |
---|
8233 | if (echo >conf$$.file) 2>/dev/null; then |
---|
8234 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8235 | as_ln_s='ln -s' |
---|
8236 | # ... but there are two gotchas: |
---|
8237 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
8238 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
8239 | # In both cases, we have to default to `cp -pR'. |
---|
8240 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
8241 | as_ln_s='cp -pR' |
---|
8242 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8243 | as_ln_s=ln |
---|
8244 | else |
---|
8245 | as_ln_s='cp -pR' |
---|
8246 | fi |
---|
8247 | else |
---|
8248 | as_ln_s='cp -pR' |
---|
8249 | fi |
---|
8250 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
8251 | rmdir conf$$.dir 2>/dev/null |
---|
8252 | |
---|
8253 | |
---|
8254 | # as_fn_mkdir_p |
---|
8255 | # ------------- |
---|
8256 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
8257 | as_fn_mkdir_p () |
---|
8258 | { |
---|
8259 | |
---|
8260 | case $as_dir in #( |
---|
8261 | -*) as_dir=./$as_dir;; |
---|
8262 | esac |
---|
8263 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
8264 | as_dirs= |
---|
8265 | while :; do |
---|
8266 | case $as_dir in #( |
---|
8267 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
8268 | *) as_qdir=$as_dir;; |
---|
8269 | esac |
---|
8270 | as_dirs="'$as_qdir' $as_dirs" |
---|
8271 | as_dir=`$as_dirname -- "$as_dir" || |
---|
8272 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8273 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8274 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8275 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
8276 | $as_echo X"$as_dir" | |
---|
8277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8278 | s//\1/ |
---|
8279 | q |
---|
8280 | } |
---|
8281 | /^X\(\/\/\)[^/].*/{ |
---|
8282 | s//\1/ |
---|
8283 | q |
---|
8284 | } |
---|
8285 | /^X\(\/\/\)$/{ |
---|
8286 | s//\1/ |
---|
8287 | q |
---|
8288 | } |
---|
8289 | /^X\(\/\).*/{ |
---|
8290 | s//\1/ |
---|
8291 | q |
---|
8292 | } |
---|
8293 | s/.*/./; q'` |
---|
8294 | test -d "$as_dir" && break |
---|
8295 | done |
---|
8296 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
8297 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
8298 | |
---|
8299 | |
---|
8300 | } # as_fn_mkdir_p |
---|
8301 | if mkdir -p . 2>/dev/null; then |
---|
8302 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
8303 | else |
---|
8304 | test -d ./-p && rmdir ./-p |
---|
8305 | as_mkdir_p=false |
---|
8306 | fi |
---|
8307 | |
---|
8308 | |
---|
8309 | # as_fn_executable_p FILE |
---|
8310 | # ----------------------- |
---|
8311 | # Test if FILE is an executable regular file. |
---|
8312 | as_fn_executable_p () |
---|
8313 | { |
---|
8314 | test -f "$1" && test -x "$1" |
---|
8315 | } # as_fn_executable_p |
---|
8316 | as_test_x='test -x' |
---|
8317 | as_executable_p=as_fn_executable_p |
---|
8318 | |
---|
8319 | # Sed expression to map a string onto a valid CPP name. |
---|
8320 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8321 | |
---|
8322 | # Sed expression to map a string onto a valid variable name. |
---|
8323 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8324 | |
---|
8325 | |
---|
8326 | exec 6>&1 |
---|
8327 | ## ----------------------------------- ## |
---|
8328 | ## Main body of $CONFIG_STATUS script. ## |
---|
8329 | ## ----------------------------------- ## |
---|
8330 | _ASEOF |
---|
8331 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
8332 | |
---|
8333 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8334 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
8335 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8336 | # values after options handling. |
---|
8337 | ac_log=" |
---|
8338 | This file was extended by RapptureVideo $as_me 1.4, which was |
---|
8339 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
8340 | |
---|
8341 | CONFIG_FILES = $CONFIG_FILES |
---|
8342 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8343 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8344 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8345 | $ $0 $@ |
---|
8346 | |
---|
8347 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
8348 | " |
---|
8349 | |
---|
8350 | _ACEOF |
---|
8351 | |
---|
8352 | case $ac_config_files in *" |
---|
8353 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
8354 | esac |
---|
8355 | |
---|
8356 | case $ac_config_headers in *" |
---|
8357 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
8358 | esac |
---|
8359 | |
---|
8360 | |
---|
8361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8362 | # Files that config.status was made for. |
---|
8363 | config_files="$ac_config_files" |
---|
8364 | config_headers="$ac_config_headers" |
---|
8365 | |
---|
8366 | _ACEOF |
---|
8367 | |
---|
8368 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8369 | ac_cs_usage="\ |
---|
8370 | \`$as_me' instantiates files and other configuration actions |
---|
8371 | from templates according to the current configuration. Unless the files |
---|
8372 | and actions are specified as TAGs, all are instantiated by default. |
---|
8373 | |
---|
8374 | Usage: $0 [OPTION]... [TAG]... |
---|
8375 | |
---|
8376 | -h, --help print this help, then exit |
---|
8377 | -V, --version print version number and configuration settings, then exit |
---|
8378 | --config print configuration, then exit |
---|
8379 | -q, --quiet, --silent |
---|
8380 | do not print progress messages |
---|
8381 | -d, --debug don't remove temporary files |
---|
8382 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8383 | --file=FILE[:TEMPLATE] |
---|
8384 | instantiate the configuration file FILE |
---|
8385 | --header=FILE[:TEMPLATE] |
---|
8386 | instantiate the configuration header FILE |
---|
8387 | |
---|
8388 | Configuration files: |
---|
8389 | $config_files |
---|
8390 | |
---|
8391 | Configuration headers: |
---|
8392 | $config_headers |
---|
8393 | |
---|
8394 | Report bugs to <rappture@nanohub.org>." |
---|
8395 | |
---|
8396 | _ACEOF |
---|
8397 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8398 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
8399 | ac_cs_version="\\ |
---|
8400 | RapptureVideo config.status 1.4 |
---|
8401 | configured by $0, generated by GNU Autoconf 2.69, |
---|
8402 | with options \\"\$ac_cs_config\\" |
---|
8403 | |
---|
8404 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
8405 | This config.status script is free software; the Free Software Foundation |
---|
8406 | gives unlimited permission to copy, distribute and modify it." |
---|
8407 | |
---|
8408 | ac_pwd='$ac_pwd' |
---|
8409 | srcdir='$srcdir' |
---|
8410 | INSTALL='$INSTALL' |
---|
8411 | MKDIR_P='$MKDIR_P' |
---|
8412 | test -n "\$AWK" || AWK=awk |
---|
8413 | _ACEOF |
---|
8414 | |
---|
8415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8416 | # The default lists apply if the user does not specify any file. |
---|
8417 | ac_need_defaults=: |
---|
8418 | while test $# != 0 |
---|
8419 | do |
---|
8420 | case $1 in |
---|
8421 | --*=?*) |
---|
8422 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8423 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
8424 | ac_shift=: |
---|
8425 | ;; |
---|
8426 | --*=) |
---|
8427 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8428 | ac_optarg= |
---|
8429 | ac_shift=: |
---|
8430 | ;; |
---|
8431 | *) |
---|
8432 | ac_option=$1 |
---|
8433 | ac_optarg=$2 |
---|
8434 | ac_shift=shift |
---|
8435 | ;; |
---|
8436 | esac |
---|
8437 | |
---|
8438 | case $ac_option in |
---|
8439 | # Handling of the options. |
---|
8440 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8441 | ac_cs_recheck=: ;; |
---|
8442 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
8443 | $as_echo "$ac_cs_version"; exit ;; |
---|
8444 | --config | --confi | --conf | --con | --co | --c ) |
---|
8445 | $as_echo "$ac_cs_config"; exit ;; |
---|
8446 | --debug | --debu | --deb | --de | --d | -d ) |
---|
8447 | debug=: ;; |
---|
8448 | --file | --fil | --fi | --f ) |
---|
8449 | $ac_shift |
---|
8450 | case $ac_optarg in |
---|
8451 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
8452 | '') as_fn_error $? "missing file argument" ;; |
---|
8453 | esac |
---|
8454 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
8455 | ac_need_defaults=false;; |
---|
8456 | --header | --heade | --head | --hea ) |
---|
8457 | $ac_shift |
---|
8458 | case $ac_optarg in |
---|
8459 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
8460 | esac |
---|
8461 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
8462 | ac_need_defaults=false;; |
---|
8463 | --he | --h) |
---|
8464 | # Conflict between --help and --header |
---|
8465 | as_fn_error $? "ambiguous option: \`$1' |
---|
8466 | Try \`$0 --help' for more information.";; |
---|
8467 | --help | --hel | -h ) |
---|
8468 | $as_echo "$ac_cs_usage"; exit ;; |
---|
8469 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8470 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8471 | ac_cs_silent=: ;; |
---|
8472 | |
---|
8473 | # This is an error. |
---|
8474 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
8475 | Try \`$0 --help' for more information." ;; |
---|
8476 | |
---|
8477 | *) as_fn_append ac_config_targets " $1" |
---|
8478 | ac_need_defaults=false ;; |
---|
8479 | |
---|
8480 | esac |
---|
8481 | shift |
---|
8482 | done |
---|
8483 | |
---|
8484 | ac_configure_extra_args= |
---|
8485 | |
---|
8486 | if $ac_cs_silent; then |
---|
8487 | exec 6>/dev/null |
---|
8488 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8489 | fi |
---|
8490 | |
---|
8491 | _ACEOF |
---|
8492 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8493 | if \$ac_cs_recheck; then |
---|
8494 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8495 | shift |
---|
8496 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
8497 | CONFIG_SHELL='$SHELL' |
---|
8498 | export CONFIG_SHELL |
---|
8499 | exec "\$@" |
---|
8500 | fi |
---|
8501 | |
---|
8502 | _ACEOF |
---|
8503 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8504 | exec 5>>config.log |
---|
8505 | { |
---|
8506 | echo |
---|
8507 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8508 | ## Running $as_me. ## |
---|
8509 | _ASBOX |
---|
8510 | $as_echo "$ac_log" |
---|
8511 | } >&5 |
---|
8512 | |
---|
8513 | _ACEOF |
---|
8514 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8515 | _ACEOF |
---|
8516 | |
---|
8517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8518 | |
---|
8519 | # Handling of arguments. |
---|
8520 | for ac_config_target in $ac_config_targets |
---|
8521 | do |
---|
8522 | case $ac_config_target in |
---|
8523 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
8524 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8525 | "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; |
---|
8526 | |
---|
8527 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
8528 | esac |
---|
8529 | done |
---|
8530 | |
---|
8531 | |
---|
8532 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8533 | # then the envvar interface is used. Set only those that are not. |
---|
8534 | # We use the long form for the default assignment because of an extremely |
---|
8535 | # bizarre bug on SunOS 4.1.3. |
---|
8536 | if $ac_need_defaults; then |
---|
8537 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8538 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8539 | fi |
---|
8540 | |
---|
8541 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8542 | # simply because there is no reason against having it here, and in addition, |
---|
8543 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8544 | # Hook for its removal unless debugging. |
---|
8545 | # Note that there is a small window in which the directory will not be cleaned: |
---|
8546 | # after its creation but before its name has been assigned to `$tmp'. |
---|
8547 | $debug || |
---|
8548 | { |
---|
8549 | tmp= ac_tmp= |
---|
8550 | trap 'exit_status=$? |
---|
8551 | : "${ac_tmp:=$tmp}" |
---|
8552 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
8553 | ' 0 |
---|
8554 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
8555 | } |
---|
8556 | # Create a (secure) tmp directory for tmp files. |
---|
8557 | |
---|
8558 | { |
---|
8559 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
8560 | test -d "$tmp" |
---|
8561 | } || |
---|
8562 | { |
---|
8563 | tmp=./conf$$-$RANDOM |
---|
8564 | (umask 077 && mkdir "$tmp") |
---|
8565 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
8566 | ac_tmp=$tmp |
---|
8567 | |
---|
8568 | # Set up the scripts for CONFIG_FILES section. |
---|
8569 | # No need to generate them if there are no CONFIG_FILES. |
---|
8570 | # This happens for instance with `./config.status config.h'. |
---|
8571 | if test -n "$CONFIG_FILES"; then |
---|
8572 | |
---|
8573 | |
---|
8574 | ac_cr=`echo X | tr X '\015'` |
---|
8575 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
8576 | # But we know of no other shell where ac_cr would be empty at this |
---|
8577 | # point, so we can use a bashism as a fallback. |
---|
8578 | if test "x$ac_cr" = x; then |
---|
8579 | eval ac_cr=\$\'\\r\' |
---|
8580 | fi |
---|
8581 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
8582 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
8583 | ac_cs_awk_cr='\\r' |
---|
8584 | else |
---|
8585 | ac_cs_awk_cr=$ac_cr |
---|
8586 | fi |
---|
8587 | |
---|
8588 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
8589 | _ACEOF |
---|
8590 | |
---|
8591 | |
---|
8592 | { |
---|
8593 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
8594 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
8595 | echo "_ACEOF" |
---|
8596 | } >conf$$subs.sh || |
---|
8597 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8598 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
8599 | ac_delim='%!_!# ' |
---|
8600 | for ac_last_try in false false false false false :; do |
---|
8601 | . ./conf$$subs.sh || |
---|
8602 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8603 | |
---|
8604 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
8605 | if test $ac_delim_n = $ac_delim_num; then |
---|
8606 | break |
---|
8607 | elif $ac_last_try; then |
---|
8608 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8609 | else |
---|
8610 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8611 | fi |
---|
8612 | done |
---|
8613 | rm -f conf$$subs.sh |
---|
8614 | |
---|
8615 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8616 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
8617 | _ACEOF |
---|
8618 | sed -n ' |
---|
8619 | h |
---|
8620 | s/^/S["/; s/!.*/"]=/ |
---|
8621 | p |
---|
8622 | g |
---|
8623 | s/^[^!]*!// |
---|
8624 | :repl |
---|
8625 | t repl |
---|
8626 | s/'"$ac_delim"'$// |
---|
8627 | t delim |
---|
8628 | :nl |
---|
8629 | h |
---|
8630 | s/\(.\{148\}\)..*/\1/ |
---|
8631 | t more1 |
---|
8632 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
8633 | p |
---|
8634 | n |
---|
8635 | b repl |
---|
8636 | :more1 |
---|
8637 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8638 | p |
---|
8639 | g |
---|
8640 | s/.\{148\}// |
---|
8641 | t nl |
---|
8642 | :delim |
---|
8643 | h |
---|
8644 | s/\(.\{148\}\)..*/\1/ |
---|
8645 | t more2 |
---|
8646 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
8647 | p |
---|
8648 | b |
---|
8649 | :more2 |
---|
8650 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8651 | p |
---|
8652 | g |
---|
8653 | s/.\{148\}// |
---|
8654 | t delim |
---|
8655 | ' <conf$$subs.awk | sed ' |
---|
8656 | /^[^""]/{ |
---|
8657 | N |
---|
8658 | s/\n// |
---|
8659 | } |
---|
8660 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
8661 | rm -f conf$$subs.awk |
---|
8662 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8663 | _ACAWK |
---|
8664 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
8665 | for (key in S) S_is_set[key] = 1 |
---|
8666 | FS = "" |
---|
8667 | |
---|
8668 | } |
---|
8669 | { |
---|
8670 | line = $ 0 |
---|
8671 | nfields = split(line, field, "@") |
---|
8672 | substed = 0 |
---|
8673 | len = length(field[1]) |
---|
8674 | for (i = 2; i < nfields; i++) { |
---|
8675 | key = field[i] |
---|
8676 | keylen = length(key) |
---|
8677 | if (S_is_set[key]) { |
---|
8678 | value = S[key] |
---|
8679 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
8680 | len += length(value) + length(field[++i]) |
---|
8681 | substed = 1 |
---|
8682 | } else |
---|
8683 | len += 1 + keylen |
---|
8684 | } |
---|
8685 | |
---|
8686 | print line |
---|
8687 | } |
---|
8688 | |
---|
8689 | _ACAWK |
---|
8690 | _ACEOF |
---|
8691 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8692 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
8693 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
8694 | else |
---|
8695 | cat |
---|
8696 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
8697 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
8698 | _ACEOF |
---|
8699 | |
---|
8700 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
8701 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
8702 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
8703 | # (actually we leave an empty line to preserve line numbers). |
---|
8704 | if test "x$srcdir" = x.; then |
---|
8705 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
8706 | h |
---|
8707 | s/// |
---|
8708 | s/^/:/ |
---|
8709 | s/[ ]*$/:/ |
---|
8710 | s/:\$(srcdir):/:/g |
---|
8711 | s/:\${srcdir}:/:/g |
---|
8712 | s/:@srcdir@:/:/g |
---|
8713 | s/^:*// |
---|
8714 | s/:*$// |
---|
8715 | x |
---|
8716 | s/\(=[ ]*\).*/\1/ |
---|
8717 | G |
---|
8718 | s/\n// |
---|
8719 | s/^[^=]*=[ ]*$// |
---|
8720 | }' |
---|
8721 | fi |
---|
8722 | |
---|
8723 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8724 | fi # test -n "$CONFIG_FILES" |
---|
8725 | |
---|
8726 | # Set up the scripts for CONFIG_HEADERS section. |
---|
8727 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
8728 | # This happens for instance with `./config.status Makefile'. |
---|
8729 | if test -n "$CONFIG_HEADERS"; then |
---|
8730 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
8731 | BEGIN { |
---|
8732 | _ACEOF |
---|
8733 | |
---|
8734 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
8735 | # here-document in config.status, that substitutes the proper values into |
---|
8736 | # config.h.in to produce config.h. |
---|
8737 | |
---|
8738 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
8739 | # handling of long lines. |
---|
8740 | ac_delim='%!_!# ' |
---|
8741 | for ac_last_try in false false :; do |
---|
8742 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
8743 | if test -z "$ac_tt"; then |
---|
8744 | break |
---|
8745 | elif $ac_last_try; then |
---|
8746 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
8747 | else |
---|
8748 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8749 | fi |
---|
8750 | done |
---|
8751 | |
---|
8752 | # For the awk script, D is an array of macro values keyed by name, |
---|
8753 | # likewise P contains macro parameters if any. Preserve backslash |
---|
8754 | # newline sequences. |
---|
8755 | |
---|
8756 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
8757 | sed -n ' |
---|
8758 | s/.\{148\}/&'"$ac_delim"'/g |
---|
8759 | t rset |
---|
8760 | :rset |
---|
8761 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
8762 | t def |
---|
8763 | d |
---|
8764 | :def |
---|
8765 | s/\\$// |
---|
8766 | t bsnl |
---|
8767 | s/["\\]/\\&/g |
---|
8768 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
8769 | D["\1"]=" \3"/p |
---|
8770 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
8771 | d |
---|
8772 | :bsnl |
---|
8773 | s/["\\]/\\&/g |
---|
8774 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
8775 | D["\1"]=" \3\\\\\\n"\\/p |
---|
8776 | t cont |
---|
8777 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
8778 | t cont |
---|
8779 | d |
---|
8780 | :cont |
---|
8781 | n |
---|
8782 | s/.\{148\}/&'"$ac_delim"'/g |
---|
8783 | t clear |
---|
8784 | :clear |
---|
8785 | s/\\$// |
---|
8786 | t bsnlc |
---|
8787 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
8788 | d |
---|
8789 | :bsnlc |
---|
8790 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
8791 | b cont |
---|
8792 | ' <confdefs.h | sed ' |
---|
8793 | s/'"$ac_delim"'/"\\\ |
---|
8794 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
8795 | |
---|
8796 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8797 | for (key in D) D_is_set[key] = 1 |
---|
8798 | FS = "" |
---|
8799 | } |
---|
8800 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
8801 | line = \$ 0 |
---|
8802 | split(line, arg, " ") |
---|
8803 | if (arg[1] == "#") { |
---|
8804 | defundef = arg[2] |
---|
8805 | mac1 = arg[3] |
---|
8806 | } else { |
---|
8807 | defundef = substr(arg[1], 2) |
---|
8808 | mac1 = arg[2] |
---|
8809 | } |
---|
8810 | split(mac1, mac2, "(") #) |
---|
8811 | macro = mac2[1] |
---|
8812 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
8813 | if (D_is_set[macro]) { |
---|
8814 | # Preserve the white space surrounding the "#". |
---|
8815 | print prefix "define", macro P[macro] D[macro] |
---|
8816 | next |
---|
8817 | } else { |
---|
8818 | # Replace #undef with comments. This is necessary, for example, |
---|
8819 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
8820 | # on some systems where configure will not decide to define it. |
---|
8821 | if (defundef == "undef") { |
---|
8822 | print "/*", prefix defundef, macro, "*/" |
---|
8823 | next |
---|
8824 | } |
---|
8825 | } |
---|
8826 | } |
---|
8827 | { print } |
---|
8828 | _ACAWK |
---|
8829 | _ACEOF |
---|
8830 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8831 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
8832 | fi # test -n "$CONFIG_HEADERS" |
---|
8833 | |
---|
8834 | |
---|
8835 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
8836 | shift |
---|
8837 | for ac_tag |
---|
8838 | do |
---|
8839 | case $ac_tag in |
---|
8840 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
8841 | esac |
---|
8842 | case $ac_mode$ac_tag in |
---|
8843 | :[FHL]*:*);; |
---|
8844 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
8845 | :[FH]-) ac_tag=-:-;; |
---|
8846 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
8847 | esac |
---|
8848 | ac_save_IFS=$IFS |
---|
8849 | IFS=: |
---|
8850 | set x $ac_tag |
---|
8851 | IFS=$ac_save_IFS |
---|
8852 | shift |
---|
8853 | ac_file=$1 |
---|
8854 | shift |
---|
8855 | |
---|
8856 | case $ac_mode in |
---|
8857 | :L) ac_source=$1;; |
---|
8858 | :[FH]) |
---|
8859 | ac_file_inputs= |
---|
8860 | for ac_f |
---|
8861 | do |
---|
8862 | case $ac_f in |
---|
8863 | -) ac_f="$ac_tmp/stdin";; |
---|
8864 | *) # Look for the file first in the build tree, then in the source tree |
---|
8865 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
8866 | # because $ac_f cannot contain `:'. |
---|
8867 | test -f "$ac_f" || |
---|
8868 | case $ac_f in |
---|
8869 | [\\/$]*) false;; |
---|
8870 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
8871 | esac || |
---|
8872 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
8873 | esac |
---|
8874 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
8875 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
8876 | done |
---|
8877 | |
---|
8878 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8879 | # use $as_me), people would be surprised to read: |
---|
8880 | # /* config.h. Generated by config.status. */ |
---|
8881 | configure_input='Generated from '` |
---|
8882 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
8883 | `' by configure.' |
---|
8884 | if test x"$ac_file" != x-; then |
---|
8885 | configure_input="$ac_file. $configure_input" |
---|
8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
8887 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
8888 | fi |
---|
8889 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
8890 | case $configure_input in #( |
---|
8891 | *\&* | *\|* | *\\* ) |
---|
8892 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
8893 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
8894 | *) ac_sed_conf_input=$configure_input;; |
---|
8895 | esac |
---|
8896 | |
---|
8897 | case $ac_tag in |
---|
8898 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
8899 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
8900 | esac |
---|
8901 | ;; |
---|
8902 | esac |
---|
8903 | |
---|
8904 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
8905 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8906 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8907 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8908 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
8909 | $as_echo X"$ac_file" | |
---|
8910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8911 | s//\1/ |
---|
8912 | q |
---|
8913 | } |
---|
8914 | /^X\(\/\/\)[^/].*/{ |
---|
8915 | s//\1/ |
---|
8916 | q |
---|
8917 | } |
---|
8918 | /^X\(\/\/\)$/{ |
---|
8919 | s//\1/ |
---|
8920 | q |
---|
8921 | } |
---|
8922 | /^X\(\/\).*/{ |
---|
8923 | s//\1/ |
---|
8924 | q |
---|
8925 | } |
---|
8926 | s/.*/./; q'` |
---|
8927 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
8928 | ac_builddir=. |
---|
8929 | |
---|
8930 | case "$ac_dir" in |
---|
8931 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8932 | *) |
---|
8933 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
8934 | # A ".." for each directory in $ac_dir_suffix. |
---|
8935 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
8936 | case $ac_top_builddir_sub in |
---|
8937 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8938 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
8939 | esac ;; |
---|
8940 | esac |
---|
8941 | ac_abs_top_builddir=$ac_pwd |
---|
8942 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
8943 | # for backward compatibility: |
---|
8944 | ac_top_builddir=$ac_top_build_prefix |
---|
8945 | |
---|
8946 | case $srcdir in |
---|
8947 | .) # We are building in place. |
---|
8948 | ac_srcdir=. |
---|
8949 | ac_top_srcdir=$ac_top_builddir_sub |
---|
8950 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
8951 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
8952 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8953 | ac_top_srcdir=$srcdir |
---|
8954 | ac_abs_top_srcdir=$srcdir ;; |
---|
8955 | *) # Relative name. |
---|
8956 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
8957 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
8958 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
8959 | esac |
---|
8960 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
8961 | |
---|
8962 | |
---|
8963 | case $ac_mode in |
---|
8964 | :F) |
---|
8965 | # |
---|
8966 | # CONFIG_FILE |
---|
8967 | # |
---|
8968 | |
---|
8969 | case $INSTALL in |
---|
8970 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
8971 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
8972 | esac |
---|
8973 | ac_MKDIR_P=$MKDIR_P |
---|
8974 | case $MKDIR_P in |
---|
8975 | [\\/$]* | ?:[\\/]* ) ;; |
---|
8976 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
8977 | esac |
---|
8978 | _ACEOF |
---|
8979 | |
---|
8980 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8981 | # If the template does not know about datarootdir, expand it. |
---|
8982 | # FIXME: This hack should be removed a few years after 2.60. |
---|
8983 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
8984 | ac_sed_dataroot=' |
---|
8985 | /datarootdir/ { |
---|
8986 | p |
---|
8987 | q |
---|
8988 | } |
---|
8989 | /@datadir@/p |
---|
8990 | /@docdir@/p |
---|
8991 | /@infodir@/p |
---|
8992 | /@localedir@/p |
---|
8993 | /@mandir@/p' |
---|
8994 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
8995 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
8996 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
8998 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
8999 | _ACEOF |
---|
9000 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
9001 | ac_datarootdir_hack=' |
---|
9002 | s&@datadir@&$datadir&g |
---|
9003 | s&@docdir@&$docdir&g |
---|
9004 | s&@infodir@&$infodir&g |
---|
9005 | s&@localedir@&$localedir&g |
---|
9006 | s&@mandir@&$mandir&g |
---|
9007 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
9008 | esac |
---|
9009 | _ACEOF |
---|
9010 | |
---|
9011 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
9012 | # Shell code in configure.ac might set extrasub. |
---|
9013 | # FIXME: do we really want to maintain this feature? |
---|
9014 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
9015 | ac_sed_extra="$ac_vpsub |
---|
9016 | $extrasub |
---|
9017 | _ACEOF |
---|
9018 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
9019 | :t |
---|
9020 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
9021 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
9022 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
9023 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
9024 | s&@srcdir@&$ac_srcdir&;t t |
---|
9025 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
9026 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
9027 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
9028 | s&@builddir@&$ac_builddir&;t t |
---|
9029 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
9030 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
9031 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
9032 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
9033 | $ac_datarootdir_hack |
---|
9034 | " |
---|
9035 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
9036 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9037 | |
---|
9038 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
9039 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
9040 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
9041 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
9043 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
9044 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
9045 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
9046 | |
---|
9047 | rm -f "$ac_tmp/stdin" |
---|
9048 | case $ac_file in |
---|
9049 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
9050 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
9051 | esac \ |
---|
9052 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9053 | ;; |
---|
9054 | :H) |
---|
9055 | # |
---|
9056 | # CONFIG_HEADER |
---|
9057 | # |
---|
9058 | if test x"$ac_file" != x-; then |
---|
9059 | { |
---|
9060 | $as_echo "/* $configure_input */" \ |
---|
9061 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
9062 | } >"$ac_tmp/config.h" \ |
---|
9063 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9064 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
9066 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
9067 | else |
---|
9068 | rm -f "$ac_file" |
---|
9069 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
9070 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9071 | fi |
---|
9072 | else |
---|
9073 | $as_echo "/* $configure_input */" \ |
---|
9074 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
9075 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
9076 | fi |
---|
9077 | ;; |
---|
9078 | |
---|
9079 | |
---|
9080 | esac |
---|
9081 | |
---|
9082 | done # for ac_tag |
---|
9083 | |
---|
9084 | |
---|
9085 | as_fn_exit 0 |
---|
9086 | _ACEOF |
---|
9087 | ac_clean_files=$ac_clean_files_save |
---|
9088 | |
---|
9089 | test $ac_write_fail = 0 || |
---|
9090 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
9091 | |
---|
9092 | |
---|
9093 | # configure is writing to config.log, and then calls config.status. |
---|
9094 | # config.status does its own redirection, appending to config.log. |
---|
9095 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9096 | # by configure, so config.status won't be able to write to it; its |
---|
9097 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9098 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9099 | # appended to by config.status. When coming back to configure, we |
---|
9100 | # need to make the FD available again. |
---|
9101 | if test "$no_create" != yes; then |
---|
9102 | ac_cs_success=: |
---|
9103 | ac_config_status_args= |
---|
9104 | test "$silent" = yes && |
---|
9105 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9106 | exec 5>/dev/null |
---|
9107 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9108 | exec 5>>config.log |
---|
9109 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9110 | # would make configure fail if this is the last instruction. |
---|
9111 | $ac_cs_success || as_fn_exit 1 |
---|
9112 | fi |
---|
9113 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
9115 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
9116 | fi |
---|
9117 | |
---|
9118 | |
---|