"Fossies" - the Fresh Open Source Software Archive 
Member "mozplugger-2.1.6/configure" (17 Apr 2014, 173226 Bytes) of package /linux/www/old/mozplugger-2.1.6.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mozplugger 2.1.6.
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='mozplugger'
579 PACKAGE_TARNAME='mozplugger'
580 PACKAGE_VERSION='2.1.6'
581 PACKAGE_STRING='mozplugger 2.1.6'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="child.c"
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 MOZPLUGGER_SO_BLOB
624 BIN2O
625 PLUGINDIRS
626 LDSHARED
627 XCPPFLAGS
628 XCFLAGS
629 LIBOBJS
630 EGREP
631 GREP
632 PLUGINDIR
633 CPP
634 XMKMF
635 SET_MAKE
636 LN_S
637 OBJEXT
638 EXEEXT
639 ac_ct_CC
640 CPPFLAGS
641 LDFLAGS
642 CFLAGS
643 CC
644 target_alias
645 host_alias
646 build_alias
647 LIBS
648 ECHO_T
649 ECHO_N
650 ECHO_C
651 DEFS
652 mandir
653 localedir
654 libdir
655 psdir
656 pdfdir
657 dvidir
658 htmldir
659 infodir
660 docdir
661 oldincludedir
662 includedir
663 localstatedir
664 sharedstatedir
665 sysconfdir
666 datadir
667 datarootdir
668 libexecdir
669 sbindir
670 bindir
671 program_transform_name
672 prefix
673 exec_prefix
674 PACKAGE_URL
675 PACKAGE_BUGREPORT
676 PACKAGE_STRING
677 PACKAGE_VERSION
678 PACKAGE_TARNAME
679 PACKAGE_NAME
680 PATH_SEPARATOR
681 SHELL'
682 ac_subst_files=''
683 ac_user_opts='
684 enable_option_checking
685 with_x
686 enable_gcov
687 enable_debug
688 enable_always_xembed
689 '
690 ac_precious_vars='build_alias
691 host_alias
692 target_alias
693 CC
694 CFLAGS
695 LDFLAGS
696 LIBS
697 CPPFLAGS
698 XMKMF
699 CPP
700 PLUGINDIR'
701
702
703 # Initialize some variables set by options.
704 ac_init_help=
705 ac_init_version=false
706 ac_unrecognized_opts=
707 ac_unrecognized_sep=
708 # The variables have the same names as the options, with
709 # dashes changed to underlines.
710 cache_file=/dev/null
711 exec_prefix=NONE
712 no_create=
713 no_recursion=
714 prefix=NONE
715 program_prefix=NONE
716 program_suffix=NONE
717 program_transform_name=s,x,x,
718 silent=
719 site=
720 srcdir=
721 verbose=
722 x_includes=NONE
723 x_libraries=NONE
724
725 # Installation directory options.
726 # These are left unexpanded so users can "make install exec_prefix=/foo"
727 # and all the variables that are supposed to be based on exec_prefix
728 # by default will actually change.
729 # Use braces instead of parens because sh, perl, etc. also accept them.
730 # (The list follows the same order as the GNU Coding Standards.)
731 bindir='${exec_prefix}/bin'
732 sbindir='${exec_prefix}/sbin'
733 libexecdir='${exec_prefix}/libexec'
734 datarootdir='${prefix}/share'
735 datadir='${datarootdir}'
736 sysconfdir='${prefix}/etc'
737 sharedstatedir='${prefix}/com'
738 localstatedir='${prefix}/var'
739 includedir='${prefix}/include'
740 oldincludedir='/usr/include'
741 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
742 infodir='${datarootdir}/info'
743 htmldir='${docdir}'
744 dvidir='${docdir}'
745 pdfdir='${docdir}'
746 psdir='${docdir}'
747 libdir='${exec_prefix}/lib'
748 localedir='${datarootdir}/locale'
749 mandir='${datarootdir}/man'
750
751 ac_prev=
752 ac_dashdash=
753 for ac_option
754 do
755 # If the previous option needs an argument, assign it.
756 if test -n "$ac_prev"; then
757 eval $ac_prev=\$ac_option
758 ac_prev=
759 continue
760 fi
761
762 case $ac_option in
763 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
764 *=) ac_optarg= ;;
765 *) ac_optarg=yes ;;
766 esac
767
768 # Accept the important Cygnus configure options, so we can diagnose typos.
769
770 case $ac_dashdash$ac_option in
771 --)
772 ac_dashdash=yes ;;
773
774 -bindir | --bindir | --bindi | --bind | --bin | --bi)
775 ac_prev=bindir ;;
776 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
777 bindir=$ac_optarg ;;
778
779 -build | --build | --buil | --bui | --bu)
780 ac_prev=build_alias ;;
781 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
782 build_alias=$ac_optarg ;;
783
784 -cache-file | --cache-file | --cache-fil | --cache-fi \
785 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
786 ac_prev=cache_file ;;
787 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
788 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
789 cache_file=$ac_optarg ;;
790
791 --config-cache | -C)
792 cache_file=config.cache ;;
793
794 -datadir | --datadir | --datadi | --datad)
795 ac_prev=datadir ;;
796 -datadir=* | --datadir=* | --datadi=* | --datad=*)
797 datadir=$ac_optarg ;;
798
799 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
800 | --dataroo | --dataro | --datar)
801 ac_prev=datarootdir ;;
802 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
803 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
804 datarootdir=$ac_optarg ;;
805
806 -disable-* | --disable-*)
807 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
808 # Reject names that are not valid shell variable names.
809 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
810 as_fn_error $? "invalid feature name: $ac_useropt"
811 ac_useropt_orig=$ac_useropt
812 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
813 case $ac_user_opts in
814 *"
815 "enable_$ac_useropt"
816 "*) ;;
817 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
818 ac_unrecognized_sep=', ';;
819 esac
820 eval enable_$ac_useropt=no ;;
821
822 -docdir | --docdir | --docdi | --doc | --do)
823 ac_prev=docdir ;;
824 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825 docdir=$ac_optarg ;;
826
827 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 ac_prev=dvidir ;;
829 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830 dvidir=$ac_optarg ;;
831
832 -enable-* | --enable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841 "enable_$ac_useropt"
842 "*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
845 esac
846 eval enable_$ac_useropt=\$ac_optarg ;;
847
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix=$ac_optarg ;;
856
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
860
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
867
868 -host | --host | --hos | --ho)
869 ac_prev=host_alias ;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias=$ac_optarg ;;
872
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
878
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir=$ac_optarg ;;
885
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir=$ac_optarg ;;
890
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
894 libdir=$ac_optarg ;;
895
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir=$ac_optarg ;;
902
903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
907
908 -localstatedir | --localstatedir | --localstatedi | --localstated \
909 | --localstate | --localstat | --localsta | --localst | --locals)
910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913 localstatedir=$ac_optarg ;;
914
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918 mandir=$ac_optarg ;;
919
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
923
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
926 no_create=yes ;;
927
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
931
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir=$ac_optarg ;;
940
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944 prefix=$ac_optarg ;;
945
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix=$ac_optarg ;;
952
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix=$ac_optarg ;;
959
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name=$ac_optarg ;;
976
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
981
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
986
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
990
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 ac_prev=sbindir ;;
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 | --sbi=* | --sb=*)
995 sbindir=$ac_optarg ;;
996
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1000 | --sha | --sh)
1001 ac_prev=sharedstatedir ;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 | --sha=* | --sh=*)
1006 sharedstatedir=$ac_optarg ;;
1007
1008 -site | --site | --sit)
1009 ac_prev=site ;;
1010 -site=* | --site=* | --sit=*)
1011 site=$ac_optarg ;;
1012
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 ac_prev=srcdir ;;
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016 srcdir=$ac_optarg ;;
1017
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev=sysconfdir ;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023 sysconfdir=$ac_optarg ;;
1024
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
1026 ac_prev=target_alias ;;
1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028 target_alias=$ac_optarg ;;
1029
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031 verbose=yes ;;
1032
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version=: ;;
1035
1036 -with-* | --with-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid package name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "with_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval with_$ac_useropt=\$ac_optarg ;;
1051
1052 -without-* | --without-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "with_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval with_$ac_useropt=no ;;
1067
1068 --x)
1069 # Obsolete; use --with-x.
1070 with_x=yes ;;
1071
1072 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1073 | --x-incl | --x-inc | --x-in | --x-i)
1074 ac_prev=x_includes ;;
1075 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1076 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1077 x_includes=$ac_optarg ;;
1078
1079 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1080 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1081 ac_prev=x_libraries ;;
1082 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1083 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1084 x_libraries=$ac_optarg ;;
1085
1086 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1087 Try \`$0 --help' for more information"
1088 ;;
1089
1090 *=*)
1091 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1092 # Reject names that are not valid shell variable names.
1093 case $ac_envvar in #(
1094 '' | [0-9]* | *[!_$as_cr_alnum]* )
1095 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1096 esac
1097 eval $ac_envvar=\$ac_optarg
1098 export $ac_envvar ;;
1099
1100 *)
1101 # FIXME: should be removed in autoconf 3.0.
1102 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1103 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1105 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1106 ;;
1107
1108 esac
1109 done
1110
1111 if test -n "$ac_prev"; then
1112 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1113 as_fn_error $? "missing argument to $ac_option"
1114 fi
1115
1116 if test -n "$ac_unrecognized_opts"; then
1117 case $enable_option_checking in
1118 no) ;;
1119 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1120 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1121 esac
1122 fi
1123
1124 # Check all directory arguments for consistency.
1125 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129 do
1130 eval ac_val=\$$ac_var
1131 # Remove trailing slashes.
1132 case $ac_val in
1133 */ )
1134 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1135 eval $ac_var=\$ac_val;;
1136 esac
1137 # Be sure to have absolute directory names.
1138 case $ac_val in
1139 [\\/$]* | ?:[\\/]* ) continue;;
1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1141 esac
1142 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1143 done
1144
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1151
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 as_fn_error $? "working directory cannot be determined"
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 as_fn_error $? "pwd does not report name of working directory"
1173
1174
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$as_myself" ||
1180 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$as_myself" : 'X\(//\)[^/]' \| \
1182 X"$as_myself" : 'X\(//\)$' \| \
1183 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1184 $as_echo X"$as_myself" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\).*/{
1198 s//\1/
1199 q
1200 }
1201 s/.*/./; q'`
1202 srcdir=$ac_confdir
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 srcdir=..
1205 fi
1206 else
1207 ac_srcdir_defaulted=no
1208 fi
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1212 fi
1213 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1214 ac_abs_confdir=`(
1215 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220 fi
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1233
1234 #
1235 # Report the --help message.
1236 #
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures mozplugger 2.1.6 to adapt to many kinds of systems.
1242
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248 Defaults for the options are specified in brackets.
1249
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking ...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1271
1272 For better control, use the options below.
1273
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/mozplugger]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1295
1296 cat <<\_ACEOF
1297
1298 X features:
1299 --x-includes=DIR X include files are in DIR
1300 --x-libraries=DIR X library files are in DIR
1301 _ACEOF
1302 fi
1303
1304 if test -n "$ac_init_help"; then
1305 case $ac_init_help in
1306 short | recursive ) echo "Configuration of mozplugger 2.1.6:";;
1307 esac
1308 cat <<\_ACEOF
1309
1310 Optional Features:
1311 --disable-option-checking ignore unrecognized --enable/--with options
1312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1314 --enable-gcov enable test coverage with gcov [default=no]
1315 --enable-debug enable debug output [default=no]
1316 --enable-always-xembed enable build with xembed always enabled [default=no]
1317
1318 Optional Packages:
1319 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1320 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1321 --with-x use the X Window System
1322
1323 Some influential environment variables:
1324 CC C compiler command
1325 CFLAGS C compiler flags
1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1327 nonstandard directory <lib dir>
1328 LIBS libraries to pass to the linker, e.g. -l<library>
1329 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1330 you have headers in a nonstandard directory <include dir>
1331 XMKMF Path to xmkmf, Makefile generator for X Window System
1332 CPP C preprocessor
1333 PLUGINDIR The path where the plugin is to be installed
1334
1335 Use these variables to override the choices made by `configure' or to help
1336 it to find libraries and programs with nonstandard names/locations.
1337
1338 Report bugs to the package provider.
1339 _ACEOF
1340 ac_status=$?
1341 fi
1342
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" ||
1347 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1348 continue
1349 ac_builddir=.
1350
1351 case "$ac_dir" in
1352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *)
1354 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 esac ;;
1361 esac
1362 ac_abs_top_builddir=$ac_pwd
1363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir=$ac_top_build_prefix
1366
1367 case $srcdir in
1368 .) # We are building in place.
1369 ac_srcdir=.
1370 ac_top_srcdir=$ac_top_builddir_sub
1371 ac_abs_top_srcdir=$ac_pwd ;;
1372 [\\/]* | ?:[\\/]* ) # Absolute name.
1373 ac_srcdir=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir=$srcdir
1375 ac_abs_top_srcdir=$srcdir ;;
1376 *) # Relative name.
1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 esac
1381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383 cd "$ac_dir" || { ac_status=$?; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1386 echo &&
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1391 else
1392 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 fi || ac_status=$?
1394 cd "$ac_pwd" || { ac_status=$?; break; }
1395 done
1396 fi
1397
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1400 cat <<\_ACEOF
1401 mozplugger configure 2.1.6
1402 generated by GNU Autoconf 2.69
1403
1404 Copyright (C) 2012 Free Software Foundation, Inc.
1405 This configure script is free software; the Free Software Foundation
1406 gives unlimited permission to copy, distribute and modify it.
1407 _ACEOF
1408 exit
1409 fi
1410
1411 ## ------------------------ ##
1412 ## Autoconf initialization. ##
1413 ## ------------------------ ##
1414
1415 # ac_fn_c_try_compile LINENO
1416 # --------------------------
1417 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1418 ac_fn_c_try_compile ()
1419 {
1420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421 rm -f conftest.$ac_objext
1422 if { { ac_try="$ac_compile"
1423 case "(($ac_try" in
1424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1426 esac
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 $as_echo "$ac_try_echo"; } >&5
1429 (eval "$ac_compile") 2>conftest.err
1430 ac_status=$?
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1435 fi
1436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } && {
1438 test -z "$ac_c_werror_flag" ||
1439 test ! -s conftest.err
1440 } && test -s conftest.$ac_objext; then :
1441 ac_retval=0
1442 else
1443 $as_echo "$as_me: failed program was:" >&5
1444 sed 's/^/| /' conftest.$ac_ext >&5
1445
1446 ac_retval=1
1447 fi
1448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1449 as_fn_set_status $ac_retval
1450
1451 } # ac_fn_c_try_compile
1452
1453 # ac_fn_c_try_cpp LINENO
1454 # ----------------------
1455 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1456 ac_fn_c_try_cpp ()
1457 {
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 if { { ac_try="$ac_cpp conftest.$ac_ext"
1460 case "(($ac_try" in
1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462 *) ac_try_echo=$ac_try;;
1463 esac
1464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465 $as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1467 ac_status=$?
1468 if test -s conftest.err; then
1469 grep -v '^ *+' conftest.err >conftest.er1
1470 cat conftest.er1 >&5
1471 mv -f conftest.er1 conftest.err
1472 fi
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } > conftest.i && {
1475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1477 }; then :
1478 ac_retval=0
1479 else
1480 $as_echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.$ac_ext >&5
1482
1483 ac_retval=1
1484 fi
1485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486 as_fn_set_status $ac_retval
1487
1488 } # ac_fn_c_try_cpp
1489
1490 # ac_fn_c_try_link LINENO
1491 # -----------------------
1492 # Try to link conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_c_try_link ()
1494 {
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext conftest$ac_exeext
1497 if { { ac_try="$ac_link"
1498 case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1501 esac
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_link") 2>conftest.err
1505 ac_status=$?
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1510 fi
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest$ac_exeext && {
1516 test "$cross_compiling" = yes ||
1517 test -x conftest$ac_exeext
1518 }; then :
1519 ac_retval=0
1520 else
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525 fi
1526 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1527 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1528 # interfere with the next link command; also delete a directory that is
1529 # left behind by Apple's compiler. We do this before executing the actions.
1530 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval
1533
1534 } # ac_fn_c_try_link
1535
1536 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1537 # -------------------------------------------------------
1538 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1539 # the include files in INCLUDES and setting the cache variable VAR
1540 # accordingly.
1541 ac_fn_c_check_header_mongrel ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if eval \${$3+:} false; then :
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1546 $as_echo_n "checking for $2... " >&6; }
1547 if eval \${$3+:} false; then :
1548 $as_echo_n "(cached) " >&6
1549 fi
1550 eval ac_res=\$$3
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1552 $as_echo "$ac_res" >&6; }
1553 else
1554 # Is the header compilable?
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1556 $as_echo_n "checking $2 usability... " >&6; }
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1559 $4
1560 #include <$2>
1561 _ACEOF
1562 if ac_fn_c_try_compile "$LINENO"; then :
1563 ac_header_compiler=yes
1564 else
1565 ac_header_compiler=no
1566 fi
1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1569 $as_echo "$ac_header_compiler" >&6; }
1570
1571 # Is the header present?
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1573 $as_echo_n "checking $2 presence... " >&6; }
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_cpp "$LINENO"; then :
1579 ac_header_preproc=yes
1580 else
1581 ac_header_preproc=no
1582 fi
1583 rm -f conftest.err conftest.i conftest.$ac_ext
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1585 $as_echo "$ac_header_preproc" >&6; }
1586
1587 # So? What about this header?
1588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1589 yes:no: )
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1591 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1593 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1594 ;;
1595 no:yes:* )
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1597 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1599 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1601 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1603 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1605 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1606 ;;
1607 esac
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if eval \${$3+:} false; then :
1611 $as_echo_n "(cached) " >&6
1612 else
1613 eval "$3=\$ac_header_compiler"
1614 fi
1615 eval ac_res=\$$3
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617 $as_echo "$ac_res" >&6; }
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
1621 } # ac_fn_c_check_header_mongrel
1622
1623 # ac_fn_c_try_run LINENO
1624 # ----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1626 # that executables *can* be run.
1627 ac_fn_c_try_run ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>&5
1638 ac_status=$?
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1641 { { case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_try") 2>&5
1648 ac_status=$?
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; }; }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: program exited with status $ac_status" >&5
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=$ac_status
1658 fi
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_run
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 eval "$3=yes"
1684 else
1685 eval "$3=no"
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694 } # ac_fn_c_check_header_compile
1695
1696 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1697 # -------------------------------------------
1698 # Tests whether TYPE exists after having included INCLUDES, setting cache
1699 # variable VAR accordingly.
1700 ac_fn_c_check_type ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if eval \${$3+:} false; then :
1706 $as_echo_n "(cached) " >&6
1707 else
1708 eval "$3=no"
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 $4
1712 int
1713 main ()
1714 {
1715 if (sizeof ($2))
1716 return 0;
1717 ;
1718 return 0;
1719 }
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 int
1726 main ()
1727 {
1728 if (sizeof (($2)))
1729 return 0;
1730 ;
1731 return 0;
1732 }
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735
1736 else
1737 eval "$3=yes"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748 } # ac_fn_c_check_type
1749
1750 # ac_fn_c_find_intX_t LINENO BITS VAR
1751 # -----------------------------------
1752 # Finds a signed integer type with width BITS, setting cache variable VAR
1753 # accordingly.
1754 ac_fn_c_find_intX_t ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1758 $as_echo_n "checking for int$2_t... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 eval "$3=no"
1763 # Order is important - never check a type that is potentially smaller
1764 # than half of the expected target width.
1765 for ac_type in int$2_t 'int' 'long int' \
1766 'long long int' 'short int' 'signed char'; do
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $ac_includes_default
1770 enum { N = $2 / 2 - 1 };
1771 int
1772 main ()
1773 {
1774 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1775 test_array [0] = 0;
1776 return test_array [0];
1777
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $ac_includes_default
1786 enum { N = $2 / 2 - 1 };
1787 int
1788 main ()
1789 {
1790 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1791 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1792 test_array [0] = 0;
1793 return test_array [0];
1794
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800
1801 else
1802 case $ac_type in #(
1803 int$2_t) :
1804 eval "$3=yes" ;; #(
1805 *) :
1806 eval "$3=\$ac_type" ;;
1807 esac
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 if eval test \"x\$"$3"\" = x"no"; then :
1813
1814 else
1815 break
1816 fi
1817 done
1818 fi
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_find_intX_t
1825
1826 # ac_fn_c_find_uintX_t LINENO BITS VAR
1827 # ------------------------------------
1828 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1829 # accordingly.
1830 ac_fn_c_find_uintX_t ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1834 $as_echo_n "checking for uint$2_t... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 eval "$3=no"
1839 # Order is important - never check a type that is potentially smaller
1840 # than half of the expected target width.
1841 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1842 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $ac_includes_default
1846 int
1847 main ()
1848 {
1849 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1850 test_array [0] = 0;
1851 return test_array [0];
1852
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 case $ac_type in #(
1859 uint$2_t) :
1860 eval "$3=yes" ;; #(
1861 *) :
1862 eval "$3=\$ac_type" ;;
1863 esac
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 if eval test \"x\$"$3"\" = x"no"; then :
1867
1868 else
1869 break
1870 fi
1871 done
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_find_uintX_t
1879
1880 # ac_fn_c_check_func LINENO FUNC VAR
1881 # ----------------------------------
1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1883 ac_fn_c_check_func ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895 #define $2 innocuous_$2
1896
1897 /* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below.
1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900 <limits.h> exists even on freestanding compilers. */
1901
1902 #ifdef __STDC__
1903 # include <limits.h>
1904 #else
1905 # include <assert.h>
1906 #endif
1907
1908 #undef $2
1909
1910 /* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1913 #ifdef __cplusplus
1914 extern "C"
1915 #endif
1916 char $2 ();
1917 /* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920 #if defined __stub_$2 || defined __stub___$2
1921 choke me
1922 #endif
1923
1924 int
1925 main ()
1926 {
1927 return $2 ();
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_link "$LINENO"; then :
1933 eval "$3=yes"
1934 else
1935 eval "$3=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext \
1938 conftest$ac_exeext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_check_func
1946 cat >config.log <<_ACEOF
1947 This file contains any messages produced by compilers while
1948 running configure, to aid debugging if configure makes a mistake.
1949
1950 It was created by mozplugger $as_me 2.1.6, which was
1951 generated by GNU Autoconf 2.69. Invocation command line was
1952
1953 $ $0 $@
1954
1955 _ACEOF
1956 exec 5>>config.log
1957 {
1958 cat <<_ASUNAME
1959 ## --------- ##
1960 ## Platform. ##
1961 ## --------- ##
1962
1963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1968
1969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1971
1972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1975 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1979
1980 _ASUNAME
1981
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 $as_echo "PATH: $as_dir"
1988 done
1989 IFS=$as_save_IFS
1990
1991 } >&5
1992
1993 cat >&5 <<_ACEOF
1994
1995
1996 ## ----------- ##
1997 ## Core tests. ##
1998 ## ----------- ##
1999
2000 _ACEOF
2001
2002
2003 # Keep a trace of the command line.
2004 # Strip out --no-create and --no-recursion so they do not pile up.
2005 # Strip out --silent because we don't want to record it for future runs.
2006 # Also quote any args containing shell meta-characters.
2007 # Make two passes to allow for proper duplicate-argument suppression.
2008 ac_configure_args=
2009 ac_configure_args0=
2010 ac_configure_args1=
2011 ac_must_keep_next=false
2012 for ac_pass in 1 2
2013 do
2014 for ac_arg
2015 do
2016 case $ac_arg in
2017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2019 | -silent | --silent | --silen | --sile | --sil)
2020 continue ;;
2021 *\'*)
2022 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 esac
2024 case $ac_pass in
2025 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2026 2)
2027 as_fn_append ac_configure_args1 " '$ac_arg'"
2028 if test $ac_must_keep_next = true; then
2029 ac_must_keep_next=false # Got value, back to normal.
2030 else
2031 case $ac_arg in
2032 *=* | --config-cache | -C | -disable-* | --disable-* \
2033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2035 | -with-* | --with-* | -without-* | --without-* | --x)
2036 case "$ac_configure_args0 " in
2037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 esac
2039 ;;
2040 -* ) ac_must_keep_next=true ;;
2041 esac
2042 fi
2043 as_fn_append ac_configure_args " '$ac_arg'"
2044 ;;
2045 esac
2046 done
2047 done
2048 { ac_configure_args0=; unset ac_configure_args0;}
2049 { ac_configure_args1=; unset ac_configure_args1;}
2050
2051 # When interrupted or exit'd, cleanup temporary files, and complete
2052 # config.log. We remove comments because anyway the quotes in there
2053 # would cause problems or look ugly.
2054 # WARNING: Use '\'' to represent an apostrophe within the trap.
2055 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2056 trap 'exit_status=$?
2057 # Save into config.log some information that might help in debugging.
2058 {
2059 echo
2060
2061 $as_echo "## ---------------- ##
2062 ## Cache variables. ##
2063 ## ---------------- ##"
2064 echo
2065 # The following way of writing the cache mishandles newlines in values,
2066 (
2067 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in #(
2070 *${as_nl}*)
2071 case $ac_var in #(
2072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 esac
2075 case $ac_var in #(
2076 _ | IFS | as_nl) ;; #(
2077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2078 *) { eval $ac_var=; unset $ac_var;} ;;
2079 esac ;;
2080 esac
2081 done
2082 (set) 2>&1 |
2083 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2084 *${as_nl}ac_space=\ *)
2085 sed -n \
2086 "s/'\''/'\''\\\\'\'''\''/g;
2087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 ;; #(
2089 *)
2090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2091 ;;
2092 esac |
2093 sort
2094 )
2095 echo
2096
2097 $as_echo "## ----------------- ##
2098 ## Output variables. ##
2099 ## ----------------- ##"
2100 echo
2101 for ac_var in $ac_subst_vars
2102 do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
2108 done | sort
2109 echo
2110
2111 if test -n "$ac_subst_files"; then
2112 $as_echo "## ------------------- ##
2113 ## File substitutions. ##
2114 ## ------------------- ##"
2115 echo
2116 for ac_var in $ac_subst_files
2117 do
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
2123 done | sort
2124 echo
2125 fi
2126
2127 if test -s confdefs.h; then
2128 $as_echo "## ----------- ##
2129 ## confdefs.h. ##
2130 ## ----------- ##"
2131 echo
2132 cat confdefs.h
2133 echo
2134 fi
2135 test "$ac_signal" != 0 &&
2136 $as_echo "$as_me: caught signal $ac_signal"
2137 $as_echo "$as_me: exit $exit_status"
2138 } >&5
2139 rm -f core *.core core.conftest.* &&
2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 exit $exit_status
2142 ' 0
2143 for ac_signal in 1 2 13 15; do
2144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2145 done
2146 ac_signal=0
2147
2148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2149 rm -f -r conftest* confdefs.h
2150
2151 $as_echo "/* confdefs.h */" > confdefs.h
2152
2153 # Predefined preprocessor variables.
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_URL "$PACKAGE_URL"
2177 _ACEOF
2178
2179
2180 # Let the site file select an alternate cache file if it wants to.
2181 # Prefer an explicitly selected file to automatically selected ones.
2182 ac_site_file1=NONE
2183 ac_site_file2=NONE
2184 if test -n "$CONFIG_SITE"; then
2185 # We do not want a PATH search for config.site.
2186 case $CONFIG_SITE in #((
2187 -*) ac_site_file1=./$CONFIG_SITE;;
2188 */*) ac_site_file1=$CONFIG_SITE;;
2189 *) ac_site_file1=./$CONFIG_SITE;;
2190 esac
2191 elif test "x$prefix" != xNONE; then
2192 ac_site_file1=$prefix/share/config.site
2193 ac_site_file2=$prefix/etc/config.site
2194 else
2195 ac_site_file1=$ac_default_prefix/share/config.site
2196 ac_site_file2=$ac_default_prefix/etc/config.site
2197 fi
2198 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2199 do
2200 test "x$ac_site_file" = xNONE && continue
2201 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2203 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2204 sed 's/^/| /' "$ac_site_file" >&5
2205 . "$ac_site_file" \
2206 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 as_fn_error $? "failed to load site script $ac_site_file
2209 See \`config.log' for more details" "$LINENO" 5; }
2210 fi
2211 done
2212
2213 if test -r "$cache_file"; then
2214 # Some versions of bash will fail to source /dev/null (special files
2215 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2216 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218 $as_echo "$as_me: loading cache $cache_file" >&6;}
2219 case $cache_file in
2220 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221 *) . "./$cache_file";;
2222 esac
2223 fi
2224 else
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226 $as_echo "$as_me: creating cache $cache_file" >&6;}
2227 >$cache_file
2228 fi
2229
2230 # Check that the precious variables saved in the cache have kept the same
2231 # value.
2232 ac_cache_corrupted=false
2233 for ac_var in $ac_precious_vars; do
2234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235 eval ac_new_set=\$ac_env_${ac_var}_set
2236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237 eval ac_new_val=\$ac_env_${ac_var}_value
2238 case $ac_old_set,$ac_new_set in
2239 set,)
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242 ac_cache_corrupted=: ;;
2243 ,set)
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2247 ,);;
2248 *)
2249 if test "x$ac_old_val" != "x$ac_new_val"; then
2250 # differences in whitespace do not lead to failure.
2251 ac_old_val_w=`echo x $ac_old_val`
2252 ac_new_val_w=`echo x $ac_new_val`
2253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256 ac_cache_corrupted=:
2257 else
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260 eval $ac_var=\$ac_old_val
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2266 fi;;
2267 esac
2268 # Pass precious variables to config.status.
2269 if test "$ac_new_set" = set; then
2270 case $ac_new_val in
2271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 *) ac_arg=$ac_var=$ac_new_val ;;
2273 esac
2274 case " $ac_configure_args " in
2275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277 esac
2278 fi
2279 done
2280 if $ac_cache_corrupted; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 fi
2287 ## -------------------- ##
2288 ## Main body of script. ##
2289 ## -------------------- ##
2290
2291 ac_ext=c
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298 #AC_INIT([mozplugger], [CVS-2013-Feb-18])
2299
2300 ac_config_headers="$ac_config_headers config.h"
2301
2302
2303 # Checks for programs.
2304 ac_ext=c
2305 ac_cpp='$CPP $CPPFLAGS'
2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2313 $as_echo_n "checking for $ac_word... " >&6; }
2314 if ${ac_cv_prog_CC+:} false; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 if test -n "$CC"; then
2318 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 CC=$ac_cv_prog_CC
2338 if test -n "$CC"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2340 $as_echo "$CC" >&6; }
2341 else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2343 $as_echo "no" >&6; }
2344 fi
2345
2346
2347 fi
2348 if test -z "$ac_cv_prog_CC"; then
2349 ac_ct_CC=$CC
2350 # Extract the first word of "gcc", so it can be a program name with args.
2351 set dummy gcc; ac_word=$2
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2353 $as_echo_n "checking for $ac_word... " >&6; }
2354 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 if test -n "$ac_ct_CC"; then
2358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_ac_ct_CC="gcc"
2368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2370 fi
2371 done
2372 done
2373 IFS=$as_save_IFS
2374
2375 fi
2376 fi
2377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2378 if test -n "$ac_ct_CC"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2380 $as_echo "$ac_ct_CC" >&6; }
2381 else
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383 $as_echo "no" >&6; }
2384 fi
2385
2386 if test "x$ac_ct_CC" = x; then
2387 CC=""
2388 else
2389 case $cross_compiling:$ac_tool_warned in
2390 yes:)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2393 ac_tool_warned=yes ;;
2394 esac
2395 CC=$ac_ct_CC
2396 fi
2397 else
2398 CC="$ac_cv_prog_CC"
2399 fi
2400
2401 if test -z "$CC"; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}cc; ac_word=$2
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if ${ac_cv_prog_CC+:} false; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_CC="${ac_tool_prefix}cc"
2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2433 $as_echo "$CC" >&6; }
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436 $as_echo "no" >&6; }
2437 fi
2438
2439
2440 fi
2441 fi
2442 if test -z "$CC"; then
2443 # Extract the first word of "cc", so it can be a program name with args.
2444 set dummy cc; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if ${ac_cv_prog_CC+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 else
2453 ac_prog_rejected=no
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2462 ac_prog_rejected=yes
2463 continue
2464 fi
2465 ac_cv_prog_CC="cc"
2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2468 fi
2469 done
2470 done
2471 IFS=$as_save_IFS
2472
2473 if test $ac_prog_rejected = yes; then
2474 # We found a bogon in the path, so make sure we never use it.
2475 set dummy $ac_cv_prog_CC
2476 shift
2477 if test $# != 0; then
2478 # We chose a different compiler from the bogus one.
2479 # However, it has the same basename, so the bogon will be chosen
2480 # first if we set CC to just the basename; use the full file name.
2481 shift
2482 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2483 fi
2484 fi
2485 fi
2486 fi
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2490 $as_echo "$CC" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496
2497 fi
2498 if test -z "$CC"; then
2499 if test -n "$ac_tool_prefix"; then
2500 for ac_prog in cl.exe
2501 do
2502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_CC+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 CC=$ac_cv_prog_CC
2530 if test -n "$CC"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2532 $as_echo "$CC" >&6; }
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2536 fi
2537
2538
2539 test -n "$CC" && break
2540 done
2541 fi
2542 if test -z "$CC"; then
2543 ac_ct_CC=$CC
2544 for ac_prog in cl.exe
2545 do
2546 # Extract the first word of "$ac_prog", so it can be a program name with args.
2547 set dummy $ac_prog; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$ac_ct_CC"; then
2554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563 ac_cv_prog_ac_ct_CC="$ac_prog"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2574 if test -n "$ac_ct_CC"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2576 $as_echo "$ac_ct_CC" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582
2583 test -n "$ac_ct_CC" && break
2584 done
2585
2586 if test "x$ac_ct_CC" = x; then
2587 CC=""
2588 else
2589 case $cross_compiling:$ac_tool_warned in
2590 yes:)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593 ac_tool_warned=yes ;;
2594 esac
2595 CC=$ac_ct_CC
2596 fi
2597 fi
2598
2599 fi
2600
2601
2602 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604 as_fn_error $? "no acceptable C compiler found in \$PATH
2605 See \`config.log' for more details" "$LINENO" 5; }
2606
2607 # Provide some information about the compiler.
2608 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2609 set X $ac_compile
2610 ac_compiler=$2
2611 for ac_option in --version -v -V -qversion; do
2612 { { ac_try="$ac_compiler $ac_option >&5"
2613 case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616 esac
2617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2618 $as_echo "$ac_try_echo"; } >&5
2619 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2620 ac_status=$?
2621 if test -s conftest.err; then
2622 sed '10a\
2623 ... rest of stderr output deleted ...
2624 10q' conftest.err >conftest.er1
2625 cat conftest.er1 >&5
2626 fi
2627 rm -f conftest.er1 conftest.err
2628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2629 test $ac_status = 0; }
2630 done
2631
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h. */
2634
2635 int
2636 main ()
2637 {
2638
2639 ;
2640 return 0;
2641 }
2642 _ACEOF
2643 ac_clean_files_save=$ac_clean_files
2644 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2645 # Try to create an executable without -o first, disregard a.out.
2646 # It will help us diagnose broken compilers, and finding out an intuition
2647 # of exeext.
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2649 $as_echo_n "checking whether the C compiler works... " >&6; }
2650 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2651
2652 # The possible output files:
2653 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2654
2655 ac_rmfiles=
2656 for ac_file in $ac_files
2657 do
2658 case $ac_file in
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2660 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2661 esac
2662 done
2663 rm -f $ac_rmfiles
2664
2665 if { { ac_try="$ac_link_default"
2666 case "(($ac_try" in
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2669 esac
2670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2671 $as_echo "$ac_try_echo"; } >&5
2672 (eval "$ac_link_default") 2>&5
2673 ac_status=$?
2674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2675 test $ac_status = 0; }; then :
2676 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2677 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2678 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2679 # so that the user can short-circuit this test for compilers unknown to
2680 # Autoconf.
2681 for ac_file in $ac_files ''
2682 do
2683 test -f "$ac_file" || continue
2684 case $ac_file in
2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2686 ;;
2687 [ab].out )
2688 # We found the default executable, but exeext='' is most
2689 # certainly right.
2690 break;;
2691 *.* )
2692 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2693 then :; else
2694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695 fi
2696 # We set ac_cv_exeext here because the later test for it is not
2697 # safe: cross compilers may not add the suffix if given an `-o'
2698 # argument, so we may need to know it at that point already.
2699 # Even if this section looks crufty: it has the advantage of
2700 # actually working.
2701 break;;
2702 * )
2703 break;;
2704 esac
2705 done
2706 test "$ac_cv_exeext" = no && ac_cv_exeext=
2707
2708 else
2709 ac_file=''
2710 fi
2711 if test -z "$ac_file"; then :
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2714 $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 as_fn_error 77 "C compiler cannot create executables
2720 See \`config.log' for more details" "$LINENO" 5; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723 $as_echo "yes" >&6; }
2724 fi
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2726 $as_echo_n "checking for C compiler default output file name... " >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2728 $as_echo "$ac_file" >&6; }
2729 ac_exeext=$ac_cv_exeext
2730
2731 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2732 ac_clean_files=$ac_clean_files_save
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2734 $as_echo_n "checking for suffix of executables... " >&6; }
2735 if { { ac_try="$ac_link"
2736 case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741 $as_echo "$ac_try_echo"; } >&5
2742 (eval "$ac_link") 2>&5
2743 ac_status=$?
2744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745 test $ac_status = 0; }; then :
2746 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2747 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2748 # work properly (i.e., refer to `conftest.exe'), while it won't with
2749 # `rm'.
2750 for ac_file in conftest.exe conftest conftest.*; do
2751 test -f "$ac_file" || continue
2752 case $ac_file in
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2754 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2755 break;;
2756 * ) break;;
2757 esac
2758 done
2759 else
2760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2763 See \`config.log' for more details" "$LINENO" 5; }
2764 fi
2765 rm -f conftest conftest$ac_cv_exeext
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2767 $as_echo "$ac_cv_exeext" >&6; }
2768
2769 rm -f conftest.$ac_ext
2770 EXEEXT=$ac_cv_exeext
2771 ac_exeext=$EXEEXT
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2774 #include <stdio.h>
2775 int
2776 main ()
2777 {
2778 FILE *f = fopen ("conftest.out", "w");
2779 return ferror (f) || fclose (f) != 0;
2780
2781 ;
2782 return 0;
2783 }
2784 _ACEOF
2785 ac_clean_files="$ac_clean_files conftest.out"
2786 # Check that the compiler produces executables we can run. If not, either
2787 # the compiler is broken, or we cross compile.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2789 $as_echo_n "checking whether we are cross compiling... " >&6; }
2790 if test "$cross_compiling" != yes; then
2791 { { ac_try="$ac_link"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2797 $as_echo "$ac_try_echo"; } >&5
2798 (eval "$ac_link") 2>&5
2799 ac_status=$?
2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801 test $ac_status = 0; }
2802 if { ac_try='./conftest$ac_cv_exeext'
2803 { { case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806 esac
2807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2808 $as_echo "$ac_try_echo"; } >&5
2809 (eval "$ac_try") 2>&5
2810 ac_status=$?
2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812 test $ac_status = 0; }; }; then
2813 cross_compiling=no
2814 else
2815 if test "$cross_compiling" = maybe; then
2816 cross_compiling=yes
2817 else
2818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "cannot run C compiled programs.
2821 If you meant to cross compile, use \`--host'.
2822 See \`config.log' for more details" "$LINENO" 5; }
2823 fi
2824 fi
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2827 $as_echo "$cross_compiling" >&6; }
2828
2829 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2830 ac_clean_files=$ac_clean_files_save
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2832 $as_echo_n "checking for suffix of object files... " >&6; }
2833 if ${ac_cv_objext+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2838
2839 int
2840 main ()
2841 {
2842
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.o conftest.obj
2848 if { { ac_try="$ac_compile"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_compile") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 for ac_file in conftest.o conftest.obj conftest.*; do
2860 test -f "$ac_file" || continue;
2861 case $ac_file in
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2864 break;;
2865 esac
2866 done
2867 else
2868 $as_echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 as_fn_error $? "cannot compute suffix of object files: cannot compile
2874 See \`config.log' for more details" "$LINENO" 5; }
2875 fi
2876 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2879 $as_echo "$ac_cv_objext" >&6; }
2880 OBJEXT=$ac_cv_objext
2881 ac_objext=$OBJEXT
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2883 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2884 if ${ac_cv_c_compiler_gnu+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2889
2890 int
2891 main ()
2892 {
2893 #ifndef __GNUC__
2894 choke me
2895 #endif
2896
2897 ;
2898 return 0;
2899 }
2900 _ACEOF
2901 if ac_fn_c_try_compile "$LINENO"; then :
2902 ac_compiler_gnu=yes
2903 else
2904 ac_compiler_gnu=no
2905 fi
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2911 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912 if test $ac_compiler_gnu = yes; then
2913 GCC=yes
2914 else
2915 GCC=
2916 fi
2917 ac_test_CFLAGS=${CFLAGS+set}
2918 ac_save_CFLAGS=$CFLAGS
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2920 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2921 if ${ac_cv_prog_cc_g+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 ac_save_c_werror_flag=$ac_c_werror_flag
2925 ac_c_werror_flag=yes
2926 ac_cv_prog_cc_g=no
2927 CFLAGS="-g"
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2930
2931 int
2932 main ()
2933 {
2934
2935 ;
2936 return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_cv_prog_cc_g=yes
2941 else
2942 CFLAGS=""
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2945
2946 int
2947 main ()
2948 {
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 if ac_fn_c_try_compile "$LINENO"; then :
2955
2956 else
2957 ac_c_werror_flag=$ac_save_c_werror_flag
2958 CFLAGS="-g"
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960 /* end confdefs.h. */
2961
2962 int
2963 main ()
2964 {
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_cv_prog_cc_g=yes
2972 fi
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 fi
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 fi
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979 fi
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2981 $as_echo "$ac_cv_prog_cc_g" >&6; }
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990 else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2998 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2999 if ${ac_cv_prog_cc_c89+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 ac_cv_prog_cc_c89=no
3003 ac_save_CC=$CC
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3006 #include <stdarg.h>
3007 #include <stdio.h>
3008 struct stat;
3009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3010 struct buf { int x; };
3011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3012 static char *e (p, i)
3013 char **p;
3014 int i;
3015 {
3016 return p[i];
3017 }
3018 static char *f (char * (*g) (char **, int), char **p, ...)
3019 {
3020 char *s;
3021 va_list v;
3022 va_start (v,p);
3023 s = g (p, va_arg (v,int));
3024 va_end (v);
3025 return s;
3026 }
3027
3028 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3029 function prototypes and stuff, but not '\xHH' hex character constants.
3030 These don't provoke an error unfortunately, instead are silently treated
3031 as 'x'. The following induces an error, until -std is added to get
3032 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3033 array size at least. It's necessary to write '\x00'==0 to get something
3034 that's true only with -std. */
3035 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3036
3037 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3038 inside strings and character constants. */
3039 #define FOO(x) 'x'
3040 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3041
3042 int test (int i, double x);
3043 struct s1 {int (*f) (int a);};
3044 struct s2 {int (*f) (double a);};
3045 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3046 int argc;
3047 char **argv;
3048 int
3049 main ()
3050 {
3051 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3052 ;
3053 return 0;
3054 }
3055 _ACEOF
3056 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3057 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3058 do
3059 CC="$ac_save_CC $ac_arg"
3060 if ac_fn_c_try_compile "$LINENO"; then :
3061 ac_cv_prog_cc_c89=$ac_arg
3062 fi
3063 rm -f core conftest.err conftest.$ac_objext
3064 test "x$ac_cv_prog_cc_c89" != "xno" && break
3065 done
3066 rm -f conftest.$ac_ext
3067 CC=$ac_save_CC
3068
3069 fi
3070 # AC_CACHE_VAL
3071 case "x$ac_cv_prog_cc_c89" in
3072 x)
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3074 $as_echo "none needed" >&6; } ;;
3075 xno)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3077 $as_echo "unsupported" >&6; } ;;
3078 *)
3079 CC="$CC $ac_cv_prog_cc_c89"
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3081 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3082 esac
3083 if test "x$ac_cv_prog_cc_c89" != xno; then :
3084
3085 fi
3086
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3094 $as_echo_n "checking whether ln -s works... " >&6; }
3095 LN_S=$as_ln_s
3096 if test "$LN_S" = "ln -s"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3101 $as_echo "no, using $LN_S" >&6; }
3102 fi
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3105 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3106 set x ${MAKE-make}
3107 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3108 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 cat >conftest.make <<\_ACEOF
3112 SHELL = /bin/sh
3113 all:
3114 @echo '@@@%%%=$(MAKE)=@@@%%%'
3115 _ACEOF
3116 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3117 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3118 *@@@%%%=?*=@@@%%%*)
3119 eval ac_cv_prog_make_${ac_make}_set=yes;;
3120 *)
3121 eval ac_cv_prog_make_${ac_make}_set=no;;
3122 esac
3123 rm -f conftest.make
3124 fi
3125 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3128 SET_MAKE=
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 SET_MAKE="MAKE=${MAKE-make}"
3133 fi
3134
3135
3136 # Determine the linker flags for mozplugger.so
3137 LDSHARED='-shared -Wl,--version-script=exportmap'
3138 PLATFORM="x`uname`"
3139 XCFLAGS="-fPIC -Wall -O2 -Wdeclaration-after-statement"
3140 BIN2O="ld -r -b binary"
3141 MOZPLUGGER_SO_BLOB="mozplugger_so_blob.o"
3142
3143 if test "${PLATFORM}" = xIRIX; then
3144 XCFLAGS="-fPIC -O2"
3145 LDSHARED='-shared -n32'
3146 MOZPLUGGER_SO_BLOB=""
3147 fi
3148 if test "${PLATFORM}" = xAIX; then
3149 XCFLAGS="-fPIC -O2"
3150 LDSHARED='-G -bexpall'
3151 MOZPLUGGER_SO_BLOB=""
3152 fi
3153 if test "${PLATFORM}${CC}" = "xHP-UXgcc"; then
3154 XCFLAGS="-fPIC -O2"
3155 LDSHARED='-b'
3156 MOZPLUGGER_SO_BLOB=""
3157 fi
3158 if test "${PLATFORM}${CC}" = "xHP-UXcc"; then
3159 XCFLAGS='+DAportable -Ae +z +02'
3160 LDSHARED='-b +e NP_GetValue +e NP_Initialize +e NP_Shutdown +e NP_GetMIMEDescription'
3161 MOZPLUGGER_SO_BLOB=""
3162 fi
3163 if test "${PLATFORM}${CC}" = "xSunOSgcc"; then
3164 XCFLAGS="-fPIC -O2"
3165 LDSHARED='-G'
3166 MOZPLUGGER_SO_BLOB=""
3167 fi
3168 if test "${PLATFORM}${CC}" = "xSunOScc"; then
3169 XCFLAGS='-Kpic -O'
3170 LDSHARED='-G'
3171 MOZPLUGGER_SO_BLOB=""
3172 fi
3173 if test "${PLATFORM}" = "xOSF1"; then
3174 XCFLAGS='-shared'
3175 LDSHARED='-expect_unresolved "*" -shared -msym -O3'
3176 MOZPLUGGER_SO_BLOB=""
3177 fi
3178 #freebsd-aout:
3179 # ${MAKE} all XCFLAGS='-fPIC -aout' XLDFLAGS='-shared -aout'
3180
3181
3182 XCPPFLAGS=
3183
3184 # Checks for X path
3185
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3192 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3193 # On Suns, sometimes $CPP names a directory.
3194 if test -n "$CPP" && test -d "$CPP"; then
3195 CPP=
3196 fi
3197 if test -z "$CPP"; then
3198 if ${ac_cv_prog_CPP+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 # Double quotes because CPP needs to be expanded
3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3203 do
3204 ac_preproc_ok=false
3205 for ac_c_preproc_warn_flag in '' yes
3206 do
3207 # Use a header file that comes with gcc, so configuring glibc
3208 # with a fresh cross-compiler works.
3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 # <limits.h> exists even on freestanding compilers.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp. "Syntax error" is here to catch this case.
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3215 #ifdef __STDC__
3216 # include <limits.h>
3217 #else
3218 # include <assert.h>
3219 #endif
3220 Syntax error
3221 _ACEOF
3222 if ac_fn_c_try_cpp "$LINENO"; then :
3223
3224 else
3225 # Broken: fails on valid input.
3226 continue
3227 fi
3228 rm -f conftest.err conftest.i conftest.$ac_ext
3229
3230 # OK, works on sane cases. Now check whether nonexistent headers
3231 # can be detected and how.
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3235 _ACEOF
3236 if ac_fn_c_try_cpp "$LINENO"; then :
3237 # Broken: success on invalid input.
3238 continue
3239 else
3240 # Passes both tests.
3241 ac_preproc_ok=:
3242 break
3243 fi
3244 rm -f conftest.err conftest.i conftest.$ac_ext
3245
3246 done
3247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3248 rm -f conftest.i conftest.err conftest.$ac_ext
3249 if $ac_preproc_ok; then :
3250 break
3251 fi
3252
3253 done
3254 ac_cv_prog_CPP=$CPP
3255
3256 fi
3257 CPP=$ac_cv_prog_CPP
3258 else
3259 ac_cv_prog_CPP=$CPP
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3262 $as_echo "$CPP" >&6; }
3263 ac_preproc_ok=false
3264 for ac_c_preproc_warn_flag in '' yes
3265 do
3266 # Use a header file that comes with gcc, so configuring glibc
3267 # with a fresh cross-compiler works.
3268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3269 # <limits.h> exists even on freestanding compilers.
3270 # On the NeXT, cc -E runs the code through the compiler's parser,
3271 # not just through cpp. "Syntax error" is here to catch this case.
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #ifdef __STDC__
3275 # include <limits.h>
3276 #else
3277 # include <assert.h>
3278 #endif
3279 Syntax error
3280 _ACEOF
3281 if ac_fn_c_try_cpp "$LINENO"; then :
3282
3283 else
3284 # Broken: fails on valid input.
3285 continue
3286 fi
3287 rm -f conftest.err conftest.i conftest.$ac_ext
3288
3289 # OK, works on sane cases. Now check whether nonexistent headers
3290 # can be detected and how.
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293 #include <ac_nonexistent.h>
3294 _ACEOF
3295 if ac_fn_c_try_cpp "$LINENO"; then :
3296 # Broken: success on invalid input.
3297 continue
3298 else
3299 # Passes both tests.
3300 ac_preproc_ok=:
3301 break
3302 fi
3303 rm -f conftest.err conftest.i conftest.$ac_ext
3304
3305 done
3306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3307 rm -f conftest.i conftest.err conftest.$ac_ext
3308 if $ac_preproc_ok; then :
3309
3310 else
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3314 See \`config.log' for more details" "$LINENO" 5; }
3315 fi
3316
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3325 $as_echo_n "checking for X... " >&6; }
3326
3327
3328 # Check whether --with-x was given.
3329 if test "${with_x+set}" = set; then :
3330 withval=$with_x;
3331 fi
3332
3333 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3334 if test "x$with_x" = xno; then
3335 # The user explicitly disabled X.
3336 have_x=disabled
3337 else
3338 case $x_includes,$x_libraries in #(
3339 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3340 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 # One or both of the vars are not set, and there is no cached value.
3344 ac_x_includes=no ac_x_libraries=no
3345 rm -f -r conftest.dir
3346 if mkdir conftest.dir; then
3347 cd conftest.dir
3348 cat >Imakefile <<'_ACEOF'
3349 incroot:
3350 @echo incroot='${INCROOT}'
3351 usrlibdir:
3352 @echo usrlibdir='${USRLIBDIR}'
3353 libdir:
3354 @echo libdir='${LIBDIR}'
3355 _ACEOF
3356 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3357 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3358 for ac_var in incroot usrlibdir libdir; do
3359 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3360 done
3361 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3362 for ac_extension in a so sl dylib la dll; do
3363 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3364 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3365 ac_im_usrlibdir=$ac_im_libdir; break
3366 fi
3367 done
3368 # Screen out bogus values from the imake configuration. They are
3369 # bogus both because they are the default anyway, and because
3370 # using them would break gcc on systems where it needs fixed includes.
3371 case $ac_im_incroot in
3372 /usr/include) ac_x_includes= ;;
3373 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3374 esac
3375 case $ac_im_usrlibdir in
3376 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3377 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3378 esac
3379 fi
3380 cd ..
3381 rm -f -r conftest.dir
3382 fi
3383
3384 # Standard set of common directories for X headers.
3385 # Check X11 before X11Rn because it is often a symlink to the current release.
3386 ac_x_header_dirs='
3387 /usr/X11/include
3388 /usr/X11R7/include
3389 /usr/X11R6/include
3390 /usr/X11R5/include
3391 /usr/X11R4/include
3392
3393 /usr/include/X11
3394 /usr/include/X11R7
3395 /usr/include/X11R6
3396 /usr/include/X11R5
3397 /usr/include/X11R4
3398
3399 /usr/local/X11/include
3400 /usr/local/X11R7/include
3401 /usr/local/X11R6/include
3402 /usr/local/X11R5/include
3403 /usr/local/X11R4/include
3404
3405 /usr/local/include/X11
3406 /usr/local/include/X11R7
3407 /usr/local/include/X11R6
3408 /usr/local/include/X11R5
3409 /usr/local/include/X11R4
3410
3411 /usr/X386/include
3412 /usr/x386/include
3413 /usr/XFree86/include/X11
3414
3415 /usr/include
3416 /usr/local/include
3417 /usr/unsupported/include
3418 /usr/athena/include
3419 /usr/local/x11r5/include
3420 /usr/lpp/Xamples/include
3421
3422 /usr/openwin/include
3423 /usr/openwin/share/include'
3424
3425 if test "$ac_x_includes" = no; then
3426 # Guess where to find include files, by looking for Xlib.h.
3427 # First, try using that file with no special directory specified.
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430 #include <X11/Xlib.h>
3431 _ACEOF
3432 if ac_fn_c_try_cpp "$LINENO"; then :
3433 # We can compile using X headers with no special include directory.
3434 ac_x_includes=
3435 else
3436 for ac_dir in $ac_x_header_dirs; do
3437 if test -r "$ac_dir/X11/Xlib.h"; then
3438 ac_x_includes=$ac_dir
3439 break
3440 fi
3441 done
3442 fi
3443 rm -f conftest.err conftest.i conftest.$ac_ext
3444 fi # $ac_x_includes = no
3445
3446 if test "$ac_x_libraries" = no; then
3447 # Check for the libraries.
3448 # See if we find them without any special options.
3449 # Don't add to $LIBS permanently.
3450 ac_save_LIBS=$LIBS
3451 LIBS="-lX11 $LIBS"
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <X11/Xlib.h>
3455 int
3456 main ()
3457 {
3458 XrmInitialize ()
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_c_try_link "$LINENO"; then :
3464 LIBS=$ac_save_LIBS
3465 # We can link X programs with no special library path.
3466 ac_x_libraries=
3467 else
3468 LIBS=$ac_save_LIBS
3469 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3470 do
3471 # Don't even attempt the hair of trying to link an X program!
3472 for ac_extension in a so sl dylib la dll; do
3473 if test -r "$ac_dir/libX11.$ac_extension"; then
3474 ac_x_libraries=$ac_dir
3475 break 2
3476 fi
3477 done
3478 done
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
3482 fi # $ac_x_libraries = no
3483
3484 case $ac_x_includes,$ac_x_libraries in #(
3485 no,* | *,no | *\'*)
3486 # Didn't find X, or a directory has "'" in its name.
3487 ac_cv_have_x="have_x=no";; #(
3488 *)
3489 # Record where we found X for the cache.
3490 ac_cv_have_x="have_x=yes\
3491 ac_x_includes='$ac_x_includes'\
3492 ac_x_libraries='$ac_x_libraries'"
3493 esac
3494 fi
3495 ;; #(
3496 *) have_x=yes;;
3497 esac
3498 eval "$ac_cv_have_x"
3499 fi # $with_x != no
3500
3501 if test "$have_x" != yes; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3503 $as_echo "$have_x" >&6; }
3504 no_x=yes
3505 else
3506 # If each of the values was on the command line, it overrides each guess.
3507 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3508 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3509 # Update the cache value to reflect the command line values.
3510 ac_cv_have_x="have_x=yes\
3511 ac_x_includes='$x_includes'\
3512 ac_x_libraries='$x_libraries'"
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3514 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3515 fi
3516
3517 if test "x$x_includes" != x; then
3518 XCPPFLAGS="$XCPPFLAGS -I$x_includes"
3519 fi
3520 if test "x$x_libraries" != x; then
3521 LDFLAGS="$LDFLAGS -L$x_libraries"
3522 fi
3523
3524 # Work out where plugins should be installed
3525 PLUGINDIRS=
3526 if test "$libdir" = '${exec_prefix}/lib64'; then
3527 PLUGINLIB=lib64
3528 else
3529 PLUGINLIB=lib
3530 fi
3531
3532
3533 as_ac_File=`$as_echo "ac_cv_file_${PLUGINDIR}" | $as_tr_sh`
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PLUGINDIR}" >&5
3535 $as_echo_n "checking for ${PLUGINDIR}... " >&6; }
3536 if eval \${$as_ac_File+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 test "$cross_compiling" = yes &&
3540 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
3541 if test -r "${PLUGINDIR}"; then
3542 eval "$as_ac_File=yes"
3543 else
3544 eval "$as_ac_File=no"
3545 fi
3546 fi
3547 eval ac_res=\$$as_ac_File
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3549 $as_echo "$ac_res" >&6; }
3550 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
3551 PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"
3552 fi
3553
3554
3555 #/usr/lib/mozilla/plugins/
3556 #/usr/lib/netscape/plugins
3557 #/usr/lib/firefox/plugins
3558 #$MOZILLA_HOME/plugins
3559 #/usr/lib/chromium/plugins
3560 #/usr/local/lib/browser_plugins
3561
3562 PLUGINDIR=${MOZ_PLUGIN_PATH}
3563 as_ac_File=`$as_echo "ac_cv_file_${PLUGINDIR}" | $as_tr_sh`
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PLUGINDIR}" >&5
3565 $as_echo_n "checking for ${PLUGINDIR}... " >&6; }
3566 if eval \${$as_ac_File+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 test "$cross_compiling" = yes &&
3570 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
3571 if test -r "${PLUGINDIR}"; then
3572 eval "$as_ac_File=yes"
3573 else
3574 eval "$as_ac_File=no"
3575 fi
3576 fi
3577 eval ac_res=\$$as_ac_File
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3579 $as_echo "$ac_res" >&6; }
3580 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
3581 PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"
3582 fi
3583
3584
3585 PLUGINDIR=/usr/${PLUGINLIB}/mozilla/plugins
3586 as_ac_File=`$as_echo "ac_cv_file_${PLUGINDIR}" | $as_tr_sh`
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PLUGINDIR}" >&5
3588 $as_echo_n "checking for ${PLUGINDIR}... " >&6; }
3589 if eval \${$as_ac_File+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 test "$cross_compiling" = yes &&
3593 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
3594 if test -r "${PLUGINDIR}"; then
3595 eval "$as_ac_File=yes"
3596 else
3597 eval "$as_ac_File=no"
3598 fi
3599 fi
3600 eval ac_res=\$$as_ac_File
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3602 $as_echo "$ac_res" >&6; }
3603 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
3604 PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"
3605 fi
3606
3607
3608 PLUGINDIR=/usr/${PLUGINLIB}/firefox/plugins
3609 as_ac_File=`$as_echo "ac_cv_file_${PLUGINDIR}" | $as_tr_sh`
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PLUGINDIR}" >&5
3611 $as_echo_n "checking for ${PLUGINDIR}... " >&6; }
3612 if eval \${$as_ac_File+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 test "$cross_compiling" = yes &&
3616 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
3617 if test -r "${PLUGINDIR}"; then
3618 eval "$as_ac_File=yes"
3619 else
3620 eval "$as_ac_File=no"
3621 fi
3622 fi
3623 eval ac_res=\$$as_ac_File
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3625 $as_echo "$ac_res" >&6; }
3626 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
3627 PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"
3628 fi
3629
3630
3631 PLUGINDIR=/usr/local/lib/browser_plugins
3632 as_ac_File=`$as_echo "ac_cv_file_${PLUGINDIR}" | $as_tr_sh`
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PLUGINDIR}" >&5
3634 $as_echo_n "checking for ${PLUGINDIR}... " >&6; }
3635 if eval \${$as_ac_File+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 test "$cross_compiling" = yes &&
3639 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
3640 if test -r "${PLUGINDIR}"; then
3641 eval "$as_ac_File=yes"
3642 else
3643 eval "$as_ac_File=no"
3644 fi
3645 fi
3646 eval ac_res=\$$as_ac_File
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3648 $as_echo "$ac_res" >&6; }
3649 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
3650 PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"
3651 fi
3652
3653
3654 # Checks for libraries.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDisplayName in -lX11" >&5
3656 $as_echo_n "checking for XDisplayName in -lX11... " >&6; }
3657 if ${ac_cv_lib_X11_XDisplayName+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 ac_check_lib_save_LIBS=$LIBS
3661 LIBS="-lX11 $LIBS"
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 /* Override any GCC internal prototype to avoid an error.
3666 Use char because int might match the return type of a GCC
3667 builtin and then its argument prototype would still apply. */
3668 #ifdef __cplusplus
3669 extern "C"
3670 #endif
3671 char XDisplayName ();
3672 int
3673 main ()
3674 {
3675 return XDisplayName ();
3676 ;
3677 return 0;
3678 }
3679 _ACEOF
3680 if ac_fn_c_try_link "$LINENO"; then :
3681 ac_cv_lib_X11_XDisplayName=yes
3682 else
3683 ac_cv_lib_X11_XDisplayName=no
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext \
3686 conftest$ac_exeext conftest.$ac_ext
3687 LIBS=$ac_check_lib_save_LIBS
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XDisplayName" >&5
3690 $as_echo "$ac_cv_lib_X11_XDisplayName" >&6; }
3691 if test "x$ac_cv_lib_X11_XDisplayName" = xyes; then :
3692 cat >>confdefs.h <<_ACEOF
3693 #define HAVE_LIBX11 1
3694 _ACEOF
3695
3696 LIBS="-lX11 $LIBS"
3697
3698 fi
3699
3700
3701
3702 # Check to see if gcov required...
3703 # Check whether --enable-gcov was given.
3704 if test "${enable_gcov+set}" = set; then :
3705 enableval=$enable_gcov; case "${enableval}" in
3706 yes) gcov=true ;;
3707 no) gcov=false ;;
3708 *) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
3709 esac
3710 else
3711 gcov=false
3712 fi
3713
3714 if test "x$gcov" = xtrue; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgcov" >&5
3716 $as_echo_n "checking for main in -lgcov... " >&6; }
3717 if ${ac_cv_lib_gcov_main+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 ac_check_lib_save_LIBS=$LIBS
3721 LIBS="-lgcov $LIBS"
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724
3725
3726 int
3727 main ()
3728 {
3729 return main ();
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_link "$LINENO"; then :
3735 ac_cv_lib_gcov_main=yes
3736 else
3737 ac_cv_lib_gcov_main=no
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext \
3740 conftest$ac_exeext conftest.$ac_ext
3741 LIBS=$ac_check_lib_save_LIBS
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov_main" >&5
3744 $as_echo "$ac_cv_lib_gcov_main" >&6; }
3745 if test "x$ac_cv_lib_gcov_main" = xyes; then :
3746 LDFLAGS="${LDFLAGS} -lgcov"
3747 fi
3748
3749 XCFLAGS="-g -fprofile-arcs -ftest-coverage -fstack-protector-all -Wall"
3750 $as_echo "#define GCOV 1" >>confdefs.h
3751
3752 fi
3753
3754 #Check to see if debug required...
3755 # Check whether --enable-debug was given.
3756 if test "${enable_debug+set}" = set; then :
3757 enableval=$enable_debug; case "${enableval}" in
3758 yes) debug=true ;;
3759 no) debug=false ;;
3760 *) as_fn_error $? "Bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
3761 esac
3762 else
3763 debug=false
3764 fi
3765
3766 if test "x$debug" = xtrue; then
3767 $as_echo "#define DEBUG 1" >>confdefs.h
3768
3769 else
3770 $as_echo "#define NODEBUG 1" >>confdefs.h
3771
3772 fi
3773
3774 #Check to see if Always Xembed...
3775 # Check whether --enable-always-xembed was given.
3776 if test "${enable_always_xembed+set}" = set; then :
3777 enableval=$enable_always_xembed; case "${enableval}" in
3778 yes) xembed=true ;;
3779 no) xembed=false ;;
3780 *) as_fn_error $? "Bad value ${enableval} for --enable-always-xembed" "$LINENO" 5 ;;
3781 esac
3782 else
3783 xembed=false
3784 fi
3785
3786 if test "x${xembed}" = xtrue; then
3787 $as_echo "#define ALWAYS_NEEDS_XEMBED 1" >>confdefs.h
3788
3789 fi
3790
3791
3792 # Checks for header files.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3794 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3795 if ${ac_cv_path_GREP+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 if test -z "$GREP"; then
3799 ac_path_GREP_found=false
3800 # Loop through the user's path and test for each of PROGNAME-LIST
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3803 do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_prog in grep ggrep; do
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3809 as_fn_executable_p "$ac_path_GREP" || continue
3810 # Check for GNU ac_path_GREP and select it if it is found.
3811 # Check for GNU $ac_path_GREP
3812 case `"$ac_path_GREP" --version 2>&1` in
3813 *GNU*)
3814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3815 *)
3816 ac_count=0
3817 $as_echo_n 0123456789 >"conftest.in"
3818 while :
3819 do
3820 cat "conftest.in" "conftest.in" >"conftest.tmp"
3821 mv "conftest.tmp" "conftest.in"
3822 cp "conftest.in" "conftest.nl"
3823 $as_echo 'GREP' >> "conftest.nl"
3824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3826 as_fn_arith $ac_count + 1 && ac_count=$as_val
3827 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3828 # Best one so far, save it but keep looking for a better one
3829 ac_cv_path_GREP="$ac_path_GREP"
3830 ac_path_GREP_max=$ac_count
3831 fi
3832 # 10*(2^10) chars as input seems more than enough
3833 test $ac_count -gt 10 && break
3834 done
3835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3836 esac
3837
3838 $ac_path_GREP_found && break 3
3839 done
3840 done
3841 done
3842 IFS=$as_save_IFS
3843 if test -z "$ac_cv_path_GREP"; then
3844 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3845 fi
3846 else
3847 ac_cv_path_GREP=$GREP
3848 fi
3849
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3852 $as_echo "$ac_cv_path_GREP" >&6; }
3853 GREP="$ac_cv_path_GREP"
3854
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3857 $as_echo_n "checking for egrep... " >&6; }
3858 if ${ac_cv_path_EGREP+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3862 then ac_cv_path_EGREP="$GREP -E"
3863 else
3864 if test -z "$EGREP"; then
3865 ac_path_EGREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869 do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in egrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3875 as_fn_executable_p "$ac_path_EGREP" || continue
3876 # Check for GNU ac_path_EGREP and select it if it is found.
3877 # Check for GNU $ac_path_EGREP
3878 case `"$ac_path_EGREP" --version 2>&1` in
3879 *GNU*)
3880 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3881 *)
3882 ac_count=0
3883 $as_echo_n 0123456789 >"conftest.in"
3884 while :
3885 do
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 $as_echo 'EGREP' >> "conftest.nl"
3890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 as_fn_arith $ac_count + 1 && ac_count=$as_val
3893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_EGREP="$ac_path_EGREP"
3896 ac_path_EGREP_max=$ac_count
3897 fi
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902 esac
3903
3904 $ac_path_EGREP_found && break 3
3905 done
3906 done
3907 done
3908 IFS=$as_save_IFS
3909 if test -z "$ac_cv_path_EGREP"; then
3910 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3911 fi
3912 else
3913 ac_cv_path_EGREP=$EGREP
3914 fi
3915
3916 fi
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3919 $as_echo "$ac_cv_path_EGREP" >&6; }
3920 EGREP="$ac_cv_path_EGREP"
3921
3922
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3924 $as_echo_n "checking for ANSI C header files... " >&6; }
3925 if ${ac_cv_header_stdc+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <stdlib.h>
3931 #include <stdarg.h>
3932 #include <string.h>
3933 #include <float.h>
3934
3935 int
3936 main ()
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944 ac_cv_header_stdc=yes
3945 else
3946 ac_cv_header_stdc=no
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949
3950 if test $ac_cv_header_stdc = yes; then
3951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954 #include <string.h>
3955
3956 _ACEOF
3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958 $EGREP "memchr" >/dev/null 2>&1; then :
3959
3960 else
3961 ac_cv_header_stdc=no
3962 fi
3963 rm -f conftest*
3964
3965 fi
3966
3967 if test $ac_cv_header_stdc = yes; then
3968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <stdlib.h>
3972
3973 _ACEOF
3974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3975 $EGREP "free" >/dev/null 2>&1; then :
3976
3977 else
3978 ac_cv_header_stdc=no
3979 fi
3980 rm -f conftest*
3981
3982 fi
3983
3984 if test $ac_cv_header_stdc = yes; then
3985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3986 if test "$cross_compiling" = yes; then :
3987 :
3988 else
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991 #include <ctype.h>
3992 #include <stdlib.h>
3993 #if ((' ' & 0x0FF) == 0x020)
3994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3996 #else
3997 # define ISLOWER(c) \
3998 (('a' <= (c) && (c) <= 'i') \
3999 || ('j' <= (c) && (c) <= 'r') \
4000 || ('s' <= (c) && (c) <= 'z'))
4001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4002 #endif
4003
4004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4005 int
4006 main ()
4007 {
4008 int i;
4009 for (i = 0; i < 256; i++)
4010 if (XOR (islower (i), ISLOWER (i))
4011 || toupper (i) != TOUPPER (i))
4012 return 2;
4013 return 0;
4014 }
4015 _ACEOF
4016 if ac_fn_c_try_run "$LINENO"; then :
4017
4018 else
4019 ac_cv_header_stdc=no
4020 fi
4021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4022 conftest.$ac_objext conftest.beam conftest.$ac_ext
4023 fi
4024
4025 fi
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4028 $as_echo "$ac_cv_header_stdc" >&6; }
4029 if test $ac_cv_header_stdc = yes; then
4030
4031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4032
4033 fi
4034
4035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4037 inttypes.h stdint.h unistd.h
4038 do :
4039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4041 "
4042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4043 cat >>confdefs.h <<_ACEOF
4044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4045 _ACEOF
4046
4047 fi
4048
4049 done
4050
4051
4052 for ac_header in fcntl.h inttypes.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h utime.h
4053 do :
4054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4055 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4056 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4057 cat >>confdefs.h <<_ACEOF
4058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4059 _ACEOF
4060
4061 fi
4062
4063 done
4064
4065
4066 # Checks for typedefs, structures, and compiler characteristics.
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4068 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4069 if ${ac_cv_header_stdbool_h+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074
4075 #include <stdbool.h>
4076 #ifndef bool
4077 "error: bool is not defined"
4078 #endif
4079 #ifndef false
4080 "error: false is not defined"
4081 #endif
4082 #if false
4083 "error: false is not 0"
4084 #endif
4085 #ifndef true
4086 "error: true is not defined"
4087 #endif
4088 #if true != 1
4089 "error: true is not 1"
4090 #endif
4091 #ifndef __bool_true_false_are_defined
4092 "error: __bool_true_false_are_defined is not defined"
4093 #endif
4094
4095 struct s { _Bool s: 1; _Bool t; } s;
4096
4097 char a[true == 1 ? 1 : -1];
4098 char b[false == 0 ? 1 : -1];
4099 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4100 char d[(bool) 0.5 == true ? 1 : -1];
4101 /* See body of main program for 'e'. */
4102 char f[(_Bool) 0.0 == false ? 1 : -1];
4103 char g[true];
4104 char h[sizeof (_Bool)];
4105 char i[sizeof s.t];
4106 enum { j = false, k = true, l = false * true, m = true * 256 };
4107 /* The following fails for
4108 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4109 _Bool n[m];
4110 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4111 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4112 /* Catch a bug in an HP-UX C compiler. See
4113 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4114 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4115 */
4116 _Bool q = true;
4117 _Bool *pq = &q;
4118
4119 int
4120 main ()
4121 {
4122
4123 bool e = &s;
4124 *pq |= q;
4125 *pq |= ! q;
4126 /* Refer to every declared value, to avoid compiler optimizations. */
4127 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4128 + !m + !n + !o + !p + !q + !pq);
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_header_stdbool_h=yes
4136 else
4137 ac_cv_header_stdbool_h=no
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4142 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4143 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4144 if test "x$ac_cv_type__Bool" = xyes; then :
4145
4146 cat >>confdefs.h <<_ACEOF
4147 #define HAVE__BOOL 1
4148 _ACEOF
4149
4150
4151 fi
4152
4153
4154 if test $ac_cv_header_stdbool_h = yes; then
4155
4156 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4157
4158 fi
4159
4160 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
4161 case $ac_cv_c_int16_t in #(
4162 no|yes) ;; #(
4163 *)
4164
4165 cat >>confdefs.h <<_ACEOF
4166 #define int16_t $ac_cv_c_int16_t
4167 _ACEOF
4168 ;;
4169 esac
4170
4171 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
4172 case $ac_cv_c_int32_t in #(
4173 no|yes) ;; #(
4174 *)
4175
4176 cat >>confdefs.h <<_ACEOF
4177 #define int32_t $ac_cv_c_int32_t
4178 _ACEOF
4179 ;;
4180 esac
4181
4182 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4183 if test "x$ac_cv_type_pid_t" = xyes; then :
4184
4185 else
4186
4187 cat >>confdefs.h <<_ACEOF
4188 #define pid_t int
4189 _ACEOF
4190
4191 fi
4192
4193 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4194 if test "x$ac_cv_type_size_t" = xyes; then :
4195
4196 else
4197
4198 cat >>confdefs.h <<_ACEOF
4199 #define size_t unsigned int
4200 _ACEOF
4201
4202 fi
4203
4204 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4205 if test "x$ac_cv_type_ssize_t" = xyes; then :
4206
4207 else
4208
4209 cat >>confdefs.h <<_ACEOF
4210 #define ssize_t int
4211 _ACEOF
4212
4213 fi
4214
4215 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
4216 case $ac_cv_c_uint16_t in #(
4217 no|yes) ;; #(
4218 *)
4219
4220
4221 cat >>confdefs.h <<_ACEOF
4222 #define uint16_t $ac_cv_c_uint16_t
4223 _ACEOF
4224 ;;
4225 esac
4226
4227 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4228 case $ac_cv_c_uint32_t in #(
4229 no|yes) ;; #(
4230 *)
4231
4232 $as_echo "#define _UINT32_T 1" >>confdefs.h
4233
4234
4235 cat >>confdefs.h <<_ACEOF
4236 #define uint32_t $ac_cv_c_uint32_t
4237 _ACEOF
4238 ;;
4239 esac
4240
4241 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4242 case $ac_cv_c_uint8_t in #(
4243 no|yes) ;; #(
4244 *)
4245
4246 $as_echo "#define _UINT8_T 1" >>confdefs.h
4247
4248
4249 cat >>confdefs.h <<_ACEOF
4250 #define uint8_t $ac_cv_c_uint8_t
4251 _ACEOF
4252 ;;
4253 esac
4254
4255
4256 # Check to see if -lsocket and -lnsl is required (solaris)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4258 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4259 if ${ac_cv_search_gethostbyname+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 ac_func_search_save_LIBS=$LIBS
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265
4266 /* Override any GCC internal prototype to avoid an error.
4267 Use char because int might match the return type of a GCC
4268 builtin and then its argument prototype would still apply. */
4269 #ifdef __cplusplus
4270 extern "C"
4271 #endif
4272 char gethostbyname ();
4273 int
4274 main ()
4275 {
4276 return gethostbyname ();
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 for ac_lib in '' nsl; do
4282 if test -z "$ac_lib"; then
4283 ac_res="none required"
4284 else
4285 ac_res=-l$ac_lib
4286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4287 fi
4288 if ac_fn_c_try_link "$LINENO"; then :
4289 ac_cv_search_gethostbyname=$ac_res
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext \
4292 conftest$ac_exeext
4293 if ${ac_cv_search_gethostbyname+:} false; then :
4294 break
4295 fi
4296 done
4297 if ${ac_cv_search_gethostbyname+:} false; then :
4298
4299 else
4300 ac_cv_search_gethostbyname=no
4301 fi
4302 rm conftest.$ac_ext
4303 LIBS=$ac_func_search_save_LIBS
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4306 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4307 ac_res=$ac_cv_search_gethostbyname
4308 if test "$ac_res" != no; then :
4309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4310
4311 fi
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4314 $as_echo_n "checking for library containing socket... " >&6; }
4315 if ${ac_cv_search_socket+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 ac_func_search_save_LIBS=$LIBS
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321
4322 /* Override any GCC internal prototype to avoid an error.
4323 Use char because int might match the return type of a GCC
4324 builtin and then its argument prototype would still apply. */
4325 #ifdef __cplusplus
4326 extern "C"
4327 #endif
4328 char socket ();
4329 int
4330 main ()
4331 {
4332 return socket ();
4333 ;
4334 return 0;
4335 }
4336 _ACEOF
4337 for ac_lib in '' socket; do
4338 if test -z "$ac_lib"; then
4339 ac_res="none required"
4340 else
4341 ac_res=-l$ac_lib
4342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4343 fi
4344 if ac_fn_c_try_link "$LINENO"; then :
4345 ac_cv_search_socket=$ac_res
4346 fi
4347 rm -f core conftest.err conftest.$ac_objext \
4348 conftest$ac_exeext
4349 if ${ac_cv_search_socket+:} false; then :
4350 break
4351 fi
4352 done
4353 if ${ac_cv_search_socket+:} false; then :
4354
4355 else
4356 ac_cv_search_socket=no
4357 fi
4358 rm conftest.$ac_ext
4359 LIBS=$ac_func_search_save_LIBS
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4362 $as_echo "$ac_cv_search_socket" >&6; }
4363 ac_res=$ac_cv_search_socket
4364 if test "$ac_res" != no; then :
4365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4366
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4369 $as_echo_n "checking for socket in -lsocket... " >&6; }
4370 if ${ac_cv_lib_socket_socket+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 ac_check_lib_save_LIBS=$LIBS
4374 LIBS="-lsocket -lnsl $LIBS"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 /* Override any GCC internal prototype to avoid an error.
4379 Use char because int might match the return type of a GCC
4380 builtin and then its argument prototype would still apply. */
4381 #ifdef __cplusplus
4382 extern "C"
4383 #endif
4384 char socket ();
4385 int
4386 main ()
4387 {
4388 return socket ();
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_link "$LINENO"; then :
4394 ac_cv_lib_socket_socket=yes
4395 else
4396 ac_cv_lib_socket_socket=no
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext \
4399 conftest$ac_exeext conftest.$ac_ext
4400 LIBS=$ac_check_lib_save_LIBS
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4403 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4404 if test "x$ac_cv_lib_socket_socket" = xyes; then :
4405 LIBS="-lsocket -lnsl $LIBS"
4406 fi
4407
4408 fi
4409
4410
4411
4412
4413 # Checks for library functions.
4414 for ac_header in vfork.h
4415 do :
4416 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4417 if test "x$ac_cv_header_vfork_h" = xyes; then :
4418 cat >>confdefs.h <<_ACEOF
4419 #define HAVE_VFORK_H 1
4420 _ACEOF
4421
4422 fi
4423
4424 done
4425
4426 for ac_func in fork vfork
4427 do :
4428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4431 cat >>confdefs.h <<_ACEOF
4432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4433 _ACEOF
4434
4435 fi
4436 done
4437
4438 if test "x$ac_cv_func_fork" = xyes; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4440 $as_echo_n "checking for working fork... " >&6; }
4441 if ${ac_cv_func_fork_works+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test "$cross_compiling" = yes; then :
4445 ac_cv_func_fork_works=cross
4446 else
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 $ac_includes_default
4450 int
4451 main ()
4452 {
4453
4454 /* By Ruediger Kuhlmann. */
4455 return fork () < 0;
4456
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_run "$LINENO"; then :
4462 ac_cv_func_fork_works=yes
4463 else
4464 ac_cv_func_fork_works=no
4465 fi
4466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4467 conftest.$ac_objext conftest.beam conftest.$ac_ext
4468 fi
4469
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4472 $as_echo "$ac_cv_func_fork_works" >&6; }
4473
4474 else
4475 ac_cv_func_fork_works=$ac_cv_func_fork
4476 fi
4477 if test "x$ac_cv_func_fork_works" = xcross; then
4478 case $host in
4479 *-*-amigaos* | *-*-msdosdjgpp*)
4480 # Override, as these systems have only a dummy fork() stub
4481 ac_cv_func_fork_works=no
4482 ;;
4483 *)
4484 ac_cv_func_fork_works=yes
4485 ;;
4486 esac
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4488 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4489 fi
4490 ac_cv_func_vfork_works=$ac_cv_func_vfork
4491 if test "x$ac_cv_func_vfork" = xyes; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4493 $as_echo_n "checking for working vfork... " >&6; }
4494 if ${ac_cv_func_vfork_works+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test "$cross_compiling" = yes; then :
4498 ac_cv_func_vfork_works=cross
4499 else
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 /* Thanks to Paul Eggert for this test. */
4503 $ac_includes_default
4504 #include <sys/wait.h>
4505 #ifdef HAVE_VFORK_H
4506 # include <vfork.h>
4507 #endif
4508 /* On some sparc systems, changes by the child to local and incoming
4509 argument registers are propagated back to the parent. The compiler
4510 is told about this with #include <vfork.h>, but some compilers
4511 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4512 static variable whose address is put into a register that is
4513 clobbered by the vfork. */
4514 static void
4515 #ifdef __cplusplus
4516 sparc_address_test (int arg)
4517 # else
4518 sparc_address_test (arg) int arg;
4519 #endif
4520 {
4521 static pid_t child;
4522 if (!child) {
4523 child = vfork ();
4524 if (child < 0) {
4525 perror ("vfork");
4526 _exit(2);
4527 }
4528 if (!child) {
4529 arg = getpid();
4530 write(-1, "", 0);
4531 _exit (arg);
4532 }
4533 }
4534 }
4535
4536 int
4537 main ()
4538 {
4539 pid_t parent = getpid ();
4540 pid_t child;
4541
4542 sparc_address_test (0);
4543
4544 child = vfork ();
4545
4546 if (child == 0) {
4547 /* Here is another test for sparc vfork register problems. This
4548 test uses lots of local variables, at least as many local
4549 variables as main has allocated so far including compiler
4550 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4551 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4552 reuse the register of parent for one of the local variables,
4553 since it will think that parent can't possibly be used any more
4554 in this routine. Assigning to the local variable will thus
4555 munge parent in the parent process. */
4556 pid_t
4557 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4558 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4559 /* Convince the compiler that p..p7 are live; otherwise, it might
4560 use the same hardware register for all 8 local variables. */
4561 if (p != p1 || p != p2 || p != p3 || p != p4
4562 || p != p5 || p != p6 || p != p7)
4563 _exit(1);
4564
4565 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4566 from child file descriptors. If the child closes a descriptor
4567 before it execs or exits, this munges the parent's descriptor
4568 as well. Test for this by closing stdout in the child. */
4569 _exit(close(fileno(stdout)) != 0);
4570 } else {
4571 int status;
4572 struct stat st;
4573
4574 while (wait(&status) != child)
4575 ;
4576 return (
4577 /* Was there some problem with vforking? */
4578 child < 0
4579
4580 /* Did the child fail? (This shouldn't happen.) */
4581 || status
4582
4583 /* Did the vfork/compiler bug occur? */
4584 || parent != getpid()
4585
4586 /* Did the file descriptor bug occur? */
4587 || fstat(fileno(stdout), &st) != 0
4588 );
4589 }
4590 }
4591 _ACEOF
4592 if ac_fn_c_try_run "$LINENO"; then :
4593 ac_cv_func_vfork_works=yes
4594 else
4595 ac_cv_func_vfork_works=no
4596 fi
4597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4598 conftest.$ac_objext conftest.beam conftest.$ac_ext
4599 fi
4600
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4603 $as_echo "$ac_cv_func_vfork_works" >&6; }
4604
4605 fi;
4606 if test "x$ac_cv_func_fork_works" = xcross; then
4607 ac_cv_func_vfork_works=$ac_cv_func_vfork
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4609 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4610 fi
4611
4612 if test "x$ac_cv_func_vfork_works" = xyes; then
4613
4614 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4615
4616 else
4617
4618 $as_echo "#define vfork fork" >>confdefs.h
4619
4620 fi
4621 if test "x$ac_cv_func_fork_works" = xyes; then
4622
4623 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
4624
4625 fi
4626
4627 for ac_header in stdlib.h
4628 do :
4629 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4630 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4631 cat >>confdefs.h <<_ACEOF
4632 #define HAVE_STDLIB_H 1
4633 _ACEOF
4634
4635 fi
4636
4637 done
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4640 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4641 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test "$cross_compiling" = yes; then :
4645 ac_cv_func_malloc_0_nonnull=no
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4650 # include <stdlib.h>
4651 #else
4652 char *malloc ();
4653 #endif
4654
4655 int
4656 main ()
4657 {
4658 return ! malloc (0);
4659 ;
4660 return 0;
4661 }
4662 _ACEOF
4663 if ac_fn_c_try_run "$LINENO"; then :
4664 ac_cv_func_malloc_0_nonnull=yes
4665 else
4666 ac_cv_func_malloc_0_nonnull=no
4667 fi
4668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4669 conftest.$ac_objext conftest.beam conftest.$ac_ext
4670 fi
4671
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4674 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4675 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4676
4677 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4678
4679 else
4680 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4681
4682 case " $LIBOBJS " in
4683 *" malloc.$ac_objext "* ) ;;
4684 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4685 ;;
4686 esac
4687
4688
4689 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4690
4691 fi
4692
4693
4694 for ac_header in stdlib.h
4695 do :
4696 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4697 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4698 cat >>confdefs.h <<_ACEOF
4699 #define HAVE_STDLIB_H 1
4700 _ACEOF
4701
4702 fi
4703
4704 done
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4707 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4708 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test "$cross_compiling" = yes; then :
4712 ac_cv_func_realloc_0_nonnull=no
4713 else
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4717 # include <stdlib.h>
4718 #else
4719 char *realloc ();
4720 #endif
4721
4722 int
4723 main ()
4724 {
4725 return ! realloc (0, 0);
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_run "$LINENO"; then :
4731 ac_cv_func_realloc_0_nonnull=yes
4732 else
4733 ac_cv_func_realloc_0_nonnull=no
4734 fi
4735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4736 conftest.$ac_objext conftest.beam conftest.$ac_ext
4737 fi
4738
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4741 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4742 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4743
4744 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4745
4746 else
4747 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4748
4749 case " $LIBOBJS " in
4750 *" realloc.$ac_objext "* ) ;;
4751 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4752 ;;
4753 esac
4754
4755
4756 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4757
4758 fi
4759
4760
4761 for ac_func in alarm dup2 gethostname memmove memset mkdir putenv rmdir select strcasecmp strchr strcspn strncasecmp strrchr strstr strdup strtol getpwuid
4762 do :
4763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4766 cat >>confdefs.h <<_ACEOF
4767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4768 _ACEOF
4769
4770 fi
4771 done
4772
4773
4774 ac_config_files="$ac_config_files Makefile"
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 cat >>confdefs.h <<_ACEOF
4785 #define VERSION "${PACKAGE_VERSION}"
4786 _ACEOF
4787
4788 cat >>confdefs.h <<_ACEOF
4789 #define GLOBAL_PLUGIN_DIRS "${PLUGINDIRS}"
4790 _ACEOF
4791
4792 if test "x${MOZPLUGGER_SO_BLOB}" != x; then
4793 $as_echo "#define READ_FROM_INT_BLOB 1" >>confdefs.h
4794
4795 fi
4796 cat >confcache <<\_ACEOF
4797 # This file is a shell script that caches the results of configure
4798 # tests run on this system so they can be shared between configure
4799 # scripts and configure runs, see configure's option --config-cache.
4800 # It is not useful on other systems. If it contains results you don't
4801 # want to keep, you may remove or edit it.
4802 #
4803 # config.status only pays attention to the cache file if you give it
4804 # the --recheck option to rerun configure.
4805 #
4806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4808 # following values.
4809
4810 _ACEOF
4811
4812 # The following way of writing the cache mishandles newlines in values,
4813 # but we know of no workaround that is simple, portable, and efficient.
4814 # So, we kill variables containing newlines.
4815 # Ultrix sh set writes to stderr and can't be redirected directly,
4816 # and sets the high bit in the cache file unless we assign to the vars.
4817 (
4818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4819 eval ac_val=\$$ac_var
4820 case $ac_val in #(
4821 *${as_nl}*)
4822 case $ac_var in #(
4823 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4825 esac
4826 case $ac_var in #(
4827 _ | IFS | as_nl) ;; #(
4828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4829 *) { eval $ac_var=; unset $ac_var;} ;;
4830 esac ;;
4831 esac
4832 done
4833
4834 (set) 2>&1 |
4835 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4836 *${as_nl}ac_space=\ *)
4837 # `set' does not quote correctly, so add quotes: double-quote
4838 # substitution turns \\\\ into \\, and sed turns \\ into \.
4839 sed -n \
4840 "s/'/'\\\\''/g;
4841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4842 ;; #(
4843 *)
4844 # `set' quotes correctly as required by POSIX, so do not add quotes.
4845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4846 ;;
4847 esac |
4848 sort
4849 ) |
4850 sed '
4851 /^ac_cv_env_/b end
4852 t clear
4853 :clear
4854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4855 t end
4856 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4857 :end' >>confcache
4858 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4859 if test -w "$cache_file"; then
4860 if test "x$cache_file" != "x/dev/null"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4862 $as_echo "$as_me: updating cache $cache_file" >&6;}
4863 if test ! -f "$cache_file" || test -h "$cache_file"; then
4864 cat confcache >"$cache_file"
4865 else
4866 case $cache_file in #(
4867 */* | ?:*)
4868 mv -f confcache "$cache_file"$$ &&
4869 mv -f "$cache_file"$$ "$cache_file" ;; #(
4870 *)
4871 mv -f confcache "$cache_file" ;;
4872 esac
4873 fi
4874 fi
4875 else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4877 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4878 fi
4879 fi
4880 rm -f confcache
4881
4882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4883 # Let make expand exec_prefix.
4884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4885
4886 DEFS=-DHAVE_CONFIG_H
4887
4888 ac_libobjs=
4889 ac_ltlibobjs=
4890 U=
4891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4892 # 1. Remove the extension, and $U if already installed.
4893 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4894 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4896 # will be set to the directory where LIBOBJS objects are built.
4897 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4898 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4899 done
4900 LIBOBJS=$ac_libobjs
4901
4902 LTLIBOBJS=$ac_ltlibobjs
4903
4904
4905
4906 : "${CONFIG_STATUS=./config.status}"
4907 ac_write_fail=0
4908 ac_clean_files_save=$ac_clean_files
4909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4912 as_write_fail=0
4913 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4914 #! $SHELL
4915 # Generated by $as_me.
4916 # Run this file to recreate the current configuration.
4917 # Compiler output produced by configure, useful for debugging
4918 # configure, is in config.log if it exists.
4919
4920 debug=false
4921 ac_cs_recheck=false
4922 ac_cs_silent=false
4923
4924 SHELL=\${CONFIG_SHELL-$SHELL}
4925 export SHELL
4926 _ASEOF
4927 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4928 ## -------------------- ##
4929 ## M4sh Initialization. ##
4930 ## -------------------- ##
4931
4932 # Be more Bourne compatible
4933 DUALCASE=1; export DUALCASE # for MKS sh
4934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4935 emulate sh
4936 NULLCMD=:
4937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4938 # is contrary to our usage. Disable this feature.
4939 alias -g '${1+"$@"}'='"$@"'
4940 setopt NO_GLOB_SUBST
4941 else
4942 case `(set -o) 2>/dev/null` in #(
4943 *posix*) :
4944 set -o posix ;; #(
4945 *) :
4946 ;;
4947 esac
4948 fi
4949
4950
4951 as_nl='
4952 '
4953 export as_nl
4954 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4955 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4958 # Prefer a ksh shell builtin over an external printf program on Solaris,
4959 # but without wasting forks for bash or zsh.
4960 if test -z "$BASH_VERSION$ZSH_VERSION" \
4961 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4962 as_echo='print -r --'
4963 as_echo_n='print -rn --'
4964 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4965 as_echo='printf %s\n'
4966 as_echo_n='printf %s'
4967 else
4968 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4969 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4970 as_echo_n='/usr/ucb/echo -n'
4971 else
4972 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4973 as_echo_n_body='eval
4974 arg=$1;
4975 case $arg in #(
4976 *"$as_nl"*)
4977 expr "X$arg" : "X\\(.*\\)$as_nl";
4978 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4979 esac;
4980 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4981 '
4982 export as_echo_n_body
4983 as_echo_n='sh -c $as_echo_n_body as_echo'
4984 fi
4985 export as_echo_body
4986 as_echo='sh -c $as_echo_body as_echo'
4987 fi
4988
4989 # The user is always right.
4990 if test "${PATH_SEPARATOR+set}" != set; then
4991 PATH_SEPARATOR=:
4992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4994 PATH_SEPARATOR=';'
4995 }
4996 fi
4997
4998
4999 # IFS
5000 # We need space, tab and new line, in precisely that order. Quoting is
5001 # there to prevent editors from complaining about space-tab.
5002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5003 # splitting by setting IFS to empty value.)
5004 IFS=" "" $as_nl"
5005
5006 # Find who we are. Look in the path if we contain no directory separator.
5007 as_myself=
5008 case $0 in #((
5009 *[\\/]* ) as_myself=$0 ;;
5010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5016 done
5017 IFS=$as_save_IFS
5018
5019 ;;
5020 esac
5021 # We did not find ourselves, most probably we were run as `sh COMMAND'
5022 # in which case we are not to be found in the path.
5023 if test "x$as_myself" = x; then
5024 as_myself=$0
5025 fi
5026 if test ! -f "$as_myself"; then
5027 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5028 exit 1
5029 fi
5030
5031 # Unset variables that we do not need and which cause bugs (e.g. in
5032 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5033 # suppresses any "Segmentation fault" message there. '((' could
5034 # trigger a bug in pdksh 5.2.14.
5035 for as_var in BASH_ENV ENV MAIL MAILPATH
5036 do eval test x\${$as_var+set} = xset \
5037 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5038 done
5039 PS1='$ '
5040 PS2='> '
5041 PS4='+ '
5042
5043 # NLS nuisances.
5044 LC_ALL=C
5045 export LC_ALL
5046 LANGUAGE=C
5047 export LANGUAGE
5048
5049 # CDPATH.
5050 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5051
5052
5053 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5054 # ----------------------------------------
5055 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5056 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5057 # script with STATUS, using 1 if that was 0.
5058 as_fn_error ()
5059 {
5060 as_status=$1; test $as_status -eq 0 && as_status=1
5061 if test "$4"; then
5062 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5063 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5064 fi
5065 $as_echo "$as_me: error: $2" >&2
5066 as_fn_exit $as_status
5067 } # as_fn_error
5068
5069
5070 # as_fn_set_status STATUS
5071 # -----------------------
5072 # Set $? to STATUS, without forking.
5073 as_fn_set_status ()
5074 {
5075 return $1
5076 } # as_fn_set_status
5077
5078 # as_fn_exit STATUS
5079 # -----------------
5080 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5081 as_fn_exit ()
5082 {
5083 set +e
5084 as_fn_set_status $1
5085 exit $1
5086 } # as_fn_exit
5087
5088 # as_fn_unset VAR
5089 # ---------------
5090 # Portably unset VAR.
5091 as_fn_unset ()
5092 {
5093 { eval $1=; unset $1;}
5094 }
5095 as_unset=as_fn_unset
5096 # as_fn_append VAR VALUE
5097 # ----------------------
5098 # Append the text in VALUE to the end of the definition contained in VAR. Take
5099 # advantage of any shell optimizations that allow amortized linear growth over
5100 # repeated appends, instead of the typical quadratic growth present in naive
5101 # implementations.
5102 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5103 eval 'as_fn_append ()
5104 {
5105 eval $1+=\$2
5106 }'
5107 else
5108 as_fn_append ()
5109 {
5110 eval $1=\$$1\$2
5111 }
5112 fi # as_fn_append
5113
5114 # as_fn_arith ARG...
5115 # ------------------
5116 # Perform arithmetic evaluation on the ARGs, and store the result in the
5117 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5118 # must be portable across $(()) and expr.
5119 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5120 eval 'as_fn_arith ()
5121 {
5122 as_val=$(( $* ))
5123 }'
5124 else
5125 as_fn_arith ()
5126 {
5127 as_val=`expr "$@" || test $? -eq 1`
5128 }
5129 fi # as_fn_arith
5130
5131
5132 if expr a : '\(a\)' >/dev/null 2>&1 &&
5133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5134 as_expr=expr
5135 else
5136 as_expr=false
5137 fi
5138
5139 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5140 as_basename=basename
5141 else
5142 as_basename=false
5143 fi
5144
5145 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5146 as_dirname=dirname
5147 else
5148 as_dirname=false
5149 fi
5150
5151 as_me=`$as_basename -- "$0" ||
5152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5153 X"$0" : 'X\(//\)$' \| \
5154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5155 $as_echo X/"$0" |
5156 sed '/^.*\/\([^/][^/]*\)\/*$/{
5157 s//\1/
5158 q
5159 }
5160 /^X\/\(\/\/\)$/{
5161 s//\1/
5162 q
5163 }
5164 /^X\/\(\/\).*/{
5165 s//\1/
5166 q
5167 }
5168 s/.*/./; q'`
5169
5170 # Avoid depending upon Character Ranges.
5171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5174 as_cr_digits='0123456789'
5175 as_cr_alnum=$as_cr_Letters$as_cr_digits
5176
5177 ECHO_C= ECHO_N= ECHO_T=
5178 case `echo -n x` in #(((((
5179 -n*)
5180 case `echo 'xy\c'` in
5181 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5182 xy) ECHO_C='\c';;
5183 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5184 ECHO_T=' ';;
5185 esac;;
5186 *)
5187 ECHO_N='-n';;
5188 esac
5189
5190 rm -f conf$$ conf$$.exe conf$$.file
5191 if test -d conf$$.dir; then
5192 rm -f conf$$.dir/conf$$.file
5193 else
5194 rm -f conf$$.dir
5195 mkdir conf$$.dir 2>/dev/null
5196 fi
5197 if (echo >conf$$.file) 2>/dev/null; then
5198 if ln -s conf$$.file conf$$ 2>/dev/null; then
5199 as_ln_s='ln -s'
5200 # ... but there are two gotchas:
5201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5203 # In both cases, we have to default to `cp -pR'.
5204 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5205 as_ln_s='cp -pR'
5206 elif ln conf$$.file conf$$ 2>/dev/null; then
5207 as_ln_s=ln
5208 else
5209 as_ln_s='cp -pR'
5210 fi
5211 else
5212 as_ln_s='cp -pR'
5213 fi
5214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5215 rmdir conf$$.dir 2>/dev/null
5216
5217
5218 # as_fn_mkdir_p
5219 # -------------
5220 # Create "$as_dir" as a directory, including parents if necessary.
5221 as_fn_mkdir_p ()
5222 {
5223
5224 case $as_dir in #(
5225 -*) as_dir=./$as_dir;;
5226 esac
5227 test -d "$as_dir" || eval $as_mkdir_p || {
5228 as_dirs=
5229 while :; do
5230 case $as_dir in #(
5231 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5232 *) as_qdir=$as_dir;;
5233 esac
5234 as_dirs="'$as_qdir' $as_dirs"
5235 as_dir=`$as_dirname -- "$as_dir" ||
5236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5237 X"$as_dir" : 'X\(//\)[^/]' \| \
5238 X"$as_dir" : 'X\(//\)$' \| \
5239 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5240 $as_echo X"$as_dir" |
5241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5242 s//\1/
5243 q
5244 }
5245 /^X\(\/\/\)[^/].*/{
5246 s//\1/
5247 q
5248 }
5249 /^X\(\/\/\)$/{
5250 s//\1/
5251 q
5252 }
5253 /^X\(\/\).*/{
5254 s//\1/
5255 q
5256 }
5257 s/.*/./; q'`
5258 test -d "$as_dir" && break
5259 done
5260 test -z "$as_dirs" || eval "mkdir $as_dirs"
5261 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5262
5263
5264 } # as_fn_mkdir_p
5265 if mkdir -p . 2>/dev/null; then
5266 as_mkdir_p='mkdir -p "$as_dir"'
5267 else
5268 test -d ./-p && rmdir ./-p
5269 as_mkdir_p=false
5270 fi
5271
5272
5273 # as_fn_executable_p FILE
5274 # -----------------------
5275 # Test if FILE is an executable regular file.
5276 as_fn_executable_p ()
5277 {
5278 test -f "$1" && test -x "$1"
5279 } # as_fn_executable_p
5280 as_test_x='test -x'
5281 as_executable_p=as_fn_executable_p
5282
5283 # Sed expression to map a string onto a valid CPP name.
5284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5285
5286 # Sed expression to map a string onto a valid variable name.
5287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5288
5289
5290 exec 6>&1
5291 ## ----------------------------------- ##
5292 ## Main body of $CONFIG_STATUS script. ##
5293 ## ----------------------------------- ##
5294 _ASEOF
5295 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5296
5297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5298 # Save the log message, to keep $0 and so on meaningful, and to
5299 # report actual input values of CONFIG_FILES etc. instead of their
5300 # values after options handling.
5301 ac_log="
5302 This file was extended by mozplugger $as_me 2.1.6, which was
5303 generated by GNU Autoconf 2.69. Invocation command line was
5304
5305 CONFIG_FILES = $CONFIG_FILES
5306 CONFIG_HEADERS = $CONFIG_HEADERS
5307 CONFIG_LINKS = $CONFIG_LINKS
5308 CONFIG_COMMANDS = $CONFIG_COMMANDS
5309 $ $0 $@
5310
5311 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5312 "
5313
5314 _ACEOF
5315
5316 case $ac_config_files in *"
5317 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5318 esac
5319
5320 case $ac_config_headers in *"
5321 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5322 esac
5323
5324
5325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5326 # Files that config.status was made for.
5327 config_files="$ac_config_files"
5328 config_headers="$ac_config_headers"
5329
5330 _ACEOF
5331
5332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5333 ac_cs_usage="\
5334 \`$as_me' instantiates files and other configuration actions
5335 from templates according to the current configuration. Unless the files
5336 and actions are specified as TAGs, all are instantiated by default.
5337
5338 Usage: $0 [OPTION]... [TAG]...
5339
5340 -h, --help print this help, then exit
5341 -V, --version print version number and configuration settings, then exit
5342 --config print configuration, then exit
5343 -q, --quiet, --silent
5344 do not print progress messages
5345 -d, --debug don't remove temporary files
5346 --recheck update $as_me by reconfiguring in the same conditions
5347 --file=FILE[:TEMPLATE]
5348 instantiate the configuration file FILE
5349 --header=FILE[:TEMPLATE]
5350 instantiate the configuration header FILE
5351
5352 Configuration files:
5353 $config_files
5354
5355 Configuration headers:
5356 $config_headers
5357
5358 Report bugs to the package provider."
5359
5360 _ACEOF
5361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5362 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5363 ac_cs_version="\\
5364 mozplugger config.status 2.1.6
5365 configured by $0, generated by GNU Autoconf 2.69,
5366 with options \\"\$ac_cs_config\\"
5367
5368 Copyright (C) 2012 Free Software Foundation, Inc.
5369 This config.status script is free software; the Free Software Foundation
5370 gives unlimited permission to copy, distribute and modify it."
5371
5372 ac_pwd='$ac_pwd'
5373 srcdir='$srcdir'
5374 test -n "\$AWK" || AWK=awk
5375 _ACEOF
5376
5377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5378 # The default lists apply if the user does not specify any file.
5379 ac_need_defaults=:
5380 while test $# != 0
5381 do
5382 case $1 in
5383 --*=?*)
5384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5386 ac_shift=:
5387 ;;
5388 --*=)
5389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5390 ac_optarg=
5391 ac_shift=:
5392 ;;
5393 *)
5394 ac_option=$1
5395 ac_optarg=$2
5396 ac_shift=shift
5397 ;;
5398 esac
5399
5400 case $ac_option in
5401 # Handling of the options.
5402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5403 ac_cs_recheck=: ;;
5404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5405 $as_echo "$ac_cs_version"; exit ;;
5406 --config | --confi | --conf | --con | --co | --c )
5407 $as_echo "$ac_cs_config"; exit ;;
5408 --debug | --debu | --deb | --de | --d | -d )
5409 debug=: ;;
5410 --file | --fil | --fi | --f )
5411 $ac_shift
5412 case $ac_optarg in
5413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5414 '') as_fn_error $? "missing file argument" ;;
5415 esac
5416 as_fn_append CONFIG_FILES " '$ac_optarg'"
5417 ac_need_defaults=false;;
5418 --header | --heade | --head | --hea )
5419 $ac_shift
5420 case $ac_optarg in
5421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5422 esac
5423 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5424 ac_need_defaults=false;;
5425 --he | --h)
5426 # Conflict between --help and --header
5427 as_fn_error $? "ambiguous option: \`$1'
5428 Try \`$0 --help' for more information.";;
5429 --help | --hel | -h )
5430 $as_echo "$ac_cs_usage"; exit ;;
5431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5432 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5433 ac_cs_silent=: ;;
5434
5435 # This is an error.
5436 -*) as_fn_error $? "unrecognized option: \`$1'
5437 Try \`$0 --help' for more information." ;;
5438
5439 *) as_fn_append ac_config_targets " $1"
5440 ac_need_defaults=false ;;
5441
5442 esac
5443 shift
5444 done
5445
5446 ac_configure_extra_args=
5447
5448 if $ac_cs_silent; then
5449 exec 6>/dev/null
5450 ac_configure_extra_args="$ac_configure_extra_args --silent"
5451 fi
5452
5453 _ACEOF
5454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5455 if \$ac_cs_recheck; then
5456 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5457 shift
5458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5459 CONFIG_SHELL='$SHELL'
5460 export CONFIG_SHELL
5461 exec "\$@"
5462 fi
5463
5464 _ACEOF
5465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5466 exec 5>>config.log
5467 {
5468 echo
5469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5470 ## Running $as_me. ##
5471 _ASBOX
5472 $as_echo "$ac_log"
5473 } >&5
5474
5475 _ACEOF
5476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5477 _ACEOF
5478
5479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5480
5481 # Handling of argum