configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXv 1.0.11.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libXv'
593 PACKAGE_TARNAME='libXv'
594 PACKAGE_VERSION='1.0.11'
595 PACKAGE_STRING='libXv 1.0.11'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 MAKE_LINT_LIB_FALSE
641 MAKE_LINT_LIB_TRUE
642 LINTLIB
643 LINT_FALSE
644 LINT_TRUE
645 LINT_FLAGS
646 LINT
647 XV_LIBS
648 XV_CFLAGS
649 XTMALLOC_ZERO_CFLAGS
650 XMALLOC_ZERO_CFLAGS
651 MALLOC_ZERO_CFLAGS
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 INSTALL_CMD
667 PKG_CONFIG_LIBDIR
668 PKG_CONFIG_PATH
669 PKG_CONFIG
670 CHANGELOG_CMD
671 STRICT_CFLAGS
672 CWARNFLAGS
673 BASE_CFLAGS
674 CPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 RANLIB
682 ac_ct_AR
683 AR
684 DLLTOOL
685 OBJDUMP
686 LN_S
687 NM
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LD
691 FGREP
692 EGREP
693 GREP
694 SED
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 LIBTOOL
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_silent_rules
790 enable_shared
791 enable_static
792 with_pic
793 enable_fast_install
794 enable_dependency_tracking
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 enable_selective_werror
799 enable_strict_compilation
800 enable_malloc0returnsnull
801 with_lint
802 enable_lint_library
803 '
804 ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 LIBS
811 CPPFLAGS
812 CPP
813 PKG_CONFIG
814 PKG_CONFIG_PATH
815 PKG_CONFIG_LIBDIR
816 XV_CFLAGS
817 XV_LIBS
818 LINT
819 LINT_FLAGS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures libXv 1.0.11 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libXv]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libXv 1.0.11:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --disable-selective-werror
1450 Turn off selective compiler errors. (default:
1451 enabled)
1452 --enable-strict-compilation
1453 Enable all warnings from compiler and make them
1454 errors (default: disabled)
1455 --enable-malloc0returnsnull
1456 malloc(0) returns NULL (default: auto)
1457 --enable-lint-library Create lint library (default: disabled)
1458
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot=DIR Search for dependent libraries within DIR
1466 (or the compiler's sysroot if not specified).
1467 --with-lint Use a lint-style source code checker (default:
1468 disabled)
1469
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CPP C preprocessor
1479 PKG_CONFIG path to pkg-config utility
1480 PKG_CONFIG_PATH
1481 directories to add to pkg-config's search path
1482 PKG_CONFIG_LIBDIR
1483 path overriding pkg-config's built-in search path
1484 XV_CFLAGS C compiler flags for XV, overriding pkg-config
1485 XV_LIBS linker flags for XV, overriding pkg-config
1486 LINT Path to a lint-style command
1487 LINT_FLAGS Flags for the lint-style command
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 libXv configure 1.0.11
1556 generated by GNU Autoconf 2.69
1557
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 test -x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_link
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } > conftest.i && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778 #define $2 innocuous_$2
1779
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1784
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1790
1791 #undef $2
1792
1793 /* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1806
1807 int
1808 main ()
1809 {
1810 return $2 ();
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1831 # ---------------------------------------------
1832 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1833 # accordingly.
1834 ac_fn_c_check_decl ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 as_decl_name=`echo $2|sed 's/ *(.*//'`
1838 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 $4
1847 int
1848 main ()
1849 {
1850 #ifndef $as_decl_name
1851 #ifdef __cplusplus
1852 (void) $as_decl_use;
1853 #else
1854 (void) $as_decl_name;
1855 #endif
1856 #endif
1857
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_decl
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1878
1879 It was created by libXv $as_me 1.0.11, which was
1880 generated by GNU Autoconf 2.69. Invocation command line was
1881
1882 $ $0 $@
1883
1884 _ACEOF
1885 exec 5>>config.log
1886 {
1887 cat <<_ASUNAME
1888 ## --------- ##
1889 ## Platform. ##
1890 ## --------- ##
1891
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900
1901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908
1909 _ASUNAME
1910
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 $as_echo "PATH: $as_dir"
1917 done
1918 IFS=$as_save_IFS
1919
1920 } >&5
1921
1922 cat >&5 <<_ACEOF
1923
1924
1925 ## ----------- ##
1926 ## Core tests. ##
1927 ## ----------- ##
1928
1929 _ACEOF
1930
1931
1932 # Keep a trace of the command line.
1933 # Strip out --no-create and --no-recursion so they do not pile up.
1934 # Strip out --silent because we don't want to record it for future runs.
1935 # Also quote any args containing shell meta-characters.
1936 # Make two passes to allow for proper duplicate-argument suppression.
1937 ac_configure_args=
1938 ac_configure_args0=
1939 ac_configure_args1=
1940 ac_must_keep_next=false
1941 for ac_pass in 1 2
1942 do
1943 for ac_arg
1944 do
1945 case $ac_arg in
1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948 | -silent | --silent | --silen | --sile | --sil)
1949 continue ;;
1950 *\'*)
1951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 esac
1953 case $ac_pass in
1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955 2)
1956 as_fn_append ac_configure_args1 " '$ac_arg'"
1957 if test $ac_must_keep_next = true; then
1958 ac_must_keep_next=false # Got value, back to normal.
1959 else
1960 case $ac_arg in
1961 *=* | --config-cache | -C | -disable-* | --disable-* \
1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964 | -with-* | --with-* | -without-* | --without-* | --x)
1965 case "$ac_configure_args0 " in
1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967 esac
1968 ;;
1969 -* ) ac_must_keep_next=true ;;
1970 esac
1971 fi
1972 as_fn_append ac_configure_args " '$ac_arg'"
1973 ;;
1974 esac
1975 done
1976 done
1977 { ac_configure_args0=; unset ac_configure_args0;}
1978 { ac_configure_args1=; unset ac_configure_args1;}
1979
1980 # When interrupted or exit'd, cleanup temporary files, and complete
1981 # config.log. We remove comments because anyway the quotes in there
1982 # would cause problems or look ugly.
1983 # WARNING: Use '\'' to represent an apostrophe within the trap.
1984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985 trap 'exit_status=$?
1986 # Save into config.log some information that might help in debugging.
1987 {
1988 echo
1989
1990 $as_echo "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1995 (
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2018 *)
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020 ;;
2021 esac |
2022 sort
2023 )
2024 echo
2025
2026 $as_echo "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2029 echo
2030 for ac_var in $ac_subst_vars
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 $as_echo "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039
2040 if test -n "$ac_subst_files"; then
2041 $as_echo "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2044 echo
2045 for ac_var in $ac_subst_files
2046 do
2047 eval ac_val=\$$ac_var
2048 case $ac_val in
2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 esac
2051 $as_echo "$ac_var='\''$ac_val'\''"
2052 done | sort
2053 echo
2054 fi
2055
2056 if test -s confdefs.h; then
2057 $as_echo "## ----------- ##
2058 ## confdefs.h. ##
2059 ## ----------- ##"
2060 echo
2061 cat confdefs.h
2062 echo
2063 fi
2064 test "$ac_signal" != 0 &&
2065 $as_echo "$as_me: caught signal $ac_signal"
2066 $as_echo "$as_me: exit $exit_status"
2067 } >&5
2068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070 exit $exit_status
2071 ' 0
2072 for ac_signal in 1 2 13 15; do
2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 done
2075 ac_signal=0
2076
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2079
2080 $as_echo "/* confdefs.h */" > confdefs.h
2081
2082 # Predefined preprocessor variables.
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_NAME "$PACKAGE_NAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_STRING "$PACKAGE_STRING"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_URL "$PACKAGE_URL"
2106 _ACEOF
2107
2108
2109 # Let the site file select an alternate cache file if it wants to.
2110 # Prefer an explicitly selected file to automatically selected ones.
2111 ac_site_file1=NONE
2112 ac_site_file2=NONE
2113 if test -n "$CONFIG_SITE"; then
2114 # We do not want a PATH search for config.site.
2115 case $CONFIG_SITE in #((
2116 -*) ac_site_file1=./$CONFIG_SITE;;
2117 */*) ac_site_file1=$CONFIG_SITE;;
2118 *) ac_site_file1=./$CONFIG_SITE;;
2119 esac
2120 elif test "x$prefix" != xNONE; then
2121 ac_site_file1=$prefix/share/config.site
2122 ac_site_file2=$prefix/etc/config.site
2123 else
2124 ac_site_file1=$ac_default_prefix/share/config.site
2125 ac_site_file2=$ac_default_prefix/etc/config.site
2126 fi
2127 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2128 do
2129 test "x$ac_site_file" = xNONE && continue
2130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133 sed 's/^/| /' "$ac_site_file" >&5
2134 . "$ac_site_file" \
2135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 as_fn_error $? "failed to load site script $ac_site_file
2138 See \`config.log' for more details" "$LINENO" 5; }
2139 fi
2140 done
2141
2142 if test -r "$cache_file"; then
2143 # Some versions of bash will fail to source /dev/null (special files
2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2148 case $cache_file in
2149 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150 *) . "./$cache_file";;
2151 esac
2152 fi
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2156 >$cache_file
2157 fi
2158
2159 # Check that the precious variables saved in the cache have kept the same
2160 # value.
2161 ac_cache_corrupted=false
2162 for ac_var in $ac_precious_vars; do
2163 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164 eval ac_new_set=\$ac_env_${ac_var}_set
2165 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166 eval ac_new_val=\$ac_env_${ac_var}_value
2167 case $ac_old_set,$ac_new_set in
2168 set,)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,set)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,);;
2177 *)
2178 if test "x$ac_old_val" != "x$ac_new_val"; then
2179 # differences in whitespace do not lead to failure.
2180 ac_old_val_w=`echo x $ac_old_val`
2181 ac_new_val_w=`echo x $ac_new_val`
2182 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185 ac_cache_corrupted=:
2186 else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189 eval $ac_var=\$ac_old_val
2190 fi
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2192 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2194 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2195 fi;;
2196 esac
2197 # Pass precious variables to config.status.
2198 if test "$ac_new_set" = set; then
2199 case $ac_new_val in
2200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 *) ac_arg=$ac_var=$ac_new_val ;;
2202 esac
2203 case " $ac_configure_args " in
2204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2205 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206 esac
2207 fi
2208 done
2209 if $ac_cache_corrupted; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215 fi
2216 ## -------------------- ##
2217 ## Main body of script. ##
2218 ## -------------------- ##
2219
2220 ac_ext=c
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225
2226
2227
2228 ac_config_headers="$ac_config_headers config.h"
2229
2230
2231 # Initialize Automake
2232 am__api_version='1.14'
2233
2234 ac_aux_dir=
2235 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2236 if test -f "$ac_dir/install-sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2239 break
2240 elif test -f "$ac_dir/install.sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2243 break
2244 elif test -f "$ac_dir/shtool"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 break
2248 fi
2249 done
2250 if test -z "$ac_aux_dir"; then
2251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2252 fi
2253
2254 # These three variables are undocumented and unsupported,
2255 # and are intended to be withdrawn in a future Autoconf release.
2256 # They can cause serious problems if a builder's source tree is in a directory
2257 # whose full name contains unusual characters.
2258 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2259 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2260 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2261
2262
2263 # Find a good install program. We prefer a C program (faster),
2264 # so one script is as good as another. But avoid the broken or
2265 # incompatible versions:
2266 # SysV /etc/install, /usr/sbin/install
2267 # SunOS /usr/etc/install
2268 # IRIX /sbin/install
2269 # AIX /bin/install
2270 # AmigaOS /C/install, which installs bootblocks on floppy discs
2271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2274 # OS/2's system install, which has a completely different semantic
2275 # ./install, which can be erroneously created by make from ./install.sh.
2276 # Reject install programs that cannot install multiple files.
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2278 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2279 if test -z "$INSTALL"; then
2280 if ${ac_cv_path_install+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 # Account for people who put trailing slashes in PATH elements.
2289 case $as_dir/ in #((
2290 ./ | .// | /[cC]/* | \
2291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2293 /usr/ucb/* ) ;;
2294 *)
2295 # OSF1 and SCO ODT 3.0 have their own names for install.
2296 # Don't use installbsd from OSF since it installs stuff as root
2297 # by default.
2298 for ac_prog in ginstall scoinst install; do
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2301 if test $ac_prog = install &&
2302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303 # AIX install. It has an incompatible calling convention.
2304 :
2305 elif test $ac_prog = install &&
2306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # program-specific install script used by HP pwplus--don't use.
2308 :
2309 else
2310 rm -rf conftest.one conftest.two conftest.dir
2311 echo one > conftest.one
2312 echo two > conftest.two
2313 mkdir conftest.dir
2314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2315 test -s conftest.one && test -s conftest.two &&
2316 test -s conftest.dir/conftest.one &&
2317 test -s conftest.dir/conftest.two
2318 then
2319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2320 break 3
2321 fi
2322 fi
2323 fi
2324 done
2325 done
2326 ;;
2327 esac
2328
2329 done
2330 IFS=$as_save_IFS
2331
2332 rm -rf conftest.one conftest.two conftest.dir
2333
2334 fi
2335 if test "${ac_cv_path_install+set}" = set; then
2336 INSTALL=$ac_cv_path_install
2337 else
2338 # As a last resort, use the slow shell script. Don't cache a
2339 # value for INSTALL within a source directory, because that will
2340 # break other packages using the cache if that directory is
2341 # removed, or if the value is a relative name.
2342 INSTALL=$ac_install_sh
2343 fi
2344 fi
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2346 $as_echo "$INSTALL" >&6; }
2347
2348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2349 # It thinks the first close brace ends the variable substitution.
2350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2351
2352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2353
2354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2355
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2357 $as_echo_n "checking whether build environment is sane... " >&6; }
2358 # Reject unsafe characters in $srcdir or the absolute working directory
2359 # name. Accept space and tab only in the latter.
2360 am_lf='
2361 '
2362 case `pwd` in
2363 *[\\\"\#\$\&\'\`$am_lf]*)
2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365 esac
2366 case $srcdir in
2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2368 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2369 esac
2370
2371 # Do 'set' in a subshell so we don't clobber the current shell's
2372 # arguments. Must try -L first in case configure is actually a
2373 # symlink; some systems play weird games with the mod time of symlinks
2374 # (eg FreeBSD returns the mod time of the symlink's containing
2375 # directory).
2376 if (
2377 am_has_slept=no
2378 for am_try in 1 2; do
2379 echo "timestamp, slept: $am_has_slept" > conftest.file
2380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2381 if test "$*" = "X"; then
2382 # -L didn't work.
2383 set X `ls -t "$srcdir/configure" conftest.file`
2384 fi
2385 if test "$*" != "X $srcdir/configure conftest.file" \
2386 && test "$*" != "X conftest.file $srcdir/configure"; then
2387
2388 # If neither matched, then we have a broken ls. This can happen
2389 # if, for instance, CONFIG_SHELL is bash and it inherits a
2390 # broken ls alias from the environment. This has actually
2391 # happened. Such a system could not be considered "sane".
2392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2393 alias in your environment" "$LINENO" 5
2394 fi
2395 if test "$2" = conftest.file || test $am_try -eq 2; then
2396 break
2397 fi
2398 # Just in case.
2399 sleep 1
2400 am_has_slept=yes
2401 done
2402 test "$2" = conftest.file
2403 )
2404 then
2405 # Ok.
2406 :
2407 else
2408 as_fn_error $? "newly created file is older than distributed files!
2409 Check your system clock" "$LINENO" 5
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412 $as_echo "yes" >&6; }
2413 # If we didn't sleep, we still need to ensure time stamps of config.status and
2414 # generated files are strictly newer.
2415 am_sleep_pid=
2416 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2417 ( sleep 1 ) &
2418 am_sleep_pid=$!
2419 fi
2420
2421 rm -f conftest.file
2422
2423 test "$program_prefix" != NONE &&
2424 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2425 # Use a double $ so make ignores it.
2426 test "$program_suffix" != NONE &&
2427 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428 # Double any \ or $.
2429 # By default was `s,x,x', remove it if useless.
2430 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2432
2433 # expand $ac_aux_dir to an absolute path
2434 am_aux_dir=`cd $ac_aux_dir && pwd`
2435
2436 if test x"${MISSING+set}" != xset; then
2437 case $am_aux_dir in
2438 *\ * | *\ *)
2439 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2440 *)
2441 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2442 esac
2443 fi
2444 # Use eval to expand $SHELL
2445 if eval "$MISSING --is-lightweight"; then
2446 am_missing_run="$MISSING "
2447 else
2448 am_missing_run=
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2450 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2451 fi
2452
2453 if test x"${install_sh}" != xset; then
2454 case $am_aux_dir in
2455 *\ * | *\ *)
2456 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2457 *)
2458 install_sh="\${SHELL} $am_aux_dir/install-sh"
2459 esac
2460 fi
2461
2462 # Installed binaries are usually stripped using 'strip' when the user
2463 # run "make install-strip". However 'strip' might not be the right
2464 # tool to use in cross-compilation environments, therefore Automake
2465 # will honor the 'STRIP' environment variable to overrule this program.
2466 if test "$cross_compiling" != no; then
2467 if test -n "$ac_tool_prefix"; then
2468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469 set dummy ${ac_tool_prefix}strip; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if ${ac_cv_prog_STRIP+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$STRIP"; then
2476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 STRIP=$ac_cv_prog_STRIP
2496 if test -n "$STRIP"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498 $as_echo "$STRIP" >&6; }
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504
2505 fi
2506 if test -z "$ac_cv_prog_STRIP"; then
2507 ac_ct_STRIP=$STRIP
2508 # Extract the first word of "strip", so it can be a program name with args.
2509 set dummy strip; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$ac_ct_STRIP"; then
2516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_ac_ct_STRIP="strip"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536 if test -n "$ac_ct_STRIP"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538 $as_echo "$ac_ct_STRIP" >&6; }
2539 else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544 if test "x$ac_ct_STRIP" = x; then
2545 STRIP=":"
2546 else
2547 case $cross_compiling:$ac_tool_warned in
2548 yes:)
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551 ac_tool_warned=yes ;;
2552 esac
2553 STRIP=$ac_ct_STRIP
2554 fi
2555 else
2556 STRIP="$ac_cv_prog_STRIP"
2557 fi
2558
2559 fi
2560 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564 if test -z "$MKDIR_P"; then
2565 if ${ac_cv_path_mkdir+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_prog in mkdir gmkdir; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2576 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2577 'mkdir (GNU coreutils) '* | \
2578 'mkdir (coreutils) '* | \
2579 'mkdir (fileutils) '4.1*)
2580 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2581 break 3;;
2582 esac
2583 done
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589
2590 test -d ./--version && rmdir ./--version
2591 if test "${ac_cv_path_mkdir+set}" = set; then
2592 MKDIR_P="$ac_cv_path_mkdir -p"
2593 else
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for MKDIR_P within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 MKDIR_P="$ac_install_sh -d"
2599 fi
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602 $as_echo "$MKDIR_P" >&6; }
2603
2604 for ac_prog in gawk mawk nawk awk
2605 do
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_AWK+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$AWK"; then
2614 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_AWK="$ac_prog"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 AWK=$ac_cv_prog_AWK
2634 if test -n "$AWK"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2636 $as_echo "$AWK" >&6; }
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 test -n "$AWK" && break
2644 done
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2647 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2648 set x ${MAKE-make}
2649 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 cat >conftest.make <<\_ACEOF
2654 SHELL = /bin/sh
2655 all:
2656 @echo '@@@%%%=$(MAKE)=@@@%%%'
2657 _ACEOF
2658 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2659 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2660 *@@@%%%=?*=@@@%%%*)
2661 eval ac_cv_prog_make_${ac_make}_set=yes;;
2662 *)
2663 eval ac_cv_prog_make_${ac_make}_set=no;;
2664 esac
2665 rm -f conftest.make
2666 fi
2667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 SET_MAKE=
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 SET_MAKE="MAKE=${MAKE-make}"
2675 fi
2676
2677 rm -rf .tst 2>/dev/null
2678 mkdir .tst 2>/dev/null
2679 if test -d .tst; then
2680 am__leading_dot=.
2681 else
2682 am__leading_dot=_
2683 fi
2684 rmdir .tst 2>/dev/null
2685
2686 # Check whether --enable-silent-rules was given.
2687 if test "${enable_silent_rules+set}" = set; then :
2688 enableval=$enable_silent_rules;
2689 fi
2690
2691 case $enable_silent_rules in # (((
2692 yes) AM_DEFAULT_VERBOSITY=0;;
2693 no) AM_DEFAULT_VERBOSITY=1;;
2694 *) AM_DEFAULT_VERBOSITY=1;;
2695 esac
2696 am_make=${MAKE-make}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2698 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2699 if ${am_cv_make_support_nested_variables+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if $as_echo 'TRUE=$(BAR$(V))
2703 BAR0=false
2704 BAR1=true
2705 V=1
2706 am__doit:
2707 @$(TRUE)
2708 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2709 am_cv_make_support_nested_variables=yes
2710 else
2711 am_cv_make_support_nested_variables=no
2712 fi
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2715 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2716 if test $am_cv_make_support_nested_variables = yes; then
2717 AM_V='$(V)'
2718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2719 else
2720 AM_V=$AM_DEFAULT_VERBOSITY
2721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2722 fi
2723 AM_BACKSLASH='\'
2724
2725 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2727 # is not polluted with repeated "-I."
2728 am__isrc=' -I$(srcdir)'
2729 # test to see if srcdir already configured
2730 if test -f $srcdir/config.status; then
2731 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2732 fi
2733 fi
2734
2735 # test whether we have cygpath
2736 if test -z "$CYGPATH_W"; then
2737 if (cygpath --version) >/dev/null 2>/dev/null; then
2738 CYGPATH_W='cygpath -w'
2739 else
2740 CYGPATH_W=echo
2741 fi
2742 fi
2743
2744
2745 # Define the identity of the package.
2746 PACKAGE='libXv'
2747 VERSION='1.0.11'
2748
2749
2750 cat >>confdefs.h <<_ACEOF
2751 #define PACKAGE "$PACKAGE"
2752 _ACEOF
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define VERSION "$VERSION"
2757 _ACEOF
2758
2759 # Some tools Automake needs.
2760
2761 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2762
2763
2764 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2765
2766
2767 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2768
2769
2770 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2771
2772
2773 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2774
2775 # For better backward compatibility. To be removed once Automake 1.9.x
2776 # dies out for good. For more background, see:
2777 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2778 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2779 mkdir_p='$(MKDIR_P)'
2780
2781 # We need awk for the "check" target. The system "awk" is bad on
2782 # some platforms.
2783 # Always define AMTAR for backward compatibility. Yes, it's still used
2784 # in the wild :-( We should find a proper way to deprecate it ...
2785 AMTAR='$${TAR-tar}'
2786
2787
2788 # We'll loop over all known methods to create a tar archive until one works.
2789 _am_tools='gnutar pax cpio none'
2790
2791 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2792
2793
2794
2795
2796
2797
2798 # POSIX will say in a future version that running "rm -f" with no argument
2799 # is OK; and we want to be able to make that assumption in our Makefile
2800 # recipes. So use an aggressive probe to check that the usage we want is
2801 # actually supported "in the wild" to an acceptable degree.
2802 # See automake bug#10828.
2803 # To make any issue more visible, cause the running configure to be aborted
2804 # by default if the 'rm' program in use doesn't match our expectations; the
2805 # user can still override this though.
2806 if rm -f && rm -fr && rm -rf; then : OK; else
2807 cat >&2 <<'END'
2808 Oops!
2809
2810 Your 'rm' program seems unable to run without file operands specified
2811 on the command line, even when the '-f' option is present. This is contrary
2812 to the behaviour of most rm programs out there, and not conforming with
2813 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2814
2815 Please tell bug-automake@gnu.org about your system, including the value
2816 of your $PATH and any error possibly output before this message. This
2817 can help us improve future automake versions.
2818
2819 END
2820 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2821 echo 'Configuration will proceed anyway, since you have set the' >&2
2822 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2823 echo >&2
2824 else
2825 cat >&2 <<'END'
2826 Aborting the configuration process, to ensure you take notice of the issue.
2827
2828 You can download and install GNU coreutils to get an 'rm' implementation
2829 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2830
2831 If you want to complete the configuration process using your problematic
2832 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2833 to "yes", and re-run configure.
2834
2835 END
2836 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2837 fi
2838 fi
2839
2840 # Initialize libtool
2841 case `pwd` in
2842 *\ * | *\ *)
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2844 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2845 esac
2846
2847
2848
2849 macro_version='2.4.2'
2850 macro_revision='1.3337'
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864 ltmain="$ac_aux_dir/ltmain.sh"
2865
2866 # Make sure we can run config.sub.
2867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2868 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2871 $as_echo_n "checking build system type... " >&6; }
2872 if ${ac_cv_build+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 ac_build_alias=$build_alias
2876 test "x$ac_build_alias" = x &&
2877 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2878 test "x$ac_build_alias" = x &&
2879 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2881 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2882
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2885 $as_echo "$ac_cv_build" >&6; }
2886 case $ac_cv_build in
2887 *-*-*) ;;
2888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2889 esac
2890 build=$ac_cv_build
2891 ac_save_IFS=$IFS; IFS='-'
2892 set x $ac_cv_build
2893 shift
2894 build_cpu=$1
2895 build_vendor=$2
2896 shift; shift
2897 # Remember, the first character of IFS is used to create $*,
2898 # except with old shells:
2899 build_os=$*
2900 IFS=$ac_save_IFS
2901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2902
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2905 $as_echo_n "checking host system type... " >&6; }
2906 if ${ac_cv_host+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test "x$host_alias" = x; then
2910 ac_cv_host=$ac_cv_build
2911 else
2912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2913 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2914 fi
2915
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2918 $as_echo "$ac_cv_host" >&6; }
2919 case $ac_cv_host in
2920 *-*-*) ;;
2921 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2922 esac
2923 host=$ac_cv_host
2924 ac_save_IFS=$IFS; IFS='-'
2925 set x $ac_cv_host
2926 shift
2927 host_cpu=$1
2928 host_vendor=$2
2929 shift; shift
2930 # Remember, the first character of IFS is used to create $*,
2931 # except with old shells:
2932 host_os=$*
2933 IFS=$ac_save_IFS
2934 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2935
2936
2937 # Backslashify metacharacters that are still active within
2938 # double-quoted strings.
2939 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2940
2941 # Same as above, but do not quote variable references.
2942 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2943
2944 # Sed substitution to delay expansion of an escaped shell variable in a
2945 # double_quote_subst'ed string.
2946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2947
2948 # Sed substitution to delay expansion of an escaped single quote.
2949 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2950
2951 # Sed substitution to avoid accidental globbing in evaled expressions
2952 no_glob_subst='s/\*/\\\*/g'
2953
2954 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2959 $as_echo_n "checking how to print strings... " >&6; }
2960 # Test print first, because it will be a builtin if present.
2961 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2962 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2963 ECHO='print -r --'
2964 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2965 ECHO='printf %s\n'
2966 else
2967 # Use this function as a fallback that always works.
2968 func_fallback_echo ()
2969 {
2970 eval 'cat <<_LTECHO_EOF
2971 $1
2972 _LTECHO_EOF'
2973 }
2974 ECHO='func_fallback_echo'
2975 fi
2976
2977 # func_echo_all arg...
2978 # Invoke $ECHO with all args, space-separated.
2979 func_echo_all ()
2980 {
2981 $ECHO ""
2982 }
2983
2984 case "$ECHO" in
2985 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2986 $as_echo "printf" >&6; } ;;
2987 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2988 $as_echo "print -r" >&6; } ;;
2989 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2990 $as_echo "cat" >&6; } ;;
2991 esac
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006 DEPDIR="${am__leading_dot}deps"
3007
3008 ac_config_commands="$ac_config_commands depfiles"
3009
3010
3011 am_make=${MAKE-make}
3012 cat > confinc << 'END'
3013 am__doit:
3014 @echo this is the am__doit target
3015 .PHONY: am__doit
3016 END
3017 # If we don't find an include directive, just comment out the code.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3020 am__include="#"
3021 am__quote=
3022 _am_result=none
3023 # First try GNU make style include.
3024 echo "include confinc" > confmf
3025 # Ignore all kinds of additional output from 'make'.
3026 case `$am_make -s -f confmf 2> /dev/null` in #(
3027 *the\ am__doit\ target*)
3028 am__include=include
3029 am__quote=
3030 _am_result=GNU
3031 ;;
3032 esac
3033 # Now try BSD make style include.
3034 if test "$am__include" = "#"; then
3035 echo '.include "confinc"' > confmf
3036 case `$am_make -s -f confmf 2> /dev/null` in #(
3037 *the\ am__doit\ target*)
3038 am__include=.include
3039 am__quote="\""
3040 _am_result=BSD
3041 ;;
3042 esac
3043 fi
3044
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3047 $as_echo "$_am_result" >&6; }
3048 rm -f confinc confmf
3049
3050 # Check whether --enable-dependency-tracking was given.
3051 if test "${enable_dependency_tracking+set}" = set; then :
3052 enableval=$enable_dependency_tracking;
3053 fi
3054
3055 if test "x$enable_dependency_tracking" != xno; then
3056 am_depcomp="$ac_aux_dir/depcomp"
3057 AMDEPBACKSLASH='\'
3058 am__nodep='_no'
3059 fi
3060 if test "x$enable_dependency_tracking" != xno; then
3061 AMDEP_TRUE=
3062 AMDEP_FALSE='#'
3063 else
3064 AMDEP_TRUE='#'
3065 AMDEP_FALSE=
3066 fi
3067
3068
3069 ac_ext=c
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 if test -z "$ac_cv_prog_CC"; then
3114 ac_ct_CC=$CC
3115 # Extract the first word of "gcc", so it can be a program name with args.
3116 set dummy gcc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$ac_ct_CC"; then
3123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_ac_ct_CC="gcc"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 $as_echo "$ac_ct_CC" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151 if test "x$ac_ct_CC" = x; then
3152 CC=""
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 CC=$ac_ct_CC
3161 fi
3162 else
3163 CC="$ac_cv_prog_CC"
3164 fi
3165
3166 if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}cc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_CC="${ac_tool_prefix}cc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189 done
3190 done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 fi
3207 if test -z "$CC"; then
3208 # Extract the first word of "cc", so it can be a program name with args.
3209 set dummy cc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 ac_prog_rejected=no
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3227 ac_prog_rejected=yes
3228 continue
3229 fi
3230 ac_cv_prog_CC="cc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 if test $ac_prog_rejected = yes; then
3239 # We found a bogon in the path, so make sure we never use it.
3240 set dummy $ac_cv_prog_CC
3241 shift
3242 if test $# != 0; then
3243 # We chose a different compiler from the bogus one.
3244 # However, it has the same basename, so the bogon will be chosen
3245 # first if we set CC to just the basename; use the full file name.
3246 shift
3247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3248 fi
3249 fi
3250 fi
3251 fi
3252 CC=$ac_cv_prog_CC
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261
3262 fi
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 for ac_prog in cl.exe
3266 do
3267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_CC+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test -n "$CC"; then
3275 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288 done
3289 done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 CC=$ac_cv_prog_CC
3295 if test -n "$CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3297 $as_echo "$CC" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303
3304 test -n "$CC" && break
3305 done
3306 fi
3307 if test -z "$CC"; then
3308 ac_ct_CC=$CC
3309 for ac_prog in cl.exe
3310 do
3311 # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 test -n "$ac_ct_CC" && break
3349 done
3350
3351 if test "x$ac_ct_CC" = x; then
3352 CC=""
3353 else
3354 case $cross_compiling:$ac_tool_warned in
3355 yes:)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360 CC=$ac_ct_CC
3361 fi
3362 fi
3363
3364 fi
3365
3366
3367 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "no acceptable C compiler found in \$PATH
3370 See \`config.log' for more details" "$LINENO" 5; }
3371
3372 # Provide some information about the compiler.
3373 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3374 set X $ac_compile
3375 ac_compiler=$2
3376 for ac_option in --version -v -V -qversion; do
3377 { { ac_try="$ac_compiler $ac_option >&5"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385 ac_status=$?
3386 if test -s conftest.err; then
3387 sed '10a\
3388 ... rest of stderr output deleted ...
3389 10q' conftest.err >conftest.er1
3390 cat conftest.er1 >&5
3391 fi
3392 rm -f conftest.er1 conftest.err
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 done
3396
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399
3400 int
3401 main ()
3402 {
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 ac_clean_files_save=$ac_clean_files
3409 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3410 # Try to create an executable without -o first, disregard a.out.
3411 # It will help us diagnose broken compilers, and finding out an intuition
3412 # of exeext.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3414 $as_echo_n "checking whether the C compiler works... " >&6; }
3415 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416
3417 # The possible output files:
3418 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3419
3420 ac_rmfiles=
3421 for ac_file in $ac_files
3422 do
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 esac
3427 done
3428 rm -f $ac_rmfiles
3429
3430 if { { ac_try="$ac_link_default"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link_default") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3442 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3443 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3444 # so that the user can short-circuit this test for compilers unknown to
3445 # Autoconf.
3446 for ac_file in $ac_files ''
3447 do
3448 test -f "$ac_file" || continue
3449 case $ac_file in
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3451 ;;
3452 [ab].out )
3453 # We found the default executable, but exeext='' is most
3454 # certainly right.
3455 break;;
3456 *.* )
3457 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3458 then :; else
3459 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 fi
3461 # We set ac_cv_exeext here because the later test for it is not
3462 # safe: cross compilers may not add the suffix if given an `-o'
3463 # argument, so we may need to know it at that point already.
3464 # Even if this section looks crufty: it has the advantage of
3465 # actually working.
3466 break;;
3467 * )
3468 break;;
3469 esac
3470 done
3471 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472
3473 else
3474 ac_file=''
3475 fi
3476 if test -z "$ac_file"; then :
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error 77 "C compiler cannot create executables
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3493 $as_echo "$ac_file" >&6; }
3494 ac_exeext=$ac_cv_exeext
3495
3496 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3499 $as_echo_n "checking for suffix of executables... " >&6; }
3500 if { { ac_try="$ac_link"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3513 # work properly (i.e., refer to `conftest.exe'), while it won't with
3514 # `rm'.
3515 for ac_file in conftest.exe conftest conftest.*; do
3516 test -f "$ac_file" || continue
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520 break;;
3521 * ) break;;
3522 esac
3523 done
3524 else
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 fi
3530 rm -f conftest conftest$ac_cv_exeext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3532 $as_echo "$ac_cv_exeext" >&6; }
3533
3534 rm -f conftest.$ac_ext
3535 EXEEXT=$ac_cv_exeext
3536 ac_exeext=$EXEEXT
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539 #include <stdio.h>
3540 int
3541 main ()
3542 {
3543 FILE *f = fopen ("conftest.out", "w");
3544 return ferror (f) || fclose (f) != 0;
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 ac_clean_files="$ac_clean_files conftest.out"
3551 # Check that the compiler produces executables we can run. If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3554 $as_echo_n "checking whether we are cross compiling... " >&6; }
3555 if test "$cross_compiling" != yes; then
3556 { { ac_try="$ac_link"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_link") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }
3567 if { ac_try='./conftest$ac_cv_exeext'
3568 { { case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_try") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; }; then
3578 cross_compiling=no
3579 else
3580 if test "$cross_compiling" = maybe; then
3581 cross_compiling=yes
3582 else
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot run C compiled programs.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details" "$LINENO" 5; }
3588 fi
3589 fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3592 $as_echo "$cross_compiling" >&6; }
3593
3594 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3595 ac_clean_files=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 $as_echo_n "checking for suffix of object files... " >&6; }
3598 if ${ac_cv_objext+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603
3604 int
3605 main ()
3606 {
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.o conftest.obj
3613 if { { ac_try="$ac_compile"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compile") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 for ac_file in conftest.o conftest.obj conftest.*; do
3625 test -f "$ac_file" || continue;
3626 case $ac_file in
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 break;;
3630 esac
3631 done
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot compute suffix of object files: cannot compile
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 fi
3641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 $as_echo "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3646 ac_objext=$OBJEXT
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if ${ac_cv_c_compiler_gnu+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654
3655 int
3656 main ()
3657 {
3658 #ifndef __GNUC__
3659 choke me
3660 #endif
3661
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_compiler_gnu=yes
3668 else
3669 ac_compiler_gnu=no
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678 GCC=yes
3679 else
3680 GCC=
3681 fi
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if ${ac_cv_prog_cc_g+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3691 ac_cv_prog_cc_g=no
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695
3696 int
3697 main ()
3698 {
3699
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3706 else
3707 CFLAGS=""
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720
3721 else
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3723 CFLAGS="-g"
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main ()
3729 {
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_g=yes
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748 CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3751 CFLAGS="-g -O2"
3752 else
3753 CFLAGS="-g"
3754 fi
3755 else
3756 if test "$GCC" = yes; then
3757 CFLAGS="-O2"
3758 else
3759 CFLAGS=
3760 fi
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if ${ac_cv_prog_cc_c89+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_cv_prog_cc_c89=no
3768 ac_save_CC=$CC
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <stdarg.h>
3772 #include <stdio.h>
3773 struct stat;
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778 char **p;
3779 int i;
3780 {
3781 return p[i];
3782 }
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3784 {
3785 char *s;
3786 va_list v;
3787 va_start (v,p);
3788 s = g (p, va_arg (v,int));
3789 va_end (v);
3790 return s;
3791 }
3792
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3813 int
3814 main ()
3815 {
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 do
3824 CC="$ac_save_CC $ac_arg"
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_cv_prog_cc_c89=$ac_arg
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext
3829 test "x$ac_cv_prog_cc_c89" != "xno" && break
3830 done
3831 rm -f conftest.$ac_ext
3832 CC=$ac_save_CC
3833
3834 fi
3835 # AC_CACHE_VAL
3836 case "x$ac_cv_prog_cc_c89" in
3837 x)
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;;
3840 xno)
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;;
3843 *)
3844 CC="$CC $ac_cv_prog_cc_c89"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 esac
3848 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849
3850 fi
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3864 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3865 if ${am_cv_prog_cc_c_o+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 # Make sure it works both with $CC and with simple cc.
3880 # Following AC_PROG_CC_C_O, we do the test twice because some
3881 # compilers refuse to overwrite an existing .o file with -o,
3882 # though they will create one.
3883 am_cv_prog_cc_c_o=yes
3884 for am_i in 1 2; do
3885 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3886 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } \
3890 && test -f conftest2.$ac_objext; then
3891 : OK
3892 else
3893 am_cv_prog_cc_c_o=no
3894 break
3895 fi
3896 done
3897 rm -f core conftest*
3898 unset am_i
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3901 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3902 if test "$am_cv_prog_cc_c_o" != yes; then
3903 # Losing compiler, so override with the script.
3904 # FIXME: It is wrong to rewrite CC.
3905 # But if we don't then we get into trouble of one sort or another.
3906 # A longer-term fix would be to have automake use am__CC in this case,
3907 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3908 CC="$am_aux_dir/compile $CC"
3909 fi
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
3916
3917 depcc="$CC" am_compiler_list=
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3920 $as_echo_n "checking dependency style of $depcc... " >&6; }
3921 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3925 # We make a subdir and do the tests there. Otherwise we can end up
3926 # making bogus files that we don't know about and never remove. For
3927 # instance it was reported that on HP-UX the gcc test will end up
3928 # making a dummy file named 'D' -- because '-MD' means "put the output
3929 # in D".
3930 rm -rf conftest.dir
3931 mkdir conftest.dir
3932 # Copy depcomp to subdir because otherwise we won't find it if we're
3933 # using a relative directory.
3934 cp "$am_depcomp" conftest.dir
3935 cd conftest.dir
3936 # We will build objects and dependencies in a subdirectory because
3937 # it helps to detect inapplicable dependency modes. For instance
3938 # both Tru64's cc and ICC support -MD to output dependencies as a
3939 # side effect of compilation, but ICC will put the dependencies in
3940 # the current directory while Tru64 will put them in the object
3941 # directory.
3942 mkdir sub
3943
3944 am_cv_CC_dependencies_compiler_type=none
3945 if test "$am_compiler_list" = ""; then
3946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3947 fi
3948 am__universal=false
3949 case " $depcc " in #(
3950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3951 esac
3952
3953 for depmode in $am_compiler_list; do
3954 # Setup a source with many dependencies, because some compilers
3955 # like to wrap large dependency lists on column 80 (with \), and
3956 # we should not choose a depcomp mode which is confused by this.
3957 #
3958 # We need to recreate these files for each test, as the compiler may
3959 # overwrite some of them when testing with obscure command lines.
3960 # This happens at least with the AIX C compiler.
3961 : > sub/conftest.c
3962 for i in 1 2 3 4 5 6; do
3963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3964 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3965 # Solaris 10 /bin/sh.
3966 echo '/* dummy */' > sub/conftst$i.h
3967 done
3968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3969
3970 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3971 # mode. It turns out that the SunPro C++ compiler does not properly
3972 # handle '-M -o', and we need to detect this. Also, some Intel
3973 # versions had trouble with output in subdirs.
3974 am__obj=sub/conftest.${OBJEXT-o}
3975 am__minus_obj="-o $am__obj"
3976 case $depmode in
3977 gcc)
3978 # This depmode causes a compiler race in universal mode.
3979 test "$am__universal" = false || continue
3980 ;;
3981 nosideeffect)
3982 # After this tag, mechanisms are not by side-effect, so they'll
3983 # only be used when explicitly requested.
3984 if test "x$enable_dependency_tracking" = xyes; then
3985 continue
3986 else
3987 break
3988 fi
3989 ;;
3990 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3991 # This compiler won't grok '-c -o', but also, the minuso test has
3992 # not run yet. These depmodes are late enough in the game, and
3993 # so weak that their functioning should not be impacted.
3994 am__obj=conftest.${OBJEXT-o}
3995 am__minus_obj=
3996 ;;
3997 none) break ;;
3998 esac
3999 if depmode=$depmode \
4000 source=sub/conftest.c object=$am__obj \
4001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4003 >/dev/null 2>conftest.err &&
4004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4008 # icc doesn't choke on unknown options, it will just issue warnings
4009 # or remarks (even with -Werror). So we grep stderr for any message
4010 # that says an option was ignored or not supported.
4011 # When given -MP, icc 7.0 and 7.1 complain thusly:
4012 # icc: Command line warning: ignoring option '-M'; no argument required
4013 # The diagnosis changed in icc 8.0:
4014 # icc: Command line remark: option '-MP' not supported
4015 if (grep 'ignoring option' conftest.err ||
4016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4017 am_cv_CC_dependencies_compiler_type=$depmode
4018 break
4019 fi
4020 fi
4021 done
4022
4023 cd ..
4024 rm -rf conftest.dir
4025 else
4026 am_cv_CC_dependencies_compiler_type=none
4027 fi
4028
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4033
4034 if
4035 test "x$enable_dependency_tracking" != xno \
4036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4037 am__fastdepCC_TRUE=
4038 am__fastdepCC_FALSE='#'
4039 else
4040 am__fastdepCC_TRUE='#'
4041 am__fastdepCC_FALSE=
4042 fi
4043
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4047 if ${ac_cv_path_SED+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4051 for ac_i in 1 2 3 4 5 6 7; do
4052 ac_script="$ac_script$as_nl$ac_script"
4053 done
4054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4055 { ac_script=; unset ac_script;}
4056 if test -z "$SED"; then
4057 ac_path_SED_found=false
4058 # Loop through the user's path and test for each of PROGNAME-LIST
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_prog in sed gsed; do
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4067 as_fn_executable_p "$ac_path_SED" || continue
4068 # Check for GNU ac_path_SED and select it if it is found.
4069 # Check for GNU $ac_path_SED
4070 case `"$ac_path_SED" --version 2>&1` in
4071 *GNU*)
4072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4073 *)
4074 ac_count=0
4075 $as_echo_n 0123456789 >"conftest.in"
4076 while :
4077 do
4078 cat "conftest.in" "conftest.in" >"conftest.tmp"
4079 mv "conftest.tmp" "conftest.in"
4080 cp "conftest.in" "conftest.nl"
4081 $as_echo '' >> "conftest.nl"
4082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084 as_fn_arith $ac_count + 1 && ac_count=$as_val
4085 if test $ac_count -gt ${ac_path_SED_max-0}; then
4086 # Best one so far, save it but keep looking for a better one
4087 ac_cv_path_SED="$ac_path_SED"
4088 ac_path_SED_max=$ac_count
4089 fi
4090 # 10*(2^10) chars as input seems more than enough
4091 test $ac_count -gt 10 && break
4092 done
4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 esac
4095
4096 $ac_path_SED_found && break 3
4097 done
4098 done
4099 done
4100 IFS=$as_save_IFS
4101 if test -z "$ac_cv_path_SED"; then
4102 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4103 fi
4104 else
4105 ac_cv_path_SED=$SED
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4110 $as_echo "$ac_cv_path_SED" >&6; }
4111 SED="$ac_cv_path_SED"
4112 rm -f conftest.sed
4113
4114 test -z "$SED" && SED=sed
4115 Xsed="$SED -e 1s/^X//"
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4128 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4129 if ${ac_cv_path_GREP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -z "$GREP"; then
4133 ac_path_GREP_found=false
4134 # Loop through the user's path and test for each of PROGNAME-LIST
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_prog in grep ggrep; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4143 as_fn_executable_p "$ac_path_GREP" || continue
4144 # Check for GNU ac_path_GREP and select it if it is found.
4145 # Check for GNU $ac_path_GREP
4146 case `"$ac_path_GREP" --version 2>&1` in
4147 *GNU*)
4148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149 *)
4150 ac_count=0
4151 $as_echo_n 0123456789 >"conftest.in"
4152 while :
4153 do
4154 cat "conftest.in" "conftest.in" >"conftest.tmp"
4155 mv "conftest.tmp" "conftest.in"
4156 cp "conftest.in" "conftest.nl"
4157 $as_echo 'GREP' >> "conftest.nl"
4158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160 as_fn_arith $ac_count + 1 && ac_count=$as_val
4161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4162 # Best one so far, save it but keep looking for a better one
4163 ac_cv_path_GREP="$ac_path_GREP"
4164 ac_path_GREP_max=$ac_count
4165 fi
4166 # 10*(2^10) chars as input seems more than enough
4167 test $ac_count -gt 10 && break
4168 done
4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 esac
4171
4172 $ac_path_GREP_found && break 3
4173 done
4174 done
4175 done
4176 IFS=$as_save_IFS
4177 if test -z "$ac_cv_path_GREP"; then
4178 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179 fi
4180 else
4181 ac_cv_path_GREP=$GREP
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4186 $as_echo "$ac_cv_path_GREP" >&6; }
4187 GREP="$ac_cv_path_GREP"
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4191 $as_echo_n "checking for egrep... " >&6; }
4192 if ${ac_cv_path_EGREP+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4196 then ac_cv_path_EGREP="$GREP -E"
4197 else
4198 if test -z "$EGREP"; then
4199 ac_path_EGREP_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in egrep; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4209 as_fn_executable_p "$ac_path_EGREP" || continue
4210 # Check for GNU ac_path_EGREP and select it if it is found.
4211 # Check for GNU $ac_path_EGREP
4212 case `"$ac_path_EGREP" --version 2>&1` in
4213 *GNU*)
4214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4215 *)
4216 ac_count=0
4217 $as_echo_n 0123456789 >"conftest.in"
4218 while :
4219 do
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 $as_echo 'EGREP' >> "conftest.nl"
4224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 as_fn_arith $ac_count + 1 && ac_count=$as_val
4227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_EGREP="$ac_path_EGREP"
4230 ac_path_EGREP_max=$ac_count
4231 fi
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4234 done
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4237
4238 $ac_path_EGREP_found && break 3
4239 done
4240 done
4241 done
4242 IFS=$as_save_IFS
4243 if test -z "$ac_cv_path_EGREP"; then
4244 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245 fi
4246 else
4247 ac_cv_path_EGREP=$EGREP
4248 fi
4249
4250 fi
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4253 $as_echo "$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4258 $as_echo_n "checking for fgrep... " >&6; }
4259 if ${ac_cv_path_FGREP+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4263 then ac_cv_path_FGREP="$GREP -F"
4264 else
4265 if test -z "$FGREP"; then
4266 ac_path_FGREP_found=false
4267 # Loop through the user's path and test for each of PROGNAME-LIST
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_prog in fgrep; do
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4276 as_fn_executable_p "$ac_path_FGREP" || continue
4277 # Check for GNU ac_path_FGREP and select it if it is found.
4278 # Check for GNU $ac_path_FGREP
4279 case `"$ac_path_FGREP" --version 2>&1` in
4280 *GNU*)
4281 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4282 *)
4283 ac_count=0
4284 $as_echo_n 0123456789 >"conftest.in"
4285 while :
4286 do
4287 cat "conftest.in" "conftest.in" >"conftest.tmp"
4288 mv "conftest.tmp" "conftest.in"
4289 cp "conftest.in" "conftest.nl"
4290 $as_echo 'FGREP' >> "conftest.nl"
4291 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293 as_fn_arith $ac_count + 1 && ac_count=$as_val
4294 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4295 # Best one so far, save it but keep looking for a better one
4296 ac_cv_path_FGREP="$ac_path_FGREP"
4297 ac_path_FGREP_max=$ac_count
4298 fi
4299 # 10*(2^10) chars as input seems more than enough
4300 test $ac_count -gt 10 && break
4301 done
4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 esac
4304
4305 $ac_path_FGREP_found && break 3
4306 done
4307 done
4308 done
4309 IFS=$as_save_IFS
4310 if test -z "$ac_cv_path_FGREP"; then
4311 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4312 fi
4313 else
4314 ac_cv_path_FGREP=$FGREP
4315 fi
4316
4317 fi
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4320 $as_echo "$ac_cv_path_FGREP" >&6; }
4321 FGREP="$ac_cv_path_FGREP"
4322
4323
4324 test -z "$GREP" && GREP=grep
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344 # Check whether --with-gnu-ld was given.
4345 if test "${with_gnu_ld+set}" = set; then :
4346 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4347 else
4348 with_gnu_ld=no
4349 fi
4350
4351 ac_prog=ld
4352 if test "$GCC" = yes; then
4353 # Check if gcc -print-prog-name=ld gives a path.
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4355 $as_echo_n "checking for ld used by $CC... " >&6; }
4356 case $host in
4357 *-*-mingw*)
4358 # gcc leaves a trailing carriage return which upsets mingw
4359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4360 *)
4361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4362 esac
4363 case $ac_prog in
4364 # Accept absolute paths.
4365 [\\/]* | ?:[\\/]*)
4366 re_direlt='/[^/][^/]*/\.\./'
4367 # Canonicalize the pathname of ld
4368 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4369 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4370 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4371 done
4372 test -z "$LD" && LD="$ac_prog"
4373 ;;
4374 "")
4375 # If it fails, then pretend we aren't using GCC.
4376 ac_prog=ld
4377 ;;
4378 *)
4379 # If it is relative, then search for the first ld in PATH.
4380 with_gnu_ld=unknown
4381 ;;
4382 esac
4383 elif test "$with_gnu_ld" = yes; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4385 $as_echo_n "checking for GNU ld... " >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4388 $as_echo_n "checking for non-GNU ld... " >&6; }
4389 fi
4390 if ${lt_cv_path_LD+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -z "$LD"; then
4394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4395 for ac_dir in $PATH; do
4396 IFS="$lt_save_ifs"
4397 test -z "$ac_dir" && ac_dir=.
4398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4399 lt_cv_path_LD="$ac_dir/$ac_prog"
4400 # Check to see if the program is GNU ld. I'd rather use --version,
4401 # but apparently some variants of GNU ld only accept -v.
4402 # Break only if it was the GNU/non-GNU ld that we prefer.
4403 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4404 *GNU* | *'with BFD'*)
4405 test "$with_gnu_ld" != no && break
4406 ;;
4407 *)
4408 test "$with_gnu_ld" != yes && break
4409 ;;
4410 esac
4411 fi
4412 done
4413 IFS="$lt_save_ifs"
4414 else
4415 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4416 fi
4417 fi
4418
4419 LD="$lt_cv_path_LD"
4420 if test -n "$LD"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4422 $as_echo "$LD" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 fi
4427 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4429 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4430 if ${lt_cv_prog_gnu_ld+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4434 case `$LD -v 2>&1 </dev/null` in
4435 *GNU* | *'with BFD'*)
4436 lt_cv_prog_gnu_ld=yes
4437 ;;
4438 *)
4439 lt_cv_prog_gnu_ld=no
4440 ;;
4441 esac
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4444 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4445 with_gnu_ld=$lt_cv_prog_gnu_ld
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4456 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4457 if ${lt_cv_path_NM+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if test -n "$NM"; then
4461 # Let the user override the test.
4462 lt_cv_path_NM="$NM"
4463 else
4464 lt_nm_to_check="${ac_tool_prefix}nm"
4465 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4466 lt_nm_to_check="$lt_nm_to_check nm"
4467 fi
4468 for lt_tmp_nm in $lt_nm_to_check; do
4469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4470 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4471 IFS="$lt_save_ifs"
4472 test -z "$ac_dir" && ac_dir=.
4473 tmp_nm="$ac_dir/$lt_tmp_nm"
4474 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4475 # Check to see if the nm accepts a BSD-compat flag.
4476 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4477 # nm: unknown option "B" ignored
4478 # Tru64's nm complains that /dev/null is an invalid object file
4479 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4480 */dev/null* | *'Invalid file or object type'*)
4481 lt_cv_path_NM="$tmp_nm -B"
4482 break
4483 ;;
4484 *)
4485 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4486 */dev/null*)
4487 lt_cv_path_NM="$tmp_nm -p"
4488 break
4489 ;;
4490 *)
4491 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4492 continue # so that we can try to find one that supports BSD flags
4493 ;;
4494 esac
4495 ;;
4496 esac
4497 fi
4498 done
4499 IFS="$lt_save_ifs"
4500 done
4501 : ${lt_cv_path_NM=no}
4502 fi
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4505 $as_echo "$lt_cv_path_NM" >&6; }
4506 if test "$lt_cv_path_NM" != "no"; then
4507 NM="$lt_cv_path_NM"
4508 else
4509 # Didn't find any BSD compatible name lister, look for dumpbin.
4510 if test -n "$DUMPBIN"; then :
4511 # Let the user override the test.
4512 else
4513 if test -n "$ac_tool_prefix"; then
4514 for ac_prog in dumpbin "link -dump"
4515 do
4516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_prog_DUMPBIN+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -n "$DUMPBIN"; then
4524 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541 fi
4542 fi
4543 DUMPBIN=$ac_cv_prog_DUMPBIN
4544 if test -n "$DUMPBIN"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4546 $as_echo "$DUMPBIN" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551
4552
4553 test -n "$DUMPBIN" && break
4554 done
4555 fi
4556 if test -z "$DUMPBIN"; then
4557 ac_ct_DUMPBIN=$DUMPBIN
4558 for ac_prog in dumpbin "link -dump"
4559 do
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$ac_ct_DUMPBIN"; then
4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585 fi
4586 fi
4587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4588 if test -n "$ac_ct_DUMPBIN"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4590 $as_echo "$ac_ct_DUMPBIN" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4594 fi
4595
4596
4597 test -n "$ac_ct_DUMPBIN" && break
4598 done
4599
4600 if test "x$ac_ct_DUMPBIN" = x; then
4601 DUMPBIN=":"
4602 else
4603 case $cross_compiling:$ac_tool_warned in
4604 yes:)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4607 ac_tool_warned=yes ;;
4608 esac
4609 DUMPBIN=$ac_ct_DUMPBIN
4610 fi
4611 fi
4612
4613 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4614 *COFF*)
4615 DUMPBIN="$DUMPBIN -symbols"
4616 ;;
4617 *)
4618 DUMPBIN=:
4619 ;;
4620 esac
4621 fi
4622
4623 if test "$DUMPBIN" != ":"; then
4624 NM="$DUMPBIN"
4625 fi
4626 fi
4627 test -z "$NM" && NM=nm
4628
4629
4630
4631
4632
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4635 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4636 if ${lt_cv_nm_interface+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 lt_cv_nm_interface="BSD nm"
4640 echo "int some_variable = 0;" > conftest.$ac_ext
4641 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4642 (eval "$ac_compile" 2>conftest.err)
4643 cat conftest.err >&5
4644 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4645 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4646 cat conftest.err >&5
4647 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4648 cat conftest.out >&5
4649 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4650 lt_cv_nm_interface="MS dumpbin"
4651 fi
4652 rm -f conftest*
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4655 $as_echo "$lt_cv_nm_interface" >&6; }
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4658 $as_echo_n "checking whether ln -s works... " >&6; }
4659 LN_S=$as_ln_s
4660 if test "$LN_S" = "ln -s"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4662 $as_echo "yes" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4665 $as_echo "no, using $LN_S" >&6; }
4666 fi
4667
4668 # find the maximum length of command line arguments
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4670 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4671 if ${lt_cv_sys_max_cmd_len+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 i=0
4675 teststring="ABCD"
4676
4677 case $build_os in
4678 msdosdjgpp*)
4679 # On DJGPP, this test can blow up pretty badly due to problems in libc
4680 # (any single argument exceeding 2000 bytes causes a buffer overrun
4681 # during glob expansion). Even if it were fixed, the result of this
4682 # check would be larger than it should be.
4683 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4684 ;;
4685
4686 gnu*)
4687 # Under GNU Hurd, this test is not required because there is
4688 # no limit to the length of command line arguments.
4689 # Libtool will interpret -1 as no limit whatsoever
4690 lt_cv_sys_max_cmd_len=-1;
4691 ;;
4692
4693 cygwin* | mingw* | cegcc*)
4694 # On Win9x/ME, this test blows up -- it succeeds, but takes
4695 # about 5 minutes as the teststring grows exponentially.
4696 # Worse, since 9x/ME are not pre-emptively multitasking,
4697 # you end up with a "frozen" computer, even though with patience
4698 # the test eventually succeeds (with a max line length of 256k).
4699 # Instead, let's just punt: use the minimum linelength reported by
4700 # all of the supported platforms: 8192 (on NT/2K/XP).
4701 lt_cv_sys_max_cmd_len=8192;
4702 ;;
4703
4704 mint*)
4705 # On MiNT this can take a long time and run out of memory.
4706 lt_cv_sys_max_cmd_len=8192;
4707 ;;
4708
4709 amigaos*)
4710 # On AmigaOS with pdksh, this test takes hours, literally.
4711 # So we just punt and use a minimum line length of 8192.
4712 lt_cv_sys_max_cmd_len=8192;
4713 ;;
4714
4715 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4716 # This has been around since 386BSD, at least. Likely further.
4717 if test -x /sbin/sysctl; then
4718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4719 elif test -x /usr/sbin/sysctl; then
4720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4721 else
4722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4723 fi
4724 # And add a safety zone
4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4727 ;;
4728
4729 interix*)
4730 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4731 lt_cv_sys_max_cmd_len=196608
4732 ;;
4733
4734 os2*)
4735 # The test takes a long time on OS/2.
4736 lt_cv_sys_max_cmd_len=8192
4737 ;;
4738
4739 osf*)
4740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4742 # nice to cause kernel panics so lets avoid the loop below.
4743 # First set a reasonable default.
4744 lt_cv_sys_max_cmd_len=16384
4745 #
4746 if test -x /sbin/sysconfig; then
4747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4748 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4749 esac
4750 fi
4751 ;;
4752 sco3.2v5*)
4753 lt_cv_sys_max_cmd_len=102400
4754 ;;
4755 sysv5* | sco5v6* | sysv4.2uw2*)
4756 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4757 if test -n "$kargmax"; then
4758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4759 else
4760 lt_cv_sys_max_cmd_len=32768
4761 fi
4762 ;;
4763 *)
4764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4765 if test -n "$lt_cv_sys_max_cmd_len" && \
4766 test undefined != "$lt_cv_sys_max_cmd_len"; then
4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4769 else
4770 # Make teststring a little bigger before we do anything with it.
4771 # a 1K string should be a reasonable start.
4772 for i in 1 2 3 4 5 6 7 8 ; do
4773 teststring=$teststring$teststring
4774 done
4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4776 # If test is not a shell built-in, we'll probably end up computing a
4777 # maximum length that is only half of the actual maximum length, but
4778 # we can't tell.
4779 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4780 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4781 test $i != 17 # 1/2 MB should be enough
4782 do
4783 i=`expr $i + 1`
4784 teststring=$teststring$teststring
4785 done
4786 # Only check the string length outside the loop.
4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4788 teststring=
4789 # Add a significant safety factor because C++ compilers can tack on
4790 # massive amounts of additional arguments before passing them to the
4791 # linker. It appears as though 1/2 is a usable value.
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4793 fi
4794 ;;
4795 esac
4796
4797 fi
4798
4799 if test -n $lt_cv_sys_max_cmd_len ; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4801 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4804 $as_echo "none" >&6; }
4805 fi
4806 max_cmd_len=$lt_cv_sys_max_cmd_len
4807
4808
4809
4810
4811
4812
4813 : ${CP="cp -f"}
4814 : ${MV="mv -f"}
4815 : ${RM="rm -f"}
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4818 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4819 # Try some XSI features
4820 xsi_shell=no
4821 ( _lt_dummy="a/b/c"
4822 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4823 = c,a/b,b/c, \
4824 && eval 'test $(( 1 + 1 )) -eq 2 \
4825 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4826 && xsi_shell=yes
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4828 $as_echo "$xsi_shell" >&6; }
4829
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4832 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4833 lt_shell_append=no
4834 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4835 >/dev/null 2>&1 \
4836 && lt_shell_append=yes
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4838 $as_echo "$lt_shell_append" >&6; }
4839
4840
4841 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4842 lt_unset=unset
4843 else
4844 lt_unset=false
4845 fi
4846
4847
4848
4849
4850
4851 # test EBCDIC or ASCII
4852 case `echo X|tr X '\101'` in
4853 A) # ASCII based system
4854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4855 lt_SP2NL='tr \040 \012'
4856 lt_NL2SP='tr \015\012 \040\040'
4857 ;;
4858 *) # EBCDIC based system
4859 lt_SP2NL='tr \100 \n'
4860 lt_NL2SP='tr \r\n \100\100'
4861 ;;
4862 esac
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4873 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4874 if ${lt_cv_to_host_file_cmd+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 case $host in
4878 *-*-mingw* )
4879 case $build in
4880 *-*-mingw* ) # actually msys
4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4882 ;;
4883 *-*-cygwin* )
4884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4885 ;;
4886 * ) # otherwise, assume *nix
4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4888 ;;
4889 esac
4890 ;;
4891 *-*-cygwin* )
4892 case $build in
4893 *-*-mingw* ) # actually msys
4894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4895 ;;
4896 *-*-cygwin* )
4897 lt_cv_to_host_file_cmd=func_convert_file_noop
4898 ;;
4899 * ) # otherwise, assume *nix
4900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4901 ;;
4902 esac
4903 ;;
4904 * ) # unhandled hosts (and "normal" native builds)
4905 lt_cv_to_host_file_cmd=func_convert_file_noop
4906 ;;
4907 esac
4908
4909 fi
4910
4911 to_host_file_cmd=$lt_cv_to_host_file_cmd
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4913 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4914
4915
4916
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4920 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4921 if ${lt_cv_to_tool_file_cmd+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 #assume ordinary cross tools, or native build.
4925 lt_cv_to_tool_file_cmd=func_convert_file_noop
4926 case $host in
4927 *-*-mingw* )
4928 case $build in
4929 *-*-mingw* ) # actually msys
4930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4931 ;;
4932 esac
4933 ;;
4934 esac
4935
4936 fi
4937
4938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4940 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4941
4942
4943
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4947 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4948 if ${lt_cv_ld_reload_flag+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 lt_cv_ld_reload_flag='-r'
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4954 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4955 reload_flag=$lt_cv_ld_reload_flag
4956 case $reload_flag in
4957 "" | " "*) ;;
4958 *) reload_flag=" $reload_flag" ;;
4959 esac
4960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4961 case $host_os in
4962 cygwin* | mingw* | pw32* | cegcc*)
4963 if test "$GCC" != yes; then
4964 reload_cmds=false
4965 fi
4966 ;;
4967 darwin*)
4968 if test "$GCC" = yes; then
4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4970 else
4971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4972 fi
4973 ;;
4974 esac
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984 if test -n "$ac_tool_prefix"; then
4985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4986 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_prog_OBJDUMP+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$OBJDUMP"; then
4993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006 done
5007 done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 OBJDUMP=$ac_cv_prog_OBJDUMP
5013 if test -n "$OBJDUMP"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5015 $as_echo "$OBJDUMP" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5019 fi
5020
5021
5022 fi
5023 if test -z "$ac_cv_prog_OBJDUMP"; then
5024 ac_ct_OBJDUMP=$OBJDUMP
5025 # Extract the first word of "objdump", so it can be a program name with args.
5026 set dummy objdump; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -n "$ac_ct_OBJDUMP"; then
5033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046 done
5047 done
5048 IFS=$as_save_IFS
5049
5050 fi
5051 fi
5052 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5053 if test -n "$ac_ct_OBJDUMP"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5055 $as_echo "$ac_ct_OBJDUMP" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060
5061 if test "x$ac_ct_OBJDUMP" = x; then
5062 OBJDUMP="false"
5063 else
5064 case $cross_compiling:$ac_tool_warned in
5065 yes:)
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068 ac_tool_warned=yes ;;
5069 esac
5070 OBJDUMP=$ac_ct_OBJDUMP
5071 fi
5072 else
5073 OBJDUMP="$ac_cv_prog_OBJDUMP"
5074 fi
5075
5076 test -z "$OBJDUMP" && OBJDUMP=objdump
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5087 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5088 if ${lt_cv_deplibs_check_method+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 lt_cv_file_magic_cmd='$MAGIC_CMD'
5092 lt_cv_file_magic_test_file=
5093 lt_cv_deplibs_check_method='unknown'
5094 # Need to set the preceding variable on all platforms that support
5095 # interlibrary dependencies.
5096 # 'none' -- dependencies not supported.
5097 # `unknown' -- same as none, but documents that we really don't know.
5098 # 'pass_all' -- all dependencies passed with no checks.
5099 # 'test_compile' -- check by making test program.
5100 # 'file_magic [[regex]]' -- check by looking for files in library path
5101 # which responds to the $file_magic_cmd with a given extended regex.
5102 # If you have `file' or equivalent on your system and you're not sure
5103 # whether `pass_all' will *always* work, you probably want this one.
5104
5105 case $host_os in
5106 aix[4-9]*)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109
5110 beos*)
5111 lt_cv_deplibs_check_method=pass_all
5112 ;;
5113
5114 bsdi[45]*)
5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5116 lt_cv_file_magic_cmd='/usr/bin/file -L'
5117 lt_cv_file_magic_test_file=/shlib/libc.so
5118 ;;
5119
5120 cygwin*)
5121 # func_win32_libid is a shell function defined in ltmain.sh
5122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5123 lt_cv_file_magic_cmd='func_win32_libid'
5124 ;;
5125
5126 mingw* | pw32*)
5127 # Base MSYS/MinGW do not provide the 'file' command needed by
5128 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5129 # unless we find 'file', for example because we are cross-compiling.
5130 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5131 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5133 lt_cv_file_magic_cmd='func_win32_libid'
5134 else
5135 # Keep this pattern in sync with the one in func_win32_libid.
5136 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5137 lt_cv_file_magic_cmd='$OBJDUMP -f'
5138 fi
5139 ;;
5140
5141 cegcc*)
5142 # use the weaker test based on 'objdump'. See mingw*.
5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5144 lt_cv_file_magic_cmd='$OBJDUMP -f'
5145 ;;
5146
5147 darwin* | rhapsody*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151 freebsd* | dragonfly*)
5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5153 case $host_cpu in
5154 i*86 )
5155 # Not sure whether the presence of OpenBSD here was a mistake.
5156 # Let's accept both of them until this is cleared up.
5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5158 lt_cv_file_magic_cmd=/usr/bin/file
5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5160 ;;
5161 esac
5162 else
5163 lt_cv_deplibs_check_method=pass_all
5164 fi
5165 ;;
5166
5167 haiku*)
5168 lt_cv_deplibs_check_method=pass_all
5169 ;;
5170
5171 hpux10.20* | hpux11*)
5172 lt_cv_file_magic_cmd=/usr/bin/file
5173 case $host_cpu in
5174 ia64*)
5175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5176 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5177 ;;
5178 hppa*64*)
5179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5180 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5181 ;;
5182 *)
5183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5184 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5185 ;;
5186 esac
5187 ;;
5188
5189 interix[3-9]*)
5190 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5192 ;;
5193
5194 irix5* | irix6* | nonstopux*)
5195 case $LD in
5196 *-32|*"-32 ") libmagic=32-bit;;
5197 *-n32|*"-n32 ") libmagic=N32;;
5198 *-64|*"-64 ") libmagic=64-bit;;
5199 *) libmagic=never-match;;
5200 esac
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
5203
5204 # This must be glibc/ELF.
5205 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5206 lt_cv_deplibs_check_method=pass_all
5207 ;;
5208
5209 netbsd* | netbsdelf*-gnu)
5210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5212 else
5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5214 fi
5215 ;;
5216
5217 newos6*)
5218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5219 lt_cv_file_magic_cmd=/usr/bin/file
5220 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5221 ;;
5222
5223 *nto* | *qnx*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227 openbsd*)
5228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5230 else
5231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5232 fi
5233 ;;
5234
5235 osf3* | osf4* | osf5*)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239 rdos*)
5240 lt_cv_deplibs_check_method=pass_all
5241 ;;
5242
5243 solaris*)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246
5247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250
5251 sysv4 | sysv4.3*)
5252 case $host_vendor in
5253 motorola)
5254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5255 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5256 ;;
5257 ncr)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260 sequent)
5261 lt_cv_file_magic_cmd='/bin/file'
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5263 ;;
5264 sni)
5265 lt_cv_file_magic_cmd='/bin/file'
5266 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5267 lt_cv_file_magic_test_file=/lib/libc.so
5268 ;;
5269 siemens)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272 pc)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275 esac
5276 ;;
5277
5278 tpf*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281 esac
5282
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5285 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5286
5287 file_magic_glob=
5288 want_nocaseglob=no
5289 if test "$build" = "$host"; then
5290 case $host_os in
5291 mingw* | pw32*)
5292 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5293 want_nocaseglob=yes
5294 else
5295 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5296 fi
5297 ;;
5298 esac
5299 fi
5300
5301 file_magic_cmd=$lt_cv_file_magic_cmd
5302 deplibs_check_method=$lt_cv_deplibs_check_method
5303 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5328 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_DLLTOOL+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$DLLTOOL"; then
5335 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 DLLTOOL=$ac_cv_prog_DLLTOOL
5355 if test -n "$DLLTOOL"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5357 $as_echo "$DLLTOOL" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363
5364 fi
5365 if test -z "$ac_cv_prog_DLLTOOL"; then
5366 ac_ct_DLLTOOL=$DLLTOOL
5367 # Extract the first word of "dlltool", so it can be a program name with args.
5368 set dummy dlltool; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$ac_ct_DLLTOOL"; then
5375 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5395 if test -n "$ac_ct_DLLTOOL"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5397 $as_echo "$ac_ct_DLLTOOL" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403 if test "x$ac_ct_DLLTOOL" = x; then
5404 DLLTOOL="false"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410 ac_tool_warned=yes ;;
5411 esac
5412 DLLTOOL=$ac_ct_DLLTOOL
5413 fi
5414 else
5415 DLLTOOL="$ac_cv_prog_DLLTOOL"
5416 fi
5417
5418 test -z "$DLLTOOL" && DLLTOOL=dlltool
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5430 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5431 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 lt_cv_sharedlib_from_linklib_cmd='unknown'
5435
5436 case $host_os in
5437 cygwin* | mingw* | pw32* | cegcc*)
5438 # two different shell functions defined in ltmain.sh
5439 # decide which to use based on capabilities of $DLLTOOL
5440 case `$DLLTOOL --help 2>&1` in
5441 *--identify-strict*)
5442 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5443 ;;
5444 *)
5445 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5446 ;;
5447 esac
5448 ;;
5449 *)
5450 # fallback: assume linklib IS sharedlib
5451 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5452 ;;
5453 esac
5454
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5457 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5458 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5459 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5460
5461
5462
5463
5464
5465
5466
5467
5468 if test -n "$ac_tool_prefix"; then
5469 for ac_prog in ar
5470 do
5471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_AR+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$AR"; then
5479 ac_cv_prog_AR="$AR" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 AR=$ac_cv_prog_AR
5499 if test -n "$AR"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5501 $as_echo "$AR" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 test -n "$AR" && break
5509 done
5510 fi
5511 if test -z "$AR"; then
5512 ac_ct_AR=$AR
5513 for ac_prog in ar
5514 do
5515 # Extract the first word of "$ac_prog", so it can be a program name with args.
5516 set dummy $ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$ac_ct_AR"; then
5523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_ac_ct_AR="$ac_prog"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5543 if test -n "$ac_ct_AR"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5545 $as_echo "$ac_ct_AR" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 test -n "$ac_ct_AR" && break
5553 done
5554
5555 if test "x$ac_ct_AR" = x; then
5556 AR="false"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559 yes:)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5563 esac
5564 AR=$ac_ct_AR
5565 fi
5566 fi
5567
5568 : ${AR=ar}
5569 : ${AR_FLAGS=cru}
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5582 $as_echo_n "checking for archiver @FILE support... " >&6; }
5583 if ${lt_cv_ar_at_file+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 lt_cv_ar_at_file=no
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589
5590 int
5591 main ()
5592 {
5593
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 if ac_fn_c_try_compile "$LINENO"; then :
5599 echo conftest.$ac_objext > conftest.lst
5600 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5602 (eval $lt_ar_try) 2>&5
5603 ac_status=$?
5604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605 test $ac_status = 0; }
5606 if test "$ac_status" -eq 0; then
5607 # Ensure the archiver fails upon bogus file names.
5608 rm -f conftest.$ac_objext libconftest.a
5609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5610 (eval $lt_ar_try) 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }
5614 if test "$ac_status" -ne 0; then
5615 lt_cv_ar_at_file=@
5616 fi
5617 fi
5618 rm -f conftest.* libconftest.a
5619
5620 fi
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5625 $as_echo "$lt_cv_ar_at_file" >&6; }
5626
5627 if test "x$lt_cv_ar_at_file" = xno; then
5628 archiver_list_spec=
5629 else
5630 archiver_list_spec=$lt_cv_ar_at_file
5631 fi
5632
5633
5634
5635
5636
5637
5638
5639 if test -n "$ac_tool_prefix"; then
5640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5641 set dummy ${ac_tool_prefix}strip; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_STRIP+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$STRIP"; then
5648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 STRIP=$ac_cv_prog_STRIP
5668 if test -n "$STRIP"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5670 $as_echo "$STRIP" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676
5677 fi
5678 if test -z "$ac_cv_prog_STRIP"; then
5679 ac_ct_STRIP=$STRIP
5680 # Extract the first word of "strip", so it can be a program name with args.
5681 set dummy strip; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$ac_ct_STRIP"; then
5688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_STRIP="strip"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5700 fi
5701 done
5702 done
5703 IFS=$as_save_IFS
5704
5705 fi
5706 fi
5707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5708 if test -n "$ac_ct_STRIP"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5710 $as_echo "$ac_ct_STRIP" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714 fi
5715
5716 if test "x$ac_ct_STRIP" = x; then
5717 STRIP=":"
5718 else
5719 case $cross_compiling:$ac_tool_warned in
5720 yes:)
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723 ac_tool_warned=yes ;;
5724 esac
5725 STRIP=$ac_ct_STRIP
5726 fi
5727 else
5728 STRIP="$ac_cv_prog_STRIP"
5729 fi
5730
5731 test -z "$STRIP" && STRIP=:
5732
5733
5734
5735
5736
5737
5738 if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_RANLIB+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -n "$RANLIB"; then
5747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760 done
5761 done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 RANLIB=$ac_cv_prog_RANLIB
5767 if test -n "$RANLIB"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5769 $as_echo "$RANLIB" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776 fi
5777 if test -z "$ac_cv_prog_RANLIB"; then
5778 ac_ct_RANLIB=$RANLIB
5779 # Extract the first word of "ranlib", so it can be a program name with args.
5780 set dummy ranlib; ac_word=$2
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 $as_echo_n "checking for $ac_word... " >&6; }
5783 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 if test -n "$ac_ct_RANLIB"; then
5787 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5788 else
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796 ac_cv_prog_ac_ct_RANLIB="ranlib"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800 done
5801 done
5802 IFS=$as_save_IFS
5803
5804 fi
5805 fi
5806 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5807 if test -n "$ac_ct_RANLIB"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5809 $as_echo "$ac_ct_RANLIB" >&6; }
5810 else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 fi
5814
5815 if test "x$ac_ct_RANLIB" = x; then
5816 RANLIB=":"
5817 else
5818 case $cross_compiling:$ac_tool_warned in
5819 yes:)
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5822 ac_tool_warned=yes ;;
5823 esac
5824 RANLIB=$ac_ct_RANLIB
5825 fi
5826 else
5827 RANLIB="$ac_cv_prog_RANLIB"
5828 fi
5829
5830 test -z "$RANLIB" && RANLIB=:
5831
5832
5833
5834
5835
5836
5837 # Determine commands to create old-style static archives.
5838 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5839 old_postinstall_cmds='chmod 644 $oldlib'
5840 old_postuninstall_cmds=
5841
5842 if test -n "$RANLIB"; then
5843 case $host_os in
5844 openbsd*)
5845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5846 ;;
5847 *)
5848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5849 ;;
5850 esac
5851 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5852 fi
5853
5854 case $host_os in
5855 darwin*)
5856 lock_old_archive_extraction=yes ;;
5857 *)
5858 lock_old_archive_extraction=no ;;
5859 esac
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 # If no C compiler was specified, use CC.
5900 LTCC=${LTCC-"$CC"}
5901
5902 # If no C compiler flags were specified, use CFLAGS.
5903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5904
5905 # Allow CC to be a program name with arguments.
5906 compiler=$CC
5907
5908
5909 # Check for command to grab the raw symbol name followed by C symbol from nm.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5911 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5912 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915
5916 # These are sane defaults that work on at least a few old systems.
5917 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5918
5919 # Character class describing NM global symbol codes.
5920 symcode='[BCDEGRST]'
5921
5922 # Regexp to match symbols that can be accessed directly from C.
5923 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5924
5925 # Define system-specific variables.
5926 case $host_os in
5927 aix*)
5928 symcode='[BCDT]'
5929 ;;
5930 cygwin* | mingw* | pw32* | cegcc*)
5931 symcode='[ABCDGISTW]'
5932 ;;
5933 hpux*)
5934 if test "$host_cpu" = ia64; then
5935 symcode='[ABCDEGRST]'
5936 fi
5937 ;;
5938 irix* | nonstopux*)
5939 symcode='[BCDEGRST]'
5940 ;;
5941 osf*)
5942 symcode='[BCDEGQRST]'
5943 ;;
5944 solaris*)
5945 symcode='[BDRT]'
5946 ;;
5947 sco3.2v5*)
5948 symcode='[DT]'
5949 ;;
5950 sysv4.2uw2*)
5951 symcode='[DT]'
5952 ;;
5953 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5954 symcode='[ABDT]'
5955 ;;
5956 sysv4)
5957 symcode='[DFNSTU]'
5958 ;;
5959 esac
5960
5961 # If we're using GNU nm, then use its standard symbol codes.
5962 case `$NM -V 2>&1` in
5963 *GNU* | *'with BFD'*)
5964 symcode='[ABCDGIRSTW]' ;;
5965 esac
5966
5967 # Transform an extracted symbol line into a proper C declaration.
5968 # Some systems (esp. on ia64) link data and code symbols differently,
5969 # so use this general approach.
5970 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5971
5972 # Transform an extracted symbol line into symbol name and symbol address
5973 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5974 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5975
5976 # Handle CRLF in mingw tool chain
5977 opt_cr=
5978 case $build_os in
5979 mingw*)
5980 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5981 ;;
5982 esac
5983
5984 # Try without a prefix underscore, then with it.
5985 for ac_symprfx in "" "_"; do
5986
5987 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5988 symxfrm="\\1 $ac_symprfx\\2 \\2"
5989
5990 # Write the raw and C identifiers.
5991 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5992 # Fake it for dumpbin and say T for any non-static function
5993 # and D for any global variable.
5994 # Also find C++ and __fastcall symbols from MSVC++,
5995 # which start with @ or ?.
5996 lt_cv_sys_global_symbol_pipe="$AWK '"\
5997 " {last_section=section; section=\$ 3};"\
5998 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5999 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6000 " \$ 0!~/External *\|/{next};"\
6001 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6002 " {if(hide[section]) next};"\
6003 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6004 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6005 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6006 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6007 " ' prfx=^$ac_symprfx"
6008 else
6009 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6010 fi
6011 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6012
6013 # Check to see that the pipe works correctly.
6014 pipe_works=no
6015
6016 rm -f conftest*
6017 cat > conftest.$ac_ext <<_LT_EOF
6018 #ifdef __cplusplus
6019 extern "C" {
6020 #endif
6021 char nm_test_var;
6022 void nm_test_func(void);
6023 void nm_test_func(void){}
6024 #ifdef __cplusplus
6025 }
6026 #endif
6027 int main(){nm_test_var='a';nm_test_func();return(0);}
6028 _LT_EOF
6029
6030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6031 (eval $ac_compile) 2>&5
6032 ac_status=$?
6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; }; then
6035 # Now try to grab the symbols.
6036 nlist=conftest.nm
6037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6038 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6039 ac_status=$?
6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; } && test -s "$nlist"; then
6042 # Try sorting and uniquifying the output.
6043 if sort "$nlist" | uniq > "$nlist"T; then
6044 mv -f "$nlist"T "$nlist"
6045 else
6046 rm -f "$nlist"T
6047 fi
6048
6049 # Make sure that we snagged all the symbols we need.
6050 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6051 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6052 cat <<_LT_EOF > conftest.$ac_ext
6053 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6054 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6055 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6056 relocations are performed -- see ld's documentation on pseudo-relocs. */
6057 # define LT_DLSYM_CONST
6058 #elif defined(__osf__)
6059 /* This system does not cope well with relocations in const data. */
6060 # define LT_DLSYM_CONST
6061 #else
6062 # define LT_DLSYM_CONST const
6063 #endif
6064
6065 #ifdef __cplusplus
6066 extern "C" {
6067 #endif
6068
6069 _LT_EOF
6070 # Now generate the symbol file.
6071 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6072
6073 cat <<_LT_EOF >> conftest.$ac_ext
6074
6075 /* The mapping between symbol names and symbols. */
6076 LT_DLSYM_CONST struct {
6077 const char *name;
6078 void *address;
6079 }
6080 lt__PROGRAM__LTX_preloaded_symbols[] =
6081 {
6082 { "@PROGRAM@", (void *) 0 },
6083 _LT_EOF
6084 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6085 cat <<\_LT_EOF >> conftest.$ac_ext
6086 {0, (void *) 0}
6087 };
6088
6089 /* This works around a problem in FreeBSD linker */
6090 #ifdef FREEBSD_WORKAROUND
6091 static const void *lt_preloaded_setup() {
6092 return lt__PROGRAM__LTX_preloaded_symbols;
6093 }
6094 #endif
6095
6096 #ifdef __cplusplus
6097 }
6098 #endif
6099 _LT_EOF
6100 # Now try linking the two files.
6101 mv conftest.$ac_objext conftstm.$ac_objext
6102 lt_globsym_save_LIBS=$LIBS
6103 lt_globsym_save_CFLAGS=$CFLAGS
6104 LIBS="conftstm.$ac_objext"
6105 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6107 (eval $ac_link) 2>&5
6108 ac_status=$?
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6111 pipe_works=yes
6112 fi
6113 LIBS=$lt_globsym_save_LIBS
6114 CFLAGS=$lt_globsym_save_CFLAGS
6115 else
6116 echo "cannot find nm_test_func in $nlist" >&5
6117 fi
6118 else
6119 echo "cannot find nm_test_var in $nlist" >&5
6120 fi
6121 else
6122 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6123 fi
6124 else
6125 echo "$progname: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6127 fi
6128 rm -rf conftest* conftst*
6129
6130 # Do not use the global_symbol_pipe unless it works.
6131 if test "$pipe_works" = yes; then
6132 break
6133 else
6134 lt_cv_sys_global_symbol_pipe=
6135 fi
6136 done
6137
6138 fi
6139
6140 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6141 lt_cv_sys_global_symbol_to_cdecl=
6142 fi
6143 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6145 $as_echo "failed" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6148 $as_echo "ok" >&6; }
6149 fi
6150
6151 # Response file support.
6152 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6153 nm_file_list_spec='@'
6154 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6155 nm_file_list_spec='@'
6156 fi
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6185 $as_echo_n "checking for sysroot... " >&6; }
6186
6187 # Check whether --with-sysroot was given.
6188 if test "${with_sysroot+set}" = set; then :
6189 withval=$with_sysroot;
6190 else
6191 with_sysroot=no
6192 fi
6193
6194
6195 lt_sysroot=
6196 case ${with_sysroot} in #(
6197 yes)
6198 if test "$GCC" = yes; then
6199 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6200 fi
6201 ;; #(
6202 /*)
6203 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6204 ;; #(
6205 no|'')
6206 ;; #(
6207 *)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6209 $as_echo "${with_sysroot}" >&6; }
6210 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6211 ;;
6212 esac
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6215 $as_echo "${lt_sysroot:-no}" >&6; }
6216
6217
6218
6219
6220
6221 # Check whether --enable-libtool-lock was given.
6222 if test "${enable_libtool_lock+set}" = set; then :
6223 enableval=$enable_libtool_lock;
6224 fi
6225
6226 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6227
6228 # Some flags need to be propagated to the compiler or linker for good
6229 # libtool support.
6230 case $host in
6231 ia64-*-hpux*)
6232 # Find out which ABI we are using.
6233 echo 'int i;' > conftest.$ac_ext
6234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6235 (eval $ac_compile) 2>&5
6236 ac_status=$?
6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; }; then
6239 case `/usr/bin/file conftest.$ac_objext` in
6240 *ELF-32*)
6241 HPUX_IA64_MODE="32"
6242 ;;
6243 *ELF-64*)
6244 HPUX_IA64_MODE="64"
6245 ;;
6246 esac
6247 fi
6248 rm -rf conftest*
6249 ;;
6250 *-*-irix6*)
6251 # Find out which ABI we are using.
6252 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6254 (eval $ac_compile) 2>&5
6255 ac_status=$?
6256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257 test $ac_status = 0; }; then
6258 if test "$lt_cv_prog_gnu_ld" = yes; then
6259 case `/usr/bin/file conftest.$ac_objext` in
6260 *32-bit*)
6261 LD="${LD-ld} -melf32bsmip"
6262 ;;
6263 *N32*)
6264 LD="${LD-ld} -melf32bmipn32"
6265 ;;
6266 *64-bit*)
6267 LD="${LD-ld} -melf64bmip"
6268 ;;
6269 esac
6270 else
6271 case `/usr/bin/file conftest.$ac_objext` in
6272 *32-bit*)
6273 LD="${LD-ld} -32"
6274 ;;
6275 *N32*)
6276 LD="${LD-ld} -n32"
6277 ;;
6278 *64-bit*)
6279 LD="${LD-ld} -64"
6280 ;;
6281 esac
6282 fi
6283 fi
6284 rm -rf conftest*
6285 ;;
6286
6287 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6288 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6289 # Find out which ABI we are using.
6290 echo 'int i;' > conftest.$ac_ext
6291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6292 (eval $ac_compile) 2>&5
6293 ac_status=$?
6294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6295 test $ac_status = 0; }; then
6296 case `/usr/bin/file conftest.o` in
6297 *32-bit*)
6298 case $host in
6299 x86_64-*kfreebsd*-gnu)
6300 LD="${LD-ld} -m elf_i386_fbsd"
6301 ;;
6302 x86_64-*linux*)
6303 case `/usr/bin/file conftest.o` in
6304 *x86-64*)
6305 LD="${LD-ld} -m elf32_x86_64"
6306 ;;
6307 *)
6308 LD="${LD-ld} -m elf_i386"
6309 ;;
6310 esac
6311 ;;
6312 powerpc64le-*)
6313 LD="${LD-ld} -m elf32lppclinux"
6314 ;;
6315 powerpc64-*)
6316 LD="${LD-ld} -m elf32ppclinux"
6317 ;;
6318 s390x-*linux*)
6319 LD="${LD-ld} -m elf_s390"
6320 ;;
6321 sparc64-*linux*)
6322 LD="${LD-ld} -m elf32_sparc"
6323 ;;
6324 esac
6325 ;;
6326 *64-bit*)
6327 case $host in
6328 x86_64-*kfreebsd*-gnu)
6329 LD="${LD-ld} -m elf_x86_64_fbsd"
6330 ;;
6331 x86_64-*linux*)
6332 LD="${LD-ld} -m elf_x86_64"
6333 ;;
6334 powerpcle-*)
6335 LD="${LD-ld} -m elf64lppc"
6336 ;;
6337 powerpc-*)
6338 LD="${LD-ld} -m elf64ppc"
6339 ;;
6340 s390*-*linux*|s390*-*tpf*)
6341 LD="${LD-ld} -m elf64_s390"
6342 ;;
6343 sparc*-*linux*)
6344 LD="${LD-ld} -m elf64_sparc"
6345 ;;
6346 esac
6347 ;;
6348 esac
6349 fi
6350 rm -rf conftest*
6351 ;;
6352
6353 *-*-sco3.2v5*)
6354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355 SAVE_CFLAGS="$CFLAGS"
6356 CFLAGS="$CFLAGS -belf"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6358 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6359 if ${lt_cv_cc_needs_belf+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 ac_ext=c
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370
6371 int
6372 main ()
6373 {
6374
6375 ;
6376 return 0;
6377 }
6378 _ACEOF
6379 if ac_fn_c_try_link "$LINENO"; then :
6380 lt_cv_cc_needs_belf=yes
6381 else
6382 lt_cv_cc_needs_belf=no
6383 fi
6384 rm -f core conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
6386 ac_ext=c
6387 ac_cpp='$CPP $CPPFLAGS'
6388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6394 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6395 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6396 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6397 CFLAGS="$SAVE_CFLAGS"
6398 fi
6399 ;;
6400 *-*solaris*)
6401 # Find out which ABI we are using.
6402 echo 'int i;' > conftest.$ac_ext
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 case `/usr/bin/file conftest.o` in
6409 *64-bit*)
6410 case $lt_cv_prog_gnu_ld in
6411 yes*)
6412 case $host in
6413 i?86-*-solaris*)
6414 LD="${LD-ld} -m elf_x86_64"
6415 ;;
6416 sparc*-*-solaris*)
6417 LD="${LD-ld} -m elf64_sparc"
6418 ;;
6419 esac
6420 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6421 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6422 LD="${LD-ld}_sol2"
6423 fi
6424 ;;
6425 *)
6426 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6427 LD="${LD-ld} -64"
6428 fi
6429 ;;
6430 esac
6431 ;;
6432 esac
6433 fi
6434 rm -rf conftest*
6435 ;;
6436 esac
6437
6438 need_locks="$enable_libtool_lock"
6439
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}mt; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$MANIFEST_TOOL"; then
6449 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6469 if test -n "$MANIFEST_TOOL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6471 $as_echo "$MANIFEST_TOOL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478 fi
6479 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6480 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6481 # Extract the first word of "mt", so it can be a program name with args.
6482 set dummy mt; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_MANIFEST_TOOL"; then
6489 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6509 if test -n "$ac_ct_MANIFEST_TOOL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6511 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6518 MANIFEST_TOOL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6527 fi
6528 else
6529 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6530 fi
6531
6532 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6534 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6535 if ${lt_cv_path_mainfest_tool+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 lt_cv_path_mainfest_tool=no
6539 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6540 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6541 cat conftest.err >&5
6542 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6543 lt_cv_path_mainfest_tool=yes
6544 fi
6545 rm -f conftest*
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6548 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6549 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6550 MANIFEST_TOOL=:
6551 fi
6552
6553
6554
6555
6556
6557
6558 case $host_os in
6559 rhapsody* | darwin*)
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$DSYMUTIL"; then
6569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6589 if test -n "$DSYMUTIL"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6591 $as_echo "$DSYMUTIL" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_DSYMUTIL"; then
6600 ac_ct_DSYMUTIL=$DSYMUTIL
6601 # Extract the first word of "dsymutil", so it can be a program name with args.
6602 set dummy dsymutil; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_DSYMUTIL"; then
6609 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6629 if test -n "$ac_ct_DSYMUTIL"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6631 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_DSYMUTIL" = x; then
6638 DSYMUTIL=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 DSYMUTIL=$ac_ct_DSYMUTIL
6647 fi
6648 else
6649 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6650 fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_NMEDIT+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$NMEDIT"; then
6661 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 NMEDIT=$ac_cv_prog_NMEDIT
6681 if test -n "$NMEDIT"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6683 $as_echo "$NMEDIT" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_NMEDIT"; then
6692 ac_ct_NMEDIT=$NMEDIT
6693 # Extract the first word of "nmedit", so it can be a program name with args.
6694 set dummy nmedit; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$ac_ct_NMEDIT"; then
6701 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6721 if test -n "$ac_ct_NMEDIT"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6723 $as_echo "$ac_ct_NMEDIT" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729 if test "x$ac_ct_NMEDIT" = x; then
6730 NMEDIT=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738 NMEDIT=$ac_ct_NMEDIT
6739 fi
6740 else
6741 NMEDIT="$ac_cv_prog_NMEDIT"
6742 fi
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_LIPO+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$LIPO"; then
6753 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 LIPO=$ac_cv_prog_LIPO
6773 if test -n "$LIPO"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6775 $as_echo "$LIPO" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_LIPO"; then
6784 ac_ct_LIPO=$LIPO
6785 # Extract the first word of "lipo", so it can be a program name with args.
6786 set dummy lipo; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if test -n "$ac_ct_LIPO"; then
6793 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_ac_ct_LIPO="lipo"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6813 if test -n "$ac_ct_LIPO"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6815 $as_echo "$ac_ct_LIPO" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821 if test "x$ac_ct_LIPO" = x; then
6822 LIPO=":"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830 LIPO=$ac_ct_LIPO
6831 fi
6832 else
6833 LIPO="$ac_cv_prog_LIPO"
6834 fi
6835
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}otool; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_OTOOL+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$OTOOL"; then
6845 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 OTOOL=$ac_cv_prog_OTOOL
6865 if test -n "$OTOOL"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6867 $as_echo "$OTOOL" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873
6874 fi
6875 if test -z "$ac_cv_prog_OTOOL"; then
6876 ac_ct_OTOOL=$OTOOL
6877 # Extract the first word of "otool", so it can be a program name with args.
6878 set dummy otool; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 if test -n "$ac_ct_OTOOL"; then
6885 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_ac_ct_OTOOL="otool"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6905 if test -n "$ac_ct_OTOOL"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6907 $as_echo "$ac_ct_OTOOL" >&6; }
6908 else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913 if test "x$ac_ct_OTOOL" = x; then
6914 OTOOL=":"
6915 else
6916 case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6921 esac
6922 OTOOL=$ac_ct_OTOOL
6923 fi
6924 else
6925 OTOOL="$ac_cv_prog_OTOOL"
6926 fi
6927
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6930 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_OTOOL64+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$OTOOL64"; then
6937 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 OTOOL64=$ac_cv_prog_OTOOL64
6957 if test -n "$OTOOL64"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6959 $as_echo "$OTOOL64" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965
6966 fi
6967 if test -z "$ac_cv_prog_OTOOL64"; then
6968 ac_ct_OTOOL64=$OTOOL64
6969 # Extract the first word of "otool64", so it can be a program name with args.
6970 set dummy otool64; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 if test -n "$ac_ct_OTOOL64"; then
6977 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_ac_ct_OTOOL64="otool64"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990 done
6991 done
6992 IFS=$as_save_IFS
6993
6994 fi
6995 fi
6996 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6997 if test -n "$ac_ct_OTOOL64"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6999 $as_echo "$ac_ct_OTOOL64" >&6; }
7000 else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7003 fi
7004
7005 if test "x$ac_ct_OTOOL64" = x; then
7006 OTOOL64=":"
7007 else
7008 case $cross_compiling:$ac_tool_warned in
7009 yes:)
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012 ac_tool_warned=yes ;;
7013 esac
7014 OTOOL64=$ac_ct_OTOOL64
7015 fi
7016 else
7017 OTOOL64="$ac_cv_prog_OTOOL64"
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7047 $as_echo_n "checking for -single_module linker flag... " >&6; }
7048 if ${lt_cv_apple_cc_single_mod+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 lt_cv_apple_cc_single_mod=no
7052 if test -z "${LT_MULTI_MODULE}"; then
7053 # By default we will add the -single_module flag. You can override
7054 # by either setting the environment variable LT_MULTI_MODULE
7055 # non-empty at configure time, or by adding -multi_module to the
7056 # link flags.
7057 rm -rf libconftest.dylib*
7058 echo "int foo(void){return 1;}" > conftest.c
7059 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7060 -dynamiclib -Wl,-single_module conftest.c" >&5
7061 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7062 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7063 _lt_result=$?
7064 # If there is a non-empty error log, and "single_module"
7065 # appears in it, assume the flag caused a linker warning
7066 if test -s conftest.err && $GREP single_module conftest.err; then
7067 cat conftest.err >&5
7068 # Otherwise, if the output was created with a 0 exit code from
7069 # the compiler, it worked.
7070 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7071 lt_cv_apple_cc_single_mod=yes
7072 else
7073 cat conftest.err >&5
7074 fi
7075 rm -rf libconftest.dylib*
7076 rm -f conftest.*
7077 fi
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7080 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7081
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7083 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7084 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 lt_cv_ld_exported_symbols_list=no
7088 save_LDFLAGS=$LDFLAGS
7089 echo "_main" > conftest.sym
7090 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093
7094 int
7095 main ()
7096 {
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"; then :
7103 lt_cv_ld_exported_symbols_list=yes
7104 else
7105 lt_cv_ld_exported_symbols_list=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7109 LDFLAGS="$save_LDFLAGS"
7110
7111 fi
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7113 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7116 $as_echo_n "checking for -force_load linker flag... " >&6; }
7117 if ${lt_cv_ld_force_load+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 lt_cv_ld_force_load=no
7121 cat > conftest.c << _LT_EOF
7122 int forced_loaded() { return 2;}
7123 _LT_EOF
7124 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7125 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7126 echo "$AR cru libconftest.a conftest.o" >&5
7127 $AR cru libconftest.a conftest.o 2>&5
7128 echo "$RANLIB libconftest.a" >&5
7129 $RANLIB libconftest.a 2>&5
7130 cat > conftest.c << _LT_EOF
7131 int main() { return 0;}
7132 _LT_EOF
7133 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7134 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7135 _lt_result=$?
7136 if test -s conftest.err && $GREP force_load conftest.err; then
7137 cat conftest.err >&5
7138 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7139 lt_cv_ld_force_load=yes
7140 else
7141 cat conftest.err >&5
7142 fi
7143 rm -f conftest.err libconftest.a conftest conftest.c
7144 rm -rf conftest.dSYM
7145
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7148 $as_echo "$lt_cv_ld_force_load" >&6; }
7149 case $host_os in
7150 rhapsody* | darwin1.[012])
7151 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7152 darwin1.*)
7153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7154 darwin*) # darwin 5.x on
7155 # if running on 10.5 or later, the deployment target defaults
7156 # to the OS version, if on x86, and 10.4, the deployment
7157 # target defaults to 10.4. Don't you love it?
7158 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7159 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7160 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7161 10.[012]*)
7162 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7163 10.*)
7164 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7165 esac
7166 ;;
7167 esac
7168 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7169 _lt_dar_single_mod='$single_module'
7170 fi
7171 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7172 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7173 else
7174 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7175 fi
7176 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7177 _lt_dsymutil='~$DSYMUTIL $lib || :'
7178 else
7179 _lt_dsymutil=
7180 fi
7181 ;;
7182 esac
7183
7184 ac_ext=c
7185 ac_cpp='$CPP $CPPFLAGS'
7186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7190 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7191 # On Suns, sometimes $CPP names a directory.
7192 if test -n "$CPP" && test -d "$CPP"; then
7193 CPP=
7194 fi
7195 if test -z "$CPP"; then
7196 if ${ac_cv_prog_CPP+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 # Double quotes because CPP needs to be expanded
7200 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7201 do
7202 ac_preproc_ok=false
7203 for ac_c_preproc_warn_flag in '' yes
7204 do
7205 # Use a header file that comes with gcc, so configuring glibc
7206 # with a fresh cross-compiler works.
7207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208 # <limits.h> exists even on freestanding compilers.
7209 # On the NeXT, cc -E runs the code through the compiler's parser,
7210 # not just through cpp. "Syntax error" is here to catch this case.
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #ifdef __STDC__
7214 # include <limits.h>
7215 #else
7216 # include <assert.h>
7217 #endif
7218 Syntax error
7219 _ACEOF
7220 if ac_fn_c_try_cpp "$LINENO"; then :
7221
7222 else
7223 # Broken: fails on valid input.
7224 continue
7225 fi
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7227
7228 # OK, works on sane cases. Now check whether nonexistent headers
7229 # can be detected and how.
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 #include <ac_nonexistent.h>
7233 _ACEOF
7234 if ac_fn_c_try_cpp "$LINENO"; then :
7235 # Broken: success on invalid input.
7236 continue
7237 else
7238 # Passes both tests.
7239 ac_preproc_ok=:
7240 break
7241 fi
7242 rm -f conftest.err conftest.i conftest.$ac_ext
7243
7244 done
7245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7246 rm -f conftest.i conftest.err conftest.$ac_ext
7247 if $ac_preproc_ok; then :
7248 break
7249 fi
7250
7251 done
7252 ac_cv_prog_CPP=$CPP
7253
7254 fi
7255 CPP=$ac_cv_prog_CPP
7256 else
7257 ac_cv_prog_CPP=$CPP
7258 fi
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7260 $as_echo "$CPP" >&6; }
7261 ac_preproc_ok=false
7262 for ac_c_preproc_warn_flag in '' yes
7263 do
7264 # Use a header file that comes with gcc, so configuring glibc
7265 # with a fresh cross-compiler works.
7266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267 # <limits.h> exists even on freestanding compilers.
7268 # On the NeXT, cc -E runs the code through the compiler's parser,
7269 # not just through cpp. "Syntax error" is here to catch this case.
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #ifdef __STDC__
7273 # include <limits.h>
7274 #else
7275 # include <assert.h>
7276 #endif
7277 Syntax error
7278 _ACEOF
7279 if ac_fn_c_try_cpp "$LINENO"; then :
7280
7281 else
7282 # Broken: fails on valid input.
7283 continue
7284 fi
7285 rm -f conftest.err conftest.i conftest.$ac_ext
7286
7287 # OK, works on sane cases. Now check whether nonexistent headers
7288 # can be detected and how.
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 #include <ac_nonexistent.h>
7292 _ACEOF
7293 if ac_fn_c_try_cpp "$LINENO"; then :
7294 # Broken: success on invalid input.
7295 continue
7296 else
7297 # Passes both tests.
7298 ac_preproc_ok=:
7299 break
7300 fi
7301 rm -f conftest.err conftest.i conftest.$ac_ext
7302
7303 done
7304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305 rm -f conftest.i conftest.err conftest.$ac_ext
7306 if $ac_preproc_ok; then :
7307
7308 else
7309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7312 See \`config.log' for more details" "$LINENO" 5; }
7313 fi
7314
7315 ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7323 $as_echo_n "checking for ANSI C header files... " >&6; }
7324 if ${ac_cv_header_stdc+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 #include <stdlib.h>
7330 #include <stdarg.h>
7331 #include <string.h>
7332 #include <float.h>
7333
7334 int
7335 main ()
7336 {
7337
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 ac_cv_header_stdc=yes
7344 else
7345 ac_cv_header_stdc=no
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348
7349 if test $ac_cv_header_stdc = yes; then
7350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353 #include <string.h>
7354
7355 _ACEOF
7356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7357 $EGREP "memchr" >/dev/null 2>&1; then :
7358
7359 else
7360 ac_cv_header_stdc=no
7361 fi
7362 rm -f conftest*
7363
7364 fi
7365
7366 if test $ac_cv_header_stdc = yes; then
7367 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 #include <stdlib.h>
7371
7372 _ACEOF
7373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374 $EGREP "free" >/dev/null 2>&1; then :
7375
7376 else
7377 ac_cv_header_stdc=no
7378 fi
7379 rm -f conftest*
7380
7381 fi
7382
7383 if test $ac_cv_header_stdc = yes; then
7384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7385 if test "$cross_compiling" = yes; then :
7386 :
7387 else
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 #include <ctype.h>
7391 #include <stdlib.h>
7392 #if ((' ' & 0x0FF) == 0x020)
7393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7395 #else
7396 # define ISLOWER(c) \
7397 (('a' <= (c) && (c) <= 'i') \
7398 || ('j' <= (c) && (c) <= 'r') \
7399 || ('s' <= (c) && (c) <= 'z'))
7400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7401 #endif
7402
7403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7404 int
7405 main ()
7406 {
7407 int i;
7408 for (i = 0; i < 256; i++)
7409 if (XOR (islower (i), ISLOWER (i))
7410 || toupper (i) != TOUPPER (i))
7411 return 2;
7412 return 0;
7413 }
7414 _ACEOF
7415 if ac_fn_c_try_run "$LINENO"; then :
7416
7417 else
7418 ac_cv_header_stdc=no
7419 fi
7420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7421 conftest.$ac_objext conftest.beam conftest.$ac_ext
7422 fi
7423
7424 fi
7425 fi
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7427 $as_echo "$ac_cv_header_stdc" >&6; }
7428 if test $ac_cv_header_stdc = yes; then
7429
7430 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7431
7432 fi
7433
7434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7436 inttypes.h stdint.h unistd.h
7437 do :
7438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7440 "
7441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7442 cat >>confdefs.h <<_ACEOF
7443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7444 _ACEOF
7445
7446 fi
7447
7448 done
7449
7450
7451 for ac_header in dlfcn.h
7452 do :
7453 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7454 "
7455 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7456 cat >>confdefs.h <<_ACEOF
7457 #define HAVE_DLFCN_H 1
7458 _ACEOF
7459
7460 fi
7461
7462 done
7463
7464
7465
7466
7467
7468 # Set options
7469
7470
7471
7472 enable_dlopen=no
7473
7474
7475 enable_win32_dll=no
7476
7477
7478 # Check whether --enable-shared was given.
7479 if test "${enable_shared+set}" = set; then :
7480 enableval=$enable_shared; p=${PACKAGE-default}
7481 case $enableval in
7482 yes) enable_shared=yes ;;
7483 no) enable_shared=no ;;
7484 *)
7485 enable_shared=no
7486 # Look at the argument we got. We use all the common list separators.
7487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488 for pkg in $enableval; do
7489 IFS="$lt_save_ifs"
7490 if test "X$pkg" = "X$p"; then
7491 enable_shared=yes
7492 fi
7493 done
7494 IFS="$lt_save_ifs"
7495 ;;
7496 esac
7497 else
7498 enable_shared=yes
7499 fi
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 # Check whether --enable-static was given.
7510 if test "${enable_static+set}" = set; then :
7511 enableval=$enable_static; p=${PACKAGE-default}
7512 case $enableval in
7513 yes) enable_static=yes ;;
7514 no) enable_static=no ;;
7515 *)
7516 enable_static=no
7517 # Look at the argument we got. We use all the common list separators.
7518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7519 for pkg in $enableval; do
7520 IFS="$lt_save_ifs"
7521 if test "X$pkg" = "X$p"; then
7522 enable_static=yes
7523 fi
7524 done
7525 IFS="$lt_save_ifs"
7526 ;;
7527 esac
7528 else
7529 enable_static=yes
7530 fi
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 # Check whether --with-pic was given.
7542 if test "${with_pic+set}" = set; then :
7543 withval=$with_pic; lt_p=${PACKAGE-default}
7544 case $withval in
7545 yes|no) pic_mode=$withval ;;
7546 *)
7547 pic_mode=default
7548 # Look at the argument we got. We use all the common list separators.
7549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7550 for lt_pkg in $withval; do
7551 IFS="$lt_save_ifs"
7552 if test "X$lt_pkg" = "X$lt_p"; then
7553 pic_mode=yes
7554 fi
7555 done
7556 IFS="$lt_save_ifs"
7557 ;;
7558 esac
7559 else
7560 pic_mode=default
7561 fi
7562
7563
7564 test -z "$pic_mode" && pic_mode=default
7565
7566
7567
7568
7569
7570
7571
7572 # Check whether --enable-fast-install was given.
7573 if test "${enable_fast_install+set}" = set; then :
7574 enableval=$enable_fast_install; p=${PACKAGE-default}
7575 case $enableval in
7576 yes) enable_fast_install=yes ;;
7577 no) enable_fast_install=no ;;
7578 *)
7579 enable_fast_install=no
7580 # Look at the argument we got. We use all the common list separators.
7581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7582 for pkg in $enableval; do
7583 IFS="$lt_save_ifs"
7584 if test "X$pkg" = "X$p"; then
7585 enable_fast_install=yes
7586 fi
7587 done
7588 IFS="$lt_save_ifs"
7589 ;;
7590 esac
7591 else
7592 enable_fast_install=yes
7593 fi
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605 # This can be used to rebuild libtool when needed
7606 LIBTOOL_DEPS="$ltmain"
7607
7608 # Always use our own libtool.
7609 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640 test -z "$LN_S" && LN_S="ln -s"
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655 if test -n "${ZSH_VERSION+set}" ; then
7656 setopt NO_GLOB_SUBST
7657 fi
7658
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7660 $as_echo_n "checking for objdir... " >&6; }
7661 if ${lt_cv_objdir+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 rm -f .libs 2>/dev/null
7665 mkdir .libs 2>/dev/null
7666 if test -d .libs; then
7667 lt_cv_objdir=.libs
7668 else
7669 # MS-DOS does not allow filenames that begin with a dot.
7670 lt_cv_objdir=_libs
7671 fi
7672 rmdir .libs 2>/dev/null
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7675 $as_echo "$lt_cv_objdir" >&6; }
7676 objdir=$lt_cv_objdir
7677
7678
7679
7680
7681
7682 cat >>confdefs.h <<_ACEOF
7683 #define LT_OBJDIR "$lt_cv_objdir/"
7684 _ACEOF
7685
7686
7687
7688
7689 case $host_os in
7690 aix3*)
7691 # AIX sometimes has problems with the GCC collect2 program. For some
7692 # reason, if we set the COLLECT_NAMES environment variable, the problems
7693 # vanish in a puff of smoke.
7694 if test "X${COLLECT_NAMES+set}" != Xset; then
7695 COLLECT_NAMES=
7696 export COLLECT_NAMES
7697 fi
7698 ;;
7699 esac
7700
7701 # Global variables:
7702 ofile=libtool
7703 can_build_shared=yes
7704
7705 # All known linkers require a `.a' archive for static linking (except MSVC,
7706 # which needs '.lib').
7707 libext=a
7708
7709 with_gnu_ld="$lt_cv_prog_gnu_ld"
7710
7711 old_CC="$CC"
7712 old_CFLAGS="$CFLAGS"
7713
7714 # Set sane defaults for various variables
7715 test -z "$CC" && CC=cc
7716 test -z "$LTCC" && LTCC=$CC
7717 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7718 test -z "$LD" && LD=ld
7719 test -z "$ac_objext" && ac_objext=o
7720
7721 for cc_temp in $compiler""; do
7722 case $cc_temp in
7723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7725 \-*) ;;
7726 *) break;;
7727 esac
7728 done
7729 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7730
7731
7732 # Only perform the check for file, if the check method requires it
7733 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7734 case $deplibs_check_method in
7735 file_magic*)
7736 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7738 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7739 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 case $MAGIC_CMD in
7743 [\\/*] | ?:[\\/]*)
7744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7745 ;;
7746 *)
7747 lt_save_MAGIC_CMD="$MAGIC_CMD"
7748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750 for ac_dir in $ac_dummy; do
7751 IFS="$lt_save_ifs"
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/${ac_tool_prefix}file; then
7754 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7755 if test -n "$file_magic_test_file"; then
7756 case $deplibs_check_method in
7757 "file_magic "*)
7758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761 $EGREP "$file_magic_regex" > /dev/null; then
7762 :
7763 else
7764 cat <<_LT_EOF 1>&2
7765
7766 *** Warning: the command libtool uses to detect shared libraries,
7767 *** $file_magic_cmd, produces output that libtool cannot recognize.
7768 *** The result is that libtool may fail to recognize shared libraries
7769 *** as such. This will affect the creation of libtool libraries that
7770 *** depend on shared libraries, but programs linked with such libtool
7771 *** libraries will work regardless of this problem. Nevertheless, you
7772 *** may want to report the problem to your system manager and/or to
7773 *** bug-libtool@gnu.org
7774
7775 _LT_EOF
7776 fi ;;
7777 esac
7778 fi
7779 break
7780 fi
7781 done
7782 IFS="$lt_save_ifs"
7783 MAGIC_CMD="$lt_save_MAGIC_CMD"
7784 ;;
7785 esac
7786 fi
7787
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if test -n "$MAGIC_CMD"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7791 $as_echo "$MAGIC_CMD" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798
7799
7800
7801 if test -z "$lt_cv_path_MAGIC_CMD"; then
7802 if test -n "$ac_tool_prefix"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7804 $as_echo_n "checking for file... " >&6; }
7805 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 case $MAGIC_CMD in
7809 [\\/*] | ?:[\\/]*)
7810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7811 ;;
7812 *)
7813 lt_save_MAGIC_CMD="$MAGIC_CMD"
7814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7816 for ac_dir in $ac_dummy; do
7817 IFS="$lt_save_ifs"
7818 test -z "$ac_dir" && ac_dir=.
7819 if test -f $ac_dir/file; then
7820 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7821 if test -n "$file_magic_test_file"; then
7822 case $deplibs_check_method in
7823 "file_magic "*)
7824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7827 $EGREP "$file_magic_regex" > /dev/null; then
7828 :
7829 else
7830 cat <<_LT_EOF 1>&2
7831
7832 *** Warning: the command libtool uses to detect shared libraries,
7833 *** $file_magic_cmd, produces output that libtool cannot recognize.
7834 *** The result is that libtool may fail to recognize shared libraries
7835 *** as such. This will affect the creation of libtool libraries that
7836 *** depend on shared libraries, but programs linked with such libtool
7837 *** libraries will work regardless of this problem. Nevertheless, you
7838 *** may want to report the problem to your system manager and/or to
7839 *** bug-libtool@gnu.org
7840
7841 _LT_EOF
7842 fi ;;
7843 esac
7844 fi
7845 break
7846 fi
7847 done
7848 IFS="$lt_save_ifs"
7849 MAGIC_CMD="$lt_save_MAGIC_CMD"
7850 ;;
7851 esac
7852 fi
7853
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if test -n "$MAGIC_CMD"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7857 $as_echo "$MAGIC_CMD" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862
7863
7864 else
7865 MAGIC_CMD=:
7866 fi
7867 fi
7868
7869 fi
7870 ;;
7871 esac
7872
7873 # Use C for the default configuration in the libtool script
7874
7875 lt_save_CC="$CC"
7876 ac_ext=c
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881
7882
7883 # Source file extension for C test sources.
7884 ac_ext=c
7885
7886 # Object file extension for compiled C test sources.
7887 objext=o
7888 objext=$objext
7889
7890 # Code to be used in simple compile tests
7891 lt_simple_compile_test_code="int some_variable = 0;"
7892
7893 # Code to be used in simple link tests
7894 lt_simple_link_test_code='int main(){return(0);}'
7895
7896
7897
7898
7899
7900
7901
7902 # If no C compiler was specified, use CC.
7903 LTCC=${LTCC-"$CC"}
7904
7905 # If no C compiler flags were specified, use CFLAGS.
7906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7907
7908 # Allow CC to be a program name with arguments.
7909 compiler=$CC
7910
7911 # Save the default compiler, since it gets overwritten when the other
7912 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7913 compiler_DEFAULT=$CC
7914
7915 # save warnings/boilerplate of simple test code
7916 ac_outfile=conftest.$ac_objext
7917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7919 _lt_compiler_boilerplate=`cat conftest.err`
7920 $RM conftest*
7921
7922 ac_outfile=conftest.$ac_objext
7923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7925 _lt_linker_boilerplate=`cat conftest.err`
7926 $RM -r conftest*
7927
7928
7929 if test -n "$compiler"; then
7930
7931 lt_prog_compiler_no_builtin_flag=
7932
7933 if test "$GCC" = yes; then
7934 case $cc_basename in
7935 nvcc*)
7936 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7937 *)
7938 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7939 esac
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7942 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7943 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 lt_cv_prog_compiler_rtti_exceptions=no
7947 ac_outfile=conftest.$ac_objext
7948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7949 lt_compiler_flag="-fno-rtti -fno-exceptions"
7950 # Insert the option either (1) after the last *FLAGS variable, or
7951 # (2) before a word containing "conftest.", or (3) at the end.
7952 # Note that $ac_compile itself does not contain backslashes and begins
7953 # with a dollar sign (not a hyphen), so the echo should work correctly.
7954 # The option is referenced via a variable to avoid confusing sed.
7955 lt_compile=`echo "$ac_compile" | $SED \
7956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958 -e 's:$: $lt_compiler_flag:'`
7959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7960 (eval "$lt_compile" 2>conftest.err)
7961 ac_status=$?
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 if (exit $ac_status) && test -s "$ac_outfile"; then
7965 # The compiler can only warn and ignore the option if not recognized
7966 # So say no if there are warnings other than the usual output.
7967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7970 lt_cv_prog_compiler_rtti_exceptions=yes
7971 fi
7972 fi
7973 $RM conftest*
7974
7975 fi
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7977 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7978
7979 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7980 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7981 else
7982 :
7983 fi
7984
7985 fi
7986
7987
7988
7989
7990
7991
7992 lt_prog_compiler_wl=
7993 lt_prog_compiler_pic=
7994 lt_prog_compiler_static=
7995
7996
7997 if test "$GCC" = yes; then
7998 lt_prog_compiler_wl='-Wl,'
7999 lt_prog_compiler_static='-static'
8000
8001 case $host_os in
8002 aix*)
8003 # All AIX code is PIC.
8004 if test "$host_cpu" = ia64; then
8005 # AIX 5 now supports IA64 processor
8006 lt_prog_compiler_static='-Bstatic'
8007 fi
8008 ;;
8009
8010 amigaos*)
8011 case $host_cpu in
8012 powerpc)
8013 # see comment about AmigaOS4 .so support
8014 lt_prog_compiler_pic='-fPIC'
8015 ;;
8016 m68k)
8017 # FIXME: we need at least 68020 code to build shared libraries, but
8018 # adding the `-m68020' flag to GCC prevents building anything better,
8019 # like `-m68040'.
8020 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8021 ;;
8022 esac
8023 ;;
8024
8025 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8026 # PIC is the default for these OSes.
8027 ;;
8028
8029 mingw* | cygwin* | pw32* | os2* | cegcc*)
8030 # This hack is so that the source file can tell whether it is being
8031 # built for inclusion in a dll (and should export symbols for example).
8032 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8033 # (--disable-auto-import) libraries
8034 lt_prog_compiler_pic='-DDLL_EXPORT'
8035 ;;
8036
8037 darwin* | rhapsody*)
8038 # PIC is the default on this platform
8039 # Common symbols not allowed in MH_DYLIB files
8040 lt_prog_compiler_pic='-fno-common'
8041 ;;
8042
8043 haiku*)
8044 # PIC is the default for Haiku.
8045 # The "-static" flag exists, but is broken.
8046 lt_prog_compiler_static=
8047 ;;
8048
8049 hpux*)
8050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8052 # sets the default TLS model and affects inlining.
8053 case $host_cpu in
8054 hppa*64*)
8055 # +Z the default
8056 ;;
8057 *)
8058 lt_prog_compiler_pic='-fPIC'
8059 ;;
8060 esac
8061 ;;
8062
8063 interix[3-9]*)
8064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8065 # Instead, we relocate shared libraries at runtime.
8066 ;;
8067
8068 msdosdjgpp*)
8069 # Just because we use GCC doesn't mean we suddenly get shared libraries
8070 # on systems that don't support them.
8071 lt_prog_compiler_can_build_shared=no
8072 enable_shared=no
8073 ;;
8074
8075 *nto* | *qnx*)
8076 # QNX uses GNU C++, but need to define -shared option too, otherwise
8077 # it will coredump.
8078 lt_prog_compiler_pic='-fPIC -shared'
8079 ;;
8080
8081 sysv4*MP*)
8082 if test -d /usr/nec; then
8083 lt_prog_compiler_pic=-Kconform_pic
8084 fi
8085 ;;
8086
8087 *)
8088 lt_prog_compiler_pic='-fPIC'
8089 ;;
8090 esac
8091
8092 case $cc_basename in
8093 nvcc*) # Cuda Compiler Driver 2.2
8094 lt_prog_compiler_wl='-Xlinker '
8095 if test -n "$lt_prog_compiler_pic"; then
8096 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8097 fi
8098 ;;
8099 esac
8100 else
8101 # PORTME Check for flag to pass linker flags through the system compiler.
8102 case $host_os in
8103 aix*)
8104 lt_prog_compiler_wl='-Wl,'
8105 if test "$host_cpu" = ia64; then
8106 # AIX 5 now supports IA64 processor
8107 lt_prog_compiler_static='-Bstatic'
8108 else
8109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8110 fi
8111 ;;
8112
8113 mingw* | cygwin* | pw32* | os2* | cegcc*)
8114 # This hack is so that the source file can tell whether it is being
8115 # built for inclusion in a dll (and should export symbols for example).
8116 lt_prog_compiler_pic='-DDLL_EXPORT'
8117 ;;
8118
8119 hpux9* | hpux10* | hpux11*)
8120 lt_prog_compiler_wl='-Wl,'
8121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8122 # not for PA HP-UX.
8123 case $host_cpu in
8124 hppa*64*|ia64*)
8125 # +Z the default
8126 ;;
8127 *)
8128 lt_prog_compiler_pic='+Z'
8129 ;;
8130 esac
8131 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8132 lt_prog_compiler_static='${wl}-a ${wl}archive'
8133 ;;
8134
8135 irix5* | irix6* | nonstopux*)
8136 lt_prog_compiler_wl='-Wl,'
8137 # PIC (with -KPIC) is the default.
8138 lt_prog_compiler_static='-non_shared'
8139 ;;
8140
8141 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8142 case $cc_basename in
8143 # old Intel for x86_64 which still supported -KPIC.
8144 ecc*)
8145 lt_prog_compiler_wl='-Wl,'
8146 lt_prog_compiler_pic='-KPIC'
8147 lt_prog_compiler_static='-static'
8148 ;;
8149 # icc used to be incompatible with GCC.
8150 # ICC 10 doesn't accept -KPIC any more.
8151 icc* | ifort*)
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='-fPIC'
8154 lt_prog_compiler_static='-static'
8155 ;;
8156 # Lahey Fortran 8.1.
8157 lf95*)
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='--shared'
8160 lt_prog_compiler_static='--static'
8161 ;;
8162 nagfor*)
8163 # NAG Fortran compiler
8164 lt_prog_compiler_wl='-Wl,-Wl,,'
8165 lt_prog_compiler_pic='-PIC'
8166 lt_prog_compiler_static='-Bstatic'
8167 ;;
8168 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8169 # Portland Group compilers (*not* the Pentium gcc compiler,
8170 # which looks to be a dead project)
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='-fpic'
8173 lt_prog_compiler_static='-Bstatic'
8174 ;;
8175 ccc*)
8176 lt_prog_compiler_wl='-Wl,'
8177 # All Alpha code is PIC.
8178 lt_prog_compiler_static='-non_shared'
8179 ;;
8180 xl* | bgxl* | bgf* | mpixl*)
8181 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-qpic'
8184 lt_prog_compiler_static='-qstaticlink'
8185 ;;
8186 *)
8187 case `$CC -V 2>&1 | sed 5q` in
8188 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8189 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8190 lt_prog_compiler_pic='-KPIC'
8191 lt_prog_compiler_static='-Bstatic'
8192 lt_prog_compiler_wl=''
8193 ;;
8194 *Sun\ F* | *Sun*Fortran*)
8195 lt_prog_compiler_pic='-KPIC'
8196 lt_prog_compiler_static='-Bstatic'
8197 lt_prog_compiler_wl='-Qoption ld '
8198 ;;
8199 *Sun\ C*)
8200 # Sun C 5.9
8201 lt_prog_compiler_pic='-KPIC'
8202 lt_prog_compiler_static='-Bstatic'
8203 lt_prog_compiler_wl='-Wl,'
8204 ;;
8205 *Intel*\ [CF]*Compiler*)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-fPIC'
8208 lt_prog_compiler_static='-static'
8209 ;;
8210 *Portland\ Group*)
8211 lt_prog_compiler_wl='-Wl,'
8212 lt_prog_compiler_pic='-fpic'
8213 lt_prog_compiler_static='-Bstatic'
8214 ;;
8215 esac
8216 ;;
8217 esac
8218 ;;
8219
8220 newsos6)
8221 lt_prog_compiler_pic='-KPIC'
8222 lt_prog_compiler_static='-Bstatic'
8223 ;;
8224
8225 *nto* | *qnx*)
8226 # QNX uses GNU C++, but need to define -shared option too, otherwise
8227 # it will coredump.
8228 lt_prog_compiler_pic='-fPIC -shared'
8229 ;;
8230
8231 osf3* | osf4* | osf5*)
8232 lt_prog_compiler_wl='-Wl,'
8233 # All OSF/1 code is PIC.
8234 lt_prog_compiler_static='-non_shared'
8235 ;;
8236
8237 rdos*)
8238 lt_prog_compiler_static='-non_shared'
8239 ;;
8240
8241 solaris*)
8242 lt_prog_compiler_pic='-KPIC'
8243 lt_prog_compiler_static='-Bstatic'
8244 case $cc_basename in
8245 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8246 lt_prog_compiler_wl='-Qoption ld ';;
8247 *)
8248 lt_prog_compiler_wl='-Wl,';;
8249 esac
8250 ;;
8251
8252 sunos4*)
8253 lt_prog_compiler_wl='-Qoption ld '
8254 lt_prog_compiler_pic='-PIC'
8255 lt_prog_compiler_static='-Bstatic'
8256 ;;
8257
8258 sysv4 | sysv4.2uw2* | sysv4.3*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-Bstatic'
8262 ;;
8263
8264 sysv4*MP*)
8265 if test -d /usr/nec ;then
8266 lt_prog_compiler_pic='-Kconform_pic'
8267 lt_prog_compiler_static='-Bstatic'
8268 fi
8269 ;;
8270
8271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-KPIC'
8274 lt_prog_compiler_static='-Bstatic'
8275 ;;
8276
8277 unicos*)
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_can_build_shared=no
8280 ;;
8281
8282 uts4*)
8283 lt_prog_compiler_pic='-pic'
8284 lt_prog_compiler_static='-Bstatic'
8285 ;;
8286
8287 *)
8288 lt_prog_compiler_can_build_shared=no
8289 ;;
8290 esac
8291 fi
8292
8293 case $host_os in
8294 # For platforms which do not support PIC, -DPIC is meaningless:
8295 *djgpp*)
8296 lt_prog_compiler_pic=
8297 ;;
8298 *)
8299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8300 ;;
8301 esac
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8304 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8305 if ${lt_cv_prog_compiler_pic+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8311 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8312 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8313
8314 #
8315 # Check to make sure the PIC flag actually works.
8316 #
8317 if test -n "$lt_prog_compiler_pic"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8319 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8320 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 lt_cv_prog_compiler_pic_works=no
8324 ac_outfile=conftest.$ac_objext
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8327 # Insert the option either (1) after the last *FLAGS variable, or
8328 # (2) before a word containing "conftest.", or (3) at the end.
8329 # Note that $ac_compile itself does not contain backslashes and begins
8330 # with a dollar sign (not a hyphen), so the echo should work correctly.
8331 # The option is referenced via a variable to avoid confusing sed.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8337 (eval "$lt_compile" 2>conftest.err)
8338 ac_status=$?
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 if (exit $ac_status) && test -s "$ac_outfile"; then
8342 # The compiler can only warn and ignore the option if not recognized
8343 # So say no if there are warnings other than the usual output.
8344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8347 lt_cv_prog_compiler_pic_works=yes
8348 fi
8349 fi
8350 $RM conftest*
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8354 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8355
8356 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8357 case $lt_prog_compiler_pic in
8358 "" | " "*) ;;
8359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8360 esac
8361 else
8362 lt_prog_compiler_pic=
8363 lt_prog_compiler_can_build_shared=no
8364 fi
8365
8366 fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 #
8379 # Check to make sure the static flag actually works.
8380 #
8381 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8383 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8384 if ${lt_cv_prog_compiler_static_works+:} false; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 lt_cv_prog_compiler_static_works=no
8388 save_LDFLAGS="$LDFLAGS"
8389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8392 # The linker can only warn and ignore the option if not recognized
8393 # So say no if there are warnings
8394 if test -s conftest.err; then
8395 # Append any errors to the config.log.
8396 cat conftest.err 1>&5
8397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8399 if diff conftest.exp conftest.er2 >/dev/null; then
8400 lt_cv_prog_compiler_static_works=yes
8401 fi
8402 else
8403 lt_cv_prog_compiler_static_works=yes
8404 fi
8405 fi
8406 $RM -r conftest*
8407 LDFLAGS="$save_LDFLAGS"
8408
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8411 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8412
8413 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8414 :
8415 else
8416 lt_prog_compiler_static=
8417 fi
8418
8419
8420
8421
8422
8423
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8427 if ${lt_cv_prog_compiler_c_o+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 lt_cv_prog_compiler_c_o=no
8431 $RM -r conftest 2>/dev/null
8432 mkdir conftest
8433 cd conftest
8434 mkdir out
8435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436
8437 lt_compiler_flag="-o out/conftest2.$ac_objext"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 lt_compile=`echo "$ac_compile" | $SED \
8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445 -e 's:$: $lt_compiler_flag:'`
8446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8447 (eval "$lt_compile" 2>out/conftest.err)
8448 ac_status=$?
8449 cat out/conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8452 then
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings
8455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8458 lt_cv_prog_compiler_c_o=yes
8459 fi
8460 fi
8461 chmod u+w . 2>&5
8462 $RM conftest*
8463 # SGI C++ compiler will create directory out/ii_files/ for
8464 # template instantiation
8465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8466 $RM out/* && rmdir out
8467 cd ..
8468 $RM -r conftest
8469 $RM conftest*
8470
8471 fi
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8474
8475
8476
8477
8478
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8482 if ${lt_cv_prog_compiler_c_o+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 lt_cv_prog_compiler_c_o=no
8486 $RM -r conftest 2>/dev/null
8487 mkdir conftest
8488 cd conftest
8489 mkdir out
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491
8492 lt_compiler_flag="-o out/conftest2.$ac_objext"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 lt_compile=`echo "$ac_compile" | $SED \
8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500 -e 's:$: $lt_compiler_flag:'`
8501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8502 (eval "$lt_compile" 2>out/conftest.err)
8503 ac_status=$?
8504 cat out/conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8507 then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings
8510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8513 lt_cv_prog_compiler_c_o=yes
8514 fi
8515 fi
8516 chmod u+w . 2>&5
8517 $RM conftest*
8518 # SGI C++ compiler will create directory out/ii_files/ for
8519 # template instantiation
8520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8521 $RM out/* && rmdir out
8522 cd ..
8523 $RM -r conftest
8524 $RM conftest*
8525
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8528 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8529
8530
8531
8532
8533 hard_links="nottested"
8534 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8535 # do not overwrite the value of need_locks provided by the user
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8537 $as_echo_n "checking if we can lock with hard links... " >&6; }
8538 hard_links=yes
8539 $RM conftest*
8540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8541 touch conftest.a
8542 ln conftest.a conftest.b 2>&5 || hard_links=no
8543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8545 $as_echo "$hard_links" >&6; }
8546 if test "$hard_links" = no; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8548 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8549 need_locks=warn
8550 fi
8551 else
8552 need_locks=no
8553 fi
8554
8555
8556
8557
8558
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8562
8563 runpath_var=
8564 allow_undefined_flag=
8565 always_export_symbols=no
8566 archive_cmds=
8567 archive_expsym_cmds=
8568 compiler_needs_object=no
8569 enable_shared_with_static_runtimes=no
8570 export_dynamic_flag_spec=
8571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8572 hardcode_automatic=no
8573 hardcode_direct=no
8574 hardcode_direct_absolute=no
8575 hardcode_libdir_flag_spec=
8576 hardcode_libdir_separator=
8577 hardcode_minus_L=no
8578 hardcode_shlibpath_var=unsupported
8579 inherit_rpath=no
8580 link_all_deplibs=unknown
8581 module_cmds=
8582 module_expsym_cmds=
8583 old_archive_from_new_cmds=
8584 old_archive_from_expsyms_cmds=
8585 thread_safe_flag_spec=
8586 whole_archive_flag_spec=
8587 # include_expsyms should be a list of space-separated symbols to be *always*
8588 # included in the symbol list
8589 include_expsyms=
8590 # exclude_expsyms can be an extended regexp of symbols to exclude
8591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8593 # as well as any symbol that contains `d'.
8594 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8596 # platforms (ab)use it in PIC code, but their linkers get confused if
8597 # the symbol is explicitly referenced. Since portable code cannot
8598 # rely on this symbol name, it's probably fine to never include it in
8599 # preloaded symbol tables.
8600 # Exclude shared library initialization/finalization symbols.
8601 extract_expsyms_cmds=
8602
8603 case $host_os in
8604 cygwin* | mingw* | pw32* | cegcc*)
8605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8606 # When not using gcc, we currently assume that we are using
8607 # Microsoft Visual C++.
8608 if test "$GCC" != yes; then
8609 with_gnu_ld=no
8610 fi
8611 ;;
8612 interix*)
8613 # we just hope/assume this is gcc and not c89 (= MSVC++)
8614 with_gnu_ld=yes
8615 ;;
8616 openbsd*)
8617 with_gnu_ld=no
8618 ;;
8619 linux* | k*bsd*-gnu | gnu*)
8620 link_all_deplibs=no
8621 ;;
8622 esac
8623
8624 ld_shlibs=yes
8625
8626 # On some targets, GNU ld is compatible enough with the native linker
8627 # that we're better off using the native interface for both.
8628 lt_use_gnu_ld_interface=no
8629 if test "$with_gnu_ld" = yes; then
8630 case $host_os in
8631 aix*)
8632 # The AIX port of GNU ld has always aspired to compatibility
8633 # with the native linker. However, as the warning in the GNU ld
8634 # block says, versions before 2.19.5* couldn't really create working
8635 # shared libraries, regardless of the interface used.
8636 case `$LD -v 2>&1` in
8637 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8638 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8639 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8640 *)
8641 lt_use_gnu_ld_interface=yes
8642 ;;
8643 esac
8644 ;;
8645 *)
8646 lt_use_gnu_ld_interface=yes
8647 ;;
8648 esac
8649 fi
8650
8651 if test "$lt_use_gnu_ld_interface" = yes; then
8652 # If archive_cmds runs LD, not CC, wlarc should be empty
8653 wlarc='${wl}'
8654
8655 # Set some defaults for GNU ld with shared library support. These
8656 # are reset later if shared libraries are not supported. Putting them
8657 # here allows them to be overridden if necessary.
8658 runpath_var=LD_RUN_PATH
8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660 export_dynamic_flag_spec='${wl}--export-dynamic'
8661 # ancient GNU ld didn't support --whole-archive et. al.
8662 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8663 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8664 else
8665 whole_archive_flag_spec=
8666 fi
8667 supports_anon_versioning=no
8668 case `$LD -v 2>&1` in
8669 *GNU\ gold*) supports_anon_versioning=yes ;;
8670 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8673 *\ 2.11.*) ;; # other 2.11 versions
8674 *) supports_anon_versioning=yes ;;
8675 esac
8676
8677 # See if GNU ld supports shared libraries.
8678 case $host_os in
8679 aix[3-9]*)
8680 # On AIX/PPC, the GNU linker is very broken
8681 if test "$host_cpu" != ia64; then
8682 ld_shlibs=no
8683 cat <<_LT_EOF 1>&2
8684
8685 *** Warning: the GNU linker, at least up to release 2.19, is reported
8686 *** to be unable to reliably create shared libraries on AIX.
8687 *** Therefore, libtool is disabling shared libraries support. If you
8688 *** really care for shared libraries, you may want to install binutils
8689 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8690 *** You will then need to restart the configuration process.
8691
8692 _LT_EOF
8693 fi
8694 ;;
8695
8696 amigaos*)
8697 case $host_cpu in
8698 powerpc)
8699 # see comment about AmigaOS4 .so support
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds=''
8702 ;;
8703 m68k)
8704 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8705 hardcode_libdir_flag_spec='-L$libdir'
8706 hardcode_minus_L=yes
8707 ;;
8708 esac
8709 ;;
8710
8711 beos*)
8712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713 allow_undefined_flag=unsupported
8714 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8715 # support --undefined. This deserves some investigation. FIXME
8716 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 else
8718 ld_shlibs=no
8719 fi
8720 ;;
8721
8722 cygwin* | mingw* | pw32* | cegcc*)
8723 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8724 # as there is no search path for DLLs.
8725 hardcode_libdir_flag_spec='-L$libdir'
8726 export_dynamic_flag_spec='${wl}--export-all-symbols'
8727 allow_undefined_flag=unsupported
8728 always_export_symbols=no
8729 enable_shared_with_static_runtimes=yes
8730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8731 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8732
8733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8735 # If the export-symbols file already is a .def file (1st line
8736 # is EXPORTS), use it as is; otherwise, prepend...
8737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8738 cp $export_symbols $output_objdir/$soname.def;
8739 else
8740 echo EXPORTS > $output_objdir/$soname.def;
8741 cat $export_symbols >> $output_objdir/$soname.def;
8742 fi~
8743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8744 else
8745 ld_shlibs=no
8746 fi
8747 ;;
8748
8749 haiku*)
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 link_all_deplibs=yes
8752 ;;
8753
8754 interix[3-9]*)
8755 hardcode_direct=no
8756 hardcode_shlibpath_var=no
8757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8758 export_dynamic_flag_spec='${wl}-E'
8759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8760 # Instead, shared libraries are loaded at an image base (0x10000000 by
8761 # default) and relocated if they conflict, which is a slow very memory
8762 # consuming and fragmenting process. To avoid this, we pick a random,
8763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8764 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8766 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8767 ;;
8768
8769 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8770 tmp_diet=no
8771 if test "$host_os" = linux-dietlibc; then
8772 case $cc_basename in
8773 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8774 esac
8775 fi
8776 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8777 && test "$tmp_diet" = no
8778 then
8779 tmp_addflag=' $pic_flag'
8780 tmp_sharedflag='-shared'
8781 case $cc_basename,$host_cpu in
8782 pgcc*) # Portland Group C compiler
8783 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8784 tmp_addflag=' $pic_flag'
8785 ;;
8786 pgf77* | pgf90* | pgf95* | pgfortran*)
8787 # Portland Group f77 and f90 compilers
8788 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8789 tmp_addflag=' $pic_flag -Mnomain' ;;
8790 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8791 tmp_addflag=' -i_dynamic' ;;
8792 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8793 tmp_addflag=' -i_dynamic -nofor_main' ;;
8794 ifc* | ifort*) # Intel Fortran compiler
8795 tmp_addflag=' -nofor_main' ;;
8796 lf95*) # Lahey Fortran 8.1
8797 whole_archive_flag_spec=
8798 tmp_sharedflag='--shared' ;;
8799 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8800 tmp_sharedflag='-qmkshrobj'
8801 tmp_addflag= ;;
8802 nvcc*) # Cuda Compiler Driver 2.2
8803 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8804 compiler_needs_object=yes
8805 ;;
8806 esac
8807 case `$CC -V 2>&1 | sed 5q` in
8808 *Sun\ C*) # Sun C 5.9
8809 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8810 compiler_needs_object=yes
8811 tmp_sharedflag='-G' ;;
8812 *Sun\ F*) # Sun Fortran 8.3
8813 tmp_sharedflag='-G' ;;
8814 esac
8815 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816
8817 if test "x$supports_anon_versioning" = xyes; then
8818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8820 echo "local: *; };" >> $output_objdir/$libname.ver~
8821 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8822 fi
8823
8824 case $cc_basename in
8825 xlf* | bgf* | bgxlf* | mpixlf*)
8826 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8827 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8829 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8830 if test "x$supports_anon_versioning" = xyes; then
8831 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8832 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8833 echo "local: *; };" >> $output_objdir/$libname.ver~
8834 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8835 fi
8836 ;;
8837 esac
8838 else
8839 ld_shlibs=no
8840 fi
8841 ;;
8842
8843 netbsd* | netbsdelf*-gnu)
8844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8845 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8846 wlarc=
8847 else
8848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8850 fi
8851 ;;
8852
8853 solaris*)
8854 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8855 ld_shlibs=no
8856 cat <<_LT_EOF 1>&2
8857
8858 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8859 *** create shared libraries on Solaris systems. Therefore, libtool
8860 *** is disabling shared libraries support. We urge you to upgrade GNU
8861 *** binutils to release 2.9.1 or newer. Another option is to modify
8862 *** your PATH or compiler configuration so that the native linker is
8863 *** used, and then restart.
8864
8865 _LT_EOF
8866 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8869 else
8870 ld_shlibs=no
8871 fi
8872 ;;
8873
8874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8875 case `$LD -v 2>&1` in
8876 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8877 ld_shlibs=no
8878 cat <<_LT_EOF 1>&2
8879
8880 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8881 *** reliably create shared libraries on SCO systems. Therefore, libtool
8882 *** is disabling shared libraries support. We urge you to upgrade GNU
8883 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8884 *** your PATH or compiler configuration so that the native linker is
8885 *** used, and then restart.
8886
8887 _LT_EOF
8888 ;;
8889 *)
8890 # For security reasons, it is highly recommended that you always
8891 # use absolute paths for naming shared libraries, and exclude the
8892 # DT_RUNPATH tag from executables and libraries. But doing so
8893 # requires that you compile everything twice, which is a pain.
8894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898 else
8899 ld_shlibs=no
8900 fi
8901 ;;
8902 esac
8903 ;;
8904
8905 sunos4*)
8906 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8907 wlarc=
8908 hardcode_direct=yes
8909 hardcode_shlibpath_var=no
8910 ;;
8911
8912 *)
8913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916 else
8917 ld_shlibs=no
8918 fi
8919 ;;
8920 esac
8921
8922 if test "$ld_shlibs" = no; then
8923 runpath_var=
8924 hardcode_libdir_flag_spec=
8925 export_dynamic_flag_spec=
8926 whole_archive_flag_spec=
8927 fi
8928 else
8929 # PORTME fill in a description of your system's linker (not GNU ld)
8930 case $host_os in
8931 aix3*)
8932 allow_undefined_flag=unsupported
8933 always_export_symbols=yes
8934 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8935 # Note: this linker hardcodes the directories in LIBPATH if there
8936 # are no directories specified by -L.
8937 hardcode_minus_L=yes
8938 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8939 # Neither direct hardcoding nor static linking is supported with a
8940 # broken collect2.
8941 hardcode_direct=unsupported
8942 fi
8943 ;;
8944
8945 aix[4-9]*)
8946 if test "$host_cpu" = ia64; then
8947 # On IA64, the linker does run time linking by default, so we don't
8948 # have to do anything special.
8949 aix_use_runtimelinking=no
8950 exp_sym_flag='-Bexport'
8951 no_entry_flag=""
8952 else
8953 # If we're using GNU nm, then we don't want the "-C" option.
8954 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8955 # Also, AIX nm treats weak defined symbols like other global
8956 # defined symbols, whereas GNU nm marks them as "W".
8957 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8958 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8959 else
8960 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8961 fi
8962 aix_use_runtimelinking=no
8963
8964 # Test if we are trying to use run time linking or normal
8965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8966 # need to do runtime linking.
8967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8968 for ld_flag in $LDFLAGS; do
8969 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8970 aix_use_runtimelinking=yes
8971 break
8972 fi
8973 done
8974 ;;
8975 esac
8976
8977 exp_sym_flag='-bexport'
8978 no_entry_flag='-bnoentry'
8979 fi
8980
8981 # When large executables or shared objects are built, AIX ld can
8982 # have problems creating the table of contents. If linking a library
8983 # or program results in "error TOC overflow" add -mminimal-toc to
8984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8986
8987 archive_cmds=''
8988 hardcode_direct=yes
8989 hardcode_direct_absolute=yes
8990 hardcode_libdir_separator=':'
8991 link_all_deplibs=yes
8992 file_list_spec='${wl}-f,'
8993
8994 if test "$GCC" = yes; then
8995 case $host_os in aix4.[012]|aix4.[012].*)
8996 # We only want to do this on AIX 4.2 and lower, the check
8997 # below for broken collect2 doesn't work under 4.3+
8998 collect2name=`${CC} -print-prog-name=collect2`
8999 if test -f "$collect2name" &&
9000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9001 then
9002 # We have reworked collect2
9003 :
9004 else
9005 # We have old collect2
9006 hardcode_direct=unsupported
9007 # It fails to find uninstalled libraries when the uninstalled
9008 # path is not listed in the libpath. Setting hardcode_minus_L
9009 # to unsupported forces relinking
9010 hardcode_minus_L=yes
9011 hardcode_libdir_flag_spec='-L$libdir'
9012 hardcode_libdir_separator=
9013 fi
9014 ;;
9015 esac
9016 shared_flag='-shared'
9017 if test "$aix_use_runtimelinking" = yes; then
9018 shared_flag="$shared_flag "'${wl}-G'
9019 fi
9020 link_all_deplibs=no
9021 else
9022 # not using gcc
9023 if test "$host_cpu" = ia64; then
9024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9025 # chokes on -Wl,-G. The following line is correct:
9026 shared_flag='-G'
9027 else
9028 if test "$aix_use_runtimelinking" = yes; then
9029 shared_flag='${wl}-G'
9030 else
9031 shared_flag='${wl}-bM:SRE'
9032 fi
9033 fi
9034 fi
9035
9036 export_dynamic_flag_spec='${wl}-bexpall'
9037 # It seems that -bexpall does not export symbols beginning with
9038 # underscore (_), so it is better to generate a list of symbols to export.
9039 always_export_symbols=yes
9040 if test "$aix_use_runtimelinking" = yes; then
9041 # Warning - without using the other runtime loading flags (-brtl),
9042 # -berok will link without error, but may produce a broken library.
9043 allow_undefined_flag='-berok'
9044 # Determine the default libpath from the value encoded in an
9045 # empty executable.
9046 if test "${lt_cv_aix_libpath+set}" = set; then
9047 aix_libpath=$lt_cv_aix_libpath
9048 else
9049 if ${lt_cv_aix_libpath_+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054
9055 int
9056 main ()
9057 {
9058
9059 ;
9060 return 0;
9061 }
9062 _ACEOF
9063 if ac_fn_c_try_link "$LINENO"; then :
9064
9065 lt_aix_libpath_sed='
9066 /Import File Strings/,/^$/ {
9067 /^0/ {
9068 s/^0 *\([^ ]*\) *$/\1/
9069 p
9070 }
9071 }'
9072 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9073 # Check for a 64-bit object if we didn't find anything.
9074 if test -z "$lt_cv_aix_libpath_"; then
9075 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9076 fi
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080 if test -z "$lt_cv_aix_libpath_"; then
9081 lt_cv_aix_libpath_="/usr/lib:/lib"
9082 fi
9083
9084 fi
9085
9086 aix_libpath=$lt_cv_aix_libpath_
9087 fi
9088
9089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9090 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9091 else
9092 if test "$host_cpu" = ia64; then
9093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9094 allow_undefined_flag="-z nodefs"
9095 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9096 else
9097 # Determine the default libpath from the value encoded in an
9098 # empty executable.
9099 if test "${lt_cv_aix_libpath+set}" = set; then
9100 aix_libpath=$lt_cv_aix_libpath
9101 else
9102 if ${lt_cv_aix_libpath_+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107
9108 int
9109 main ()
9110 {
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117
9118 lt_aix_libpath_sed='
9119 /Import File Strings/,/^$/ {
9120 /^0/ {
9121 s/^0 *\([^ ]*\) *$/\1/
9122 p
9123 }
9124 }'
9125 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9126 # Check for a 64-bit object if we didn't find anything.
9127 if test -z "$lt_cv_aix_libpath_"; then
9128 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9129 fi
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 if test -z "$lt_cv_aix_libpath_"; then
9134 lt_cv_aix_libpath_="/usr/lib:/lib"
9135 fi
9136
9137 fi
9138
9139 aix_libpath=$lt_cv_aix_libpath_
9140 fi
9141
9142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9143 # Warning - without using the other run time loading flags,
9144 # -berok will link without error, but may produce a broken library.
9145 no_undefined_flag=' ${wl}-bernotok'
9146 allow_undefined_flag=' ${wl}-berok'
9147 if test "$with_gnu_ld" = yes; then
9148 # We only use this code for GNU lds that support --whole-archive.
9149 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9150 else
9151 # Exported symbols can be pulled into shared objects from archives
9152 whole_archive_flag_spec='$convenience'
9153 fi
9154 archive_cmds_need_lc=yes
9155 # This is similar to how AIX traditionally builds its shared libraries.
9156 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9157 fi
9158 fi
9159 ;;
9160
9161 amigaos*)
9162 case $host_cpu in
9163 powerpc)
9164 # see comment about AmigaOS4 .so support
9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 archive_expsym_cmds=''
9167 ;;
9168 m68k)
9169 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_minus_L=yes
9172 ;;
9173 esac
9174 ;;
9175
9176 bsdi[45]*)
9177 export_dynamic_flag_spec=-rdynamic
9178 ;;
9179
9180 cygwin* | mingw* | pw32* | cegcc*)
9181 # When not using gcc, we currently assume that we are using
9182 # Microsoft Visual C++.
9183 # hardcode_libdir_flag_spec is actually meaningless, as there is
9184 # no search path for DLLs.
9185 case $cc_basename in
9186 cl*)
9187 # Native MSVC
9188 hardcode_libdir_flag_spec=' '
9189 allow_undefined_flag=unsupported
9190 always_export_symbols=yes
9191 file_list_spec='@'
9192 # Tell ltmain to make .lib files, not .a files.
9193 libext=lib
9194 # Tell ltmain to make .dll files, not .so files.
9195 shrext_cmds=".dll"
9196 # FIXME: Setting linknames here is a bad hack.
9197 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9198 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9199 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9200 else
9201 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9202 fi~
9203 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9204 linknames='
9205 # The linker will not automatically build a static lib if we build a DLL.
9206 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9207 enable_shared_with_static_runtimes=yes
9208 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9210 # Don't use ranlib
9211 old_postinstall_cmds='chmod 644 $oldlib'
9212 postlink_cmds='lt_outputfile="@OUTPUT@"~
9213 lt_tool_outputfile="@TOOL_OUTPUT@"~
9214 case $lt_outputfile in
9215 *.exe|*.EXE) ;;
9216 *)
9217 lt_outputfile="$lt_outputfile.exe"
9218 lt_tool_outputfile="$lt_tool_outputfile.exe"
9219 ;;
9220 esac~
9221 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9222 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9223 $RM "$lt_outputfile.manifest";
9224 fi'
9225 ;;
9226 *)
9227 # Assume MSVC wrapper
9228 hardcode_libdir_flag_spec=' '
9229 allow_undefined_flag=unsupported
9230 # Tell ltmain to make .lib files, not .a files.
9231 libext=lib
9232 # Tell ltmain to make .dll files, not .so files.
9233 shrext_cmds=".dll"
9234 # FIXME: Setting linknames here is a bad hack.
9235 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9236 # The linker will automatically build a .lib file if we build a DLL.
9237 old_archive_from_new_cmds='true'
9238 # FIXME: Should let the user specify the lib program.
9239 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9240 enable_shared_with_static_runtimes=yes
9241 ;;
9242 esac
9243 ;;
9244
9245 darwin* | rhapsody*)
9246
9247
9248 archive_cmds_need_lc=no
9249 hardcode_direct=no
9250 hardcode_automatic=yes
9251 hardcode_shlibpath_var=unsupported
9252 if test "$lt_cv_ld_force_load" = "yes"; then
9253 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9254
9255 else
9256 whole_archive_flag_spec=''
9257 fi
9258 link_all_deplibs=yes
9259 allow_undefined_flag="$_lt_dar_allow_undefined"
9260 case $cc_basename in
9261 ifort*) _lt_dar_can_shared=yes ;;
9262 *) _lt_dar_can_shared=$GCC ;;
9263 esac
9264 if test "$_lt_dar_can_shared" = "yes"; then
9265 output_verbose_link_cmd=func_echo_all
9266 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9267 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9268 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9269 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9270
9271 else
9272 ld_shlibs=no
9273 fi
9274
9275 ;;
9276
9277 dgux*)
9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_shlibpath_var=no
9281 ;;
9282
9283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9284 # support. Future versions do this automatically, but an explicit c++rt0.o
9285 # does not break anything, and helps significantly (at the cost of a little
9286 # extra space).
9287 freebsd2.2*)
9288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9289 hardcode_libdir_flag_spec='-R$libdir'
9290 hardcode_direct=yes
9291 hardcode_shlibpath_var=no
9292 ;;
9293
9294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9295 freebsd2.*)
9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_direct=yes
9298 hardcode_minus_L=yes
9299 hardcode_shlibpath_var=no
9300 ;;
9301
9302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9303 freebsd* | dragonfly*)
9304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9305 hardcode_libdir_flag_spec='-R$libdir'
9306 hardcode_direct=yes
9307 hardcode_shlibpath_var=no
9308 ;;
9309
9310 hpux9*)
9311 if test "$GCC" = yes; then
9312 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9313 else
9314 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9315 fi
9316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9317 hardcode_libdir_separator=:
9318 hardcode_direct=yes
9319
9320 # hardcode_minus_L: Not really in the search PATH,
9321 # but as the default location of the library.
9322 hardcode_minus_L=yes
9323 export_dynamic_flag_spec='${wl}-E'
9324 ;;
9325
9326 hpux10*)
9327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9329 else
9330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9331 fi
9332 if test "$with_gnu_ld" = no; then
9333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9334 hardcode_libdir_separator=:
9335 hardcode_direct=yes
9336 hardcode_direct_absolute=yes
9337 export_dynamic_flag_spec='${wl}-E'
9338 # hardcode_minus_L: Not really in the search PATH,
9339 # but as the default location of the library.
9340 hardcode_minus_L=yes
9341 fi
9342 ;;
9343
9344 hpux11*)
9345 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9346 case $host_cpu in
9347 hppa*64*)
9348 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9349 ;;
9350 ia64*)
9351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9352 ;;
9353 *)
9354 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9355 ;;
9356 esac
9357 else
9358 case $host_cpu in
9359 hppa*64*)
9360 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9361 ;;
9362 ia64*)
9363 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9364 ;;
9365 *)
9366
9367 # Older versions of the 11.00 compiler do not understand -b yet
9368 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9370 $as_echo_n "checking if $CC understands -b... " >&6; }
9371 if ${lt_cv_prog_compiler__b+:} false; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 lt_cv_prog_compiler__b=no
9375 save_LDFLAGS="$LDFLAGS"
9376 LDFLAGS="$LDFLAGS -b"
9377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9379 # The linker can only warn and ignore the option if not recognized
9380 # So say no if there are warnings
9381 if test -s conftest.err; then
9382 # Append any errors to the config.log.
9383 cat conftest.err 1>&5
9384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386 if diff conftest.exp conftest.er2 >/dev/null; then
9387 lt_cv_prog_compiler__b=yes
9388 fi
9389 else
9390 lt_cv_prog_compiler__b=yes
9391 fi
9392 fi
9393 $RM -r conftest*
9394 LDFLAGS="$save_LDFLAGS"
9395
9396 fi
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9398 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9399
9400 if test x"$lt_cv_prog_compiler__b" = xyes; then
9401 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9402 else
9403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9404 fi
9405
9406 ;;
9407 esac
9408 fi
9409 if test "$with_gnu_ld" = no; then
9410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9411 hardcode_libdir_separator=:
9412
9413 case $host_cpu in
9414 hppa*64*|ia64*)
9415 hardcode_direct=no
9416 hardcode_shlibpath_var=no
9417 ;;
9418 *)
9419 hardcode_direct=yes
9420 hardcode_direct_absolute=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422
9423 # hardcode_minus_L: Not really in the search PATH,
9424 # but as the default location of the library.
9425 hardcode_minus_L=yes
9426 ;;
9427 esac
9428 fi
9429 ;;
9430
9431 irix5* | irix6* | nonstopux*)
9432 if test "$GCC" = yes; then
9433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9434 # Try to use the -exported_symbol ld option, if it does not
9435 # work, assume that -exports_file does not work either and
9436 # implicitly export all symbols.
9437 # This should be the same for all languages, so no per-tag cache variable.
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9439 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9440 if ${lt_cv_irix_exported_symbol+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 save_LDFLAGS="$LDFLAGS"
9444 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 int foo (void) { return 0; }
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450 lt_cv_irix_exported_symbol=yes
9451 else
9452 lt_cv_irix_exported_symbol=no
9453 fi
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LDFLAGS="$save_LDFLAGS"
9457 fi
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9459 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9460 if test "$lt_cv_irix_exported_symbol" = yes; then
9461 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9462 fi
9463 else
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9466 fi
9467 archive_cmds_need_lc='no'
9468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9469 hardcode_libdir_separator=:
9470 inherit_rpath=yes
9471 link_all_deplibs=yes
9472 ;;
9473
9474 netbsd* | netbsdelf*-gnu)
9475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9477 else
9478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9479 fi
9480 hardcode_libdir_flag_spec='-R$libdir'
9481 hardcode_direct=yes
9482 hardcode_shlibpath_var=no
9483 ;;
9484
9485 newsos6)
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_direct=yes
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489 hardcode_libdir_separator=:
9490 hardcode_shlibpath_var=no
9491 ;;
9492
9493 *nto* | *qnx*)
9494 ;;
9495
9496 openbsd*)
9497 if test -f /usr/libexec/ld.so; then
9498 hardcode_direct=yes
9499 hardcode_shlibpath_var=no
9500 hardcode_direct_absolute=yes
9501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9503 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9505 export_dynamic_flag_spec='${wl}-E'
9506 else
9507 case $host_os in
9508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 ;;
9512 *)
9513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515 ;;
9516 esac
9517 fi
9518 else
9519 ld_shlibs=no
9520 fi
9521 ;;
9522
9523 os2*)
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_minus_L=yes
9526 allow_undefined_flag=unsupported
9527 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9528 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9529 ;;
9530
9531 osf3*)
9532 if test "$GCC" = yes; then
9533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9534 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9535 else
9536 allow_undefined_flag=' -expect_unresolved \*'
9537 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9538 fi
9539 archive_cmds_need_lc='no'
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 hardcode_libdir_separator=:
9542 ;;
9543
9544 osf4* | osf5*) # as osf3* with the addition of -msym flag
9545 if test "$GCC" = yes; then
9546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9547 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9549 else
9550 allow_undefined_flag=' -expect_unresolved \*'
9551 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9552 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9553 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9554
9555 # Both c and cxx compiler support -rpath directly
9556 hardcode_libdir_flag_spec='-rpath $libdir'
9557 fi
9558 archive_cmds_need_lc='no'
9559 hardcode_libdir_separator=:
9560 ;;
9561
9562 solaris*)
9563 no_undefined_flag=' -z defs'
9564 if test "$GCC" = yes; then
9565 wlarc='${wl}'
9566 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9568 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9569 else
9570 case `$CC -V 2>&1` in
9571 *"Compilers 5.0"*)
9572 wlarc=''
9573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9576 ;;
9577 *)
9578 wlarc='${wl}'
9579 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9582 ;;
9583 esac
9584 fi
9585 hardcode_libdir_flag_spec='-R$libdir'
9586 hardcode_shlibpath_var=no
9587 case $host_os in
9588 solaris2.[0-5] | solaris2.[0-5].*) ;;
9589 *)
9590 # The compiler driver will combine and reorder linker options,
9591 # but understands `-z linker_flag'. GCC discards it without `$wl',
9592 # but is careful enough not to reorder.
9593 # Supported since Solaris 2.6 (maybe 2.5.1?)
9594 if test "$GCC" = yes; then
9595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9596 else
9597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9598 fi
9599 ;;
9600 esac
9601 link_all_deplibs=yes
9602 ;;
9603
9604 sunos4*)
9605 if test "x$host_vendor" = xsequent; then
9606 # Use $CC to link under sequent, because it throws in some extra .o
9607 # files that make .init and .fini sections work.
9608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9609 else
9610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9611 fi
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_direct=yes
9614 hardcode_minus_L=yes
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 sysv4)
9619 case $host_vendor in
9620 sni)
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_direct=yes # is this really true???
9623 ;;
9624 siemens)
9625 ## LD is ld it makes a PLAMLIB
9626 ## CC just makes a GrossModule.
9627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9628 reload_cmds='$CC -r -o $output$reload_objs'
9629 hardcode_direct=no
9630 ;;
9631 motorola)
9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9634 ;;
9635 esac
9636 runpath_var='LD_RUN_PATH'
9637 hardcode_shlibpath_var=no
9638 ;;
9639
9640 sysv4.3*)
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_shlibpath_var=no
9643 export_dynamic_flag_spec='-Bexport'
9644 ;;
9645
9646 sysv4*MP*)
9647 if test -d /usr/nec; then
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_shlibpath_var=no
9650 runpath_var=LD_RUN_PATH
9651 hardcode_runpath_var=yes
9652 ld_shlibs=yes
9653 fi
9654 ;;
9655
9656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9657 no_undefined_flag='${wl}-z,text'
9658 archive_cmds_need_lc=no
9659 hardcode_shlibpath_var=no
9660 runpath_var='LD_RUN_PATH'
9661
9662 if test "$GCC" = yes; then
9663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 fi
9669 ;;
9670
9671 sysv5* | sco3.2v5* | sco5v6*)
9672 # Note: We can NOT use -z defs as we might desire, because we do not
9673 # link with -lc, and that would cause any symbols used from libc to
9674 # always be unresolved, which means just about no library would
9675 # ever link correctly. If we're not using GNU ld we use -z text
9676 # though, which does catch some bad symbols but isn't as heavy-handed
9677 # as -z defs.
9678 no_undefined_flag='${wl}-z,text'
9679 allow_undefined_flag='${wl}-z,nodefs'
9680 archive_cmds_need_lc=no
9681 hardcode_shlibpath_var=no
9682 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9683 hardcode_libdir_separator=':'
9684 link_all_deplibs=yes
9685 export_dynamic_flag_spec='${wl}-Bexport'
9686 runpath_var='LD_RUN_PATH'
9687
9688 if test "$GCC" = yes; then
9689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 else
9692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 fi
9695 ;;
9696
9697 uts4*)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 *)
9704 ld_shlibs=no
9705 ;;
9706 esac
9707
9708 if test x$host_vendor = xsni; then
9709 case $host in
9710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9711 export_dynamic_flag_spec='${wl}-Blargedynsym'
9712 ;;
9713 esac
9714 fi
9715 fi
9716
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9718 $as_echo "$ld_shlibs" >&6; }
9719 test "$ld_shlibs" = no && can_build_shared=no
9720
9721 with_gnu_ld=$with_gnu_ld
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 #
9738 # Do we need to explicitly link libc?
9739 #
9740 case "x$archive_cmds_need_lc" in
9741 x|xyes)
9742 # Assume -lc should be added
9743 archive_cmds_need_lc=yes
9744
9745 if test "$enable_shared" = yes && test "$GCC" = yes; then
9746 case $archive_cmds in
9747 *'~'*)
9748 # FIXME: we may have to deal with multi-command sequences.
9749 ;;
9750 '$CC '*)
9751 # Test whether the compiler implicitly links with -lc since on some
9752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9753 # to ld, don't add -lc before -lgcc.
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9756 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 $RM conftest*
9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9761
9762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9763 (eval $ac_compile) 2>&5
9764 ac_status=$?
9765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9766 test $ac_status = 0; } 2>conftest.err; then
9767 soname=conftest
9768 lib=conftest
9769 libobjs=conftest.$ac_objext
9770 deplibs=
9771 wl=$lt_prog_compiler_wl
9772 pic_flag=$lt_prog_compiler_pic
9773 compiler_flags=-v
9774 linker_flags=-v
9775 verstring=
9776 output_objdir=.
9777 libname=conftest
9778 lt_save_allow_undefined_flag=$allow_undefined_flag
9779 allow_undefined_flag=
9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9782 ac_status=$?
9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784 test $ac_status = 0; }
9785 then
9786 lt_cv_archive_cmds_need_lc=no
9787 else
9788 lt_cv_archive_cmds_need_lc=yes
9789 fi
9790 allow_undefined_flag=$lt_save_allow_undefined_flag
9791 else
9792 cat conftest.err 1>&5
9793 fi
9794 $RM conftest*
9795
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9798 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9800 ;;
9801 esac
9802 fi
9803 ;;
9804 esac
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9959
9960 if test "$GCC" = yes; then
9961 case $host_os in
9962 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9963 *) lt_awk_arg="/^libraries:/" ;;
9964 esac
9965 case $host_os in
9966 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9967 *) lt_sed_strip_eq="s,=/,/,g" ;;
9968 esac
9969 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9970 case $lt_search_path_spec in
9971 *\;*)
9972 # if the path contains ";" then we assume it to be the separator
9973 # otherwise default to the standard path separator (i.e. ":") - it is
9974 # assumed that no part of a normal pathname contains ";" but that should
9975 # okay in the real world where ";" in dirpaths is itself problematic.
9976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9977 ;;
9978 *)
9979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9980 ;;
9981 esac
9982 # Ok, now we have the path, separated by spaces, we can step through it
9983 # and add multilib dir if necessary.
9984 lt_tmp_lt_search_path_spec=
9985 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9986 for lt_sys_path in $lt_search_path_spec; do
9987 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9989 else
9990 test -d "$lt_sys_path" && \
9991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9992 fi
9993 done
9994 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9995 BEGIN {RS=" "; FS="/|\n";} {
9996 lt_foo="";
9997 lt_count=0;
9998 for (lt_i = NF; lt_i > 0; lt_i--) {
9999 if ($lt_i != "" && $lt_i != ".") {
10000 if ($lt_i == "..") {
10001 lt_count++;
10002 } else {
10003 if (lt_count == 0) {
10004 lt_foo="/" $lt_i lt_foo;
10005 } else {
10006 lt_count--;
10007 }
10008 }
10009 }
10010 }
10011 if (lt_foo != "") { lt_freq[lt_foo]++; }
10012 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10013 }'`
10014 # AWK program above erroneously prepends '/' to C:/dos/paths
10015 # for these hosts.
10016 case $host_os in
10017 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10018 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10019 esac
10020 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10021 else
10022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10023 fi
10024 library_names_spec=
10025 libname_spec='lib$name'
10026 soname_spec=
10027 shrext_cmds=".so"
10028 postinstall_cmds=
10029 postuninstall_cmds=
10030 finish_cmds=
10031 finish_eval=
10032 shlibpath_var=
10033 shlibpath_overrides_runpath=unknown
10034 version_type=none
10035 dynamic_linker="$host_os ld.so"
10036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10037 need_lib_prefix=unknown
10038 hardcode_into_libs=no
10039
10040 # when you set need_version to no, make sure it does not cause -set_version
10041 # flags to be left without arguments
10042 need_version=unknown
10043
10044 case $host_os in
10045 aix3*)
10046 version_type=linux # correct to gnu/linux during the next big refactor
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10048 shlibpath_var=LIBPATH
10049
10050 # AIX 3 has no versioning support, so we append a major version to the name.
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 ;;
10053
10054 aix[4-9]*)
10055 version_type=linux # correct to gnu/linux during the next big refactor
10056 need_lib_prefix=no
10057 need_version=no
10058 hardcode_into_libs=yes
10059 if test "$host_cpu" = ia64; then
10060 # AIX 5 supports IA64
10061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 else
10064 # With GCC up to 2.95.x, collect2 would create an import file
10065 # for dependence libraries. The import file would start with
10066 # the line `#! .'. This would cause the generated library to
10067 # depend on `.', always an invalid library. This was fixed in
10068 # development snapshots of GCC prior to 3.0.
10069 case $host_os in
10070 aix4 | aix4.[01] | aix4.[01].*)
10071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10072 echo ' yes '
10073 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10074 :
10075 else
10076 can_build_shared=no
10077 fi
10078 ;;
10079 esac
10080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10081 # soname into executable. Probably we can add versioning support to
10082 # collect2, so additional links can be useful in future.
10083 if test "$aix_use_runtimelinking" = yes; then
10084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10085 # instead of lib<name>.a to let people know that these are not
10086 # typical AIX shared libraries.
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088 else
10089 # We preserve .a as extension for shared libraries through AIX4.2
10090 # and later when we are not doing run time linking.
10091 library_names_spec='${libname}${release}.a $libname.a'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 fi
10094 shlibpath_var=LIBPATH
10095 fi
10096 ;;
10097
10098 amigaos*)
10099 case $host_cpu in
10100 powerpc)
10101 # Since July 2007 AmigaOS4 officially supports .so libraries.
10102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 ;;
10105 m68k)
10106 library_names_spec='$libname.ixlibrary $libname.a'
10107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10108 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10109 ;;
10110 esac
10111 ;;
10112
10113 beos*)
10114 library_names_spec='${libname}${shared_ext}'
10115 dynamic_linker="$host_os ld.so"
10116 shlibpath_var=LIBRARY_PATH
10117 ;;
10118
10119 bsdi[45]*)
10120 version_type=linux # correct to gnu/linux during the next big refactor
10121 need_version=no
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10128 # the default ld.so.conf also contains /usr/contrib/lib and
10129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10130 # libtool to hard-code these into programs
10131 ;;
10132
10133 cygwin* | mingw* | pw32* | cegcc*)
10134 version_type=windows
10135 shrext_cmds=".dll"
10136 need_version=no
10137 need_lib_prefix=no
10138
10139 case $GCC,$cc_basename in
10140 yes,*)
10141 # gcc
10142 library_names_spec='$libname.dll.a'
10143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10144 postinstall_cmds='base_file=`basename \${file}`~
10145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10146 dldir=$destdir/`dirname \$dlpath`~
10147 test -d \$dldir || mkdir -p \$dldir~
10148 $install_prog $dir/$dlname \$dldir/$dlname~
10149 chmod a+x \$dldir/$dlname~
10150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10152 fi'
10153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10154 dlpath=$dir/\$dldll~
10155 $RM \$dlpath'
10156 shlibpath_overrides_runpath=yes
10157
10158 case $host_os in
10159 cygwin*)
10160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10162
10163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10164 ;;
10165 mingw* | cegcc*)
10166 # MinGW DLLs use traditional 'lib' prefix
10167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10168 ;;
10169 pw32*)
10170 # pw32 DLLs use 'pw' prefix rather than 'lib'
10171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172 ;;
10173 esac
10174 dynamic_linker='Win32 ld.exe'
10175 ;;
10176
10177 *,cl*)
10178 # Native MSVC
10179 libname_spec='$name'
10180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10181 library_names_spec='${libname}.dll.lib'
10182
10183 case $build_os in
10184 mingw*)
10185 sys_lib_search_path_spec=
10186 lt_save_ifs=$IFS
10187 IFS=';'
10188 for lt_path in $LIB
10189 do
10190 IFS=$lt_save_ifs
10191 # Let DOS variable expansion print the short 8.3 style file name.
10192 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10193 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10194 done
10195 IFS=$lt_save_ifs
10196 # Convert to MSYS style.
10197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10198 ;;
10199 cygwin*)
10200 # Convert to unix form, then to dos form, then back to unix form
10201 # but this time dos style (no spaces!) so that the unix form looks
10202 # like /cygdrive/c/PROGRA~1:/cygdr...
10203 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10204 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10205 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10206 ;;
10207 *)
10208 sys_lib_search_path_spec="$LIB"
10209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10210 # It is most probably a Windows format PATH.
10211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10212 else
10213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10214 fi
10215 # FIXME: find the short name or the path components, as spaces are
10216 # common. (e.g. "Program Files" -> "PROGRA~1")
10217 ;;
10218 esac
10219
10220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10221 postinstall_cmds='base_file=`basename \${file}`~
10222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10223 dldir=$destdir/`dirname \$dlpath`~
10224 test -d \$dldir || mkdir -p \$dldir~
10225 $install_prog $dir/$dlname \$dldir/$dlname'
10226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10227 dlpath=$dir/\$dldll~
10228 $RM \$dlpath'
10229 shlibpath_overrides_runpath=yes
10230 dynamic_linker='Win32 link.exe'
10231 ;;
10232
10233 *)
10234 # Assume MSVC wrapper
10235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10236 dynamic_linker='Win32 ld.exe'
10237 ;;
10238 esac
10239 # FIXME: first we should search . and the directory the executable is in
10240 shlibpath_var=PATH
10241 ;;
10242
10243 darwin* | rhapsody*)
10244 dynamic_linker="$host_os dyld"
10245 version_type=darwin
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10249 soname_spec='${libname}${release}${major}$shared_ext'
10250 shlibpath_overrides_runpath=yes
10251 shlibpath_var=DYLD_LIBRARY_PATH
10252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10253
10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10256 ;;
10257
10258 dgux*)
10259 version_type=linux # correct to gnu/linux during the next big refactor
10260 need_lib_prefix=no
10261 need_version=no
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 ;;
10266
10267 freebsd* | dragonfly*)
10268 # DragonFly does not have aout. When/if they implement a new
10269 # versioning mechanism, adjust this.
10270 if test -x /usr/bin/objformat; then
10271 objformat=`/usr/bin/objformat`
10272 else
10273 case $host_os in
10274 freebsd[23].*) objformat=aout ;;
10275 *) objformat=elf ;;
10276 esac
10277 fi
10278 version_type=freebsd-$objformat
10279 case $version_type in
10280 freebsd-elf*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10282 need_version=no
10283 need_lib_prefix=no
10284 ;;
10285 freebsd-*)
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10287 need_version=yes
10288 ;;
10289 esac
10290 shlibpath_var=LD_LIBRARY_PATH
10291 case $host_os in
10292 freebsd2.*)
10293 shlibpath_overrides_runpath=yes
10294 ;;
10295 freebsd3.[01]* | freebsdelf3.[01]*)
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10298 ;;
10299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 ;;
10304 *) # from 4.6 on, and DragonFly
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 ;;
10308 esac
10309 ;;
10310
10311 haiku*)
10312 version_type=linux # correct to gnu/linux during the next big refactor
10313 need_lib_prefix=no
10314 need_version=no
10315 dynamic_linker="$host_os runtime_loader"
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10321 hardcode_into_libs=yes
10322 ;;
10323
10324 hpux9* | hpux10* | hpux11*)
10325 # Give a soname corresponding to the major version so that dld.sl refuses to
10326 # link against other versions.
10327 version_type=sunos
10328 need_lib_prefix=no
10329 need_version=no
10330 case $host_cpu in
10331 ia64*)
10332 shrext_cmds='.so'
10333 hardcode_into_libs=yes
10334 dynamic_linker="$host_os dld.so"
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 if test "X$HPUX_IA64_MODE" = X32; then
10340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10341 else
10342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10343 fi
10344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10345 ;;
10346 hppa*64*)
10347 shrext_cmds='.sl'
10348 hardcode_into_libs=yes
10349 dynamic_linker="$host_os dld.sl"
10350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10356 ;;
10357 *)
10358 shrext_cmds='.sl'
10359 dynamic_linker="$host_os dld.sl"
10360 shlibpath_var=SHLIB_PATH
10361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 ;;
10365 esac
10366 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10367 postinstall_cmds='chmod 555 $lib'
10368 # or fails outright, so override atomically:
10369 install_override_mode=555
10370 ;;
10371
10372 interix[3-9]*)
10373 version_type=linux # correct to gnu/linux during the next big refactor
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=no
10381 hardcode_into_libs=yes
10382 ;;
10383
10384 irix5* | irix6* | nonstopux*)
10385 case $host_os in
10386 nonstopux*) version_type=nonstopux ;;
10387 *)
10388 if test "$lt_cv_prog_gnu_ld" = yes; then
10389 version_type=linux # correct to gnu/linux during the next big refactor
10390 else
10391 version_type=irix
10392 fi ;;
10393 esac
10394 need_lib_prefix=no
10395 need_version=no
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10398 case $host_os in
10399 irix5* | nonstopux*)
10400 libsuff= shlibsuff=
10401 ;;
10402 *)
10403 case $LD in # libtool.m4 will add one of these switches to LD
10404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10405 libsuff= shlibsuff= libmagic=32-bit;;
10406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10407 libsuff=32 shlibsuff=N32 libmagic=N32;;
10408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10410 *) libsuff= shlibsuff= libmagic=never-match;;
10411 esac
10412 ;;
10413 esac
10414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10415 shlibpath_overrides_runpath=no
10416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10418 hardcode_into_libs=yes
10419 ;;
10420
10421 # No shared lib support for Linux oldld, aout, or coff.
10422 linux*oldld* | linux*aout* | linux*coff*)
10423 dynamic_linker=no
10424 ;;
10425
10426 # This must be glibc/ELF.
10427 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10428 version_type=linux # correct to gnu/linux during the next big refactor
10429 need_lib_prefix=no
10430 need_version=no
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 shlibpath_overrides_runpath=no
10436
10437 # Some binutils ld are patched to set DT_RUNPATH
10438 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 lt_cv_shlibpath_overrides_runpath=no
10442 save_LDFLAGS=$LDFLAGS
10443 save_libdir=$libdir
10444 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10445 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448
10449 int
10450 main ()
10451 {
10452
10453 ;
10454 return 0;
10455 }
10456 _ACEOF
10457 if ac_fn_c_try_link "$LINENO"; then :
10458 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10459 lt_cv_shlibpath_overrides_runpath=yes
10460 fi
10461 fi
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LDFLAGS=$save_LDFLAGS
10465 libdir=$save_libdir
10466
10467 fi
10468
10469 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10470
10471 # This implies no fast_install, which is unacceptable.
10472 # Some rework will be needed to allow for fast_install
10473 # before this can be enabled.
10474 hardcode_into_libs=yes
10475
10476 # Append ld.so.conf contents to the search path
10477 if test -f /etc/ld.so.conf; then
10478 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10480 fi
10481
10482 # We used to test for /lib/ld.so.1 and disable shared libraries on
10483 # powerpc, because MkLinux only supported shared libraries with the
10484 # GNU dynamic linker. Since this was broken with cross compilers,
10485 # most powerpc-linux boxes support dynamic linking these days and
10486 # people can always --disable-shared, the test was removed, and we
10487 # assume the GNU/Linux dynamic linker is in use.
10488 dynamic_linker='GNU/Linux ld.so'
10489 ;;
10490
10491 netbsdelf*-gnu)
10492 version_type=linux
10493 need_lib_prefix=no
10494 need_version=no
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=no
10499 hardcode_into_libs=yes
10500 dynamic_linker='NetBSD ld.elf_so'
10501 ;;
10502
10503 netbsd*)
10504 version_type=sunos
10505 need_lib_prefix=no
10506 need_version=no
10507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10510 dynamic_linker='NetBSD (a.out) ld.so'
10511 else
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 dynamic_linker='NetBSD ld.elf_so'
10515 fi
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=yes
10518 hardcode_into_libs=yes
10519 ;;
10520
10521 newsos6)
10522 version_type=linux # correct to gnu/linux during the next big refactor
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 ;;
10527
10528 *nto* | *qnx*)
10529 version_type=qnx
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=no
10536 hardcode_into_libs=yes
10537 dynamic_linker='ldqnx.so'
10538 ;;
10539
10540 openbsd*)
10541 version_type=sunos
10542 sys_lib_dlsearch_path_spec="/usr/lib"
10543 need_lib_prefix=no
10544 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10545 case $host_os in
10546 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10547 *) need_version=no ;;
10548 esac
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10553 case $host_os in
10554 openbsd2.[89] | openbsd2.[89].*)
10555 shlibpath_overrides_runpath=no
10556 ;;
10557 *)
10558 shlibpath_overrides_runpath=yes
10559 ;;
10560 esac
10561 else
10562 shlibpath_overrides_runpath=yes
10563 fi
10564 ;;
10565
10566 os2*)
10567 libname_spec='$name'
10568 shrext_cmds=".dll"
10569 need_lib_prefix=no
10570 library_names_spec='$libname${shared_ext} $libname.a'
10571 dynamic_linker='OS/2 ld.exe'
10572 shlibpath_var=LIBPATH
10573 ;;
10574
10575 osf3* | osf4* | osf5*)
10576 version_type=osf
10577 need_lib_prefix=no
10578 need_version=no
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10584 ;;
10585
10586 rdos*)
10587 dynamic_linker=no
10588 ;;
10589
10590 solaris*)
10591 version_type=linux # correct to gnu/linux during the next big refactor
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=yes
10598 hardcode_into_libs=yes
10599 # ldd complains unless libraries are executable
10600 postinstall_cmds='chmod +x $lib'
10601 ;;
10602
10603 sunos4*)
10604 version_type=sunos
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10606 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 if test "$with_gnu_ld" = yes; then
10610 need_lib_prefix=no
10611 fi
10612 need_version=yes
10613 ;;
10614
10615 sysv4 | sysv4.3*)
10616 version_type=linux # correct to gnu/linux during the next big refactor
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 case $host_vendor in
10621 sni)
10622 shlibpath_overrides_runpath=no
10623 need_lib_prefix=no
10624 runpath_var=LD_RUN_PATH
10625 ;;
10626 siemens)
10627 need_lib_prefix=no
10628 ;;
10629 motorola)
10630 need_lib_prefix=no
10631 need_version=no
10632 shlibpath_overrides_runpath=no
10633 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10634 ;;
10635 esac
10636 ;;
10637
10638 sysv4*MP*)
10639 if test -d /usr/nec ;then
10640 version_type=linux # correct to gnu/linux during the next big refactor
10641 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10642 soname_spec='$libname${shared_ext}.$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 fi
10645 ;;
10646
10647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10648 version_type=freebsd-elf
10649 need_lib_prefix=no
10650 need_version=no
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=yes
10655 hardcode_into_libs=yes
10656 if test "$with_gnu_ld" = yes; then
10657 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10658 else
10659 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10660 case $host_os in
10661 sco3.2v5*)
10662 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10663 ;;
10664 esac
10665 fi
10666 sys_lib_dlsearch_path_spec='/usr/lib'
10667 ;;
10668
10669 tpf*)
10670 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10671 version_type=linux # correct to gnu/linux during the next big refactor
10672 need_lib_prefix=no
10673 need_version=no
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=no
10677 hardcode_into_libs=yes
10678 ;;
10679
10680 uts4*)
10681 version_type=linux # correct to gnu/linux during the next big refactor
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 ;;
10686
10687 *)
10688 dynamic_linker=no
10689 ;;
10690 esac
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10692 $as_echo "$dynamic_linker" >&6; }
10693 test "$dynamic_linker" = no && can_build_shared=no
10694
10695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10696 if test "$GCC" = yes; then
10697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10698 fi
10699
10700 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10701 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10702 fi
10703 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10704 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10705 fi
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10800 hardcode_action=
10801 if test -n "$hardcode_libdir_flag_spec" ||
10802 test -n "$runpath_var" ||
10803 test "X$hardcode_automatic" = "Xyes" ; then
10804
10805 # We can hardcode non-existent directories.
10806 if test "$hardcode_direct" != no &&
10807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10808 # have to relink, otherwise we might link with an installed library
10809 # when we should be linking with a yet-to-be-installed one
10810 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10811 test "$hardcode_minus_L" != no; then
10812 # Linking always hardcodes the temporary library directory.
10813 hardcode_action=relink
10814 else
10815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10816 hardcode_action=immediate
10817 fi
10818 else
10819 # We cannot hardcode anything, or else we can only hardcode existing
10820 # directories.
10821 hardcode_action=unsupported
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10824 $as_echo "$hardcode_action" >&6; }
10825
10826 if test "$hardcode_action" = relink ||
10827 test "$inherit_rpath" = yes; then
10828 # Fast installation is not supported
10829 enable_fast_install=no
10830 elif test "$shlibpath_overrides_runpath" = yes ||
10831 test "$enable_shared" = no; then
10832 # Fast installation is not necessary
10833 enable_fast_install=needless
10834 fi
10835
10836
10837
10838
10839
10840
10841 if test "x$enable_dlopen" != xyes; then
10842 enable_dlopen=unknown
10843 enable_dlopen_self=unknown
10844 enable_dlopen_self_static=unknown
10845 else
10846 lt_cv_dlopen=no
10847 lt_cv_dlopen_libs=
10848
10849 case $host_os in
10850 beos*)
10851 lt_cv_dlopen="load_add_on"
10852 lt_cv_dlopen_libs=
10853 lt_cv_dlopen_self=yes
10854 ;;
10855
10856 mingw* | pw32* | cegcc*)
10857 lt_cv_dlopen="LoadLibrary"
10858 lt_cv_dlopen_libs=
10859 ;;
10860
10861 cygwin*)
10862 lt_cv_dlopen="dlopen"
10863 lt_cv_dlopen_libs=
10864 ;;
10865
10866 darwin*)
10867 # if libdl is installed we need to link against it
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10870 if ${ac_cv_lib_dl_dlopen+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-ldl $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char dlopen ();
10885 int
10886 main ()
10887 {
10888 return dlopen ();
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894 ac_cv_lib_dl_dlopen=yes
10895 else
10896 ac_cv_lib_dl_dlopen=no
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10904 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10906 else
10907
10908 lt_cv_dlopen="dyld"
10909 lt_cv_dlopen_libs=
10910 lt_cv_dlopen_self=yes
10911
10912 fi
10913
10914 ;;
10915
10916 *)
10917 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10918 if test "x$ac_cv_func_shl_load" = xyes; then :
10919 lt_cv_dlopen="shl_load"
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10922 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10923 if ${ac_cv_lib_dld_shl_load+:} false; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_check_lib_save_LIBS=$LIBS
10927 LIBS="-ldld $LIBS"
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char shl_load ();
10938 int
10939 main ()
10940 {
10941 return shl_load ();
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 ac_cv_lib_dld_shl_load=yes
10948 else
10949 ac_cv_lib_dld_shl_load=no
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10956 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10957 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10958 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10959 else
10960 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10961 if test "x$ac_cv_func_dlopen" = xyes; then :
10962 lt_cv_dlopen="dlopen"
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10966 if ${ac_cv_lib_dl_dlopen+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 ac_check_lib_save_LIBS=$LIBS
10970 LIBS="-ldl $LIBS"
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char dlopen ();
10981 int
10982 main ()
10983 {
10984 return dlopen ();
10985 ;
10986 return 0;
10987 }
10988 _ACEOF
10989 if ac_fn_c_try_link "$LINENO"; then :
10990 ac_cv_lib_dl_dlopen=yes
10991 else
10992 ac_cv_lib_dl_dlopen=no
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996 LIBS=$ac_check_lib_save_LIBS
10997 fi
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11000 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11004 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11005 if ${ac_cv_lib_svld_dlopen+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 ac_check_lib_save_LIBS=$LIBS
11009 LIBS="-lsvld $LIBS"
11010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011 /* end confdefs.h. */
11012
11013 /* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 char dlopen ();
11020 int
11021 main ()
11022 {
11023 return dlopen ();
11024 ;
11025 return 0;
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_link "$LINENO"; then :
11029 ac_cv_lib_svld_dlopen=yes
11030 else
11031 ac_cv_lib_svld_dlopen=no
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11036 fi
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11038 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11039 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11043 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11044 if ${ac_cv_lib_dld_dld_link+:} false; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 ac_check_lib_save_LIBS=$LIBS
11048 LIBS="-ldld $LIBS"
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11051
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11055 #ifdef __cplusplus
11056 extern "C"
11057 #endif
11058 char dld_link ();
11059 int
11060 main ()
11061 {
11062 return dld_link ();
11063 ;
11064 return 0;
11065 }
11066 _ACEOF
11067 if ac_fn_c_try_link "$LINENO"; then :
11068 ac_cv_lib_dld_dld_link=yes
11069 else
11070 ac_cv_lib_dld_dld_link=no
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LIBS=$ac_check_lib_save_LIBS
11075 fi
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11077 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11078 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11079 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11080 fi
11081
11082
11083 fi
11084
11085
11086 fi
11087
11088
11089 fi
11090
11091
11092 fi
11093
11094
11095 fi
11096
11097 ;;
11098 esac
11099
11100 if test "x$lt_cv_dlopen" != xno; then
11101 enable_dlopen=yes
11102 else
11103 enable_dlopen=no
11104 fi
11105
11106 case $lt_cv_dlopen in
11107 dlopen)
11108 save_CPPFLAGS="$CPPFLAGS"
11109 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11110
11111 save_LDFLAGS="$LDFLAGS"
11112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11113
11114 save_LIBS="$LIBS"
11115 LIBS="$lt_cv_dlopen_libs $LIBS"
11116
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11118 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11119 if ${lt_cv_dlopen_self+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 if test "$cross_compiling" = yes; then :
11123 lt_cv_dlopen_self=cross
11124 else
11125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11126 lt_status=$lt_dlunknown
11127 cat > conftest.$ac_ext <<_LT_EOF
11128 #line $LINENO "configure"
11129 #include "confdefs.h"
11130
11131 #if HAVE_DLFCN_H
11132 #include <dlfcn.h>
11133 #endif
11134
11135 #include <stdio.h>
11136
11137 #ifdef RTLD_GLOBAL
11138 # define LT_DLGLOBAL RTLD_GLOBAL
11139 #else
11140 # ifdef DL_GLOBAL
11141 # define LT_DLGLOBAL DL_GLOBAL
11142 # else
11143 # define LT_DLGLOBAL 0
11144 # endif
11145 #endif
11146
11147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11148 find out it does not work in some platform. */
11149 #ifndef LT_DLLAZY_OR_NOW
11150 # ifdef RTLD_LAZY
11151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11152 # else
11153 # ifdef DL_LAZY
11154 # define LT_DLLAZY_OR_NOW DL_LAZY
11155 # else
11156 # ifdef RTLD_NOW
11157 # define LT_DLLAZY_OR_NOW RTLD_NOW
11158 # else
11159 # ifdef DL_NOW
11160 # define LT_DLLAZY_OR_NOW DL_NOW
11161 # else
11162 # define LT_DLLAZY_OR_NOW 0
11163 # endif
11164 # endif
11165 # endif
11166 # endif
11167 #endif
11168
11169 /* When -fvisbility=hidden is used, assume the code has been annotated
11170 correspondingly for the symbols needed. */
11171 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11172 int fnord () __attribute__((visibility("default")));
11173 #endif
11174
11175 int fnord () { return 42; }
11176 int main ()
11177 {
11178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11179 int status = $lt_dlunknown;
11180
11181 if (self)
11182 {
11183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11184 else
11185 {
11186 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11187 else puts (dlerror ());
11188 }
11189 /* dlclose (self); */
11190 }
11191 else
11192 puts (dlerror ());
11193
11194 return status;
11195 }
11196 _LT_EOF
11197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11198 (eval $ac_link) 2>&5
11199 ac_status=$?
11200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11201 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11202 (./conftest; exit; ) >&5 2>/dev/null
11203 lt_status=$?
11204 case x$lt_status in
11205 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11206 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11207 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11208 esac
11209 else :
11210 # compilation failed
11211 lt_cv_dlopen_self=no
11212 fi
11213 fi
11214 rm -fr conftest*
11215
11216
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11219 $as_echo "$lt_cv_dlopen_self" >&6; }
11220
11221 if test "x$lt_cv_dlopen_self" = xyes; then
11222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11224 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11225 if ${lt_cv_dlopen_self_static+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test "$cross_compiling" = yes; then :
11229 lt_cv_dlopen_self_static=cross
11230 else
11231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232 lt_status=$lt_dlunknown
11233 cat > conftest.$ac_ext <<_LT_EOF
11234 #line $LINENO "configure"
11235 #include "confdefs.h"
11236
11237 #if HAVE_DLFCN_H
11238 #include <dlfcn.h>
11239 #endif
11240
11241 #include <stdio.h>
11242
11243 #ifdef RTLD_GLOBAL
11244 # define LT_DLGLOBAL RTLD_GLOBAL
11245 #else
11246 # ifdef DL_GLOBAL
11247 # define LT_DLGLOBAL DL_GLOBAL
11248 # else
11249 # define LT_DLGLOBAL 0
11250 # endif
11251 #endif
11252
11253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254 find out it does not work in some platform. */
11255 #ifndef LT_DLLAZY_OR_NOW
11256 # ifdef RTLD_LAZY
11257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11258 # else
11259 # ifdef DL_LAZY
11260 # define LT_DLLAZY_OR_NOW DL_LAZY
11261 # else
11262 # ifdef RTLD_NOW
11263 # define LT_DLLAZY_OR_NOW RTLD_NOW
11264 # else
11265 # ifdef DL_NOW
11266 # define LT_DLLAZY_OR_NOW DL_NOW
11267 # else
11268 # define LT_DLLAZY_OR_NOW 0
11269 # endif
11270 # endif
11271 # endif
11272 # endif
11273 #endif
11274
11275 /* When -fvisbility=hidden is used, assume the code has been annotated
11276 correspondingly for the symbols needed. */
11277 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11278 int fnord () __attribute__((visibility("default")));
11279 #endif
11280
11281 int fnord () { return 42; }
11282 int main ()
11283 {
11284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11285 int status = $lt_dlunknown;
11286
11287 if (self)
11288 {
11289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11290 else
11291 {
11292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11293 else puts (dlerror ());
11294 }
11295 /* dlclose (self); */
11296 }
11297 else
11298 puts (dlerror ());
11299
11300 return status;
11301 }
11302 _LT_EOF
11303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11304 (eval $ac_link) 2>&5
11305 ac_status=$?
11306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11307 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11308 (./conftest; exit; ) >&5 2>/dev/null
11309 lt_status=$?
11310 case x$lt_status in
11311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11314 esac
11315 else :
11316 # compilation failed
11317 lt_cv_dlopen_self_static=no
11318 fi
11319 fi
11320 rm -fr conftest*
11321
11322
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11325 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11326 fi
11327
11328 CPPFLAGS="$save_CPPFLAGS"
11329 LDFLAGS="$save_LDFLAGS"
11330 LIBS="$save_LIBS"
11331 ;;
11332 esac
11333
11334 case $lt_cv_dlopen_self in
11335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11336 *) enable_dlopen_self=unknown ;;
11337 esac
11338
11339 case $lt_cv_dlopen_self_static in
11340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11341 *) enable_dlopen_self_static=unknown ;;
11342 esac
11343 fi
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361 striplib=
11362 old_striplib=
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11364 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11365 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369 $as_echo "yes" >&6; }
11370 else
11371 # FIXME - insert some real tests, host_os isn't really good enough
11372 case $host_os in
11373 darwin*)
11374 if test -n "$STRIP" ; then
11375 striplib="$STRIP -x"
11376 old_striplib="$STRIP -S"
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11378 $as_echo "yes" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 fi
11383 ;;
11384 *)
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 ;;
11388 esac
11389 fi
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402 # Report which library types will actually be built
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11404 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11406 $as_echo "$can_build_shared" >&6; }
11407
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11409 $as_echo_n "checking whether to build shared libraries... " >&6; }
11410 test "$can_build_shared" = "no" && enable_shared=no
11411
11412 # On AIX, shared libraries and static libraries use the same namespace, and
11413 # are all built from PIC.
11414 case $host_os in
11415 aix3*)
11416 test "$enable_shared" = yes && enable_static=no
11417 if test -n "$RANLIB"; then
11418 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11419 postinstall_cmds='$RANLIB $lib'
11420 fi
11421 ;;
11422
11423 aix[4-9]*)
11424 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11425 test "$enable_shared" = yes && enable_static=no
11426 fi
11427 ;;
11428 esac
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11430 $as_echo "$enable_shared" >&6; }
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11433 $as_echo_n "checking whether to build static libraries... " >&6; }
11434 # Make sure either enable_shared or enable_static is yes.
11435 test "$enable_shared" = yes || enable_static=yes
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11437 $as_echo "$enable_static" >&6; }
11438
11439
11440
11441
11442 fi
11443 ac_ext=c
11444 ac_cpp='$CPP $CPPFLAGS'
11445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11448
11449 CC="$lt_save_CC"
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465 ac_config_commands="$ac_config_commands libtool"
11466
11467
11468
11469
11470 # Only expand once:
11471
11472
11473
11474 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11487 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11488 if ${ac_cv_prog_cc_c99+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 ac_cv_prog_cc_c99=no
11492 ac_save_CC=$CC
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495 #include <stdarg.h>
11496 #include <stdbool.h>
11497 #include <stdlib.h>
11498 #include <wchar.h>
11499 #include <stdio.h>
11500
11501 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11502 #define debug(...) fprintf (stderr, __VA_ARGS__)
11503 #define showlist(...) puts (#__VA_ARGS__)
11504 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11505 static void
11506 test_varargs_macros (void)
11507 {
11508 int x = 1234;
11509 int y = 5678;
11510 debug ("Flag");
11511 debug ("X = %d\n", x);
11512 showlist (The first, second, and third items.);
11513 report (x>y, "x is %d but y is %d", x, y);
11514 }
11515
11516 // Check long long types.
11517 #define BIG64 18446744073709551615ull
11518 #define BIG32 4294967295ul
11519 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11520 #if !BIG_OK
11521 your preprocessor is broken;
11522 #endif
11523 #if BIG_OK
11524 #else
11525 your preprocessor is broken;
11526 #endif
11527 static long long int bignum = -9223372036854775807LL;
11528 static unsigned long long int ubignum = BIG64;
11529
11530 struct incomplete_array
11531 {
11532 int datasize;
11533 double data[];
11534 };
11535
11536 struct named_init {
11537 int number;
11538 const wchar_t *name;
11539 double average;
11540 };
11541
11542 typedef const char *ccp;
11543
11544 static inline int
11545 test_restrict (ccp restrict text)
11546 {
11547 // See if C++-style comments work.
11548 // Iterate through items via the restricted pointer.
11549 // Also check for declarations in for loops.
11550 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11551 continue;
11552 return 0;
11553 }
11554
11555 // Check varargs and va_copy.
11556 static void
11557 test_varargs (const char *format, ...)
11558 {
11559 va_list args;
11560 va_start (args, format);
11561 va_list args_copy;
11562 va_copy (args_copy, args);
11563
11564 const char *str;
11565 int number;
11566 float fnumber;
11567
11568 while (*format)
11569 {
11570 switch (*format++)
11571 {
11572 case 's': // string
11573 str = va_arg (args_copy, const char *);
11574 break;
11575 case 'd': // int
11576 number = va_arg (args_copy, int);
11577 break;
11578 case 'f': // float
11579 fnumber = va_arg (args_copy, double);
11580 break;
11581 default:
11582 break;
11583 }
11584 }
11585 va_end (args_copy);
11586 va_end (args);
11587 }
11588
11589 int
11590 main ()
11591 {
11592
11593 // Check bool.
11594 _Bool success = false;
11595
11596 // Check restrict.
11597 if (test_restrict ("String literal") == 0)
11598 success = true;
11599 char *restrict newvar = "Another string";
11600
11601 // Check varargs.
11602 test_varargs ("s, d' f .", "string", 65, 34.234);
11603 test_varargs_macros ();
11604
11605 // Check flexible array members.
11606 struct incomplete_array *ia =
11607 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11608 ia->datasize = 10;
11609 for (int i = 0; i < ia->datasize; ++i)
11610 ia->data[i] = i * 1.234;
11611
11612 // Check named initializers.
11613 struct named_init ni = {
11614 .number = 34,
11615 .name = L"Test wide string",
11616 .average = 543.34343,
11617 };
11618
11619 ni.number = 58;
11620
11621 int dynamic_array[ni.number];
11622 dynamic_array[ni.number - 1] = 543;
11623
11624 // work around unused variable warnings
11625 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11626 || dynamic_array[ni.number - 1] != 543);
11627
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11633 do
11634 CC="$ac_save_CC $ac_arg"
11635 if ac_fn_c_try_compile "$LINENO"; then :
11636 ac_cv_prog_cc_c99=$ac_arg
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext
11639 test "x$ac_cv_prog_cc_c99" != "xno" && break
11640 done
11641 rm -f conftest.$ac_ext
11642 CC=$ac_save_CC
11643
11644 fi
11645 # AC_CACHE_VAL
11646 case "x$ac_cv_prog_cc_c99" in
11647 x)
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11649 $as_echo "none needed" >&6; } ;;
11650 xno)
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11652 $as_echo "unsupported" >&6; } ;;
11653 *)
11654 CC="$CC $ac_cv_prog_cc_c99"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11656 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11657 esac
11658 if test "x$ac_cv_prog_cc_c99" != xno; then :
11659
11660 fi
11661
11662
11663
11664
11665
11666
11667 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11668 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11669 CLANGCC="yes"
11670 else
11671 CLANGCC="no"
11672 fi
11673
11674 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11675 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11676 INTELCC="yes"
11677 else
11678 INTELCC="no"
11679 fi
11680
11681 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11682 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11683 SUNCC="yes"
11684 else
11685 SUNCC="no"
11686 fi
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11697 if test -n "$ac_tool_prefix"; then
11698 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11699 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 case $PKG_CONFIG in
11706 [\\/]* | ?:[\\/]*)
11707 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11708 ;;
11709 *)
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711 for as_dir in $PATH
11712 do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11717 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 break 2
11720 fi
11721 done
11722 done
11723 IFS=$as_save_IFS
11724
11725 ;;
11726 esac
11727 fi
11728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11729 if test -n "$PKG_CONFIG"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11731 $as_echo "$PKG_CONFIG" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 fi
11736
11737
11738 fi
11739 if test -z "$ac_cv_path_PKG_CONFIG"; then
11740 ac_pt_PKG_CONFIG=$PKG_CONFIG
11741 # Extract the first word of "pkg-config", so it can be a program name with args.
11742 set dummy pkg-config; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 case $ac_pt_PKG_CONFIG in
11749 [\\/]* | ?:[\\/]*)
11750 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11751 ;;
11752 *)
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11755 do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11760 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 break 2
11763 fi
11764 done
11765 done
11766 IFS=$as_save_IFS
11767
11768 ;;
11769 esac
11770 fi
11771 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11772 if test -n "$ac_pt_PKG_CONFIG"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11774 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 fi
11779
11780 if test "x$ac_pt_PKG_CONFIG" = x; then
11781 PKG_CONFIG=""
11782 else
11783 case $cross_compiling:$ac_tool_warned in
11784 yes:)
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11787 ac_tool_warned=yes ;;
11788 esac
11789 PKG_CONFIG=$ac_pt_PKG_CONFIG
11790 fi
11791 else
11792 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11793 fi
11794
11795 fi
11796 if test -n "$PKG_CONFIG"; then
11797 _pkg_min_version=0.9.0
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11799 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11800 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11802 $as_echo "yes" >&6; }
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 PKG_CONFIG=""
11807 fi
11808 fi
11809
11810
11811
11812
11813
11814 # Check whether --enable-selective-werror was given.
11815 if test "${enable_selective_werror+set}" = set; then :
11816 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11817 else
11818 SELECTIVE_WERROR=yes
11819 fi
11820
11821
11822
11823
11824
11825 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11826 if test "x$SUNCC" = "xyes"; then
11827 BASE_CFLAGS="-v"
11828 else
11829 BASE_CFLAGS=""
11830 fi
11831
11832 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846 xorg_testset_save_CFLAGS="$CFLAGS"
11847
11848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11857 int i;
11858 _ACEOF
11859 if ac_fn_c_try_compile "$LINENO"; then :
11860 xorg_cv_cc_flag_unknown_warning_option=yes
11861 else
11862 xorg_cv_cc_flag_unknown_warning_option=no
11863 fi
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11869 CFLAGS="$xorg_testset_save_CFLAGS"
11870 fi
11871
11872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11875 fi
11876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 int i;
11885 _ACEOF
11886 if ac_fn_c_try_compile "$LINENO"; then :
11887 xorg_cv_cc_flag_unused_command_line_argument=yes
11888 else
11889 xorg_cv_cc_flag_unused_command_line_argument=no
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11896 CFLAGS="$xorg_testset_save_CFLAGS"
11897 fi
11898
11899 found="no"
11900
11901 if test $found = "no" ; then
11902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11904 fi
11905
11906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11908 fi
11909
11910 CFLAGS="$CFLAGS -Wall"
11911
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11913 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11914 cacheid=xorg_cv_cc_flag__Wall
11915 if eval \${$cacheid+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11920 int i;
11921 int
11922 main ()
11923 {
11924
11925 ;
11926 return 0;
11927 }
11928 _ACEOF
11929 if ac_fn_c_try_link "$LINENO"; then :
11930 eval $cacheid=yes
11931 else
11932 eval $cacheid=no
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11936 fi
11937
11938
11939 CFLAGS="$xorg_testset_save_CFLAGS"
11940
11941 eval supported=\$$cacheid
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11943 $as_echo "$supported" >&6; }
11944 if test "$supported" = "yes" ; then
11945 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11946 found="yes"
11947 fi
11948 fi
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 xorg_testset_save_CFLAGS="$CFLAGS"
11965
11966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11975 int i;
11976 _ACEOF
11977 if ac_fn_c_try_compile "$LINENO"; then :
11978 xorg_cv_cc_flag_unknown_warning_option=yes
11979 else
11980 xorg_cv_cc_flag_unknown_warning_option=no
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11987 CFLAGS="$xorg_testset_save_CFLAGS"
11988 fi
11989
11990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11993 fi
11994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002 int i;
12003 _ACEOF
12004 if ac_fn_c_try_compile "$LINENO"; then :
12005 xorg_cv_cc_flag_unused_command_line_argument=yes
12006 else
12007 xorg_cv_cc_flag_unused_command_line_argument=no
12008 fi
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12014 CFLAGS="$xorg_testset_save_CFLAGS"
12015 fi
12016
12017 found="no"
12018
12019 if test $found = "no" ; then
12020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12022 fi
12023
12024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12026 fi
12027
12028 CFLAGS="$CFLAGS -Wpointer-arith"
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12031 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12032 cacheid=xorg_cv_cc_flag__Wpointer_arith
12033 if eval \${$cacheid+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038 int i;
12039 int
12040 main ()
12041 {
12042
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_link "$LINENO"; then :
12048 eval $cacheid=yes
12049 else
12050 eval $cacheid=no
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054 fi
12055
12056
12057 CFLAGS="$xorg_testset_save_CFLAGS"
12058
12059 eval supported=\$$cacheid
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12061 $as_echo "$supported" >&6; }
12062 if test "$supported" = "yes" ; then
12063 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12064 found="yes"
12065 fi
12066 fi
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082 xorg_testset_save_CFLAGS="$CFLAGS"
12083
12084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 int i;
12094 _ACEOF
12095 if ac_fn_c_try_compile "$LINENO"; then :
12096 xorg_cv_cc_flag_unknown_warning_option=yes
12097 else
12098 xorg_cv_cc_flag_unknown_warning_option=no
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12105 CFLAGS="$xorg_testset_save_CFLAGS"
12106 fi
12107
12108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12111 fi
12112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 int i;
12121 _ACEOF
12122 if ac_fn_c_try_compile "$LINENO"; then :
12123 xorg_cv_cc_flag_unused_command_line_argument=yes
12124 else
12125 xorg_cv_cc_flag_unused_command_line_argument=no
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12132 CFLAGS="$xorg_testset_save_CFLAGS"
12133 fi
12134
12135 found="no"
12136
12137 if test $found = "no" ; then
12138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12140 fi
12141
12142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12144 fi
12145
12146 CFLAGS="$CFLAGS -Wmissing-declarations"
12147
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12149 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12150 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12151 if eval \${$cacheid+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156 int i;
12157 int
12158 main ()
12159 {
12160
12161 ;
12162 return 0;
12163 }
12164 _ACEOF
12165 if ac_fn_c_try_link "$LINENO"; then :
12166 eval $cacheid=yes
12167 else
12168 eval $cacheid=no
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 fi
12173
12174
12175 CFLAGS="$xorg_testset_save_CFLAGS"
12176
12177 eval supported=\$$cacheid
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12179 $as_echo "$supported" >&6; }
12180 if test "$supported" = "yes" ; then
12181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12182 found="yes"
12183 fi
12184 fi
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200 xorg_testset_save_CFLAGS="$CFLAGS"
12201
12202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 int i;
12212 _ACEOF
12213 if ac_fn_c_try_compile "$LINENO"; then :
12214 xorg_cv_cc_flag_unknown_warning_option=yes
12215 else
12216 xorg_cv_cc_flag_unknown_warning_option=no
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12223 CFLAGS="$xorg_testset_save_CFLAGS"
12224 fi
12225
12226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12229 fi
12230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 int i;
12239 _ACEOF
12240 if ac_fn_c_try_compile "$LINENO"; then :
12241 xorg_cv_cc_flag_unused_command_line_argument=yes
12242 else
12243 xorg_cv_cc_flag_unused_command_line_argument=no
12244 fi
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 fi
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12250 CFLAGS="$xorg_testset_save_CFLAGS"
12251 fi
12252
12253 found="no"
12254
12255 if test $found = "no" ; then
12256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12258 fi
12259
12260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12262 fi
12263
12264 CFLAGS="$CFLAGS -Wformat=2"
12265
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12267 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12268 cacheid=xorg_cv_cc_flag__Wformat_2
12269 if eval \${$cacheid+:} false; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274 int i;
12275 int
12276 main ()
12277 {
12278
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_link "$LINENO"; then :
12284 eval $cacheid=yes
12285 else
12286 eval $cacheid=no
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12290 fi
12291
12292
12293 CFLAGS="$xorg_testset_save_CFLAGS"
12294
12295 eval supported=\$$cacheid
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12297 $as_echo "$supported" >&6; }
12298 if test "$supported" = "yes" ; then
12299 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12300 found="yes"
12301 fi
12302 fi
12303
12304 if test $found = "no" ; then
12305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12307 fi
12308
12309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12311 fi
12312
12313 CFLAGS="$CFLAGS -Wformat"
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12316 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12317 cacheid=xorg_cv_cc_flag__Wformat
12318 if eval \${$cacheid+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12323 int i;
12324 int
12325 main ()
12326 {
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_link "$LINENO"; then :
12333 eval $cacheid=yes
12334 else
12335 eval $cacheid=no
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12339 fi
12340
12341
12342 CFLAGS="$xorg_testset_save_CFLAGS"
12343
12344 eval supported=\$$cacheid
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12346 $as_echo "$supported" >&6; }
12347 if test "$supported" = "yes" ; then
12348 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12349 found="yes"
12350 fi
12351 fi
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369 xorg_testset_save_CFLAGS="$CFLAGS"
12370
12371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12374 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12375 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 int i;
12381 _ACEOF
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383 xorg_cv_cc_flag_unknown_warning_option=yes
12384 else
12385 xorg_cv_cc_flag_unknown_warning_option=no
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12390 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12392 CFLAGS="$xorg_testset_save_CFLAGS"
12393 fi
12394
12395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12398 fi
12399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12401 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12402 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407 int i;
12408 _ACEOF
12409 if ac_fn_c_try_compile "$LINENO"; then :
12410 xorg_cv_cc_flag_unused_command_line_argument=yes
12411 else
12412 xorg_cv_cc_flag_unused_command_line_argument=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12417 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12419 CFLAGS="$xorg_testset_save_CFLAGS"
12420 fi
12421
12422 found="no"
12423
12424 if test $found = "no" ; then
12425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12427 fi
12428
12429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12431 fi
12432
12433 CFLAGS="$CFLAGS -Wstrict-prototypes"
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12436 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12437 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12438 if eval \${$cacheid+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443 int i;
12444 int
12445 main ()
12446 {
12447
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453 eval $cacheid=yes
12454 else
12455 eval $cacheid=no
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 fi
12460
12461
12462 CFLAGS="$xorg_testset_save_CFLAGS"
12463
12464 eval supported=\$$cacheid
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12466 $as_echo "$supported" >&6; }
12467 if test "$supported" = "yes" ; then
12468 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12469 found="yes"
12470 fi
12471 fi
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487 xorg_testset_save_CFLAGS="$CFLAGS"
12488
12489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498 int i;
12499 _ACEOF
12500 if ac_fn_c_try_compile "$LINENO"; then :
12501 xorg_cv_cc_flag_unknown_warning_option=yes
12502 else
12503 xorg_cv_cc_flag_unknown_warning_option=no
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12510 CFLAGS="$xorg_testset_save_CFLAGS"
12511 fi
12512
12513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12516 fi
12517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525 int i;
12526 _ACEOF
12527 if ac_fn_c_try_compile "$LINENO"; then :
12528 xorg_cv_cc_flag_unused_command_line_argument=yes
12529 else
12530 xorg_cv_cc_flag_unused_command_line_argument=no
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12537 CFLAGS="$xorg_testset_save_CFLAGS"
12538 fi
12539
12540 found="no"
12541
12542 if test $found = "no" ; then
12543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12545 fi
12546
12547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12549 fi
12550
12551 CFLAGS="$CFLAGS -Wmissing-prototypes"
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12554 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12555 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12556 if eval \${$cacheid+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 int i;
12562 int
12563 main ()
12564 {
12565
12566 ;
12567 return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571 eval $cacheid=yes
12572 else
12573 eval $cacheid=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 fi
12578
12579
12580 CFLAGS="$xorg_testset_save_CFLAGS"
12581
12582 eval supported=\$$cacheid
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12584 $as_echo "$supported" >&6; }
12585 if test "$supported" = "yes" ; then
12586 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12587 found="yes"
12588 fi
12589 fi
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605 xorg_testset_save_CFLAGS="$CFLAGS"
12606
12607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 int i;
12617 _ACEOF
12618 if ac_fn_c_try_compile "$LINENO"; then :
12619 xorg_cv_cc_flag_unknown_warning_option=yes
12620 else
12621 xorg_cv_cc_flag_unknown_warning_option=no
12622 fi
12623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12628 CFLAGS="$xorg_testset_save_CFLAGS"
12629 fi
12630
12631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12634 fi
12635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 int i;
12644 _ACEOF
12645 if ac_fn_c_try_compile "$LINENO"; then :
12646 xorg_cv_cc_flag_unused_command_line_argument=yes
12647 else
12648 xorg_cv_cc_flag_unused_command_line_argument=no
12649 fi
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12655 CFLAGS="$xorg_testset_save_CFLAGS"
12656 fi
12657
12658 found="no"
12659
12660 if test $found = "no" ; then
12661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12663 fi
12664
12665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12667 fi
12668
12669 CFLAGS="$CFLAGS -Wnested-externs"
12670
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12672 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12673 cacheid=xorg_cv_cc_flag__Wnested_externs
12674 if eval \${$cacheid+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679 int i;
12680 int
12681 main ()
12682 {
12683
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689 eval $cacheid=yes
12690 else
12691 eval $cacheid=no
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 fi
12696
12697
12698 CFLAGS="$xorg_testset_save_CFLAGS"
12699
12700 eval supported=\$$cacheid
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12702 $as_echo "$supported" >&6; }
12703 if test "$supported" = "yes" ; then
12704 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12705 found="yes"
12706 fi
12707 fi
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 xorg_testset_save_CFLAGS="$CFLAGS"
12724
12725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 int i;
12735 _ACEOF
12736 if ac_fn_c_try_compile "$LINENO"; then :
12737 xorg_cv_cc_flag_unknown_warning_option=yes
12738 else
12739 xorg_cv_cc_flag_unknown_warning_option=no
12740 fi
12741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12746 CFLAGS="$xorg_testset_save_CFLAGS"
12747 fi
12748
12749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12752 fi
12753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761 int i;
12762 _ACEOF
12763 if ac_fn_c_try_compile "$LINENO"; then :
12764 xorg_cv_cc_flag_unused_command_line_argument=yes
12765 else
12766 xorg_cv_cc_flag_unused_command_line_argument=no
12767 fi
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769 fi
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12773 CFLAGS="$xorg_testset_save_CFLAGS"
12774 fi
12775
12776 found="no"
12777
12778 if test $found = "no" ; then
12779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12781 fi
12782
12783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12785 fi
12786
12787 CFLAGS="$CFLAGS -Wbad-function-cast"
12788
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12790 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12791 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12792 if eval \${$cacheid+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12797 int i;
12798 int
12799 main ()
12800 {
12801
12802 ;
12803 return 0;
12804 }
12805 _ACEOF
12806 if ac_fn_c_try_link "$LINENO"; then :
12807 eval $cacheid=yes
12808 else
12809 eval $cacheid=no
12810 fi
12811 rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 fi
12814
12815
12816 CFLAGS="$xorg_testset_save_CFLAGS"
12817
12818 eval supported=\$$cacheid
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12820 $as_echo "$supported" >&6; }
12821 if test "$supported" = "yes" ; then
12822 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12823 found="yes"
12824 fi
12825 fi
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841 xorg_testset_save_CFLAGS="$CFLAGS"
12842
12843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 int i;
12853 _ACEOF
12854 if ac_fn_c_try_compile "$LINENO"; then :
12855 xorg_cv_cc_flag_unknown_warning_option=yes
12856 else
12857 xorg_cv_cc_flag_unknown_warning_option=no
12858 fi
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 fi
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12864 CFLAGS="$xorg_testset_save_CFLAGS"
12865 fi
12866
12867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12870 fi
12871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 int i;
12880 _ACEOF
12881 if ac_fn_c_try_compile "$LINENO"; then :
12882 xorg_cv_cc_flag_unused_command_line_argument=yes
12883 else
12884 xorg_cv_cc_flag_unused_command_line_argument=no
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 fi
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12891 CFLAGS="$xorg_testset_save_CFLAGS"
12892 fi
12893
12894 found="no"
12895
12896 if test $found = "no" ; then
12897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12899 fi
12900
12901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12903 fi
12904
12905 CFLAGS="$CFLAGS -Wold-style-definition"
12906
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12908 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12909 cacheid=xorg_cv_cc_flag__Wold_style_definition
12910 if eval \${$cacheid+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 int i;
12916 int
12917 main ()
12918 {
12919
12920 ;
12921 return 0;
12922 }
12923 _ACEOF
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 eval $cacheid=yes
12926 else
12927 eval $cacheid=no
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931 fi
12932
12933
12934 CFLAGS="$xorg_testset_save_CFLAGS"
12935
12936 eval supported=\$$cacheid
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12938 $as_echo "$supported" >&6; }
12939 if test "$supported" = "yes" ; then
12940 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12941 found="yes"
12942 fi
12943 fi
12944
12945 if test $found = "no" ; then
12946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12948 fi
12949
12950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12952 fi
12953
12954 CFLAGS="$CFLAGS -fd"
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12957 $as_echo_n "checking if $CC supports -fd... " >&6; }
12958 cacheid=xorg_cv_cc_flag__fd
12959 if eval \${$cacheid+:} false; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 int i;
12965 int
12966 main ()
12967 {
12968
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 eval $cacheid=yes
12975 else
12976 eval $cacheid=no
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 fi
12981
12982
12983 CFLAGS="$xorg_testset_save_CFLAGS"
12984
12985 eval supported=\$$cacheid
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12987 $as_echo "$supported" >&6; }
12988 if test "$supported" = "yes" ; then
12989 BASE_CFLAGS="$BASE_CFLAGS -fd"
12990 found="yes"
12991 fi
12992 fi
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008 xorg_testset_save_CFLAGS="$CFLAGS"
13009
13010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 int i;
13020 _ACEOF
13021 if ac_fn_c_try_compile "$LINENO"; then :
13022 xorg_cv_cc_flag_unknown_warning_option=yes
13023 else
13024 xorg_cv_cc_flag_unknown_warning_option=no
13025 fi
13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13031 CFLAGS="$xorg_testset_save_CFLAGS"
13032 fi
13033
13034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13037 fi
13038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046 int i;
13047 _ACEOF
13048 if ac_fn_c_try_compile "$LINENO"; then :
13049 xorg_cv_cc_flag_unused_command_line_argument=yes
13050 else
13051 xorg_cv_cc_flag_unused_command_line_argument=no
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054 fi
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13058 CFLAGS="$xorg_testset_save_CFLAGS"
13059 fi
13060
13061 found="no"
13062
13063 if test $found = "no" ; then
13064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13066 fi
13067
13068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13070 fi
13071
13072 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13075 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13076 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13077 if eval \${$cacheid+:} false; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13082 int i;
13083 int
13084 main ()
13085 {
13086
13087 ;
13088 return 0;
13089 }
13090 _ACEOF
13091 if ac_fn_c_try_link "$LINENO"; then :
13092 eval $cacheid=yes
13093 else
13094 eval $cacheid=no
13095 fi
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 fi
13099
13100
13101 CFLAGS="$xorg_testset_save_CFLAGS"
13102
13103 eval supported=\$$cacheid
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13105 $as_echo "$supported" >&6; }
13106 if test "$supported" = "yes" ; then
13107 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13108 found="yes"
13109 fi
13110 fi
13111
13112
13113
13114
13115
13116 # This chunk adds additional warnings that could catch undesired effects.
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130 xorg_testset_save_CFLAGS="$CFLAGS"
13131
13132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 int i;
13142 _ACEOF
13143 if ac_fn_c_try_compile "$LINENO"; then :
13144 xorg_cv_cc_flag_unknown_warning_option=yes
13145 else
13146 xorg_cv_cc_flag_unknown_warning_option=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13149 fi
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13153 CFLAGS="$xorg_testset_save_CFLAGS"
13154 fi
13155
13156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13159 fi
13160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 int i;
13169 _ACEOF
13170 if ac_fn_c_try_compile "$LINENO"; then :
13171 xorg_cv_cc_flag_unused_command_line_argument=yes
13172 else
13173 xorg_cv_cc_flag_unused_command_line_argument=no
13174 fi
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 fi
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13180 CFLAGS="$xorg_testset_save_CFLAGS"
13181 fi
13182
13183 found="no"
13184
13185 if test $found = "no" ; then
13186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13188 fi
13189
13190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13192 fi
13193
13194 CFLAGS="$CFLAGS -Wunused"
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13197 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13198 cacheid=xorg_cv_cc_flag__Wunused
13199 if eval \${$cacheid+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204 int i;
13205 int
13206 main ()
13207 {
13208
13209 ;
13210 return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 eval $cacheid=yes
13215 else
13216 eval $cacheid=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 fi
13221
13222
13223 CFLAGS="$xorg_testset_save_CFLAGS"
13224
13225 eval supported=\$$cacheid
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13227 $as_echo "$supported" >&6; }
13228 if test "$supported" = "yes" ; then
13229 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13230 found="yes"
13231 fi
13232 fi
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248 xorg_testset_save_CFLAGS="$CFLAGS"
13249
13250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 int i;
13260 _ACEOF
13261 if ac_fn_c_try_compile "$LINENO"; then :
13262 xorg_cv_cc_flag_unknown_warning_option=yes
13263 else
13264 xorg_cv_cc_flag_unknown_warning_option=no
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13271 CFLAGS="$xorg_testset_save_CFLAGS"
13272 fi
13273
13274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13277 fi
13278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286 int i;
13287 _ACEOF
13288 if ac_fn_c_try_compile "$LINENO"; then :
13289 xorg_cv_cc_flag_unused_command_line_argument=yes
13290 else
13291 xorg_cv_cc_flag_unused_command_line_argument=no
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13298 CFLAGS="$xorg_testset_save_CFLAGS"
13299 fi
13300
13301 found="no"
13302
13303 if test $found = "no" ; then
13304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306 fi
13307
13308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13310 fi
13311
13312 CFLAGS="$CFLAGS -Wuninitialized"
13313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13315 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13316 cacheid=xorg_cv_cc_flag__Wuninitialized
13317 if eval \${$cacheid+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322 int i;
13323 int
13324 main ()
13325 {
13326
13327 ;
13328 return 0;
13329 }
13330 _ACEOF
13331 if ac_fn_c_try_link "$LINENO"; then :
13332 eval $cacheid=yes
13333 else
13334 eval $cacheid=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 fi
13339
13340
13341 CFLAGS="$xorg_testset_save_CFLAGS"
13342
13343 eval supported=\$$cacheid
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13345 $as_echo "$supported" >&6; }
13346 if test "$supported" = "yes" ; then
13347 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13348 found="yes"
13349 fi
13350 fi
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 xorg_testset_save_CFLAGS="$CFLAGS"
13367
13368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377 int i;
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380 xorg_cv_cc_flag_unknown_warning_option=yes
13381 else
13382 xorg_cv_cc_flag_unknown_warning_option=no
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13389 CFLAGS="$xorg_testset_save_CFLAGS"
13390 fi
13391
13392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13395 fi
13396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 int i;
13405 _ACEOF
13406 if ac_fn_c_try_compile "$LINENO"; then :
13407 xorg_cv_cc_flag_unused_command_line_argument=yes
13408 else
13409 xorg_cv_cc_flag_unused_command_line_argument=no
13410 fi
13411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 fi
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13416 CFLAGS="$xorg_testset_save_CFLAGS"
13417 fi
13418
13419 found="no"
13420
13421 if test $found = "no" ; then
13422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13424 fi
13425
13426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13428 fi
13429
13430 CFLAGS="$CFLAGS -Wshadow"
13431
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13433 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13434 cacheid=xorg_cv_cc_flag__Wshadow
13435 if eval \${$cacheid+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440 int i;
13441 int
13442 main ()
13443 {
13444
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"; then :
13450 eval $cacheid=yes
13451 else
13452 eval $cacheid=no
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 fi
13457
13458
13459 CFLAGS="$xorg_testset_save_CFLAGS"
13460
13461 eval supported=\$$cacheid
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13463 $as_echo "$supported" >&6; }
13464 if test "$supported" = "yes" ; then
13465 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13466 found="yes"
13467 fi
13468 fi
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484 xorg_testset_save_CFLAGS="$CFLAGS"
13485
13486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 int i;
13496 _ACEOF
13497 if ac_fn_c_try_compile "$LINENO"; then :
13498 xorg_cv_cc_flag_unknown_warning_option=yes
13499 else
13500 xorg_cv_cc_flag_unknown_warning_option=no
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 fi
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13507 CFLAGS="$xorg_testset_save_CFLAGS"
13508 fi
13509
13510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13513 fi
13514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13522 int i;
13523 _ACEOF
13524 if ac_fn_c_try_compile "$LINENO"; then :
13525 xorg_cv_cc_flag_unused_command_line_argument=yes
13526 else
13527 xorg_cv_cc_flag_unused_command_line_argument=no
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13534 CFLAGS="$xorg_testset_save_CFLAGS"
13535 fi
13536
13537 found="no"
13538
13539 if test $found = "no" ; then
13540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13542 fi
13543
13544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13546 fi
13547
13548 CFLAGS="$CFLAGS -Wmissing-noreturn"
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13551 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13552 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13553 if eval \${$cacheid+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 int i;
13559 int
13560 main ()
13561 {
13562
13563 ;
13564 return 0;
13565 }
13566 _ACEOF
13567 if ac_fn_c_try_link "$LINENO"; then :
13568 eval $cacheid=yes
13569 else
13570 eval $cacheid=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext \
13573 conftest$ac_exeext conftest.$ac_ext
13574 fi
13575
13576
13577 CFLAGS="$xorg_testset_save_CFLAGS"
13578
13579 eval supported=\$$cacheid
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13581 $as_echo "$supported" >&6; }
13582 if test "$supported" = "yes" ; then
13583 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13584 found="yes"
13585 fi
13586 fi
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602 xorg_testset_save_CFLAGS="$CFLAGS"
13603
13604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 int i;
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616 xorg_cv_cc_flag_unknown_warning_option=yes
13617 else
13618 xorg_cv_cc_flag_unknown_warning_option=no
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 fi
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13625 CFLAGS="$xorg_testset_save_CFLAGS"
13626 fi
13627
13628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13631 fi
13632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640 int i;
13641 _ACEOF
13642 if ac_fn_c_try_compile "$LINENO"; then :
13643 xorg_cv_cc_flag_unused_command_line_argument=yes
13644 else
13645 xorg_cv_cc_flag_unused_command_line_argument=no
13646 fi
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13652 CFLAGS="$xorg_testset_save_CFLAGS"
13653 fi
13654
13655 found="no"
13656
13657 if test $found = "no" ; then
13658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13660 fi
13661
13662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13664 fi
13665
13666 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13667
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13669 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13670 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13671 if eval \${$cacheid+:} false; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 int i;
13677 int
13678 main ()
13679 {
13680
13681 ;
13682 return 0;
13683 }
13684 _ACEOF
13685 if ac_fn_c_try_link "$LINENO"; then :
13686 eval $cacheid=yes
13687 else
13688 eval $cacheid=no
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
13692 fi
13693
13694
13695 CFLAGS="$xorg_testset_save_CFLAGS"
13696
13697 eval supported=\$$cacheid
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13699 $as_echo "$supported" >&6; }
13700 if test "$supported" = "yes" ; then
13701 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13702 found="yes"
13703 fi
13704 fi
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720 xorg_testset_save_CFLAGS="$CFLAGS"
13721
13722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731 int i;
13732 _ACEOF
13733 if ac_fn_c_try_compile "$LINENO"; then :
13734 xorg_cv_cc_flag_unknown_warning_option=yes
13735 else
13736 xorg_cv_cc_flag_unknown_warning_option=no
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739 fi
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13743 CFLAGS="$xorg_testset_save_CFLAGS"
13744 fi
13745
13746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13749 fi
13750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758 int i;
13759 _ACEOF
13760 if ac_fn_c_try_compile "$LINENO"; then :
13761 xorg_cv_cc_flag_unused_command_line_argument=yes
13762 else
13763 xorg_cv_cc_flag_unused_command_line_argument=no
13764 fi
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13770 CFLAGS="$xorg_testset_save_CFLAGS"
13771 fi
13772
13773 found="no"
13774
13775 if test $found = "no" ; then
13776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13778 fi
13779
13780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13782 fi
13783
13784 CFLAGS="$CFLAGS -Wredundant-decls"
13785
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13787 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13788 cacheid=xorg_cv_cc_flag__Wredundant_decls
13789 if eval \${$cacheid+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794 int i;
13795 int
13796 main ()
13797 {
13798
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 eval $cacheid=yes
13805 else
13806 eval $cacheid=no
13807 fi
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 fi
13811
13812
13813 CFLAGS="$xorg_testset_save_CFLAGS"
13814
13815 eval supported=\$$cacheid
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13817 $as_echo "$supported" >&6; }
13818 if test "$supported" = "yes" ; then
13819 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13820 found="yes"
13821 fi
13822 fi
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838 xorg_testset_save_CFLAGS="$CFLAGS"
13839
13840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 int i;
13850 _ACEOF
13851 if ac_fn_c_try_compile "$LINENO"; then :
13852 xorg_cv_cc_flag_unknown_warning_option=yes
13853 else
13854 xorg_cv_cc_flag_unknown_warning_option=no
13855 fi
13856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857 fi
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13861 CFLAGS="$xorg_testset_save_CFLAGS"
13862 fi
13863
13864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13867 fi
13868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 int i;
13877 _ACEOF
13878 if ac_fn_c_try_compile "$LINENO"; then :
13879 xorg_cv_cc_flag_unused_command_line_argument=yes
13880 else
13881 xorg_cv_cc_flag_unused_command_line_argument=no
13882 fi
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13888 CFLAGS="$xorg_testset_save_CFLAGS"
13889 fi
13890
13891 found="no"
13892
13893 if test $found = "no" ; then
13894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13896 fi
13897
13898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13900 fi
13901
13902 CFLAGS="$CFLAGS -Wlogical-op"
13903
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13905 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13906 cacheid=xorg_cv_cc_flag__Wlogical_op
13907 if eval \${$cacheid+:} false; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912 int i;
13913 int
13914 main ()
13915 {
13916
13917 ;
13918 return 0;
13919 }
13920 _ACEOF
13921 if ac_fn_c_try_link "$LINENO"; then :
13922 eval $cacheid=yes
13923 else
13924 eval $cacheid=no
13925 fi
13926 rm -f core conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13928 fi
13929
13930
13931 CFLAGS="$xorg_testset_save_CFLAGS"
13932
13933 eval supported=\$$cacheid
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13935 $as_echo "$supported" >&6; }
13936 if test "$supported" = "yes" ; then
13937 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13938 found="yes"
13939 fi
13940 fi
13941
13942
13943
13944 # These are currently disabled because they are noisy. They will be enabled
13945 # in the future once the codebase is sufficiently modernized to silence
13946 # them. For now, I don't want them to drown out the other warnings.
13947 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13948 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13949 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13950
13951 # Turn some warnings into errors, so we don't accidently get successful builds
13952 # when there are problems that should be fixed.
13953
13954 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968 xorg_testset_save_CFLAGS="$CFLAGS"
13969
13970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979 int i;
13980 _ACEOF
13981 if ac_fn_c_try_compile "$LINENO"; then :
13982 xorg_cv_cc_flag_unknown_warning_option=yes
13983 else
13984 xorg_cv_cc_flag_unknown_warning_option=no
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13991 CFLAGS="$xorg_testset_save_CFLAGS"
13992 fi
13993
13994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13997 fi
13998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 int i;
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009 xorg_cv_cc_flag_unused_command_line_argument=yes
14010 else
14011 xorg_cv_cc_flag_unused_command_line_argument=no
14012 fi
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014 fi
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14018 CFLAGS="$xorg_testset_save_CFLAGS"
14019 fi
14020
14021 found="no"
14022
14023 if test $found = "no" ; then
14024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14026 fi
14027
14028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14030 fi
14031
14032 CFLAGS="$CFLAGS -Werror=implicit"
14033
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14035 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14036 cacheid=xorg_cv_cc_flag__Werror_implicit
14037 if eval \${$cacheid+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14042 int i;
14043 int
14044 main ()
14045 {
14046
14047 ;
14048 return 0;
14049 }
14050 _ACEOF
14051 if ac_fn_c_try_link "$LINENO"; then :
14052 eval $cacheid=yes
14053 else
14054 eval $cacheid=no
14055 fi
14056 rm -f core conftest.err conftest.$ac_objext \
14057 conftest$ac_exeext conftest.$ac_ext
14058 fi
14059
14060
14061 CFLAGS="$xorg_testset_save_CFLAGS"
14062
14063 eval supported=\$$cacheid
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14065 $as_echo "$supported" >&6; }
14066 if test "$supported" = "yes" ; then
14067 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14068 found="yes"
14069 fi
14070 fi
14071
14072 if test $found = "no" ; then
14073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075 fi
14076
14077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14079 fi
14080
14081 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14084 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14085 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14086 if eval \${$cacheid+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 int i;
14092 int
14093 main ()
14094 {
14095
14096 ;
14097 return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_c_try_link "$LINENO"; then :
14101 eval $cacheid=yes
14102 else
14103 eval $cacheid=no
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14107 fi
14108
14109
14110 CFLAGS="$xorg_testset_save_CFLAGS"
14111
14112 eval supported=\$$cacheid
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14114 $as_echo "$supported" >&6; }
14115 if test "$supported" = "yes" ; then
14116 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14117 found="yes"
14118 fi
14119 fi
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135 xorg_testset_save_CFLAGS="$CFLAGS"
14136
14137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14140 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14141 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 int i;
14147 _ACEOF
14148 if ac_fn_c_try_compile "$LINENO"; then :
14149 xorg_cv_cc_flag_unknown_warning_option=yes
14150 else
14151 xorg_cv_cc_flag_unknown_warning_option=no
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 fi
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14156 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14158 CFLAGS="$xorg_testset_save_CFLAGS"
14159 fi
14160
14161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14164 fi
14165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14167 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14168 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 int i;
14174 _ACEOF
14175 if ac_fn_c_try_compile "$LINENO"; then :
14176 xorg_cv_cc_flag_unused_command_line_argument=yes
14177 else
14178 xorg_cv_cc_flag_unused_command_line_argument=no
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14183 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14185 CFLAGS="$xorg_testset_save_CFLAGS"
14186 fi
14187
14188 found="no"
14189
14190 if test $found = "no" ; then
14191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193 fi
14194
14195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14197 fi
14198
14199 CFLAGS="$CFLAGS -Werror=nonnull"
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14202 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14203 cacheid=xorg_cv_cc_flag__Werror_nonnull
14204 if eval \${$cacheid+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209 int i;
14210 int
14211 main ()
14212 {
14213
14214 ;
14215 return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_link "$LINENO"; then :
14219 eval $cacheid=yes
14220 else
14221 eval $cacheid=no
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14225 fi
14226
14227
14228 CFLAGS="$xorg_testset_save_CFLAGS"
14229
14230 eval supported=\$$cacheid
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14232 $as_echo "$supported" >&6; }
14233 if test "$supported" = "yes" ; then
14234 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14235 found="yes"
14236 fi
14237 fi
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253 xorg_testset_save_CFLAGS="$CFLAGS"
14254
14255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14258 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14259 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264 int i;
14265 _ACEOF
14266 if ac_fn_c_try_compile "$LINENO"; then :
14267 xorg_cv_cc_flag_unknown_warning_option=yes
14268 else
14269 xorg_cv_cc_flag_unknown_warning_option=no
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 fi
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14274 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14276 CFLAGS="$xorg_testset_save_CFLAGS"
14277 fi
14278
14279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282 fi
14283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14285 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14286 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 int i;
14292 _ACEOF
14293 if ac_fn_c_try_compile "$LINENO"; then :
14294 xorg_cv_cc_flag_unused_command_line_argument=yes
14295 else
14296 xorg_cv_cc_flag_unused_command_line_argument=no
14297 fi
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 fi
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14301 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14303 CFLAGS="$xorg_testset_save_CFLAGS"
14304 fi
14305
14306 found="no"
14307
14308 if test $found = "no" ; then
14309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311 fi
14312
14313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14315 fi
14316
14317 CFLAGS="$CFLAGS -Werror=init-self"
14318
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14320 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14321 cacheid=xorg_cv_cc_flag__Werror_init_self
14322 if eval \${$cacheid+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 int i;
14328 int
14329 main ()
14330 {
14331
14332 ;
14333 return 0;
14334 }
14335 _ACEOF
14336 if ac_fn_c_try_link "$LINENO"; then :
14337 eval $cacheid=yes
14338 else
14339 eval $cacheid=no
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
14343 fi
14344
14345
14346 CFLAGS="$xorg_testset_save_CFLAGS"
14347
14348 eval supported=\$$cacheid
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14350 $as_echo "$supported" >&6; }
14351 if test "$supported" = "yes" ; then
14352 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14353 found="yes"
14354 fi
14355 fi
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371 xorg_testset_save_CFLAGS="$CFLAGS"
14372
14373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14376 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14377 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 int i;
14383 _ACEOF
14384 if ac_fn_c_try_compile "$LINENO"; then :
14385 xorg_cv_cc_flag_unknown_warning_option=yes
14386 else
14387 xorg_cv_cc_flag_unknown_warning_option=no
14388 fi
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 fi
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14392 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14394 CFLAGS="$xorg_testset_save_CFLAGS"
14395 fi
14396
14397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14400 fi
14401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14403 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14404 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 int i;
14410 _ACEOF
14411 if ac_fn_c_try_compile "$LINENO"; then :
14412 xorg_cv_cc_flag_unused_command_line_argument=yes
14413 else
14414 xorg_cv_cc_flag_unused_command_line_argument=no
14415 fi
14416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14417 fi
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14419 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14421 CFLAGS="$xorg_testset_save_CFLAGS"
14422 fi
14423
14424 found="no"
14425
14426 if test $found = "no" ; then
14427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14429 fi
14430
14431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14433 fi
14434
14435 CFLAGS="$CFLAGS -Werror=main"
14436
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14438 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14439 cacheid=xorg_cv_cc_flag__Werror_main
14440 if eval \${$cacheid+:} false; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 int i;
14446 int
14447 main ()
14448 {
14449
14450 ;
14451 return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_link "$LINENO"; then :
14455 eval $cacheid=yes
14456 else
14457 eval $cacheid=no
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext \
14460 conftest$ac_exeext conftest.$ac_ext
14461 fi
14462
14463
14464 CFLAGS="$xorg_testset_save_CFLAGS"
14465
14466 eval supported=\$$cacheid
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14468 $as_echo "$supported" >&6; }
14469 if test "$supported" = "yes" ; then
14470 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14471 found="yes"
14472 fi
14473 fi
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489 xorg_testset_save_CFLAGS="$CFLAGS"
14490
14491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 int i;
14501 _ACEOF
14502 if ac_fn_c_try_compile "$LINENO"; then :
14503 xorg_cv_cc_flag_unknown_warning_option=yes
14504 else
14505 xorg_cv_cc_flag_unknown_warning_option=no
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14512 CFLAGS="$xorg_testset_save_CFLAGS"
14513 fi
14514
14515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14518 fi
14519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 int i;
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 xorg_cv_cc_flag_unused_command_line_argument=yes
14531 else
14532 xorg_cv_cc_flag_unused_command_line_argument=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 fi
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14539 CFLAGS="$xorg_testset_save_CFLAGS"
14540 fi
14541
14542 found="no"
14543
14544 if test $found = "no" ; then
14545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14547 fi
14548
14549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14551 fi
14552
14553 CFLAGS="$CFLAGS -Werror=missing-braces"
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14556 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14557 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14558 if eval \${$cacheid+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560 else
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14563 int i;
14564 int
14565 main ()
14566 {
14567
14568 ;
14569 return 0;
14570 }
14571 _ACEOF
14572 if ac_fn_c_try_link "$LINENO"; then :
14573 eval $cacheid=yes
14574 else
14575 eval $cacheid=no
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext \
14578 conftest$ac_exeext conftest.$ac_ext
14579 fi
14580
14581
14582 CFLAGS="$xorg_testset_save_CFLAGS"
14583
14584 eval supported=\$$cacheid
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14586 $as_echo "$supported" >&6; }
14587 if test "$supported" = "yes" ; then
14588 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14589 found="yes"
14590 fi
14591 fi
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607 xorg_testset_save_CFLAGS="$CFLAGS"
14608
14609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 int i;
14619 _ACEOF
14620 if ac_fn_c_try_compile "$LINENO"; then :
14621 xorg_cv_cc_flag_unknown_warning_option=yes
14622 else
14623 xorg_cv_cc_flag_unknown_warning_option=no
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 fi
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14630 CFLAGS="$xorg_testset_save_CFLAGS"
14631 fi
14632
14633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14636 fi
14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 int i;
14646 _ACEOF
14647 if ac_fn_c_try_compile "$LINENO"; then :
14648 xorg_cv_cc_flag_unused_command_line_argument=yes
14649 else
14650 xorg_cv_cc_flag_unused_command_line_argument=no
14651 fi
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 fi
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14657 CFLAGS="$xorg_testset_save_CFLAGS"
14658 fi
14659
14660 found="no"
14661
14662 if test $found = "no" ; then
14663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14665 fi
14666
14667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14669 fi
14670
14671 CFLAGS="$CFLAGS -Werror=sequence-point"
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14674 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14675 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14676 if eval \${$cacheid+:} false; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681 int i;
14682 int
14683 main ()
14684 {
14685
14686 ;
14687 return 0;
14688 }
14689 _ACEOF
14690 if ac_fn_c_try_link "$LINENO"; then :
14691 eval $cacheid=yes
14692 else
14693 eval $cacheid=no
14694 fi
14695 rm -f core conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
14697 fi
14698
14699
14700 CFLAGS="$xorg_testset_save_CFLAGS"
14701
14702 eval supported=\$$cacheid
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14704 $as_echo "$supported" >&6; }
14705 if test "$supported" = "yes" ; then
14706 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14707 found="yes"
14708 fi
14709 fi
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725 xorg_testset_save_CFLAGS="$CFLAGS"
14726
14727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14732 $as_echo_n "(cached) " >&6
14733 else
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14736 int i;
14737 _ACEOF
14738 if ac_fn_c_try_compile "$LINENO"; then :
14739 xorg_cv_cc_flag_unknown_warning_option=yes
14740 else
14741 xorg_cv_cc_flag_unknown_warning_option=no
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14748 CFLAGS="$xorg_testset_save_CFLAGS"
14749 fi
14750
14751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14754 fi
14755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14759 $as_echo_n "(cached) " >&6
14760 else
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 int i;
14764 _ACEOF
14765 if ac_fn_c_try_compile "$LINENO"; then :
14766 xorg_cv_cc_flag_unused_command_line_argument=yes
14767 else
14768 xorg_cv_cc_flag_unused_command_line_argument=no
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 fi
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14775 CFLAGS="$xorg_testset_save_CFLAGS"
14776 fi
14777
14778 found="no"
14779
14780 if test $found = "no" ; then
14781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14783 fi
14784
14785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14787 fi
14788
14789 CFLAGS="$CFLAGS -Werror=return-type"
14790
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14792 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14793 cacheid=xorg_cv_cc_flag__Werror_return_type
14794 if eval \${$cacheid+:} false; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14799 int i;
14800 int
14801 main ()
14802 {
14803
14804 ;
14805 return 0;
14806 }
14807 _ACEOF
14808 if ac_fn_c_try_link "$LINENO"; then :
14809 eval $cacheid=yes
14810 else
14811 eval $cacheid=no
14812 fi
14813 rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14815 fi
14816
14817
14818 CFLAGS="$xorg_testset_save_CFLAGS"
14819
14820 eval supported=\$$cacheid
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14822 $as_echo "$supported" >&6; }
14823 if test "$supported" = "yes" ; then
14824 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14825 found="yes"
14826 fi
14827 fi
14828
14829 if test $found = "no" ; then
14830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14832 fi
14833
14834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14836 fi
14837
14838 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14839
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14841 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14842 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14843 if eval \${$cacheid+:} false; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848 int i;
14849 int
14850 main ()
14851 {
14852
14853 ;
14854 return 0;
14855 }
14856 _ACEOF
14857 if ac_fn_c_try_link "$LINENO"; then :
14858 eval $cacheid=yes
14859 else
14860 eval $cacheid=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14864 fi
14865
14866
14867 CFLAGS="$xorg_testset_save_CFLAGS"
14868
14869 eval supported=\$$cacheid
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14871 $as_echo "$supported" >&6; }
14872 if test "$supported" = "yes" ; then
14873 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14874 found="yes"
14875 fi
14876 fi
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892 xorg_testset_save_CFLAGS="$CFLAGS"
14893
14894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14897 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14898 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14903 int i;
14904 _ACEOF
14905 if ac_fn_c_try_compile "$LINENO"; then :
14906 xorg_cv_cc_flag_unknown_warning_option=yes
14907 else
14908 xorg_cv_cc_flag_unknown_warning_option=no
14909 fi
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 fi
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14913 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14915 CFLAGS="$xorg_testset_save_CFLAGS"
14916 fi
14917
14918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14921 fi
14922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14924 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14925 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14930 int i;
14931 _ACEOF
14932 if ac_fn_c_try_compile "$LINENO"; then :
14933 xorg_cv_cc_flag_unused_command_line_argument=yes
14934 else
14935 xorg_cv_cc_flag_unused_command_line_argument=no
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 fi
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14940 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14942 CFLAGS="$xorg_testset_save_CFLAGS"
14943 fi
14944
14945 found="no"
14946
14947 if test $found = "no" ; then
14948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14950 fi
14951
14952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14954 fi
14955
14956 CFLAGS="$CFLAGS -Werror=trigraphs"
14957
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14959 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14960 cacheid=xorg_cv_cc_flag__Werror_trigraphs
14961 if eval \${$cacheid+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966 int i;
14967 int
14968 main ()
14969 {
14970
14971 ;
14972 return 0;
14973 }
14974 _ACEOF
14975 if ac_fn_c_try_link "$LINENO"; then :
14976 eval $cacheid=yes
14977 else
14978 eval $cacheid=no
14979 fi
14980 rm -f core conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext conftest.$ac_ext
14982 fi
14983
14984
14985 CFLAGS="$xorg_testset_save_CFLAGS"
14986
14987 eval supported=\$$cacheid
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14989 $as_echo "$supported" >&6; }
14990 if test "$supported" = "yes" ; then
14991 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14992 found="yes"
14993 fi
14994 fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010 xorg_testset_save_CFLAGS="$CFLAGS"
15011
15012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15015 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15016 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021 int i;
15022 _ACEOF
15023 if ac_fn_c_try_compile "$LINENO"; then :
15024 xorg_cv_cc_flag_unknown_warning_option=yes
15025 else
15026 xorg_cv_cc_flag_unknown_warning_option=no
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 fi
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15031 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15033 CFLAGS="$xorg_testset_save_CFLAGS"
15034 fi
15035
15036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15039 fi
15040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15042 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15043 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15048 int i;
15049 _ACEOF
15050 if ac_fn_c_try_compile "$LINENO"; then :
15051 xorg_cv_cc_flag_unused_command_line_argument=yes
15052 else
15053 xorg_cv_cc_flag_unused_command_line_argument=no
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 fi
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15058 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15060 CFLAGS="$xorg_testset_save_CFLAGS"
15061 fi
15062
15063 found="no"
15064
15065 if test $found = "no" ; then
15066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068 fi
15069
15070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15072 fi
15073
15074 CFLAGS="$CFLAGS -Werror=array-bounds"
15075
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15077 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15078 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15079 if eval \${$cacheid+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084 int i;
15085 int
15086 main ()
15087 {
15088
15089 ;
15090 return 0;
15091 }
15092 _ACEOF
15093 if ac_fn_c_try_link "$LINENO"; then :
15094 eval $cacheid=yes
15095 else
15096 eval $cacheid=no
15097 fi
15098 rm -f core conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
15100 fi
15101
15102
15103 CFLAGS="$xorg_testset_save_CFLAGS"
15104
15105 eval supported=\$$cacheid
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15107 $as_echo "$supported" >&6; }
15108 if test "$supported" = "yes" ; then
15109 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15110 found="yes"
15111 fi
15112 fi
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128 xorg_testset_save_CFLAGS="$CFLAGS"
15129
15130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15133 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15134 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 int i;
15140 _ACEOF
15141 if ac_fn_c_try_compile "$LINENO"; then :
15142 xorg_cv_cc_flag_unknown_warning_option=yes
15143 else
15144 xorg_cv_cc_flag_unknown_warning_option=no
15145 fi
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 fi
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15149 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15151 CFLAGS="$xorg_testset_save_CFLAGS"
15152 fi
15153
15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15157 fi
15158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15160 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15161 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 int i;
15167 _ACEOF
15168 if ac_fn_c_try_compile "$LINENO"; then :
15169 xorg_cv_cc_flag_unused_command_line_argument=yes
15170 else
15171 xorg_cv_cc_flag_unused_command_line_argument=no
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15176 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15178 CFLAGS="$xorg_testset_save_CFLAGS"
15179 fi
15180
15181 found="no"
15182
15183 if test $found = "no" ; then
15184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15186 fi
15187
15188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15190 fi
15191
15192 CFLAGS="$CFLAGS -Werror=write-strings"
15193
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15195 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15196 cacheid=xorg_cv_cc_flag__Werror_write_strings
15197 if eval \${$cacheid+:} false; then :
15198 $as_echo_n "(cached) " >&6
15199 else
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 int i;
15203 int
15204 main ()
15205 {
15206
15207 ;
15208 return 0;
15209 }
15210 _ACEOF
15211 if ac_fn_c_try_link "$LINENO"; then :
15212 eval $cacheid=yes
15213 else
15214 eval $cacheid=no
15215 fi
15216 rm -f core conftest.err conftest.$ac_objext \
15217 conftest$ac_exeext conftest.$ac_ext
15218 fi
15219
15220
15221 CFLAGS="$xorg_testset_save_CFLAGS"
15222
15223 eval supported=\$$cacheid
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15225 $as_echo "$supported" >&6; }
15226 if test "$supported" = "yes" ; then
15227 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15228 found="yes"
15229 fi
15230 fi
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246 xorg_testset_save_CFLAGS="$CFLAGS"
15247
15248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15251 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15252 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 int i;
15258 _ACEOF
15259 if ac_fn_c_try_compile "$LINENO"; then :
15260 xorg_cv_cc_flag_unknown_warning_option=yes
15261 else
15262 xorg_cv_cc_flag_unknown_warning_option=no
15263 fi
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 fi
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15267 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15269 CFLAGS="$xorg_testset_save_CFLAGS"
15270 fi
15271
15272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15275 fi
15276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15278 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15279 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 int i;
15285 _ACEOF
15286 if ac_fn_c_try_compile "$LINENO"; then :
15287 xorg_cv_cc_flag_unused_command_line_argument=yes
15288 else
15289 xorg_cv_cc_flag_unused_command_line_argument=no
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15294 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15296 CFLAGS="$xorg_testset_save_CFLAGS"
15297 fi
15298
15299 found="no"
15300
15301 if test $found = "no" ; then
15302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15304 fi
15305
15306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15308 fi
15309
15310 CFLAGS="$CFLAGS -Werror=address"
15311
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15313 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15314 cacheid=xorg_cv_cc_flag__Werror_address
15315 if eval \${$cacheid+:} false; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15320 int i;
15321 int
15322 main ()
15323 {
15324
15325 ;
15326 return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15330 eval $cacheid=yes
15331 else
15332 eval $cacheid=no
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15336 fi
15337
15338
15339 CFLAGS="$xorg_testset_save_CFLAGS"
15340
15341 eval supported=\$$cacheid
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15343 $as_echo "$supported" >&6; }
15344 if test "$supported" = "yes" ; then
15345 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15346 found="yes"
15347 fi
15348 fi
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364 xorg_testset_save_CFLAGS="$CFLAGS"
15365
15366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15369 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15370 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 int i;
15376 _ACEOF
15377 if ac_fn_c_try_compile "$LINENO"; then :
15378 xorg_cv_cc_flag_unknown_warning_option=yes
15379 else
15380 xorg_cv_cc_flag_unknown_warning_option=no
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 fi
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15385 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15387 CFLAGS="$xorg_testset_save_CFLAGS"
15388 fi
15389
15390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15393 fi
15394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15396 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15397 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 int i;
15403 _ACEOF
15404 if ac_fn_c_try_compile "$LINENO"; then :
15405 xorg_cv_cc_flag_unused_command_line_argument=yes
15406 else
15407 xorg_cv_cc_flag_unused_command_line_argument=no
15408 fi
15409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15410 fi
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15412 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15414 CFLAGS="$xorg_testset_save_CFLAGS"
15415 fi
15416
15417 found="no"
15418
15419 if test $found = "no" ; then
15420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15422 fi
15423
15424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15426 fi
15427
15428 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15429
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15431 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15432 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15433 if eval \${$cacheid+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 int i;
15439 int
15440 main ()
15441 {
15442
15443 ;
15444 return 0;
15445 }
15446 _ACEOF
15447 if ac_fn_c_try_link "$LINENO"; then :
15448 eval $cacheid=yes
15449 else
15450 eval $cacheid=no
15451 fi
15452 rm -f core conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15454 fi
15455
15456
15457 CFLAGS="$xorg_testset_save_CFLAGS"
15458
15459 eval supported=\$$cacheid
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15461 $as_echo "$supported" >&6; }
15462 if test "$supported" = "yes" ; then
15463 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15464 found="yes"
15465 fi
15466 fi
15467
15468 if test $found = "no" ; then
15469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15471 fi
15472
15473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15475 fi
15476
15477 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15478
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15480 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15481 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15482 if eval \${$cacheid+:} false; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h. */
15487 int i;
15488 int
15489 main ()
15490 {
15491
15492 ;
15493 return 0;
15494 }
15495 _ACEOF
15496 if ac_fn_c_try_link "$LINENO"; then :
15497 eval $cacheid=yes
15498 else
15499 eval $cacheid=no
15500 fi
15501 rm -f core conftest.err conftest.$ac_objext \
15502 conftest$ac_exeext conftest.$ac_ext
15503 fi
15504
15505
15506 CFLAGS="$xorg_testset_save_CFLAGS"
15507
15508 eval supported=\$$cacheid
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15510 $as_echo "$supported" >&6; }
15511 if test "$supported" = "yes" ; then
15512 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15513 found="yes"
15514 fi
15515 fi
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531 xorg_testset_save_CFLAGS="$CFLAGS"
15532
15533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15536 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15537 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15538 $as_echo_n "(cached) " >&6
15539 else
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542 int i;
15543 _ACEOF
15544 if ac_fn_c_try_compile "$LINENO"; then :
15545 xorg_cv_cc_flag_unknown_warning_option=yes
15546 else
15547 xorg_cv_cc_flag_unknown_warning_option=no
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 fi
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15552 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15554 CFLAGS="$xorg_testset_save_CFLAGS"
15555 fi
15556
15557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15560 fi
15561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15563 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15564 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h. */
15569 int i;
15570 _ACEOF
15571 if ac_fn_c_try_compile "$LINENO"; then :
15572 xorg_cv_cc_flag_unused_command_line_argument=yes
15573 else
15574 xorg_cv_cc_flag_unused_command_line_argument=no
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 fi
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15579 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15581 CFLAGS="$xorg_testset_save_CFLAGS"
15582 fi
15583
15584 found="no"
15585
15586 if test $found = "no" ; then
15587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15589 fi
15590
15591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15593 fi
15594
15595 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15596
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15598 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15599 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15600 if eval \${$cacheid+:} false; then :
15601 $as_echo_n "(cached) " >&6
15602 else
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 int i;
15606 int
15607 main ()
15608 {
15609
15610 ;
15611 return 0;
15612 }
15613 _ACEOF
15614 if ac_fn_c_try_link "$LINENO"; then :
15615 eval $cacheid=yes
15616 else
15617 eval $cacheid=no
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext \
15620 conftest$ac_exeext conftest.$ac_ext
15621 fi
15622
15623
15624 CFLAGS="$xorg_testset_save_CFLAGS"
15625
15626 eval supported=\$$cacheid
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15628 $as_echo "$supported" >&6; }
15629 if test "$supported" = "yes" ; then
15630 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15631 found="yes"
15632 fi
15633 fi
15634
15635 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15636 else
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15638 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652 xorg_testset_save_CFLAGS="$CFLAGS"
15653
15654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15657 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15658 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h. */
15663 int i;
15664 _ACEOF
15665 if ac_fn_c_try_compile "$LINENO"; then :
15666 xorg_cv_cc_flag_unknown_warning_option=yes
15667 else
15668 xorg_cv_cc_flag_unknown_warning_option=no
15669 fi
15670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671 fi
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15673 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15675 CFLAGS="$xorg_testset_save_CFLAGS"
15676 fi
15677
15678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15681 fi
15682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15685 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 int i;
15691 _ACEOF
15692 if ac_fn_c_try_compile "$LINENO"; then :
15693 xorg_cv_cc_flag_unused_command_line_argument=yes
15694 else
15695 xorg_cv_cc_flag_unused_command_line_argument=no
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 fi
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15700 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15702 CFLAGS="$xorg_testset_save_CFLAGS"
15703 fi
15704
15705 found="no"
15706
15707 if test $found = "no" ; then
15708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710 fi
15711
15712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15714 fi
15715
15716 CFLAGS="$CFLAGS -Wimplicit"
15717
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15719 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15720 cacheid=xorg_cv_cc_flag__Wimplicit
15721 if eval \${$cacheid+:} false; then :
15722 $as_echo_n "(cached) " >&6
15723 else
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 int i;
15727 int
15728 main ()
15729 {
15730
15731 ;
15732 return 0;
15733 }
15734 _ACEOF
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 eval $cacheid=yes
15737 else
15738 eval $cacheid=no
15739 fi
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 fi
15743
15744
15745 CFLAGS="$xorg_testset_save_CFLAGS"
15746
15747 eval supported=\$$cacheid
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15749 $as_echo "$supported" >&6; }
15750 if test "$supported" = "yes" ; then
15751 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15752 found="yes"
15753 fi
15754 fi
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770 xorg_testset_save_CFLAGS="$CFLAGS"
15771
15772 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15775 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15776 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15777 $as_echo_n "(cached) " >&6
15778 else
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 int i;
15782 _ACEOF
15783 if ac_fn_c_try_compile "$LINENO"; then :
15784 xorg_cv_cc_flag_unknown_warning_option=yes
15785 else
15786 xorg_cv_cc_flag_unknown_warning_option=no
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 fi
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15791 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15793 CFLAGS="$xorg_testset_save_CFLAGS"
15794 fi
15795
15796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15799 fi
15800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15802 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15803 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15808 int i;
15809 _ACEOF
15810 if ac_fn_c_try_compile "$LINENO"; then :
15811 xorg_cv_cc_flag_unused_command_line_argument=yes
15812 else
15813 xorg_cv_cc_flag_unused_command_line_argument=no
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15818 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15820 CFLAGS="$xorg_testset_save_CFLAGS"
15821 fi
15822
15823 found="no"
15824
15825 if test $found = "no" ; then
15826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15828 fi
15829
15830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15832 fi
15833
15834 CFLAGS="$CFLAGS -Wnonnull"
15835
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15837 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15838 cacheid=xorg_cv_cc_flag__Wnonnull
15839 if eval \${$cacheid+:} false; then :
15840 $as_echo_n "(cached) " >&6
15841 else
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844 int i;
15845 int
15846 main ()
15847 {
15848
15849 ;
15850 return 0;
15851 }
15852 _ACEOF
15853 if ac_fn_c_try_link "$LINENO"; then :
15854 eval $cacheid=yes
15855 else
15856 eval $cacheid=no
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext \
15859 conftest$ac_exeext conftest.$ac_ext
15860 fi
15861
15862
15863 CFLAGS="$xorg_testset_save_CFLAGS"
15864
15865 eval supported=\$$cacheid
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15867 $as_echo "$supported" >&6; }
15868 if test "$supported" = "yes" ; then
15869 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15870 found="yes"
15871 fi
15872 fi
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888 xorg_testset_save_CFLAGS="$CFLAGS"
15889
15890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15893 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15894 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15895 $as_echo_n "(cached) " >&6
15896 else
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 int i;
15900 _ACEOF
15901 if ac_fn_c_try_compile "$LINENO"; then :
15902 xorg_cv_cc_flag_unknown_warning_option=yes
15903 else
15904 xorg_cv_cc_flag_unknown_warning_option=no
15905 fi
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15909 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15911 CFLAGS="$xorg_testset_save_CFLAGS"
15912 fi
15913
15914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15917 fi
15918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15920 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15921 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923 else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 int i;
15927 _ACEOF
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 xorg_cv_cc_flag_unused_command_line_argument=yes
15930 else
15931 xorg_cv_cc_flag_unused_command_line_argument=no
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15936 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15938 CFLAGS="$xorg_testset_save_CFLAGS"
15939 fi
15940
15941 found="no"
15942
15943 if test $found = "no" ; then
15944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946 fi
15947
15948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15950 fi
15951
15952 CFLAGS="$CFLAGS -Winit-self"
15953
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15955 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15956 cacheid=xorg_cv_cc_flag__Winit_self
15957 if eval \${$cacheid+:} false; then :
15958 $as_echo_n "(cached) " >&6
15959 else
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15962 int i;
15963 int
15964 main ()
15965 {
15966
15967 ;
15968 return 0;
15969 }
15970 _ACEOF
15971 if ac_fn_c_try_link "$LINENO"; then :
15972 eval $cacheid=yes
15973 else
15974 eval $cacheid=no
15975 fi
15976 rm -f core conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext conftest.$ac_ext
15978 fi
15979
15980
15981 CFLAGS="$xorg_testset_save_CFLAGS"
15982
15983 eval supported=\$$cacheid
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15985 $as_echo "$supported" >&6; }
15986 if test "$supported" = "yes" ; then
15987 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15988 found="yes"
15989 fi
15990 fi
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006 xorg_testset_save_CFLAGS="$CFLAGS"
16007
16008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16011 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16012 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16013 $as_echo_n "(cached) " >&6
16014 else
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 int i;
16018 _ACEOF
16019 if ac_fn_c_try_compile "$LINENO"; then :
16020 xorg_cv_cc_flag_unknown_warning_option=yes
16021 else
16022 xorg_cv_cc_flag_unknown_warning_option=no
16023 fi
16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 fi
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16027 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16029 CFLAGS="$xorg_testset_save_CFLAGS"
16030 fi
16031
16032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16035 fi
16036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16038 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16039 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16040 $as_echo_n "(cached) " >&6
16041 else
16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043 /* end confdefs.h. */
16044 int i;
16045 _ACEOF
16046 if ac_fn_c_try_compile "$LINENO"; then :
16047 xorg_cv_cc_flag_unused_command_line_argument=yes
16048 else
16049 xorg_cv_cc_flag_unused_command_line_argument=no
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052 fi
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16054 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16056 CFLAGS="$xorg_testset_save_CFLAGS"
16057 fi
16058
16059 found="no"
16060
16061 if test $found = "no" ; then
16062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16064 fi
16065
16066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16068 fi
16069
16070 CFLAGS="$CFLAGS -Wmain"
16071
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16073 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16074 cacheid=xorg_cv_cc_flag__Wmain
16075 if eval \${$cacheid+:} false; then :
16076 $as_echo_n "(cached) " >&6
16077 else
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080 int i;
16081 int
16082 main ()
16083 {
16084
16085 ;
16086 return 0;
16087 }
16088 _ACEOF
16089 if ac_fn_c_try_link "$LINENO"; then :
16090 eval $cacheid=yes
16091 else
16092 eval $cacheid=no
16093 fi
16094 rm -f core conftest.err conftest.$ac_objext \
16095 conftest$ac_exeext conftest.$ac_ext
16096 fi
16097
16098
16099 CFLAGS="$xorg_testset_save_CFLAGS"
16100
16101 eval supported=\$$cacheid
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16103 $as_echo "$supported" >&6; }
16104 if test "$supported" = "yes" ; then
16105 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16106 found="yes"
16107 fi
16108 fi
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124 xorg_testset_save_CFLAGS="$CFLAGS"
16125
16126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16130 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16131 $as_echo_n "(cached) " >&6
16132 else
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16135 int i;
16136 _ACEOF
16137 if ac_fn_c_try_compile "$LINENO"; then :
16138 xorg_cv_cc_flag_unknown_warning_option=yes
16139 else
16140 xorg_cv_cc_flag_unknown_warning_option=no
16141 fi
16142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16143 fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16145 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16147 CFLAGS="$xorg_testset_save_CFLAGS"
16148 fi
16149
16150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16153 fi
16154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16157 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16162 int i;
16163 _ACEOF
16164 if ac_fn_c_try_compile "$LINENO"; then :
16165 xorg_cv_cc_flag_unused_command_line_argument=yes
16166 else
16167 xorg_cv_cc_flag_unused_command_line_argument=no
16168 fi
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170 fi
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16172 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16174 CFLAGS="$xorg_testset_save_CFLAGS"
16175 fi
16176
16177 found="no"
16178
16179 if test $found = "no" ; then
16180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16182 fi
16183
16184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16186 fi
16187
16188 CFLAGS="$CFLAGS -Wmissing-braces"
16189
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16191 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16192 cacheid=xorg_cv_cc_flag__Wmissing_braces
16193 if eval \${$cacheid+:} false; then :
16194 $as_echo_n "(cached) " >&6
16195 else
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 int i;
16199 int
16200 main ()
16201 {
16202
16203 ;
16204 return 0;
16205 }
16206 _ACEOF
16207 if ac_fn_c_try_link "$LINENO"; then :
16208 eval $cacheid=yes
16209 else
16210 eval $cacheid=no
16211 fi
16212 rm -f core conftest.err conftest.$ac_objext \
16213 conftest$ac_exeext conftest.$ac_ext
16214 fi
16215
16216
16217 CFLAGS="$xorg_testset_save_CFLAGS"
16218
16219 eval supported=\$$cacheid
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16221 $as_echo "$supported" >&6; }
16222 if test "$supported" = "yes" ; then
16223 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16224 found="yes"
16225 fi
16226 fi
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242 xorg_testset_save_CFLAGS="$CFLAGS"
16243
16244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16247 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16248 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 int i;
16254 _ACEOF
16255 if ac_fn_c_try_compile "$LINENO"; then :
16256 xorg_cv_cc_flag_unknown_warning_option=yes
16257 else
16258 xorg_cv_cc_flag_unknown_warning_option=no
16259 fi
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 fi
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16263 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16265 CFLAGS="$xorg_testset_save_CFLAGS"
16266 fi
16267
16268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16271 fi
16272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16274 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16275 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16276 $as_echo_n "(cached) " >&6
16277 else
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 int i;
16281 _ACEOF
16282 if ac_fn_c_try_compile "$LINENO"; then :
16283 xorg_cv_cc_flag_unused_command_line_argument=yes
16284 else
16285 xorg_cv_cc_flag_unused_command_line_argument=no
16286 fi
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 fi
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16290 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16292 CFLAGS="$xorg_testset_save_CFLAGS"
16293 fi
16294
16295 found="no"
16296
16297 if test $found = "no" ; then
16298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16300 fi
16301
16302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16304 fi
16305
16306 CFLAGS="$CFLAGS -Wsequence-point"
16307
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16309 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16310 cacheid=xorg_cv_cc_flag__Wsequence_point
16311 if eval \${$cacheid+:} false; then :
16312 $as_echo_n "(cached) " >&6
16313 else
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 int i;
16317 int
16318 main ()
16319 {
16320
16321 ;
16322 return 0;
16323 }
16324 _ACEOF
16325 if ac_fn_c_try_link "$LINENO"; then :
16326 eval $cacheid=yes
16327 else
16328 eval $cacheid=no
16329 fi
16330 rm -f core conftest.err conftest.$ac_objext \
16331 conftest$ac_exeext conftest.$ac_ext
16332 fi
16333
16334
16335 CFLAGS="$xorg_testset_save_CFLAGS"
16336
16337 eval supported=\$$cacheid
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16339 $as_echo "$supported" >&6; }
16340 if test "$supported" = "yes" ; then
16341 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16342 found="yes"
16343 fi
16344 fi
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360 xorg_testset_save_CFLAGS="$CFLAGS"
16361
16362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16365 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16366 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16367 $as_echo_n "(cached) " >&6
16368 else
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 int i;
16372 _ACEOF
16373 if ac_fn_c_try_compile "$LINENO"; then :
16374 xorg_cv_cc_flag_unknown_warning_option=yes
16375 else
16376 xorg_cv_cc_flag_unknown_warning_option=no
16377 fi
16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379 fi
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16381 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16383 CFLAGS="$xorg_testset_save_CFLAGS"
16384 fi
16385
16386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16389 fi
16390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16392 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16393 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16394 $as_echo_n "(cached) " >&6
16395 else
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 int i;
16399 _ACEOF
16400 if ac_fn_c_try_compile "$LINENO"; then :
16401 xorg_cv_cc_flag_unused_command_line_argument=yes
16402 else
16403 xorg_cv_cc_flag_unused_command_line_argument=no
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 fi
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16408 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16410 CFLAGS="$xorg_testset_save_CFLAGS"
16411 fi
16412
16413 found="no"
16414
16415 if test $found = "no" ; then
16416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16418 fi
16419
16420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16422 fi
16423
16424 CFLAGS="$CFLAGS -Wreturn-type"
16425
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16427 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16428 cacheid=xorg_cv_cc_flag__Wreturn_type
16429 if eval \${$cacheid+:} false; then :
16430 $as_echo_n "(cached) " >&6
16431 else
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 int i;
16435 int
16436 main ()
16437 {
16438
16439 ;
16440 return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 eval $cacheid=yes
16445 else
16446 eval $cacheid=no
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 fi
16451
16452
16453 CFLAGS="$xorg_testset_save_CFLAGS"
16454
16455 eval supported=\$$cacheid
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16457 $as_echo "$supported" >&6; }
16458 if test "$supported" = "yes" ; then
16459 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16460 found="yes"
16461 fi
16462 fi
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478 xorg_testset_save_CFLAGS="$CFLAGS"
16479
16480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16483 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16484 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16485 $as_echo_n "(cached) " >&6
16486 else
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16489 int i;
16490 _ACEOF
16491 if ac_fn_c_try_compile "$LINENO"; then :
16492 xorg_cv_cc_flag_unknown_warning_option=yes
16493 else
16494 xorg_cv_cc_flag_unknown_warning_option=no
16495 fi
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 fi
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16499 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16501 CFLAGS="$xorg_testset_save_CFLAGS"
16502 fi
16503
16504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16507 fi
16508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16510 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16511 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16512 $as_echo_n "(cached) " >&6
16513 else
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516 int i;
16517 _ACEOF
16518 if ac_fn_c_try_compile "$LINENO"; then :
16519 xorg_cv_cc_flag_unused_command_line_argument=yes
16520 else
16521 xorg_cv_cc_flag_unused_command_line_argument=no
16522 fi
16523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524 fi
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16526 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16528 CFLAGS="$xorg_testset_save_CFLAGS"
16529 fi
16530
16531 found="no"
16532
16533 if test $found = "no" ; then
16534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16536 fi
16537
16538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16540 fi
16541
16542 CFLAGS="$CFLAGS -Wtrigraphs"
16543
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16545 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16546 cacheid=xorg_cv_cc_flag__Wtrigraphs
16547 if eval \${$cacheid+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 int i;
16553 int
16554 main ()
16555 {
16556
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"; then :
16562 eval $cacheid=yes
16563 else
16564 eval $cacheid=no
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 fi
16569
16570
16571 CFLAGS="$xorg_testset_save_CFLAGS"
16572
16573 eval supported=\$$cacheid
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16575 $as_echo "$supported" >&6; }
16576 if test "$supported" = "yes" ; then
16577 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16578 found="yes"
16579 fi
16580 fi
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596 xorg_testset_save_CFLAGS="$CFLAGS"
16597
16598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16601 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16602 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16607 int i;
16608 _ACEOF
16609 if ac_fn_c_try_compile "$LINENO"; then :
16610 xorg_cv_cc_flag_unknown_warning_option=yes
16611 else
16612 xorg_cv_cc_flag_unknown_warning_option=no
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16617 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16619 CFLAGS="$xorg_testset_save_CFLAGS"
16620 fi
16621
16622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16625 fi
16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16628 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16629 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16630 $as_echo_n "(cached) " >&6
16631 else
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 int i;
16635 _ACEOF
16636 if ac_fn_c_try_compile "$LINENO"; then :
16637 xorg_cv_cc_flag_unused_command_line_argument=yes
16638 else
16639 xorg_cv_cc_flag_unused_command_line_argument=no
16640 fi
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642 fi
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16644 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16646 CFLAGS="$xorg_testset_save_CFLAGS"
16647 fi
16648
16649 found="no"
16650
16651 if test $found = "no" ; then
16652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16654 fi
16655
16656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16658 fi
16659
16660 CFLAGS="$CFLAGS -Warray-bounds"
16661
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16663 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16664 cacheid=xorg_cv_cc_flag__Warray_bounds
16665 if eval \${$cacheid+:} false; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 int i;
16671 int
16672 main ()
16673 {
16674
16675 ;
16676 return 0;
16677 }
16678 _ACEOF
16679 if ac_fn_c_try_link "$LINENO"; then :
16680 eval $cacheid=yes
16681 else
16682 eval $cacheid=no
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext \
16685 conftest$ac_exeext conftest.$ac_ext
16686 fi
16687
16688
16689 CFLAGS="$xorg_testset_save_CFLAGS"
16690
16691 eval supported=\$$cacheid
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16693 $as_echo "$supported" >&6; }
16694 if test "$supported" = "yes" ; then
16695 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16696 found="yes"
16697 fi
16698 fi
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714 xorg_testset_save_CFLAGS="$CFLAGS"
16715
16716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16719 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16720 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16721 $as_echo_n "(cached) " >&6
16722 else
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16725 int i;
16726 _ACEOF
16727 if ac_fn_c_try_compile "$LINENO"; then :
16728 xorg_cv_cc_flag_unknown_warning_option=yes
16729 else
16730 xorg_cv_cc_flag_unknown_warning_option=no
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 fi
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16735 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16737 CFLAGS="$xorg_testset_save_CFLAGS"
16738 fi
16739
16740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16743 fi
16744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16746 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16747 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16752 int i;
16753 _ACEOF
16754 if ac_fn_c_try_compile "$LINENO"; then :
16755 xorg_cv_cc_flag_unused_command_line_argument=yes
16756 else
16757 xorg_cv_cc_flag_unused_command_line_argument=no
16758 fi
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 fi
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16762 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16764 CFLAGS="$xorg_testset_save_CFLAGS"
16765 fi
16766
16767 found="no"
16768
16769 if test $found = "no" ; then
16770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16772 fi
16773
16774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16776 fi
16777
16778 CFLAGS="$CFLAGS -Wwrite-strings"
16779
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16781 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16782 cacheid=xorg_cv_cc_flag__Wwrite_strings
16783 if eval \${$cacheid+:} false; then :
16784 $as_echo_n "(cached) " >&6
16785 else
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16788 int i;
16789 int
16790 main ()
16791 {
16792
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 if ac_fn_c_try_link "$LINENO"; then :
16798 eval $cacheid=yes
16799 else
16800 eval $cacheid=no
16801 fi
16802 rm -f core conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16804 fi
16805
16806
16807 CFLAGS="$xorg_testset_save_CFLAGS"
16808
16809 eval supported=\$$cacheid
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16811 $as_echo "$supported" >&6; }
16812 if test "$supported" = "yes" ; then
16813 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16814 found="yes"
16815 fi
16816 fi
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832 xorg_testset_save_CFLAGS="$CFLAGS"
16833
16834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16839 $as_echo_n "(cached) " >&6
16840 else
16841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16842 /* end confdefs.h. */
16843 int i;
16844 _ACEOF
16845 if ac_fn_c_try_compile "$LINENO"; then :
16846 xorg_cv_cc_flag_unknown_warning_option=yes
16847 else
16848 xorg_cv_cc_flag_unknown_warning_option=no
16849 fi
16850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 fi
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16855 CFLAGS="$xorg_testset_save_CFLAGS"
16856 fi
16857
16858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16861 fi
16862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16866 $as_echo_n "(cached) " >&6
16867 else
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 int i;
16871 _ACEOF
16872 if ac_fn_c_try_compile "$LINENO"; then :
16873 xorg_cv_cc_flag_unused_command_line_argument=yes
16874 else
16875 xorg_cv_cc_flag_unused_command_line_argument=no
16876 fi
16877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 fi
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16882 CFLAGS="$xorg_testset_save_CFLAGS"
16883 fi
16884
16885 found="no"
16886
16887 if test $found = "no" ; then
16888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16890 fi
16891
16892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16894 fi
16895
16896 CFLAGS="$CFLAGS -Waddress"
16897
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16899 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16900 cacheid=xorg_cv_cc_flag__Waddress
16901 if eval \${$cacheid+:} false; then :
16902 $as_echo_n "(cached) " >&6
16903 else
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h. */
16906 int i;
16907 int
16908 main ()
16909 {
16910
16911 ;
16912 return 0;
16913 }
16914 _ACEOF
16915 if ac_fn_c_try_link "$LINENO"; then :
16916 eval $cacheid=yes
16917 else
16918 eval $cacheid=no
16919 fi
16920 rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16922 fi
16923
16924
16925 CFLAGS="$xorg_testset_save_CFLAGS"
16926
16927 eval supported=\$$cacheid
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16929 $as_echo "$supported" >&6; }
16930 if test "$supported" = "yes" ; then
16931 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16932 found="yes"
16933 fi
16934 fi
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950 xorg_testset_save_CFLAGS="$CFLAGS"
16951
16952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16955 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16956 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16957 $as_echo_n "(cached) " >&6
16958 else
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h. */
16961 int i;
16962 _ACEOF
16963 if ac_fn_c_try_compile "$LINENO"; then :
16964 xorg_cv_cc_flag_unknown_warning_option=yes
16965 else
16966 xorg_cv_cc_flag_unknown_warning_option=no
16967 fi
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 fi
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16971 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16973 CFLAGS="$xorg_testset_save_CFLAGS"
16974 fi
16975
16976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16979 fi
16980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16982 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16983 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16984 $as_echo_n "(cached) " >&6
16985 else
16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16988 int i;
16989 _ACEOF
16990 if ac_fn_c_try_compile "$LINENO"; then :
16991 xorg_cv_cc_flag_unused_command_line_argument=yes
16992 else
16993 xorg_cv_cc_flag_unused_command_line_argument=no
16994 fi
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 fi
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16998 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17000 CFLAGS="$xorg_testset_save_CFLAGS"
17001 fi
17002
17003 found="no"
17004
17005 if test $found = "no" ; then
17006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17008 fi
17009
17010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17012 fi
17013
17014 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17015
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17017 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17018 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17019 if eval \${$cacheid+:} false; then :
17020 $as_echo_n "(cached) " >&6
17021 else
17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h. */
17024 int i;
17025 int
17026 main ()
17027 {
17028
17029 ;
17030 return 0;
17031 }
17032 _ACEOF
17033 if ac_fn_c_try_link "$LINENO"; then :
17034 eval $cacheid=yes
17035 else
17036 eval $cacheid=no
17037 fi
17038 rm -f core conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17040 fi
17041
17042
17043 CFLAGS="$xorg_testset_save_CFLAGS"
17044
17045 eval supported=\$$cacheid
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17047 $as_echo "$supported" >&6; }
17048 if test "$supported" = "yes" ; then
17049 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17050 found="yes"
17051 fi
17052 fi
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068 xorg_testset_save_CFLAGS="$CFLAGS"
17069
17070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17073 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17074 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17075 $as_echo_n "(cached) " >&6
17076 else
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h. */
17079 int i;
17080 _ACEOF
17081 if ac_fn_c_try_compile "$LINENO"; then :
17082 xorg_cv_cc_flag_unknown_warning_option=yes
17083 else
17084 xorg_cv_cc_flag_unknown_warning_option=no
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087 fi
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17089 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17091 CFLAGS="$xorg_testset_save_CFLAGS"
17092 fi
17093
17094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17097 fi
17098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17100 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17101 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106 int i;
17107 _ACEOF
17108 if ac_fn_c_try_compile "$LINENO"; then :
17109 xorg_cv_cc_flag_unused_command_line_argument=yes
17110 else
17111 xorg_cv_cc_flag_unused_command_line_argument=no
17112 fi
17113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17116 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17118 CFLAGS="$xorg_testset_save_CFLAGS"
17119 fi
17120
17121 found="no"
17122
17123 if test $found = "no" ; then
17124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17126 fi
17127
17128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17130 fi
17131
17132 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17133
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17135 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17136 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17137 if eval \${$cacheid+:} false; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17142 int i;
17143 int
17144 main ()
17145 {
17146
17147 ;
17148 return 0;
17149 }
17150 _ACEOF
17151 if ac_fn_c_try_link "$LINENO"; then :
17152 eval $cacheid=yes
17153 else
17154 eval $cacheid=no
17155 fi
17156 rm -f core conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17158 fi
17159
17160
17161 CFLAGS="$xorg_testset_save_CFLAGS"
17162
17163 eval supported=\$$cacheid
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17165 $as_echo "$supported" >&6; }
17166 if test "$supported" = "yes" ; then
17167 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17168 found="yes"
17169 fi
17170 fi
17171
17172
17173 fi
17174
17175
17176
17177
17178
17179
17180
17181 CWARNFLAGS="$BASE_CFLAGS"
17182 if test "x$GCC" = xyes ; then
17183 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17184 fi
17185
17186
17187
17188
17189
17190
17191
17192
17193 # Check whether --enable-strict-compilation was given.
17194 if test "${enable_strict_compilation+set}" = set; then :
17195 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17196 else
17197 STRICT_COMPILE=no
17198 fi
17199
17200
17201
17202
17203
17204
17205 STRICT_CFLAGS=""
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219 xorg_testset_save_CFLAGS="$CFLAGS"
17220
17221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17224 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17225 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17226 $as_echo_n "(cached) " >&6
17227 else
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 int i;
17231 _ACEOF
17232 if ac_fn_c_try_compile "$LINENO"; then :
17233 xorg_cv_cc_flag_unknown_warning_option=yes
17234 else
17235 xorg_cv_cc_flag_unknown_warning_option=no
17236 fi
17237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17238 fi
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17240 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17242 CFLAGS="$xorg_testset_save_CFLAGS"
17243 fi
17244
17245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17248 fi
17249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17251 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17252 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17253 $as_echo_n "(cached) " >&6
17254 else
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 int i;
17258 _ACEOF
17259 if ac_fn_c_try_compile "$LINENO"; then :
17260 xorg_cv_cc_flag_unused_command_line_argument=yes
17261 else
17262 xorg_cv_cc_flag_unused_command_line_argument=no
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17265 fi
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17267 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17269 CFLAGS="$xorg_testset_save_CFLAGS"
17270 fi
17271
17272 found="no"
17273
17274 if test $found = "no" ; then
17275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17277 fi
17278
17279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17281 fi
17282
17283 CFLAGS="$CFLAGS -pedantic"
17284
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17286 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17287 cacheid=xorg_cv_cc_flag__pedantic
17288 if eval \${$cacheid+:} false; then :
17289 $as_echo_n "(cached) " >&6
17290 else
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17293 int i;
17294 int
17295 main ()
17296 {
17297
17298 ;
17299 return 0;
17300 }
17301 _ACEOF
17302 if ac_fn_c_try_link "$LINENO"; then :
17303 eval $cacheid=yes
17304 else
17305 eval $cacheid=no
17306 fi
17307 rm -f core conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17309 fi
17310
17311
17312 CFLAGS="$xorg_testset_save_CFLAGS"
17313
17314 eval supported=\$$cacheid
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17316 $as_echo "$supported" >&6; }
17317 if test "$supported" = "yes" ; then
17318 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17319 found="yes"
17320 fi
17321 fi
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337 xorg_testset_save_CFLAGS="$CFLAGS"
17338
17339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17344 $as_echo_n "(cached) " >&6
17345 else
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h. */
17348 int i;
17349 _ACEOF
17350 if ac_fn_c_try_compile "$LINENO"; then :
17351 xorg_cv_cc_flag_unknown_warning_option=yes
17352 else
17353 xorg_cv_cc_flag_unknown_warning_option=no
17354 fi
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 fi
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17360 CFLAGS="$xorg_testset_save_CFLAGS"
17361 fi
17362
17363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17366 fi
17367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17375 int i;
17376 _ACEOF
17377 if ac_fn_c_try_compile "$LINENO"; then :
17378 xorg_cv_cc_flag_unused_command_line_argument=yes
17379 else
17380 xorg_cv_cc_flag_unused_command_line_argument=no
17381 fi
17382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17383 fi
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17387 CFLAGS="$xorg_testset_save_CFLAGS"
17388 fi
17389
17390 found="no"
17391
17392 if test $found = "no" ; then
17393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17395 fi
17396
17397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17399 fi
17400
17401 CFLAGS="$CFLAGS -Werror"
17402
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17404 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17405 cacheid=xorg_cv_cc_flag__Werror
17406 if eval \${$cacheid+:} false; then :
17407 $as_echo_n "(cached) " >&6
17408 else
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411 int i;
17412 int
17413 main ()
17414 {
17415
17416 ;
17417 return 0;
17418 }
17419 _ACEOF
17420 if ac_fn_c_try_link "$LINENO"; then :
17421 eval $cacheid=yes
17422 else
17423 eval $cacheid=no
17424 fi
17425 rm -f core conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17427 fi
17428
17429
17430 CFLAGS="$xorg_testset_save_CFLAGS"
17431
17432 eval supported=\$$cacheid
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17434 $as_echo "$supported" >&6; }
17435 if test "$supported" = "yes" ; then
17436 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17437 found="yes"
17438 fi
17439 fi
17440
17441 if test $found = "no" ; then
17442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17444 fi
17445
17446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17448 fi
17449
17450 CFLAGS="$CFLAGS -errwarn"
17451
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17453 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17454 cacheid=xorg_cv_cc_flag__errwarn
17455 if eval \${$cacheid+:} false; then :
17456 $as_echo_n "(cached) " >&6
17457 else
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17460 int i;
17461 int
17462 main ()
17463 {
17464
17465 ;
17466 return 0;
17467 }
17468 _ACEOF
17469 if ac_fn_c_try_link "$LINENO"; then :
17470 eval $cacheid=yes
17471 else
17472 eval $cacheid=no
17473 fi
17474 rm -f core conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
17476 fi
17477
17478
17479 CFLAGS="$xorg_testset_save_CFLAGS"
17480
17481 eval supported=\$$cacheid
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17483 $as_echo "$supported" >&6; }
17484 if test "$supported" = "yes" ; then
17485 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17486 found="yes"
17487 fi
17488 fi
17489
17490
17491
17492 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17493 # activate it with -Werror, so we add it here explicitly.
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507 xorg_testset_save_CFLAGS="$CFLAGS"
17508
17509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518 int i;
17519 _ACEOF
17520 if ac_fn_c_try_compile "$LINENO"; then :
17521 xorg_cv_cc_flag_unknown_warning_option=yes
17522 else
17523 xorg_cv_cc_flag_unknown_warning_option=no
17524 fi
17525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526 fi
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17530 CFLAGS="$xorg_testset_save_CFLAGS"
17531 fi
17532
17533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17536 fi
17537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17541 $as_echo_n "(cached) " >&6
17542 else
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17545 int i;
17546 _ACEOF
17547 if ac_fn_c_try_compile "$LINENO"; then :
17548 xorg_cv_cc_flag_unused_command_line_argument=yes
17549 else
17550 xorg_cv_cc_flag_unused_command_line_argument=no
17551 fi
17552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17553 fi
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17557 CFLAGS="$xorg_testset_save_CFLAGS"
17558 fi
17559
17560 found="no"
17561
17562 if test $found = "no" ; then
17563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17565 fi
17566
17567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17569 fi
17570
17571 CFLAGS="$CFLAGS -Werror=attributes"
17572
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17574 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17575 cacheid=xorg_cv_cc_flag__Werror_attributes
17576 if eval \${$cacheid+:} false; then :
17577 $as_echo_n "(cached) " >&6
17578 else
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 int i;
17582 int
17583 main ()
17584 {
17585
17586 ;
17587 return 0;
17588 }
17589 _ACEOF
17590 if ac_fn_c_try_link "$LINENO"; then :
17591 eval $cacheid=yes
17592 else
17593 eval $cacheid=no
17594 fi
17595 rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597 fi
17598
17599
17600 CFLAGS="$xorg_testset_save_CFLAGS"
17601
17602 eval supported=\$$cacheid
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17604 $as_echo "$supported" >&6; }
17605 if test "$supported" = "yes" ; then
17606 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17607 found="yes"
17608 fi
17609 fi
17610
17611
17612
17613 if test "x$STRICT_COMPILE" = "xyes"; then
17614 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17615 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17616 fi
17617
17618
17619
17620
17621
17622
17623 cat >>confdefs.h <<_ACEOF
17624 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17625 _ACEOF
17626
17627 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17628 if test "x$PVM" = "x"; then
17629 PVM="0"
17630 fi
17631
17632 cat >>confdefs.h <<_ACEOF
17633 #define PACKAGE_VERSION_MINOR $PVM
17634 _ACEOF
17635
17636 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17637 if test "x$PVP" = "x"; then
17638 PVP="0"
17639 fi
17640
17641 cat >>confdefs.h <<_ACEOF
17642 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17643 _ACEOF
17644
17645
17646
17647 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17648 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17649 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17650 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17651
17652
17653
17654
17655 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17656 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17657 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17658 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17659 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17660
17661
17662
17663
17664
17665
17666 if test x$APP_MAN_SUFFIX = x ; then
17667 APP_MAN_SUFFIX=1
17668 fi
17669 if test x$APP_MAN_DIR = x ; then
17670 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17671 fi
17672
17673 if test x$LIB_MAN_SUFFIX = x ; then
17674 LIB_MAN_SUFFIX=3
17675 fi
17676 if test x$LIB_MAN_DIR = x ; then
17677 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17678 fi
17679
17680 if test x$FILE_MAN_SUFFIX = x ; then
17681 case $host_os in
17682 # Solaris 2.0 - 11 use SysV man page sections
17683 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
17684 *) FILE_MAN_SUFFIX=5 ;;
17685 esac
17686 fi
17687 if test x$FILE_MAN_DIR = x ; then
17688 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17689 fi
17690
17691 if test x$MISC_MAN_SUFFIX = x ; then
17692 case $host_os in
17693 # Solaris 2.0 - 11 use SysV man page sections
17694 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
17695 *) MISC_MAN_SUFFIX=7 ;;
17696 esac
17697 fi
17698 if test x$MISC_MAN_DIR = x ; then
17699 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17700 fi
17701
17702 if test x$DRIVER_MAN_SUFFIX = x ; then
17703 case $host_os in
17704 # Solaris 2.0 - 11 use SysV man page sections
17705 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
17706 *) DRIVER_MAN_SUFFIX=4 ;;
17707 esac
17708 fi
17709 if test x$DRIVER_MAN_DIR = x ; then
17710 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17711 fi
17712
17713 if test x$ADMIN_MAN_SUFFIX = x ; then
17714 case $host_os in
17715 # Solaris 2.0 - 11 use SysV man page sections
17716 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
17717 *) ADMIN_MAN_SUFFIX=8 ;;
17718 esac
17719 fi
17720 if test x$ADMIN_MAN_DIR = x ; then
17721 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17722 fi
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738 XORG_MAN_PAGE="X Version 11"
17739
17740 MAN_SUBSTS="\
17741 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17742 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17743 -e 's|__xservername__|Xorg|g' \
17744 -e 's|__xconfigfile__|xorg.conf|g' \
17745 -e 's|__projectroot__|\$(prefix)|g' \
17746 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17747 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17748 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17749 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17750 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17751 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17752 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17753
17754
17755
17756 # Check whether --enable-silent-rules was given.
17757 if test "${enable_silent_rules+set}" = set; then :
17758 enableval=$enable_silent_rules;
17759 fi
17760
17761 case $enable_silent_rules in # (((
17762 yes) AM_DEFAULT_VERBOSITY=0;;
17763 no) AM_DEFAULT_VERBOSITY=1;;
17764 *) AM_DEFAULT_VERBOSITY=0;;
17765 esac
17766 am_make=${MAKE-make}
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17768 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17769 if ${am_cv_make_support_nested_variables+:} false; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 if $as_echo 'TRUE=$(BAR$(V))
17773 BAR0=false
17774 BAR1=true
17775 V=1
17776 am__doit:
17777 @$(TRUE)
17778 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17779 am_cv_make_support_nested_variables=yes
17780 else
17781 am_cv_make_support_nested_variables=no
17782 fi
17783 fi
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17785 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17786 if test $am_cv_make_support_nested_variables = yes; then
17787 AM_V='$(V)'
17788 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17789 else
17790 AM_V=$AM_DEFAULT_VERBOSITY
17791 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17792 fi
17793 AM_BACKSLASH='\'
17794
17795
17796
17797 # Check whether --enable-malloc0returnsnull was given.
17798 if test "${enable_malloc0returnsnull+set}" = set; then :
17799 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17800 else
17801 MALLOC_ZERO_RETURNS_NULL=auto
17802 fi
17803
17804
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17806 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17807 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17808 if ${xorg_cv_malloc0_returns_null+:} false; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 if test "$cross_compiling" = yes; then :
17812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17814 as_fn_error $? "cannot run test program while cross compiling
17815 See \`config.log' for more details" "$LINENO" 5; }
17816 else
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819
17820 #include <stdlib.h>
17821
17822 int
17823 main ()
17824 {
17825
17826 char *m0, *r0, *c0, *p;
17827 m0 = malloc(0);
17828 p = malloc(10);
17829 r0 = realloc(p,0);
17830 c0 = calloc(0,10);
17831 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17832
17833 ;
17834 return 0;
17835 }
17836 _ACEOF
17837 if ac_fn_c_try_run "$LINENO"; then :
17838 xorg_cv_malloc0_returns_null=yes
17839 else
17840 xorg_cv_malloc0_returns_null=no
17841 fi
17842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17843 conftest.$ac_objext conftest.beam conftest.$ac_ext
17844 fi
17845
17846 fi
17847
17848 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
17849 fi
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17851 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17852
17853 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17854 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17855 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17856 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17857 else
17858 MALLOC_ZERO_CFLAGS=""
17859 XMALLOC_ZERO_CFLAGS=""
17860 XTMALLOC_ZERO_CFLAGS=""
17861 fi
17862
17863
17864
17865
17866
17867
17868 # Obtain compiler/linker options for depedencies
17869
17870 pkg_failed=no
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5
17872 $as_echo_n "checking for XV... " >&6; }
17873
17874 if test -n "$XV_CFLAGS"; then
17875 pkg_cv_XV_CFLAGS="$XV_CFLAGS"
17876 elif test -n "$PKG_CONFIG"; then
17877 if test -n "$PKG_CONFIG" && \
17878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5
17879 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5
17880 ac_status=$?
17881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17882 test $ac_status = 0; }; then
17883 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null`
17884 test "x$?" != "x0" && pkg_failed=yes
17885 else
17886 pkg_failed=yes
17887 fi
17888 else
17889 pkg_failed=untried
17890 fi
17891 if test -n "$XV_LIBS"; then
17892 pkg_cv_XV_LIBS="$XV_LIBS"
17893 elif test -n "$PKG_CONFIG"; then
17894 if test -n "$PKG_CONFIG" && \
17895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5
17896 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5
17897 ac_status=$?
17898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899 test $ac_status = 0; }; then
17900 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null`
17901 test "x$?" != "x0" && pkg_failed=yes
17902 else
17903 pkg_failed=yes
17904 fi
17905 else
17906 pkg_failed=untried
17907 fi
17908
17909
17910
17911 if test $pkg_failed = yes; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17913 $as_echo "no" >&6; }
17914
17915 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17916 _pkg_short_errors_supported=yes
17917 else
17918 _pkg_short_errors_supported=no
17919 fi
17920 if test $_pkg_short_errors_supported = yes; then
17921 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1`
17922 else
17923 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1`
17924 fi
17925 # Put the nasty error message in config.log where it belongs
17926 echo "$XV_PKG_ERRORS" >&5
17927
17928 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto videoproto) were not met:
17929
17930 $XV_PKG_ERRORS
17931
17932 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17933 installed software in a non-standard prefix.
17934
17935 Alternatively, you may set the environment variables XV_CFLAGS
17936 and XV_LIBS to avoid the need to call pkg-config.
17937 See the pkg-config man page for more details." "$LINENO" 5
17938 elif test $pkg_failed = untried; then
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940 $as_echo "no" >&6; }
17941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17943 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17944 is in your PATH or set the PKG_CONFIG environment variable to the full
17945 path to pkg-config.
17946
17947 Alternatively, you may set the environment variables XV_CFLAGS
17948 and XV_LIBS to avoid the need to call pkg-config.
17949 See the pkg-config man page for more details.
17950
17951 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17952 See \`config.log' for more details" "$LINENO" 5; }
17953 else
17954 XV_CFLAGS=$pkg_cv_XV_CFLAGS
17955 XV_LIBS=$pkg_cv_XV_LIBS
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17957 $as_echo "yes" >&6; }
17958
17959 fi
17960
17961 # Allow checking code with lint, sparse, etc.
17962
17963
17964
17965
17966
17967 # Check whether --with-lint was given.
17968 if test "${with_lint+set}" = set; then :
17969 withval=$with_lint; use_lint=$withval
17970 else
17971 use_lint=no
17972 fi
17973
17974
17975 # Obtain platform specific info like program name and options
17976 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17977 case $host_os in
17978 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17979 lint_name=splint
17980 lint_options="-badflag"
17981 ;;
17982 *freebsd* | *netbsd*)
17983 lint_name=lint
17984 lint_options="-u -b"
17985 ;;
17986 *solaris*)
17987 lint_name=lint
17988 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17989 ;;
17990 esac
17991
17992 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17993 if test "x$use_lint" = x"yes" ; then
17994 # Extract the first word of "$lint_name", so it can be a program name with args.
17995 set dummy $lint_name; ac_word=$2
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17997 $as_echo_n "checking for $ac_word... " >&6; }
17998 if ${ac_cv_path_LINT+:} false; then :
17999 $as_echo_n "(cached) " >&6
18000 else
18001 case $LINT in
18002 [\\/]* | ?:[\\/]*)
18003 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18004 ;;
18005 *)
18006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18007 for as_dir in $PATH
18008 do
18009 IFS=$as_save_IFS
18010 test -z "$as_dir" && as_dir=.
18011 for ac_exec_ext in '' $ac_executable_extensions; do
18012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18013 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18015 break 2
18016 fi
18017 done
18018 done
18019 IFS=$as_save_IFS
18020
18021 ;;
18022 esac
18023 fi
18024 LINT=$ac_cv_path_LINT
18025 if test -n "$LINT"; then
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18027 $as_echo "$LINT" >&6; }
18028 else
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030 $as_echo "no" >&6; }
18031 fi
18032
18033
18034 if test "x$LINT" = "x"; then
18035 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18036 fi
18037 elif test "x$use_lint" = x"no" ; then
18038 if test "x$LINT" != "x"; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18040 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18041 fi
18042 else
18043 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18044 fi
18045
18046 # User supplied flags override default flags
18047 if test "x$LINT_FLAGS" != "x"; then
18048 lint_options=$LINT_FLAGS
18049 fi
18050
18051 LINT_FLAGS=$lint_options
18052
18053 if test "x$LINT" != x; then
18054 LINT_TRUE=
18055 LINT_FALSE='#'
18056 else
18057 LINT_TRUE='#'
18058 LINT_FALSE=
18059 fi
18060
18061
18062
18063
18064
18065 # Check whether --enable-lint-library was given.
18066 if test "${enable_lint_library+set}" = set; then :
18067 enableval=$enable_lint_library; make_lint_lib=$enableval
18068 else
18069 make_lint_lib=no
18070 fi
18071
18072
18073 if test "x$make_lint_lib" = x"yes" ; then
18074 LINTLIB=llib-lXv.ln
18075 if test "x$LINT" = "x"; then
18076 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18077 fi
18078 elif test "x$make_lint_lib" != x"no" ; then
18079 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18080 fi
18081
18082
18083 if test x$make_lint_lib != xno; then
18084 MAKE_LINT_LIB_TRUE=
18085 MAKE_LINT_LIB_FALSE='#'
18086 else
18087 MAKE_LINT_LIB_TRUE='#'
18088 MAKE_LINT_LIB_FALSE=
18089 fi
18090
18091
18092
18093
18094 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc"
18095
18096 cat >confcache <<\_ACEOF
18097 # This file is a shell script that caches the results of configure
18098 # tests run on this system so they can be shared between configure
18099 # scripts and configure runs, see configure's option --config-cache.
18100 # It is not useful on other systems. If it contains results you don't
18101 # want to keep, you may remove or edit it.
18102 #
18103 # config.status only pays attention to the cache file if you give it
18104 # the --recheck option to rerun configure.
18105 #
18106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18108 # following values.
18109
18110 _ACEOF
18111
18112 # The following way of writing the cache mishandles newlines in values,
18113 # but we know of no workaround that is simple, portable, and efficient.
18114 # So, we kill variables containing newlines.
18115 # Ultrix sh set writes to stderr and can't be redirected directly,
18116 # and sets the high bit in the cache file unless we assign to the vars.
18117 (
18118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18119 eval ac_val=\$$ac_var
18120 case $ac_val in #(
18121 *${as_nl}*)
18122 case $ac_var in #(
18123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18125 esac
18126 case $ac_var in #(
18127 _ | IFS | as_nl) ;; #(
18128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18129 *) { eval $ac_var=; unset $ac_var;} ;;
18130 esac ;;
18131 esac
18132 done
18133
18134 (set) 2>&1 |
18135 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18136 *${as_nl}ac_space=\ *)
18137 # `set' does not quote correctly, so add quotes: double-quote
18138 # substitution turns \\\\ into \\, and sed turns \\ into \.
18139 sed -n \
18140 "s/'/'\\\\''/g;
18141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18142 ;; #(
18143 *)
18144 # `set' quotes correctly as required by POSIX, so do not add quotes.
18145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18146 ;;
18147 esac |
18148 sort
18149 ) |
18150 sed '
18151 /^ac_cv_env_/b end
18152 t clear
18153 :clear
18154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18155 t end
18156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18157 :end' >>confcache
18158 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18159 if test -w "$cache_file"; then
18160 if test "x$cache_file" != "x/dev/null"; then
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18162 $as_echo "$as_me: updating cache $cache_file" >&6;}
18163 if test ! -f "$cache_file" || test -h "$cache_file"; then
18164 cat confcache >"$cache_file"
18165 else
18166 case $cache_file in #(
18167 */* | ?:*)
18168 mv -f confcache "$cache_file"$$ &&
18169 mv -f "$cache_file"$$ "$cache_file" ;; #(
18170 *)
18171 mv -f confcache "$cache_file" ;;
18172 esac
18173 fi
18174 fi
18175 else
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18177 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18178 fi
18179 fi
18180 rm -f confcache
18181
18182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18183 # Let make expand exec_prefix.
18184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18185
18186 DEFS=-DHAVE_CONFIG_H
18187
18188 ac_libobjs=
18189 ac_ltlibobjs=
18190 U=
18191 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18192 # 1. Remove the extension, and $U if already installed.
18193 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18194 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18195 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18196 # will be set to the directory where LIBOBJS objects are built.
18197 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18198 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18199 done
18200 LIBOBJS=$ac_libobjs
18201
18202 LTLIBOBJS=$ac_ltlibobjs
18203
18204
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18206 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18207 if test -n "$am_sleep_pid"; then
18208 # Hide warnings about reused PIDs.
18209 wait $am_sleep_pid 2>/dev/null
18210 fi
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18212 $as_echo "done" >&6; }
18213 if test -n "$EXEEXT"; then
18214 am__EXEEXT_TRUE=
18215 am__EXEEXT_FALSE='#'
18216 else
18217 am__EXEEXT_TRUE='#'
18218 am__EXEEXT_FALSE=
18219 fi
18220
18221 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18222 as_fn_error $? "conditional \"AMDEP\" was never defined.
18223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18224 fi
18225 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18226 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18228 fi
18229 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18230 as_fn_error $? "conditional \"LINT\" was never defined.
18231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18232 fi
18233 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18234 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18236 fi
18237
18238 : "${CONFIG_STATUS=./config.status}"
18239 ac_write_fail=0
18240 ac_clean_files_save=$ac_clean_files
18241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18243 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18244 as_write_fail=0
18245 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18246 #! $SHELL
18247 # Generated by $as_me.
18248 # Run this file to recreate the current configuration.
18249 # Compiler output produced by configure, useful for debugging
18250 # configure, is in config.log if it exists.
18251
18252 debug=false
18253 ac_cs_recheck=false
18254 ac_cs_silent=false
18255
18256 SHELL=\${CONFIG_SHELL-$SHELL}
18257 export SHELL
18258 _ASEOF
18259 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18260 ## -------------------- ##
18261 ## M4sh Initialization. ##
18262 ## -------------------- ##
18263
18264 # Be more Bourne compatible
18265 DUALCASE=1; export DUALCASE # for MKS sh
18266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18267 emulate sh
18268 NULLCMD=:
18269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18270 # is contrary to our usage. Disable this feature.
18271 alias -g '${1+"$@"}'='"$@"'
18272 setopt NO_GLOB_SUBST
18273 else
18274 case `(set -o) 2>/dev/null` in #(
18275 *posix*) :
18276 set -o posix ;; #(
18277 *) :
18278 ;;
18279 esac
18280 fi
18281
18282
18283 as_nl='
18284 '
18285 export as_nl
18286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18290 # Prefer a ksh shell builtin over an external printf program on Solaris,
18291 # but without wasting forks for bash or zsh.
18292 if test -z "$BASH_VERSION$ZSH_VERSION" \
18293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18294 as_echo='print -r --'
18295 as_echo_n='print -rn --'
18296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18297 as_echo='printf %s\n'
18298 as_echo_n='printf %s'
18299 else
18300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18302 as_echo_n='/usr/ucb/echo -n'
18303 else
18304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18305 as_echo_n_body='eval
18306 arg=$1;
18307 case $arg in #(
18308 *"$as_nl"*)
18309 expr "X$arg" : "X\\(.*\\)$as_nl";
18310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18311 esac;
18312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18313 '
18314 export as_echo_n_body
18315 as_echo_n='sh -c $as_echo_n_body as_echo'
18316 fi
18317 export as_echo_body
18318 as_echo='sh -c $as_echo_body as_echo'
18319 fi
18320
18321 # The user is always right.
18322 if test "${PATH_SEPARATOR+set}" != set; then
18323 PATH_SEPARATOR=:
18324 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18325 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18326 PATH_SEPARATOR=';'
18327 }
18328 fi
18329
18330
18331 # IFS
18332 # We need space, tab and new line, in precisely that order. Quoting is
18333 # there to prevent editors from complaining about space-tab.
18334 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18335 # splitting by setting IFS to empty value.)
18336 IFS=" "" $as_nl"
18337
18338 # Find who we are. Look in the path if we contain no directory separator.
18339 as_myself=
18340 case $0 in #((
18341 *[\\/]* ) as_myself=$0 ;;
18342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18343 for as_dir in $PATH
18344 do
18345 IFS=$as_save_IFS
18346 test -z "$as_dir" && as_dir=.
18347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18348 done
18349 IFS=$as_save_IFS
18350
18351 ;;
18352 esac
18353 # We did not find ourselves, most probably we were run as `sh COMMAND'
18354 # in which case we are not to be found in the path.
18355 if test "x$as_myself" = x; then
18356 as_myself=$0
18357 fi
18358 if test ! -f "$as_myself"; then
18359 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18360 exit 1
18361 fi
18362
18363 # Unset variables that we do not need and which cause bugs (e.g. in
18364 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18365 # suppresses any "Segmentation fault" message there. '((' could
18366 # trigger a bug in pdksh 5.2.14.
18367 for as_var in BASH_ENV ENV MAIL MAILPATH
18368 do eval test x\${$as_var+set} = xset \
18369 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18370 done
18371 PS1='$ '
18372 PS2='> '
18373 PS4='+ '
18374
18375 # NLS nuisances.
18376 LC_ALL=C
18377 export LC_ALL
18378 LANGUAGE=C
18379 export LANGUAGE
18380
18381 # CDPATH.
18382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18383
18384
18385 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18386 # ----------------------------------------
18387 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18388 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18389 # script with STATUS, using 1 if that was 0.
18390 as_fn_error ()
18391 {
18392 as_status=$1; test $as_status -eq 0 && as_status=1
18393 if test "$4"; then
18394 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18395 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18396 fi
18397 $as_echo "$as_me: error: $2" >&2
18398 as_fn_exit $as_status
18399 } # as_fn_error
18400
18401
18402 # as_fn_set_status STATUS
18403 # -----------------------
18404 # Set $? to STATUS, without forking.
18405 as_fn_set_status ()
18406 {
18407 return $1
18408 } # as_fn_set_status
18409
18410 # as_fn_exit STATUS
18411 # -----------------
18412 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18413 as_fn_exit ()
18414 {
18415 set +e
18416 as_fn_set_status $1
18417 exit $1
18418 } # as_fn_exit
18419
18420 # as_fn_unset VAR
18421 # ---------------
18422 # Portably unset VAR.
18423 as_fn_unset ()
18424 {
18425 { eval $1=; unset $1;}
18426 }
18427 as_unset=as_fn_unset
18428 # as_fn_append VAR VALUE
18429 # ----------------------
18430 # Append the text in VALUE to the end of the definition contained in VAR. Take
18431 # advantage of any shell optimizations that allow amortized linear growth over
18432 # repeated appends, instead of the typical quadratic growth present in naive
18433 # implementations.
18434 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18435 eval 'as_fn_append ()
18436 {
18437 eval $1+=\$2
18438 }'
18439 else
18440 as_fn_append ()
18441 {
18442 eval $1=\$$1\$2
18443 }
18444 fi # as_fn_append
18445
18446 # as_fn_arith ARG...
18447 # ------------------
18448 # Perform arithmetic evaluation on the ARGs, and store the result in the
18449 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18450 # must be portable across $(()) and expr.
18451 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18452 eval 'as_fn_arith ()
18453 {
18454 as_val=$(( $* ))
18455 }'
18456 else
18457 as_fn_arith ()
18458 {
18459 as_val=`expr "$@" || test $? -eq 1`
18460 }
18461 fi # as_fn_arith
18462
18463
18464 if expr a : '\(a\)' >/dev/null 2>&1 &&
18465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18466 as_expr=expr
18467 else
18468 as_expr=false
18469 fi
18470
18471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18472 as_basename=basename
18473 else
18474 as_basename=false
18475 fi
18476
18477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18478 as_dirname=dirname
18479 else
18480 as_dirname=false
18481 fi
18482
18483 as_me=`$as_basename -- "$0" ||
18484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18485 X"$0" : 'X\(//\)$' \| \
18486 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18487 $as_echo X/"$0" |
18488 sed '/^.*\/\([^/][^/]*\)\/*$/{
18489 s//\1/
18490 q
18491 }
18492 /^X\/\(\/\/\)$/{
18493 s//\1/
18494 q
18495 }
18496 /^X\/\(\/\).*/{
18497 s//\1/
18498 q
18499 }
18500 s/.*/./; q'`
18501
18502 # Avoid depending upon Character Ranges.
18503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18506 as_cr_digits='0123456789'
18507 as_cr_alnum=$as_cr_Letters$as_cr_digits
18508
18509 ECHO_C= ECHO_N= ECHO_T=
18510 case `echo -n x` in #(((((
18511 -n*)
18512 case `echo 'xy\c'` in
18513 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18514 xy) ECHO_C='\c';;
18515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18516 ECHO_T=' ';;
18517 esac;;
18518 *)
18519 ECHO_N='-n';;
18520 esac
18521
18522 rm -f conf$$ conf$$.exe conf$$.file
18523 if test -d conf$$.dir; then
18524 rm -f conf$$.dir/conf$$.file
18525 else
18526 rm -f conf$$.dir
18527 mkdir conf$$.dir 2>/dev/null
18528 fi
18529 if (echo >conf$$.file) 2>/dev/null; then
18530 if ln -s conf$$.file conf$$ 2>/dev/null; then
18531 as_ln_s='ln -s'
18532 # ... but there are two gotchas:
18533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18535 # In both cases, we have to default to `cp -pR'.
18536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18537 as_ln_s='cp -pR'
18538 elif ln conf$$.file conf$$ 2>/dev/null; then
18539 as_ln_s=ln
18540 else
18541 as_ln_s='cp -pR'
18542 fi
18543 else
18544 as_ln_s='cp -pR'
18545 fi
18546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18547 rmdir conf$$.dir 2>/dev/null
18548
18549
18550 # as_fn_mkdir_p
18551 # -------------
18552 # Create "$as_dir" as a directory, including parents if necessary.
18553 as_fn_mkdir_p ()
18554 {
18555
18556 case $as_dir in #(
18557 -*) as_dir=./$as_dir;;
18558 esac
18559 test -d "$as_dir" || eval $as_mkdir_p || {
18560 as_dirs=
18561 while :; do
18562 case $as_dir in #(
18563 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18564 *) as_qdir=$as_dir;;
18565 esac
18566 as_dirs="'$as_qdir' $as_dirs"
18567 as_dir=`$as_dirname -- "$as_dir" ||
18568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18569 X"$as_dir" : 'X\(//\)[^/]' \| \
18570 X"$as_dir" : 'X\(//\)$' \| \
18571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18572 $as_echo X"$as_dir" |
18573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18574 s//\1/
18575 q
18576 }
18577 /^X\(\/\/\)[^/].*/{
18578 s//\1/
18579 q
18580 }
18581 /^X\(\/\/\)$/{
18582 s//\1/
18583 q
18584 }
18585 /^X\(\/\).*/{
18586 s//\1/
18587 q
18588 }
18589 s/.*/./; q'`
18590 test -d "$as_dir" && break
18591 done
18592 test -z "$as_dirs" || eval "mkdir $as_dirs"
18593 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18594
18595
18596 } # as_fn_mkdir_p
18597 if mkdir -p . 2>/dev/null; then
18598 as_mkdir_p='mkdir -p "$as_dir"'
18599 else
18600 test -d ./-p && rmdir ./-p
18601 as_mkdir_p=false
18602 fi
18603
18604
18605 # as_fn_executable_p FILE
18606 # -----------------------
18607 # Test if FILE is an executable regular file.
18608 as_fn_executable_p ()
18609 {
18610 test -f "$1" && test -x "$1"
18611 } # as_fn_executable_p
18612 as_test_x='test -x'
18613 as_executable_p=as_fn_executable_p
18614
18615 # Sed expression to map a string onto a valid CPP name.
18616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18617
18618 # Sed expression to map a string onto a valid variable name.
18619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18620
18621
18622 exec 6>&1
18623 ## ----------------------------------- ##
18624 ## Main body of $CONFIG_STATUS script. ##
18625 ## ----------------------------------- ##
18626 _ASEOF
18627 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18628
18629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18630 # Save the log message, to keep $0 and so on meaningful, and to
18631 # report actual input values of CONFIG_FILES etc. instead of their
18632 # values after options handling.
18633 ac_log="
18634 This file was extended by libXv $as_me 1.0.11, which was
18635 generated by GNU Autoconf 2.69. Invocation command line was
18636
18637 CONFIG_FILES = $CONFIG_FILES
18638 CONFIG_HEADERS = $CONFIG_HEADERS
18639 CONFIG_LINKS = $CONFIG_LINKS
18640 CONFIG_COMMANDS = $CONFIG_COMMANDS
18641 $ $0 $@
18642
18643 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18644 "
18645
18646 _ACEOF
18647
18648 case $ac_config_files in *"
18649 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18650 esac
18651
18652 case $ac_config_headers in *"
18653 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18654 esac
18655
18656
18657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18658 # Files that config.status was made for.
18659 config_files="$ac_config_files"
18660 config_headers="$ac_config_headers"
18661 config_commands="$ac_config_commands"
18662
18663 _ACEOF
18664
18665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18666 ac_cs_usage="\
18667 \`$as_me' instantiates files and other configuration actions
18668 from templates according to the current configuration. Unless the files
18669 and actions are specified as TAGs, all are instantiated by default.
18670
18671 Usage: $0 [OPTION]... [TAG]...
18672
18673 -h, --help print this help, then exit
18674 -V, --version print version number and configuration settings, then exit
18675 --config print configuration, then exit
18676 -q, --quiet, --silent
18677 do not print progress messages
18678 -d, --debug don't remove temporary files
18679 --recheck update $as_me by reconfiguring in the same conditions
18680 --file=FILE[:TEMPLATE]
18681 instantiate the configuration file FILE
18682 --header=FILE[:TEMPLATE]
18683 instantiate the configuration header FILE
18684
18685 Configuration files:
18686 $config_files
18687
18688 Configuration headers:
18689 $config_headers
18690
18691 Configuration commands:
18692 $config_commands
18693
18694 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18695
18696 _ACEOF
18697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18698 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18699 ac_cs_version="\\
18700 libXv config.status 1.0.11
18701 configured by $0, generated by GNU Autoconf 2.69,
18702 with options \\"\$ac_cs_config\\"
18703
18704 Copyright (C) 2012 Free Software Foundation, Inc.
18705 This config.status script is free software; the Free Software Foundation
18706 gives unlimited permission to copy, distribute and modify it."
18707
18708 ac_pwd='$ac_pwd'
18709 srcdir='$srcdir'
18710 INSTALL='$INSTALL'
18711 MKDIR_P='$MKDIR_P'
18712 AWK='$AWK'
18713 test -n "\$AWK" || AWK=awk
18714 _ACEOF
18715
18716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18717 # The default lists apply if the user does not specify any file.
18718 ac_need_defaults=:
18719 while test $# != 0
18720 do
18721 case $1 in
18722 --*=?*)
18723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18725 ac_shift=:
18726 ;;
18727 --*=)
18728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18729 ac_optarg=
18730 ac_shift=:
18731 ;;
18732 *)
18733 ac_option=$1
18734 ac_optarg=$2
18735 ac_shift=shift
18736 ;;
18737 esac
18738
18739 case $ac_option in
18740 # Handling of the options.
18741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18742 ac_cs_recheck=: ;;
18743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18744 $as_echo "$ac_cs_version"; exit ;;
18745 --config | --confi | --conf | --con | --co | --c )
18746 $as_echo "$ac_cs_config"; exit ;;
18747 --debug | --debu | --deb | --de | --d | -d )
18748 debug=: ;;
18749 --file | --fil | --fi | --f )
18750 $ac_shift
18751 case $ac_optarg in
18752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18753 '') as_fn_error $? "missing file argument" ;;
18754 esac
18755 as_fn_append CONFIG_FILES " '$ac_optarg'"
18756 ac_need_defaults=false;;
18757 --header | --heade | --head | --hea )
18758 $ac_shift
18759 case $ac_optarg in
18760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18761 esac
18762 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18763 ac_need_defaults=false;;
18764 --he | --h)
18765 # Conflict between --help and --header
18766 as_fn_error $? "ambiguous option: \`$1'
18767 Try \`$0 --help' for more information.";;
18768 --help | --hel | -h )
18769 $as_echo "$ac_cs_usage"; exit ;;
18770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18772 ac_cs_silent=: ;;
18773
18774 # This is an error.
18775 -*) as_fn_error $? "unrecognized option: \`$1'
18776 Try \`$0 --help' for more information." ;;
18777
18778 *) as_fn_append ac_config_targets " $1"
18779 ac_need_defaults=false ;;
18780
18781 esac
18782 shift
18783 done
18784
18785 ac_configure_extra_args=
18786
18787 if $ac_cs_silent; then
18788 exec 6>/dev/null
18789 ac_configure_extra_args="$ac_configure_extra_args --silent"
18790 fi
18791
18792 _ACEOF
18793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18794 if \$ac_cs_recheck; then
18795 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18796 shift
18797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18798 CONFIG_SHELL='$SHELL'
18799 export CONFIG_SHELL
18800 exec "\$@"
18801 fi
18802
18803 _ACEOF
18804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805 exec 5>>config.log
18806 {
18807 echo
18808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18809 ## Running $as_me. ##
18810 _ASBOX
18811 $as_echo "$ac_log"
18812 } >&5
18813
18814 _ACEOF
18815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18816 #
18817 # INIT-COMMANDS
18818 #
18819 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18820
18821
18822 # The HP-UX ksh and POSIX shell print the target directory to stdout
18823 # if CDPATH is set.
18824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18825
18826 sed_quote_subst='$sed_quote_subst'
18827 double_quote_subst='$double_quote_subst'
18828 delay_variable_subst='$delay_variable_subst'
18829 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18830 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18831 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18832 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18833 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18834 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18835 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18836 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18837 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18838 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18839 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18840 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18841 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18842 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18843 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18844 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18845 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18846 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18847 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18848 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18849 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18850 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18851 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18852 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18853 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18854 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18855 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18856 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18857 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18858 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18859 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18860 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18861 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18862 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18863 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18864 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18865 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18866 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18867 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18868 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18869 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18870 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18871 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18872 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18873 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18874 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18875 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18876 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18877 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18878 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18879 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18880 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18881 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18882 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18883 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18884 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18885 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18886 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18887 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18888 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18889 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18890 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18891 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18892 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18893 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18894 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18895 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18896 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18897 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18898 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18899 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18900 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18901 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18902 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18903 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18904 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18905 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18906 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18907 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18908 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18909 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18910 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18911 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18912 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18913 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18914 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18915 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18916 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18917 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18918 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18919 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18920 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18921 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18922 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18923 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18924 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18925 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18926 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18927 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18928 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18929 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18930 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18931 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18932 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18933 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18934 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18935 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18936 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18937 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18938 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18939 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18940 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18941 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18942 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18943 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18944 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18945 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18946 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18947 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18948 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18949 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18950 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18951 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18952 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18953 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18954 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18955 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18956 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18957 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18958 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18959
18960 LTCC='$LTCC'
18961 LTCFLAGS='$LTCFLAGS'
18962 compiler='$compiler_DEFAULT'
18963
18964 # A function that is used when there is no print builtin or printf.
18965 func_fallback_echo ()
18966 {
18967 eval 'cat <<_LTECHO_EOF
18968 \$1
18969 _LTECHO_EOF'
18970 }
18971
18972 # Quote evaled strings.
18973 for var in SHELL \
18974 ECHO \
18975 PATH_SEPARATOR \
18976 SED \
18977 GREP \
18978 EGREP \
18979 FGREP \
18980 LD \
18981 NM \
18982 LN_S \
18983 lt_SP2NL \
18984 lt_NL2SP \
18985 reload_flag \
18986 OBJDUMP \
18987 deplibs_check_method \
18988 file_magic_cmd \
18989 file_magic_glob \
18990 want_nocaseglob \
18991 DLLTOOL \
18992 sharedlib_from_linklib_cmd \
18993 AR \
18994 AR_FLAGS \
18995 archiver_list_spec \
18996 STRIP \
18997 RANLIB \
18998 CC \
18999 CFLAGS \
19000 compiler \
19001 lt_cv_sys_global_symbol_pipe \
19002 lt_cv_sys_global_symbol_to_cdecl \
19003 lt_cv_sys_global_symbol_to_c_name_address \
19004 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19005 nm_file_list_spec \
19006 lt_prog_compiler_no_builtin_flag \
19007 lt_prog_compiler_pic \
19008 lt_prog_compiler_wl \
19009 lt_prog_compiler_static \
19010 lt_cv_prog_compiler_c_o \
19011 need_locks \
19012 MANIFEST_TOOL \
19013 DSYMUTIL \
19014 NMEDIT \
19015 LIPO \
19016 OTOOL \
19017 OTOOL64 \
19018 shrext_cmds \
19019 export_dynamic_flag_spec \
19020 whole_archive_flag_spec \
19021 compiler_needs_object \
19022 with_gnu_ld \
19023 allow_undefined_flag \
19024 no_undefined_flag \
19025 hardcode_libdir_flag_spec \
19026 hardcode_libdir_separator \
19027 exclude_expsyms \
19028 include_expsyms \
19029 file_list_spec \
19030 variables_saved_for_relink \
19031 libname_spec \
19032 library_names_spec \
19033 soname_spec \
19034 install_override_mode \
19035 finish_eval \
19036 old_striplib \
19037 striplib; do
19038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19039 *[\\\\\\\`\\"\\\$]*)
19040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19041 ;;
19042 *)
19043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19044 ;;
19045 esac
19046 done
19047
19048 # Double-quote double-evaled strings.
19049 for var in reload_cmds \
19050 old_postinstall_cmds \
19051 old_postuninstall_cmds \
19052 old_archive_cmds \
19053 extract_expsyms_cmds \
19054 old_archive_from_new_cmds \
19055 old_archive_from_expsyms_cmds \
19056 archive_cmds \
19057 archive_expsym_cmds \
19058 module_cmds \
19059 module_expsym_cmds \
19060 export_symbols_cmds \
19061 prelink_cmds \
19062 postlink_cmds \
19063 postinstall_cmds \
19064 postuninstall_cmds \
19065 finish_cmds \
19066 sys_lib_search_path_spec \
19067 sys_lib_dlsearch_path_spec; do
19068 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19069 *[\\\\\\\`\\"\\\$]*)
19070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19071 ;;
19072 *)
19073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19074 ;;
19075 esac
19076 done
19077
19078 ac_aux_dir='$ac_aux_dir'
19079 xsi_shell='$xsi_shell'
19080 lt_shell_append='$lt_shell_append'
19081
19082 # See if we are running on zsh, and set the options which allow our
19083 # commands through without removal of \ escapes INIT.
19084 if test -n "\${ZSH_VERSION+set}" ; then
19085 setopt NO_GLOB_SUBST
19086 fi
19087
19088
19089 PACKAGE='$PACKAGE'
19090 VERSION='$VERSION'
19091 TIMESTAMP='$TIMESTAMP'
19092 RM='$RM'
19093 ofile='$ofile'
19094
19095
19096
19097
19098 _ACEOF
19099
19100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19101
19102 # Handling of arguments.
19103 for ac_config_target in $ac_config_targets
19104 do
19105 case $ac_config_target in
19106 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19107 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19108 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19110 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19111 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
19112 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
19113 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19114 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19115 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;;
19116
19117 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19118 esac
19119 done
19120
19121
19122 # If the user did not use the arguments to specify the items to instantiate,
19123 # then the envvar interface is used. Set only those that are not.
19124 # We use the long form for the default assignment because of an extremely
19125 # bizarre bug on SunOS 4.1.3.
19126 if $ac_need_defaults; then
19127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19130 fi
19131
19132 # Have a temporary directory for convenience. Make it in the build tree
19133 # simply because there is no reason against having it here, and in addition,
19134 # creating and moving files from /tmp can sometimes cause problems.
19135 # Hook for its removal unless debugging.
19136 # Note that there is a small window in which the directory will not be cleaned:
19137 # after its creation but before its name has been assigned to `$tmp'.
19138 $debug ||
19139 {
19140 tmp= ac_tmp=
19141 trap 'exit_status=$?
19142 : "${ac_tmp:=$tmp}"
19143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19144 ' 0
19145 trap 'as_fn_exit 1' 1 2 13 15
19146 }
19147 # Create a (secure) tmp directory for tmp files.
19148
19149 {
19150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19151 test -d "$tmp"
19152 } ||
19153 {
19154 tmp=./conf$$-$RANDOM
19155 (umask 077 && mkdir "$tmp")
19156 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19157 ac_tmp=$tmp
19158
19159 # Set up the scripts for CONFIG_FILES section.
19160 # No need to generate them if there are no CONFIG_FILES.
19161 # This happens for instance with `./config.status config.h'.
19162 if test -n "$CONFIG_FILES"; then
19163
19164
19165 ac_cr=`echo X | tr X '\015'`
19166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19167 # But we know of no other shell where ac_cr would be empty at this
19168 # point, so we can use a bashism as a fallback.
19169 if test "x$ac_cr" = x; then
19170 eval ac_cr=\$\'\\r\'
19171 fi
19172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19174 ac_cs_awk_cr='\\r'
19175 else
19176 ac_cs_awk_cr=$ac_cr
19177 fi
19178
19179 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19180 _ACEOF
19181
19182
19183 {
19184 echo "cat >conf$$subs.awk <<_ACEOF" &&
19185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19186 echo "_ACEOF"
19187 } >conf$$subs.sh ||
19188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19190 ac_delim='%!_!# '
19191 for ac_last_try in false false false false false :; do
19192 . ./conf$$subs.sh ||
19193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19194
19195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19196 if test $ac_delim_n = $ac_delim_num; then
19197 break
19198 elif $ac_last_try; then
19199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19200 else
19201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19202 fi
19203 done
19204 rm -f conf$$subs.sh
19205
19206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19208 _ACEOF
19209 sed -n '
19210 h
19211 s/^/S["/; s/!.*/"]=/
19212 p
19213 g
19214 s/^[^!]*!//
19215 :repl
19216 t repl
19217 s/'"$ac_delim"'$//
19218 t delim
19219 :nl
19220 h
19221 s/\(.\{148\}\)..*/\1/
19222 t more1
19223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19224 p
19225 n
19226 b repl
19227 :more1
19228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19229 p
19230 g
19231 s/.\{148\}//
19232 t nl
19233 :delim
19234 h
19235 s/\(.\{148\}\)..*/\1/
19236 t more2
19237 s/["\\]/\\&/g; s/^/"/; s/$/"/
19238 p
19239 b
19240 :more2
19241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19242 p
19243 g
19244 s/.\{148\}//
19245 t delim
19246 ' <conf$$subs.awk | sed '
19247 /^[^""]/{
19248 N
19249 s/\n//
19250 }
19251 ' >>$CONFIG_STATUS || ac_write_fail=1
19252 rm -f conf$$subs.awk
19253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19254 _ACAWK
19255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19256 for (key in S) S_is_set[key] = 1
19257 FS = ""
19258
19259 }
19260 {
19261 line = $ 0
19262 nfields = split(line, field, "@")
19263 substed = 0
19264 len = length(field[1])
19265 for (i = 2; i < nfields; i++) {
19266 key = field[i]
19267 keylen = length(key)
19268 if (S_is_set[key]) {
19269 value = S[key]
19270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19271 len += length(value) + length(field[++i])
19272 substed = 1
19273 } else
19274 len += 1 + keylen
19275 }
19276
19277 print line
19278 }
19279
19280 _ACAWK
19281 _ACEOF
19282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19283 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19285 else
19286 cat
19287 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19289 _ACEOF
19290
19291 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19292 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19293 # trailing colons and then remove the whole line if VPATH becomes empty
19294 # (actually we leave an empty line to preserve line numbers).
19295 if test "x$srcdir" = x.; then
19296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19297 h
19298 s///
19299 s/^/:/
19300 s/[ ]*$/:/
19301 s/:\$(srcdir):/:/g
19302 s/:\${srcdir}:/:/g
19303 s/:@srcdir@:/:/g
19304 s/^:*//
19305 s/:*$//
19306 x
19307 s/\(=[ ]*\).*/\1/
19308 G
19309 s/\n//
19310 s/^[^=]*=[ ]*$//
19311 }'
19312 fi
19313
19314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19315 fi # test -n "$CONFIG_FILES"
19316
19317 # Set up the scripts for CONFIG_HEADERS section.
19318 # No need to generate them if there are no CONFIG_HEADERS.
19319 # This happens for instance with `./config.status Makefile'.
19320 if test -n "$CONFIG_HEADERS"; then
19321 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19322 BEGIN {
19323 _ACEOF
19324
19325 # Transform confdefs.h into an awk script `defines.awk', embedded as
19326 # here-document in config.status, that substitutes the proper values into
19327 # config.h.in to produce config.h.
19328
19329 # Create a delimiter string that does not exist in confdefs.h, to ease
19330 # handling of long lines.
19331 ac_delim='%!_!# '
19332 for ac_last_try in false false :; do
19333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19334 if test -z "$ac_tt"; then
19335 break
19336 elif $ac_last_try; then
19337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19338 else
19339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19340 fi
19341 done
19342
19343 # For the awk script, D is an array of macro values keyed by name,
19344 # likewise P contains macro parameters if any. Preserve backslash
19345 # newline sequences.
19346
19347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19348 sed -n '
19349 s/.\{148\}/&'"$ac_delim"'/g
19350 t rset
19351 :rset
19352 s/^[ ]*#[ ]*define[ ][ ]*/ /
19353 t def
19354 d
19355 :def
19356 s/\\$//
19357 t bsnl
19358 s/["\\]/\\&/g
19359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19360 D["\1"]=" \3"/p
19361 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19362 d
19363 :bsnl
19364 s/["\\]/\\&/g
19365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19366 D["\1"]=" \3\\\\\\n"\\/p
19367 t cont
19368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19369 t cont
19370 d
19371 :cont
19372 n
19373 s/.\{148\}/&'"$ac_delim"'/g
19374 t clear
19375 :clear
19376 s/\\$//
19377 t bsnlc
19378 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19379 d
19380 :bsnlc
19381 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19382 b cont
19383 ' <confdefs.h | sed '
19384 s/'"$ac_delim"'/"\\\
19385 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19386
19387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19388 for (key in D) D_is_set[key] = 1
19389 FS = ""
19390 }
19391 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19392 line = \$ 0
19393 split(line, arg, " ")
19394 if (arg[1] == "#") {
19395 defundef = arg[2]
19396 mac1 = arg[3]
19397 } else {
19398 defundef = substr(arg[1], 2)
19399 mac1 = arg[2]
19400 }
19401 split(mac1, mac2, "(") #)
19402 macro = mac2[1]
19403 prefix = substr(line, 1, index(line, defundef) - 1)
19404 if (D_is_set[macro]) {
19405 # Preserve the white space surrounding the "#".
19406 print prefix "define", macro P[macro] D[macro]
19407 next
19408 } else {
19409 # Replace #undef with comments. This is necessary, for example,
19410 # in the case of _POSIX_SOURCE, which is predefined and required
19411 # on some systems where configure will not decide to define it.
19412 if (defundef == "undef") {
19413 print "/*", prefix defundef, macro, "*/"
19414 next
19415 }
19416 }
19417 }
19418 { print }
19419 _ACAWK
19420 _ACEOF
19421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19423 fi # test -n "$CONFIG_HEADERS"
19424
19425
19426 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19427 shift
19428 for ac_tag
19429 do
19430 case $ac_tag in
19431 :[FHLC]) ac_mode=$ac_tag; continue;;
19432 esac
19433 case $ac_mode$ac_tag in
19434 :[FHL]*:*);;
19435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19436 :[FH]-) ac_tag=-:-;;
19437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19438 esac
19439 ac_save_IFS=$IFS
19440 IFS=:
19441 set x $ac_tag
19442 IFS=$ac_save_IFS
19443 shift
19444 ac_file=$1
19445 shift
19446
19447 case $ac_mode in
19448 :L) ac_source=$1;;
19449 :[FH])
19450 ac_file_inputs=
19451 for ac_f
19452 do
19453 case $ac_f in
19454 -) ac_f="$ac_tmp/stdin";;
19455 *) # Look for the file first in the build tree, then in the source tree
19456 # (if the path is not absolute). The absolute path cannot be DOS-style,
19457 # because $ac_f cannot contain `:'.
19458 test -f "$ac_f" ||
19459 case $ac_f in
19460 [\\/$]*) false;;
19461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19462 esac ||
19463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19464 esac
19465 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19466 as_fn_append ac_file_inputs " '$ac_f'"
19467 done
19468
19469 # Let's still pretend it is `configure' which instantiates (i.e., don't
19470 # use $as_me), people would be surprised to read:
19471 # /* config.h. Generated by config.status. */
19472 configure_input='Generated from '`
19473 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19474 `' by configure.'
19475 if test x"$ac_file" != x-; then
19476 configure_input="$ac_file. $configure_input"
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19478 $as_echo "$as_me: creating $ac_file" >&6;}
19479 fi
19480 # Neutralize special characters interpreted by sed in replacement strings.
19481 case $configure_input in #(
19482 *\&* | *\|* | *\\* )
19483 ac_sed_conf_input=`$as_echo "$configure_input" |
19484 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19485 *) ac_sed_conf_input=$configure_input;;
19486 esac
19487
19488 case $ac_tag in
19489 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19491 esac
19492 ;;
19493 esac
19494
19495 ac_dir=`$as_dirname -- "$ac_file" ||
19496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19497 X"$ac_file" : 'X\(//\)[^/]' \| \
19498 X"$ac_file" : 'X\(//\)$' \| \
19499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19500 $as_echo X"$ac_file" |
19501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19502 s//\1/
19503 q
19504 }
19505 /^X\(\/\/\)[^/].*/{
19506 s//\1/
19507 q
19508 }
19509 /^X\(\/\/\)$/{
19510 s//\1/
19511 q
19512 }
19513 /^X\(\/\).*/{
19514 s//\1/
19515 q
19516 }
19517 s/.*/./; q'`
19518 as_dir="$ac_dir"; as_fn_mkdir_p
19519 ac_builddir=.
19520
19521 case "$ac_dir" in
19522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19523 *)
19524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19525 # A ".." for each directory in $ac_dir_suffix.
19526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19527 case $ac_top_builddir_sub in
19528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19530 esac ;;
19531 esac
19532 ac_abs_top_builddir=$ac_pwd
19533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19534 # for backward compatibility:
19535 ac_top_builddir=$ac_top_build_prefix
19536
19537 case $srcdir in
19538 .) # We are building in place.
19539 ac_srcdir=.
19540 ac_top_srcdir=$ac_top_builddir_sub
19541 ac_abs_top_srcdir=$ac_pwd ;;
19542 [\\/]* | ?:[\\/]* ) # Absolute name.
19543 ac_srcdir=$srcdir$ac_dir_suffix;
19544 ac_top_srcdir=$srcdir
19545 ac_abs_top_srcdir=$srcdir ;;
19546 *) # Relative name.
19547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19548 ac_top_srcdir=$ac_top_build_prefix$srcdir
19549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19550 esac
19551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19552
19553
19554 case $ac_mode in
19555 :F)
19556 #
19557 # CONFIG_FILE
19558 #
19559
19560 case $INSTALL in
19561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19562 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19563 esac
19564 ac_MKDIR_P=$MKDIR_P
19565 case $MKDIR_P in
19566 [\\/$]* | ?:[\\/]* ) ;;
19567 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19568 esac
19569 _ACEOF
19570
19571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19572 # If the template does not know about datarootdir, expand it.
19573 # FIXME: This hack should be removed a few years after 2.60.
19574 ac_datarootdir_hack=; ac_datarootdir_seen=
19575 ac_sed_dataroot='
19576 /datarootdir/ {
19577 p
19578 q
19579 }
19580 /@datadir@/p
19581 /@docdir@/p
19582 /@infodir@/p
19583 /@localedir@/p
19584 /@mandir@/p'
19585 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19586 *datarootdir*) ac_datarootdir_seen=yes;;
19587 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19589 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19590 _ACEOF
19591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19592 ac_datarootdir_hack='
19593 s&@datadir@&$datadir&g
19594 s&@docdir@&$docdir&g
19595 s&@infodir@&$infodir&g
19596 s&@localedir@&$localedir&g
19597 s&@mandir@&$mandir&g
19598 s&\\\${datarootdir}&$datarootdir&g' ;;
19599 esac
19600 _ACEOF
19601
19602 # Neutralize VPATH when `$srcdir' = `.'.
19603 # Shell code in configure.ac might set extrasub.
19604 # FIXME: do we really want to maintain this feature?
19605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19606 ac_sed_extra="$ac_vpsub
19607 $extrasub
19608 _ACEOF
19609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19610 :t
19611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19612 s|@configure_input@|$ac_sed_conf_input|;t t
19613 s&@top_builddir@&$ac_top_builddir_sub&;t t
19614 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19615 s&@srcdir@&$ac_srcdir&;t t
19616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19617 s&@top_srcdir@&$ac_top_srcdir&;t t
19618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19619 s&@builddir@&$ac_builddir&;t t
19620 s&@abs_builddir@&$ac_abs_builddir&;t t
19621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19622 s&@INSTALL@&$ac_INSTALL&;t t
19623 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19624 $ac_datarootdir_hack
19625 "
19626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19628
19629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19632 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19634 which seems to be undefined. Please make sure it is defined" >&5
19635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19636 which seems to be undefined. Please make sure it is defined" >&2;}
19637
19638 rm -f "$ac_tmp/stdin"
19639 case $ac_file in
19640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19642 esac \
19643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19644 ;;
19645 :H)
19646 #
19647 # CONFIG_HEADER
19648 #
19649 if test x"$ac_file" != x-; then
19650 {
19651 $as_echo "/* $configure_input */" \
19652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19653 } >"$ac_tmp/config.h" \
19654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19655 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19658 else
19659 rm -f "$ac_file"
19660 mv "$ac_tmp/config.h" "$ac_file" \
19661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19662 fi
19663 else
19664 $as_echo "/* $configure_input */" \
19665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19666 || as_fn_error $? "could not create -" "$LINENO" 5
19667 fi
19668 # Compute "$ac_file"'s index in $config_headers.
19669 _am_arg="$ac_file"
19670 _am_stamp_count=1
19671 for _am_header in $config_headers :; do
19672 case $_am_header in
19673 $_am_arg | $_am_arg:* )
19674 break ;;
19675 * )
19676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19677 esac
19678 done
19679 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19680 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19681 X"$_am_arg" : 'X\(//\)[^/]' \| \
19682 X"$_am_arg" : 'X\(//\)$' \| \
19683 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19684 $as_echo X"$_am_arg" |
19685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19686 s//\1/
19687 q
19688 }
19689 /^X\(\/\/\)[^/].*/{
19690 s//\1/
19691 q
19692 }
19693 /^X\(\/\/\)$/{
19694 s//\1/
19695 q
19696 }
19697 /^X\(\/\).*/{
19698 s//\1/
19699 q
19700 }
19701 s/.*/./; q'`/stamp-h$_am_stamp_count
19702 ;;
19703
19704 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19705 $as_echo "$as_me: executing $ac_file commands" >&6;}
19706 ;;
19707 esac
19708
19709
19710 case $ac_file$ac_mode in
19711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19712 # Older Autoconf quotes --file arguments for eval, but not when files
19713 # are listed without --file. Let's play safe and only enable the eval
19714 # if we detect the quoting.
19715 case $CONFIG_FILES in
19716 *\'*) eval set x "$CONFIG_FILES" ;;
19717 *) set x $CONFIG_FILES ;;
19718 esac
19719 shift
19720 for mf
19721 do
19722 # Strip MF so we end up with the name of the file.
19723 mf=`echo "$mf" | sed -e 's/:.*$//'`
19724 # Check whether this is an Automake generated Makefile or not.
19725 # We used to match only the files named 'Makefile.in', but
19726 # some people rename them; so instead we look at the file content.
19727 # Grep'ing the first line is not enough: some people post-process
19728 # each Makefile.in and add a new line on top of each file to say so.
19729 # Grep'ing the whole file is not good either: AIX grep has a line
19730 # limit of 2048, but all sed's we know have understand at least 4000.
19731 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19732 dirpart=`$as_dirname -- "$mf" ||
19733 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19734 X"$mf" : 'X\(//\)[^/]' \| \
19735 X"$mf" : 'X\(//\)$' \| \
19736 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19737 $as_echo X"$mf" |
19738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19739 s//\1/
19740 q
19741 }
19742 /^X\(\/\/\)[^/].*/{
19743 s//\1/
19744 q
19745 }
19746 /^X\(\/\/\)$/{
19747 s//\1/
19748 q
19749 }
19750 /^X\(\/\).*/{
19751 s//\1/
19752 q
19753 }
19754 s/.*/./; q'`
19755 else
19756 continue
19757 fi
19758 # Extract the definition of DEPDIR, am__include, and am__quote
19759 # from the Makefile without running 'make'.
19760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19761 test -z "$DEPDIR" && continue
19762 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19763 test -z "$am__include" && continue
19764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19765 # Find all dependency output files, they are included files with
19766 # $(DEPDIR) in their names. We invoke sed twice because it is the
19767 # simplest approach to changing $(DEPDIR) to its actual value in the
19768 # expansion.
19769 for file in `sed -n "
19770 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19771 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19772 # Make sure the directory exists.
19773 test -f "$dirpart/$file" && continue
19774 fdir=`$as_dirname -- "$file" ||
19775 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776 X"$file" : 'X\(//\)[^/]' \| \
19777 X"$file" : 'X\(//\)$' \| \
19778 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19779 $as_echo X"$file" |
19780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19781 s//\1/
19782 q
19783 }
19784 /^X\(\/\/\)[^/].*/{
19785 s//\1/
19786 q
19787 }
19788 /^X\(\/\/\)$/{
19789 s//\1/
19790 q
19791 }
19792 /^X\(\/\).*/{
19793 s//\1/
19794 q
19795 }
19796 s/.*/./; q'`
19797 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19798 # echo "creating $dirpart/$file"
19799 echo '# dummy' > "$dirpart/$file"
19800 done
19801 done
19802 }
19803 ;;
19804 "libtool":C)
19805
19806 # See if we are running on zsh, and set the options which allow our
19807 # commands through without removal of \ escapes.
19808 if test -n "${ZSH_VERSION+set}" ; then
19809 setopt NO_GLOB_SUBST
19810 fi
19811
19812 cfgfile="${ofile}T"
19813 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19814 $RM "$cfgfile"
19815
19816 cat <<_LT_EOF >> "$cfgfile"
19817 #! $SHELL
19818
19819 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19820 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19823 #
19824 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19825 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19826 # Foundation, Inc.
19827 # Written by Gordon Matzigkeit, 1996
19828 #
19829 # This file is part of GNU Libtool.
19830 #
19831 # GNU Libtool is free software; you can redistribute it and/or
19832 # modify it under the terms of the GNU General Public License as
19833 # published by the Free Software Foundation; either version 2 of
19834 # the License, or (at your option) any later version.
19835 #
19836 # As a special exception to the GNU General Public License,
19837 # if you distribute this file as part of a program or library that
19838 # is built using GNU Libtool, you may include this file under the
19839 # same distribution terms that you use for the rest of that program.
19840 #
19841 # GNU Libtool is distributed in the hope that it will be useful,
19842 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19844 # GNU General Public License for more details.
19845 #
19846 # You should have received a copy of the GNU General Public License
19847 # along with GNU Libtool; see the file COPYING. If not, a copy
19848 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19849 # obtained by writing to the Free Software Foundation, Inc.,
19850 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19851
19852
19853 # The names of the tagged configurations supported by this script.
19854 available_tags=""
19855
19856 # ### BEGIN LIBTOOL CONFIG
19857
19858 # Which release of libtool.m4 was used?
19859 macro_version=$macro_version
19860 macro_revision=$macro_revision
19861
19862 # Whether or not to build shared libraries.
19863 build_libtool_libs=$enable_shared
19864
19865 # Whether or not to build static libraries.
19866 build_old_libs=$enable_static
19867
19868 # What type of objects to build.
19869 pic_mode=$pic_mode
19870
19871 # Whether or not to optimize for fast installation.
19872 fast_install=$enable_fast_install
19873
19874 # Shell to use when invoking shell scripts.
19875 SHELL=$lt_SHELL
19876
19877 # An echo program that protects backslashes.
19878 ECHO=$lt_ECHO
19879
19880 # The PATH separator for the build system.
19881 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19882
19883 # The host system.
19884 host_alias=$host_alias
19885 host=$host
19886 host_os=$host_os
19887
19888 # The build system.
19889 build_alias=$build_alias
19890 build=$build
19891 build_os=$build_os
19892
19893 # A sed program that does not truncate output.
19894 SED=$lt_SED
19895
19896 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19897 Xsed="\$SED -e 1s/^X//"
19898
19899 # A grep program that handles long lines.
19900 GREP=$lt_GREP
19901
19902 # An ERE matcher.
19903 EGREP=$lt_EGREP
19904
19905 # A literal string matcher.
19906 FGREP=$lt_FGREP
19907
19908 # A BSD- or MS-compatible name lister.
19909 NM=$lt_NM
19910
19911 # Whether we need soft or hard links.
19912 LN_S=$lt_LN_S
19913
19914 # What is the maximum length of a command?
19915 max_cmd_len=$max_cmd_len
19916
19917 # Object file suffix (normally "o").
19918 objext=$ac_objext
19919
19920 # Executable file suffix (normally "").
19921 exeext=$exeext
19922
19923 # whether the shell understands "unset".
19924 lt_unset=$lt_unset
19925
19926 # turn spaces into newlines.
19927 SP2NL=$lt_lt_SP2NL
19928
19929 # turn newlines into spaces.
19930 NL2SP=$lt_lt_NL2SP
19931
19932 # convert \$build file names to \$host format.
19933 to_host_file_cmd=$lt_cv_to_host_file_cmd
19934
19935 # convert \$build files to toolchain format.
19936 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19937
19938 # An object symbol dumper.
19939 OBJDUMP=$lt_OBJDUMP
19940
19941 # Method to check whether dependent libraries are shared objects.
19942 deplibs_check_method=$lt_deplibs_check_method
19943
19944 # Command to use when deplibs_check_method = "file_magic".
19945 file_magic_cmd=$lt_file_magic_cmd
19946
19947 # How to find potential files when deplibs_check_method = "file_magic".
19948 file_magic_glob=$lt_file_magic_glob
19949
19950 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19951 want_nocaseglob=$lt_want_nocaseglob
19952
19953 # DLL creation program.
19954 DLLTOOL=$lt_DLLTOOL
19955
19956 # Command to associate shared and link libraries.
19957 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19958
19959 # The archiver.
19960 AR=$lt_AR
19961
19962 # Flags to create an archive.
19963 AR_FLAGS=$lt_AR_FLAGS
19964
19965 # How to feed a file listing to the archiver.
19966 archiver_list_spec=$lt_archiver_list_spec
19967
19968 # A symbol stripping program.
19969 STRIP=$lt_STRIP
19970
19971 # Commands used to install an old-style archive.
19972 RANLIB=$lt_RANLIB
19973 old_postinstall_cmds=$lt_old_postinstall_cmds
19974 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19975
19976 # Whether to use a lock for old archive extraction.
19977 lock_old_archive_extraction=$lock_old_archive_extraction
19978
19979 # A C compiler.
19980 LTCC=$lt_CC
19981
19982 # LTCC compiler flags.
19983 LTCFLAGS=$lt_CFLAGS
19984
19985 # Take the output of nm and produce a listing of raw symbols and C names.
19986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19987
19988 # Transform the output of nm in a proper C declaration.
19989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19990
19991 # Transform the output of nm in a C name address pair.
19992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19993
19994 # Transform the output of nm in a C name address pair when lib prefix is needed.
19995 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19996
19997 # Specify filename containing input files for \$NM.
19998 nm_file_list_spec=$lt_nm_file_list_spec
19999
20000 # The root where to search for dependent libraries,and in which our libraries should be installed.
20001 lt_sysroot=$lt_sysroot
20002
20003 # The name of the directory that contains temporary libtool files.
20004 objdir=$objdir
20005
20006 # Used to examine libraries when file_magic_cmd begins with "file".
20007 MAGIC_CMD=$MAGIC_CMD
20008
20009 # Must we lock files when doing compilation?
20010 need_locks=$lt_need_locks
20011
20012 # Manifest tool.
20013 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20014
20015 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20016 DSYMUTIL=$lt_DSYMUTIL
20017
20018 # Tool to change global to local symbols on Mac OS X.
20019 NMEDIT=$lt_NMEDIT
20020
20021 # Tool to manipulate fat objects and archives on Mac OS X.
20022 LIPO=$lt_LIPO
20023
20024 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20025 OTOOL=$lt_OTOOL
20026
20027 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20028 OTOOL64=$lt_OTOOL64
20029
20030 # Old archive suffix (normally "a").
20031 libext=$libext
20032
20033 # Shared library suffix (normally ".so").
20034 shrext_cmds=$lt_shrext_cmds
20035
20036 # The commands to extract the exported symbol list from a shared archive.
20037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20038
20039 # Variables whose values should be saved in libtool wrapper scripts and
20040 # restored at link time.
20041 variables_saved_for_relink=$lt_variables_saved_for_relink
20042
20043 # Do we need the "lib" prefix for modules?
20044 need_lib_prefix=$need_lib_prefix
20045
20046 # Do we need a version for libraries?
20047 need_version=$need_version
20048
20049 # Library versioning type.
20050 version_type=$version_type
20051
20052 # Shared library runtime path variable.
20053 runpath_var=$runpath_var
20054
20055 # Shared library path variable.
20056 shlibpath_var=$shlibpath_var
20057
20058 # Is shlibpath searched before the hard-coded library search path?
20059 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20060
20061 # Format of library name prefix.
20062 libname_spec=$lt_libname_spec
20063
20064 # List of archive names. First name is the real one, the rest are links.
20065 # The last name is the one that the linker finds with -lNAME
20066 library_names_spec=$lt_library_names_spec
20067
20068 # The coded name of the library, if different from the real name.
20069 soname_spec=$lt_soname_spec
20070
20071 # Permission mode override for installation of shared libraries.
20072 install_override_mode=$lt_install_override_mode
20073
20074 # Command to use after installation of a shared archive.
20075 postinstall_cmds=$lt_postinstall_cmds
20076
20077 # Command to use after uninstallation of a shared archive.
20078 postuninstall_cmds=$lt_postuninstall_cmds
20079
20080 # Commands used to finish a libtool library installation in a directory.
20081 finish_cmds=$lt_finish_cmds
20082
20083 # As "finish_cmds", except a single script fragment to be evaled but
20084 # not shown.
20085 finish_eval=$lt_finish_eval
20086
20087 # Whether we should hardcode library paths into libraries.
20088 hardcode_into_libs=$hardcode_into_libs
20089
20090 # Compile-time system search path for libraries.
20091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20092
20093 # Run-time system search path for libraries.
20094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20095
20096 # Whether dlopen is supported.
20097 dlopen_support=$enable_dlopen
20098
20099 # Whether dlopen of programs is supported.
20100 dlopen_self=$enable_dlopen_self
20101
20102 # Whether dlopen of statically linked programs is supported.
20103 dlopen_self_static=$enable_dlopen_self_static
20104
20105 # Commands to strip libraries.
20106 old_striplib=$lt_old_striplib
20107 striplib=$lt_striplib
20108
20109
20110 # The linker used to build libraries.
20111 LD=$lt_LD
20112
20113 # How to create reloadable object files.
20114 reload_flag=$lt_reload_flag
20115 reload_cmds=$lt_reload_cmds
20116
20117 # Commands used to build an old-style archive.
20118 old_archive_cmds=$lt_old_archive_cmds
20119
20120 # A language specific compiler.
20121 CC=$lt_compiler
20122
20123 # Is the compiler the GNU compiler?
20124 with_gcc=$GCC
20125
20126 # Compiler flag to turn off builtin functions.
20127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20128
20129 # Additional compiler flags for building library objects.
20130 pic_flag=$lt_lt_prog_compiler_pic
20131
20132 # How to pass a linker flag through the compiler.
20133 wl=$lt_lt_prog_compiler_wl
20134
20135 # Compiler flag to prevent dynamic linking.
20136 link_static_flag=$lt_lt_prog_compiler_static
20137
20138 # Does compiler simultaneously support -c and -o options?
20139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20140
20141 # Whether or not to add -lc for building shared libraries.
20142 build_libtool_need_lc=$archive_cmds_need_lc
20143
20144 # Whether or not to disallow shared libs when runtime libs are static.
20145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20146
20147 # Compiler flag to allow reflexive dlopens.
20148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20149
20150 # Compiler flag to generate shared objects directly from archives.
20151 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20152
20153 # Whether the compiler copes with passing no objects directly.
20154 compiler_needs_object=$lt_compiler_needs_object
20155
20156 # Create an old-style archive from a shared archive.
20157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20158
20159 # Create a temporary old-style archive to link instead of a shared archive.
20160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20161
20162 # Commands used to build a shared archive.
20163 archive_cmds=$lt_archive_cmds
20164 archive_expsym_cmds=$lt_archive_expsym_cmds
20165
20166 # Commands used to build a loadable module if different from building
20167 # a shared archive.
20168 module_cmds=$lt_module_cmds
20169 module_expsym_cmds=$lt_module_expsym_cmds
20170
20171 # Whether we are building with GNU ld or not.
20172 with_gnu_ld=$lt_with_gnu_ld
20173
20174 # Flag that allows shared libraries with undefined symbols to be built.
20175 allow_undefined_flag=$lt_allow_undefined_flag
20176
20177 # Flag that enforces no undefined symbols.
20178 no_undefined_flag=$lt_no_undefined_flag
20179
20180 # Flag to hardcode \$libdir into a binary during linking.
20181 # This must work even if \$libdir does not exist
20182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20183
20184 # Whether we need a single "-rpath" flag with a separated argument.
20185 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20186
20187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20188 # DIR into the resulting binary.
20189 hardcode_direct=$hardcode_direct
20190
20191 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20192 # DIR into the resulting binary and the resulting library dependency is
20193 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20194 # library is relocated.
20195 hardcode_direct_absolute=$hardcode_direct_absolute
20196
20197 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20198 # into the resulting binary.
20199 hardcode_minus_L=$hardcode_minus_L
20200
20201 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20202 # into the resulting binary.
20203 hardcode_shlibpath_var=$hardcode_shlibpath_var
20204
20205 # Set to "yes" if building a shared library automatically hardcodes DIR
20206 # into the library and all subsequent libraries and executables linked
20207 # against it.
20208 hardcode_automatic=$hardcode_automatic
20209
20210 # Set to yes if linker adds runtime paths of dependent libraries
20211 # to runtime path list.
20212 inherit_rpath=$inherit_rpath
20213
20214 # Whether libtool must link a program against all its dependency libraries.
20215 link_all_deplibs=$link_all_deplibs
20216
20217 # Set to "yes" if exported symbols are required.
20218 always_export_symbols=$always_export_symbols
20219
20220 # The commands to list exported symbols.
20221 export_symbols_cmds=$lt_export_symbols_cmds
20222
20223 # Symbols that should not be listed in the preloaded symbols.
20224 exclude_expsyms=$lt_exclude_expsyms
20225
20226 # Symbols that must always be exported.
20227 include_expsyms=$lt_include_expsyms
20228
20229 # Commands necessary for linking programs (against libraries) with templates.
20230 prelink_cmds=$lt_prelink_cmds
20231
20232 # Commands necessary for finishing linking programs.
20233 postlink_cmds=$lt_postlink_cmds
20234
20235 # Specify filename containing input files.
20236 file_list_spec=$lt_file_list_spec
20237
20238 # How to hardcode a shared library path into an executable.
20239 hardcode_action=$hardcode_action
20240
20241 # ### END LIBTOOL CONFIG
20242
20243 _LT_EOF
20244
20245 case $host_os in
20246 aix3*)
20247 cat <<\_LT_EOF >> "$cfgfile"
20248 # AIX sometimes has problems with the GCC collect2 program. For some
20249 # reason, if we set the COLLECT_NAMES environment variable, the problems
20250 # vanish in a puff of smoke.
20251 if test "X${COLLECT_NAMES+set}" != Xset; then
20252 COLLECT_NAMES=
20253 export COLLECT_NAMES
20254 fi
20255 _LT_EOF
20256 ;;
20257 esac
20258
20259
20260 ltmain="$ac_aux_dir/ltmain.sh"
20261
20262
20263 # We use sed instead of cat because bash on DJGPP gets confused if
20264 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20265 # text mode, it properly converts lines to CR/LF. This bash problem
20266 # is reportedly fixed, but why not run on old versions too?
20267 sed '$q' "$ltmain" >> "$cfgfile" \
20268 || (rm -f "$cfgfile"; exit 1)
20269
20270 if test x"$xsi_shell" = xyes; then
20271 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20272 func_dirname ()\
20273 {\
20274 \ case ${1} in\
20275 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20276 \ * ) func_dirname_result="${3}" ;;\
20277 \ esac\
20278 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20279 && mv -f "$cfgfile.tmp" "$cfgfile" \
20280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20281 test 0 -eq $? || _lt_function_replace_fail=:
20282
20283
20284 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20285 func_basename ()\
20286 {\
20287 \ func_basename_result="${1##*/}"\
20288 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20289 && mv -f "$cfgfile.tmp" "$cfgfile" \
20290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20291 test 0 -eq $? || _lt_function_replace_fail=:
20292
20293
20294 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20295 func_dirname_and_basename ()\
20296 {\
20297 \ case ${1} in\
20298 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20299 \ * ) func_dirname_result="${3}" ;;\
20300 \ esac\
20301 \ func_basename_result="${1##*/}"\
20302 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20303 && mv -f "$cfgfile.tmp" "$cfgfile" \
20304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20305 test 0 -eq $? || _lt_function_replace_fail=:
20306
20307
20308 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20309 func_stripname ()\
20310 {\
20311 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20312 \ # positional parameters, so assign one to ordinary parameter first.\
20313 \ func_stripname_result=${3}\
20314 \ func_stripname_result=${func_stripname_result#"${1}"}\
20315 \ func_stripname_result=${func_stripname_result%"${2}"}\
20316 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20317 && mv -f "$cfgfile.tmp" "$cfgfile" \
20318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20319 test 0 -eq $? || _lt_function_replace_fail=:
20320
20321
20322 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20323 func_split_long_opt ()\
20324 {\
20325 \ func_split_long_opt_name=${1%%=*}\
20326 \ func_split_long_opt_arg=${1#*=}\
20327 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20328 && mv -f "$cfgfile.tmp" "$cfgfile" \
20329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20330 test 0 -eq $? || _lt_function_replace_fail=:
20331
20332
20333 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20334 func_split_short_opt ()\
20335 {\
20336 \ func_split_short_opt_arg=${1#??}\
20337 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20338 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20339 && mv -f "$cfgfile.tmp" "$cfgfile" \
20340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20341 test 0 -eq $? || _lt_function_replace_fail=:
20342
20343
20344 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20345 func_lo2o ()\
20346 {\
20347 \ case ${1} in\
20348 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20349 \ *) func_lo2o_result=${1} ;;\
20350 \ esac\
20351 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20352 && mv -f "$cfgfile.tmp" "$cfgfile" \
20353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20354 test 0 -eq $? || _lt_function_replace_fail=:
20355
20356
20357 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20358 func_xform ()\
20359 {\
20360 func_xform_result=${1%.*}.lo\
20361 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20362 && mv -f "$cfgfile.tmp" "$cfgfile" \
20363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364 test 0 -eq $? || _lt_function_replace_fail=:
20365
20366
20367 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20368 func_arith ()\
20369 {\
20370 func_arith_result=$(( $* ))\
20371 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20372 && mv -f "$cfgfile.tmp" "$cfgfile" \
20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374 test 0 -eq $? || _lt_function_replace_fail=:
20375
20376
20377 sed -e '/^func_len ()$/,/^} # func_len /c\
20378 func_len ()\
20379 {\
20380 func_len_result=${#1}\
20381 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20382 && mv -f "$cfgfile.tmp" "$cfgfile" \
20383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20384 test 0 -eq $? || _lt_function_replace_fail=:
20385
20386 fi
20387
20388 if test x"$lt_shell_append" = xyes; then
20389 sed -e '/^func_append ()$/,/^} # func_append /c\
20390 func_append ()\
20391 {\
20392 eval "${1}+=\\${2}"\
20393 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20394 && mv -f "$cfgfile.tmp" "$cfgfile" \
20395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20396 test 0 -eq $? || _lt_function_replace_fail=:
20397
20398
20399 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20400 func_append_quoted ()\
20401 {\
20402 \ func_quote_for_eval "${2}"\
20403 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20404 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20405 && mv -f "$cfgfile.tmp" "$cfgfile" \
20406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20407 test 0 -eq $? || _lt_function_replace_fail=:
20408
20409
20410 # Save a `func_append' function call where possible by direct use of '+='
20411 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20412 && mv -f "$cfgfile.tmp" "$cfgfile" \
20413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20414 test 0 -eq $? || _lt_function_replace_fail=:
20415 else
20416 # Save a `func_append' function call even when '+=' is not available
20417 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20418 && mv -f "$cfgfile.tmp" "$cfgfile" \
20419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20420 test 0 -eq $? || _lt_function_replace_fail=:
20421 fi
20422
20423 if test x"$_lt_function_replace_fail" = x":"; then
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20425 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20426 fi
20427
20428
20429 mv -f "$cfgfile" "$ofile" ||
20430 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20431 chmod +x "$ofile"
20432
20433 ;;
20434
20435 esac
20436 done # for ac_tag
20437
20438
20439 as_fn_exit 0
20440 _ACEOF
20441 ac_clean_files=$ac_clean_files_save
20442
20443 test $ac_write_fail = 0 ||
20444 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20445
20446
20447 # configure is writing to config.log, and then calls config.status.
20448 # config.status does its own redirection, appending to config.log.
20449 # Unfortunately, on DOS this fails, as config.log is still kept open
20450 # by configure, so config.status won't be able to write to it; its
20451 # output is simply discarded. So we exec the FD to /dev/null,
20452 # effectively closing config.log, so it can be properly (re)opened and
20453 # appended to by config.status. When coming back to configure, we
20454 # need to make the FD available again.
20455 if test "$no_create" != yes; then
20456 ac_cs_success=:
20457 ac_config_status_args=
20458 test "$silent" = yes &&
20459 ac_config_status_args="$ac_config_status_args --quiet"
20460 exec 5>/dev/null
20461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20462 exec 5>>config.log
20463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20464 # would make configure fail if this is the last instruction.
20465 $ac_cs_success || as_fn_exit 1
20466 fi
20467 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20469 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20470 fi
20471
20472