|
1 #! /bin/sh |
|
2 # Guess values for system-dependent variables and create Makefiles. |
|
3 # Generated by GNU Autoconf 2.69. |
|
4 # |
|
5 # |
|
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
|
7 # |
|
8 # |
|
9 # This configure script is free software; the Free Software Foundation |
|
10 # gives unlimited permission to copy, distribute and modify it. |
|
11 ## -------------------- ## |
|
12 ## M4sh Initialization. ## |
|
13 ## -------------------- ## |
|
14 |
|
15 # Be more Bourne compatible |
|
16 DUALCASE=1; export DUALCASE # for MKS sh |
|
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
18 emulate sh |
|
19 NULLCMD=: |
|
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
21 # is contrary to our usage. Disable this feature. |
|
22 alias -g '${1+"$@"}'='"$@"' |
|
23 setopt NO_GLOB_SUBST |
|
24 else |
|
25 case `(set -o) 2>/dev/null` in #( |
|
26 *posix*) : |
|
27 set -o posix ;; #( |
|
28 *) : |
|
29 ;; |
|
30 esac |
|
31 fi |
|
32 |
|
33 |
|
34 as_nl=' |
|
35 ' |
|
36 export as_nl |
|
37 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
41 # Prefer a ksh shell builtin over an external printf program on Solaris, |
|
42 # but without wasting forks for bash or zsh. |
|
43 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
45 as_echo='print -r --' |
|
46 as_echo_n='print -rn --' |
|
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
48 as_echo='printf %s\n' |
|
49 as_echo_n='printf %s' |
|
50 else |
|
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
53 as_echo_n='/usr/ucb/echo -n' |
|
54 else |
|
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
56 as_echo_n_body='eval |
|
57 arg=$1; |
|
58 case $arg in #( |
|
59 *"$as_nl"*) |
|
60 expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
62 esac; |
|
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
64 ' |
|
65 export as_echo_n_body |
|
66 as_echo_n='sh -c $as_echo_n_body as_echo' |
|
67 fi |
|
68 export as_echo_body |
|
69 as_echo='sh -c $as_echo_body as_echo' |
|
70 fi |
|
71 |
|
72 # The user is always right. |
|
73 if test "${PATH_SEPARATOR+set}" != set; then |
|
74 PATH_SEPARATOR=: |
|
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
77 PATH_SEPARATOR=';' |
|
78 } |
|
79 fi |
|
80 |
|
81 |
|
82 # IFS |
|
83 # We need space, tab and new line, in precisely that order. Quoting is |
|
84 # there to prevent editors from complaining about space-tab. |
|
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
86 # splitting by setting IFS to empty value.) |
|
87 IFS=" "" $as_nl" |
|
88 |
|
89 # Find who we are. Look in the path if we contain no directory separator. |
|
90 as_myself= |
|
91 case $0 in #(( |
|
92 *[\\/]* ) as_myself=$0 ;; |
|
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
94 for as_dir in $PATH |
|
95 do |
|
96 IFS=$as_save_IFS |
|
97 test -z "$as_dir" && as_dir=. |
|
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
99 done |
|
100 IFS=$as_save_IFS |
|
101 |
|
102 ;; |
|
103 esac |
|
104 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
105 # in which case we are not to be found in the path. |
|
106 if test "x$as_myself" = x; then |
|
107 as_myself=$0 |
|
108 fi |
|
109 if test ! -f "$as_myself"; then |
|
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
111 exit 1 |
|
112 fi |
|
113 |
|
114 # Unset variables that we do not need and which cause bugs (e.g. in |
|
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
116 # suppresses any "Segmentation fault" message there. '((' could |
|
117 # trigger a bug in pdksh 5.2.14. |
|
118 for as_var in BASH_ENV ENV MAIL MAILPATH |
|
119 do eval test x\${$as_var+set} = xset \ |
|
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
121 done |
|
122 PS1='$ ' |
|
123 PS2='> ' |
|
124 PS4='+ ' |
|
125 |
|
126 # NLS nuisances. |
|
127 LC_ALL=C |
|
128 export LC_ALL |
|
129 LANGUAGE=C |
|
130 export LANGUAGE |
|
131 |
|
132 # CDPATH. |
|
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
134 |
|
135 # Use a proper internal environment variable to ensure we don't fall |
|
136 # into an infinite loop, continuously re-executing ourselves. |
|
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
138 _as_can_reexec=no; export _as_can_reexec; |
|
139 # We cannot yet assume a decent shell, so we have to provide a |
|
140 # neutralization value for shells without unset; and this also |
|
141 # works around shells that cannot unset nonexistent variables. |
|
142 # Preserve -v and -x to the replacement shell. |
|
143 BASH_ENV=/dev/null |
|
144 ENV=/dev/null |
|
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
146 case $- in # (((( |
|
147 *v*x* | *x*v* ) as_opts=-vx ;; |
|
148 *v* ) as_opts=-v ;; |
|
149 *x* ) as_opts=-x ;; |
|
150 * ) as_opts= ;; |
|
151 esac |
|
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
153 # Admittedly, this is quite paranoid, since all the known shells bail |
|
154 # out after a failed `exec'. |
|
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
156 as_fn_exit 255 |
|
157 fi |
|
158 # We don't want this to propagate to other subprocesses. |
|
159 { _as_can_reexec=; unset _as_can_reexec;} |
|
160 if test "x$CONFIG_SHELL" = x; then |
|
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
|
162 emulate sh |
|
163 NULLCMD=: |
|
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
165 # is contrary to our usage. Disable this feature. |
|
166 alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
167 setopt NO_GLOB_SUBST |
|
168 else |
|
169 case \`(set -o) 2>/dev/null\` in #( |
|
170 *posix*) : |
|
171 set -o posix ;; #( |
|
172 *) : |
|
173 ;; |
|
174 esac |
|
175 fi |
|
176 " |
|
177 as_required="as_fn_return () { (exit \$1); } |
|
178 as_fn_success () { as_fn_return 0; } |
|
179 as_fn_failure () { as_fn_return 1; } |
|
180 as_fn_ret_success () { return 0; } |
|
181 as_fn_ret_failure () { return 1; } |
|
182 |
|
183 exitcode=0 |
|
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
|
189 |
|
190 else |
|
191 exitcode=1; echo positional parameters were not saved. |
|
192 fi |
|
193 test x\$exitcode = x0 || exit 1 |
|
194 test -x / || exit 1" |
|
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
199 test \$(( 1 + 1 )) = 2 || exit 1" |
|
200 if (eval "$as_required") 2>/dev/null; then : |
|
201 as_have_required=yes |
|
202 else |
|
203 as_have_required=no |
|
204 fi |
|
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
|
206 |
|
207 else |
|
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
209 as_found=false |
|
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
211 do |
|
212 IFS=$as_save_IFS |
|
213 test -z "$as_dir" && as_dir=. |
|
214 as_found=: |
|
215 case $as_dir in #( |
|
216 /*) |
|
217 for as_base in sh bash ksh sh5; do |
|
218 # Try only shells that exist, to save several forks. |
|
219 as_shell=$as_dir/$as_base |
|
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
222 CONFIG_SHELL=$as_shell as_have_required=yes |
|
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
224 break 2 |
|
225 fi |
|
226 fi |
|
227 done;; |
|
228 esac |
|
229 as_found=false |
|
230 done |
|
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
|
233 CONFIG_SHELL=$SHELL as_have_required=yes |
|
234 fi; } |
|
235 IFS=$as_save_IFS |
|
236 |
|
237 |
|
238 if test "x$CONFIG_SHELL" != x; then : |
|
239 export CONFIG_SHELL |
|
240 # We cannot yet assume a decent shell, so we have to provide a |
|
241 # neutralization value for shells without unset; and this also |
|
242 # works around shells that cannot unset nonexistent variables. |
|
243 # Preserve -v and -x to the replacement shell. |
|
244 BASH_ENV=/dev/null |
|
245 ENV=/dev/null |
|
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
247 case $- in # (((( |
|
248 *v*x* | *x*v* ) as_opts=-vx ;; |
|
249 *v* ) as_opts=-v ;; |
|
250 *x* ) as_opts=-x ;; |
|
251 * ) as_opts= ;; |
|
252 esac |
|
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
254 # Admittedly, this is quite paranoid, since all the known shells bail |
|
255 # out after a failed `exec'. |
|
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
257 exit 255 |
|
258 fi |
|
259 |
|
260 if test x$as_have_required = xno; then : |
|
261 $as_echo "$0: This script requires a shell more modern than all" |
|
262 $as_echo "$0: the shells that I found on your system." |
|
263 if test x${ZSH_VERSION+set} = xset ; then |
|
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
|
266 else |
|
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
|
268 $0: including any error possibly output before this |
|
269 $0: message. Then install a modern shell, or manually run |
|
270 $0: the script under such a shell if you do have one." |
|
271 fi |
|
272 exit 1 |
|
273 fi |
|
274 fi |
|
275 fi |
|
276 SHELL=${CONFIG_SHELL-/bin/sh} |
|
277 export SHELL |
|
278 # Unset more variables known to interfere with behavior of common tools. |
|
279 CLICOLOR_FORCE= GREP_OPTIONS= |
|
280 unset CLICOLOR_FORCE GREP_OPTIONS |
|
281 |
|
282 ## --------------------- ## |
|
283 ## M4sh Shell Functions. ## |
|
284 ## --------------------- ## |
|
285 # as_fn_unset VAR |
|
286 # --------------- |
|
287 # Portably unset VAR. |
|
288 as_fn_unset () |
|
289 { |
|
290 { eval $1=; unset $1;} |
|
291 } |
|
292 as_unset=as_fn_unset |
|
293 |
|
294 # as_fn_set_status STATUS |
|
295 # ----------------------- |
|
296 # Set $? to STATUS, without forking. |
|
297 as_fn_set_status () |
|
298 { |
|
299 return $1 |
|
300 } # as_fn_set_status |
|
301 |
|
302 # as_fn_exit STATUS |
|
303 # ----------------- |
|
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
305 as_fn_exit () |
|
306 { |
|
307 set +e |
|
308 as_fn_set_status $1 |
|
309 exit $1 |
|
310 } # as_fn_exit |
|
311 |
|
312 # as_fn_mkdir_p |
|
313 # ------------- |
|
314 # Create "$as_dir" as a directory, including parents if necessary. |
|
315 as_fn_mkdir_p () |
|
316 { |
|
317 |
|
318 case $as_dir in #( |
|
319 -*) as_dir=./$as_dir;; |
|
320 esac |
|
321 test -d "$as_dir" || eval $as_mkdir_p || { |
|
322 as_dirs= |
|
323 while :; do |
|
324 case $as_dir in #( |
|
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
326 *) as_qdir=$as_dir;; |
|
327 esac |
|
328 as_dirs="'$as_qdir' $as_dirs" |
|
329 as_dir=`$as_dirname -- "$as_dir" || |
|
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
331 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
332 X"$as_dir" : 'X\(//\)$' \| \ |
|
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
334 $as_echo X"$as_dir" | |
|
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
336 s//\1/ |
|
337 q |
|
338 } |
|
339 /^X\(\/\/\)[^/].*/{ |
|
340 s//\1/ |
|
341 q |
|
342 } |
|
343 /^X\(\/\/\)$/{ |
|
344 s//\1/ |
|
345 q |
|
346 } |
|
347 /^X\(\/\).*/{ |
|
348 s//\1/ |
|
349 q |
|
350 } |
|
351 s/.*/./; q'` |
|
352 test -d "$as_dir" && break |
|
353 done |
|
354 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
356 |
|
357 |
|
358 } # as_fn_mkdir_p |
|
359 |
|
360 # as_fn_executable_p FILE |
|
361 # ----------------------- |
|
362 # Test if FILE is an executable regular file. |
|
363 as_fn_executable_p () |
|
364 { |
|
365 test -f "$1" && test -x "$1" |
|
366 } # as_fn_executable_p |
|
367 # as_fn_append VAR VALUE |
|
368 # ---------------------- |
|
369 # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
370 # advantage of any shell optimizations that allow amortized linear growth over |
|
371 # repeated appends, instead of the typical quadratic growth present in naive |
|
372 # implementations. |
|
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
374 eval 'as_fn_append () |
|
375 { |
|
376 eval $1+=\$2 |
|
377 }' |
|
378 else |
|
379 as_fn_append () |
|
380 { |
|
381 eval $1=\$$1\$2 |
|
382 } |
|
383 fi # as_fn_append |
|
384 |
|
385 # as_fn_arith ARG... |
|
386 # ------------------ |
|
387 # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
389 # must be portable across $(()) and expr. |
|
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
391 eval 'as_fn_arith () |
|
392 { |
|
393 as_val=$(( $* )) |
|
394 }' |
|
395 else |
|
396 as_fn_arith () |
|
397 { |
|
398 as_val=`expr "$@" || test $? -eq 1` |
|
399 } |
|
400 fi # as_fn_arith |
|
401 |
|
402 |
|
403 # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
404 # ---------------------------------------- |
|
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
407 # script with STATUS, using 1 if that was 0. |
|
408 as_fn_error () |
|
409 { |
|
410 as_status=$1; test $as_status -eq 0 && as_status=1 |
|
411 if test "$4"; then |
|
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
414 fi |
|
415 $as_echo "$as_me: error: $2" >&2 |
|
416 as_fn_exit $as_status |
|
417 } # as_fn_error |
|
418 |
|
419 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
421 as_expr=expr |
|
422 else |
|
423 as_expr=false |
|
424 fi |
|
425 |
|
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
427 as_basename=basename |
|
428 else |
|
429 as_basename=false |
|
430 fi |
|
431 |
|
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
433 as_dirname=dirname |
|
434 else |
|
435 as_dirname=false |
|
436 fi |
|
437 |
|
438 as_me=`$as_basename -- "$0" || |
|
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
440 X"$0" : 'X\(//\)$' \| \ |
|
441 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
442 $as_echo X/"$0" | |
|
443 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
444 s//\1/ |
|
445 q |
|
446 } |
|
447 /^X\/\(\/\/\)$/{ |
|
448 s//\1/ |
|
449 q |
|
450 } |
|
451 /^X\/\(\/\).*/{ |
|
452 s//\1/ |
|
453 q |
|
454 } |
|
455 s/.*/./; q'` |
|
456 |
|
457 # Avoid depending upon Character Ranges. |
|
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
461 as_cr_digits='0123456789' |
|
462 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
463 |
|
464 |
|
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
|
470 sed -n ' |
|
471 p |
|
472 /[$]LINENO/= |
|
473 ' <$as_myself | |
|
474 sed ' |
|
475 s/[$]LINENO.*/&-/ |
|
476 t lineno |
|
477 b |
|
478 :lineno |
|
479 N |
|
480 :loop |
|
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
482 t loop |
|
483 s/-\n.*// |
|
484 ' >$as_me.lineno && |
|
485 chmod +x "$as_me.lineno" || |
|
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|
487 |
|
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
|
489 # already done that, so ensure we don't try to do so again and fall |
|
490 # in an infinite loop. This has already happened in practice. |
|
491 _as_can_reexec=no; export _as_can_reexec |
|
492 # Don't try to exec as it changes $[0], causing all sort of problems |
|
493 # (the dirname of $[0] is not the place where we might find the |
|
494 # original and so on. Autoconf is especially sensitive to this). |
|
495 . "./$as_me.lineno" |
|
496 # Exit status is that of the last command. |
|
497 exit |
|
498 } |
|
499 |
|
500 ECHO_C= ECHO_N= ECHO_T= |
|
501 case `echo -n x` in #((((( |
|
502 -n*) |
|
503 case `echo 'xy\c'` in |
|
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
505 xy) ECHO_C='\c';; |
|
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
507 ECHO_T=' ';; |
|
508 esac;; |
|
509 *) |
|
510 ECHO_N='-n';; |
|
511 esac |
|
512 |
|
513 rm -f conf$$ conf$$.exe conf$$.file |
|
514 if test -d conf$$.dir; then |
|
515 rm -f conf$$.dir/conf$$.file |
|
516 else |
|
517 rm -f conf$$.dir |
|
518 mkdir conf$$.dir 2>/dev/null |
|
519 fi |
|
520 if (echo >conf$$.file) 2>/dev/null; then |
|
521 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
522 as_ln_s='ln -s' |
|
523 # ... but there are two gotchas: |
|
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
526 # In both cases, we have to default to `cp -pR'. |
|
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
528 as_ln_s='cp -pR' |
|
529 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
530 as_ln_s=ln |
|
531 else |
|
532 as_ln_s='cp -pR' |
|
533 fi |
|
534 else |
|
535 as_ln_s='cp -pR' |
|
536 fi |
|
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
538 rmdir conf$$.dir 2>/dev/null |
|
539 |
|
540 if mkdir -p . 2>/dev/null; then |
|
541 as_mkdir_p='mkdir -p "$as_dir"' |
|
542 else |
|
543 test -d ./-p && rmdir ./-p |
|
544 as_mkdir_p=false |
|
545 fi |
|
546 |
|
547 as_test_x='test -x' |
|
548 as_executable_p=as_fn_executable_p |
|
549 |
|
550 # Sed expression to map a string onto a valid CPP name. |
|
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
552 |
|
553 # Sed expression to map a string onto a valid variable name. |
|
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
555 |
|
556 |
|
557 test -n "$DJDIR" || exec 7<&0 </dev/null |
|
558 exec 6>&1 |
|
559 |
|
560 # Name of the host. |
|
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
|
562 # so uname gets run too. |
|
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
564 |
|
565 # |
|
566 # Initializations. |
|
567 # |
|
568 ac_default_prefix=/usr/local |
|
569 ac_clean_files= |
|
570 ac_config_libobj_dir=. |
|
571 LIBOBJS= |
|
572 cross_compiling=no |
|
573 subdirs= |
|
574 MFLAGS= |
|
575 MAKEFLAGS= |
|
576 |
|
577 # Identity of this package. |
|
578 PACKAGE_NAME= |
|
579 PACKAGE_TARNAME= |
|
580 PACKAGE_VERSION= |
|
581 PACKAGE_STRING= |
|
582 PACKAGE_BUGREPORT= |
|
583 PACKAGE_URL= |
|
584 |
|
585 ac_unique_file="pr/include/nspr.h" |
|
586 # Factoring default headers for most tests. |
|
587 ac_includes_default="\ |
|
588 #include <stdio.h> |
|
589 #ifdef HAVE_SYS_TYPES_H |
|
590 # include <sys/types.h> |
|
591 #endif |
|
592 #ifdef HAVE_SYS_STAT_H |
|
593 # include <sys/stat.h> |
|
594 #endif |
|
595 #ifdef STDC_HEADERS |
|
596 # include <stdlib.h> |
|
597 # include <stddef.h> |
|
598 #else |
|
599 # ifdef HAVE_STDLIB_H |
|
600 # include <stdlib.h> |
|
601 # endif |
|
602 #endif |
|
603 #ifdef HAVE_STRING_H |
|
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
605 # include <memory.h> |
|
606 # endif |
|
607 # include <string.h> |
|
608 #endif |
|
609 #ifdef HAVE_STRINGS_H |
|
610 # include <strings.h> |
|
611 #endif |
|
612 #ifdef HAVE_INTTYPES_H |
|
613 # include <inttypes.h> |
|
614 #endif |
|
615 #ifdef HAVE_STDINT_H |
|
616 # include <stdint.h> |
|
617 #endif |
|
618 #ifdef HAVE_UNISTD_H |
|
619 # include <unistd.h> |
|
620 #endif" |
|
621 |
|
622 ac_subst_vars='LTLIBOBJS |
|
623 LIBOBJS |
|
624 MT |
|
625 NEXT_ROOT |
|
626 SYMBIAN_SDK_DIR |
|
627 MACOS_SDK_DIR |
|
628 WRAP_SYSTEM_INCLUDES |
|
629 VISIBILITY_FLAGS |
|
630 CYGWIN_WRAPPER |
|
631 OS_DLLFLAGS |
|
632 EXEFLAGS |
|
633 DLLFLAGS |
|
634 RCFLAGS |
|
635 RC |
|
636 OPTIMIZER |
|
637 NSINSTALL |
|
638 RELEASE_OBJDIR_NAME |
|
639 OBJDIR_NAME |
|
640 OBJDIR |
|
641 ULTRASPARC_LIBRARY |
|
642 MOZ_OBJFORMAT |
|
643 NOSUCHFILE |
|
644 AIX_LINK_OPTS |
|
645 RESOLVE_LINK_SYMBOLS |
|
646 OS_LIBS |
|
647 PROFILE_USE_LDFLAGS |
|
648 PROFILE_USE_CFLAGS |
|
649 PROFILE_GEN_LDFLAGS |
|
650 PROFILE_GEN_CFLAGS |
|
651 IMPLIB |
|
652 FILTER |
|
653 ASFLAGS |
|
654 AR_FLAGS |
|
655 DEFINES |
|
656 MACOSX_DEPLOYMENT_TARGET |
|
657 OS_TEST |
|
658 OS_RELEASE |
|
659 OS_ARCH |
|
660 OS_TARGET |
|
661 DSO_LDOPTS |
|
662 DSO_CFLAGS |
|
663 MKSHLIB |
|
664 WRAP_LDFLAGS |
|
665 ASM_SUFFIX |
|
666 DLL_SUFFIX |
|
667 LIB_SUFFIX |
|
668 OBJ_SUFFIX |
|
669 CPU_ARCH |
|
670 PR_MD_ARCH_DIR |
|
671 PR_MD_ASFILES |
|
672 PR_MD_CSRCS |
|
673 MDCPUCFG_H |
|
674 NSPR_MODNAME |
|
675 MOD_PATCH_VERSION |
|
676 MOD_MINOR_VERSION |
|
677 MOD_MAJOR_VERSION |
|
678 LIBPLC |
|
679 LIBNSPR |
|
680 USE_NSPR_THREADS |
|
681 USE_USER_PTHREADS |
|
682 USE_BTHREADS |
|
683 USE_PTHREADS |
|
684 ENABLE_STRIP |
|
685 OBJECT_MODE |
|
686 USE_64 |
|
687 USE_X32 |
|
688 USE_N32 |
|
689 USE_IPV6 |
|
690 USE_CPLUS |
|
691 MOZ_DEBUG_SYMBOLS |
|
692 MOZ_DEBUG |
|
693 MOZ_OPTIMIZE |
|
694 CROSS_COMPILE |
|
695 MSC_VER |
|
696 GCC_USE_GNU_LD |
|
697 GNU_CC |
|
698 HOST_LDFLAGS |
|
699 HOST_CFLAGS |
|
700 MOZILLA_CLIENT |
|
701 SHELL_OVERRIDE |
|
702 CCACHE |
|
703 EGREP |
|
704 GREP |
|
705 PERL |
|
706 CPP |
|
707 HOST_CC |
|
708 WINDRES |
|
709 STRIP |
|
710 LD |
|
711 AS |
|
712 AR |
|
713 RANLIB |
|
714 ac_ct_CXX |
|
715 CXXFLAGS |
|
716 CXX |
|
717 OBJEXT |
|
718 EXEEXT |
|
719 ac_ct_CC |
|
720 CPPFLAGS |
|
721 LDFLAGS |
|
722 CFLAGS |
|
723 WHOAMI |
|
724 dist_libdir |
|
725 dist_includedir |
|
726 dist_bindir |
|
727 dist_prefix |
|
728 CC |
|
729 target_os |
|
730 target_vendor |
|
731 target_cpu |
|
732 target |
|
733 host_os |
|
734 host_vendor |
|
735 host_cpu |
|
736 host |
|
737 build_os |
|
738 build_vendor |
|
739 build_cpu |
|
740 build |
|
741 target_alias |
|
742 host_alias |
|
743 build_alias |
|
744 LIBS |
|
745 ECHO_T |
|
746 ECHO_N |
|
747 ECHO_C |
|
748 DEFS |
|
749 mandir |
|
750 localedir |
|
751 libdir |
|
752 psdir |
|
753 pdfdir |
|
754 dvidir |
|
755 htmldir |
|
756 infodir |
|
757 docdir |
|
758 oldincludedir |
|
759 includedir |
|
760 localstatedir |
|
761 sharedstatedir |
|
762 sysconfdir |
|
763 datadir |
|
764 datarootdir |
|
765 libexecdir |
|
766 sbindir |
|
767 bindir |
|
768 program_transform_name |
|
769 prefix |
|
770 exec_prefix |
|
771 PACKAGE_URL |
|
772 PACKAGE_BUGREPORT |
|
773 PACKAGE_STRING |
|
774 PACKAGE_VERSION |
|
775 PACKAGE_TARNAME |
|
776 PACKAGE_NAME |
|
777 PATH_SEPARATOR |
|
778 SHELL' |
|
779 ac_subst_files='' |
|
780 ac_user_opts=' |
|
781 enable_option_checking |
|
782 with_android_ndk |
|
783 with_android_toolchain |
|
784 with_android_version |
|
785 with_android_platform |
|
786 with_gonk |
|
787 with_dist_prefix |
|
788 with_dist_bindir |
|
789 with_dist_includedir |
|
790 with_dist_libdir |
|
791 with_mozilla |
|
792 enable_optimize |
|
793 enable_debug |
|
794 enable_debug_symbols |
|
795 enable_win32_target |
|
796 enable_symbian_target |
|
797 enable_debug_rtl |
|
798 enable_n32 |
|
799 enable_x32 |
|
800 enable_64bit |
|
801 enable_mdupdate |
|
802 enable_cplus |
|
803 with_arm_kuser |
|
804 with_macos_sdk |
|
805 enable_macos_target |
|
806 enable_os2_high_mem |
|
807 enable_thumb2 |
|
808 with_thumb |
|
809 with_thumb_interwork |
|
810 with_arch |
|
811 with_fpu |
|
812 with_float_abi |
|
813 with_soft_float |
|
814 with_symbian_sdk |
|
815 with_ccache |
|
816 enable_strip |
|
817 with_pthreads |
|
818 enable_user_pthreads |
|
819 enable_nspr_threads |
|
820 with_bthreads |
|
821 enable_ipv6 |
|
822 enable_wrap_malloc |
|
823 with_wrap_malloc |
|
824 ' |
|
825 ac_precious_vars='build_alias |
|
826 host_alias |
|
827 target_alias |
|
828 CC |
|
829 CFLAGS |
|
830 LDFLAGS |
|
831 LIBS |
|
832 CPPFLAGS |
|
833 CXX |
|
834 CXXFLAGS |
|
835 CCC |
|
836 CPP' |
|
837 |
|
838 |
|
839 # Initialize some variables set by options. |
|
840 ac_init_help= |
|
841 ac_init_version=false |
|
842 ac_unrecognized_opts= |
|
843 ac_unrecognized_sep= |
|
844 # The variables have the same names as the options, with |
|
845 # dashes changed to underlines. |
|
846 cache_file=/dev/null |
|
847 exec_prefix=NONE |
|
848 no_create= |
|
849 no_recursion= |
|
850 prefix=NONE |
|
851 program_prefix=NONE |
|
852 program_suffix=NONE |
|
853 program_transform_name=s,x,x, |
|
854 silent= |
|
855 site= |
|
856 srcdir= |
|
857 verbose= |
|
858 x_includes=NONE |
|
859 x_libraries=NONE |
|
860 |
|
861 # Installation directory options. |
|
862 # These are left unexpanded so users can "make install exec_prefix=/foo" |
|
863 # and all the variables that are supposed to be based on exec_prefix |
|
864 # by default will actually change. |
|
865 # Use braces instead of parens because sh, perl, etc. also accept them. |
|
866 # (The list follows the same order as the GNU Coding Standards.) |
|
867 bindir='${exec_prefix}/bin' |
|
868 sbindir='${exec_prefix}/sbin' |
|
869 libexecdir='${exec_prefix}/libexec' |
|
870 datarootdir='${prefix}/share' |
|
871 datadir='${datarootdir}' |
|
872 sysconfdir='${prefix}/etc' |
|
873 sharedstatedir='${prefix}/com' |
|
874 localstatedir='${prefix}/var' |
|
875 includedir='${prefix}/include' |
|
876 oldincludedir='/usr/include' |
|
877 docdir='${datarootdir}/doc/${PACKAGE}' |
|
878 infodir='${datarootdir}/info' |
|
879 htmldir='${docdir}' |
|
880 dvidir='${docdir}' |
|
881 pdfdir='${docdir}' |
|
882 psdir='${docdir}' |
|
883 libdir='${exec_prefix}/lib' |
|
884 localedir='${datarootdir}/locale' |
|
885 mandir='${datarootdir}/man' |
|
886 |
|
887 ac_prev= |
|
888 ac_dashdash= |
|
889 for ac_option |
|
890 do |
|
891 # If the previous option needs an argument, assign it. |
|
892 if test -n "$ac_prev"; then |
|
893 eval $ac_prev=\$ac_option |
|
894 ac_prev= |
|
895 continue |
|
896 fi |
|
897 |
|
898 case $ac_option in |
|
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
900 *=) ac_optarg= ;; |
|
901 *) ac_optarg=yes ;; |
|
902 esac |
|
903 |
|
904 # Accept the important Cygnus configure options, so we can diagnose typos. |
|
905 |
|
906 case $ac_dashdash$ac_option in |
|
907 --) |
|
908 ac_dashdash=yes ;; |
|
909 |
|
910 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
911 ac_prev=bindir ;; |
|
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
913 bindir=$ac_optarg ;; |
|
914 |
|
915 -build | --build | --buil | --bui | --bu) |
|
916 ac_prev=build_alias ;; |
|
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
918 build_alias=$ac_optarg ;; |
|
919 |
|
920 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
922 ac_prev=cache_file ;; |
|
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
925 cache_file=$ac_optarg ;; |
|
926 |
|
927 --config-cache | -C) |
|
928 cache_file=config.cache ;; |
|
929 |
|
930 -datadir | --datadir | --datadi | --datad) |
|
931 ac_prev=datadir ;; |
|
932 -datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
933 datadir=$ac_optarg ;; |
|
934 |
|
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
936 | --dataroo | --dataro | --datar) |
|
937 ac_prev=datarootdir ;; |
|
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
940 datarootdir=$ac_optarg ;; |
|
941 |
|
942 -disable-* | --disable-*) |
|
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
944 # Reject names that are not valid shell variable names. |
|
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
946 as_fn_error $? "invalid feature name: $ac_useropt" |
|
947 ac_useropt_orig=$ac_useropt |
|
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
949 case $ac_user_opts in |
|
950 *" |
|
951 "enable_$ac_useropt" |
|
952 "*) ;; |
|
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
954 ac_unrecognized_sep=', ';; |
|
955 esac |
|
956 eval enable_$ac_useropt=no ;; |
|
957 |
|
958 -docdir | --docdir | --docdi | --doc | --do) |
|
959 ac_prev=docdir ;; |
|
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
961 docdir=$ac_optarg ;; |
|
962 |
|
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
964 ac_prev=dvidir ;; |
|
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
966 dvidir=$ac_optarg ;; |
|
967 |
|
968 -enable-* | --enable-*) |
|
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
970 # Reject names that are not valid shell variable names. |
|
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
972 as_fn_error $? "invalid feature name: $ac_useropt" |
|
973 ac_useropt_orig=$ac_useropt |
|
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
975 case $ac_user_opts in |
|
976 *" |
|
977 "enable_$ac_useropt" |
|
978 "*) ;; |
|
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
980 ac_unrecognized_sep=', ';; |
|
981 esac |
|
982 eval enable_$ac_useropt=\$ac_optarg ;; |
|
983 |
|
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
986 | --exec | --exe | --ex) |
|
987 ac_prev=exec_prefix ;; |
|
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
990 | --exec=* | --exe=* | --ex=*) |
|
991 exec_prefix=$ac_optarg ;; |
|
992 |
|
993 -gas | --gas | --ga | --g) |
|
994 # Obsolete; use --with-gas. |
|
995 with_gas=yes ;; |
|
996 |
|
997 -help | --help | --hel | --he | -h) |
|
998 ac_init_help=long ;; |
|
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
1000 ac_init_help=recursive ;; |
|
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
1002 ac_init_help=short ;; |
|
1003 |
|
1004 -host | --host | --hos | --ho) |
|
1005 ac_prev=host_alias ;; |
|
1006 -host=* | --host=* | --hos=* | --ho=*) |
|
1007 host_alias=$ac_optarg ;; |
|
1008 |
|
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
1010 ac_prev=htmldir ;; |
|
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
1012 | --ht=*) |
|
1013 htmldir=$ac_optarg ;; |
|
1014 |
|
1015 -includedir | --includedir | --includedi | --included | --include \ |
|
1016 | --includ | --inclu | --incl | --inc) |
|
1017 ac_prev=includedir ;; |
|
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
1019 | --includ=* | --inclu=* | --incl=* | --inc=*) |
|
1020 includedir=$ac_optarg ;; |
|
1021 |
|
1022 -infodir | --infodir | --infodi | --infod | --info | --inf) |
|
1023 ac_prev=infodir ;; |
|
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
1025 infodir=$ac_optarg ;; |
|
1026 |
|
1027 -libdir | --libdir | --libdi | --libd) |
|
1028 ac_prev=libdir ;; |
|
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
1030 libdir=$ac_optarg ;; |
|
1031 |
|
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
1033 | --libexe | --libex | --libe) |
|
1034 ac_prev=libexecdir ;; |
|
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
1036 | --libexe=* | --libex=* | --libe=*) |
|
1037 libexecdir=$ac_optarg ;; |
|
1038 |
|
1039 -localedir | --localedir | --localedi | --localed | --locale) |
|
1040 ac_prev=localedir ;; |
|
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
1042 localedir=$ac_optarg ;; |
|
1043 |
|
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
1045 | --localstate | --localstat | --localsta | --localst | --locals) |
|
1046 ac_prev=localstatedir ;; |
|
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
1049 localstatedir=$ac_optarg ;; |
|
1050 |
|
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
1052 ac_prev=mandir ;; |
|
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
1054 mandir=$ac_optarg ;; |
|
1055 |
|
1056 -nfp | --nfp | --nf) |
|
1057 # Obsolete; use --without-fp. |
|
1058 with_fp=no ;; |
|
1059 |
|
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
1061 | --no-cr | --no-c | -n) |
|
1062 no_create=yes ;; |
|
1063 |
|
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
1066 no_recursion=yes ;; |
|
1067 |
|
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1070 | --oldin | --oldi | --old | --ol | --o) |
|
1071 ac_prev=oldincludedir ;; |
|
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1075 oldincludedir=$ac_optarg ;; |
|
1076 |
|
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1078 ac_prev=prefix ;; |
|
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1080 prefix=$ac_optarg ;; |
|
1081 |
|
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1083 | --program-pre | --program-pr | --program-p) |
|
1084 ac_prev=program_prefix ;; |
|
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1087 program_prefix=$ac_optarg ;; |
|
1088 |
|
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1090 | --program-suf | --program-su | --program-s) |
|
1091 ac_prev=program_suffix ;; |
|
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1094 program_suffix=$ac_optarg ;; |
|
1095 |
|
1096 -program-transform-name | --program-transform-name \ |
|
1097 | --program-transform-nam | --program-transform-na \ |
|
1098 | --program-transform-n | --program-transform- \ |
|
1099 | --program-transform | --program-transfor \ |
|
1100 | --program-transfo | --program-transf \ |
|
1101 | --program-trans | --program-tran \ |
|
1102 | --progr-tra | --program-tr | --program-t) |
|
1103 ac_prev=program_transform_name ;; |
|
1104 -program-transform-name=* | --program-transform-name=* \ |
|
1105 | --program-transform-nam=* | --program-transform-na=* \ |
|
1106 | --program-transform-n=* | --program-transform-=* \ |
|
1107 | --program-transform=* | --program-transfor=* \ |
|
1108 | --program-transfo=* | --program-transf=* \ |
|
1109 | --program-trans=* | --program-tran=* \ |
|
1110 | --progr-tra=* | --program-tr=* | --program-t=*) |
|
1111 program_transform_name=$ac_optarg ;; |
|
1112 |
|
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
1114 ac_prev=pdfdir ;; |
|
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1116 pdfdir=$ac_optarg ;; |
|
1117 |
|
1118 -psdir | --psdir | --psdi | --psd | --ps) |
|
1119 ac_prev=psdir ;; |
|
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1121 psdir=$ac_optarg ;; |
|
1122 |
|
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1124 | -silent | --silent | --silen | --sile | --sil) |
|
1125 silent=yes ;; |
|
1126 |
|
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1128 ac_prev=sbindir ;; |
|
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1130 | --sbi=* | --sb=*) |
|
1131 sbindir=$ac_optarg ;; |
|
1132 |
|
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1135 | --sharedst | --shareds | --shared | --share | --shar \ |
|
1136 | --sha | --sh) |
|
1137 ac_prev=sharedstatedir ;; |
|
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1141 | --sha=* | --sh=*) |
|
1142 sharedstatedir=$ac_optarg ;; |
|
1143 |
|
1144 -site | --site | --sit) |
|
1145 ac_prev=site ;; |
|
1146 -site=* | --site=* | --sit=*) |
|
1147 site=$ac_optarg ;; |
|
1148 |
|
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1150 ac_prev=srcdir ;; |
|
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1152 srcdir=$ac_optarg ;; |
|
1153 |
|
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1155 | --syscon | --sysco | --sysc | --sys | --sy) |
|
1156 ac_prev=sysconfdir ;; |
|
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1159 sysconfdir=$ac_optarg ;; |
|
1160 |
|
1161 -target | --target | --targe | --targ | --tar | --ta | --t) |
|
1162 ac_prev=target_alias ;; |
|
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1164 target_alias=$ac_optarg ;; |
|
1165 |
|
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1167 verbose=yes ;; |
|
1168 |
|
1169 -version | --version | --versio | --versi | --vers | -V) |
|
1170 ac_init_version=: ;; |
|
1171 |
|
1172 -with-* | --with-*) |
|
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1174 # Reject names that are not valid shell variable names. |
|
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1176 as_fn_error $? "invalid package name: $ac_useropt" |
|
1177 ac_useropt_orig=$ac_useropt |
|
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1179 case $ac_user_opts in |
|
1180 *" |
|
1181 "with_$ac_useropt" |
|
1182 "*) ;; |
|
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
1184 ac_unrecognized_sep=', ';; |
|
1185 esac |
|
1186 eval with_$ac_useropt=\$ac_optarg ;; |
|
1187 |
|
1188 -without-* | --without-*) |
|
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1190 # Reject names that are not valid shell variable names. |
|
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1192 as_fn_error $? "invalid package name: $ac_useropt" |
|
1193 ac_useropt_orig=$ac_useropt |
|
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1195 case $ac_user_opts in |
|
1196 *" |
|
1197 "with_$ac_useropt" |
|
1198 "*) ;; |
|
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
1200 ac_unrecognized_sep=', ';; |
|
1201 esac |
|
1202 eval with_$ac_useropt=no ;; |
|
1203 |
|
1204 --x) |
|
1205 # Obsolete; use --with-x. |
|
1206 with_x=yes ;; |
|
1207 |
|
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1209 | --x-incl | --x-inc | --x-in | --x-i) |
|
1210 ac_prev=x_includes ;; |
|
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1213 x_includes=$ac_optarg ;; |
|
1214 |
|
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1217 ac_prev=x_libraries ;; |
|
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1220 x_libraries=$ac_optarg ;; |
|
1221 |
|
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option' |
|
1223 Try \`$0 --help' for more information" |
|
1224 ;; |
|
1225 |
|
1226 *=*) |
|
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1228 # Reject names that are not valid shell variable names. |
|
1229 case $ac_envvar in #( |
|
1230 '' | [0-9]* | *[!_$as_cr_alnum]* ) |
|
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
|
1232 esac |
|
1233 eval $ac_envvar=\$ac_optarg |
|
1234 export $ac_envvar ;; |
|
1235 |
|
1236 *) |
|
1237 # FIXME: should be removed in autoconf 3.0. |
|
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
|
1242 ;; |
|
1243 |
|
1244 esac |
|
1245 done |
|
1246 |
|
1247 if test -n "$ac_prev"; then |
|
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1249 as_fn_error $? "missing argument to $ac_option" |
|
1250 fi |
|
1251 |
|
1252 if test -n "$ac_unrecognized_opts"; then |
|
1253 case $enable_option_checking in |
|
1254 no) ;; |
|
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
1257 esac |
|
1258 fi |
|
1259 |
|
1260 # Check all directory arguments for consistency. |
|
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1262 datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1264 libdir localedir mandir |
|
1265 do |
|
1266 eval ac_val=\$$ac_var |
|
1267 # Remove trailing slashes. |
|
1268 case $ac_val in |
|
1269 */ ) |
|
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
1271 eval $ac_var=\$ac_val;; |
|
1272 esac |
|
1273 # Be sure to have absolute directory names. |
|
1274 case $ac_val in |
|
1275 [\\/$]* | ?:[\\/]* ) continue;; |
|
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1277 esac |
|
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
|
1279 done |
|
1280 |
|
1281 # There might be people who depend on the old broken behavior: `$host' |
|
1282 # used to hold the argument of --host etc. |
|
1283 # FIXME: To remove some day. |
|
1284 build=$build_alias |
|
1285 host=$host_alias |
|
1286 target=$target_alias |
|
1287 |
|
1288 # FIXME: To remove some day. |
|
1289 if test "x$host_alias" != x; then |
|
1290 if test "x$build_alias" = x; then |
|
1291 cross_compiling=maybe |
|
1292 elif test "x$build_alias" != "x$host_alias"; then |
|
1293 cross_compiling=yes |
|
1294 fi |
|
1295 fi |
|
1296 |
|
1297 ac_tool_prefix= |
|
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1299 |
|
1300 test "$silent" = yes && exec 6>/dev/null |
|
1301 |
|
1302 |
|
1303 ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1304 ac_ls_di=`ls -di .` && |
|
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1306 as_fn_error $? "working directory cannot be determined" |
|
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1308 as_fn_error $? "pwd does not report name of working directory" |
|
1309 |
|
1310 |
|
1311 # Find the source files, if location was not specified. |
|
1312 if test -z "$srcdir"; then |
|
1313 ac_srcdir_defaulted=yes |
|
1314 # Try the directory containing this script, then the parent directory. |
|
1315 ac_confdir=`$as_dirname -- "$as_myself" || |
|
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1317 X"$as_myself" : 'X\(//\)[^/]' \| \ |
|
1318 X"$as_myself" : 'X\(//\)$' \| \ |
|
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|
1320 $as_echo X"$as_myself" | |
|
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
1322 s//\1/ |
|
1323 q |
|
1324 } |
|
1325 /^X\(\/\/\)[^/].*/{ |
|
1326 s//\1/ |
|
1327 q |
|
1328 } |
|
1329 /^X\(\/\/\)$/{ |
|
1330 s//\1/ |
|
1331 q |
|
1332 } |
|
1333 /^X\(\/\).*/{ |
|
1334 s//\1/ |
|
1335 q |
|
1336 } |
|
1337 s/.*/./; q'` |
|
1338 srcdir=$ac_confdir |
|
1339 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1340 srcdir=.. |
|
1341 fi |
|
1342 else |
|
1343 ac_srcdir_defaulted=no |
|
1344 fi |
|
1345 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
|
1348 fi |
|
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1350 ac_abs_confdir=`( |
|
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
|
1352 pwd)` |
|
1353 # When building in place, set srcdir=. |
|
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1355 srcdir=. |
|
1356 fi |
|
1357 # Remove unnecessary trailing slashes from srcdir. |
|
1358 # Double slashes in file names in object file debugging info |
|
1359 # mess up M-x gdb in Emacs. |
|
1360 case $srcdir in |
|
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1362 esac |
|
1363 for ac_var in $ac_precious_vars; do |
|
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1365 eval ac_env_${ac_var}_value=\$${ac_var} |
|
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1368 done |
|
1369 |
|
1370 # |
|
1371 # Report the --help message. |
|
1372 # |
|
1373 if test "$ac_init_help" = "long"; then |
|
1374 # Omit some internal or obsolete options to make the list less imposing. |
|
1375 # This message is too long to be a string in the A/UX 3.1 sh. |
|
1376 cat <<_ACEOF |
|
1377 \`configure' configures this package to adapt to many kinds of systems. |
|
1378 |
|
1379 Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1380 |
|
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1382 VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1383 |
|
1384 Defaults for the options are specified in brackets. |
|
1385 |
|
1386 Configuration: |
|
1387 -h, --help display this help and exit |
|
1388 --help=short display options specific to this package |
|
1389 --help=recursive display the short help of all the included packages |
|
1390 -V, --version display version information and exit |
|
1391 -q, --quiet, --silent do not print \`checking ...' messages |
|
1392 --cache-file=FILE cache test results in FILE [disabled] |
|
1393 -C, --config-cache alias for \`--cache-file=config.cache' |
|
1394 -n, --no-create do not create output files |
|
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1396 |
|
1397 Installation directories: |
|
1398 --prefix=PREFIX install architecture-independent files in PREFIX |
|
1399 [$ac_default_prefix] |
|
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1401 [PREFIX] |
|
1402 |
|
1403 By default, \`make install' will install all the files in |
|
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1406 for instance \`--prefix=\$HOME'. |
|
1407 |
|
1408 For better control, use the options below. |
|
1409 |
|
1410 Fine tuning of the installation directories: |
|
1411 --bindir=DIR user executables [EPREFIX/bin] |
|
1412 --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1413 --libexecdir=DIR program executables [EPREFIX/libexec] |
|
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1417 --libdir=DIR object code libraries [EPREFIX/lib] |
|
1418 --includedir=DIR C header files [PREFIX/include] |
|
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1422 --infodir=DIR info documentation [DATAROOTDIR/info] |
|
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1424 --mandir=DIR man documentation [DATAROOTDIR/man] |
|
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|
1426 --htmldir=DIR html documentation [DOCDIR] |
|
1427 --dvidir=DIR dvi documentation [DOCDIR] |
|
1428 --pdfdir=DIR pdf documentation [DOCDIR] |
|
1429 --psdir=DIR ps documentation [DOCDIR] |
|
1430 _ACEOF |
|
1431 |
|
1432 cat <<\_ACEOF |
|
1433 |
|
1434 System types: |
|
1435 --build=BUILD configure for building on BUILD [guessed] |
|
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1437 --target=TARGET configure for building compilers for TARGET [HOST] |
|
1438 _ACEOF |
|
1439 fi |
|
1440 |
|
1441 if test -n "$ac_init_help"; then |
|
1442 |
|
1443 cat <<\_ACEOF |
|
1444 |
|
1445 Optional Features: |
|
1446 --disable-option-checking ignore unrecognized --enable/--with options |
|
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1449 --enable-optimize=OPT Enable code optimizations (ie. -O2) |
|
1450 --enable-debug=DBG Enable debugging (using compiler flags DBG) |
|
1451 --enable-debug-symbols=DBG Enable debugging symbols |
|
1452 (using compiler flags DBG) |
|
1453 --enable-win32-target=\$t |
|
1454 Specify win32 flavor. (WIN95 or WINNT) |
|
1455 --enable-symbian-target=\$t |
|
1456 Specify symbian flavor. (WINSCW or GCCE) |
|
1457 --enable-debug-rtl Use the MSVC debug runtime library |
|
1458 --enable-n32 Enable n32 ABI support (IRIX only) |
|
1459 --enable-x32 Enable x32 ABI support (x86_64 only) |
|
1460 --enable-64bit Enable 64-bit support (on certain platforms) |
|
1461 --enable-mdupdate Enable use of certain compilers' mdupdate feature |
|
1462 --enable-cplus Enable some c++ api routines |
|
1463 --enable-macos-target=VER |
|
1464 Set the minimum MacOS version needed at runtime |
|
1465 10.2 for ppc, 10.4 for x86 |
|
1466 --disable-os2-high-mem Disable high-memory support on OS/2 |
|
1467 |
|
1468 --enable-strip Enable stripping of shared libs and programs |
|
1469 --enable-user-pthreads Build using userland pthreads |
|
1470 --enable-nspr-threads Build using classic nspr threads |
|
1471 --enable-ipv6 Compile ipv6 support |
|
1472 --enable-wrap-malloc Wrap malloc calls (gnu linker only) |
|
1473 |
|
1474 Optional Packages: |
|
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1477 --with-android-ndk=DIR |
|
1478 location where the Android NDK can be found |
|
1479 --with-android-toolchain=DIR |
|
1480 location of the Android toolchain |
|
1481 --with-android-version=VER |
|
1482 Android platform version, default 5 for arm, 9 for x86/mips |
|
1483 --with-android-platform=DIR |
|
1484 location of platform dir |
|
1485 --with-gonk=DIR location of gonk dir |
|
1486 --with-dist-prefix=DIST_PREFIX |
|
1487 place build files in DIST_PREFIX dist |
|
1488 --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin |
|
1489 --with-dist-includedir=DIR |
|
1490 build include files in DIR DIST_PREFIX/include/nspr |
|
1491 --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib |
|
1492 --with-mozilla Compile NSPR with Mozilla support |
|
1493 --with-arm-kuser Use kuser helpers (Linux/ARM only) |
|
1494 (Requires kernel 2.6.13 or later) |
|
1495 --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only) |
|
1496 --with-thumb[=yes|no|toolchain-default] |
|
1497 Use Thumb instruction set (-mthumb) |
|
1498 --with-thumb-interwork[=yes|no|toolchain-default] |
|
1499 Use Thumb/ARM instuctions interwork (-mthumb-interwork) |
|
1500 --with-arch=[type|toolchain-default] |
|
1501 Use specific CPU features (-march=type) |
|
1502 --with-fpu=[type|toolchain-default] |
|
1503 Use specific FPU type (-mfpu=type) |
|
1504 --with-float-abi=[type|toolchain-default] |
|
1505 Use specific arm float ABI (-mfloat-abi=type) |
|
1506 --with-soft-float[=yes|no|toolchain-default] |
|
1507 Use soft float library (-msoft-float) |
|
1508 --with-symbian-sdk=SYMBIAN_SDK_DIR |
|
1509 The path to the Symbian SDK |
|
1510 --with-ccache=path/to/ccache |
|
1511 Enable compiling with ccache |
|
1512 --with-pthreads Use system pthreads library as thread subsystem |
|
1513 --with-bthreads Use system bthreads library as thread subsystem |
|
1514 (BeOS only) |
|
1515 --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library |
|
1516 |
|
1517 Some influential environment variables: |
|
1518 CC C compiler command |
|
1519 CFLAGS C compiler flags |
|
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1521 nonstandard directory <lib dir> |
|
1522 LIBS libraries to pass to the linker, e.g. -l<library> |
|
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
|
1524 you have headers in a nonstandard directory <include dir> |
|
1525 CXX C++ compiler command |
|
1526 CXXFLAGS C++ compiler flags |
|
1527 CPP C preprocessor |
|
1528 |
|
1529 Use these variables to override the choices made by `configure' or to help |
|
1530 it to find libraries and programs with nonstandard names/locations. |
|
1531 |
|
1532 Report bugs to the package provider. |
|
1533 _ACEOF |
|
1534 ac_status=$? |
|
1535 fi |
|
1536 |
|
1537 if test "$ac_init_help" = "recursive"; then |
|
1538 # If there are subdirs, report their specific --help. |
|
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1540 test -d "$ac_dir" || |
|
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
1542 continue |
|
1543 ac_builddir=. |
|
1544 |
|
1545 case "$ac_dir" in |
|
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1547 *) |
|
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
1549 # A ".." for each directory in $ac_dir_suffix. |
|
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
1551 case $ac_top_builddir_sub in |
|
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1554 esac ;; |
|
1555 esac |
|
1556 ac_abs_top_builddir=$ac_pwd |
|
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1558 # for backward compatibility: |
|
1559 ac_top_builddir=$ac_top_build_prefix |
|
1560 |
|
1561 case $srcdir in |
|
1562 .) # We are building in place. |
|
1563 ac_srcdir=. |
|
1564 ac_top_srcdir=$ac_top_builddir_sub |
|
1565 ac_abs_top_srcdir=$ac_pwd ;; |
|
1566 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
1567 ac_srcdir=$srcdir$ac_dir_suffix; |
|
1568 ac_top_srcdir=$srcdir |
|
1569 ac_abs_top_srcdir=$srcdir ;; |
|
1570 *) # Relative name. |
|
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1574 esac |
|
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1576 |
|
1577 cd "$ac_dir" || { ac_status=$?; continue; } |
|
1578 # Check for guested configure. |
|
1579 if test -f "$ac_srcdir/configure.gnu"; then |
|
1580 echo && |
|
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1582 elif test -f "$ac_srcdir/configure"; then |
|
1583 echo && |
|
1584 $SHELL "$ac_srcdir/configure" --help=recursive |
|
1585 else |
|
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1587 fi || ac_status=$? |
|
1588 cd "$ac_pwd" || { ac_status=$?; break; } |
|
1589 done |
|
1590 fi |
|
1591 |
|
1592 test -n "$ac_init_help" && exit $ac_status |
|
1593 if $ac_init_version; then |
|
1594 cat <<\_ACEOF |
|
1595 configure |
|
1596 generated by GNU Autoconf 2.69 |
|
1597 |
|
1598 Copyright (C) 2012 Free Software Foundation, Inc. |
|
1599 This configure script is free software; the Free Software Foundation |
|
1600 gives unlimited permission to copy, distribute and modify it. |
|
1601 _ACEOF |
|
1602 exit |
|
1603 fi |
|
1604 |
|
1605 ## ------------------------ ## |
|
1606 ## Autoconf initialization. ## |
|
1607 ## ------------------------ ## |
|
1608 |
|
1609 # ac_fn_c_try_compile LINENO |
|
1610 # -------------------------- |
|
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
1612 ac_fn_c_try_compile () |
|
1613 { |
|
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1615 rm -f conftest.$ac_objext |
|
1616 if { { ac_try="$ac_compile" |
|
1617 case "(($ac_try" in |
|
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1619 *) ac_try_echo=$ac_try;; |
|
1620 esac |
|
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1622 $as_echo "$ac_try_echo"; } >&5 |
|
1623 (eval "$ac_compile") 2>conftest.err |
|
1624 ac_status=$? |
|
1625 if test -s conftest.err; then |
|
1626 grep -v '^ *+' conftest.err >conftest.er1 |
|
1627 cat conftest.er1 >&5 |
|
1628 mv -f conftest.er1 conftest.err |
|
1629 fi |
|
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1631 test $ac_status = 0; } && { |
|
1632 test -z "$ac_c_werror_flag" || |
|
1633 test ! -s conftest.err |
|
1634 } && test -s conftest.$ac_objext; then : |
|
1635 ac_retval=0 |
|
1636 else |
|
1637 $as_echo "$as_me: failed program was:" >&5 |
|
1638 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1639 |
|
1640 ac_retval=1 |
|
1641 fi |
|
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1643 as_fn_set_status $ac_retval |
|
1644 |
|
1645 } # ac_fn_c_try_compile |
|
1646 |
|
1647 # ac_fn_cxx_try_compile LINENO |
|
1648 # ---------------------------- |
|
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
1650 ac_fn_cxx_try_compile () |
|
1651 { |
|
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1653 rm -f conftest.$ac_objext |
|
1654 if { { ac_try="$ac_compile" |
|
1655 case "(($ac_try" in |
|
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1657 *) ac_try_echo=$ac_try;; |
|
1658 esac |
|
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1660 $as_echo "$ac_try_echo"; } >&5 |
|
1661 (eval "$ac_compile") 2>conftest.err |
|
1662 ac_status=$? |
|
1663 if test -s conftest.err; then |
|
1664 grep -v '^ *+' conftest.err >conftest.er1 |
|
1665 cat conftest.er1 >&5 |
|
1666 mv -f conftest.er1 conftest.err |
|
1667 fi |
|
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1669 test $ac_status = 0; } && { |
|
1670 test -z "$ac_cxx_werror_flag" || |
|
1671 test ! -s conftest.err |
|
1672 } && test -s conftest.$ac_objext; then : |
|
1673 ac_retval=0 |
|
1674 else |
|
1675 $as_echo "$as_me: failed program was:" >&5 |
|
1676 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1677 |
|
1678 ac_retval=1 |
|
1679 fi |
|
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1681 as_fn_set_status $ac_retval |
|
1682 |
|
1683 } # ac_fn_cxx_try_compile |
|
1684 |
|
1685 # ac_fn_c_try_cpp LINENO |
|
1686 # ---------------------- |
|
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1688 ac_fn_c_try_cpp () |
|
1689 { |
|
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1691 if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1692 case "(($ac_try" in |
|
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1694 *) ac_try_echo=$ac_try;; |
|
1695 esac |
|
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1697 $as_echo "$ac_try_echo"; } >&5 |
|
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1699 ac_status=$? |
|
1700 if test -s conftest.err; then |
|
1701 grep -v '^ *+' conftest.err >conftest.er1 |
|
1702 cat conftest.er1 >&5 |
|
1703 mv -f conftest.er1 conftest.err |
|
1704 fi |
|
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1706 test $ac_status = 0; } > conftest.i && { |
|
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1708 test ! -s conftest.err |
|
1709 }; then : |
|
1710 ac_retval=0 |
|
1711 else |
|
1712 $as_echo "$as_me: failed program was:" >&5 |
|
1713 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1714 |
|
1715 ac_retval=1 |
|
1716 fi |
|
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1718 as_fn_set_status $ac_retval |
|
1719 |
|
1720 } # ac_fn_c_try_cpp |
|
1721 |
|
1722 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
1723 # ------------------------------------------------------- |
|
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
1725 # the include files in INCLUDES and setting the cache variable VAR |
|
1726 # accordingly. |
|
1727 ac_fn_c_check_header_mongrel () |
|
1728 { |
|
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1730 if eval \${$3+:} false; then : |
|
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1732 $as_echo_n "checking for $2... " >&6; } |
|
1733 if eval \${$3+:} false; then : |
|
1734 $as_echo_n "(cached) " >&6 |
|
1735 fi |
|
1736 eval ac_res=\$$3 |
|
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1738 $as_echo "$ac_res" >&6; } |
|
1739 else |
|
1740 # Is the header compilable? |
|
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
1742 $as_echo_n "checking $2 usability... " >&6; } |
|
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1744 /* end confdefs.h. */ |
|
1745 $4 |
|
1746 #include <$2> |
|
1747 _ACEOF |
|
1748 if ac_fn_c_try_compile "$LINENO"; then : |
|
1749 ac_header_compiler=yes |
|
1750 else |
|
1751 ac_header_compiler=no |
|
1752 fi |
|
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
1755 $as_echo "$ac_header_compiler" >&6; } |
|
1756 |
|
1757 # Is the header present? |
|
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
1759 $as_echo_n "checking $2 presence... " >&6; } |
|
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1761 /* end confdefs.h. */ |
|
1762 #include <$2> |
|
1763 _ACEOF |
|
1764 if ac_fn_c_try_cpp "$LINENO"; then : |
|
1765 ac_header_preproc=yes |
|
1766 else |
|
1767 ac_header_preproc=no |
|
1768 fi |
|
1769 rm -f conftest.err conftest.i conftest.$ac_ext |
|
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
1771 $as_echo "$ac_header_preproc" >&6; } |
|
1772 |
|
1773 # So? What about this header? |
|
1774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
1775 yes:no: ) |
|
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
1780 ;; |
|
1781 no:yes:* ) |
|
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
1792 ;; |
|
1793 esac |
|
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1795 $as_echo_n "checking for $2... " >&6; } |
|
1796 if eval \${$3+:} false; then : |
|
1797 $as_echo_n "(cached) " >&6 |
|
1798 else |
|
1799 eval "$3=\$ac_header_compiler" |
|
1800 fi |
|
1801 eval ac_res=\$$3 |
|
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1803 $as_echo "$ac_res" >&6; } |
|
1804 fi |
|
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1806 |
|
1807 } # ac_fn_c_check_header_mongrel |
|
1808 |
|
1809 # ac_fn_c_try_run LINENO |
|
1810 # ---------------------- |
|
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
1812 # that executables *can* be run. |
|
1813 ac_fn_c_try_run () |
|
1814 { |
|
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1816 if { { ac_try="$ac_link" |
|
1817 case "(($ac_try" in |
|
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1819 *) ac_try_echo=$ac_try;; |
|
1820 esac |
|
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1822 $as_echo "$ac_try_echo"; } >&5 |
|
1823 (eval "$ac_link") 2>&5 |
|
1824 ac_status=$? |
|
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
1827 { { case "(($ac_try" in |
|
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1829 *) ac_try_echo=$ac_try;; |
|
1830 esac |
|
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1832 $as_echo "$ac_try_echo"; } >&5 |
|
1833 (eval "$ac_try") 2>&5 |
|
1834 ac_status=$? |
|
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1836 test $ac_status = 0; }; }; then : |
|
1837 ac_retval=0 |
|
1838 else |
|
1839 $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
1840 $as_echo "$as_me: failed program was:" >&5 |
|
1841 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1842 |
|
1843 ac_retval=$ac_status |
|
1844 fi |
|
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1847 as_fn_set_status $ac_retval |
|
1848 |
|
1849 } # ac_fn_c_try_run |
|
1850 |
|
1851 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
1852 # ------------------------------------------------------- |
|
1853 # Tests whether HEADER exists and can be compiled using the include files in |
|
1854 # INCLUDES, setting the cache variable VAR accordingly. |
|
1855 ac_fn_c_check_header_compile () |
|
1856 { |
|
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1859 $as_echo_n "checking for $2... " >&6; } |
|
1860 if eval \${$3+:} false; then : |
|
1861 $as_echo_n "(cached) " >&6 |
|
1862 else |
|
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1864 /* end confdefs.h. */ |
|
1865 $4 |
|
1866 #include <$2> |
|
1867 _ACEOF |
|
1868 if ac_fn_c_try_compile "$LINENO"; then : |
|
1869 eval "$3=yes" |
|
1870 else |
|
1871 eval "$3=no" |
|
1872 fi |
|
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1874 fi |
|
1875 eval ac_res=\$$3 |
|
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1877 $as_echo "$ac_res" >&6; } |
|
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1879 |
|
1880 } # ac_fn_c_check_header_compile |
|
1881 |
|
1882 # ac_fn_c_try_link LINENO |
|
1883 # ----------------------- |
|
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1885 ac_fn_c_try_link () |
|
1886 { |
|
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1888 rm -f conftest.$ac_objext conftest$ac_exeext |
|
1889 if { { ac_try="$ac_link" |
|
1890 case "(($ac_try" in |
|
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1892 *) ac_try_echo=$ac_try;; |
|
1893 esac |
|
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1895 $as_echo "$ac_try_echo"; } >&5 |
|
1896 (eval "$ac_link") 2>conftest.err |
|
1897 ac_status=$? |
|
1898 if test -s conftest.err; then |
|
1899 grep -v '^ *+' conftest.err >conftest.er1 |
|
1900 cat conftest.er1 >&5 |
|
1901 mv -f conftest.er1 conftest.err |
|
1902 fi |
|
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1904 test $ac_status = 0; } && { |
|
1905 test -z "$ac_c_werror_flag" || |
|
1906 test ! -s conftest.err |
|
1907 } && test -s conftest$ac_exeext && { |
|
1908 test "$cross_compiling" = yes || |
|
1909 test -x conftest$ac_exeext |
|
1910 }; then : |
|
1911 ac_retval=0 |
|
1912 else |
|
1913 $as_echo "$as_me: failed program was:" >&5 |
|
1914 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1915 |
|
1916 ac_retval=1 |
|
1917 fi |
|
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1920 # interfere with the next link command; also delete a directory that is |
|
1921 # left behind by Apple's compiler. We do this before executing the actions. |
|
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_c_try_link |
|
1927 |
|
1928 # ac_fn_c_check_func LINENO FUNC VAR |
|
1929 # ---------------------------------- |
|
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
1931 ac_fn_c_check_func () |
|
1932 { |
|
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1935 $as_echo_n "checking for $2... " >&6; } |
|
1936 if eval \${$3+:} false; then : |
|
1937 $as_echo_n "(cached) " >&6 |
|
1938 else |
|
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1940 /* end confdefs.h. */ |
|
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
1943 #define $2 innocuous_$2 |
|
1944 |
|
1945 /* System header to define __stub macros and hopefully few prototypes, |
|
1946 which can conflict with char $2 (); below. |
|
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
1948 <limits.h> exists even on freestanding compilers. */ |
|
1949 |
|
1950 #ifdef __STDC__ |
|
1951 # include <limits.h> |
|
1952 #else |
|
1953 # include <assert.h> |
|
1954 #endif |
|
1955 |
|
1956 #undef $2 |
|
1957 |
|
1958 /* Override any GCC internal prototype to avoid an error. |
|
1959 Use char because int might match the return type of a GCC |
|
1960 builtin and then its argument prototype would still apply. */ |
|
1961 #ifdef __cplusplus |
|
1962 extern "C" |
|
1963 #endif |
|
1964 char $2 (); |
|
1965 /* The GNU C library defines this for functions which it implements |
|
1966 to always fail with ENOSYS. Some functions are actually named |
|
1967 something starting with __ and the normal name is an alias. */ |
|
1968 #if defined __stub_$2 || defined __stub___$2 |
|
1969 choke me |
|
1970 #endif |
|
1971 |
|
1972 int |
|
1973 main () |
|
1974 { |
|
1975 return $2 (); |
|
1976 ; |
|
1977 return 0; |
|
1978 } |
|
1979 _ACEOF |
|
1980 if ac_fn_c_try_link "$LINENO"; then : |
|
1981 eval "$3=yes" |
|
1982 else |
|
1983 eval "$3=no" |
|
1984 fi |
|
1985 rm -f core conftest.err conftest.$ac_objext \ |
|
1986 conftest$ac_exeext conftest.$ac_ext |
|
1987 fi |
|
1988 eval ac_res=\$$3 |
|
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1990 $as_echo "$ac_res" >&6; } |
|
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1992 |
|
1993 } # ac_fn_c_check_func |
|
1994 cat >config.log <<_ACEOF |
|
1995 This file contains any messages produced by compilers while |
|
1996 running configure, to aid debugging if configure makes a mistake. |
|
1997 |
|
1998 It was created by $as_me, which was |
|
1999 generated by GNU Autoconf 2.69. Invocation command line was |
|
2000 |
|
2001 $ $0 $@ |
|
2002 |
|
2003 _ACEOF |
|
2004 exec 5>>config.log |
|
2005 { |
|
2006 cat <<_ASUNAME |
|
2007 ## --------- ## |
|
2008 ## Platform. ## |
|
2009 ## --------- ## |
|
2010 |
|
2011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
2012 uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
2013 uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
2014 uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
2015 uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
2016 |
|
2017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
2018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
2019 |
|
2020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
2021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
2022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
2023 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
2024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
2025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
2026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
2027 |
|
2028 _ASUNAME |
|
2029 |
|
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2031 for as_dir in $PATH |
|
2032 do |
|
2033 IFS=$as_save_IFS |
|
2034 test -z "$as_dir" && as_dir=. |
|
2035 $as_echo "PATH: $as_dir" |
|
2036 done |
|
2037 IFS=$as_save_IFS |
|
2038 |
|
2039 } >&5 |
|
2040 |
|
2041 cat >&5 <<_ACEOF |
|
2042 |
|
2043 |
|
2044 ## ----------- ## |
|
2045 ## Core tests. ## |
|
2046 ## ----------- ## |
|
2047 |
|
2048 _ACEOF |
|
2049 |
|
2050 |
|
2051 # Keep a trace of the command line. |
|
2052 # Strip out --no-create and --no-recursion so they do not pile up. |
|
2053 # Strip out --silent because we don't want to record it for future runs. |
|
2054 # Also quote any args containing shell meta-characters. |
|
2055 # Make two passes to allow for proper duplicate-argument suppression. |
|
2056 ac_configure_args= |
|
2057 ac_configure_args0= |
|
2058 ac_configure_args1= |
|
2059 ac_must_keep_next=false |
|
2060 for ac_pass in 1 2 |
|
2061 do |
|
2062 for ac_arg |
|
2063 do |
|
2064 case $ac_arg in |
|
2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
2067 | -silent | --silent | --silen | --sile | --sil) |
|
2068 continue ;; |
|
2069 *\'*) |
|
2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2071 esac |
|
2072 case $ac_pass in |
|
2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|
2074 2) |
|
2075 as_fn_append ac_configure_args1 " '$ac_arg'" |
|
2076 if test $ac_must_keep_next = true; then |
|
2077 ac_must_keep_next=false # Got value, back to normal. |
|
2078 else |
|
2079 case $ac_arg in |
|
2080 *=* | --config-cache | -C | -disable-* | --disable-* \ |
|
2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
2083 | -with-* | --with-* | -without-* | --without-* | --x) |
|
2084 case "$ac_configure_args0 " in |
|
2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
2086 esac |
|
2087 ;; |
|
2088 -* ) ac_must_keep_next=true ;; |
|
2089 esac |
|
2090 fi |
|
2091 as_fn_append ac_configure_args " '$ac_arg'" |
|
2092 ;; |
|
2093 esac |
|
2094 done |
|
2095 done |
|
2096 { ac_configure_args0=; unset ac_configure_args0;} |
|
2097 { ac_configure_args1=; unset ac_configure_args1;} |
|
2098 |
|
2099 # When interrupted or exit'd, cleanup temporary files, and complete |
|
2100 # config.log. We remove comments because anyway the quotes in there |
|
2101 # would cause problems or look ugly. |
|
2102 # WARNING: Use '\'' to represent an apostrophe within the trap. |
|
2103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
2104 trap 'exit_status=$? |
|
2105 # Save into config.log some information that might help in debugging. |
|
2106 { |
|
2107 echo |
|
2108 |
|
2109 $as_echo "## ---------------- ## |
|
2110 ## Cache variables. ## |
|
2111 ## ---------------- ##" |
|
2112 echo |
|
2113 # The following way of writing the cache mishandles newlines in values, |
|
2114 ( |
|
2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
2116 eval ac_val=\$$ac_var |
|
2117 case $ac_val in #( |
|
2118 *${as_nl}*) |
|
2119 case $ac_var in #( |
|
2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
2121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
2122 esac |
|
2123 case $ac_var in #( |
|
2124 _ | IFS | as_nl) ;; #( |
|
2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
2126 *) { eval $ac_var=; unset $ac_var;} ;; |
|
2127 esac ;; |
|
2128 esac |
|
2129 done |
|
2130 (set) 2>&1 | |
|
2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
2132 *${as_nl}ac_space=\ *) |
|
2133 sed -n \ |
|
2134 "s/'\''/'\''\\\\'\'''\''/g; |
|
2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
2136 ;; #( |
|
2137 *) |
|
2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
2139 ;; |
|
2140 esac | |
|
2141 sort |
|
2142 ) |
|
2143 echo |
|
2144 |
|
2145 $as_echo "## ----------------- ## |
|
2146 ## Output variables. ## |
|
2147 ## ----------------- ##" |
|
2148 echo |
|
2149 for ac_var in $ac_subst_vars |
|
2150 do |
|
2151 eval ac_val=\$$ac_var |
|
2152 case $ac_val in |
|
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2154 esac |
|
2155 $as_echo "$ac_var='\''$ac_val'\''" |
|
2156 done | sort |
|
2157 echo |
|
2158 |
|
2159 if test -n "$ac_subst_files"; then |
|
2160 $as_echo "## ------------------- ## |
|
2161 ## File substitutions. ## |
|
2162 ## ------------------- ##" |
|
2163 echo |
|
2164 for ac_var in $ac_subst_files |
|
2165 do |
|
2166 eval ac_val=\$$ac_var |
|
2167 case $ac_val in |
|
2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2169 esac |
|
2170 $as_echo "$ac_var='\''$ac_val'\''" |
|
2171 done | sort |
|
2172 echo |
|
2173 fi |
|
2174 |
|
2175 if test -s confdefs.h; then |
|
2176 $as_echo "## ----------- ## |
|
2177 ## confdefs.h. ## |
|
2178 ## ----------- ##" |
|
2179 echo |
|
2180 cat confdefs.h |
|
2181 echo |
|
2182 fi |
|
2183 test "$ac_signal" != 0 && |
|
2184 $as_echo "$as_me: caught signal $ac_signal" |
|
2185 $as_echo "$as_me: exit $exit_status" |
|
2186 } >&5 |
|
2187 rm -f core *.core core.conftest.* && |
|
2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
2189 exit $exit_status |
|
2190 ' 0 |
|
2191 for ac_signal in 1 2 13 15; do |
|
2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|
2193 done |
|
2194 ac_signal=0 |
|
2195 |
|
2196 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
2197 rm -f -r conftest* confdefs.h |
|
2198 |
|
2199 $as_echo "/* confdefs.h */" > confdefs.h |
|
2200 |
|
2201 # Predefined preprocessor variables. |
|
2202 |
|
2203 cat >>confdefs.h <<_ACEOF |
|
2204 #define PACKAGE_NAME "$PACKAGE_NAME" |
|
2205 _ACEOF |
|
2206 |
|
2207 cat >>confdefs.h <<_ACEOF |
|
2208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
2209 _ACEOF |
|
2210 |
|
2211 cat >>confdefs.h <<_ACEOF |
|
2212 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
2213 _ACEOF |
|
2214 |
|
2215 cat >>confdefs.h <<_ACEOF |
|
2216 #define PACKAGE_STRING "$PACKAGE_STRING" |
|
2217 _ACEOF |
|
2218 |
|
2219 cat >>confdefs.h <<_ACEOF |
|
2220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
2221 _ACEOF |
|
2222 |
|
2223 cat >>confdefs.h <<_ACEOF |
|
2224 #define PACKAGE_URL "$PACKAGE_URL" |
|
2225 _ACEOF |
|
2226 |
|
2227 |
|
2228 # Let the site file select an alternate cache file if it wants to. |
|
2229 # Prefer an explicitly selected file to automatically selected ones. |
|
2230 ac_site_file1=NONE |
|
2231 ac_site_file2=NONE |
|
2232 if test -n "$CONFIG_SITE"; then |
|
2233 # We do not want a PATH search for config.site. |
|
2234 case $CONFIG_SITE in #(( |
|
2235 -*) ac_site_file1=./$CONFIG_SITE;; |
|
2236 */*) ac_site_file1=$CONFIG_SITE;; |
|
2237 *) ac_site_file1=./$CONFIG_SITE;; |
|
2238 esac |
|
2239 elif test "x$prefix" != xNONE; then |
|
2240 ac_site_file1=$prefix/share/config.site |
|
2241 ac_site_file2=$prefix/etc/config.site |
|
2242 else |
|
2243 ac_site_file1=$ac_default_prefix/share/config.site |
|
2244 ac_site_file2=$ac_default_prefix/etc/config.site |
|
2245 fi |
|
2246 for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|
2247 do |
|
2248 test "x$ac_site_file" = xNONE && continue |
|
2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
|
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
|
2251 $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|
2252 sed 's/^/| /' "$ac_site_file" >&5 |
|
2253 . "$ac_site_file" \ |
|
2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2256 as_fn_error $? "failed to load site script $ac_site_file |
|
2257 See \`config.log' for more details" "$LINENO" 5; } |
|
2258 fi |
|
2259 done |
|
2260 |
|
2261 if test -r "$cache_file"; then |
|
2262 # Some versions of bash will fail to source /dev/null (special files |
|
2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
|
2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
|
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
|
2266 $as_echo "$as_me: loading cache $cache_file" >&6;} |
|
2267 case $cache_file in |
|
2268 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
2269 *) . "./$cache_file";; |
|
2270 esac |
|
2271 fi |
|
2272 else |
|
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|
2274 $as_echo "$as_me: creating cache $cache_file" >&6;} |
|
2275 >$cache_file |
|
2276 fi |
|
2277 |
|
2278 # Check that the precious variables saved in the cache have kept the same |
|
2279 # value. |
|
2280 ac_cache_corrupted=false |
|
2281 for ac_var in $ac_precious_vars; do |
|
2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
2283 eval ac_new_set=\$ac_env_${ac_var}_set |
|
2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
2285 eval ac_new_val=\$ac_env_${ac_var}_value |
|
2286 case $ac_old_set,$ac_new_set in |
|
2287 set,) |
|
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
2289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
2290 ac_cache_corrupted=: ;; |
|
2291 ,set) |
|
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|
2293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
2294 ac_cache_corrupted=: ;; |
|
2295 ,);; |
|
2296 *) |
|
2297 if test "x$ac_old_val" != "x$ac_new_val"; then |
|
2298 # differences in whitespace do not lead to failure. |
|
2299 ac_old_val_w=`echo x $ac_old_val` |
|
2300 ac_new_val_w=`echo x $ac_new_val` |
|
2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|
2303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
2304 ac_cache_corrupted=: |
|
2305 else |
|
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
2307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
2308 eval $ac_var=\$ac_old_val |
|
2309 fi |
|
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
2311 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
2313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|
2314 fi;; |
|
2315 esac |
|
2316 # Pass precious variables to config.status. |
|
2317 if test "$ac_new_set" = set; then |
|
2318 case $ac_new_val in |
|
2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2320 *) ac_arg=$ac_var=$ac_new_val ;; |
|
2321 esac |
|
2322 case " $ac_configure_args " in |
|
2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|
2325 esac |
|
2326 fi |
|
2327 done |
|
2328 if $ac_cache_corrupted; then |
|
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|
2332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
|
2334 fi |
|
2335 ## -------------------- ## |
|
2336 ## Main body of script. ## |
|
2337 ## -------------------- ## |
|
2338 |
|
2339 ac_ext=c |
|
2340 ac_cpp='$CPP $CPPFLAGS' |
|
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2344 |
|
2345 |
|
2346 |
|
2347 |
|
2348 ac_aux_dir= |
|
2349 for ac_dir in ${srcdir}/build/autoconf "$srcdir"/${srcdir}/build/autoconf; do |
|
2350 if test -f "$ac_dir/install-sh"; then |
|
2351 ac_aux_dir=$ac_dir |
|
2352 ac_install_sh="$ac_aux_dir/install-sh -c" |
|
2353 break |
|
2354 elif test -f "$ac_dir/install.sh"; then |
|
2355 ac_aux_dir=$ac_dir |
|
2356 ac_install_sh="$ac_aux_dir/install.sh -c" |
|
2357 break |
|
2358 elif test -f "$ac_dir/shtool"; then |
|
2359 ac_aux_dir=$ac_dir |
|
2360 ac_install_sh="$ac_aux_dir/shtool install -c" |
|
2361 break |
|
2362 fi |
|
2363 done |
|
2364 if test -z "$ac_aux_dir"; then |
|
2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5 |
|
2366 fi |
|
2367 |
|
2368 # These three variables are undocumented and unsupported, |
|
2369 # and are intended to be withdrawn in a future Autoconf release. |
|
2370 # They can cause serious problems if a builder's source tree is in a directory |
|
2371 # whose full name contains unusual characters. |
|
2372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
2373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
2374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
2375 |
|
2376 |
|
2377 # Make sure we can run config.sub. |
|
2378 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
2379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
|
2380 |
|
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
|
2382 $as_echo_n "checking build system type... " >&6; } |
|
2383 if ${ac_cv_build+:} false; then : |
|
2384 $as_echo_n "(cached) " >&6 |
|
2385 else |
|
2386 ac_build_alias=$build_alias |
|
2387 test "x$ac_build_alias" = x && |
|
2388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
2389 test "x$ac_build_alias" = x && |
|
2390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
|
2391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
2392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
|
2393 |
|
2394 fi |
|
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
|
2396 $as_echo "$ac_cv_build" >&6; } |
|
2397 case $ac_cv_build in |
|
2398 *-*-*) ;; |
|
2399 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
|
2400 esac |
|
2401 build=$ac_cv_build |
|
2402 ac_save_IFS=$IFS; IFS='-' |
|
2403 set x $ac_cv_build |
|
2404 shift |
|
2405 build_cpu=$1 |
|
2406 build_vendor=$2 |
|
2407 shift; shift |
|
2408 # Remember, the first character of IFS is used to create $*, |
|
2409 # except with old shells: |
|
2410 build_os=$* |
|
2411 IFS=$ac_save_IFS |
|
2412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
2413 |
|
2414 |
|
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
|
2416 $as_echo_n "checking host system type... " >&6; } |
|
2417 if ${ac_cv_host+:} false; then : |
|
2418 $as_echo_n "(cached) " >&6 |
|
2419 else |
|
2420 if test "x$host_alias" = x; then |
|
2421 ac_cv_host=$ac_cv_build |
|
2422 else |
|
2423 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
2424 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
|
2425 fi |
|
2426 |
|
2427 fi |
|
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
|
2429 $as_echo "$ac_cv_host" >&6; } |
|
2430 case $ac_cv_host in |
|
2431 *-*-*) ;; |
|
2432 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
|
2433 esac |
|
2434 host=$ac_cv_host |
|
2435 ac_save_IFS=$IFS; IFS='-' |
|
2436 set x $ac_cv_host |
|
2437 shift |
|
2438 host_cpu=$1 |
|
2439 host_vendor=$2 |
|
2440 shift; shift |
|
2441 # Remember, the first character of IFS is used to create $*, |
|
2442 # except with old shells: |
|
2443 host_os=$* |
|
2444 IFS=$ac_save_IFS |
|
2445 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
2446 |
|
2447 |
|
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
|
2449 $as_echo_n "checking target system type... " >&6; } |
|
2450 if ${ac_cv_target+:} false; then : |
|
2451 $as_echo_n "(cached) " >&6 |
|
2452 else |
|
2453 if test "x$target_alias" = x; then |
|
2454 ac_cv_target=$ac_cv_host |
|
2455 else |
|
2456 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
|
2457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
|
2458 fi |
|
2459 |
|
2460 fi |
|
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
|
2462 $as_echo "$ac_cv_target" >&6; } |
|
2463 case $ac_cv_target in |
|
2464 *-*-*) ;; |
|
2465 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
|
2466 esac |
|
2467 target=$ac_cv_target |
|
2468 ac_save_IFS=$IFS; IFS='-' |
|
2469 set x $ac_cv_target |
|
2470 shift |
|
2471 target_cpu=$1 |
|
2472 target_vendor=$2 |
|
2473 shift; shift |
|
2474 # Remember, the first character of IFS is used to create $*, |
|
2475 # except with old shells: |
|
2476 target_os=$* |
|
2477 IFS=$ac_save_IFS |
|
2478 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
|
2479 |
|
2480 |
|
2481 # The aliases save the names the user supplied, while $host etc. |
|
2482 # will get canonicalized. |
|
2483 test -n "$target_alias" && |
|
2484 test "$program_prefix$program_suffix$program_transform_name" = \ |
|
2485 NONENONEs,x,x, && |
|
2486 program_prefix=${target_alias}- |
|
2487 |
|
2488 MOD_MAJOR_VERSION=4 |
|
2489 MOD_MINOR_VERSION=10 |
|
2490 MOD_PATCH_VERSION=6 |
|
2491 NSPR_MODNAME=nspr20 |
|
2492 _HAVE_PTHREADS= |
|
2493 USE_PTHREADS= |
|
2494 USE_USER_PTHREADS= |
|
2495 USE_NSPR_THREADS= |
|
2496 USE_N32= |
|
2497 USE_X32= |
|
2498 USE_64= |
|
2499 USE_CPLUS= |
|
2500 USE_IPV6= |
|
2501 USE_MDUPDATE= |
|
2502 _MACOSX_DEPLOYMENT_TARGET= |
|
2503 _OPTIMIZE_FLAGS=-O |
|
2504 _DEBUG_FLAGS=-g |
|
2505 MOZ_DEBUG=1 |
|
2506 MOZ_OPTIMIZE= |
|
2507 OBJDIR='$(OBJDIR_NAME)' |
|
2508 OBJDIR_NAME=. |
|
2509 OBJDIR_SUFFIX=OBJ |
|
2510 NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' |
|
2511 NOSUCHFILE=/no-such-file |
|
2512 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)' |
|
2513 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)' |
|
2514 CYGWIN_WRAPPER= |
|
2515 MACOS_SDK_DIR= |
|
2516 NEXT_ROOT= |
|
2517 MT= |
|
2518 MOZ_OS2_HIGH_MEMORY=1 |
|
2519 PROFILE_GEN_CFLAGS= |
|
2520 PROFILE_GEN_LDFLAGS= |
|
2521 PROFILE_USE_CFLAGS= |
|
2522 PROFILE_USE_LDFLAGS= |
|
2523 |
|
2524 RESOLVE_LINK_SYMBOLS= |
|
2525 |
|
2526 CFLAGS="${CFLAGS=}" |
|
2527 CXXFLAGS="${CXXFLAGS=}" |
|
2528 LDFLAGS="${LDFLAGS=}" |
|
2529 DLLFLAGS="${DLLFLAGS=}" |
|
2530 HOST_CFLAGS="${HOST_CFLAGS=}" |
|
2531 HOST_LDFLAGS="${HOST_LDFLAGS=}" |
|
2532 |
|
2533 case "$target" in |
|
2534 *-cygwin*|*-mingw*|*-msys*) |
|
2535 # Check to see if we are really running in a msvc environemnt |
|
2536 _WIN32_MSVC= |
|
2537 for ac_prog in cl |
|
2538 do |
|
2539 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2540 set dummy $ac_prog; ac_word=$2 |
|
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2542 $as_echo_n "checking for $ac_word... " >&6; } |
|
2543 if ${ac_cv_prog_CC+:} false; then : |
|
2544 $as_echo_n "(cached) " >&6 |
|
2545 else |
|
2546 if test -n "$CC"; then |
|
2547 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2548 else |
|
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2550 for as_dir in $PATH |
|
2551 do |
|
2552 IFS=$as_save_IFS |
|
2553 test -z "$as_dir" && as_dir=. |
|
2554 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2556 ac_cv_prog_CC="$ac_prog" |
|
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2558 break 2 |
|
2559 fi |
|
2560 done |
|
2561 done |
|
2562 IFS=$as_save_IFS |
|
2563 |
|
2564 fi |
|
2565 fi |
|
2566 CC=$ac_cv_prog_CC |
|
2567 if test -n "$CC"; then |
|
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2569 $as_echo "$CC" >&6; } |
|
2570 else |
|
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2572 $as_echo "no" >&6; } |
|
2573 fi |
|
2574 |
|
2575 |
|
2576 test -n "$CC" && break |
|
2577 done |
|
2578 |
|
2579 if test "$CC" = "cl"; then |
|
2580 echo 'main() { return 0; }' > dummy.c |
|
2581 ${CC} -o dummy dummy.c >/dev/null 2>&1 |
|
2582 if test $? = 0; then |
|
2583 _WIN32_MSVC=1 |
|
2584 CXX=$CC |
|
2585 else |
|
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $(CC) test failed. Using normal feature tests" >&5 |
|
2587 $as_echo "$as_me: WARNING: $(CC) test failed. Using normal feature tests" >&2;} |
|
2588 fi |
|
2589 rm -f dummy dummy.o dummy.obj dummy.exe dummy.c |
|
2590 fi |
|
2591 ;; |
|
2592 *-mks*) |
|
2593 _WIN32_MSVC=1 |
|
2594 ;; |
|
2595 esac |
|
2596 |
|
2597 if test -n "$_WIN32_MSVC"; then |
|
2598 SKIP_PATH_CHECKS=1 |
|
2599 SKIP_COMPILER_CHECKS=1 |
|
2600 SKIP_LIBRARY_CHECKS=1 |
|
2601 fi |
|
2602 |
|
2603 |
|
2604 |
|
2605 # Check whether --with-android-ndk was given. |
|
2606 if test "${with_android_ndk+set}" = set; then : |
|
2607 withval=$with_android_ndk; android_ndk=$withval |
|
2608 fi |
|
2609 |
|
2610 |
|
2611 |
|
2612 # Check whether --with-android-toolchain was given. |
|
2613 if test "${with_android_toolchain+set}" = set; then : |
|
2614 withval=$with_android_toolchain; android_toolchain=$withval |
|
2615 fi |
|
2616 |
|
2617 |
|
2618 case "$target_cpu" in |
|
2619 arm) |
|
2620 android_version=5 |
|
2621 ;; |
|
2622 i?86|mipsel) |
|
2623 android_version=9 |
|
2624 ;; |
|
2625 esac |
|
2626 |
|
2627 |
|
2628 # Check whether --with-android-version was given. |
|
2629 if test "${with_android_version+set}" = set; then : |
|
2630 withval=$with_android_version; android_version=$withval |
|
2631 fi |
|
2632 |
|
2633 |
|
2634 |
|
2635 # Check whether --with-android-platform was given. |
|
2636 if test "${with_android_platform+set}" = set; then : |
|
2637 withval=$with_android_platform; android_platform=$withval |
|
2638 fi |
|
2639 |
|
2640 |
|
2641 case "$target" in |
|
2642 arm-linux*-android*|*-linuxandroid*) |
|
2643 android_tool_prefix="arm-linux-androideabi" |
|
2644 ;; |
|
2645 i?86-*android*) |
|
2646 android_tool_prefix="i686-linux-android" |
|
2647 ;; |
|
2648 mipsel-*android*) |
|
2649 android_tool_prefix="mipsel-linux-android" |
|
2650 ;; |
|
2651 *) |
|
2652 android_tool_prefix="$target_os" |
|
2653 ;; |
|
2654 esac |
|
2655 |
|
2656 |
|
2657 |
|
2658 # Check whether --with-gonk was given. |
|
2659 if test "${with_gonk+set}" = set; then : |
|
2660 withval=$with_gonk; gonkdir=$withval |
|
2661 fi |
|
2662 |
|
2663 |
|
2664 if test -n "$gonkdir" ; then |
|
2665 |
|
2666 if test -z "$HOST_CPPFLAGS" ; then |
|
2667 HOST_CPPFLAGS=" " |
|
2668 fi |
|
2669 if test -z "$HOST_CFLAGS" ; then |
|
2670 HOST_CFLAGS=" " |
|
2671 fi |
|
2672 if test -z "$HOST_CXXFLAGS" ; then |
|
2673 HOST_CXXFLAGS=" " |
|
2674 fi |
|
2675 if test -z "$HOST_LDFLAGS" ; then |
|
2676 HOST_LDFLAGS=" " |
|
2677 fi |
|
2678 |
|
2679 $as_echo "#define ANDROID 1" >>confdefs.h |
|
2680 |
|
2681 else |
|
2682 case "$target" in |
|
2683 *-android*|*-linuxandroid*) |
|
2684 if test -z "$android_ndk" ; then |
|
2685 as_fn_error $? "You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5 |
|
2686 fi |
|
2687 |
|
2688 if test -z "$android_toolchain" ; then |
|
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5 |
|
2690 $as_echo_n "checking for android toolchain directory... " >&6; } |
|
2691 |
|
2692 kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"` |
|
2693 |
|
2694 case "$target_cpu" in |
|
2695 arm) |
|
2696 target_name=arm-linux-androideabi-4.4.3 |
|
2697 ;; |
|
2698 i?86) |
|
2699 target_name=x86-4.4.3 |
|
2700 ;; |
|
2701 mipsel) |
|
2702 target_name=mipsel-linux-android-4.4.3 |
|
2703 ;; |
|
2704 esac |
|
2705 android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86 |
|
2706 |
|
2707 if test -d "$android_toolchain" ; then |
|
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5 |
|
2709 $as_echo "$android_toolchain" >&6; } |
|
2710 else |
|
2711 as_fn_error $? "not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5 |
|
2712 fi |
|
2713 fi |
|
2714 |
|
2715 if test -z "$android_platform" ; then |
|
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5 |
|
2717 $as_echo_n "checking for android platform directory... " >&6; } |
|
2718 |
|
2719 case "$target_cpu" in |
|
2720 arm) |
|
2721 target_name=arm |
|
2722 ;; |
|
2723 i?86) |
|
2724 target_name=x86 |
|
2725 ;; |
|
2726 mipsel) |
|
2727 target_name=mips |
|
2728 ;; |
|
2729 esac |
|
2730 |
|
2731 android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name" |
|
2732 |
|
2733 if test -d "$android_platform" ; then |
|
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5 |
|
2735 $as_echo "$android_platform" >&6; } |
|
2736 else |
|
2737 as_fn_error $? "not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5 |
|
2738 fi |
|
2739 fi |
|
2740 |
|
2741 case "$target_cpu" in |
|
2742 i?86) |
|
2743 if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then |
|
2744 android_tool_prefix="i686-android-linux" |
|
2745 fi |
|
2746 ;; |
|
2747 esac |
|
2748 |
|
2749 AS="$android_toolchain"/bin/"$android_tool_prefix"-as |
|
2750 CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc |
|
2751 CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++ |
|
2752 CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp |
|
2753 LD="$android_toolchain"/bin/"$android_tool_prefix"-ld |
|
2754 AR="$android_toolchain"/bin/"$android_tool_prefix"-ar |
|
2755 RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib |
|
2756 STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip |
|
2757 |
|
2758 CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS" |
|
2759 CFLAGS="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS" |
|
2760 CXXFLAGS="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS" |
|
2761 LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS" |
|
2762 |
|
2763 if test -z "$HOST_CPPFLAGS" ; then |
|
2764 HOST_CPPFLAGS=" " |
|
2765 fi |
|
2766 if test -z "$HOST_CFLAGS" ; then |
|
2767 HOST_CFLAGS=" " |
|
2768 fi |
|
2769 if test -z "$HOST_CXXFLAGS" ; then |
|
2770 HOST_CXXFLAGS=" " |
|
2771 fi |
|
2772 if test -z "$HOST_LDFLAGS" ; then |
|
2773 HOST_LDFLAGS=" " |
|
2774 fi |
|
2775 |
|
2776 $as_echo "#define ANDROID 1" >>confdefs.h |
|
2777 |
|
2778 ;; |
|
2779 esac |
|
2780 fi |
|
2781 |
|
2782 dist_prefix='${MOD_DEPTH}/dist' |
|
2783 dist_bindir='${dist_prefix}/bin' |
|
2784 dist_includedir='${dist_prefix}/include/nspr' |
|
2785 dist_libdir='${dist_prefix}/lib' |
|
2786 if test "${includedir}" = '${prefix}/include'; then |
|
2787 includedir='${prefix}/include/nspr' |
|
2788 fi |
|
2789 |
|
2790 |
|
2791 # Check whether --with-dist-prefix was given. |
|
2792 if test "${with_dist_prefix+set}" = set; then : |
|
2793 withval=$with_dist_prefix; dist_prefix=$withval |
|
2794 fi |
|
2795 |
|
2796 |
|
2797 |
|
2798 # Check whether --with-dist-bindir was given. |
|
2799 if test "${with_dist_bindir+set}" = set; then : |
|
2800 withval=$with_dist_bindir; dist_bindir=$withval |
|
2801 fi |
|
2802 |
|
2803 |
|
2804 |
|
2805 # Check whether --with-dist-includedir was given. |
|
2806 if test "${with_dist_includedir+set}" = set; then : |
|
2807 withval=$with_dist_includedir; dist_includedir=$withval |
|
2808 fi |
|
2809 |
|
2810 |
|
2811 |
|
2812 # Check whether --with-dist-libdir was given. |
|
2813 if test "${with_dist_libdir+set}" = set; then : |
|
2814 withval=$with_dist_libdir; dist_libdir=$withval |
|
2815 fi |
|
2816 |
|
2817 |
|
2818 |
|
2819 |
|
2820 |
|
2821 |
|
2822 |
|
2823 |
|
2824 # Check whether --with-mozilla was given. |
|
2825 if test "${with_mozilla+set}" = set; then : |
|
2826 withval=$with_mozilla; if test "$withval" = "yes"; then |
|
2827 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h |
|
2828 |
|
2829 MOZILLA_CLIENT=1 |
|
2830 else |
|
2831 MOZILLA_CLIENT= |
|
2832 fi |
|
2833 else |
|
2834 if test -n "$MOZILLA_CLIENT"; then |
|
2835 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h |
|
2836 |
|
2837 fi |
|
2838 fi |
|
2839 |
|
2840 |
|
2841 # Check whether --enable-optimize was given. |
|
2842 if test "${enable_optimize+set}" = set; then : |
|
2843 enableval=$enable_optimize; if test "$enableval" != "no"; then |
|
2844 MOZ_OPTIMIZE=1 |
|
2845 if test -n "$enableval" -a "$enableval" != "yes"; then |
|
2846 _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` |
|
2847 _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS |
|
2848 fi |
|
2849 else |
|
2850 MOZ_OPTIMIZE= |
|
2851 fi |
|
2852 fi |
|
2853 |
|
2854 |
|
2855 # Check whether --enable-debug was given. |
|
2856 if test "${enable_debug+set}" = set; then : |
|
2857 enableval=$enable_debug; if test "$enableval" != "no"; then |
|
2858 MOZ_DEBUG=1 |
|
2859 MOZ_DEBUG_SYMBOLS=1 |
|
2860 if test -n "$enableval" -a "$enableval" != "yes"; then |
|
2861 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` |
|
2862 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS |
|
2863 fi |
|
2864 else |
|
2865 MOZ_DEBUG= |
|
2866 fi |
|
2867 else |
|
2868 MOZ_DEBUG_SYMBOLS=1 |
|
2869 fi |
|
2870 |
|
2871 |
|
2872 # Check whether --enable-debug-symbols was given. |
|
2873 if test "${enable_debug_symbols+set}" = set; then : |
|
2874 enableval=$enable_debug_symbols; if test "$enableval" != "no"; then |
|
2875 MOZ_DEBUG_SYMBOLS=1 |
|
2876 if test -n "$enableval" -a "$enableval" != "yes"; then |
|
2877 if test -z "$_SAVE_DEBUG_FLAGS"; then |
|
2878 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` |
|
2879 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS |
|
2880 else |
|
2881 as_fn_error $? "--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5 |
|
2882 fi |
|
2883 fi |
|
2884 else |
|
2885 MOZ_DEBUG_SYMBOLS= |
|
2886 fi |
|
2887 fi |
|
2888 |
|
2889 |
|
2890 # Check whether --enable-win32-target was given. |
|
2891 if test "${enable_win32_target+set}" = set; then : |
|
2892 enableval=$enable_win32_target; OS_TARGET=`echo $enableval | tr a-z A-Z` |
|
2893 fi |
|
2894 |
|
2895 |
|
2896 # Check whether --enable-symbian-target was given. |
|
2897 if test "${enable_symbian_target+set}" = set; then : |
|
2898 enableval=$enable_symbian_target; OS_TARGET=`echo $enableval | tr a-z A-Z` |
|
2899 fi |
|
2900 |
|
2901 |
|
2902 # Check whether --enable-debug-rtl was given. |
|
2903 if test "${enable_debug_rtl+set}" = set; then : |
|
2904 enableval=$enable_debug_rtl; if test "$enableval" = "yes"; then |
|
2905 USE_DEBUG_RTL=1 |
|
2906 else |
|
2907 USE_DEBUG_RTL=0 |
|
2908 fi |
|
2909 fi |
|
2910 |
|
2911 |
|
2912 # Check whether --enable-n32 was given. |
|
2913 if test "${enable_n32+set}" = set; then : |
|
2914 enableval=$enable_n32; if test "$enableval" = "yes"; then |
|
2915 USE_N32=1 |
|
2916 else if test "$enableval" = "no"; then |
|
2917 USE_N32= |
|
2918 fi |
|
2919 fi |
|
2920 fi |
|
2921 |
|
2922 |
|
2923 # Check whether --enable-x32 was given. |
|
2924 if test "${enable_x32+set}" = set; then : |
|
2925 enableval=$enable_x32; if test "$enableval" = "yes"; then |
|
2926 USE_X32=1 |
|
2927 else if test "$enableval" = "no"; then |
|
2928 USE_X32= |
|
2929 fi |
|
2930 fi |
|
2931 fi |
|
2932 |
|
2933 |
|
2934 # Check whether --enable-64bit was given. |
|
2935 if test "${enable_64bit+set}" = set; then : |
|
2936 enableval=$enable_64bit; if test "$enableval" = "yes"; then |
|
2937 USE_64=1 |
|
2938 fi |
|
2939 fi |
|
2940 |
|
2941 |
|
2942 # Check whether --enable-mdupdate was given. |
|
2943 if test "${enable_mdupdate+set}" = set; then : |
|
2944 enableval=$enable_mdupdate; if test "$enableval" = "yes"; then |
|
2945 USE_MDUPDATE=1 |
|
2946 fi |
|
2947 fi |
|
2948 |
|
2949 |
|
2950 # Check whether --enable-cplus was given. |
|
2951 if test "${enable_cplus+set}" = set; then : |
|
2952 enableval=$enable_cplus; if test "$enableval" = "yes"; then |
|
2953 USE_CPLUS=1 |
|
2954 fi |
|
2955 fi |
|
2956 |
|
2957 |
|
2958 |
|
2959 # Check whether --with-arm-kuser was given. |
|
2960 if test "${with_arm_kuser+set}" = set; then : |
|
2961 withval=$with_arm_kuser; if test "$withval" = "yes"; then |
|
2962 $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h |
|
2963 |
|
2964 fi |
|
2965 fi |
|
2966 |
|
2967 |
|
2968 |
|
2969 # Check whether --with-macos-sdk was given. |
|
2970 if test "${with_macos_sdk+set}" = set; then : |
|
2971 withval=$with_macos_sdk; MACOS_SDK_DIR=$withval |
|
2972 fi |
|
2973 |
|
2974 |
|
2975 # Check whether --enable-macos-target was given. |
|
2976 if test "${enable_macos_target+set}" = set; then : |
|
2977 enableval=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET=$enableval |
|
2978 fi |
|
2979 |
|
2980 |
|
2981 case "$target" in |
|
2982 |
|
2983 *-aix*) |
|
2984 case "${target_os}" in |
|
2985 aix3.2*) |
|
2986 USE_NSPR_THREADS=1 |
|
2987 ;; |
|
2988 *) |
|
2989 USE_PTHREADS=1 |
|
2990 ;; |
|
2991 esac |
|
2992 ;; |
|
2993 |
|
2994 esac |
|
2995 |
|
2996 if test -z "$CC"; then |
|
2997 case "$target" in |
|
2998 |
|
2999 *-aix*) |
|
3000 if test -z "$USE_NSPR_THREADS"; then |
|
3001 CC=xlc_r |
|
3002 else |
|
3003 CC=xlc |
|
3004 fi |
|
3005 ;; |
|
3006 |
|
3007 *-hpux*) |
|
3008 CC=cc |
|
3009 ;; |
|
3010 |
|
3011 *-irix*) |
|
3012 CC=cc |
|
3013 ;; |
|
3014 |
|
3015 *-osf*) |
|
3016 CC=cc |
|
3017 ;; |
|
3018 |
|
3019 *-solaris*) |
|
3020 CC=cc |
|
3021 ;; |
|
3022 |
|
3023 esac |
|
3024 fi |
|
3025 |
|
3026 if test -z "$CXX"; then |
|
3027 case "$target" in |
|
3028 |
|
3029 *-aix*) |
|
3030 if test -z "$USE_NSPR_THREADS"; then |
|
3031 CXX=xlC_r |
|
3032 else |
|
3033 CXX=xlC |
|
3034 fi |
|
3035 ;; |
|
3036 |
|
3037 *-hpux*) |
|
3038 case "${target_os}" in |
|
3039 hpux10.30) |
|
3040 CXX=aCC |
|
3041 ;; |
|
3042 hpux11.*) |
|
3043 CXX=aCC |
|
3044 ;; |
|
3045 *) |
|
3046 CXX=CC |
|
3047 ;; |
|
3048 esac |
|
3049 ;; |
|
3050 |
|
3051 *-irix*) |
|
3052 CXX=CC |
|
3053 ;; |
|
3054 |
|
3055 *-osf*) |
|
3056 CXX=cxx |
|
3057 ;; |
|
3058 |
|
3059 *-solaris*) |
|
3060 CXX=CC |
|
3061 ;; |
|
3062 |
|
3063 esac |
|
3064 fi |
|
3065 |
|
3066 if test -z "$SKIP_PATH_CHECKS"; then |
|
3067 # Extract the first word of "$WHOAMI whoami", so it can be a program name with args. |
|
3068 set dummy $WHOAMI whoami; ac_word=$2 |
|
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3070 $as_echo_n "checking for $ac_word... " >&6; } |
|
3071 if ${ac_cv_path_WHOAMI+:} false; then : |
|
3072 $as_echo_n "(cached) " >&6 |
|
3073 else |
|
3074 case $WHOAMI in |
|
3075 [\\/]* | ?:[\\/]*) |
|
3076 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path. |
|
3077 ;; |
|
3078 *) |
|
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3080 for as_dir in $PATH |
|
3081 do |
|
3082 IFS=$as_save_IFS |
|
3083 test -z "$as_dir" && as_dir=. |
|
3084 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3086 ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext" |
|
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3088 break 2 |
|
3089 fi |
|
3090 done |
|
3091 done |
|
3092 IFS=$as_save_IFS |
|
3093 |
|
3094 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami" |
|
3095 ;; |
|
3096 esac |
|
3097 fi |
|
3098 WHOAMI=$ac_cv_path_WHOAMI |
|
3099 if test -n "$WHOAMI"; then |
|
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5 |
|
3101 $as_echo "$WHOAMI" >&6; } |
|
3102 else |
|
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3104 $as_echo "no" >&6; } |
|
3105 fi |
|
3106 |
|
3107 |
|
3108 fi |
|
3109 |
|
3110 if test -n "$MOZ_DEBUG"; then |
|
3111 $as_echo "#define DEBUG 1" >>confdefs.h |
|
3112 |
|
3113 DEFINES="$DEFINES -UNDEBUG" |
|
3114 |
|
3115 case "${target_os}" in |
|
3116 beos*) |
|
3117 DEFINES="$DEFINES -DDEBUG_${USER}" |
|
3118 ;; |
|
3119 mks*|cygwin*|mingw*|msys*|os2*) |
|
3120 DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`" |
|
3121 ;; |
|
3122 *) |
|
3123 DEFINES="$DEFINES -DDEBUG_`$WHOAMI`" |
|
3124 ;; |
|
3125 esac |
|
3126 else |
|
3127 $as_echo "#define NDEBUG 1" >>confdefs.h |
|
3128 |
|
3129 DEFINES="$DEFINES -UDEBUG" |
|
3130 fi |
|
3131 |
|
3132 if test -z "$SKIP_COMPILER_CHECKS"; then |
|
3133 if test "$target" != "$host"; then |
|
3134 echo "cross compiling from $host to $target" |
|
3135 cross_compiling=yes |
|
3136 |
|
3137 case "$build:$target" in |
|
3138 powerpc-apple-darwin8*:i?86-apple-darwin*) |
|
3139 _SAVE_CFLAGS=$CFLAGS |
|
3140 _SAVE_CXXFLAGS=$CXXFLAGS |
|
3141 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" |
|
3142 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" |
|
3143 ;; |
|
3144 *:arm*-apple-darwin*) |
|
3145 _SAVE_CFLAGS=$CFLAGS |
|
3146 _SAVE_CXXFLAGS=$CXXFLAGS |
|
3147 CFLAGS="-isysroot $MACOS_SDK_DIR $CFLAGS" |
|
3148 CXXFLAGS="-isysroot $MACOS_SDK_DIR $CXXFLAGS" |
|
3149 ;; |
|
3150 esac |
|
3151 |
|
3152 for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" |
|
3153 do |
|
3154 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3155 set dummy $ac_prog; ac_word=$2 |
|
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3157 $as_echo_n "checking for $ac_word... " >&6; } |
|
3158 if ${ac_cv_prog_CC+:} false; then : |
|
3159 $as_echo_n "(cached) " >&6 |
|
3160 else |
|
3161 if test -n "$CC"; then |
|
3162 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3163 else |
|
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3165 for as_dir in $PATH |
|
3166 do |
|
3167 IFS=$as_save_IFS |
|
3168 test -z "$as_dir" && as_dir=. |
|
3169 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3171 ac_cv_prog_CC="$ac_prog" |
|
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3173 break 2 |
|
3174 fi |
|
3175 done |
|
3176 done |
|
3177 IFS=$as_save_IFS |
|
3178 |
|
3179 fi |
|
3180 fi |
|
3181 CC=$ac_cv_prog_CC |
|
3182 if test -n "$CC"; then |
|
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3184 $as_echo "$CC" >&6; } |
|
3185 else |
|
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3187 $as_echo "no" >&6; } |
|
3188 fi |
|
3189 |
|
3190 |
|
3191 test -n "$CC" && break |
|
3192 done |
|
3193 test -n "$CC" || CC="echo" |
|
3194 |
|
3195 unset ac_cv_prog_CC |
|
3196 fi |
|
3197 |
|
3198 ac_ext=c |
|
3199 ac_cpp='$CPP $CPPFLAGS' |
|
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3203 if test -n "$ac_tool_prefix"; then |
|
3204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
3205 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3207 $as_echo_n "checking for $ac_word... " >&6; } |
|
3208 if ${ac_cv_prog_CC+:} false; then : |
|
3209 $as_echo_n "(cached) " >&6 |
|
3210 else |
|
3211 if test -n "$CC"; then |
|
3212 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3213 else |
|
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3215 for as_dir in $PATH |
|
3216 do |
|
3217 IFS=$as_save_IFS |
|
3218 test -z "$as_dir" && as_dir=. |
|
3219 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3221 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3223 break 2 |
|
3224 fi |
|
3225 done |
|
3226 done |
|
3227 IFS=$as_save_IFS |
|
3228 |
|
3229 fi |
|
3230 fi |
|
3231 CC=$ac_cv_prog_CC |
|
3232 if test -n "$CC"; then |
|
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3234 $as_echo "$CC" >&6; } |
|
3235 else |
|
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3237 $as_echo "no" >&6; } |
|
3238 fi |
|
3239 |
|
3240 |
|
3241 fi |
|
3242 if test -z "$ac_cv_prog_CC"; then |
|
3243 ac_ct_CC=$CC |
|
3244 # Extract the first word of "gcc", so it can be a program name with args. |
|
3245 set dummy gcc; ac_word=$2 |
|
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3247 $as_echo_n "checking for $ac_word... " >&6; } |
|
3248 if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|
3249 $as_echo_n "(cached) " >&6 |
|
3250 else |
|
3251 if test -n "$ac_ct_CC"; then |
|
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3253 else |
|
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3255 for as_dir in $PATH |
|
3256 do |
|
3257 IFS=$as_save_IFS |
|
3258 test -z "$as_dir" && as_dir=. |
|
3259 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3261 ac_cv_prog_ac_ct_CC="gcc" |
|
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3263 break 2 |
|
3264 fi |
|
3265 done |
|
3266 done |
|
3267 IFS=$as_save_IFS |
|
3268 |
|
3269 fi |
|
3270 fi |
|
3271 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3272 if test -n "$ac_ct_CC"; then |
|
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
3274 $as_echo "$ac_ct_CC" >&6; } |
|
3275 else |
|
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3277 $as_echo "no" >&6; } |
|
3278 fi |
|
3279 |
|
3280 if test "x$ac_ct_CC" = x; then |
|
3281 CC="" |
|
3282 else |
|
3283 case $cross_compiling:$ac_tool_warned in |
|
3284 yes:) |
|
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3287 ac_tool_warned=yes ;; |
|
3288 esac |
|
3289 CC=$ac_ct_CC |
|
3290 fi |
|
3291 else |
|
3292 CC="$ac_cv_prog_CC" |
|
3293 fi |
|
3294 |
|
3295 if test -z "$CC"; then |
|
3296 if test -n "$ac_tool_prefix"; then |
|
3297 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
3298 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3300 $as_echo_n "checking for $ac_word... " >&6; } |
|
3301 if ${ac_cv_prog_CC+:} false; then : |
|
3302 $as_echo_n "(cached) " >&6 |
|
3303 else |
|
3304 if test -n "$CC"; then |
|
3305 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3306 else |
|
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3308 for as_dir in $PATH |
|
3309 do |
|
3310 IFS=$as_save_IFS |
|
3311 test -z "$as_dir" && as_dir=. |
|
3312 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3314 ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3316 break 2 |
|
3317 fi |
|
3318 done |
|
3319 done |
|
3320 IFS=$as_save_IFS |
|
3321 |
|
3322 fi |
|
3323 fi |
|
3324 CC=$ac_cv_prog_CC |
|
3325 if test -n "$CC"; then |
|
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3327 $as_echo "$CC" >&6; } |
|
3328 else |
|
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3330 $as_echo "no" >&6; } |
|
3331 fi |
|
3332 |
|
3333 |
|
3334 fi |
|
3335 fi |
|
3336 if test -z "$CC"; then |
|
3337 # Extract the first word of "cc", so it can be a program name with args. |
|
3338 set dummy cc; ac_word=$2 |
|
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3340 $as_echo_n "checking for $ac_word... " >&6; } |
|
3341 if ${ac_cv_prog_CC+:} false; then : |
|
3342 $as_echo_n "(cached) " >&6 |
|
3343 else |
|
3344 if test -n "$CC"; then |
|
3345 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3346 else |
|
3347 ac_prog_rejected=no |
|
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3349 for as_dir in $PATH |
|
3350 do |
|
3351 IFS=$as_save_IFS |
|
3352 test -z "$as_dir" && as_dir=. |
|
3353 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3355 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
3356 ac_prog_rejected=yes |
|
3357 continue |
|
3358 fi |
|
3359 ac_cv_prog_CC="cc" |
|
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3361 break 2 |
|
3362 fi |
|
3363 done |
|
3364 done |
|
3365 IFS=$as_save_IFS |
|
3366 |
|
3367 if test $ac_prog_rejected = yes; then |
|
3368 # We found a bogon in the path, so make sure we never use it. |
|
3369 set dummy $ac_cv_prog_CC |
|
3370 shift |
|
3371 if test $# != 0; then |
|
3372 # We chose a different compiler from the bogus one. |
|
3373 # However, it has the same basename, so the bogon will be chosen |
|
3374 # first if we set CC to just the basename; use the full file name. |
|
3375 shift |
|
3376 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
3377 fi |
|
3378 fi |
|
3379 fi |
|
3380 fi |
|
3381 CC=$ac_cv_prog_CC |
|
3382 if test -n "$CC"; then |
|
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3384 $as_echo "$CC" >&6; } |
|
3385 else |
|
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3387 $as_echo "no" >&6; } |
|
3388 fi |
|
3389 |
|
3390 |
|
3391 fi |
|
3392 if test -z "$CC"; then |
|
3393 if test -n "$ac_tool_prefix"; then |
|
3394 for ac_prog in cl.exe |
|
3395 do |
|
3396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
3397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3399 $as_echo_n "checking for $ac_word... " >&6; } |
|
3400 if ${ac_cv_prog_CC+:} false; then : |
|
3401 $as_echo_n "(cached) " >&6 |
|
3402 else |
|
3403 if test -n "$CC"; then |
|
3404 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3405 else |
|
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3407 for as_dir in $PATH |
|
3408 do |
|
3409 IFS=$as_save_IFS |
|
3410 test -z "$as_dir" && as_dir=. |
|
3411 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3415 break 2 |
|
3416 fi |
|
3417 done |
|
3418 done |
|
3419 IFS=$as_save_IFS |
|
3420 |
|
3421 fi |
|
3422 fi |
|
3423 CC=$ac_cv_prog_CC |
|
3424 if test -n "$CC"; then |
|
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3426 $as_echo "$CC" >&6; } |
|
3427 else |
|
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3429 $as_echo "no" >&6; } |
|
3430 fi |
|
3431 |
|
3432 |
|
3433 test -n "$CC" && break |
|
3434 done |
|
3435 fi |
|
3436 if test -z "$CC"; then |
|
3437 ac_ct_CC=$CC |
|
3438 for ac_prog in cl.exe |
|
3439 do |
|
3440 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3441 set dummy $ac_prog; ac_word=$2 |
|
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3443 $as_echo_n "checking for $ac_word... " >&6; } |
|
3444 if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|
3445 $as_echo_n "(cached) " >&6 |
|
3446 else |
|
3447 if test -n "$ac_ct_CC"; then |
|
3448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3449 else |
|
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3451 for as_dir in $PATH |
|
3452 do |
|
3453 IFS=$as_save_IFS |
|
3454 test -z "$as_dir" && as_dir=. |
|
3455 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3457 ac_cv_prog_ac_ct_CC="$ac_prog" |
|
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3459 break 2 |
|
3460 fi |
|
3461 done |
|
3462 done |
|
3463 IFS=$as_save_IFS |
|
3464 |
|
3465 fi |
|
3466 fi |
|
3467 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3468 if test -n "$ac_ct_CC"; then |
|
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
3470 $as_echo "$ac_ct_CC" >&6; } |
|
3471 else |
|
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3473 $as_echo "no" >&6; } |
|
3474 fi |
|
3475 |
|
3476 |
|
3477 test -n "$ac_ct_CC" && break |
|
3478 done |
|
3479 |
|
3480 if test "x$ac_ct_CC" = x; then |
|
3481 CC="" |
|
3482 else |
|
3483 case $cross_compiling:$ac_tool_warned in |
|
3484 yes:) |
|
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3487 ac_tool_warned=yes ;; |
|
3488 esac |
|
3489 CC=$ac_ct_CC |
|
3490 fi |
|
3491 fi |
|
3492 |
|
3493 fi |
|
3494 |
|
3495 |
|
3496 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3498 as_fn_error $? "no acceptable C compiler found in \$PATH |
|
3499 See \`config.log' for more details" "$LINENO" 5; } |
|
3500 |
|
3501 # Provide some information about the compiler. |
|
3502 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|
3503 set X $ac_compile |
|
3504 ac_compiler=$2 |
|
3505 for ac_option in --version -v -V -qversion; do |
|
3506 { { ac_try="$ac_compiler $ac_option >&5" |
|
3507 case "(($ac_try" in |
|
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3509 *) ac_try_echo=$ac_try;; |
|
3510 esac |
|
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3512 $as_echo "$ac_try_echo"; } >&5 |
|
3513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
3514 ac_status=$? |
|
3515 if test -s conftest.err; then |
|
3516 sed '10a\ |
|
3517 ... rest of stderr output deleted ... |
|
3518 10q' conftest.err >conftest.er1 |
|
3519 cat conftest.er1 >&5 |
|
3520 fi |
|
3521 rm -f conftest.er1 conftest.err |
|
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3523 test $ac_status = 0; } |
|
3524 done |
|
3525 |
|
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3527 /* end confdefs.h. */ |
|
3528 |
|
3529 int |
|
3530 main () |
|
3531 { |
|
3532 |
|
3533 ; |
|
3534 return 0; |
|
3535 } |
|
3536 _ACEOF |
|
3537 ac_clean_files_save=$ac_clean_files |
|
3538 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
3539 # Try to create an executable without -o first, disregard a.out. |
|
3540 # It will help us diagnose broken compilers, and finding out an intuition |
|
3541 # of exeext. |
|
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
3543 $as_echo_n "checking whether the C compiler works... " >&6; } |
|
3544 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
3545 |
|
3546 # The possible output files: |
|
3547 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
3548 |
|
3549 ac_rmfiles= |
|
3550 for ac_file in $ac_files |
|
3551 do |
|
3552 case $ac_file in |
|
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3554 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
3555 esac |
|
3556 done |
|
3557 rm -f $ac_rmfiles |
|
3558 |
|
3559 if { { ac_try="$ac_link_default" |
|
3560 case "(($ac_try" in |
|
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3562 *) ac_try_echo=$ac_try;; |
|
3563 esac |
|
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3565 $as_echo "$ac_try_echo"; } >&5 |
|
3566 (eval "$ac_link_default") 2>&5 |
|
3567 ac_status=$? |
|
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3569 test $ac_status = 0; }; then : |
|
3570 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
3571 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
3572 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
3573 # so that the user can short-circuit this test for compilers unknown to |
|
3574 # Autoconf. |
|
3575 for ac_file in $ac_files '' |
|
3576 do |
|
3577 test -f "$ac_file" || continue |
|
3578 case $ac_file in |
|
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
3580 ;; |
|
3581 [ab].out ) |
|
3582 # We found the default executable, but exeext='' is most |
|
3583 # certainly right. |
|
3584 break;; |
|
3585 *.* ) |
|
3586 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
3587 then :; else |
|
3588 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3589 fi |
|
3590 # We set ac_cv_exeext here because the later test for it is not |
|
3591 # safe: cross compilers may not add the suffix if given an `-o' |
|
3592 # argument, so we may need to know it at that point already. |
|
3593 # Even if this section looks crufty: it has the advantage of |
|
3594 # actually working. |
|
3595 break;; |
|
3596 * ) |
|
3597 break;; |
|
3598 esac |
|
3599 done |
|
3600 test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
3601 |
|
3602 else |
|
3603 ac_file='' |
|
3604 fi |
|
3605 if test -z "$ac_file"; then : |
|
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3607 $as_echo "no" >&6; } |
|
3608 $as_echo "$as_me: failed program was:" >&5 |
|
3609 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3610 |
|
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3613 as_fn_error 77 "C compiler cannot create executables |
|
3614 See \`config.log' for more details" "$LINENO" 5; } |
|
3615 else |
|
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
3617 $as_echo "yes" >&6; } |
|
3618 fi |
|
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
3620 $as_echo_n "checking for C compiler default output file name... " >&6; } |
|
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
3622 $as_echo "$ac_file" >&6; } |
|
3623 ac_exeext=$ac_cv_exeext |
|
3624 |
|
3625 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|
3626 ac_clean_files=$ac_clean_files_save |
|
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|
3628 $as_echo_n "checking for suffix of executables... " >&6; } |
|
3629 if { { ac_try="$ac_link" |
|
3630 case "(($ac_try" in |
|
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3632 *) ac_try_echo=$ac_try;; |
|
3633 esac |
|
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3635 $as_echo "$ac_try_echo"; } >&5 |
|
3636 (eval "$ac_link") 2>&5 |
|
3637 ac_status=$? |
|
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3639 test $ac_status = 0; }; then : |
|
3640 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
3641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
3642 # work properly (i.e., refer to `conftest.exe'), while it won't with |
|
3643 # `rm'. |
|
3644 for ac_file in conftest.exe conftest conftest.*; do |
|
3645 test -f "$ac_file" || continue |
|
3646 case $ac_file in |
|
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3649 break;; |
|
3650 * ) break;; |
|
3651 esac |
|
3652 done |
|
3653 else |
|
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3656 as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
|
3657 See \`config.log' for more details" "$LINENO" 5; } |
|
3658 fi |
|
3659 rm -f conftest conftest$ac_cv_exeext |
|
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
|
3661 $as_echo "$ac_cv_exeext" >&6; } |
|
3662 |
|
3663 rm -f conftest.$ac_ext |
|
3664 EXEEXT=$ac_cv_exeext |
|
3665 ac_exeext=$EXEEXT |
|
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3667 /* end confdefs.h. */ |
|
3668 #include <stdio.h> |
|
3669 int |
|
3670 main () |
|
3671 { |
|
3672 FILE *f = fopen ("conftest.out", "w"); |
|
3673 return ferror (f) || fclose (f) != 0; |
|
3674 |
|
3675 ; |
|
3676 return 0; |
|
3677 } |
|
3678 _ACEOF |
|
3679 ac_clean_files="$ac_clean_files conftest.out" |
|
3680 # Check that the compiler produces executables we can run. If not, either |
|
3681 # the compiler is broken, or we cross compile. |
|
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
3683 $as_echo_n "checking whether we are cross compiling... " >&6; } |
|
3684 if test "$cross_compiling" != yes; then |
|
3685 { { ac_try="$ac_link" |
|
3686 case "(($ac_try" in |
|
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3688 *) ac_try_echo=$ac_try;; |
|
3689 esac |
|
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3691 $as_echo "$ac_try_echo"; } >&5 |
|
3692 (eval "$ac_link") 2>&5 |
|
3693 ac_status=$? |
|
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3695 test $ac_status = 0; } |
|
3696 if { ac_try='./conftest$ac_cv_exeext' |
|
3697 { { case "(($ac_try" in |
|
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3699 *) ac_try_echo=$ac_try;; |
|
3700 esac |
|
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3702 $as_echo "$ac_try_echo"; } >&5 |
|
3703 (eval "$ac_try") 2>&5 |
|
3704 ac_status=$? |
|
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3706 test $ac_status = 0; }; }; then |
|
3707 cross_compiling=no |
|
3708 else |
|
3709 if test "$cross_compiling" = maybe; then |
|
3710 cross_compiling=yes |
|
3711 else |
|
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3714 as_fn_error $? "cannot run C compiled programs. |
|
3715 If you meant to cross compile, use \`--host'. |
|
3716 See \`config.log' for more details" "$LINENO" 5; } |
|
3717 fi |
|
3718 fi |
|
3719 fi |
|
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
3721 $as_echo "$cross_compiling" >&6; } |
|
3722 |
|
3723 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
3724 ac_clean_files=$ac_clean_files_save |
|
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
3726 $as_echo_n "checking for suffix of object files... " >&6; } |
|
3727 if ${ac_cv_objext+:} false; then : |
|
3728 $as_echo_n "(cached) " >&6 |
|
3729 else |
|
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3731 /* end confdefs.h. */ |
|
3732 |
|
3733 int |
|
3734 main () |
|
3735 { |
|
3736 |
|
3737 ; |
|
3738 return 0; |
|
3739 } |
|
3740 _ACEOF |
|
3741 rm -f conftest.o conftest.obj |
|
3742 if { { ac_try="$ac_compile" |
|
3743 case "(($ac_try" in |
|
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3745 *) ac_try_echo=$ac_try;; |
|
3746 esac |
|
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3748 $as_echo "$ac_try_echo"; } >&5 |
|
3749 (eval "$ac_compile") 2>&5 |
|
3750 ac_status=$? |
|
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3752 test $ac_status = 0; }; then : |
|
3753 for ac_file in conftest.o conftest.obj conftest.*; do |
|
3754 test -f "$ac_file" || continue; |
|
3755 case $ac_file in |
|
3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
3757 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
3758 break;; |
|
3759 esac |
|
3760 done |
|
3761 else |
|
3762 $as_echo "$as_me: failed program was:" >&5 |
|
3763 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3764 |
|
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3767 as_fn_error $? "cannot compute suffix of object files: cannot compile |
|
3768 See \`config.log' for more details" "$LINENO" 5; } |
|
3769 fi |
|
3770 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
3771 fi |
|
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|
3773 $as_echo "$ac_cv_objext" >&6; } |
|
3774 OBJEXT=$ac_cv_objext |
|
3775 ac_objext=$OBJEXT |
|
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|
3777 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
3778 if ${ac_cv_c_compiler_gnu+:} false; then : |
|
3779 $as_echo_n "(cached) " >&6 |
|
3780 else |
|
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3782 /* end confdefs.h. */ |
|
3783 |
|
3784 int |
|
3785 main () |
|
3786 { |
|
3787 #ifndef __GNUC__ |
|
3788 choke me |
|
3789 #endif |
|
3790 |
|
3791 ; |
|
3792 return 0; |
|
3793 } |
|
3794 _ACEOF |
|
3795 if ac_fn_c_try_compile "$LINENO"; then : |
|
3796 ac_compiler_gnu=yes |
|
3797 else |
|
3798 ac_compiler_gnu=no |
|
3799 fi |
|
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3801 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3802 |
|
3803 fi |
|
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
3805 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
3806 if test $ac_compiler_gnu = yes; then |
|
3807 GCC=yes |
|
3808 else |
|
3809 GCC= |
|
3810 fi |
|
3811 ac_test_CFLAGS=${CFLAGS+set} |
|
3812 ac_save_CFLAGS=$CFLAGS |
|
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|
3814 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
3815 if ${ac_cv_prog_cc_g+:} false; then : |
|
3816 $as_echo_n "(cached) " >&6 |
|
3817 else |
|
3818 ac_save_c_werror_flag=$ac_c_werror_flag |
|
3819 ac_c_werror_flag=yes |
|
3820 ac_cv_prog_cc_g=no |
|
3821 CFLAGS="-g" |
|
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3823 /* end confdefs.h. */ |
|
3824 |
|
3825 int |
|
3826 main () |
|
3827 { |
|
3828 |
|
3829 ; |
|
3830 return 0; |
|
3831 } |
|
3832 _ACEOF |
|
3833 if ac_fn_c_try_compile "$LINENO"; then : |
|
3834 ac_cv_prog_cc_g=yes |
|
3835 else |
|
3836 CFLAGS="" |
|
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3838 /* end confdefs.h. */ |
|
3839 |
|
3840 int |
|
3841 main () |
|
3842 { |
|
3843 |
|
3844 ; |
|
3845 return 0; |
|
3846 } |
|
3847 _ACEOF |
|
3848 if ac_fn_c_try_compile "$LINENO"; then : |
|
3849 |
|
3850 else |
|
3851 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3852 CFLAGS="-g" |
|
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3854 /* end confdefs.h. */ |
|
3855 |
|
3856 int |
|
3857 main () |
|
3858 { |
|
3859 |
|
3860 ; |
|
3861 return 0; |
|
3862 } |
|
3863 _ACEOF |
|
3864 if ac_fn_c_try_compile "$LINENO"; then : |
|
3865 ac_cv_prog_cc_g=yes |
|
3866 fi |
|
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3868 fi |
|
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3870 fi |
|
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3872 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3873 fi |
|
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|
3875 $as_echo "$ac_cv_prog_cc_g" >&6; } |
|
3876 if test "$ac_test_CFLAGS" = set; then |
|
3877 CFLAGS=$ac_save_CFLAGS |
|
3878 elif test $ac_cv_prog_cc_g = yes; then |
|
3879 if test "$GCC" = yes; then |
|
3880 CFLAGS="-g -O2" |
|
3881 else |
|
3882 CFLAGS="-g" |
|
3883 fi |
|
3884 else |
|
3885 if test "$GCC" = yes; then |
|
3886 CFLAGS="-O2" |
|
3887 else |
|
3888 CFLAGS= |
|
3889 fi |
|
3890 fi |
|
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|
3892 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
3893 if ${ac_cv_prog_cc_c89+:} false; then : |
|
3894 $as_echo_n "(cached) " >&6 |
|
3895 else |
|
3896 ac_cv_prog_cc_c89=no |
|
3897 ac_save_CC=$CC |
|
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3899 /* end confdefs.h. */ |
|
3900 #include <stdarg.h> |
|
3901 #include <stdio.h> |
|
3902 struct stat; |
|
3903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3904 struct buf { int x; }; |
|
3905 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3906 static char *e (p, i) |
|
3907 char **p; |
|
3908 int i; |
|
3909 { |
|
3910 return p[i]; |
|
3911 } |
|
3912 static char *f (char * (*g) (char **, int), char **p, ...) |
|
3913 { |
|
3914 char *s; |
|
3915 va_list v; |
|
3916 va_start (v,p); |
|
3917 s = g (p, va_arg (v,int)); |
|
3918 va_end (v); |
|
3919 return s; |
|
3920 } |
|
3921 |
|
3922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3923 function prototypes and stuff, but not '\xHH' hex character constants. |
|
3924 These don't provoke an error unfortunately, instead are silently treated |
|
3925 as 'x'. The following induces an error, until -std is added to get |
|
3926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3927 array size at least. It's necessary to write '\x00'==0 to get something |
|
3928 that's true only with -std. */ |
|
3929 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3930 |
|
3931 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
3932 inside strings and character constants. */ |
|
3933 #define FOO(x) 'x' |
|
3934 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
3935 |
|
3936 int test (int i, double x); |
|
3937 struct s1 {int (*f) (int a);}; |
|
3938 struct s2 {int (*f) (double a);}; |
|
3939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3940 int argc; |
|
3941 char **argv; |
|
3942 int |
|
3943 main () |
|
3944 { |
|
3945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3946 ; |
|
3947 return 0; |
|
3948 } |
|
3949 _ACEOF |
|
3950 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3952 do |
|
3953 CC="$ac_save_CC $ac_arg" |
|
3954 if ac_fn_c_try_compile "$LINENO"; then : |
|
3955 ac_cv_prog_cc_c89=$ac_arg |
|
3956 fi |
|
3957 rm -f core conftest.err conftest.$ac_objext |
|
3958 test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3959 done |
|
3960 rm -f conftest.$ac_ext |
|
3961 CC=$ac_save_CC |
|
3962 |
|
3963 fi |
|
3964 # AC_CACHE_VAL |
|
3965 case "x$ac_cv_prog_cc_c89" in |
|
3966 x) |
|
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
3968 $as_echo "none needed" >&6; } ;; |
|
3969 xno) |
|
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
3971 $as_echo "unsupported" >&6; } ;; |
|
3972 *) |
|
3973 CC="$CC $ac_cv_prog_cc_c89" |
|
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
3975 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
3976 esac |
|
3977 if test "x$ac_cv_prog_cc_c89" != xno; then : |
|
3978 |
|
3979 fi |
|
3980 |
|
3981 ac_ext=c |
|
3982 ac_cpp='$CPP $CPPFLAGS' |
|
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3986 |
|
3987 |
|
3988 if test "$target" != "$host"; then |
|
3989 if test -n "$USE_CPLUS"; then |
|
3990 for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" |
|
3991 do |
|
3992 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3993 set dummy $ac_prog; ac_word=$2 |
|
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3995 $as_echo_n "checking for $ac_word... " >&6; } |
|
3996 if ${ac_cv_prog_CXX+:} false; then : |
|
3997 $as_echo_n "(cached) " >&6 |
|
3998 else |
|
3999 if test -n "$CXX"; then |
|
4000 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
4001 else |
|
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4003 for as_dir in $PATH |
|
4004 do |
|
4005 IFS=$as_save_IFS |
|
4006 test -z "$as_dir" && as_dir=. |
|
4007 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4009 ac_cv_prog_CXX="$ac_prog" |
|
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4011 break 2 |
|
4012 fi |
|
4013 done |
|
4014 done |
|
4015 IFS=$as_save_IFS |
|
4016 |
|
4017 fi |
|
4018 fi |
|
4019 CXX=$ac_cv_prog_CXX |
|
4020 if test -n "$CXX"; then |
|
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|
4022 $as_echo "$CXX" >&6; } |
|
4023 else |
|
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4025 $as_echo "no" >&6; } |
|
4026 fi |
|
4027 |
|
4028 |
|
4029 test -n "$CXX" && break |
|
4030 done |
|
4031 test -n "$CXX" || CXX="echo" |
|
4032 |
|
4033 unset ac_cv_prog_CXX |
|
4034 ac_ext=cpp |
|
4035 ac_cpp='$CXXCPP $CPPFLAGS' |
|
4036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4039 if test -z "$CXX"; then |
|
4040 if test -n "$CCC"; then |
|
4041 CXX=$CCC |
|
4042 else |
|
4043 if test -n "$ac_tool_prefix"; then |
|
4044 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
4045 do |
|
4046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
4047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4049 $as_echo_n "checking for $ac_word... " >&6; } |
|
4050 if ${ac_cv_prog_CXX+:} false; then : |
|
4051 $as_echo_n "(cached) " >&6 |
|
4052 else |
|
4053 if test -n "$CXX"; then |
|
4054 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
4055 else |
|
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4057 for as_dir in $PATH |
|
4058 do |
|
4059 IFS=$as_save_IFS |
|
4060 test -z "$as_dir" && as_dir=. |
|
4061 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4063 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4065 break 2 |
|
4066 fi |
|
4067 done |
|
4068 done |
|
4069 IFS=$as_save_IFS |
|
4070 |
|
4071 fi |
|
4072 fi |
|
4073 CXX=$ac_cv_prog_CXX |
|
4074 if test -n "$CXX"; then |
|
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|
4076 $as_echo "$CXX" >&6; } |
|
4077 else |
|
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4079 $as_echo "no" >&6; } |
|
4080 fi |
|
4081 |
|
4082 |
|
4083 test -n "$CXX" && break |
|
4084 done |
|
4085 fi |
|
4086 if test -z "$CXX"; then |
|
4087 ac_ct_CXX=$CXX |
|
4088 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
4089 do |
|
4090 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4091 set dummy $ac_prog; ac_word=$2 |
|
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4093 $as_echo_n "checking for $ac_word... " >&6; } |
|
4094 if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
|
4095 $as_echo_n "(cached) " >&6 |
|
4096 else |
|
4097 if test -n "$ac_ct_CXX"; then |
|
4098 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
4099 else |
|
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4101 for as_dir in $PATH |
|
4102 do |
|
4103 IFS=$as_save_IFS |
|
4104 test -z "$as_dir" && as_dir=. |
|
4105 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4107 ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4109 break 2 |
|
4110 fi |
|
4111 done |
|
4112 done |
|
4113 IFS=$as_save_IFS |
|
4114 |
|
4115 fi |
|
4116 fi |
|
4117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
4118 if test -n "$ac_ct_CXX"; then |
|
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
|
4120 $as_echo "$ac_ct_CXX" >&6; } |
|
4121 else |
|
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4123 $as_echo "no" >&6; } |
|
4124 fi |
|
4125 |
|
4126 |
|
4127 test -n "$ac_ct_CXX" && break |
|
4128 done |
|
4129 |
|
4130 if test "x$ac_ct_CXX" = x; then |
|
4131 CXX="g++" |
|
4132 else |
|
4133 case $cross_compiling:$ac_tool_warned in |
|
4134 yes:) |
|
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4137 ac_tool_warned=yes ;; |
|
4138 esac |
|
4139 CXX=$ac_ct_CXX |
|
4140 fi |
|
4141 fi |
|
4142 |
|
4143 fi |
|
4144 fi |
|
4145 # Provide some information about the compiler. |
|
4146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
|
4147 set X $ac_compile |
|
4148 ac_compiler=$2 |
|
4149 for ac_option in --version -v -V -qversion; do |
|
4150 { { ac_try="$ac_compiler $ac_option >&5" |
|
4151 case "(($ac_try" in |
|
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4153 *) ac_try_echo=$ac_try;; |
|
4154 esac |
|
4155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
4156 $as_echo "$ac_try_echo"; } >&5 |
|
4157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
4158 ac_status=$? |
|
4159 if test -s conftest.err; then |
|
4160 sed '10a\ |
|
4161 ... rest of stderr output deleted ... |
|
4162 10q' conftest.err >conftest.er1 |
|
4163 cat conftest.er1 >&5 |
|
4164 fi |
|
4165 rm -f conftest.er1 conftest.err |
|
4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
4167 test $ac_status = 0; } |
|
4168 done |
|
4169 |
|
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
|
4171 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
|
4172 if ${ac_cv_cxx_compiler_gnu+:} false; then : |
|
4173 $as_echo_n "(cached) " >&6 |
|
4174 else |
|
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4176 /* end confdefs.h. */ |
|
4177 |
|
4178 int |
|
4179 main () |
|
4180 { |
|
4181 #ifndef __GNUC__ |
|
4182 choke me |
|
4183 #endif |
|
4184 |
|
4185 ; |
|
4186 return 0; |
|
4187 } |
|
4188 _ACEOF |
|
4189 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4190 ac_compiler_gnu=yes |
|
4191 else |
|
4192 ac_compiler_gnu=no |
|
4193 fi |
|
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4195 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
4196 |
|
4197 fi |
|
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
4199 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
|
4200 if test $ac_compiler_gnu = yes; then |
|
4201 GXX=yes |
|
4202 else |
|
4203 GXX= |
|
4204 fi |
|
4205 ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
4206 ac_save_CXXFLAGS=$CXXFLAGS |
|
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
|
4208 $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
|
4209 if ${ac_cv_prog_cxx_g+:} false; then : |
|
4210 $as_echo_n "(cached) " >&6 |
|
4211 else |
|
4212 ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
4213 ac_cxx_werror_flag=yes |
|
4214 ac_cv_prog_cxx_g=no |
|
4215 CXXFLAGS="-g" |
|
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4217 /* end confdefs.h. */ |
|
4218 |
|
4219 int |
|
4220 main () |
|
4221 { |
|
4222 |
|
4223 ; |
|
4224 return 0; |
|
4225 } |
|
4226 _ACEOF |
|
4227 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4228 ac_cv_prog_cxx_g=yes |
|
4229 else |
|
4230 CXXFLAGS="" |
|
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4232 /* end confdefs.h. */ |
|
4233 |
|
4234 int |
|
4235 main () |
|
4236 { |
|
4237 |
|
4238 ; |
|
4239 return 0; |
|
4240 } |
|
4241 _ACEOF |
|
4242 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4243 |
|
4244 else |
|
4245 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
4246 CXXFLAGS="-g" |
|
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4248 /* end confdefs.h. */ |
|
4249 |
|
4250 int |
|
4251 main () |
|
4252 { |
|
4253 |
|
4254 ; |
|
4255 return 0; |
|
4256 } |
|
4257 _ACEOF |
|
4258 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4259 ac_cv_prog_cxx_g=yes |
|
4260 fi |
|
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4262 fi |
|
4263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4264 fi |
|
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
4267 fi |
|
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
|
4269 $as_echo "$ac_cv_prog_cxx_g" >&6; } |
|
4270 if test "$ac_test_CXXFLAGS" = set; then |
|
4271 CXXFLAGS=$ac_save_CXXFLAGS |
|
4272 elif test $ac_cv_prog_cxx_g = yes; then |
|
4273 if test "$GXX" = yes; then |
|
4274 CXXFLAGS="-g -O2" |
|
4275 else |
|
4276 CXXFLAGS="-g" |
|
4277 fi |
|
4278 else |
|
4279 if test "$GXX" = yes; then |
|
4280 CXXFLAGS="-O2" |
|
4281 else |
|
4282 CXXFLAGS= |
|
4283 fi |
|
4284 fi |
|
4285 ac_ext=c |
|
4286 ac_cpp='$CPP $CPPFLAGS' |
|
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4290 |
|
4291 fi |
|
4292 |
|
4293 case "$build:$target" in |
|
4294 powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*) |
|
4295 CFLAGS=$_SAVE_CFLAGS |
|
4296 CXXFLAGS=$_SAVE_CXXFLAGS |
|
4297 ;; |
|
4298 esac |
|
4299 |
|
4300 for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" |
|
4301 do |
|
4302 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4303 set dummy $ac_prog; ac_word=$2 |
|
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4305 $as_echo_n "checking for $ac_word... " >&6; } |
|
4306 if ${ac_cv_prog_RANLIB+:} false; then : |
|
4307 $as_echo_n "(cached) " >&6 |
|
4308 else |
|
4309 if test -n "$RANLIB"; then |
|
4310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
4311 else |
|
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4313 for as_dir in $PATH |
|
4314 do |
|
4315 IFS=$as_save_IFS |
|
4316 test -z "$as_dir" && as_dir=. |
|
4317 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4319 ac_cv_prog_RANLIB="$ac_prog" |
|
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4321 break 2 |
|
4322 fi |
|
4323 done |
|
4324 done |
|
4325 IFS=$as_save_IFS |
|
4326 |
|
4327 fi |
|
4328 fi |
|
4329 RANLIB=$ac_cv_prog_RANLIB |
|
4330 if test -n "$RANLIB"; then |
|
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
|
4332 $as_echo "$RANLIB" >&6; } |
|
4333 else |
|
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4335 $as_echo "no" >&6; } |
|
4336 fi |
|
4337 |
|
4338 |
|
4339 test -n "$RANLIB" && break |
|
4340 done |
|
4341 test -n "$RANLIB" || RANLIB="echo" |
|
4342 |
|
4343 for ac_prog in $AR "${target_alias}-ar" "${target}-ar" |
|
4344 do |
|
4345 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4346 set dummy $ac_prog; ac_word=$2 |
|
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4348 $as_echo_n "checking for $ac_word... " >&6; } |
|
4349 if ${ac_cv_prog_AR+:} false; then : |
|
4350 $as_echo_n "(cached) " >&6 |
|
4351 else |
|
4352 if test -n "$AR"; then |
|
4353 ac_cv_prog_AR="$AR" # Let the user override the test. |
|
4354 else |
|
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4356 for as_dir in $PATH |
|
4357 do |
|
4358 IFS=$as_save_IFS |
|
4359 test -z "$as_dir" && as_dir=. |
|
4360 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4362 ac_cv_prog_AR="$ac_prog" |
|
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4364 break 2 |
|
4365 fi |
|
4366 done |
|
4367 done |
|
4368 IFS=$as_save_IFS |
|
4369 |
|
4370 fi |
|
4371 fi |
|
4372 AR=$ac_cv_prog_AR |
|
4373 if test -n "$AR"; then |
|
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
|
4375 $as_echo "$AR" >&6; } |
|
4376 else |
|
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4378 $as_echo "no" >&6; } |
|
4379 fi |
|
4380 |
|
4381 |
|
4382 test -n "$AR" && break |
|
4383 done |
|
4384 test -n "$AR" || AR="echo" |
|
4385 |
|
4386 for ac_prog in $AS "${target_alias}-as" "${target}-as" |
|
4387 do |
|
4388 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4389 set dummy $ac_prog; ac_word=$2 |
|
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4391 $as_echo_n "checking for $ac_word... " >&6; } |
|
4392 if ${ac_cv_prog_AS+:} false; then : |
|
4393 $as_echo_n "(cached) " >&6 |
|
4394 else |
|
4395 if test -n "$AS"; then |
|
4396 ac_cv_prog_AS="$AS" # Let the user override the test. |
|
4397 else |
|
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4399 for as_dir in $PATH |
|
4400 do |
|
4401 IFS=$as_save_IFS |
|
4402 test -z "$as_dir" && as_dir=. |
|
4403 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4405 ac_cv_prog_AS="$ac_prog" |
|
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4407 break 2 |
|
4408 fi |
|
4409 done |
|
4410 done |
|
4411 IFS=$as_save_IFS |
|
4412 |
|
4413 fi |
|
4414 fi |
|
4415 AS=$ac_cv_prog_AS |
|
4416 if test -n "$AS"; then |
|
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
|
4418 $as_echo "$AS" >&6; } |
|
4419 else |
|
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4421 $as_echo "no" >&6; } |
|
4422 fi |
|
4423 |
|
4424 |
|
4425 test -n "$AS" && break |
|
4426 done |
|
4427 test -n "$AS" || AS="echo" |
|
4428 |
|
4429 for ac_prog in $LD "${target_alias}-ld" "${target}-ld" |
|
4430 do |
|
4431 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4432 set dummy $ac_prog; ac_word=$2 |
|
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4434 $as_echo_n "checking for $ac_word... " >&6; } |
|
4435 if ${ac_cv_prog_LD+:} false; then : |
|
4436 $as_echo_n "(cached) " >&6 |
|
4437 else |
|
4438 if test -n "$LD"; then |
|
4439 ac_cv_prog_LD="$LD" # Let the user override the test. |
|
4440 else |
|
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4442 for as_dir in $PATH |
|
4443 do |
|
4444 IFS=$as_save_IFS |
|
4445 test -z "$as_dir" && as_dir=. |
|
4446 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4448 ac_cv_prog_LD="$ac_prog" |
|
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4450 break 2 |
|
4451 fi |
|
4452 done |
|
4453 done |
|
4454 IFS=$as_save_IFS |
|
4455 |
|
4456 fi |
|
4457 fi |
|
4458 LD=$ac_cv_prog_LD |
|
4459 if test -n "$LD"; then |
|
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
|
4461 $as_echo "$LD" >&6; } |
|
4462 else |
|
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4464 $as_echo "no" >&6; } |
|
4465 fi |
|
4466 |
|
4467 |
|
4468 test -n "$LD" && break |
|
4469 done |
|
4470 test -n "$LD" || LD="echo" |
|
4471 |
|
4472 for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" |
|
4473 do |
|
4474 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4475 set dummy $ac_prog; ac_word=$2 |
|
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4477 $as_echo_n "checking for $ac_word... " >&6; } |
|
4478 if ${ac_cv_prog_STRIP+:} false; then : |
|
4479 $as_echo_n "(cached) " >&6 |
|
4480 else |
|
4481 if test -n "$STRIP"; then |
|
4482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
4483 else |
|
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4485 for as_dir in $PATH |
|
4486 do |
|
4487 IFS=$as_save_IFS |
|
4488 test -z "$as_dir" && as_dir=. |
|
4489 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4491 ac_cv_prog_STRIP="$ac_prog" |
|
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4493 break 2 |
|
4494 fi |
|
4495 done |
|
4496 done |
|
4497 IFS=$as_save_IFS |
|
4498 |
|
4499 fi |
|
4500 fi |
|
4501 STRIP=$ac_cv_prog_STRIP |
|
4502 if test -n "$STRIP"; then |
|
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
|
4504 $as_echo "$STRIP" >&6; } |
|
4505 else |
|
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4507 $as_echo "no" >&6; } |
|
4508 fi |
|
4509 |
|
4510 |
|
4511 test -n "$STRIP" && break |
|
4512 done |
|
4513 test -n "$STRIP" || STRIP="echo" |
|
4514 |
|
4515 for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" |
|
4516 do |
|
4517 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4518 set dummy $ac_prog; ac_word=$2 |
|
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4520 $as_echo_n "checking for $ac_word... " >&6; } |
|
4521 if ${ac_cv_prog_WINDRES+:} false; then : |
|
4522 $as_echo_n "(cached) " >&6 |
|
4523 else |
|
4524 if test -n "$WINDRES"; then |
|
4525 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
|
4526 else |
|
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4528 for as_dir in $PATH |
|
4529 do |
|
4530 IFS=$as_save_IFS |
|
4531 test -z "$as_dir" && as_dir=. |
|
4532 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4534 ac_cv_prog_WINDRES="$ac_prog" |
|
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4536 break 2 |
|
4537 fi |
|
4538 done |
|
4539 done |
|
4540 IFS=$as_save_IFS |
|
4541 |
|
4542 fi |
|
4543 fi |
|
4544 WINDRES=$ac_cv_prog_WINDRES |
|
4545 if test -n "$WINDRES"; then |
|
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
|
4547 $as_echo "$WINDRES" >&6; } |
|
4548 else |
|
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4550 $as_echo "no" >&6; } |
|
4551 fi |
|
4552 |
|
4553 |
|
4554 test -n "$WINDRES" && break |
|
4555 done |
|
4556 test -n "$WINDRES" || WINDRES="echo" |
|
4557 |
|
4558 |
|
4559 _SAVE_CC="$CC" |
|
4560 _SAVE_CFLAGS="$CFLAGS" |
|
4561 _SAVE_LDFLAGS="$LDFLAGS" |
|
4562 |
|
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5 |
|
4564 $as_echo_n "checking for $host compiler... " >&6; } |
|
4565 for ac_prog in $HOST_CC gcc cc /usr/ucb/cc |
|
4566 do |
|
4567 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4568 set dummy $ac_prog; ac_word=$2 |
|
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4570 $as_echo_n "checking for $ac_word... " >&6; } |
|
4571 if ${ac_cv_prog_HOST_CC+:} false; then : |
|
4572 $as_echo_n "(cached) " >&6 |
|
4573 else |
|
4574 if test -n "$HOST_CC"; then |
|
4575 ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. |
|
4576 else |
|
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4578 for as_dir in $PATH |
|
4579 do |
|
4580 IFS=$as_save_IFS |
|
4581 test -z "$as_dir" && as_dir=. |
|
4582 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4584 ac_cv_prog_HOST_CC="$ac_prog" |
|
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4586 break 2 |
|
4587 fi |
|
4588 done |
|
4589 done |
|
4590 IFS=$as_save_IFS |
|
4591 |
|
4592 fi |
|
4593 fi |
|
4594 HOST_CC=$ac_cv_prog_HOST_CC |
|
4595 if test -n "$HOST_CC"; then |
|
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 |
|
4597 $as_echo "$HOST_CC" >&6; } |
|
4598 else |
|
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4600 $as_echo "no" >&6; } |
|
4601 fi |
|
4602 |
|
4603 |
|
4604 test -n "$HOST_CC" && break |
|
4605 done |
|
4606 test -n "$HOST_CC" || HOST_CC="""" |
|
4607 |
|
4608 if test -z "$HOST_CC"; then |
|
4609 as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 |
|
4610 fi |
|
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 |
|
4612 $as_echo "$HOST_CC" >&6; } |
|
4613 if test -z "$HOST_CFLAGS"; then |
|
4614 HOST_CFLAGS="$CFLAGS" |
|
4615 fi |
|
4616 if test -z "$HOST_LDFLAGS"; then |
|
4617 HOST_LDFLAGS="$LDFLAGS" |
|
4618 fi |
|
4619 |
|
4620 CC="$HOST_CC" |
|
4621 CFLAGS="$HOST_CFLAGS" |
|
4622 LDFLAGS="$HOST_LDFLAGS" |
|
4623 |
|
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 |
|
4625 $as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; } |
|
4626 |
|
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4628 /* end confdefs.h. */ |
|
4629 |
|
4630 int |
|
4631 main () |
|
4632 { |
|
4633 return 0; |
|
4634 ; |
|
4635 return 0; |
|
4636 } |
|
4637 _ACEOF |
|
4638 if ac_fn_c_try_compile "$LINENO"; then : |
|
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
4640 $as_echo "yes" >&6; } |
|
4641 else |
|
4642 as_fn_error $? "installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5 |
|
4643 fi |
|
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4645 |
|
4646 CC=$_SAVE_CC |
|
4647 CFLAGS=$_SAVE_CFLAGS |
|
4648 LDFLAGS=$_SAVE_LDFLAGS |
|
4649 else |
|
4650 if test -n "$USE_CPLUS"; then |
|
4651 if test "$CC" = "cl" -a -z "$CXX"; then |
|
4652 CXX=$CC |
|
4653 else |
|
4654 ac_ext=cpp |
|
4655 ac_cpp='$CXXCPP $CPPFLAGS' |
|
4656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
4659 if test -z "$CXX"; then |
|
4660 if test -n "$CCC"; then |
|
4661 CXX=$CCC |
|
4662 else |
|
4663 if test -n "$ac_tool_prefix"; then |
|
4664 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
4665 do |
|
4666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
4667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4669 $as_echo_n "checking for $ac_word... " >&6; } |
|
4670 if ${ac_cv_prog_CXX+:} false; then : |
|
4671 $as_echo_n "(cached) " >&6 |
|
4672 else |
|
4673 if test -n "$CXX"; then |
|
4674 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
4675 else |
|
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4677 for as_dir in $PATH |
|
4678 do |
|
4679 IFS=$as_save_IFS |
|
4680 test -z "$as_dir" && as_dir=. |
|
4681 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4685 break 2 |
|
4686 fi |
|
4687 done |
|
4688 done |
|
4689 IFS=$as_save_IFS |
|
4690 |
|
4691 fi |
|
4692 fi |
|
4693 CXX=$ac_cv_prog_CXX |
|
4694 if test -n "$CXX"; then |
|
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|
4696 $as_echo "$CXX" >&6; } |
|
4697 else |
|
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4699 $as_echo "no" >&6; } |
|
4700 fi |
|
4701 |
|
4702 |
|
4703 test -n "$CXX" && break |
|
4704 done |
|
4705 fi |
|
4706 if test -z "$CXX"; then |
|
4707 ac_ct_CXX=$CXX |
|
4708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
4709 do |
|
4710 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4711 set dummy $ac_prog; ac_word=$2 |
|
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4713 $as_echo_n "checking for $ac_word... " >&6; } |
|
4714 if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
|
4715 $as_echo_n "(cached) " >&6 |
|
4716 else |
|
4717 if test -n "$ac_ct_CXX"; then |
|
4718 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
4719 else |
|
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4721 for as_dir in $PATH |
|
4722 do |
|
4723 IFS=$as_save_IFS |
|
4724 test -z "$as_dir" && as_dir=. |
|
4725 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4727 ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4729 break 2 |
|
4730 fi |
|
4731 done |
|
4732 done |
|
4733 IFS=$as_save_IFS |
|
4734 |
|
4735 fi |
|
4736 fi |
|
4737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
4738 if test -n "$ac_ct_CXX"; then |
|
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
|
4740 $as_echo "$ac_ct_CXX" >&6; } |
|
4741 else |
|
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4743 $as_echo "no" >&6; } |
|
4744 fi |
|
4745 |
|
4746 |
|
4747 test -n "$ac_ct_CXX" && break |
|
4748 done |
|
4749 |
|
4750 if test "x$ac_ct_CXX" = x; then |
|
4751 CXX="g++" |
|
4752 else |
|
4753 case $cross_compiling:$ac_tool_warned in |
|
4754 yes:) |
|
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4757 ac_tool_warned=yes ;; |
|
4758 esac |
|
4759 CXX=$ac_ct_CXX |
|
4760 fi |
|
4761 fi |
|
4762 |
|
4763 fi |
|
4764 fi |
|
4765 # Provide some information about the compiler. |
|
4766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
|
4767 set X $ac_compile |
|
4768 ac_compiler=$2 |
|
4769 for ac_option in --version -v -V -qversion; do |
|
4770 { { ac_try="$ac_compiler $ac_option >&5" |
|
4771 case "(($ac_try" in |
|
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4773 *) ac_try_echo=$ac_try;; |
|
4774 esac |
|
4775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
4776 $as_echo "$ac_try_echo"; } >&5 |
|
4777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
4778 ac_status=$? |
|
4779 if test -s conftest.err; then |
|
4780 sed '10a\ |
|
4781 ... rest of stderr output deleted ... |
|
4782 10q' conftest.err >conftest.er1 |
|
4783 cat conftest.er1 >&5 |
|
4784 fi |
|
4785 rm -f conftest.er1 conftest.err |
|
4786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
4787 test $ac_status = 0; } |
|
4788 done |
|
4789 |
|
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
|
4791 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
|
4792 if ${ac_cv_cxx_compiler_gnu+:} false; then : |
|
4793 $as_echo_n "(cached) " >&6 |
|
4794 else |
|
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4796 /* end confdefs.h. */ |
|
4797 |
|
4798 int |
|
4799 main () |
|
4800 { |
|
4801 #ifndef __GNUC__ |
|
4802 choke me |
|
4803 #endif |
|
4804 |
|
4805 ; |
|
4806 return 0; |
|
4807 } |
|
4808 _ACEOF |
|
4809 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4810 ac_compiler_gnu=yes |
|
4811 else |
|
4812 ac_compiler_gnu=no |
|
4813 fi |
|
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
4816 |
|
4817 fi |
|
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
4819 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
|
4820 if test $ac_compiler_gnu = yes; then |
|
4821 GXX=yes |
|
4822 else |
|
4823 GXX= |
|
4824 fi |
|
4825 ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
4826 ac_save_CXXFLAGS=$CXXFLAGS |
|
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
|
4828 $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
|
4829 if ${ac_cv_prog_cxx_g+:} false; then : |
|
4830 $as_echo_n "(cached) " >&6 |
|
4831 else |
|
4832 ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
4833 ac_cxx_werror_flag=yes |
|
4834 ac_cv_prog_cxx_g=no |
|
4835 CXXFLAGS="-g" |
|
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4837 /* end confdefs.h. */ |
|
4838 |
|
4839 int |
|
4840 main () |
|
4841 { |
|
4842 |
|
4843 ; |
|
4844 return 0; |
|
4845 } |
|
4846 _ACEOF |
|
4847 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4848 ac_cv_prog_cxx_g=yes |
|
4849 else |
|
4850 CXXFLAGS="" |
|
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4852 /* end confdefs.h. */ |
|
4853 |
|
4854 int |
|
4855 main () |
|
4856 { |
|
4857 |
|
4858 ; |
|
4859 return 0; |
|
4860 } |
|
4861 _ACEOF |
|
4862 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4863 |
|
4864 else |
|
4865 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
4866 CXXFLAGS="-g" |
|
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4868 /* end confdefs.h. */ |
|
4869 |
|
4870 int |
|
4871 main () |
|
4872 { |
|
4873 |
|
4874 ; |
|
4875 return 0; |
|
4876 } |
|
4877 _ACEOF |
|
4878 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
4879 ac_cv_prog_cxx_g=yes |
|
4880 fi |
|
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4882 fi |
|
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4884 fi |
|
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
4887 fi |
|
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
|
4889 $as_echo "$ac_cv_prog_cxx_g" >&6; } |
|
4890 if test "$ac_test_CXXFLAGS" = set; then |
|
4891 CXXFLAGS=$ac_save_CXXFLAGS |
|
4892 elif test $ac_cv_prog_cxx_g = yes; then |
|
4893 if test "$GXX" = yes; then |
|
4894 CXXFLAGS="-g -O2" |
|
4895 else |
|
4896 CXXFLAGS="-g" |
|
4897 fi |
|
4898 else |
|
4899 if test "$GXX" = yes; then |
|
4900 CXXFLAGS="-O2" |
|
4901 else |
|
4902 CXXFLAGS= |
|
4903 fi |
|
4904 fi |
|
4905 ac_ext=c |
|
4906 ac_cpp='$CPP $CPPFLAGS' |
|
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4910 |
|
4911 fi |
|
4912 fi |
|
4913 if test -n "$ac_tool_prefix"; then |
|
4914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
4915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4917 $as_echo_n "checking for $ac_word... " >&6; } |
|
4918 if ${ac_cv_prog_RANLIB+:} false; then : |
|
4919 $as_echo_n "(cached) " >&6 |
|
4920 else |
|
4921 if test -n "$RANLIB"; then |
|
4922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
4923 else |
|
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4925 for as_dir in $PATH |
|
4926 do |
|
4927 IFS=$as_save_IFS |
|
4928 test -z "$as_dir" && as_dir=. |
|
4929 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4933 break 2 |
|
4934 fi |
|
4935 done |
|
4936 done |
|
4937 IFS=$as_save_IFS |
|
4938 |
|
4939 fi |
|
4940 fi |
|
4941 RANLIB=$ac_cv_prog_RANLIB |
|
4942 if test -n "$RANLIB"; then |
|
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
|
4944 $as_echo "$RANLIB" >&6; } |
|
4945 else |
|
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4947 $as_echo "no" >&6; } |
|
4948 fi |
|
4949 |
|
4950 |
|
4951 fi |
|
4952 if test -z "$ac_cv_prog_RANLIB"; then |
|
4953 ac_ct_RANLIB=$RANLIB |
|
4954 # Extract the first word of "ranlib", so it can be a program name with args. |
|
4955 set dummy ranlib; ac_word=$2 |
|
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4957 $as_echo_n "checking for $ac_word... " >&6; } |
|
4958 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
|
4959 $as_echo_n "(cached) " >&6 |
|
4960 else |
|
4961 if test -n "$ac_ct_RANLIB"; then |
|
4962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
4963 else |
|
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4965 for as_dir in $PATH |
|
4966 do |
|
4967 IFS=$as_save_IFS |
|
4968 test -z "$as_dir" && as_dir=. |
|
4969 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4971 ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4973 break 2 |
|
4974 fi |
|
4975 done |
|
4976 done |
|
4977 IFS=$as_save_IFS |
|
4978 |
|
4979 fi |
|
4980 fi |
|
4981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
4982 if test -n "$ac_ct_RANLIB"; then |
|
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
|
4984 $as_echo "$ac_ct_RANLIB" >&6; } |
|
4985 else |
|
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4987 $as_echo "no" >&6; } |
|
4988 fi |
|
4989 |
|
4990 if test "x$ac_ct_RANLIB" = x; then |
|
4991 RANLIB=":" |
|
4992 else |
|
4993 case $cross_compiling:$ac_tool_warned in |
|
4994 yes:) |
|
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4997 ac_tool_warned=yes ;; |
|
4998 esac |
|
4999 RANLIB=$ac_ct_RANLIB |
|
5000 fi |
|
5001 else |
|
5002 RANLIB="$ac_cv_prog_RANLIB" |
|
5003 fi |
|
5004 |
|
5005 for ac_prog in as |
|
5006 do |
|
5007 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5008 set dummy $ac_prog; ac_word=$2 |
|
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5010 $as_echo_n "checking for $ac_word... " >&6; } |
|
5011 if ${ac_cv_path_AS+:} false; then : |
|
5012 $as_echo_n "(cached) " >&6 |
|
5013 else |
|
5014 case $AS in |
|
5015 [\\/]* | ?:[\\/]*) |
|
5016 ac_cv_path_AS="$AS" # Let the user override the test with a path. |
|
5017 ;; |
|
5018 *) |
|
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5020 for as_dir in $PATH |
|
5021 do |
|
5022 IFS=$as_save_IFS |
|
5023 test -z "$as_dir" && as_dir=. |
|
5024 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5026 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" |
|
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5028 break 2 |
|
5029 fi |
|
5030 done |
|
5031 done |
|
5032 IFS=$as_save_IFS |
|
5033 |
|
5034 ;; |
|
5035 esac |
|
5036 fi |
|
5037 AS=$ac_cv_path_AS |
|
5038 if test -n "$AS"; then |
|
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
|
5040 $as_echo "$AS" >&6; } |
|
5041 else |
|
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5043 $as_echo "no" >&6; } |
|
5044 fi |
|
5045 |
|
5046 |
|
5047 test -n "$AS" && break |
|
5048 done |
|
5049 test -n "$AS" || AS="$CC" |
|
5050 |
|
5051 for ac_prog in ar |
|
5052 do |
|
5053 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5054 set dummy $ac_prog; ac_word=$2 |
|
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5056 $as_echo_n "checking for $ac_word... " >&6; } |
|
5057 if ${ac_cv_path_AR+:} false; then : |
|
5058 $as_echo_n "(cached) " >&6 |
|
5059 else |
|
5060 case $AR in |
|
5061 [\\/]* | ?:[\\/]*) |
|
5062 ac_cv_path_AR="$AR" # Let the user override the test with a path. |
|
5063 ;; |
|
5064 *) |
|
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5066 for as_dir in $PATH |
|
5067 do |
|
5068 IFS=$as_save_IFS |
|
5069 test -z "$as_dir" && as_dir=. |
|
5070 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5072 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
|
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5074 break 2 |
|
5075 fi |
|
5076 done |
|
5077 done |
|
5078 IFS=$as_save_IFS |
|
5079 |
|
5080 ;; |
|
5081 esac |
|
5082 fi |
|
5083 AR=$ac_cv_path_AR |
|
5084 if test -n "$AR"; then |
|
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
|
5086 $as_echo "$AR" >&6; } |
|
5087 else |
|
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5089 $as_echo "no" >&6; } |
|
5090 fi |
|
5091 |
|
5092 |
|
5093 test -n "$AR" && break |
|
5094 done |
|
5095 test -n "$AR" || AR="echo not_ar" |
|
5096 |
|
5097 for ac_prog in ld link |
|
5098 do |
|
5099 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5100 set dummy $ac_prog; ac_word=$2 |
|
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5102 $as_echo_n "checking for $ac_word... " >&6; } |
|
5103 if ${ac_cv_path_LD+:} false; then : |
|
5104 $as_echo_n "(cached) " >&6 |
|
5105 else |
|
5106 case $LD in |
|
5107 [\\/]* | ?:[\\/]*) |
|
5108 ac_cv_path_LD="$LD" # Let the user override the test with a path. |
|
5109 ;; |
|
5110 *) |
|
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5112 for as_dir in $PATH |
|
5113 do |
|
5114 IFS=$as_save_IFS |
|
5115 test -z "$as_dir" && as_dir=. |
|
5116 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5118 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
|
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5120 break 2 |
|
5121 fi |
|
5122 done |
|
5123 done |
|
5124 IFS=$as_save_IFS |
|
5125 |
|
5126 ;; |
|
5127 esac |
|
5128 fi |
|
5129 LD=$ac_cv_path_LD |
|
5130 if test -n "$LD"; then |
|
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
|
5132 $as_echo "$LD" >&6; } |
|
5133 else |
|
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5135 $as_echo "no" >&6; } |
|
5136 fi |
|
5137 |
|
5138 |
|
5139 test -n "$LD" && break |
|
5140 done |
|
5141 test -n "$LD" || LD="echo not_ld" |
|
5142 |
|
5143 for ac_prog in strip |
|
5144 do |
|
5145 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5146 set dummy $ac_prog; ac_word=$2 |
|
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5148 $as_echo_n "checking for $ac_word... " >&6; } |
|
5149 if ${ac_cv_path_STRIP+:} false; then : |
|
5150 $as_echo_n "(cached) " >&6 |
|
5151 else |
|
5152 case $STRIP in |
|
5153 [\\/]* | ?:[\\/]*) |
|
5154 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. |
|
5155 ;; |
|
5156 *) |
|
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5158 for as_dir in $PATH |
|
5159 do |
|
5160 IFS=$as_save_IFS |
|
5161 test -z "$as_dir" && as_dir=. |
|
5162 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5164 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" |
|
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5166 break 2 |
|
5167 fi |
|
5168 done |
|
5169 done |
|
5170 IFS=$as_save_IFS |
|
5171 |
|
5172 ;; |
|
5173 esac |
|
5174 fi |
|
5175 STRIP=$ac_cv_path_STRIP |
|
5176 if test -n "$STRIP"; then |
|
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
|
5178 $as_echo "$STRIP" >&6; } |
|
5179 else |
|
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5181 $as_echo "no" >&6; } |
|
5182 fi |
|
5183 |
|
5184 |
|
5185 test -n "$STRIP" && break |
|
5186 done |
|
5187 test -n "$STRIP" || STRIP="echo not_strip" |
|
5188 |
|
5189 for ac_prog in windres |
|
5190 do |
|
5191 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5192 set dummy $ac_prog; ac_word=$2 |
|
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5194 $as_echo_n "checking for $ac_word... " >&6; } |
|
5195 if ${ac_cv_path_WINDRES+:} false; then : |
|
5196 $as_echo_n "(cached) " >&6 |
|
5197 else |
|
5198 case $WINDRES in |
|
5199 [\\/]* | ?:[\\/]*) |
|
5200 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path. |
|
5201 ;; |
|
5202 *) |
|
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5204 for as_dir in $PATH |
|
5205 do |
|
5206 IFS=$as_save_IFS |
|
5207 test -z "$as_dir" && as_dir=. |
|
5208 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5210 ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext" |
|
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5212 break 2 |
|
5213 fi |
|
5214 done |
|
5215 done |
|
5216 IFS=$as_save_IFS |
|
5217 |
|
5218 ;; |
|
5219 esac |
|
5220 fi |
|
5221 WINDRES=$ac_cv_path_WINDRES |
|
5222 if test -n "$WINDRES"; then |
|
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
|
5224 $as_echo "$WINDRES" >&6; } |
|
5225 else |
|
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5227 $as_echo "no" >&6; } |
|
5228 fi |
|
5229 |
|
5230 |
|
5231 test -n "$WINDRES" && break |
|
5232 done |
|
5233 test -n "$WINDRES" || WINDRES="echo not_windres" |
|
5234 |
|
5235 if test -z "$HOST_CC"; then |
|
5236 HOST_CC="$CC" |
|
5237 fi |
|
5238 if test -z "$HOST_CFLAGS"; then |
|
5239 HOST_CFLAGS="$CFLAGS" |
|
5240 fi |
|
5241 fi |
|
5242 |
|
5243 ac_ext=c |
|
5244 ac_cpp='$CPP $CPPFLAGS' |
|
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
5249 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
5250 # On Suns, sometimes $CPP names a directory. |
|
5251 if test -n "$CPP" && test -d "$CPP"; then |
|
5252 CPP= |
|
5253 fi |
|
5254 if test -z "$CPP"; then |
|
5255 if ${ac_cv_prog_CPP+:} false; then : |
|
5256 $as_echo_n "(cached) " >&6 |
|
5257 else |
|
5258 # Double quotes because CPP needs to be expanded |
|
5259 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
5260 do |
|
5261 ac_preproc_ok=false |
|
5262 for ac_c_preproc_warn_flag in '' yes |
|
5263 do |
|
5264 # Use a header file that comes with gcc, so configuring glibc |
|
5265 # with a fresh cross-compiler works. |
|
5266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
5267 # <limits.h> exists even on freestanding compilers. |
|
5268 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
5269 # not just through cpp. "Syntax error" is here to catch this case. |
|
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5271 /* end confdefs.h. */ |
|
5272 #ifdef __STDC__ |
|
5273 # include <limits.h> |
|
5274 #else |
|
5275 # include <assert.h> |
|
5276 #endif |
|
5277 Syntax error |
|
5278 _ACEOF |
|
5279 if ac_fn_c_try_cpp "$LINENO"; then : |
|
5280 |
|
5281 else |
|
5282 # Broken: fails on valid input. |
|
5283 continue |
|
5284 fi |
|
5285 rm -f conftest.err conftest.i conftest.$ac_ext |
|
5286 |
|
5287 # OK, works on sane cases. Now check whether nonexistent headers |
|
5288 # can be detected and how. |
|
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5290 /* end confdefs.h. */ |
|
5291 #include <ac_nonexistent.h> |
|
5292 _ACEOF |
|
5293 if ac_fn_c_try_cpp "$LINENO"; then : |
|
5294 # Broken: success on invalid input. |
|
5295 continue |
|
5296 else |
|
5297 # Passes both tests. |
|
5298 ac_preproc_ok=: |
|
5299 break |
|
5300 fi |
|
5301 rm -f conftest.err conftest.i conftest.$ac_ext |
|
5302 |
|
5303 done |
|
5304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
5305 rm -f conftest.i conftest.err conftest.$ac_ext |
|
5306 if $ac_preproc_ok; then : |
|
5307 break |
|
5308 fi |
|
5309 |
|
5310 done |
|
5311 ac_cv_prog_CPP=$CPP |
|
5312 |
|
5313 fi |
|
5314 CPP=$ac_cv_prog_CPP |
|
5315 else |
|
5316 ac_cv_prog_CPP=$CPP |
|
5317 fi |
|
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
5319 $as_echo "$CPP" >&6; } |
|
5320 ac_preproc_ok=false |
|
5321 for ac_c_preproc_warn_flag in '' yes |
|
5322 do |
|
5323 # Use a header file that comes with gcc, so configuring glibc |
|
5324 # with a fresh cross-compiler works. |
|
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
5326 # <limits.h> exists even on freestanding compilers. |
|
5327 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
5328 # not just through cpp. "Syntax error" is here to catch this case. |
|
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5330 /* end confdefs.h. */ |
|
5331 #ifdef __STDC__ |
|
5332 # include <limits.h> |
|
5333 #else |
|
5334 # include <assert.h> |
|
5335 #endif |
|
5336 Syntax error |
|
5337 _ACEOF |
|
5338 if ac_fn_c_try_cpp "$LINENO"; then : |
|
5339 |
|
5340 else |
|
5341 # Broken: fails on valid input. |
|
5342 continue |
|
5343 fi |
|
5344 rm -f conftest.err conftest.i conftest.$ac_ext |
|
5345 |
|
5346 # OK, works on sane cases. Now check whether nonexistent headers |
|
5347 # can be detected and how. |
|
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5349 /* end confdefs.h. */ |
|
5350 #include <ac_nonexistent.h> |
|
5351 _ACEOF |
|
5352 if ac_fn_c_try_cpp "$LINENO"; then : |
|
5353 # Broken: success on invalid input. |
|
5354 continue |
|
5355 else |
|
5356 # Passes both tests. |
|
5357 ac_preproc_ok=: |
|
5358 break |
|
5359 fi |
|
5360 rm -f conftest.err conftest.i conftest.$ac_ext |
|
5361 |
|
5362 done |
|
5363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
5364 rm -f conftest.i conftest.err conftest.$ac_ext |
|
5365 if $ac_preproc_ok; then : |
|
5366 |
|
5367 else |
|
5368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
5369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
5370 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
5371 See \`config.log' for more details" "$LINENO" 5; } |
|
5372 fi |
|
5373 |
|
5374 ac_ext=c |
|
5375 ac_cpp='$CPP $CPPFLAGS' |
|
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5379 |
|
5380 |
|
5381 if test "$GCC" = "yes"; then |
|
5382 GNU_CC=1 |
|
5383 fi |
|
5384 if test "$GXX" = "yes"; then |
|
5385 GNU_CXX=1 |
|
5386 fi |
|
5387 if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then |
|
5388 GNU_AS=1 |
|
5389 fi |
|
5390 rm -f a.out |
|
5391 |
|
5392 case "$build:$target" in |
|
5393 i?86-apple-darwin*:powerpc-apple-darwin*) |
|
5394 cross_compiling=yes |
|
5395 ;; |
|
5396 esac |
|
5397 |
|
5398 if test "$cross_compiling" = "yes"; then |
|
5399 CROSS_COMPILE=1 |
|
5400 else |
|
5401 CROSS_COMPILE= |
|
5402 fi |
|
5403 |
|
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5 |
|
5405 $as_echo_n "checking for gcc -pipe support... " >&6; } |
|
5406 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then |
|
5407 echo '#include <stdio.h>' > dummy-hello.c |
|
5408 echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c |
|
5409 ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5 |
|
5410 cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5 |
|
5411 if test $? = 0; then |
|
5412 _res_as_stdin="yes" |
|
5413 else |
|
5414 _res_as_stdin="no" |
|
5415 fi |
|
5416 if test "$_res_as_stdin" = "yes"; then |
|
5417 _SAVE_CFLAGS=$CFLAGS |
|
5418 CFLAGS="$CFLAGS -pipe" |
|
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5420 /* end confdefs.h. */ |
|
5421 #include <stdio.h> |
|
5422 int |
|
5423 main () |
|
5424 { |
|
5425 printf("Hello World\n"); |
|
5426 ; |
|
5427 return 0; |
|
5428 } |
|
5429 _ACEOF |
|
5430 if ac_fn_c_try_compile "$LINENO"; then : |
|
5431 _res_gcc_pipe="yes" |
|
5432 else |
|
5433 _res_gcc_pipe="no" |
|
5434 fi |
|
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5436 CFLAGS=$_SAVE_CFLAGS |
|
5437 fi |
|
5438 if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then |
|
5439 _res="yes"; |
|
5440 CFLAGS="$CFLAGS -pipe" |
|
5441 CXXFLAGS="$CXXFLAGS -pipe" |
|
5442 else |
|
5443 _res="no" |
|
5444 fi |
|
5445 rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out |
|
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5 |
|
5447 $as_echo "$_res" >&6; } |
|
5448 else |
|
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5450 $as_echo "no" >&6; } |
|
5451 fi |
|
5452 |
|
5453 |
|
5454 _SAVE_CFLAGS="$CFLAGS" |
|
5455 CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction" |
|
5456 |
|
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5 |
|
5458 $as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; } |
|
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5460 /* end confdefs.h. */ |
|
5461 |
|
5462 int |
|
5463 main () |
|
5464 { |
|
5465 return 0; |
|
5466 ; |
|
5467 return 0; |
|
5468 } |
|
5469 _ACEOF |
|
5470 if ac_fn_c_try_compile "$LINENO"; then : |
|
5471 PROFILE_GEN_CFLAGS="-fprofile-generate" |
|
5472 result="yes" |
|
5473 else |
|
5474 result="no" |
|
5475 fi |
|
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
|
5478 $as_echo "$result" >&6; } |
|
5479 |
|
5480 if test $result = "yes"; then |
|
5481 PROFILE_GEN_LDFLAGS="-fprofile-generate" |
|
5482 PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch" |
|
5483 PROFILE_USE_LDFLAGS="-fprofile-use" |
|
5484 fi |
|
5485 |
|
5486 CFLAGS="$_SAVE_CFLAGS" |
|
5487 |
|
5488 if test "$GNU_CC"; then |
|
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5 |
|
5490 $as_echo_n "checking for visibility(hidden) attribute... " >&6; } |
|
5491 if ${ac_cv_visibility_hidden+:} false; then : |
|
5492 $as_echo_n "(cached) " >&6 |
|
5493 else |
|
5494 cat > conftest.c <<EOF |
|
5495 int foo __attribute__ ((visibility ("hidden"))) = 1; |
|
5496 EOF |
|
5497 ac_cv_visibility_hidden=no |
|
5498 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then |
|
5499 if grep '\.hidden.*foo' conftest.s >/dev/null; then |
|
5500 ac_cv_visibility_hidden=yes |
|
5501 fi |
|
5502 fi |
|
5503 rm -f conftest.cs |
|
5504 |
|
5505 fi |
|
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5 |
|
5507 $as_echo "$ac_cv_visibility_hidden" >&6; } |
|
5508 if test "$ac_cv_visibility_hidden" = "yes"; then |
|
5509 $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h |
|
5510 |
|
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5 |
|
5512 $as_echo_n "checking for visibility pragma support... " >&6; } |
|
5513 if ${ac_cv_visibility_pragma+:} false; then : |
|
5514 $as_echo_n "(cached) " >&6 |
|
5515 else |
|
5516 cat > conftest.c <<EOF |
|
5517 #pragma GCC visibility push(hidden) |
|
5518 int foo_hidden = 1; |
|
5519 #pragma GCC visibility push(default) |
|
5520 int foo_default = 1; |
|
5521 EOF |
|
5522 ac_cv_visibility_pragma=no |
|
5523 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then |
|
5524 if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then |
|
5525 if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then |
|
5526 ac_cv_visibility_pragma=yes |
|
5527 fi |
|
5528 fi |
|
5529 fi |
|
5530 rm -f conftest.cs |
|
5531 |
|
5532 fi |
|
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5 |
|
5534 $as_echo "$ac_cv_visibility_pragma" >&6; } |
|
5535 if test "$ac_cv_visibility_pragma" = "yes"; then |
|
5536 $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h |
|
5537 |
|
5538 # To work around a build problem on Linux x86-64 (Bugzilla bug |
|
5539 # 293438), we use the -fvisibility=hidden flag. This flag is less |
|
5540 # optimal than #pragma GCC visibility push(hidden) because the flag |
|
5541 # assumes that symbols defined outside the current source file have |
|
5542 # the default visibility. This has the advantage that we don't need |
|
5543 # to wrap system header files, but has the disadvantage that calls |
|
5544 # to hidden symbols defined in other source files cannot be |
|
5545 # optimized by the compiler. The -fvisibility=hidden flag does |
|
5546 # hide and export symbols correctly. |
|
5547 #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h' |
|
5548 #WRAP_SYSTEM_INCLUDES=1 |
|
5549 VISIBILITY_FLAGS="-fvisibility=hidden" |
|
5550 WRAP_SYSTEM_INCLUDES= |
|
5551 fi |
|
5552 fi |
|
5553 fi # GNU_CC |
|
5554 |
|
5555 fi # SKIP_COMPILER_CHECKS |
|
5556 |
|
5557 if test -z "$SKIP_PATH_CHECKS"; then |
|
5558 for ac_prog in perl5 perl |
|
5559 do |
|
5560 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5561 set dummy $ac_prog; ac_word=$2 |
|
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5563 $as_echo_n "checking for $ac_word... " >&6; } |
|
5564 if ${ac_cv_path_PERL+:} false; then : |
|
5565 $as_echo_n "(cached) " >&6 |
|
5566 else |
|
5567 case $PERL in |
|
5568 [\\/]* | ?:[\\/]*) |
|
5569 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
5570 ;; |
|
5571 *) |
|
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5573 for as_dir in $PATH |
|
5574 do |
|
5575 IFS=$as_save_IFS |
|
5576 test -z "$as_dir" && as_dir=. |
|
5577 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5579 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5581 break 2 |
|
5582 fi |
|
5583 done |
|
5584 done |
|
5585 IFS=$as_save_IFS |
|
5586 |
|
5587 ;; |
|
5588 esac |
|
5589 fi |
|
5590 PERL=$ac_cv_path_PERL |
|
5591 if test -n "$PERL"; then |
|
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
|
5593 $as_echo "$PERL" >&6; } |
|
5594 else |
|
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5596 $as_echo "no" >&6; } |
|
5597 fi |
|
5598 |
|
5599 |
|
5600 test -n "$PERL" && break |
|
5601 done |
|
5602 test -n "$PERL" || PERL="echo not_perl" |
|
5603 |
|
5604 elif test -z "$PERL"; then |
|
5605 PERL=perl |
|
5606 fi |
|
5607 |
|
5608 OBJ_SUFFIX=o |
|
5609 LIB_SUFFIX=a |
|
5610 DLL_SUFFIX=so |
|
5611 ASM_SUFFIX=s |
|
5612 MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' |
|
5613 PR_MD_ASFILES= |
|
5614 PR_MD_CSRCS= |
|
5615 PR_MD_ARCH_DIR=unix |
|
5616 AR_FLAGS='cr $@' |
|
5617 AS='$(CC)' |
|
5618 ASFLAGS='$(CFLAGS)' |
|
5619 |
|
5620 if test -n "$CROSS_COMPILE"; then |
|
5621 OS_ARCH=`echo $target_os | sed -e 's|/|_|g'` |
|
5622 OS_RELEASE= |
|
5623 OS_TEST="${target_cpu}" |
|
5624 case "${target_os}" in |
|
5625 linux*) OS_ARCH=Linux ;; |
|
5626 solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;; |
|
5627 mingw*) OS_ARCH=WINNT CPU_ARCH=x86 ;; |
|
5628 darwin*) OS_ARCH=Darwin ;; |
|
5629 riscos*) OS_ARCH=RISCOS ;; |
|
5630 esac |
|
5631 else |
|
5632 OS_ARCH=`uname -s | sed -e 's|/|_|g'` |
|
5633 OS_RELEASE=`uname -r` |
|
5634 OS_TEST=`uname -m` |
|
5635 fi |
|
5636 |
|
5637 if test "$OS_ARCH" = "IRIX64"; then |
|
5638 OS_ARCH=IRIX |
|
5639 fi |
|
5640 |
|
5641 if test "$OS_ARCH" = "AIX"; then |
|
5642 OS_RELEASE=`uname -v`.`uname -r` |
|
5643 fi |
|
5644 |
|
5645 if test "$OS_ARCH" = "FreeBSD"; then |
|
5646 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` |
|
5647 fi |
|
5648 |
|
5649 if test "$OS_ARCH" = "Linux"; then |
|
5650 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` |
|
5651 OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'` |
|
5652 fi |
|
5653 |
|
5654 ####################################################################### |
|
5655 # Master "Core Components" macros for getting the OS target # |
|
5656 ####################################################################### |
|
5657 |
|
5658 # |
|
5659 # Note: OS_TARGET should be specified on the command line for gmake. |
|
5660 # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. |
|
5661 # The difference between the Win95 target and the WinNT target is that |
|
5662 # the WinNT target uses Windows NT specific features not available |
|
5663 # in Windows 95. The Win95 target will run on Windows NT, but (supposedly) |
|
5664 # at lesser performance (the Win95 target uses threads; the WinNT target |
|
5665 # uses fibers). |
|
5666 # |
|
5667 # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no |
|
5668 # cross-compilation. |
|
5669 # |
|
5670 |
|
5671 # |
|
5672 # The following hack allows one to build on a WIN95 machine (as if |
|
5673 # s/he were cross-compiling on a WINNT host for a WIN95 target). |
|
5674 # It also accomodates for MKS's uname.exe. If you never intend |
|
5675 # to do development on a WIN95 machine, you don't need this hack. |
|
5676 # |
|
5677 case "$OS_ARCH" in |
|
5678 Windows_95) |
|
5679 OS_ARCH=Windows_NT |
|
5680 OS_TARGET=WIN95 |
|
5681 ;; |
|
5682 Windows_98) |
|
5683 OS_ARCH=Windows_NT |
|
5684 OS_TARGET=WIN95 |
|
5685 ;; |
|
5686 CYGWIN_9*|CYGWIN_ME*) |
|
5687 OS_ARCH='CYGWIN_NT-4.0' |
|
5688 OS_TARGET=WIN95 |
|
5689 ;; |
|
5690 OS_2) |
|
5691 OS_ARCH=OS2 |
|
5692 OS_TARGET=OS2 |
|
5693 ;; |
|
5694 esac |
|
5695 |
|
5696 # |
|
5697 # On WIN32, we also define the variable CPU_ARCH. |
|
5698 # |
|
5699 |
|
5700 case "$OS_ARCH" in |
|
5701 Windows_NT) |
|
5702 # |
|
5703 # If uname -s returns "Windows_NT", we assume that we are using |
|
5704 # the uname.exe in MKS toolkit. |
|
5705 # |
|
5706 # The -r option of MKS uname only returns the major version number. |
|
5707 # So we need to use its -v option to get the minor version number. |
|
5708 # Moreover, it doesn't have the -p option, so we need to use uname -m. |
|
5709 # |
|
5710 OS_ARCH=WINNT |
|
5711 OS_MINOR_RELEASE=`uname -v` |
|
5712 if test "$OS_MINOR_RELEASE" = "00"; then |
|
5713 OS_MINOR_RELEASE=0 |
|
5714 fi |
|
5715 OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" |
|
5716 CPU_ARCH=`uname -m` |
|
5717 # |
|
5718 # MKS's uname -m returns "586" on a Pentium machine. |
|
5719 # |
|
5720 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then |
|
5721 CPU_ARCH=x86 |
|
5722 fi |
|
5723 ;; |
|
5724 CYGWIN_NT*|MINGW*_NT*|MSYS_NT*) |
|
5725 # |
|
5726 # If uname -s returns "CYGWIN_NT-4.0", we assume that we are using |
|
5727 # the uname.exe in the Cygwin tools. |
|
5728 # If uname -s returns "MINGW32_NT-5.1", we assume that we are using |
|
5729 # the uname.exe in the MSYS tools. |
|
5730 # If uname -s returns "MSYS_NT-6.3", we assume that we are using |
|
5731 # the uname.exe in the MSYS2 tools. |
|
5732 # |
|
5733 OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` |
|
5734 OS_ARCH=WINNT |
|
5735 CPU_ARCH=`uname -m` |
|
5736 # |
|
5737 # Cygwin's uname -m returns "i686" on a Pentium Pro machine. |
|
5738 # |
|
5739 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then |
|
5740 CPU_ARCH=x86 |
|
5741 fi |
|
5742 ;; |
|
5743 esac |
|
5744 |
|
5745 if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then |
|
5746 OS_TARGET=WIN95 |
|
5747 if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then |
|
5748 USE_DEBUG_RTL=1 |
|
5749 fi |
|
5750 fi |
|
5751 if test -z "$OS_TARGET"; then |
|
5752 OS_TARGET=$OS_ARCH |
|
5753 fi |
|
5754 if test "$OS_TARGET" = "WIN95"; then |
|
5755 OS_RELEASE="4.0" |
|
5756 fi |
|
5757 OS_CONFIG="${OS_TARGET}${OS_RELEASE}" |
|
5758 |
|
5759 # Check whether --enable-os2-high-mem was given. |
|
5760 if test "${enable_os2_high_mem+set}" = set; then : |
|
5761 enableval=$enable_os2_high_mem; if test "$enableval" = "no"; then |
|
5762 MOZ_OS2_HIGH_MEMORY= |
|
5763 else |
|
5764 MOZ_OS2_HIGH_MEMORY=1 |
|
5765 fi |
|
5766 fi |
|
5767 |
|
5768 |
|
5769 |
|
5770 MOZ_ALIGN=toolchain-default |
|
5771 |
|
5772 case "$target" in |
|
5773 arm*-android*|arm*-linuxandroid*) |
|
5774 MOZ_THUMB=yes |
|
5775 MOZ_ARCH=armv7-a |
|
5776 MOZ_FPU=vfp |
|
5777 MOZ_FLOAT_ABI=softfp |
|
5778 MOZ_SOFT_FLOAT=yes |
|
5779 MOZ_ALIGN=no |
|
5780 ;; |
|
5781 arm*-*) |
|
5782 if test -n "$MOZ_PLATFORM_MAEMO"; then |
|
5783 MOZ_THUMB=no |
|
5784 MOZ_ARCH=armv7-a |
|
5785 MOZ_FLOAT_ABI=softfp |
|
5786 fi |
|
5787 if test "$MOZ_PLATFORM_MAEMO" = 6; then |
|
5788 MOZ_THUMB=yes |
|
5789 fi |
|
5790 ;; |
|
5791 esac |
|
5792 |
|
5793 # Check whether --enable-thumb2 was given. |
|
5794 if test "${enable_thumb2+set}" = set; then : |
|
5795 enableval=$enable_thumb2; MOZ_THUMB=$enableval |
|
5796 fi |
|
5797 |
|
5798 |
|
5799 |
|
5800 # Check whether --with-thumb was given. |
|
5801 if test "${with_thumb+set}" = set; then : |
|
5802 withval=$with_thumb; if test -z "$GNU_CC"; then |
|
5803 as_fn_error $? "--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
|
5804 fi |
|
5805 MOZ_THUMB=$withval |
|
5806 fi |
|
5807 |
|
5808 |
|
5809 |
|
5810 # Check whether --with-thumb-interwork was given. |
|
5811 if test "${with_thumb_interwork+set}" = set; then : |
|
5812 withval=$with_thumb_interwork; if test -z "$GNU_CC"; then |
|
5813 as_fn_error $? "--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
|
5814 fi |
|
5815 MOZ_THUMB_INTERWORK=$withval |
|
5816 fi |
|
5817 |
|
5818 |
|
5819 |
|
5820 # Check whether --with-arch was given. |
|
5821 if test "${with_arch+set}" = set; then : |
|
5822 withval=$with_arch; if test -z "$GNU_CC"; then |
|
5823 as_fn_error $? "--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
|
5824 fi |
|
5825 MOZ_ARCH=$withval |
|
5826 fi |
|
5827 |
|
5828 |
|
5829 |
|
5830 # Check whether --with-fpu was given. |
|
5831 if test "${with_fpu+set}" = set; then : |
|
5832 withval=$with_fpu; if test -z "$GNU_CC"; then |
|
5833 as_fn_error $? "--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
|
5834 fi |
|
5835 MOZ_FPU=$withval |
|
5836 fi |
|
5837 |
|
5838 |
|
5839 |
|
5840 # Check whether --with-float-abi was given. |
|
5841 if test "${with_float_abi+set}" = set; then : |
|
5842 withval=$with_float_abi; if test -z "$GNU_CC"; then |
|
5843 as_fn_error $? "--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
|
5844 fi |
|
5845 MOZ_FLOAT_ABI=$withval |
|
5846 fi |
|
5847 |
|
5848 |
|
5849 |
|
5850 # Check whether --with-soft-float was given. |
|
5851 if test "${with_soft_float+set}" = set; then : |
|
5852 withval=$with_soft_float; if test -z "$GNU_CC"; then |
|
5853 as_fn_error $? "--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
|
5854 fi |
|
5855 MOZ_SOFT_FLOAT=$withval |
|
5856 fi |
|
5857 |
|
5858 |
|
5859 case "$MOZ_ARCH" in |
|
5860 toolchain-default|"") |
|
5861 arch_flag="" |
|
5862 ;; |
|
5863 *) |
|
5864 arch_flag="-march=$MOZ_ARCH" |
|
5865 ;; |
|
5866 esac |
|
5867 |
|
5868 case "$MOZ_THUMB" in |
|
5869 yes) |
|
5870 MOZ_THUMB2=1 |
|
5871 thumb_flag="-mthumb" |
|
5872 ;; |
|
5873 no) |
|
5874 MOZ_THUMB2= |
|
5875 thumb_flag="-marm" |
|
5876 ;; |
|
5877 *) |
|
5878 _SAVE_CFLAGS="$CFLAGS" |
|
5879 CFLAGS="$arch_flag" |
|
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5881 /* end confdefs.h. */ |
|
5882 |
|
5883 int |
|
5884 main () |
|
5885 { |
|
5886 return sizeof(__thumb2__); |
|
5887 ; |
|
5888 return 0; |
|
5889 } |
|
5890 _ACEOF |
|
5891 if ac_fn_c_try_compile "$LINENO"; then : |
|
5892 MOZ_THUMB2=1 |
|
5893 else |
|
5894 MOZ_THUMB2= |
|
5895 fi |
|
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5897 CFLAGS="$_SAVE_CFLAGS" |
|
5898 thumb_flag="" |
|
5899 ;; |
|
5900 esac |
|
5901 |
|
5902 case "$MOZ_THUMB_INTERWORK" in |
|
5903 yes) |
|
5904 thumb_interwork_flag="-mthumb-interwork" |
|
5905 ;; |
|
5906 no) |
|
5907 thumb_interwork_flag="-mno-thumb-interwork" |
|
5908 ;; |
|
5909 *) # toolchain-default |
|
5910 thumb_interwork_flag="" |
|
5911 ;; |
|
5912 esac |
|
5913 |
|
5914 case "$MOZ_FPU" in |
|
5915 toolchain-default|"") |
|
5916 fpu_flag="" |
|
5917 ;; |
|
5918 *) |
|
5919 fpu_flag="-mfpu=$MOZ_FPU" |
|
5920 ;; |
|
5921 esac |
|
5922 |
|
5923 case "$MOZ_FLOAT_ABI" in |
|
5924 toolchain-default|"") |
|
5925 float_abi_flag="" |
|
5926 ;; |
|
5927 *) |
|
5928 float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI" |
|
5929 ;; |
|
5930 esac |
|
5931 |
|
5932 case "$MOZ_SOFT_FLOAT" in |
|
5933 yes) |
|
5934 soft_float_flag="-msoft-float" |
|
5935 ;; |
|
5936 no) |
|
5937 soft_float_flag="-mno-soft-float" |
|
5938 ;; |
|
5939 *) # toolchain-default |
|
5940 soft_float_flag="" |
|
5941 ;; |
|
5942 esac |
|
5943 |
|
5944 case "$MOZ_ALIGN" in |
|
5945 toolchain-default|"") |
|
5946 align_flag="" |
|
5947 ;; |
|
5948 no) |
|
5949 align_flag="-mno-unaligned-access" |
|
5950 ;; |
|
5951 yes) |
|
5952 align_flag="-munaligned-access" |
|
5953 ;; |
|
5954 *) |
|
5955 align_flag="" |
|
5956 ;; |
|
5957 esac |
|
5958 |
|
5959 if test -n "$align_flag"; then |
|
5960 _SAVE_CFLAGS="$CFLAGS" |
|
5961 CFLAGS="$CFLAGS $align_flag" |
|
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5 |
|
5963 $as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; } |
|
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5965 /* end confdefs.h. */ |
|
5966 |
|
5967 int |
|
5968 main () |
|
5969 { |
|
5970 |
|
5971 ; |
|
5972 return 0; |
|
5973 } |
|
5974 _ACEOF |
|
5975 if ac_fn_c_try_compile "$LINENO"; then : |
|
5976 |
|
5977 else |
|
5978 align_flag="" |
|
5979 fi |
|
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5981 CFLAGS="$_SAVE_CFLAGS" |
|
5982 fi |
|
5983 |
|
5984 all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag` |
|
5985 if test -n "$all_flags"; then |
|
5986 _SAVE_CFLAGS="$CFLAGS" |
|
5987 CFLAGS="$all_flags" |
|
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5 |
|
5989 $as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; } |
|
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5991 /* end confdefs.h. */ |
|
5992 |
|
5993 int |
|
5994 main () |
|
5995 { |
|
5996 return 0; |
|
5997 ; |
|
5998 return 0; |
|
5999 } |
|
6000 _ACEOF |
|
6001 if ac_fn_c_try_compile "$LINENO"; then : |
|
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
6003 $as_echo "yes" >&6; } |
|
6004 else |
|
6005 as_fn_error $? "no" "$LINENO" 5 |
|
6006 fi |
|
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6008 |
|
6009 CFLAGS="$_SAVE_CFLAGS $all_flags" |
|
6010 CXXFLAGS="$CXXFLAGS $all_flags" |
|
6011 ASFLAGS="$ASFLAGS $all_flags" |
|
6012 if test -n "$thumb_flag"; then |
|
6013 LDFLAGS="$LDFLAGS $thumb_flag" |
|
6014 fi |
|
6015 fi |
|
6016 |
|
6017 case "$host" in |
|
6018 *-mingw*|*-msys*) |
|
6019 NSINSTALL=nsinstall |
|
6020 ;; |
|
6021 *-cygwin*|*-mks*) |
|
6022 NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' |
|
6023 if test `echo "${PATH}" | grep -c \;` = 0; then |
|
6024 CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper' |
|
6025 fi |
|
6026 ;; |
|
6027 *-beos*) |
|
6028 HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE" |
|
6029 ;; |
|
6030 *os2*) |
|
6031 ;; |
|
6032 *) |
|
6033 HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" |
|
6034 ;; |
|
6035 esac |
|
6036 |
|
6037 case "$target" in |
|
6038 |
|
6039 *-aix*) |
|
6040 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6041 |
|
6042 $as_echo "#define AIX 1" >>confdefs.h |
|
6043 |
|
6044 $as_echo "#define SYSV 1" >>confdefs.h |
|
6045 |
|
6046 DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib' |
|
6047 |
|
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
6049 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
6050 if ${ac_cv_path_GREP+:} false; then : |
|
6051 $as_echo_n "(cached) " >&6 |
|
6052 else |
|
6053 if test -z "$GREP"; then |
|
6054 ac_path_GREP_found=false |
|
6055 # Loop through the user's path and test for each of PROGNAME-LIST |
|
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
6058 do |
|
6059 IFS=$as_save_IFS |
|
6060 test -z "$as_dir" && as_dir=. |
|
6061 for ac_prog in grep ggrep; do |
|
6062 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6063 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
6064 as_fn_executable_p "$ac_path_GREP" || continue |
|
6065 # Check for GNU ac_path_GREP and select it if it is found. |
|
6066 # Check for GNU $ac_path_GREP |
|
6067 case `"$ac_path_GREP" --version 2>&1` in |
|
6068 *GNU*) |
|
6069 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
6070 *) |
|
6071 ac_count=0 |
|
6072 $as_echo_n 0123456789 >"conftest.in" |
|
6073 while : |
|
6074 do |
|
6075 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
6076 mv "conftest.tmp" "conftest.in" |
|
6077 cp "conftest.in" "conftest.nl" |
|
6078 $as_echo 'GREP' >> "conftest.nl" |
|
6079 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
6080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
6081 as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
6082 if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
6083 # Best one so far, save it but keep looking for a better one |
|
6084 ac_cv_path_GREP="$ac_path_GREP" |
|
6085 ac_path_GREP_max=$ac_count |
|
6086 fi |
|
6087 # 10*(2^10) chars as input seems more than enough |
|
6088 test $ac_count -gt 10 && break |
|
6089 done |
|
6090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
6091 esac |
|
6092 |
|
6093 $ac_path_GREP_found && break 3 |
|
6094 done |
|
6095 done |
|
6096 done |
|
6097 IFS=$as_save_IFS |
|
6098 if test -z "$ac_cv_path_GREP"; then |
|
6099 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
6100 fi |
|
6101 else |
|
6102 ac_cv_path_GREP=$GREP |
|
6103 fi |
|
6104 |
|
6105 fi |
|
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
6107 $as_echo "$ac_cv_path_GREP" >&6; } |
|
6108 GREP="$ac_cv_path_GREP" |
|
6109 |
|
6110 |
|
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
6112 $as_echo_n "checking for egrep... " >&6; } |
|
6113 if ${ac_cv_path_EGREP+:} false; then : |
|
6114 $as_echo_n "(cached) " >&6 |
|
6115 else |
|
6116 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
6117 then ac_cv_path_EGREP="$GREP -E" |
|
6118 else |
|
6119 if test -z "$EGREP"; then |
|
6120 ac_path_EGREP_found=false |
|
6121 # Loop through the user's path and test for each of PROGNAME-LIST |
|
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
6124 do |
|
6125 IFS=$as_save_IFS |
|
6126 test -z "$as_dir" && as_dir=. |
|
6127 for ac_prog in egrep; do |
|
6128 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
6130 as_fn_executable_p "$ac_path_EGREP" || continue |
|
6131 # Check for GNU ac_path_EGREP and select it if it is found. |
|
6132 # Check for GNU $ac_path_EGREP |
|
6133 case `"$ac_path_EGREP" --version 2>&1` in |
|
6134 *GNU*) |
|
6135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
6136 *) |
|
6137 ac_count=0 |
|
6138 $as_echo_n 0123456789 >"conftest.in" |
|
6139 while : |
|
6140 do |
|
6141 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
6142 mv "conftest.tmp" "conftest.in" |
|
6143 cp "conftest.in" "conftest.nl" |
|
6144 $as_echo 'EGREP' >> "conftest.nl" |
|
6145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
6146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
6147 as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
6148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
6149 # Best one so far, save it but keep looking for a better one |
|
6150 ac_cv_path_EGREP="$ac_path_EGREP" |
|
6151 ac_path_EGREP_max=$ac_count |
|
6152 fi |
|
6153 # 10*(2^10) chars as input seems more than enough |
|
6154 test $ac_count -gt 10 && break |
|
6155 done |
|
6156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
6157 esac |
|
6158 |
|
6159 $ac_path_EGREP_found && break 3 |
|
6160 done |
|
6161 done |
|
6162 done |
|
6163 IFS=$as_save_IFS |
|
6164 if test -z "$ac_cv_path_EGREP"; then |
|
6165 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
6166 fi |
|
6167 else |
|
6168 ac_cv_path_EGREP=$EGREP |
|
6169 fi |
|
6170 |
|
6171 fi |
|
6172 fi |
|
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
6174 $as_echo "$ac_cv_path_EGREP" >&6; } |
|
6175 EGREP="$ac_cv_path_EGREP" |
|
6176 |
|
6177 |
|
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
6179 $as_echo_n "checking for ANSI C header files... " >&6; } |
|
6180 if ${ac_cv_header_stdc+:} false; then : |
|
6181 $as_echo_n "(cached) " >&6 |
|
6182 else |
|
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6184 /* end confdefs.h. */ |
|
6185 #include <stdlib.h> |
|
6186 #include <stdarg.h> |
|
6187 #include <string.h> |
|
6188 #include <float.h> |
|
6189 |
|
6190 int |
|
6191 main () |
|
6192 { |
|
6193 |
|
6194 ; |
|
6195 return 0; |
|
6196 } |
|
6197 _ACEOF |
|
6198 if ac_fn_c_try_compile "$LINENO"; then : |
|
6199 ac_cv_header_stdc=yes |
|
6200 else |
|
6201 ac_cv_header_stdc=no |
|
6202 fi |
|
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6204 |
|
6205 if test $ac_cv_header_stdc = yes; then |
|
6206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6208 /* end confdefs.h. */ |
|
6209 #include <string.h> |
|
6210 |
|
6211 _ACEOF |
|
6212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
6213 $EGREP "memchr" >/dev/null 2>&1; then : |
|
6214 |
|
6215 else |
|
6216 ac_cv_header_stdc=no |
|
6217 fi |
|
6218 rm -f conftest* |
|
6219 |
|
6220 fi |
|
6221 |
|
6222 if test $ac_cv_header_stdc = yes; then |
|
6223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6225 /* end confdefs.h. */ |
|
6226 #include <stdlib.h> |
|
6227 |
|
6228 _ACEOF |
|
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
6230 $EGREP "free" >/dev/null 2>&1; then : |
|
6231 |
|
6232 else |
|
6233 ac_cv_header_stdc=no |
|
6234 fi |
|
6235 rm -f conftest* |
|
6236 |
|
6237 fi |
|
6238 |
|
6239 if test $ac_cv_header_stdc = yes; then |
|
6240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
6241 if test "$cross_compiling" = yes; then : |
|
6242 : |
|
6243 else |
|
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6245 /* end confdefs.h. */ |
|
6246 #include <ctype.h> |
|
6247 #include <stdlib.h> |
|
6248 #if ((' ' & 0x0FF) == 0x020) |
|
6249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
6250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
6251 #else |
|
6252 # define ISLOWER(c) \ |
|
6253 (('a' <= (c) && (c) <= 'i') \ |
|
6254 || ('j' <= (c) && (c) <= 'r') \ |
|
6255 || ('s' <= (c) && (c) <= 'z')) |
|
6256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
6257 #endif |
|
6258 |
|
6259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
6260 int |
|
6261 main () |
|
6262 { |
|
6263 int i; |
|
6264 for (i = 0; i < 256; i++) |
|
6265 if (XOR (islower (i), ISLOWER (i)) |
|
6266 || toupper (i) != TOUPPER (i)) |
|
6267 return 2; |
|
6268 return 0; |
|
6269 } |
|
6270 _ACEOF |
|
6271 if ac_fn_c_try_run "$LINENO"; then : |
|
6272 |
|
6273 else |
|
6274 ac_cv_header_stdc=no |
|
6275 fi |
|
6276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
6277 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
6278 fi |
|
6279 |
|
6280 fi |
|
6281 fi |
|
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
6283 $as_echo "$ac_cv_header_stdc" >&6; } |
|
6284 if test $ac_cv_header_stdc = yes; then |
|
6285 |
|
6286 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
6287 |
|
6288 fi |
|
6289 |
|
6290 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
6291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
6292 inttypes.h stdint.h unistd.h |
|
6293 do : |
|
6294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
6295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
6296 " |
|
6297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
6298 cat >>confdefs.h <<_ACEOF |
|
6299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
6300 _ACEOF |
|
6301 |
|
6302 fi |
|
6303 |
|
6304 done |
|
6305 |
|
6306 |
|
6307 ac_fn_c_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default" |
|
6308 if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then : |
|
6309 $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h |
|
6310 |
|
6311 fi |
|
6312 |
|
6313 |
|
6314 case "${target_os}" in |
|
6315 aix3.2*) |
|
6316 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h |
|
6317 |
|
6318 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
|
6319 |
|
6320 AIX_LINK_OPTS='-bnso -berok' |
|
6321 PR_MD_ASFILES=os_AIX.s |
|
6322 ;; |
|
6323 aix4.1*) |
|
6324 $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
|
6325 |
|
6326 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
|
6327 |
|
6328 $as_echo "#define AIX4_1 1" >>confdefs.h |
|
6329 |
|
6330 MKSHLIB= |
|
6331 DSO_LDOPTS= |
|
6332 AIX_LINK_OPTS='-bnso -berok' |
|
6333 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr' |
|
6334 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr' |
|
6335 ;; |
|
6336 aix4.2*) |
|
6337 $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
|
6338 |
|
6339 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
|
6340 |
|
6341 AIX_LINK_OPTS='-brtl -bnso -berok' |
|
6342 ;; |
|
6343 aix4.3*) |
|
6344 $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
|
6345 |
|
6346 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
|
6347 |
|
6348 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h |
|
6349 |
|
6350 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
|
6351 |
|
6352 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
6353 |
|
6354 USE_IPV6=1 |
|
6355 AIX_LINK_OPTS='-brtl -bnso -berok' |
|
6356 ;; |
|
6357 *) |
|
6358 $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
|
6359 |
|
6360 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
|
6361 |
|
6362 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h |
|
6363 |
|
6364 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
|
6365 |
|
6366 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
6367 |
|
6368 USE_IPV6=1 |
|
6369 AIX_LINK_OPTS='-brtl -bnso -berok' |
|
6370 ;; |
|
6371 esac |
|
6372 CFLAGS="$CFLAGS -qro -qroconst" |
|
6373 AIX_WRAP='$(DIST)/lib/aixwrap.o' |
|
6374 AIX_TMP='./_aix_tmp.o' |
|
6375 if test -n "$USE_64"; then |
|
6376 MDCPUCFG_H=_aix64.cfg |
|
6377 OBJECT_MODE=64 |
|
6378 else |
|
6379 MDCPUCFG_H=_aix32.cfg |
|
6380 fi |
|
6381 PR_MD_CSRCS=aix.c |
|
6382 RESOLVE_LINK_SYMBOLS=1 |
|
6383 ;; |
|
6384 |
|
6385 *-beos*) |
|
6386 $as_echo "#define XP_BEOS 1" >>confdefs.h |
|
6387 |
|
6388 $as_echo "#define BeOS 1" >>confdefs.h |
|
6389 |
|
6390 $as_echo "#define BEOS 1" >>confdefs.h |
|
6391 |
|
6392 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
|
6393 |
|
6394 DSO_LDOPTS=-nostart |
|
6395 MDCPUCFG_H=_beos.cfg |
|
6396 USE_BTHREADS=1 |
|
6397 PR_MD_ARCH_DIR=beos |
|
6398 RESOLVE_LINK_SYMBOLS=1 |
|
6399 case "${target_cpu}" in |
|
6400 i*86) |
|
6401 _OPTIMIZE_FLAGS=-O2 |
|
6402 _DEBUG_FLAGS='-gdwarf-2 -O0' |
|
6403 MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@' |
|
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 |
|
6405 $as_echo_n "checking for gethostbyaddr in -lbind... " >&6; } |
|
6406 if ${ac_cv_lib_bind_gethostbyaddr+:} false; then : |
|
6407 $as_echo_n "(cached) " >&6 |
|
6408 else |
|
6409 ac_check_lib_save_LIBS=$LIBS |
|
6410 LIBS="-lbind $LIBS" |
|
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6412 /* end confdefs.h. */ |
|
6413 |
|
6414 /* Override any GCC internal prototype to avoid an error. |
|
6415 Use char because int might match the return type of a GCC |
|
6416 builtin and then its argument prototype would still apply. */ |
|
6417 #ifdef __cplusplus |
|
6418 extern "C" |
|
6419 #endif |
|
6420 char gethostbyaddr (); |
|
6421 int |
|
6422 main () |
|
6423 { |
|
6424 return gethostbyaddr (); |
|
6425 ; |
|
6426 return 0; |
|
6427 } |
|
6428 _ACEOF |
|
6429 if ac_fn_c_try_link "$LINENO"; then : |
|
6430 ac_cv_lib_bind_gethostbyaddr=yes |
|
6431 else |
|
6432 ac_cv_lib_bind_gethostbyaddr=no |
|
6433 fi |
|
6434 rm -f core conftest.err conftest.$ac_objext \ |
|
6435 conftest$ac_exeext conftest.$ac_ext |
|
6436 LIBS=$ac_check_lib_save_LIBS |
|
6437 fi |
|
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 |
|
6439 $as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; } |
|
6440 if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes; then : |
|
6441 OS_LIBS="$OS_LIBS -lbind -lsocket" |
|
6442 fi |
|
6443 |
|
6444 ;; |
|
6445 powerpc) |
|
6446 CC=mwcc |
|
6447 CCC=mwcc |
|
6448 LD=mwld |
|
6449 DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o' |
|
6450 _OPTIMIZE_FLAGS=-O2 |
|
6451 _DEBUG_FLAGS='-g -O0' |
|
6452 ;; |
|
6453 esac |
|
6454 ;; |
|
6455 |
|
6456 *-bsdi*) |
|
6457 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6458 |
|
6459 $as_echo "#define BSDI 1" >>confdefs.h |
|
6460 |
|
6461 $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h |
|
6462 |
|
6463 |
|
6464 CFLAGS="$CFLAGS -Wall -Wno-format" |
|
6465 CXXFLAGS="$CXXFLAGS -Wall -Wno-format" |
|
6466 |
|
6467 if echo "$OS_TEST" | grep -c 86 >/dev/null; then |
|
6468 CPU_ARCH=x86 |
|
6469 elif echo "$OS_TEST" | grep -c sparc >/dev/null; then |
|
6470 CPU_ARCH=sparc |
|
6471 fi |
|
6472 |
|
6473 MDCPUCFG_H=_bsdi.cfg |
|
6474 PR_MD_CSRCS=bsdi.c |
|
6475 |
|
6476 DSO_LDOPTS=-r |
|
6477 |
|
6478 case "$target_os" in |
|
6479 bsdi1.1*) |
|
6480 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h |
|
6481 |
|
6482 $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h |
|
6483 |
|
6484 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
|
6485 |
|
6486 MKSHLIB= |
|
6487 DSO_CFLAGS= |
|
6488 DSO_LDOPTS= |
|
6489 ;; |
|
6490 |
|
6491 bsdi2.1*) |
|
6492 $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h |
|
6493 |
|
6494 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h |
|
6495 |
|
6496 $as_echo "#define HAVE_DLL 1" >>confdefs.h |
|
6497 |
|
6498 $as_echo "#define USE_DLFCN 1" >>confdefs.h |
|
6499 |
|
6500 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h |
|
6501 |
|
6502 PR_MD_ASFILES=os_BSD_OS_386_2.s |
|
6503 ;; |
|
6504 |
|
6505 bsdi4.* | bsdi5.*) |
|
6506 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h |
|
6507 |
|
6508 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h |
|
6509 |
|
6510 $as_echo "#define HAVE_DLL 1" >>confdefs.h |
|
6511 |
|
6512 $as_echo "#define USE_DLFCN 1" >>confdefs.h |
|
6513 |
|
6514 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h |
|
6515 |
|
6516 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' |
|
6517 DSO_CFLAGS=-fPIC |
|
6518 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)' |
|
6519 STRIP="$STRIP -d" |
|
6520 case "$target_os" in |
|
6521 bsdi4.2* | bsdi4.3* | bsdi5.*) |
|
6522 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h |
|
6523 |
|
6524 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h |
|
6525 |
|
6526 ;; |
|
6527 esac |
|
6528 ;; |
|
6529 *) |
|
6530 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h |
|
6531 |
|
6532 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h |
|
6533 |
|
6534 $as_echo "#define HAVE_DLL 1" >>confdefs.h |
|
6535 |
|
6536 $as_echo "#define USE_DLFCN 1" >>confdefs.h |
|
6537 |
|
6538 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h |
|
6539 |
|
6540 ;; |
|
6541 esac |
|
6542 |
|
6543 ;; |
|
6544 |
|
6545 *-darwin*) |
|
6546 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6547 |
|
6548 $as_echo "#define DARWIN 1" >>confdefs.h |
|
6549 |
|
6550 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
|
6551 |
|
6552 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
|
6553 |
|
6554 AS='$(CC) -x assembler-with-cpp' |
|
6555 CFLAGS="$CFLAGS -Wall -fno-common" |
|
6556 case "${target_cpu}" in |
|
6557 arm*) |
|
6558 CPU_ARCH=arm |
|
6559 ;; |
|
6560 i*86*|x86_64) |
|
6561 if test -n "$USE_64"; then |
|
6562 CPU_ARCH=x86_64 |
|
6563 else |
|
6564 CPU_ARCH=i386 |
|
6565 fi |
|
6566 ;; |
|
6567 *) |
|
6568 CPU_ARCH=ppc |
|
6569 ;; |
|
6570 esac |
|
6571 if test "`echo $CC | grep -c '\-arch '`" = "0"; then |
|
6572 CC="$CC -arch $CPU_ARCH" |
|
6573 fi |
|
6574 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default" |
|
6575 if test "x$ac_cv_header_crt_externs_h" = xyes; then : |
|
6576 |
|
6577 fi |
|
6578 |
|
6579 |
|
6580 DSO_CFLAGS=-fPIC |
|
6581 DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names' |
|
6582 _OPTIMIZE_FLAGS=-O2 |
|
6583 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
|
6584 STRIP="$STRIP -x -S" |
|
6585 DLL_SUFFIX=dylib |
|
6586 USE_PTHREADS=1 |
|
6587 MDCPUCFG_H=_darwin.cfg |
|
6588 PR_MD_CSRCS=darwin.c |
|
6589 PR_MD_ASFILES=os_Darwin.s |
|
6590 |
|
6591 # Add Mac OS X support for loading CFM & CFBundle plugins |
|
6592 if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then |
|
6593 $as_echo "#define XP_MACOSX 1" >>confdefs.h |
|
6594 |
|
6595 OS_TARGET=MacOSX |
|
6596 |
|
6597 if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then |
|
6598 export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET |
|
6599 elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then |
|
6600 case "${target_cpu}" in |
|
6601 powerpc*) |
|
6602 export MACOSX_DEPLOYMENT_TARGET=10.2 |
|
6603 ;; |
|
6604 i*86*) |
|
6605 export MACOSX_DEPLOYMENT_TARGET=10.4 |
|
6606 ;; |
|
6607 esac |
|
6608 fi |
|
6609 |
|
6610 |
|
6611 if test "$MACOS_SDK_DIR"; then |
|
6612 |
|
6613 if test ! -d "$MACOS_SDK_DIR"; then |
|
6614 as_fn_error $? "SDK not found. When using --with-macos-sdk, you must |
|
6615 specify a valid SDK. SDKs are installed when the optional cross-development |
|
6616 tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5 |
|
6617 fi |
|
6618 |
|
6619 |
|
6620 CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` |
|
6621 GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` |
|
6622 GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` |
|
6623 |
|
6624 GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'` |
|
6625 if test "$GCC_VERSION_MAJOR" -lt "4" ; then |
|
6626 SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks" |
|
6627 if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then |
|
6628 SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks" |
|
6629 fi |
|
6630 |
|
6631 SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}" |
|
6632 |
|
6633 CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}" |
|
6634 |
|
6635 CPP="$CPP -nostdinc ${SDK_C_INCLUDE}" |
|
6636 |
|
6637 |
|
6638 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'` |
|
6639 |
|
6640 if test "$HOST_DARWIN_MAJOR" -lt 9 ; then |
|
6641 MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}" |
|
6642 else |
|
6643 MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}" |
|
6644 fi |
|
6645 |
|
6646 LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS" |
|
6647 export NEXT_ROOT=$MACOS_SDK_DIR |
|
6648 |
|
6649 if test -n "$CROSS_COMPILE" ; then |
|
6650 HOST_CC="NEXT_ROOT= $HOST_CC" |
|
6651 HOST_CXX="NEXT_ROOT= $HOST_CXX" |
|
6652 fi |
|
6653 else |
|
6654 CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}" |
|
6655 |
|
6656 CPP="$CPP -isysroot ${MACOS_SDK_DIR}" |
|
6657 |
|
6658 if test "$GCC_VERSION_FULL" != "4.0.0" ; then |
|
6659 LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}" |
|
6660 else |
|
6661 LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}" |
|
6662 fi |
|
6663 fi |
|
6664 fi |
|
6665 fi |
|
6666 ;; |
|
6667 |
|
6668 *-dgux*) |
|
6669 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6670 |
|
6671 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
6672 |
|
6673 $as_echo "#define SVR4 1" >>confdefs.h |
|
6674 |
|
6675 $as_echo "#define SYSV 1" >>confdefs.h |
|
6676 |
|
6677 $as_echo "#define DGUX 1" >>confdefs.h |
|
6678 |
|
6679 $as_echo "#define _DGUX_SOURCE 1" >>confdefs.h |
|
6680 |
|
6681 $as_echo "#define _POSIX4A_DRAFT6_SOURCE 1" >>confdefs.h |
|
6682 |
|
6683 DSO_LDOPTS=-G |
|
6684 _OPTIMIZE_FLAGS=-O2 |
|
6685 _DEBUG_FLAGS= |
|
6686 MDCPUCFG_H=_dgux.cfg |
|
6687 PR_MD_CSRCS=dgux.c |
|
6688 ;; |
|
6689 |
|
6690 *-freebsd*) |
|
6691 if test -z "$USE_NSPR_THREADS"; then |
|
6692 USE_PTHREADS=1 |
|
6693 fi |
|
6694 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6695 |
|
6696 $as_echo "#define FREEBSD 1" >>confdefs.h |
|
6697 |
|
6698 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
|
6699 |
|
6700 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
|
6701 |
|
6702 CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" |
|
6703 MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` |
|
6704 if test "$MOZ_OBJFORMAT" = "elf"; then |
|
6705 DLL_SUFFIX=so |
|
6706 else |
|
6707 DLL_SUFFIX=so.1.0 |
|
6708 fi |
|
6709 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
|
6710 DSO_CFLAGS=-fPIC |
|
6711 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' |
|
6712 MDCPUCFG_H=_freebsd.cfg |
|
6713 PR_MD_CSRCS=freebsd.c |
|
6714 ;; |
|
6715 |
|
6716 *-hpux*) |
|
6717 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6718 |
|
6719 $as_echo "#define HPUX 1" >>confdefs.h |
|
6720 |
|
6721 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h |
|
6722 |
|
6723 # OSF1 and HPUX report the POLLHUP event for a socket when the |
|
6724 # shutdown(SHUT_WR) operation is called for the remote end, even though |
|
6725 # the socket is still writeable. Use select(), instead of poll(), to |
|
6726 # workaround this problem. |
|
6727 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h |
|
6728 |
|
6729 $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h |
|
6730 |
|
6731 DSO_LDOPTS='-b +h $(notdir $@)' |
|
6732 PR_MD_CSRCS=hpux.c |
|
6733 if test "$OS_TEST" = "ia64"; then |
|
6734 DLL_SUFFIX=so |
|
6735 DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'" |
|
6736 CPU_ARCH_TAG=_$OS_TEST |
|
6737 if test -z "$USE_64"; then |
|
6738 COMPILER_TAG=_32 |
|
6739 fi |
|
6740 PR_MD_ASFILES=os_HPUX_ia64.s |
|
6741 else |
|
6742 $as_echo "#define hppa 1" >>confdefs.h |
|
6743 |
|
6744 DLL_SUFFIX=sl |
|
6745 PR_MD_ASFILES=os_HPUX.s |
|
6746 fi |
|
6747 if test -n "$USE_64"; then |
|
6748 MDCPUCFG_H=_hpux64.cfg |
|
6749 else |
|
6750 MDCPUCFG_H=_hpux32.cfg |
|
6751 fi |
|
6752 if test -z "$GNU_CC"; then |
|
6753 CC="$CC -Ae" |
|
6754 CXX="$CXX -ext" |
|
6755 DSO_CFLAGS=+Z |
|
6756 else |
|
6757 DSO_CFLAGS=-fPIC |
|
6758 ASFLAGS="$ASFLAGS -x assembler-with-cpp" |
|
6759 fi |
|
6760 |
|
6761 if test -n "$MOZILLA_CLIENT"; then |
|
6762 DEFAULT_IMPL_STRATEGY=_EMU |
|
6763 fi |
|
6764 |
|
6765 if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then |
|
6766 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
|
6767 |
|
6768 $as_echo "#define HPUX9 1" >>confdefs.h |
|
6769 |
|
6770 DEFAULT_IMPL_STRATEGY=_EMU |
|
6771 USE_NSPR_THREADS=1 |
|
6772 fi |
|
6773 |
|
6774 if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then |
|
6775 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
|
6776 |
|
6777 fi |
|
6778 |
|
6779 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then |
|
6780 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
|
6781 |
|
6782 fi |
|
6783 |
|
6784 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then |
|
6785 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h |
|
6786 |
|
6787 fi |
|
6788 |
|
6789 if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then |
|
6790 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
|
6791 |
|
6792 fi |
|
6793 |
|
6794 # HP-UX 11i v2 (B.11.23) or higher |
|
6795 |
|
6796 case "$OS_RELEASE" in |
|
6797 [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*) |
|
6798 USE_IPV6=1 |
|
6799 ;; |
|
6800 esac |
|
6801 |
|
6802 |
|
6803 if test "$OS_RELEASE" = "B.10.01"; then |
|
6804 $as_echo "#define HPUX10 1" >>confdefs.h |
|
6805 |
|
6806 DEFAULT_IMPL_STRATEGY=_EMU |
|
6807 fi |
|
6808 |
|
6809 if test "$OS_RELEASE" = "B.10.10"; then |
|
6810 $as_echo "#define HPUX10 1" >>confdefs.h |
|
6811 |
|
6812 $as_echo "#define HPUX10_10 1" >>confdefs.h |
|
6813 |
|
6814 DEFAULT_IMPL_STRATEGY=_PTH |
|
6815 fi |
|
6816 |
|
6817 if test "$OS_RELEASE" = "B.10.20"; then |
|
6818 $as_echo "#define HPUX10 1" >>confdefs.h |
|
6819 |
|
6820 $as_echo "#define HPUX10_20 1" >>confdefs.h |
|
6821 |
|
6822 if test -z "$GNU_CC"; then |
|
6823 CFLAGS="$CFLAGS +DAportable +DS1.1" |
|
6824 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" |
|
6825 fi |
|
6826 DEFAULT_IMPL_STRATEGY=_PTH |
|
6827 fi |
|
6828 |
|
6829 if test "$OS_RELEASE" = "B.10.30"; then |
|
6830 $as_echo "#define HPUX10 1" >>confdefs.h |
|
6831 |
|
6832 $as_echo "#define HPUX10_30 1" >>confdefs.h |
|
6833 |
|
6834 if test -z "$GNU_CC"; then |
|
6835 CFLAGS="$CFLAGS +DAportable +DS1.1" |
|
6836 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" |
|
6837 fi |
|
6838 DEFAULT_IMPL_STRATEGY=_PTH |
|
6839 fi |
|
6840 |
|
6841 if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then |
|
6842 $as_echo "#define HPUX10 1" >>confdefs.h |
|
6843 |
|
6844 $as_echo "#define HPUX11 1" >>confdefs.h |
|
6845 |
|
6846 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
|
6847 |
|
6848 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
|
6849 |
|
6850 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
6851 |
|
6852 if test -z "$GNU_CC"; then |
|
6853 if test -z "$USE_64"; then |
|
6854 if test "$OS_TEST" = "ia64"; then |
|
6855 CFLAGS="$CFLAGS +DD32" |
|
6856 CXXFLAGS="$CXXFLAGS +DD32" |
|
6857 else |
|
6858 CFLAGS="$CFLAGS +DAportable +DS2.0" |
|
6859 CXXFLAGS="$CXXFLAGS +DAportable +DS2.0" |
|
6860 fi |
|
6861 else |
|
6862 if test "$OS_TEST" = "ia64"; then |
|
6863 CFLAGS="$CFLAGS +DD64" |
|
6864 CXXFLAGS="$CXXFLAGS +DD64" |
|
6865 else |
|
6866 CFLAGS="$CFLAGS +DA2.0W +DS2.0" |
|
6867 CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0" |
|
6868 fi |
|
6869 fi |
|
6870 fi |
|
6871 DEFAULT_IMPL_STRATEGY=_PTH |
|
6872 fi |
|
6873 |
|
6874 if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then |
|
6875 USE_NSPR_THREADS=1 |
|
6876 USE_PTHREADS= |
|
6877 USE_USER_PTHREADS= |
|
6878 elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then |
|
6879 USE_PTHREADS=1 |
|
6880 if test "$USE_NSPR_THREADS"; then |
|
6881 USE_PTHREADS= |
|
6882 fi |
|
6883 if test "$USE_USER_PTHREADS"; then |
|
6884 USE_PTHREADS= |
|
6885 fi |
|
6886 fi |
|
6887 ;; |
|
6888 |
|
6889 *-irix*) |
|
6890 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6891 |
|
6892 $as_echo "#define IRIX 1" >>confdefs.h |
|
6893 |
|
6894 $as_echo "#define SVR4 1" >>confdefs.h |
|
6895 |
|
6896 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h |
|
6897 |
|
6898 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
6899 |
|
6900 PR_MD_CSRCS=irix.c |
|
6901 PR_MD_ASFILES=os_Irix.s |
|
6902 MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@' |
|
6903 STRIP="$STRIP -f" |
|
6904 RESOLVE_LINK_SYMBOLS=1 |
|
6905 if test -n "$USE_64"; then |
|
6906 MDCPUCFG_H=_irix64.cfg |
|
6907 else |
|
6908 MDCPUCFG_H=_irix32.cfg |
|
6909 fi |
|
6910 case "${target_os}" in |
|
6911 irix6*) |
|
6912 $as_echo "#define IRIX6 1" >>confdefs.h |
|
6913 |
|
6914 USE_PTHREADS=1 |
|
6915 USE_N32=1 |
|
6916 COMPILER_TAG=_n32 |
|
6917 IMPL_STRATEGY=_PTH |
|
6918 ;; |
|
6919 irix5*) |
|
6920 $as_echo "#define IRIX5 1" >>confdefs.h |
|
6921 |
|
6922 USE_NSPR_THREADS=1 |
|
6923 ;; |
|
6924 *) |
|
6925 USE_PTHREADS=1 |
|
6926 USE_N32=1 |
|
6927 ;; |
|
6928 esac |
|
6929 if test "$GNU_CC"; then |
|
6930 AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)' |
|
6931 CFLAGS="$CFLAGS -Wall -Wno-format" |
|
6932 _OPTIMIZE_FLAGS="-O6" |
|
6933 else |
|
6934 if test -n "$USE_N32"; then |
|
6935 AS='as -D_ASM $(INCLUDES) -n32' |
|
6936 else |
|
6937 AS='as -D_ASM $(INCLUDES)' |
|
6938 fi |
|
6939 CFLAGS="$CFLAGS -fullwarn -xansi" |
|
6940 if test "$USE_N32"; then |
|
6941 _OPTIMIZE_FLAGS="-O -OPT:Olimit=4000" |
|
6942 else |
|
6943 _OPTIMIZE_FLAGS="-O -Olimit 4000" |
|
6944 fi |
|
6945 if test "$USE_MDUPDATE"; then |
|
6946 CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" |
|
6947 fi |
|
6948 case "${target}" in |
|
6949 *-irix6.*) |
|
6950 CFLAGS="$CFLAGS -multigot" |
|
6951 DSO_LDOPTS="-no_unresolved" |
|
6952 if test "$USE_N32"; then |
|
6953 CFLAGS="$CFLAGS -n32 -woff 1209" |
|
6954 DSO_LDOPTS="$DSO_LDOPTS -n32" |
|
6955 else |
|
6956 if test "$USE_64"; then |
|
6957 CFLAGS="$CFLAGS -64" |
|
6958 else |
|
6959 CFLAGS="$CFLAGS -32" |
|
6960 fi |
|
6961 fi |
|
6962 ;; |
|
6963 *) |
|
6964 CFLAGS="$CFLAGS -xgot" |
|
6965 ;; |
|
6966 esac |
|
6967 fi |
|
6968 if test "${target_os}" = "irix5.3"; then |
|
6969 $as_echo "#define IRIX5_3 1" >>confdefs.h |
|
6970 |
|
6971 fi |
|
6972 case "${target_os}" in |
|
6973 irix6.5) |
|
6974 if test -z "$GNU_CC"; then |
|
6975 CFLAGS="$CFLAGS -mips3" |
|
6976 fi |
|
6977 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h |
|
6978 |
|
6979 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h |
|
6980 |
|
6981 $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h |
|
6982 |
|
6983 ;; |
|
6984 irix5*) |
|
6985 ;; |
|
6986 *) |
|
6987 $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h |
|
6988 |
|
6989 ;; |
|
6990 esac |
|
6991 ;; |
|
6992 |
|
6993 *-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*) |
|
6994 if test -z "$USE_NSPR_THREADS"; then |
|
6995 USE_PTHREADS=1 |
|
6996 IMPL_STRATEGY=_PTH |
|
6997 fi |
|
6998 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
6999 |
|
7000 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
|
7001 |
|
7002 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
7003 |
|
7004 case "${target}" in |
|
7005 *-android*|*-linuxandroid*) |
|
7006 OS_TARGET=Android |
|
7007 $as_echo "#define LINUX 1" >>confdefs.h |
|
7008 |
|
7009 ;; |
|
7010 *-linux*) |
|
7011 $as_echo "#define LINUX 1" >>confdefs.h |
|
7012 |
|
7013 ;; |
|
7014 esac |
|
7015 CFLAGS="$CFLAGS -Wall" |
|
7016 CXXFLAGS="$CXXFLAGS -Wall" |
|
7017 MDCPUCFG_H=_linux.cfg |
|
7018 PR_MD_CSRCS=linux.c |
|
7019 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
|
7020 DSO_CFLAGS=-fPIC |
|
7021 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' |
|
7022 _OPTIMIZE_FLAGS=-O2 |
|
7023 _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that |
|
7024 # combo is not yet good at debugging inlined |
|
7025 # functions (even when using DWARF2 as the |
|
7026 # debugging format) |
|
7027 COMPILER_TAG=_glibc |
|
7028 if echo "$OS_TEST" | grep -c 86 >/dev/null; then |
|
7029 CPU_ARCH=x86 |
|
7030 else |
|
7031 CPU_ARCH=$OS_TEST |
|
7032 fi |
|
7033 CPU_ARCH_TAG=_${CPU_ARCH} |
|
7034 case "${target_cpu}" in |
|
7035 alpha) |
|
7036 $as_echo "#define _ALPHA_ 1" >>confdefs.h |
|
7037 |
|
7038 $as_echo "#define __alpha 1" >>confdefs.h |
|
7039 |
|
7040 CFLAGS="$CFLAGS -mieee" |
|
7041 CXXFLAGS="$CXXFLAGS -mieee" |
|
7042 ;; |
|
7043 i*86) |
|
7044 $as_echo "#define i386 1" >>confdefs.h |
|
7045 |
|
7046 PR_MD_ASFILES=os_Linux_x86.s |
|
7047 ;; |
|
7048 ia64) |
|
7049 PR_MD_ASFILES=os_Linux_ia64.s |
|
7050 ;; |
|
7051 x86_64) |
|
7052 if test -n "$USE_64"; then |
|
7053 PR_MD_ASFILES=os_Linux_x86_64.s |
|
7054 elif test -n "$USE_X32"; then |
|
7055 PR_MD_ASFILES=os_Linux_x86_64.s |
|
7056 CC="$CC -mx32" |
|
7057 CXX="$CXX -mx32" |
|
7058 else |
|
7059 $as_echo "#define i386 1" >>confdefs.h |
|
7060 |
|
7061 PR_MD_ASFILES=os_Linux_x86.s |
|
7062 CC="$CC -m32" |
|
7063 CXX="$CXX -m32" |
|
7064 fi |
|
7065 ;; |
|
7066 ppc|powerpc) |
|
7067 PR_MD_ASFILES=os_Linux_ppc.s |
|
7068 ;; |
|
7069 powerpc64) |
|
7070 if test -n "$USE_64"; then |
|
7071 CC="$CC -m64" |
|
7072 CXX="$CXX -m64" |
|
7073 else |
|
7074 PR_MD_ASFILES=os_Linux_ppc.s |
|
7075 fi |
|
7076 ;; |
|
7077 m68k) |
|
7078 CFLAGS="$CFLAGS -m68020-60" |
|
7079 CXXFLAGS="$CXXFLAGS -m68020-60" |
|
7080 ;; |
|
7081 esac |
|
7082 ;; |
|
7083 |
|
7084 *-mingw*|*-msys*|*-cygwin*|*-mks*) |
|
7085 $as_echo "#define XP_PC 1" >>confdefs.h |
|
7086 |
|
7087 $as_echo "#define WIN32 1" >>confdefs.h |
|
7088 |
|
7089 PR_MD_ARCH_DIR=windows |
|
7090 RESOLVE_LINK_SYMBOLS=1 |
|
7091 |
|
7092 if test -n "$GNU_CC"; then |
|
7093 CC="$CC -mwindows" |
|
7094 CXX="$CXX -mwindows" |
|
7095 DLL_SUFFIX=dll |
|
7096 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))' |
|
7097 RC=$WINDRES |
|
7098 # Use temp file for windres (bug 213281) |
|
7099 RCFLAGS='-O coff --use-temp-file' |
|
7100 else |
|
7101 CC=cl |
|
7102 CXX=cl |
|
7103 LD=link |
|
7104 AR='lib -NOLOGO -OUT:"$@"' |
|
7105 AR_FLAGS= |
|
7106 RANLIB='echo not_ranlib' |
|
7107 STRIP='echo not_strip' |
|
7108 RC=rc.exe |
|
7109 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' |
|
7110 OBJ_SUFFIX=obj |
|
7111 LIB_SUFFIX=lib |
|
7112 DLL_SUFFIX=dll |
|
7113 |
|
7114 # Determine compiler version |
|
7115 |
|
7116 _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p' |
|
7117 |
|
7118 CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"` |
|
7119 _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'` |
|
7120 _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'` |
|
7121 _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'` |
|
7122 _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'` |
|
7123 MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} |
|
7124 |
|
7125 if test "$_CC_MAJOR_VERSION" -eq "14"; then |
|
7126 if test $_CC_RELEASE -gt 50727; then |
|
7127 _USE_DYNAMICBASE=1 |
|
7128 elif test $_CC_BUILD -ge 762; then |
|
7129 _USE_DYNAMICBASE=1 |
|
7130 fi |
|
7131 $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h |
|
7132 |
|
7133 $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h |
|
7134 |
|
7135 elif test $_CC_MAJOR_VERSION -ge 15; then |
|
7136 _USE_DYNAMICBASE=1 |
|
7137 $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h |
|
7138 |
|
7139 $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h |
|
7140 |
|
7141 fi |
|
7142 |
|
7143 if test -n "$_USE_DYNAMICBASE"; then |
|
7144 DLLFLAGS="$DLLFLAGS -DYNAMICBASE" |
|
7145 fi |
|
7146 |
|
7147 # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic |
|
7148 # tape manipulation utility (or something else) |
|
7149 if test "$MSC_VER" -ge "1400"; then |
|
7150 |
|
7151 _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' |
|
7152 |
|
7153 |
|
7154 MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'` |
|
7155 if test -n "$MSMT_TOOL"; then |
|
7156 MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"` |
|
7157 if test -z "$MSMANIFEST_TOOL_VERSION"; then |
|
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5 |
|
7159 $as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;} |
|
7160 fi |
|
7161 MT=mt |
|
7162 unset MSMT_TOOL |
|
7163 else |
|
7164 as_fn_error $? "Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5 |
|
7165 fi |
|
7166 fi |
|
7167 |
|
7168 CFLAGS="$CFLAGS -W3 -nologo -GF -Gy" |
|
7169 DLLFLAGS="$DLLFLAGS -OUT:\"\$@\"" |
|
7170 _DEBUG_FLAGS=-Zi |
|
7171 _OPTIMIZE_FLAGS=-O2 |
|
7172 |
|
7173 PROFILE_GEN_CFLAGS="-GL" |
|
7174 PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT" |
|
7175 PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952" |
|
7176 PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" |
|
7177 |
|
7178 if test "$MSC_VER" -ge "1800"; then |
|
7179 CFLAGS="$CFLAGS -FS" |
|
7180 PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw" |
|
7181 PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw" |
|
7182 fi |
|
7183 |
|
7184 if test -z "$MOZ_OPTIMIZE"; then |
|
7185 CFLAGS="$CFLAGS -Od" |
|
7186 fi |
|
7187 |
|
7188 if test "$USE_DEBUG_RTL" = 1; then |
|
7189 CFLAGS="$CFLAGS -MDd" |
|
7190 else |
|
7191 CFLAGS="$CFLAGS -MD" |
|
7192 fi |
|
7193 |
|
7194 if test -n "$MOZ_DEBUG"; then |
|
7195 $as_echo "#define _DEBUG 1" >>confdefs.h |
|
7196 |
|
7197 else |
|
7198 DEFINES="$DEFINES -U_DEBUG" |
|
7199 fi |
|
7200 |
|
7201 if test -n "$MOZ_DEBUG_SYMBOLS"; then |
|
7202 if test -n "$MOZ_OPTIMIZE"; then |
|
7203 DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF" |
|
7204 LDFLAGS="$LDFLAGS -DEBUG -OPT:REF" |
|
7205 else |
|
7206 DLLFLAGS="$DLLFLAGS -DEBUG" |
|
7207 LDFLAGS="$LDFLAGS -DEBUG" |
|
7208 fi |
|
7209 fi |
|
7210 |
|
7211 OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS" |
|
7212 if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then |
|
7213 OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE" |
|
7214 fi |
|
7215 |
|
7216 if test "$OS_TARGET" = "WINNT"; then |
|
7217 CFLAGS="$CFLAGS -GT" |
|
7218 LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
|
7219 LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
|
7220 else |
|
7221 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
|
7222 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
|
7223 fi |
|
7224 fi # GNU_CC |
|
7225 |
|
7226 if test -n "$USE_STATIC_TLS"; then |
|
7227 $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h |
|
7228 |
|
7229 fi |
|
7230 |
|
7231 if test "$OS_TARGET" = "WINNT"; then |
|
7232 $as_echo "#define WINNT 1" >>confdefs.h |
|
7233 |
|
7234 else |
|
7235 $as_echo "#define WIN95 1" >>confdefs.h |
|
7236 |
|
7237 # undefine WINNT as some versions of mingw gcc define it by default |
|
7238 DEFINES="$DEFINES -UWINNT" |
|
7239 $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h |
|
7240 |
|
7241 fi |
|
7242 |
|
7243 if test "$CPU_ARCH" = "x86"; then |
|
7244 CPU_ARCH_TAG= |
|
7245 else |
|
7246 CPU_ARCH_TAG=$CPU_ARCH |
|
7247 fi |
|
7248 |
|
7249 if test "$USE_DEBUG_RTL" = 1; then |
|
7250 OBJDIR_SUFFIX=OBJD |
|
7251 fi |
|
7252 |
|
7253 case "$OS_TARGET" in |
|
7254 WINNT) |
|
7255 MDCPUCFG_H=_winnt.cfg |
|
7256 ;; |
|
7257 WIN95) |
|
7258 MDCPUCFG_H=_win95.cfg |
|
7259 ;; |
|
7260 *) |
|
7261 as_fn_error $? "Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5 |
|
7262 ;; |
|
7263 esac |
|
7264 |
|
7265 case "$target_cpu" in |
|
7266 i*86) |
|
7267 if test -n "$USE_64"; then |
|
7268 $as_echo "#define _AMD64_ 1" >>confdefs.h |
|
7269 |
|
7270 else |
|
7271 $as_echo "#define _X86_ 1" >>confdefs.h |
|
7272 |
|
7273 fi |
|
7274 ;; |
|
7275 x86_64) |
|
7276 $as_echo "#define _AMD64_ 1" >>confdefs.h |
|
7277 |
|
7278 USE_64=1 |
|
7279 ;; |
|
7280 ia64) |
|
7281 $as_echo "#define _IA64_ 1" >>confdefs.h |
|
7282 |
|
7283 USE_64=1 |
|
7284 ;; |
|
7285 *) |
|
7286 $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h |
|
7287 |
|
7288 ;; |
|
7289 esac |
|
7290 ;; |
|
7291 |
|
7292 *-netbsd*) |
|
7293 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7294 |
|
7295 $as_echo "#define NETBSD 1" >>confdefs.h |
|
7296 |
|
7297 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
|
7298 |
|
7299 if test -z "$USE_NSPR_THREADS"; then |
|
7300 USE_PTHREADS=1 |
|
7301 fi |
|
7302 MDCPUCFG_H=_netbsd.cfg |
|
7303 PR_MD_CSRCS=netbsd.c |
|
7304 |
|
7305 DSO_CFLAGS='-fPIC -DPIC' |
|
7306 CFLAGS="$CFLAGS -ansi -Wall" |
|
7307 CXXFLAGS="$CXXFLAGS -ansi -Wall" |
|
7308 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' |
|
7309 |
|
7310 if test -z "$OBJECT_FMT"; then |
|
7311 if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then |
|
7312 OBJECT_FMT=a.out |
|
7313 DLL_SUFFIX=so.1.0 |
|
7314 DSO_LDOPTS='-shared' |
|
7315 else |
|
7316 OBJECT_FMT=ELF |
|
7317 DLL_SUFFIX=so |
|
7318 DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' |
|
7319 fi |
|
7320 fi |
|
7321 |
|
7322 if test "$LIBRUNPATH"; then |
|
7323 DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" |
|
7324 fi |
|
7325 ;; |
|
7326 |
|
7327 *-nto*) |
|
7328 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7329 |
|
7330 $as_echo "#define NTO 1" >>confdefs.h |
|
7331 |
|
7332 $as_echo "#define _QNX_SOURCE 1" >>confdefs.h |
|
7333 |
|
7334 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
|
7335 |
|
7336 MDCPUCFG_H=_nto.cfg |
|
7337 PR_MD_CSRCS=nto.c |
|
7338 MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@' |
|
7339 DSO_CFLAGS=-fPIC |
|
7340 DSO_LDOPTS=-shared |
|
7341 OS_LIBS="$OS_LIBS -lsocket" |
|
7342 _OPTIMIZE_FLAGS="-O1" |
|
7343 _DEBUG_FLAGS="-gstabs" |
|
7344 ;; |
|
7345 |
|
7346 *-openbsd*) |
|
7347 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7348 |
|
7349 $as_echo "#define OPENBSD 1" >>confdefs.h |
|
7350 |
|
7351 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
|
7352 |
|
7353 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
|
7354 |
|
7355 CFLAGS="$CFLAGS -ansi -Wall" |
|
7356 CXXFLAGS="$CXXFLAGS -ansi -Wall" |
|
7357 DLL_SUFFIX=so.1.0 |
|
7358 DSO_CFLAGS=-fPIC |
|
7359 MDCPUCFG_H=_openbsd.cfg |
|
7360 PR_MD_CSRCS=openbsd.c |
|
7361 OS_LIBS="-lc" |
|
7362 if test -z "$USE_NSPR_THREADS"; then |
|
7363 USE_PTHREADS=1 |
|
7364 fi |
|
7365 DSO_LDOPTS='-shared -fPIC' |
|
7366 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
|
7367 ;; |
|
7368 |
|
7369 *-osf*) |
|
7370 SHELL_OVERRIDE="SHELL = /usr/bin/ksh" |
|
7371 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7372 |
|
7373 $as_echo "#define OSF1 1" >>confdefs.h |
|
7374 |
|
7375 $as_echo "#define _REENTRANT 1" >>confdefs.h |
|
7376 |
|
7377 # OSF1 and HPUX report the POLLHUP event for a socket when the |
|
7378 # shutdown(SHUT_WR) operation is called for the remote end, even though |
|
7379 # the socket is still writeable. Use select(), instead of poll(), to |
|
7380 # workaround this problem. |
|
7381 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h |
|
7382 |
|
7383 |
|
7384 if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then |
|
7385 USE_NSPR_THREADS=1 |
|
7386 fi |
|
7387 |
|
7388 if test -z "$GNU_CC"; then |
|
7389 CC="$CC -std1 -ieee_with_inexact" |
|
7390 if test "$OS_RELEASE" != "V2.0"; then |
|
7391 CC="$CC -readonly_strings" |
|
7392 fi |
|
7393 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000" |
|
7394 ac_fn_c_check_header_mongrel "$LINENO" "machine/builtins.h" "ac_cv_header_machine_builtins_h" "$ac_includes_default" |
|
7395 if test "x$ac_cv_header_machine_builtins_h" = xyes; then : |
|
7396 $as_echo "#define OSF1_HAVE_MACHINE_BUILTINS_H 1" >>confdefs.h |
|
7397 |
|
7398 fi |
|
7399 |
|
7400 |
|
7401 else |
|
7402 CFLAGS="$CFLAGS -mieee" |
|
7403 CXXFLAGS="$CXXFLAGS -mieee" |
|
7404 fi |
|
7405 |
|
7406 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then |
|
7407 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h |
|
7408 |
|
7409 else |
|
7410 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
7411 |
|
7412 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
|
7413 |
|
7414 fi |
|
7415 if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then |
|
7416 $as_echo "#define OSF1V4_MAP_PRIVATE_BUG 1" >>confdefs.h |
|
7417 |
|
7418 fi |
|
7419 DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)' |
|
7420 MDCPUCFG_H=_osf1.cfg |
|
7421 PR_MD_CSRCS=osf1.c |
|
7422 ;; |
|
7423 |
|
7424 *-qnx*) |
|
7425 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7426 |
|
7427 $as_echo "#define QNX 1" >>confdefs.h |
|
7428 |
|
7429 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
|
7430 |
|
7431 USE_NSPR_THREADS=1 |
|
7432 MDCPUCFG_H=_qnx.cfg |
|
7433 PR_MD_CSRCS=qnx.c |
|
7434 ;; |
|
7435 |
|
7436 *-riscos*) |
|
7437 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7438 |
|
7439 $as_echo "#define RISCOS 1" >>confdefs.h |
|
7440 |
|
7441 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
|
7442 |
|
7443 USE_PTHREADS=1 |
|
7444 MDCPUCFG_H=_riscos.cfg |
|
7445 PR_MD_CSRCS=riscos.c |
|
7446 DSO_CFLAGS=-fPIC |
|
7447 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' |
|
7448 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
|
7449 ;; |
|
7450 |
|
7451 *-*-sco*) |
|
7452 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7453 |
|
7454 $as_echo "#define SCO 1" >>confdefs.h |
|
7455 |
|
7456 $as_echo "#define sco 1" >>confdefs.h |
|
7457 |
|
7458 $as_echo "#define SYSV 1" >>confdefs.h |
|
7459 |
|
7460 $as_echo "#define _SVID3 1" >>confdefs.h |
|
7461 |
|
7462 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
|
7463 |
|
7464 CC='cc -b elf -KPIC' |
|
7465 CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w' |
|
7466 USE_NSPR_THREADS=1 |
|
7467 CPU_ARCH=x86 |
|
7468 DSO_LDOPTS='-b elf -G' |
|
7469 MDCPUCFG_H=_scoos.cfg |
|
7470 PR_MD_SRCS=scoos.c |
|
7471 ;; |
|
7472 |
|
7473 *-solaris*) |
|
7474 if test -z "$USE_NSPR_THREADS"; then |
|
7475 USE_PTHREADS=1 |
|
7476 fi |
|
7477 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7478 |
|
7479 $as_echo "#define SVR4 1" >>confdefs.h |
|
7480 |
|
7481 $as_echo "#define SYSV 1" >>confdefs.h |
|
7482 |
|
7483 $as_echo "#define __svr4 1" >>confdefs.h |
|
7484 |
|
7485 $as_echo "#define __svr4__ 1" >>confdefs.h |
|
7486 |
|
7487 $as_echo "#define SOLARIS 1" >>confdefs.h |
|
7488 |
|
7489 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
7490 |
|
7491 CPU_ARCH=`uname -p` |
|
7492 MDCPUCFG_H=_solaris.cfg |
|
7493 PR_MD_CSRCS=solaris.c |
|
7494 LD=/usr/ccs/bin/ld |
|
7495 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
|
7496 RESOLVE_LINK_SYMBOLS=1 |
|
7497 case "${OS_RELEASE}" in |
|
7498 5.8|5.9) |
|
7499 ;; |
|
7500 *) |
|
7501 # It is safe to use the -Bdirect linker flag on Solaris 10 or later. |
|
7502 USE_B_DIRECT=1 |
|
7503 ;; |
|
7504 esac |
|
7505 if test -n "$GNU_CC"; then |
|
7506 DSO_CFLAGS=-fPIC |
|
7507 if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then |
|
7508 GCC_USE_GNU_LD=1 |
|
7509 fi |
|
7510 DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore' |
|
7511 if test -n "$USE_B_DIRECT"; then |
|
7512 DSO_LDOPTS="$DSO_LDOPTS,-Bdirect" |
|
7513 fi |
|
7514 else |
|
7515 DSO_CFLAGS=-KPIC |
|
7516 DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore' |
|
7517 if test -n "$USE_B_DIRECT"; then |
|
7518 DSO_LDOPTS="$DSO_LDOPTS -Bdirect" |
|
7519 fi |
|
7520 fi |
|
7521 if test -n "$GNU_CC"; then |
|
7522 CFLAGS="$CFLAGS -Wall" |
|
7523 CXXFLAGS="$CXXFLAGS -Wall" |
|
7524 if test -n "$USE_MDUPDATE"; then |
|
7525 CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" |
|
7526 CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" |
|
7527 fi |
|
7528 GCC_AS=`$CC -print-prog-name=as` |
|
7529 if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then |
|
7530 GNU_AS=1 |
|
7531 fi |
|
7532 else |
|
7533 CFLAGS="$CFLAGS -xstrconst" |
|
7534 CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife" |
|
7535 if test -z "$MOZ_OPTIMIZE"; then |
|
7536 CFLAGS="$CFLAGS -xs" |
|
7537 CXXFLAGS="$CXXFLAGS -xs" |
|
7538 fi |
|
7539 _OPTIMIZE_FLAGS=-xO4 |
|
7540 fi |
|
7541 if test -z "$GNU_AS"; then |
|
7542 ASFLAGS="$ASFLAGS -Wa,-P" |
|
7543 fi |
|
7544 if test -n "$USE_64"; then |
|
7545 if test -n "$GNU_CC"; then |
|
7546 CC="$CC -m64" |
|
7547 CXX="$CXX -m64" |
|
7548 else |
|
7549 if test "$OS_TEST" = "i86pc"; then |
|
7550 CC="$CC -xarch=amd64" |
|
7551 CXX="$CXX -xarch=amd64" |
|
7552 else |
|
7553 CC="$CC -xarch=v9" |
|
7554 CXX="$CXX -xarch=v9" |
|
7555 fi |
|
7556 fi |
|
7557 fi |
|
7558 if test "$OS_TEST" = "i86pc"; then |
|
7559 if test -z "$USE_64"; then |
|
7560 $as_echo "#define i386 1" >>confdefs.h |
|
7561 |
|
7562 fi |
|
7563 CPU_ARCH_TAG=_$OS_TEST |
|
7564 # The default debug format, DWARF (-g), is not supported by gcc |
|
7565 # on i386-ANY-sysv4/solaris, but the stabs format is. It is |
|
7566 # assumed that the Solaris assembler /usr/ccs/bin/as is used. |
|
7567 # If your gcc uses GNU as, you do not need the -Wa,-s option. |
|
7568 if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then |
|
7569 _DEBUG_FLAGS=-gstabs |
|
7570 if test -z "$GNU_AS"; then |
|
7571 _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s" |
|
7572 fi |
|
7573 fi |
|
7574 fi |
|
7575 case "${target_os}" in |
|
7576 solaris2.3*) |
|
7577 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
|
7578 |
|
7579 ;; |
|
7580 solaris2.4*) |
|
7581 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
|
7582 |
|
7583 ;; |
|
7584 solaris2.5*) |
|
7585 $as_echo "#define SOLARIS2_5 1" >>confdefs.h |
|
7586 |
|
7587 ;; |
|
7588 *) |
|
7589 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
|
7590 |
|
7591 # The lfcompile64(5) man page on Solaris 2.6 says: |
|
7592 # For applications that do not wish to conform to the POSIX or |
|
7593 # X/Open specifications, the 64-bit transitional interfaces |
|
7594 # are available by default. No compile-time flags need to be |
|
7595 # set. |
|
7596 # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. |
|
7597 # The native compiler, gcc 2.8.x, and egcs don't have this problem. |
|
7598 if test -n "$GNU_CC"; then |
|
7599 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
|
7600 |
|
7601 fi |
|
7602 ;; |
|
7603 esac |
|
7604 case "${target_os}" in |
|
7605 solaris2.3*) |
|
7606 ;; |
|
7607 solaris2.4*) |
|
7608 ;; |
|
7609 solaris2.5*) |
|
7610 ;; |
|
7611 solaris2.6*) |
|
7612 ;; |
|
7613 solaris2.7*) |
|
7614 ;; |
|
7615 *) |
|
7616 # Solaris 8 or higher has IPv6. |
|
7617 $as_echo "#define _PR_INET6 1" >>confdefs.h |
|
7618 |
|
7619 ;; |
|
7620 esac |
|
7621 if test "$CPU_ARCH" = "sparc"; then |
|
7622 # 64-bit Solaris SPARC requires V9 architecture, so the following |
|
7623 # is not needed. |
|
7624 if test -z "$USE_64"; then |
|
7625 ULTRASPARC_LIBRARY=nspr_flt |
|
7626 fi |
|
7627 fi |
|
7628 # Purify requires that binaries linked against nspr also |
|
7629 # be linked against -lrt (or -lposix4) so add it to OS_LIBS |
|
7630 _rev=`uname -r` |
|
7631 _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'` |
|
7632 OS_LIBS="$OS_LIBS $_librt" |
|
7633 ;; |
|
7634 |
|
7635 *-sco-sysv5*) |
|
7636 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7637 |
|
7638 $as_echo "#define UNIXWARE 1" >>confdefs.h |
|
7639 |
|
7640 $as_echo "#define SVR4 1" >>confdefs.h |
|
7641 |
|
7642 $as_echo "#define SYSV 1" >>confdefs.h |
|
7643 |
|
7644 USE_NSPR_THREADS=1 |
|
7645 if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then |
|
7646 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
|
7647 |
|
7648 CC='$(NSDEPTH)/build/hcc cc' |
|
7649 CXX='$(NSDEPTH)/build/hcpp CC' |
|
7650 MDCPUCFG_H=_unixware.cfg |
|
7651 else |
|
7652 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
|
7653 |
|
7654 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
|
7655 |
|
7656 $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h |
|
7657 |
|
7658 MDCPUCFG_H=_unixware7.cfg |
|
7659 fi |
|
7660 PR_MD_CSRCS=unixware.c |
|
7661 DSO_LDOPTS=-G |
|
7662 CPU_ARCH=x86 |
|
7663 ;; |
|
7664 |
|
7665 *-symbian*) |
|
7666 |
|
7667 # Check whether --with-symbian-sdk was given. |
|
7668 if test "${with_symbian_sdk+set}" = set; then : |
|
7669 withval=$with_symbian_sdk; SYMBIAN_SDK_DIR=$withval |
|
7670 fi |
|
7671 |
|
7672 |
|
7673 echo ----------------------------------------------------------------------------- |
|
7674 echo Building with Symbian SDK in: $SYMBIAN_SDK_DIR |
|
7675 echo ----------------------------------------------------------------------------- |
|
7676 |
|
7677 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7678 |
|
7679 $as_echo "#define SYMBIAN 1" >>confdefs.h |
|
7680 |
|
7681 $as_echo "#define __arm__ 1" >>confdefs.h |
|
7682 |
|
7683 $as_echo "#define __SYMBIAN32__ 1" >>confdefs.h |
|
7684 |
|
7685 $as_echo "#define _UNICODE 1" >>confdefs.h |
|
7686 |
|
7687 $as_echo "#define NDEBUG 1" >>confdefs.h |
|
7688 |
|
7689 $as_echo "#define __SUPPORT_CPP_EXCEPTIONS__ 1" >>confdefs.h |
|
7690 |
|
7691 $as_echo "#define MOZ_STDERR_TO_STDOUT 1" >>confdefs.h |
|
7692 |
|
7693 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
|
7694 |
|
7695 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
|
7696 |
|
7697 USE_PTHREADS=1 |
|
7698 LIB_SUFFIX=lib |
|
7699 DLL_SUFFIX=dll |
|
7700 MKSHLIB= |
|
7701 DSO_LDOPTS= |
|
7702 DSO_CFLAGS= |
|
7703 VISIBILITY_FLAGS= |
|
7704 MDCPUCFG_H=_symbian.cfg |
|
7705 PR_MD_CSRCS=symbian.c |
|
7706 NSINSTALL=nsinstall |
|
7707 RANLIB='echo no ranlib ' |
|
7708 CPU_ARCH=ARM |
|
7709 OS_ARCH=SYMBIAN |
|
7710 OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__" |
|
7711 CFLAGS="$CFLAGS -MD -nostdinc" |
|
7712 SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis" |
|
7713 echo ------------------------------------------------------- |
|
7714 echo SYMBIAN_SYS_INCLUDE is: $SYMBIAN_SYS_INCLUDE |
|
7715 echo ------------------------------------------------------- |
|
7716 case "$OS_TARGET" in |
|
7717 WINSCW) |
|
7718 CC=mwccsym2.exe |
|
7719 CXX=mwccsym2.exe |
|
7720 LD=mwldsym2.exe |
|
7721 AR=mwldsym2.exe |
|
7722 WINSCW_LD_DIR="\$(SYMBIAN_SDK_DIR)/EPOC32/RELEASE/WINSCW/UDEB" |
|
7723 CFLAGS="$CFLAGS -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostderr -gccdep -cwd source -i- -I\$(VPATH)" |
|
7724 SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh" |
|
7725 AR_FLAGS="-library -msgstyle gcc -stdlib -subsystem windows -noimplib -o \$@" |
|
7726 $as_echo "#define _DEBUG 1" >>confdefs.h |
|
7727 |
|
7728 $as_echo "#define __CW32__ 1" >>confdefs.h |
|
7729 |
|
7730 $as_echo "#define __WINS__ 1" >>confdefs.h |
|
7731 |
|
7732 $as_echo "#define __WINSCW__ 1" >>confdefs.h |
|
7733 |
|
7734 DEFINES="$DEFINES -U_WIN32" |
|
7735 ;; |
|
7736 GCCE) |
|
7737 CFLAGS="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -x c -msoft-float" |
|
7738 CXXFLAGS="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy" |
|
7739 SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h" |
|
7740 $as_echo "#define __GCCE__ 1" >>confdefs.h |
|
7741 |
|
7742 $as_echo "#define __EABI__ 1" >>confdefs.h |
|
7743 |
|
7744 DEFINES="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh" |
|
7745 ;; |
|
7746 *) |
|
7747 as_fn_error $? "Missing OS_TARGET for ${target}. Set --enable-symbian-target to with 'WINSCW' or 'GCCE'." "$LINENO" 5 |
|
7748 ;; |
|
7749 esac |
|
7750 CFLAGS="$CFLAGS ${SYMBIAN_SYS_INCLUDE}" |
|
7751 ;; |
|
7752 |
|
7753 *-os2*) |
|
7754 $as_echo "#define XP_OS2 1" >>confdefs.h |
|
7755 |
|
7756 $as_echo "#define XP_PC 1" >>confdefs.h |
|
7757 |
|
7758 $as_echo "#define BSD_SELECT 1" >>confdefs.h |
|
7759 |
|
7760 $as_echo "#define TCPV40HDRS 1" >>confdefs.h |
|
7761 |
|
7762 LIB_SUFFIX=lib |
|
7763 DLL_SUFFIX=dll |
|
7764 RC=rc.exe |
|
7765 PR_MD_ARCH_DIR=os2 |
|
7766 PROG_SUFFIX=.exe |
|
7767 NSINSTALL=nsinstall |
|
7768 MDCPUCFG_H=_os2.cfg |
|
7769 RESOLVE_LINK_SYMBOLS=1 |
|
7770 |
|
7771 $as_echo "#define OS2 1" >>confdefs.h |
|
7772 |
|
7773 AR=emxomfar |
|
7774 AR_FLAGS='r $@' |
|
7775 CFLAGS="$CFLAGS -Wall -Zomf" |
|
7776 CXXFLAGS="$CFLAGS -Wall -Zomf" |
|
7777 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
|
7778 DSO_CFLAGS= |
|
7779 DSO_LDOPTS='-Zomf -Zdll' |
|
7780 LDFLAGS='-Zmap' |
|
7781 _OPTIMIZE_FLAGS="-O2 -s" |
|
7782 _DEBUG_FLAGS="-g -fno-inline" |
|
7783 if test -n "$MOZ_OPTIMIZE"; then |
|
7784 DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA" |
|
7785 fi |
|
7786 IMPLIB='emximp -o' |
|
7787 FILTER='emxexp -o' |
|
7788 if test -n "$MOZ_OS2_HIGH_MEMORY"; then |
|
7789 LDFLAGS="$LDFLAGS -Zhigh-mem" |
|
7790 $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h |
|
7791 |
|
7792 fi |
|
7793 |
|
7794 # GCC for OS/2 currently predefines these, but we don't want them |
|
7795 DEFINES="$DEFINES -Uunix -U__unix -U__unix__" |
|
7796 ;; |
|
7797 |
|
7798 *) |
|
7799 $as_echo "#define XP_UNIX 1" >>confdefs.h |
|
7800 |
|
7801 ;; |
|
7802 |
|
7803 esac |
|
7804 |
|
7805 if test -z "$SKIP_LIBRARY_CHECKS"; then |
|
7806 |
|
7807 |
|
7808 |
|
7809 case $target in |
|
7810 *-darwin*|*-beos*|*-os2*) |
|
7811 ;; |
|
7812 *) |
|
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
|
7814 $as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
7815 if ${ac_cv_lib_dl_dlopen+:} false; then : |
|
7816 $as_echo_n "(cached) " >&6 |
|
7817 else |
|
7818 ac_check_lib_save_LIBS=$LIBS |
|
7819 LIBS="-ldl $LIBS" |
|
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7821 /* end confdefs.h. */ |
|
7822 |
|
7823 /* Override any GCC internal prototype to avoid an error. |
|
7824 Use char because int might match the return type of a GCC |
|
7825 builtin and then its argument prototype would still apply. */ |
|
7826 #ifdef __cplusplus |
|
7827 extern "C" |
|
7828 #endif |
|
7829 char dlopen (); |
|
7830 int |
|
7831 main () |
|
7832 { |
|
7833 return dlopen (); |
|
7834 ; |
|
7835 return 0; |
|
7836 } |
|
7837 _ACEOF |
|
7838 if ac_fn_c_try_link "$LINENO"; then : |
|
7839 ac_cv_lib_dl_dlopen=yes |
|
7840 else |
|
7841 ac_cv_lib_dl_dlopen=no |
|
7842 fi |
|
7843 rm -f core conftest.err conftest.$ac_objext \ |
|
7844 conftest$ac_exeext conftest.$ac_ext |
|
7845 LIBS=$ac_check_lib_save_LIBS |
|
7846 fi |
|
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
|
7848 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
7849 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
|
7850 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
|
7851 if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
|
7852 OS_LIBS="-ldl $OS_LIBS" |
|
7853 fi |
|
7854 |
|
7855 |
|
7856 fi |
|
7857 |
|
7858 ;; |
|
7859 esac |
|
7860 |
|
7861 |
|
7862 |
|
7863 |
|
7864 if test $ac_cv_c_compiler_gnu = yes; then |
|
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
|
7866 $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
|
7867 if ${ac_cv_prog_gcc_traditional+:} false; then : |
|
7868 $as_echo_n "(cached) " >&6 |
|
7869 else |
|
7870 ac_pattern="Autoconf.*'x'" |
|
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7872 /* end confdefs.h. */ |
|
7873 #include <sgtty.h> |
|
7874 Autoconf TIOCGETP |
|
7875 _ACEOF |
|
7876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7877 $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
|
7878 ac_cv_prog_gcc_traditional=yes |
|
7879 else |
|
7880 ac_cv_prog_gcc_traditional=no |
|
7881 fi |
|
7882 rm -f conftest* |
|
7883 |
|
7884 |
|
7885 if test $ac_cv_prog_gcc_traditional = no; then |
|
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7887 /* end confdefs.h. */ |
|
7888 #include <termio.h> |
|
7889 Autoconf TCGETA |
|
7890 _ACEOF |
|
7891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7892 $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
|
7893 ac_cv_prog_gcc_traditional=yes |
|
7894 fi |
|
7895 rm -f conftest* |
|
7896 |
|
7897 fi |
|
7898 fi |
|
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
|
7900 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
|
7901 if test $ac_cv_prog_gcc_traditional = yes; then |
|
7902 CC="$CC -traditional" |
|
7903 fi |
|
7904 fi |
|
7905 |
|
7906 _SAVE_LIBS="$LIBS" |
|
7907 LIBS="$LIBS $OS_LIBS" |
|
7908 for ac_func in dladdr gettid lchown setpriority strerror syscall |
|
7909 do : |
|
7910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
7911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
7912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
7913 cat >>confdefs.h <<_ACEOF |
|
7914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
7915 _ACEOF |
|
7916 |
|
7917 fi |
|
7918 done |
|
7919 |
|
7920 LIBS="$_SAVE_LIBS" |
|
7921 |
|
7922 |
|
7923 |
|
7924 # Check whether --with-ccache was given. |
|
7925 if test "${with_ccache+set}" = set; then : |
|
7926 withval=$with_ccache; CCACHE=$withval |
|
7927 else |
|
7928 CCACHE="no" |
|
7929 fi |
|
7930 |
|
7931 |
|
7932 if test "$CCACHE" != "no"; then |
|
7933 if test -n "$CCACHE"; then |
|
7934 if test "$CCACHE" = "yes"; then |
|
7935 CCACHE= |
|
7936 else |
|
7937 if test ! -e "$CCACHE"; then |
|
7938 as_fn_error $? "$CCACHE not found" "$LINENO" 5 |
|
7939 fi |
|
7940 fi |
|
7941 fi |
|
7942 for ac_prog in $CCACHE ccache |
|
7943 do |
|
7944 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
7945 set dummy $ac_prog; ac_word=$2 |
|
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
7947 $as_echo_n "checking for $ac_word... " >&6; } |
|
7948 if ${ac_cv_path_CCACHE+:} false; then : |
|
7949 $as_echo_n "(cached) " >&6 |
|
7950 else |
|
7951 case $CCACHE in |
|
7952 [\\/]* | ?:[\\/]*) |
|
7953 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. |
|
7954 ;; |
|
7955 *) |
|
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7957 for as_dir in $PATH |
|
7958 do |
|
7959 IFS=$as_save_IFS |
|
7960 test -z "$as_dir" && as_dir=. |
|
7961 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
7963 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" |
|
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7965 break 2 |
|
7966 fi |
|
7967 done |
|
7968 done |
|
7969 IFS=$as_save_IFS |
|
7970 |
|
7971 ;; |
|
7972 esac |
|
7973 fi |
|
7974 CCACHE=$ac_cv_path_CCACHE |
|
7975 if test -n "$CCACHE"; then |
|
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 |
|
7977 $as_echo "$CCACHE" >&6; } |
|
7978 else |
|
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7980 $as_echo "no" >&6; } |
|
7981 fi |
|
7982 |
|
7983 |
|
7984 test -n "$CCACHE" && break |
|
7985 done |
|
7986 |
|
7987 if test -z "$CCACHE" -o "$CCACHE" = ":"; then |
|
7988 as_fn_error $? "ccache not found" "$LINENO" 5 |
|
7989 elif test -x "$CCACHE"; then |
|
7990 CC="$CCACHE $CC" |
|
7991 CXX="$CCACHE $CXX" |
|
7992 else |
|
7993 as_fn_error $? "$CCACHE is not executable" "$LINENO" 5 |
|
7994 fi |
|
7995 fi |
|
7996 |
|
7997 # Check whether --enable-strip was given. |
|
7998 if test "${enable_strip+set}" = set; then : |
|
7999 enableval=$enable_strip; if test "$enableval" = "yes"; then |
|
8000 ENABLE_STRIP=1 |
|
8001 fi |
|
8002 fi |
|
8003 |
|
8004 |
|
8005 case "${target_os}" in |
|
8006 hpux*) |
|
8007 if test -z "$GNU_CC"; then |
|
8008 |
|
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5 |
|
8010 $as_echo_n "checking for +Olit support... " >&6; } |
|
8011 if ${ac_cv_hpux_usable_olit_option+:} false; then : |
|
8012 $as_echo_n "(cached) " >&6 |
|
8013 else |
|
8014 ac_cv_hpux_usable_olit_option=no |
|
8015 rm -f conftest* |
|
8016 echo 'int main() { return 0; }' | cat > conftest.c |
|
8017 ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1 |
|
8018 if test $? -eq 0; then |
|
8019 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then |
|
8020 ac_cv_hpux_usable_olit_option=yes |
|
8021 fi |
|
8022 fi |
|
8023 rm -f conftest* |
|
8024 |
|
8025 fi |
|
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5 |
|
8027 $as_echo "$ac_cv_hpux_usable_olit_option" >&6; } |
|
8028 |
|
8029 if test "$ac_cv_hpux_usable_olit_option" = "yes"; then |
|
8030 CFLAGS="$CFLAGS +Olit=all" |
|
8031 CXXFLAGS="$CXXFLAGS +Olit=all" |
|
8032 else |
|
8033 CFLAGS="$CFLAGS +ESlit" |
|
8034 CXXFLAGS="$CXXFLAGS +ESlit" |
|
8035 fi |
|
8036 fi |
|
8037 ;; |
|
8038 esac |
|
8039 |
|
8040 |
|
8041 |
|
8042 case "$target_os" in |
|
8043 darwin*) |
|
8044 _HAVE_PTHREADS=1 |
|
8045 ;; |
|
8046 *) |
|
8047 |
|
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
|
8049 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
|
8050 echo " |
|
8051 #include <pthread.h> |
|
8052 void *foo(void *v) { return v; } |
|
8053 int main() { |
|
8054 pthread_t t; |
|
8055 if (!pthread_create(&t, 0, &foo, 0)) { |
|
8056 pthread_join(t, 0); |
|
8057 } |
|
8058 return 0; |
|
8059 }" > dummy.c ; |
|
8060 echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5; |
|
8061 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5; |
|
8062 _res=$? ; |
|
8063 rm -f dummy.c dummy${ac_exeext} ; |
|
8064 if test "$_res" = "0"; then |
|
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
8066 $as_echo "yes" >&6; } |
|
8067 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads" |
|
8068 else |
|
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
8070 $as_echo "no" >&6; } |
|
8071 |
|
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
|
8073 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
|
8074 echo " |
|
8075 #include <pthread.h> |
|
8076 void *foo(void *v) { return v; } |
|
8077 int main() { |
|
8078 pthread_t t; |
|
8079 if (!pthread_create(&t, 0, &foo, 0)) { |
|
8080 pthread_join(t, 0); |
|
8081 } |
|
8082 return 0; |
|
8083 }" > dummy.c ; |
|
8084 echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5; |
|
8085 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5; |
|
8086 _res=$? ; |
|
8087 rm -f dummy.c dummy${ac_exeext} ; |
|
8088 if test "$_res" = "0"; then |
|
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
8090 $as_echo "yes" >&6; } |
|
8091 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread" |
|
8092 else |
|
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
8094 $as_echo "no" >&6; } |
|
8095 |
|
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
|
8097 $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
|
8098 echo " |
|
8099 #include <pthread.h> |
|
8100 void *foo(void *v) { return v; } |
|
8101 int main() { |
|
8102 pthread_t t; |
|
8103 if (!pthread_create(&t, 0, &foo, 0)) { |
|
8104 pthread_join(t, 0); |
|
8105 } |
|
8106 return 0; |
|
8107 }" > dummy.c ; |
|
8108 echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5; |
|
8109 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5; |
|
8110 _res=$? ; |
|
8111 rm -f dummy.c dummy${ac_exeext} ; |
|
8112 if test "$_res" = "0"; then |
|
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
8114 $as_echo "yes" >&6; } |
|
8115 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r" |
|
8116 else |
|
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
8118 $as_echo "no" >&6; } |
|
8119 |
|
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 |
|
8121 $as_echo_n "checking for pthread_create in -lc... " >&6; } |
|
8122 echo " |
|
8123 #include <pthread.h> |
|
8124 void *foo(void *v) { return v; } |
|
8125 int main() { |
|
8126 pthread_t t; |
|
8127 if (!pthread_create(&t, 0, &foo, 0)) { |
|
8128 pthread_join(t, 0); |
|
8129 } |
|
8130 return 0; |
|
8131 }" > dummy.c ; |
|
8132 echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5; |
|
8133 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5; |
|
8134 _res=$? ; |
|
8135 rm -f dummy.c dummy${ac_exeext} ; |
|
8136 if test "$_res" = "0"; then |
|
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
8138 $as_echo "yes" >&6; } |
|
8139 _HAVE_PTHREADS=1 |
|
8140 |
|
8141 else |
|
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
8143 $as_echo "no" >&6; } |
|
8144 |
|
8145 fi |
|
8146 |
|
8147 |
|
8148 fi |
|
8149 |
|
8150 |
|
8151 fi |
|
8152 |
|
8153 |
|
8154 fi |
|
8155 |
|
8156 ;; |
|
8157 esac |
|
8158 |
|
8159 |
|
8160 # Check whether --with-pthreads was given. |
|
8161 if test "${with_pthreads+set}" = set; then : |
|
8162 withval=$with_pthreads; if test "$withval" = "yes"; then |
|
8163 if test -n "$_HAVE_PTHREADS"; then |
|
8164 USE_PTHREADS=1 |
|
8165 USE_USER_PTHREADS= |
|
8166 USE_NSPR_THREADS= |
|
8167 else |
|
8168 as_fn_error $? " --with-pthreads specified for a system without pthread support " "$LINENO" 5; |
|
8169 fi |
|
8170 else |
|
8171 USE_PTHREADS= |
|
8172 _PTHREAD_LDFLAGS= |
|
8173 fi |
|
8174 else |
|
8175 if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then |
|
8176 USE_PTHREADS=1 |
|
8177 USE_USER_PTHREADS= |
|
8178 USE_NSPR_THREADS= |
|
8179 fi |
|
8180 fi |
|
8181 |
|
8182 |
|
8183 # Check whether --enable-user-pthreads was given. |
|
8184 if test "${enable_user_pthreads+set}" = set; then : |
|
8185 enableval=$enable_user_pthreads; if test "$enableval" = "yes"; then |
|
8186 if test -n "$_HAVE_PTHREADS"; then |
|
8187 USE_PTHREADS= |
|
8188 USE_USER_PTHREADS=1 |
|
8189 USE_NSPR_THREADS= |
|
8190 else |
|
8191 as_fn_error $? " --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5; |
|
8192 fi |
|
8193 fi |
|
8194 fi |
|
8195 |
|
8196 |
|
8197 # Check whether --enable-nspr-threads was given. |
|
8198 if test "${enable_nspr_threads+set}" = set; then : |
|
8199 enableval=$enable_nspr_threads; if test "$enableval" = "yes"; then |
|
8200 USE_PTHREADS= |
|
8201 USE_USER_PTHREADS= |
|
8202 USE_NSPR_THREADS=1 |
|
8203 fi |
|
8204 fi |
|
8205 |
|
8206 |
|
8207 case "$target" in |
|
8208 *-beos*) |
|
8209 |
|
8210 # Check whether --with-bthreads was given. |
|
8211 if test "${with_bthreads+set}" = set; then : |
|
8212 withval=$with_bthreads; if test "$withval" = "yes"; then |
|
8213 USE_BTHREADS=1 |
|
8214 USE_USER_PTHREADS= |
|
8215 USE_PTHREADS= |
|
8216 fi |
|
8217 fi |
|
8218 |
|
8219 ;; |
|
8220 esac |
|
8221 |
|
8222 fi # SKIP_LIBRARY_CHECKS |
|
8223 |
|
8224 # Check whether --enable-ipv6 was given. |
|
8225 if test "${enable_ipv6+set}" = set; then : |
|
8226 enableval=$enable_ipv6; if test "$enableval" = "yes"; then |
|
8227 USE_IPV6=1 |
|
8228 else |
|
8229 USE_IPV6= |
|
8230 fi |
|
8231 fi |
|
8232 |
|
8233 |
|
8234 if test -n "$USE_PTHREADS"; then |
|
8235 rm -f conftest* |
|
8236 ac_cv_have_dash_pthread=no |
|
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5 |
|
8238 $as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; } |
|
8239 echo 'int main() { return 0; }' | cat > conftest.c |
|
8240 ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 |
|
8241 if test $? -eq 0; then |
|
8242 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then |
|
8243 ac_cv_have_dash_pthread=yes |
|
8244 case "$target_os" in |
|
8245 freebsd*) |
|
8246 # Freebsd doesn't use -pthread for compiles, it uses them for linking |
|
8247 ;; |
|
8248 *) |
|
8249 CFLAGS="$CFLAGS -pthread" |
|
8250 CXXFLAGS="$CXXFLAGS -pthread" |
|
8251 ;; |
|
8252 esac |
|
8253 fi |
|
8254 fi |
|
8255 rm -f conftest* |
|
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5 |
|
8257 $as_echo "$ac_cv_have_dash_pthread" >&6; } |
|
8258 |
|
8259 ac_cv_have_dash_pthreads=no |
|
8260 if test "$ac_cv_have_dash_pthread" = "no"; then |
|
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5 |
|
8262 $as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; } |
|
8263 echo 'int main() { return 0; }' | cat > conftest.c |
|
8264 ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 |
|
8265 if test $? -eq 0; then |
|
8266 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then |
|
8267 ac_cv_have_dash_pthreads=yes |
|
8268 CFLAGS="$CFLAGS -pthreads" |
|
8269 CXXFLAGS="$CXXFLAGS -pthreads" |
|
8270 fi |
|
8271 fi |
|
8272 rm -f conftest* |
|
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5 |
|
8274 $as_echo "$ac_cv_have_dash_pthreads" >&6; } |
|
8275 fi |
|
8276 |
|
8277 case "$target" in |
|
8278 *-solaris*) |
|
8279 if test "$ac_cv_have_dash_pthreads" = "yes"; then |
|
8280 _PTHREAD_LDFLAGS= |
|
8281 fi |
|
8282 ;; |
|
8283 *-freebsd*) |
|
8284 $as_echo "#define _REENTRANT 1" >>confdefs.h |
|
8285 |
|
8286 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h |
|
8287 |
|
8288 if test "$ac_cv_have_dash_pthread" = "yes"; then |
|
8289 _PTHREAD_LDFLAGS="-pthread" |
|
8290 else |
|
8291 _PTHREAD_LDFLAGS="-lc_r" |
|
8292 fi |
|
8293 ;; |
|
8294 *-netbsd*) |
|
8295 if test "$ac_cv_have_dash_pthread" = "yes"; then |
|
8296 _PTHREAD_LDFLAGS="-pthread" |
|
8297 fi |
|
8298 ;; |
|
8299 *-bsdi*) |
|
8300 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h |
|
8301 |
|
8302 if test "$ac_cv_have_dash_pthread" = "yes"; then |
|
8303 _PTHREAD_LDFLAGS= |
|
8304 fi |
|
8305 ;; |
|
8306 *-openbsd*) |
|
8307 if test "$ac_cv_have_dash_pthread" = "yes"; then |
|
8308 _PTHREAD_LDFLAGS=-pthread |
|
8309 fi |
|
8310 ;; |
|
8311 *-linux*|*-gnu*|*-k*bsd*-gnu) |
|
8312 $as_echo "#define _REENTRANT 1" >>confdefs.h |
|
8313 |
|
8314 ;; |
|
8315 esac |
|
8316 |
|
8317 else |
|
8318 if test -n "$USE_USER_PTHREADS"; then |
|
8319 USE_PTHREADS= |
|
8320 USE_NSPR_THREADS= |
|
8321 else |
|
8322 _PTHREAD_LDFLAGS= |
|
8323 fi |
|
8324 fi |
|
8325 |
|
8326 case "$target" in |
|
8327 *-aix*) |
|
8328 if test -n "$USE_NSPR_THREADS"; then |
|
8329 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
8330 |
|
8331 fi |
|
8332 case "$target_os" in |
|
8333 aix4.1*) |
|
8334 if test -z "$USE_PTHREADS"; then |
|
8335 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h |
|
8336 |
|
8337 fi |
|
8338 ;; |
|
8339 aix4.2*) |
|
8340 if test -z "$USE_NSPR_THREADS"; then |
|
8341 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
|
8342 |
|
8343 fi |
|
8344 ;; |
|
8345 aix4.3*) |
|
8346 if test -z "$USE_NSPR_THREADS"; then |
|
8347 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
|
8348 |
|
8349 fi |
|
8350 if test -n "$USE_PTHREADS"; then |
|
8351 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
|
8352 |
|
8353 fi |
|
8354 ;; |
|
8355 *) |
|
8356 if test -z "$USE_NSPR_THREADS"; then |
|
8357 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
|
8358 |
|
8359 fi |
|
8360 if test -n "$USE_PTHREADS"; then |
|
8361 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
|
8362 |
|
8363 fi |
|
8364 ;; |
|
8365 esac |
|
8366 ;; |
|
8367 *-bsdi*) |
|
8368 if test -n "$USE_PTHREADS"; then |
|
8369 $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h |
|
8370 |
|
8371 fi |
|
8372 ;; |
|
8373 *-freebsd*) |
|
8374 if test -n "$USE_NSPR_THREADS"; then |
|
8375 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
8376 |
|
8377 fi |
|
8378 ;; |
|
8379 *-hpux*) |
|
8380 if test -n "$USE_NSPR_THREADS"; then |
|
8381 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
8382 |
|
8383 fi |
|
8384 if test "$USE_PTHREADS"; then |
|
8385 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then |
|
8386 $as_echo "#define _REENTRANT 1" >>confdefs.h |
|
8387 |
|
8388 $as_echo "#define _PR_DCETHREADS 1" >>confdefs.h |
|
8389 |
|
8390 else |
|
8391 cat >>confdefs.h <<_ACEOF |
|
8392 #define _POSIX_C_SOURCE 199506L |
|
8393 _ACEOF |
|
8394 |
|
8395 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
|
8396 |
|
8397 fi |
|
8398 fi |
|
8399 if test "$USE_USER_PTHREADS"; then |
|
8400 cat >>confdefs.h <<_ACEOF |
|
8401 #define _POSIX_C_SOURCE 199506L |
|
8402 _ACEOF |
|
8403 |
|
8404 fi |
|
8405 ;; |
|
8406 *-irix*) |
|
8407 if test "${target_os}" = "irix6.5"; then |
|
8408 if test -n "$USE_PTHREADS"; then |
|
8409 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h |
|
8410 |
|
8411 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h |
|
8412 |
|
8413 fi |
|
8414 fi |
|
8415 ;; |
|
8416 *-linux*|*-gnu*|*-k*bsd*-gnu) |
|
8417 if test -n "$USE_NSPR_THREADS"; then |
|
8418 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
8419 |
|
8420 fi |
|
8421 ;; |
|
8422 *-mingw*|*-msys*|*-cygwin*|*-mks*|*-os2*|*-beos*) |
|
8423 USE_PTHREADS= |
|
8424 _PTHREAD_LDFLAGS= |
|
8425 USE_USER_PTHREADS= |
|
8426 ;; |
|
8427 *-netbsd*|*-openbsd*) |
|
8428 if test -n "$USE_NSPR_THREADS"; then |
|
8429 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
8430 |
|
8431 fi |
|
8432 ;; |
|
8433 *-osf*) |
|
8434 if test -n "$USE_NSPR_THREADS"; then |
|
8435 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
8436 |
|
8437 fi |
|
8438 if test -n "$USE_PTHREADS"; then |
|
8439 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then |
|
8440 : |
|
8441 else |
|
8442 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
|
8443 |
|
8444 fi |
|
8445 fi |
|
8446 ;; |
|
8447 *-solaris*) |
|
8448 if test -n "$USE_NSPR_THREADS"; then |
|
8449 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
|
8450 |
|
8451 fi |
|
8452 if test -n "$USE_PTHREADS"; then |
|
8453 $as_echo "#define _REENTRANT 1" >>confdefs.h |
|
8454 |
|
8455 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
|
8456 |
|
8457 if test "$OS_TEST" = "i86pc"; then |
|
8458 if test -n "$USE_64"; then |
|
8459 PR_MD_ASFILES=os_SunOS_x86_64.s |
|
8460 else |
|
8461 PR_MD_ASFILES=os_SunOS_x86.s |
|
8462 fi |
|
8463 else |
|
8464 if test -n "$USE_64"; then |
|
8465 PR_MD_ASFILES=os_SunOS_sparcv9.s |
|
8466 fi |
|
8467 fi |
|
8468 fi |
|
8469 ;; |
|
8470 *-nto*) |
|
8471 if test -n "$USE_PTHREADS"; then |
|
8472 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h |
|
8473 |
|
8474 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h |
|
8475 |
|
8476 fi |
|
8477 ;; |
|
8478 esac |
|
8479 |
|
8480 OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS" |
|
8481 |
|
8482 if test -n "$_SAVE_OPTIMIZE_FLAGS"; then |
|
8483 _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS" |
|
8484 fi |
|
8485 |
|
8486 if test -n "$_SAVE_DEBUG_FLAGS"; then |
|
8487 _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS" |
|
8488 fi |
|
8489 |
|
8490 if test -n "$MOZ_OPTIMIZE"; then |
|
8491 CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS" |
|
8492 CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS" |
|
8493 fi |
|
8494 |
|
8495 if test -n "$MOZ_DEBUG_SYMBOLS"; then |
|
8496 CFLAGS="$CFLAGS $_DEBUG_FLAGS" |
|
8497 CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS" |
|
8498 fi |
|
8499 |
|
8500 if test -n "$MOZ_OPTIMIZE"; then |
|
8501 OBJDIR_TAG=_OPT |
|
8502 else |
|
8503 OBJDIR_TAG=_DBG |
|
8504 fi |
|
8505 |
|
8506 if test -n "$USE_64"; then |
|
8507 COMPILER_TAG=_64 |
|
8508 fi |
|
8509 |
|
8510 RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}" |
|
8511 |
|
8512 case "$target_os" in |
|
8513 cygwin*|mks*) |
|
8514 CC="\$(CYGWIN_WRAPPER) $CC" |
|
8515 CXX="\$(CYGWIN_WRAPPER) $CXX" |
|
8516 RC="\$(CYGWIN_WRAPPER) $RC" |
|
8517 ;; |
|
8518 esac |
|
8519 |
|
8520 # Check whether --enable-wrap-malloc was given. |
|
8521 if test "${enable_wrap_malloc+set}" = set; then : |
|
8522 enableval=$enable_wrap_malloc; if test "$enableval" = "yes"; then |
|
8523 _WRAP_MALLOC=1 |
|
8524 fi |
|
8525 fi |
|
8526 |
|
8527 |
|
8528 if test -n "$_WRAP_MALLOC"; then |
|
8529 if test -n "$GNU_CC"; then |
|
8530 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign" |
|
8531 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete" |
|
8532 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup" |
|
8533 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size" |
|
8534 else |
|
8535 as_fn_error $? "--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5 |
|
8536 fi |
|
8537 fi |
|
8538 |
|
8539 |
|
8540 # Check whether --with-wrap-malloc was given. |
|
8541 if test "${with_wrap_malloc+set}" = set; then : |
|
8542 withval=$with_wrap_malloc; WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval" |
|
8543 fi |
|
8544 |
|
8545 |
|
8546 |
|
8547 |
|
8548 |
|
8549 |
|
8550 |
|
8551 |
|
8552 |
|
8553 |
|
8554 |
|
8555 |
|
8556 |
|
8557 |
|
8558 |
|
8559 |
|
8560 |
|
8561 |
|
8562 |
|
8563 |
|
8564 |
|
8565 |
|
8566 |
|
8567 |
|
8568 |
|
8569 |
|
8570 |
|
8571 |
|
8572 |
|
8573 |
|
8574 |
|
8575 |
|
8576 |
|
8577 |
|
8578 |
|
8579 |
|
8580 |
|
8581 |
|
8582 |
|
8583 |
|
8584 |
|
8585 |
|
8586 |
|
8587 |
|
8588 |
|
8589 |
|
8590 |
|
8591 |
|
8592 |
|
8593 |
|
8594 |
|
8595 |
|
8596 |
|
8597 |
|
8598 |
|
8599 |
|
8600 |
|
8601 |
|
8602 |
|
8603 |
|
8604 |
|
8605 |
|
8606 |
|
8607 |
|
8608 |
|
8609 |
|
8610 |
|
8611 |
|
8612 |
|
8613 |
|
8614 |
|
8615 |
|
8616 |
|
8617 |
|
8618 |
|
8619 |
|
8620 |
|
8621 |
|
8622 |
|
8623 |
|
8624 |
|
8625 |
|
8626 |
|
8627 |
|
8628 |
|
8629 |
|
8630 |
|
8631 |
|
8632 |
|
8633 |
|
8634 |
|
8635 |
|
8636 |
|
8637 |
|
8638 |
|
8639 |
|
8640 |
|
8641 |
|
8642 |
|
8643 |
|
8644 |
|
8645 |
|
8646 |
|
8647 |
|
8648 |
|
8649 |
|
8650 |
|
8651 MAKEFILES=" |
|
8652 Makefile |
|
8653 config/Makefile |
|
8654 config/autoconf.mk |
|
8655 config/nsprincl.mk |
|
8656 config/nsprincl.sh |
|
8657 config/nspr-config |
|
8658 config/nspr.pc |
|
8659 lib/Makefile |
|
8660 lib/ds/Makefile |
|
8661 lib/libc/Makefile |
|
8662 lib/libc/include/Makefile |
|
8663 lib/libc/src/Makefile |
|
8664 lib/tests/Makefile |
|
8665 pkg/Makefile |
|
8666 pr/Makefile |
|
8667 pr/include/Makefile |
|
8668 pr/include/md/Makefile |
|
8669 pr/include/obsolete/Makefile |
|
8670 pr/include/private/Makefile |
|
8671 pr/src/Makefile |
|
8672 pr/src/io/Makefile |
|
8673 pr/src/linking/Makefile |
|
8674 pr/src/malloc/Makefile |
|
8675 pr/src/md/Makefile |
|
8676 pr/src/md/${PR_MD_ARCH_DIR}/Makefile |
|
8677 pr/src/memory/Makefile |
|
8678 pr/src/misc/Makefile |
|
8679 pr/src/threads/Makefile |
|
8680 pr/tests/Makefile |
|
8681 pr/tests/dll/Makefile |
|
8682 " |
|
8683 |
|
8684 if test "$OS_TARGET" = "Linux"; then |
|
8685 MAKEFILES="$MAKEFILES |
|
8686 pkg/linux/Makefile |
|
8687 " |
|
8688 elif test "$OS_TARGET" = "SunOS"; then |
|
8689 MAKEFILES="$MAKEFILES |
|
8690 pkg/solaris/Makefile |
|
8691 pkg/solaris/SUNWpr/Makefile |
|
8692 pkg/solaris/SUNWprd/Makefile |
|
8693 " |
|
8694 fi |
|
8695 |
|
8696 if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then |
|
8697 MAKEFILES="$MAKEFILES |
|
8698 pr/src/threads/combined/Makefile |
|
8699 " |
|
8700 elif test -n "$USE_PTHREADS"; then |
|
8701 MAKEFILES="$MAKEFILES |
|
8702 pr/src/pthreads/Makefile |
|
8703 " |
|
8704 elif test -n "$USE_BTHREADS"; then |
|
8705 MAKEFILES="$MAKEFILES |
|
8706 pr/src/bthreads/Makefile |
|
8707 " |
|
8708 fi |
|
8709 |
|
8710 if test -n "$USE_CPLUS"; then |
|
8711 MAKEFILES="$MAKEFILES |
|
8712 pr/src/cplus/Makefile |
|
8713 pr/src/cplus/tests/Makefile |
|
8714 " |
|
8715 fi |
|
8716 |
|
8717 echo $MAKEFILES > unallmakefiles |
|
8718 |
|
8719 ac_config_files="$ac_config_files $MAKEFILES" |
|
8720 |
|
8721 ac_config_commands="$ac_config_commands default" |
|
8722 |
|
8723 cat >confcache <<\_ACEOF |
|
8724 # This file is a shell script that caches the results of configure |
|
8725 # tests run on this system so they can be shared between configure |
|
8726 # scripts and configure runs, see configure's option --config-cache. |
|
8727 # It is not useful on other systems. If it contains results you don't |
|
8728 # want to keep, you may remove or edit it. |
|
8729 # |
|
8730 # config.status only pays attention to the cache file if you give it |
|
8731 # the --recheck option to rerun configure. |
|
8732 # |
|
8733 # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
8734 # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
8735 # following values. |
|
8736 |
|
8737 _ACEOF |
|
8738 |
|
8739 # The following way of writing the cache mishandles newlines in values, |
|
8740 # but we know of no workaround that is simple, portable, and efficient. |
|
8741 # So, we kill variables containing newlines. |
|
8742 # Ultrix sh set writes to stderr and can't be redirected directly, |
|
8743 # and sets the high bit in the cache file unless we assign to the vars. |
|
8744 ( |
|
8745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
8746 eval ac_val=\$$ac_var |
|
8747 case $ac_val in #( |
|
8748 *${as_nl}*) |
|
8749 case $ac_var in #( |
|
8750 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
8751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
8752 esac |
|
8753 case $ac_var in #( |
|
8754 _ | IFS | as_nl) ;; #( |
|
8755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
8756 *) { eval $ac_var=; unset $ac_var;} ;; |
|
8757 esac ;; |
|
8758 esac |
|
8759 done |
|
8760 |
|
8761 (set) 2>&1 | |
|
8762 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
8763 *${as_nl}ac_space=\ *) |
|
8764 # `set' does not quote correctly, so add quotes: double-quote |
|
8765 # substitution turns \\\\ into \\, and sed turns \\ into \. |
|
8766 sed -n \ |
|
8767 "s/'/'\\\\''/g; |
|
8768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
8769 ;; #( |
|
8770 *) |
|
8771 # `set' quotes correctly as required by POSIX, so do not add quotes. |
|
8772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
8773 ;; |
|
8774 esac | |
|
8775 sort |
|
8776 ) | |
|
8777 sed ' |
|
8778 /^ac_cv_env_/b end |
|
8779 t clear |
|
8780 :clear |
|
8781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
8782 t end |
|
8783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
8784 :end' >>confcache |
|
8785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
8786 if test -w "$cache_file"; then |
|
8787 if test "x$cache_file" != "x/dev/null"; then |
|
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
|
8789 $as_echo "$as_me: updating cache $cache_file" >&6;} |
|
8790 if test ! -f "$cache_file" || test -h "$cache_file"; then |
|
8791 cat confcache >"$cache_file" |
|
8792 else |
|
8793 case $cache_file in #( |
|
8794 */* | ?:*) |
|
8795 mv -f confcache "$cache_file"$$ && |
|
8796 mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
8797 *) |
|
8798 mv -f confcache "$cache_file" ;; |
|
8799 esac |
|
8800 fi |
|
8801 fi |
|
8802 else |
|
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
|
8804 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
8805 fi |
|
8806 fi |
|
8807 rm -f confcache |
|
8808 |
|
8809 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
8810 # Let make expand exec_prefix. |
|
8811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
8812 |
|
8813 # Transform confdefs.h into DEFS. |
|
8814 # Protect against shell expansion while executing Makefile rules. |
|
8815 # Protect against Makefile macro expansion. |
|
8816 # |
|
8817 # If the first sed substitution is executed (which looks for macros that |
|
8818 # take arguments), then branch to the quote section. Otherwise, |
|
8819 # look for a macro that doesn't take arguments. |
|
8820 ac_script=' |
|
8821 :mline |
|
8822 /\\$/{ |
|
8823 N |
|
8824 s,\\\n,, |
|
8825 b mline |
|
8826 } |
|
8827 t clear |
|
8828 :clear |
|
8829 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
|
8830 t quote |
|
8831 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
|
8832 t quote |
|
8833 b any |
|
8834 :quote |
|
8835 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
|
8836 s/\[/\\&/g |
|
8837 s/\]/\\&/g |
|
8838 s/\$/$$/g |
|
8839 H |
|
8840 :any |
|
8841 ${ |
|
8842 g |
|
8843 s/^\n// |
|
8844 s/\n/ /g |
|
8845 p |
|
8846 } |
|
8847 ' |
|
8848 DEFS=`sed -n "$ac_script" confdefs.h` |
|
8849 |
|
8850 |
|
8851 ac_libobjs= |
|
8852 ac_ltlibobjs= |
|
8853 U= |
|
8854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
8855 # 1. Remove the extension, and $U if already installed. |
|
8856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
8857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
|
8858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
8859 # will be set to the directory where LIBOBJS objects are built. |
|
8860 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
8861 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
|
8862 done |
|
8863 LIBOBJS=$ac_libobjs |
|
8864 |
|
8865 LTLIBOBJS=$ac_ltlibobjs |
|
8866 |
|
8867 |
|
8868 |
|
8869 : "${CONFIG_STATUS=./config.status}" |
|
8870 ac_write_fail=0 |
|
8871 ac_clean_files_save=$ac_clean_files |
|
8872 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
|
8874 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
8875 as_write_fail=0 |
|
8876 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
|
8877 #! $SHELL |
|
8878 # Generated by $as_me. |
|
8879 # Run this file to recreate the current configuration. |
|
8880 # Compiler output produced by configure, useful for debugging |
|
8881 # configure, is in config.log if it exists. |
|
8882 |
|
8883 debug=false |
|
8884 ac_cs_recheck=false |
|
8885 ac_cs_silent=false |
|
8886 |
|
8887 SHELL=\${CONFIG_SHELL-$SHELL} |
|
8888 export SHELL |
|
8889 _ASEOF |
|
8890 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
|
8891 ## -------------------- ## |
|
8892 ## M4sh Initialization. ## |
|
8893 ## -------------------- ## |
|
8894 |
|
8895 # Be more Bourne compatible |
|
8896 DUALCASE=1; export DUALCASE # for MKS sh |
|
8897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
8898 emulate sh |
|
8899 NULLCMD=: |
|
8900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
8901 # is contrary to our usage. Disable this feature. |
|
8902 alias -g '${1+"$@"}'='"$@"' |
|
8903 setopt NO_GLOB_SUBST |
|
8904 else |
|
8905 case `(set -o) 2>/dev/null` in #( |
|
8906 *posix*) : |
|
8907 set -o posix ;; #( |
|
8908 *) : |
|
8909 ;; |
|
8910 esac |
|
8911 fi |
|
8912 |
|
8913 |
|
8914 as_nl=' |
|
8915 ' |
|
8916 export as_nl |
|
8917 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
8918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
8919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
8920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
8921 # Prefer a ksh shell builtin over an external printf program on Solaris, |
|
8922 # but without wasting forks for bash or zsh. |
|
8923 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
8924 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
8925 as_echo='print -r --' |
|
8926 as_echo_n='print -rn --' |
|
8927 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
8928 as_echo='printf %s\n' |
|
8929 as_echo_n='printf %s' |
|
8930 else |
|
8931 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
8932 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
8933 as_echo_n='/usr/ucb/echo -n' |
|
8934 else |
|
8935 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
8936 as_echo_n_body='eval |
|
8937 arg=$1; |
|
8938 case $arg in #( |
|
8939 *"$as_nl"*) |
|
8940 expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
8941 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
8942 esac; |
|
8943 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
8944 ' |
|
8945 export as_echo_n_body |
|
8946 as_echo_n='sh -c $as_echo_n_body as_echo' |
|
8947 fi |
|
8948 export as_echo_body |
|
8949 as_echo='sh -c $as_echo_body as_echo' |
|
8950 fi |
|
8951 |
|
8952 # The user is always right. |
|
8953 if test "${PATH_SEPARATOR+set}" != set; then |
|
8954 PATH_SEPARATOR=: |
|
8955 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
8956 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
8957 PATH_SEPARATOR=';' |
|
8958 } |
|
8959 fi |
|
8960 |
|
8961 |
|
8962 # IFS |
|
8963 # We need space, tab and new line, in precisely that order. Quoting is |
|
8964 # there to prevent editors from complaining about space-tab. |
|
8965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
8966 # splitting by setting IFS to empty value.) |
|
8967 IFS=" "" $as_nl" |
|
8968 |
|
8969 # Find who we are. Look in the path if we contain no directory separator. |
|
8970 as_myself= |
|
8971 case $0 in #(( |
|
8972 *[\\/]* ) as_myself=$0 ;; |
|
8973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
8974 for as_dir in $PATH |
|
8975 do |
|
8976 IFS=$as_save_IFS |
|
8977 test -z "$as_dir" && as_dir=. |
|
8978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
8979 done |
|
8980 IFS=$as_save_IFS |
|
8981 |
|
8982 ;; |
|
8983 esac |
|
8984 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
8985 # in which case we are not to be found in the path. |
|
8986 if test "x$as_myself" = x; then |
|
8987 as_myself=$0 |
|
8988 fi |
|
8989 if test ! -f "$as_myself"; then |
|
8990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
8991 exit 1 |
|
8992 fi |
|
8993 |
|
8994 # Unset variables that we do not need and which cause bugs (e.g. in |
|
8995 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
8996 # suppresses any "Segmentation fault" message there. '((' could |
|
8997 # trigger a bug in pdksh 5.2.14. |
|
8998 for as_var in BASH_ENV ENV MAIL MAILPATH |
|
8999 do eval test x\${$as_var+set} = xset \ |
|
9000 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
9001 done |
|
9002 PS1='$ ' |
|
9003 PS2='> ' |
|
9004 PS4='+ ' |
|
9005 |
|
9006 # NLS nuisances. |
|
9007 LC_ALL=C |
|
9008 export LC_ALL |
|
9009 LANGUAGE=C |
|
9010 export LANGUAGE |
|
9011 |
|
9012 # CDPATH. |
|
9013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
9014 |
|
9015 |
|
9016 # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
9017 # ---------------------------------------- |
|
9018 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
9019 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
9020 # script with STATUS, using 1 if that was 0. |
|
9021 as_fn_error () |
|
9022 { |
|
9023 as_status=$1; test $as_status -eq 0 && as_status=1 |
|
9024 if test "$4"; then |
|
9025 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
9026 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
9027 fi |
|
9028 $as_echo "$as_me: error: $2" >&2 |
|
9029 as_fn_exit $as_status |
|
9030 } # as_fn_error |
|
9031 |
|
9032 |
|
9033 # as_fn_set_status STATUS |
|
9034 # ----------------------- |
|
9035 # Set $? to STATUS, without forking. |
|
9036 as_fn_set_status () |
|
9037 { |
|
9038 return $1 |
|
9039 } # as_fn_set_status |
|
9040 |
|
9041 # as_fn_exit STATUS |
|
9042 # ----------------- |
|
9043 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
9044 as_fn_exit () |
|
9045 { |
|
9046 set +e |
|
9047 as_fn_set_status $1 |
|
9048 exit $1 |
|
9049 } # as_fn_exit |
|
9050 |
|
9051 # as_fn_unset VAR |
|
9052 # --------------- |
|
9053 # Portably unset VAR. |
|
9054 as_fn_unset () |
|
9055 { |
|
9056 { eval $1=; unset $1;} |
|
9057 } |
|
9058 as_unset=as_fn_unset |
|
9059 # as_fn_append VAR VALUE |
|
9060 # ---------------------- |
|
9061 # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
9062 # advantage of any shell optimizations that allow amortized linear growth over |
|
9063 # repeated appends, instead of the typical quadratic growth present in naive |
|
9064 # implementations. |
|
9065 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
9066 eval 'as_fn_append () |
|
9067 { |
|
9068 eval $1+=\$2 |
|
9069 }' |
|
9070 else |
|
9071 as_fn_append () |
|
9072 { |
|
9073 eval $1=\$$1\$2 |
|
9074 } |
|
9075 fi # as_fn_append |
|
9076 |
|
9077 # as_fn_arith ARG... |
|
9078 # ------------------ |
|
9079 # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
9080 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
9081 # must be portable across $(()) and expr. |
|
9082 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
9083 eval 'as_fn_arith () |
|
9084 { |
|
9085 as_val=$(( $* )) |
|
9086 }' |
|
9087 else |
|
9088 as_fn_arith () |
|
9089 { |
|
9090 as_val=`expr "$@" || test $? -eq 1` |
|
9091 } |
|
9092 fi # as_fn_arith |
|
9093 |
|
9094 |
|
9095 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
9096 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
9097 as_expr=expr |
|
9098 else |
|
9099 as_expr=false |
|
9100 fi |
|
9101 |
|
9102 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
9103 as_basename=basename |
|
9104 else |
|
9105 as_basename=false |
|
9106 fi |
|
9107 |
|
9108 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
9109 as_dirname=dirname |
|
9110 else |
|
9111 as_dirname=false |
|
9112 fi |
|
9113 |
|
9114 as_me=`$as_basename -- "$0" || |
|
9115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
9116 X"$0" : 'X\(//\)$' \| \ |
|
9117 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
9118 $as_echo X/"$0" | |
|
9119 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
9120 s//\1/ |
|
9121 q |
|
9122 } |
|
9123 /^X\/\(\/\/\)$/{ |
|
9124 s//\1/ |
|
9125 q |
|
9126 } |
|
9127 /^X\/\(\/\).*/{ |
|
9128 s//\1/ |
|
9129 q |
|
9130 } |
|
9131 s/.*/./; q'` |
|
9132 |
|
9133 # Avoid depending upon Character Ranges. |
|
9134 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
9135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
9136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
9137 as_cr_digits='0123456789' |
|
9138 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
9139 |
|
9140 ECHO_C= ECHO_N= ECHO_T= |
|
9141 case `echo -n x` in #((((( |
|
9142 -n*) |
|
9143 case `echo 'xy\c'` in |
|
9144 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
9145 xy) ECHO_C='\c';; |
|
9146 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
9147 ECHO_T=' ';; |
|
9148 esac;; |
|
9149 *) |
|
9150 ECHO_N='-n';; |
|
9151 esac |
|
9152 |
|
9153 rm -f conf$$ conf$$.exe conf$$.file |
|
9154 if test -d conf$$.dir; then |
|
9155 rm -f conf$$.dir/conf$$.file |
|
9156 else |
|
9157 rm -f conf$$.dir |
|
9158 mkdir conf$$.dir 2>/dev/null |
|
9159 fi |
|
9160 if (echo >conf$$.file) 2>/dev/null; then |
|
9161 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
9162 as_ln_s='ln -s' |
|
9163 # ... but there are two gotchas: |
|
9164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
9165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
9166 # In both cases, we have to default to `cp -pR'. |
|
9167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
9168 as_ln_s='cp -pR' |
|
9169 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
9170 as_ln_s=ln |
|
9171 else |
|
9172 as_ln_s='cp -pR' |
|
9173 fi |
|
9174 else |
|
9175 as_ln_s='cp -pR' |
|
9176 fi |
|
9177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
9178 rmdir conf$$.dir 2>/dev/null |
|
9179 |
|
9180 |
|
9181 # as_fn_mkdir_p |
|
9182 # ------------- |
|
9183 # Create "$as_dir" as a directory, including parents if necessary. |
|
9184 as_fn_mkdir_p () |
|
9185 { |
|
9186 |
|
9187 case $as_dir in #( |
|
9188 -*) as_dir=./$as_dir;; |
|
9189 esac |
|
9190 test -d "$as_dir" || eval $as_mkdir_p || { |
|
9191 as_dirs= |
|
9192 while :; do |
|
9193 case $as_dir in #( |
|
9194 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
9195 *) as_qdir=$as_dir;; |
|
9196 esac |
|
9197 as_dirs="'$as_qdir' $as_dirs" |
|
9198 as_dir=`$as_dirname -- "$as_dir" || |
|
9199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
9200 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
9201 X"$as_dir" : 'X\(//\)$' \| \ |
|
9202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
9203 $as_echo X"$as_dir" | |
|
9204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
9205 s//\1/ |
|
9206 q |
|
9207 } |
|
9208 /^X\(\/\/\)[^/].*/{ |
|
9209 s//\1/ |
|
9210 q |
|
9211 } |
|
9212 /^X\(\/\/\)$/{ |
|
9213 s//\1/ |
|
9214 q |
|
9215 } |
|
9216 /^X\(\/\).*/{ |
|
9217 s//\1/ |
|
9218 q |
|
9219 } |
|
9220 s/.*/./; q'` |
|
9221 test -d "$as_dir" && break |
|
9222 done |
|
9223 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
9224 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
9225 |
|
9226 |
|
9227 } # as_fn_mkdir_p |
|
9228 if mkdir -p . 2>/dev/null; then |
|
9229 as_mkdir_p='mkdir -p "$as_dir"' |
|
9230 else |
|
9231 test -d ./-p && rmdir ./-p |
|
9232 as_mkdir_p=false |
|
9233 fi |
|
9234 |
|
9235 |
|
9236 # as_fn_executable_p FILE |
|
9237 # ----------------------- |
|
9238 # Test if FILE is an executable regular file. |
|
9239 as_fn_executable_p () |
|
9240 { |
|
9241 test -f "$1" && test -x "$1" |
|
9242 } # as_fn_executable_p |
|
9243 as_test_x='test -x' |
|
9244 as_executable_p=as_fn_executable_p |
|
9245 |
|
9246 # Sed expression to map a string onto a valid CPP name. |
|
9247 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
9248 |
|
9249 # Sed expression to map a string onto a valid variable name. |
|
9250 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
9251 |
|
9252 |
|
9253 exec 6>&1 |
|
9254 ## ----------------------------------- ## |
|
9255 ## Main body of $CONFIG_STATUS script. ## |
|
9256 ## ----------------------------------- ## |
|
9257 _ASEOF |
|
9258 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
9259 |
|
9260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9261 # Save the log message, to keep $0 and so on meaningful, and to |
|
9262 # report actual input values of CONFIG_FILES etc. instead of their |
|
9263 # values after options handling. |
|
9264 ac_log=" |
|
9265 This file was extended by $as_me, which was |
|
9266 generated by GNU Autoconf 2.69. Invocation command line was |
|
9267 |
|
9268 CONFIG_FILES = $CONFIG_FILES |
|
9269 CONFIG_HEADERS = $CONFIG_HEADERS |
|
9270 CONFIG_LINKS = $CONFIG_LINKS |
|
9271 CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
9272 $ $0 $@ |
|
9273 |
|
9274 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
9275 " |
|
9276 |
|
9277 _ACEOF |
|
9278 |
|
9279 case $ac_config_files in *" |
|
9280 "*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
9281 esac |
|
9282 |
|
9283 |
|
9284 |
|
9285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9286 # Files that config.status was made for. |
|
9287 config_files="$ac_config_files" |
|
9288 config_commands="$ac_config_commands" |
|
9289 |
|
9290 _ACEOF |
|
9291 |
|
9292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9293 ac_cs_usage="\ |
|
9294 \`$as_me' instantiates files and other configuration actions |
|
9295 from templates according to the current configuration. Unless the files |
|
9296 and actions are specified as TAGs, all are instantiated by default. |
|
9297 |
|
9298 Usage: $0 [OPTION]... [TAG]... |
|
9299 |
|
9300 -h, --help print this help, then exit |
|
9301 -V, --version print version number and configuration settings, then exit |
|
9302 --config print configuration, then exit |
|
9303 -q, --quiet, --silent |
|
9304 do not print progress messages |
|
9305 -d, --debug don't remove temporary files |
|
9306 --recheck update $as_me by reconfiguring in the same conditions |
|
9307 --file=FILE[:TEMPLATE] |
|
9308 instantiate the configuration file FILE |
|
9309 |
|
9310 Configuration files: |
|
9311 $config_files |
|
9312 |
|
9313 Configuration commands: |
|
9314 $config_commands |
|
9315 |
|
9316 Report bugs to the package provider." |
|
9317 |
|
9318 _ACEOF |
|
9319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9320 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
|
9321 ac_cs_version="\\ |
|
9322 config.status |
|
9323 configured by $0, generated by GNU Autoconf 2.69, |
|
9324 with options \\"\$ac_cs_config\\" |
|
9325 |
|
9326 Copyright (C) 2012 Free Software Foundation, Inc. |
|
9327 This config.status script is free software; the Free Software Foundation |
|
9328 gives unlimited permission to copy, distribute and modify it." |
|
9329 |
|
9330 ac_pwd='$ac_pwd' |
|
9331 srcdir='$srcdir' |
|
9332 test -n "\$AWK" || AWK=awk |
|
9333 _ACEOF |
|
9334 |
|
9335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9336 # The default lists apply if the user does not specify any file. |
|
9337 ac_need_defaults=: |
|
9338 while test $# != 0 |
|
9339 do |
|
9340 case $1 in |
|
9341 --*=?*) |
|
9342 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
9343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
9344 ac_shift=: |
|
9345 ;; |
|
9346 --*=) |
|
9347 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
9348 ac_optarg= |
|
9349 ac_shift=: |
|
9350 ;; |
|
9351 *) |
|
9352 ac_option=$1 |
|
9353 ac_optarg=$2 |
|
9354 ac_shift=shift |
|
9355 ;; |
|
9356 esac |
|
9357 |
|
9358 case $ac_option in |
|
9359 # Handling of the options. |
|
9360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
9361 ac_cs_recheck=: ;; |
|
9362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
9363 $as_echo "$ac_cs_version"; exit ;; |
|
9364 --config | --confi | --conf | --con | --co | --c ) |
|
9365 $as_echo "$ac_cs_config"; exit ;; |
|
9366 --debug | --debu | --deb | --de | --d | -d ) |
|
9367 debug=: ;; |
|
9368 --file | --fil | --fi | --f ) |
|
9369 $ac_shift |
|
9370 case $ac_optarg in |
|
9371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
9372 '') as_fn_error $? "missing file argument" ;; |
|
9373 esac |
|
9374 as_fn_append CONFIG_FILES " '$ac_optarg'" |
|
9375 ac_need_defaults=false;; |
|
9376 --he | --h | --help | --hel | -h ) |
|
9377 $as_echo "$ac_cs_usage"; exit ;; |
|
9378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
9379 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
9380 ac_cs_silent=: ;; |
|
9381 |
|
9382 # This is an error. |
|
9383 -*) as_fn_error $? "unrecognized option: \`$1' |
|
9384 Try \`$0 --help' for more information." ;; |
|
9385 |
|
9386 *) as_fn_append ac_config_targets " $1" |
|
9387 ac_need_defaults=false ;; |
|
9388 |
|
9389 esac |
|
9390 shift |
|
9391 done |
|
9392 |
|
9393 ac_configure_extra_args= |
|
9394 |
|
9395 if $ac_cs_silent; then |
|
9396 exec 6>/dev/null |
|
9397 ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
9398 fi |
|
9399 |
|
9400 _ACEOF |
|
9401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9402 if \$ac_cs_recheck; then |
|
9403 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
9404 shift |
|
9405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
9406 CONFIG_SHELL='$SHELL' |
|
9407 export CONFIG_SHELL |
|
9408 exec "\$@" |
|
9409 fi |
|
9410 |
|
9411 _ACEOF |
|
9412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9413 exec 5>>config.log |
|
9414 { |
|
9415 echo |
|
9416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
9417 ## Running $as_me. ## |
|
9418 _ASBOX |
|
9419 $as_echo "$ac_log" |
|
9420 } >&5 |
|
9421 |
|
9422 _ACEOF |
|
9423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9424 _ACEOF |
|
9425 |
|
9426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9427 |
|
9428 # Handling of arguments. |
|
9429 for ac_config_target in $ac_config_targets |
|
9430 do |
|
9431 case $ac_config_target in |
|
9432 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; |
|
9433 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
|
9434 |
|
9435 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
9436 esac |
|
9437 done |
|
9438 |
|
9439 |
|
9440 # If the user did not use the arguments to specify the items to instantiate, |
|
9441 # then the envvar interface is used. Set only those that are not. |
|
9442 # We use the long form for the default assignment because of an extremely |
|
9443 # bizarre bug on SunOS 4.1.3. |
|
9444 if $ac_need_defaults; then |
|
9445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
9446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
9447 fi |
|
9448 |
|
9449 # Have a temporary directory for convenience. Make it in the build tree |
|
9450 # simply because there is no reason against having it here, and in addition, |
|
9451 # creating and moving files from /tmp can sometimes cause problems. |
|
9452 # Hook for its removal unless debugging. |
|
9453 # Note that there is a small window in which the directory will not be cleaned: |
|
9454 # after its creation but before its name has been assigned to `$tmp'. |
|
9455 $debug || |
|
9456 { |
|
9457 tmp= ac_tmp= |
|
9458 trap 'exit_status=$? |
|
9459 : "${ac_tmp:=$tmp}" |
|
9460 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
|
9461 ' 0 |
|
9462 trap 'as_fn_exit 1' 1 2 13 15 |
|
9463 } |
|
9464 # Create a (secure) tmp directory for tmp files. |
|
9465 |
|
9466 { |
|
9467 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
9468 test -d "$tmp" |
|
9469 } || |
|
9470 { |
|
9471 tmp=./conf$$-$RANDOM |
|
9472 (umask 077 && mkdir "$tmp") |
|
9473 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
9474 ac_tmp=$tmp |
|
9475 |
|
9476 # Set up the scripts for CONFIG_FILES section. |
|
9477 # No need to generate them if there are no CONFIG_FILES. |
|
9478 # This happens for instance with `./config.status config.h'. |
|
9479 if test -n "$CONFIG_FILES"; then |
|
9480 |
|
9481 |
|
9482 ac_cr=`echo X | tr X '\015'` |
|
9483 # On cygwin, bash can eat \r inside `` if the user requested igncr. |
|
9484 # But we know of no other shell where ac_cr would be empty at this |
|
9485 # point, so we can use a bashism as a fallback. |
|
9486 if test "x$ac_cr" = x; then |
|
9487 eval ac_cr=\$\'\\r\' |
|
9488 fi |
|
9489 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
9490 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
9491 ac_cs_awk_cr='\\r' |
|
9492 else |
|
9493 ac_cs_awk_cr=$ac_cr |
|
9494 fi |
|
9495 |
|
9496 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
|
9497 _ACEOF |
|
9498 |
|
9499 |
|
9500 { |
|
9501 echo "cat >conf$$subs.awk <<_ACEOF" && |
|
9502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
9503 echo "_ACEOF" |
|
9504 } >conf$$subs.sh || |
|
9505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
9506 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
|
9507 ac_delim='%!_!# ' |
|
9508 for ac_last_try in false false false false false :; do |
|
9509 . ./conf$$subs.sh || |
|
9510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
9511 |
|
9512 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
9513 if test $ac_delim_n = $ac_delim_num; then |
|
9514 break |
|
9515 elif $ac_last_try; then |
|
9516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
9517 else |
|
9518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
9519 fi |
|
9520 done |
|
9521 rm -f conf$$subs.sh |
|
9522 |
|
9523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9524 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
|
9525 _ACEOF |
|
9526 sed -n ' |
|
9527 h |
|
9528 s/^/S["/; s/!.*/"]=/ |
|
9529 p |
|
9530 g |
|
9531 s/^[^!]*!// |
|
9532 :repl |
|
9533 t repl |
|
9534 s/'"$ac_delim"'$// |
|
9535 t delim |
|
9536 :nl |
|
9537 h |
|
9538 s/\(.\{148\}\)..*/\1/ |
|
9539 t more1 |
|
9540 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
9541 p |
|
9542 n |
|
9543 b repl |
|
9544 :more1 |
|
9545 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
9546 p |
|
9547 g |
|
9548 s/.\{148\}// |
|
9549 t nl |
|
9550 :delim |
|
9551 h |
|
9552 s/\(.\{148\}\)..*/\1/ |
|
9553 t more2 |
|
9554 s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
9555 p |
|
9556 b |
|
9557 :more2 |
|
9558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
9559 p |
|
9560 g |
|
9561 s/.\{148\}// |
|
9562 t delim |
|
9563 ' <conf$$subs.awk | sed ' |
|
9564 /^[^""]/{ |
|
9565 N |
|
9566 s/\n// |
|
9567 } |
|
9568 ' >>$CONFIG_STATUS || ac_write_fail=1 |
|
9569 rm -f conf$$subs.awk |
|
9570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9571 _ACAWK |
|
9572 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
|
9573 for (key in S) S_is_set[key] = 1 |
|
9574 FS = "" |
|
9575 |
|
9576 } |
|
9577 { |
|
9578 line = $ 0 |
|
9579 nfields = split(line, field, "@") |
|
9580 substed = 0 |
|
9581 len = length(field[1]) |
|
9582 for (i = 2; i < nfields; i++) { |
|
9583 key = field[i] |
|
9584 keylen = length(key) |
|
9585 if (S_is_set[key]) { |
|
9586 value = S[key] |
|
9587 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
9588 len += length(value) + length(field[++i]) |
|
9589 substed = 1 |
|
9590 } else |
|
9591 len += 1 + keylen |
|
9592 } |
|
9593 |
|
9594 print line |
|
9595 } |
|
9596 |
|
9597 _ACAWK |
|
9598 _ACEOF |
|
9599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9600 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
9601 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
9602 else |
|
9603 cat |
|
9604 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
|
9605 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
|
9606 _ACEOF |
|
9607 |
|
9608 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
|
9609 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
|
9610 # trailing colons and then remove the whole line if VPATH becomes empty |
|
9611 # (actually we leave an empty line to preserve line numbers). |
|
9612 if test "x$srcdir" = x.; then |
|
9613 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|
9614 h |
|
9615 s/// |
|
9616 s/^/:/ |
|
9617 s/[ ]*$/:/ |
|
9618 s/:\$(srcdir):/:/g |
|
9619 s/:\${srcdir}:/:/g |
|
9620 s/:@srcdir@:/:/g |
|
9621 s/^:*// |
|
9622 s/:*$// |
|
9623 x |
|
9624 s/\(=[ ]*\).*/\1/ |
|
9625 G |
|
9626 s/\n// |
|
9627 s/^[^=]*=[ ]*$// |
|
9628 }' |
|
9629 fi |
|
9630 |
|
9631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9632 fi # test -n "$CONFIG_FILES" |
|
9633 |
|
9634 |
|
9635 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
|
9636 shift |
|
9637 for ac_tag |
|
9638 do |
|
9639 case $ac_tag in |
|
9640 :[FHLC]) ac_mode=$ac_tag; continue;; |
|
9641 esac |
|
9642 case $ac_mode$ac_tag in |
|
9643 :[FHL]*:*);; |
|
9644 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
9645 :[FH]-) ac_tag=-:-;; |
|
9646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
9647 esac |
|
9648 ac_save_IFS=$IFS |
|
9649 IFS=: |
|
9650 set x $ac_tag |
|
9651 IFS=$ac_save_IFS |
|
9652 shift |
|
9653 ac_file=$1 |
|
9654 shift |
|
9655 |
|
9656 case $ac_mode in |
|
9657 :L) ac_source=$1;; |
|
9658 :[FH]) |
|
9659 ac_file_inputs= |
|
9660 for ac_f |
|
9661 do |
|
9662 case $ac_f in |
|
9663 -) ac_f="$ac_tmp/stdin";; |
|
9664 *) # Look for the file first in the build tree, then in the source tree |
|
9665 # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
9666 # because $ac_f cannot contain `:'. |
|
9667 test -f "$ac_f" || |
|
9668 case $ac_f in |
|
9669 [\\/$]*) false;; |
|
9670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
9671 esac || |
|
9672 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
9673 esac |
|
9674 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
9675 as_fn_append ac_file_inputs " '$ac_f'" |
|
9676 done |
|
9677 |
|
9678 # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
9679 # use $as_me), people would be surprised to read: |
|
9680 # /* config.h. Generated by config.status. */ |
|
9681 configure_input='Generated from '` |
|
9682 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
9683 `' by configure.' |
|
9684 if test x"$ac_file" != x-; then |
|
9685 configure_input="$ac_file. $configure_input" |
|
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
9687 $as_echo "$as_me: creating $ac_file" >&6;} |
|
9688 fi |
|
9689 # Neutralize special characters interpreted by sed in replacement strings. |
|
9690 case $configure_input in #( |
|
9691 *\&* | *\|* | *\\* ) |
|
9692 ac_sed_conf_input=`$as_echo "$configure_input" | |
|
9693 sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
9694 *) ac_sed_conf_input=$configure_input;; |
|
9695 esac |
|
9696 |
|
9697 case $ac_tag in |
|
9698 *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|
9699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|
9700 esac |
|
9701 ;; |
|
9702 esac |
|
9703 |
|
9704 ac_dir=`$as_dirname -- "$ac_file" || |
|
9705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
9706 X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
9707 X"$ac_file" : 'X\(//\)$' \| \ |
|
9708 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
9709 $as_echo X"$ac_file" | |
|
9710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
9711 s//\1/ |
|
9712 q |
|
9713 } |
|
9714 /^X\(\/\/\)[^/].*/{ |
|
9715 s//\1/ |
|
9716 q |
|
9717 } |
|
9718 /^X\(\/\/\)$/{ |
|
9719 s//\1/ |
|
9720 q |
|
9721 } |
|
9722 /^X\(\/\).*/{ |
|
9723 s//\1/ |
|
9724 q |
|
9725 } |
|
9726 s/.*/./; q'` |
|
9727 as_dir="$ac_dir"; as_fn_mkdir_p |
|
9728 ac_builddir=. |
|
9729 |
|
9730 case "$ac_dir" in |
|
9731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
9732 *) |
|
9733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
9734 # A ".." for each directory in $ac_dir_suffix. |
|
9735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
9736 case $ac_top_builddir_sub in |
|
9737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
9738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
9739 esac ;; |
|
9740 esac |
|
9741 ac_abs_top_builddir=$ac_pwd |
|
9742 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
9743 # for backward compatibility: |
|
9744 ac_top_builddir=$ac_top_build_prefix |
|
9745 |
|
9746 case $srcdir in |
|
9747 .) # We are building in place. |
|
9748 ac_srcdir=. |
|
9749 ac_top_srcdir=$ac_top_builddir_sub |
|
9750 ac_abs_top_srcdir=$ac_pwd ;; |
|
9751 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
9752 ac_srcdir=$srcdir$ac_dir_suffix; |
|
9753 ac_top_srcdir=$srcdir |
|
9754 ac_abs_top_srcdir=$srcdir ;; |
|
9755 *) # Relative name. |
|
9756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
9757 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
9758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
9759 esac |
|
9760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
9761 |
|
9762 |
|
9763 case $ac_mode in |
|
9764 :F) |
|
9765 # |
|
9766 # CONFIG_FILE |
|
9767 # |
|
9768 |
|
9769 _ACEOF |
|
9770 |
|
9771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9772 # If the template does not know about datarootdir, expand it. |
|
9773 # FIXME: This hack should be removed a few years after 2.60. |
|
9774 ac_datarootdir_hack=; ac_datarootdir_seen= |
|
9775 ac_sed_dataroot=' |
|
9776 /datarootdir/ { |
|
9777 p |
|
9778 q |
|
9779 } |
|
9780 /@datadir@/p |
|
9781 /@docdir@/p |
|
9782 /@infodir@/p |
|
9783 /@localedir@/p |
|
9784 /@mandir@/p' |
|
9785 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
|
9786 *datarootdir*) ac_datarootdir_seen=yes;; |
|
9787 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
9789 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
9790 _ACEOF |
|
9791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9792 ac_datarootdir_hack=' |
|
9793 s&@datadir@&$datadir&g |
|
9794 s&@docdir@&$docdir&g |
|
9795 s&@infodir@&$infodir&g |
|
9796 s&@localedir@&$localedir&g |
|
9797 s&@mandir@&$mandir&g |
|
9798 s&\\\${datarootdir}&$datarootdir&g' ;; |
|
9799 esac |
|
9800 _ACEOF |
|
9801 |
|
9802 # Neutralize VPATH when `$srcdir' = `.'. |
|
9803 # Shell code in configure.ac might set extrasub. |
|
9804 # FIXME: do we really want to maintain this feature? |
|
9805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
9806 ac_sed_extra="$ac_vpsub |
|
9807 $extrasub |
|
9808 _ACEOF |
|
9809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
9810 :t |
|
9811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
9812 s|@configure_input@|$ac_sed_conf_input|;t t |
|
9813 s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
9814 s&@top_build_prefix@&$ac_top_build_prefix&;t t |
|
9815 s&@srcdir@&$ac_srcdir&;t t |
|
9816 s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
9817 s&@top_srcdir@&$ac_top_srcdir&;t t |
|
9818 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
9819 s&@builddir@&$ac_builddir&;t t |
|
9820 s&@abs_builddir@&$ac_abs_builddir&;t t |
|
9821 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
9822 $ac_datarootdir_hack |
|
9823 " |
|
9824 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
|
9825 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
9826 |
|
9827 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
9828 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
|
9829 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
|
9830 "$ac_tmp/out"`; test -z "$ac_out"; } && |
|
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
9832 which seems to be undefined. Please make sure it is defined" >&5 |
|
9833 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
9834 which seems to be undefined. Please make sure it is defined" >&2;} |
|
9835 |
|
9836 rm -f "$ac_tmp/stdin" |
|
9837 case $ac_file in |
|
9838 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
|
9839 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
|
9840 esac \ |
|
9841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
9842 ;; |
|
9843 |
|
9844 |
|
9845 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
|
9846 $as_echo "$as_me: executing $ac_file commands" >&6;} |
|
9847 ;; |
|
9848 esac |
|
9849 |
|
9850 |
|
9851 case $ac_file$ac_mode in |
|
9852 "default":C) chmod +x config/nspr-config ;; |
|
9853 |
|
9854 esac |
|
9855 done # for ac_tag |
|
9856 |
|
9857 |
|
9858 as_fn_exit 0 |
|
9859 _ACEOF |
|
9860 ac_clean_files=$ac_clean_files_save |
|
9861 |
|
9862 test $ac_write_fail = 0 || |
|
9863 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
|
9864 |
|
9865 |
|
9866 # configure is writing to config.log, and then calls config.status. |
|
9867 # config.status does its own redirection, appending to config.log. |
|
9868 # Unfortunately, on DOS this fails, as config.log is still kept open |
|
9869 # by configure, so config.status won't be able to write to it; its |
|
9870 # output is simply discarded. So we exec the FD to /dev/null, |
|
9871 # effectively closing config.log, so it can be properly (re)opened and |
|
9872 # appended to by config.status. When coming back to configure, we |
|
9873 # need to make the FD available again. |
|
9874 if test "$no_create" != yes; then |
|
9875 ac_cs_success=: |
|
9876 ac_config_status_args= |
|
9877 test "$silent" = yes && |
|
9878 ac_config_status_args="$ac_config_status_args --quiet" |
|
9879 exec 5>/dev/null |
|
9880 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
9881 exec 5>>config.log |
|
9882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
9883 # would make configure fail if this is the last instruction. |
|
9884 $ac_cs_success || as_fn_exit 1 |
|
9885 fi |
|
9886 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
9888 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
9889 fi |
|
9890 |