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.68 for xf86-video-chips 1.2.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-video-chips'
573 PACKAGE_TARNAME='xf86-video-chips'
574 PACKAGE_VERSION='1.2.5'
575 PACKAGE_STRING='xf86-video-chips 1.2.5'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 moduledir
622 BUILD_UTILS_FALSE
623 BUILD_UTILS_TRUE
624 XAA_FALSE
625 XAA_TRUE
626 XSERVER_LIBPCIACCESS_FALSE
627 XSERVER_LIBPCIACCESS_TRUE
628 PCIACCESS_LIBS
629 PCIACCESS_CFLAGS
630 XORG_LIBS
631 XORG_CFLAGS
632 OTOOL64
633 OTOOL
634 LIPO
635 NMEDIT
636 DSYMUTIL
637 MANIFEST_TOOL
638 RANLIB
639 ac_ct_AR
640 AR
641 DLLTOOL
642 OBJDUMP
643 LN_S
644 NM
645 ac_ct_DUMPBIN
646 DUMPBIN
647 LD
648 FGREP
649 LIBTOOL
650 AM_BACKSLASH
651 AM_DEFAULT_VERBOSITY
652 AM_DEFAULT_V
653 AM_V
654 MAN_SUBSTS
655 XORG_MAN_PAGE
656 ADMIN_MAN_DIR
657 DRIVER_MAN_DIR
658 MISC_MAN_DIR
659 FILE_MAN_DIR
660 LIB_MAN_DIR
661 APP_MAN_DIR
662 ADMIN_MAN_SUFFIX
663 DRIVER_MAN_SUFFIX
664 MISC_MAN_SUFFIX
665 FILE_MAN_SUFFIX
666 LIB_MAN_SUFFIX
667 APP_MAN_SUFFIX
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 INSTALL_CMD
678 PKG_CONFIG_LIBDIR
679 PKG_CONFIG_PATH
680 PKG_CONFIG
681 CHANGELOG_CMD
682 STRICT_CFLAGS
683 CWARNFLAGS
684 BASE_CFLAGS
685 EGREP
686 GREP
687 CPP
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_maintainer_mode
773 enable_dependency_tracking
774 enable_selective_werror
775 enable_strict_compilation
776 enable_silent_rules
777 enable_static
778 enable_shared
779 with_pic
780 enable_fast_install
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 with_xorg_module_dir
785 enable_xaa
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CPP
796 PKG_CONFIG
797 PKG_CONFIG_PATH
798 PKG_CONFIG_LIBDIR
799 XORG_CFLAGS
800 XORG_LIBS
801 PCIACCESS_CFLAGS
802 PCIACCESS_LIBS'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231 do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1259 If a cross compiler is detected then cross compile mode will be used" >&2
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures xf86-video-chips 1.2.5 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root
1394 [DATAROOTDIR/doc/xf86-video-chips]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of xf86-video-chips 1.2.5:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-maintainer-mode enable make rules and dependencies not useful
1425 (and sometimes confusing) to the casual installer
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
1428 --disable-selective-werror
1429 Turn off selective compiler errors. (default:
1430 enabled)
1431 --enable-strict-compilation
1432 Enable all warnings from compiler and make them
1433 errors (default: disabled)
1434 --enable-silent-rules less verbose build output (undo: `make V=1')
1435 --disable-silent-rules verbose build output (undo: `make V=0')
1436 --enable-static[=PKGS] build static libraries [default=no]
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1442 [default=auto]
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-sysroot=DIR Search for dependent libraries within DIR
1451 (or the compiler's sysroot if not specified).
1452 --with-xorg-module-dir=DIR
1453 Default xorg module directory
1454 [[default=$libdir/xorg/modules]]
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465 PKG_CONFIG path to pkg-config utility
1466 PKG_CONFIG_PATH
1467 directories to add to pkg-config's search path
1468 PKG_CONFIG_LIBDIR
1469 path overriding pkg-config's built-in search path
1470 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1471 XORG_LIBS linker flags for XORG, overriding pkg-config
1472 PCIACCESS_CFLAGS
1473 C compiler flags for PCIACCESS, overriding pkg-config
1474 PCIACCESS_LIBS
1475 linker flags for PCIACCESS, overriding pkg-config
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 xf86-video-chips configure 1.2.5
1544 generated by GNU Autoconf 2.68
1545
1546 Copyright (C) 2010 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1596 # ---------------------------------------------
1597 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1598 # accordingly.
1599 ac_fn_c_check_decl ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 as_decl_name=`echo $2|sed 's/ *(.*//'`
1603 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1605 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1606 if eval \${$3+:} false; then :
1607 $as_echo_n "(cached) " >&6
1608 else
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1611 $4
1612 int
1613 main ()
1614 {
1615 #ifndef $as_decl_name
1616 #ifdef __cplusplus
1617 (void) $as_decl_use;
1618 #else
1619 (void) $as_decl_name;
1620 #endif
1621 #endif
1622
1623 ;
1624 return 0;
1625 }
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 eval "$3=yes"
1629 else
1630 eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_c_check_decl
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=$ac_status
1713 fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 eval "$3=yes"
1739 else
1740 eval "$3=no"
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_compile
1750
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_link ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 $as_test_x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_link
1796
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1813
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1818
1819 #ifdef __STDC__
1820 # include <limits.h>
1821 #else
1822 # include <assert.h>
1823 #endif
1824
1825 #undef $2
1826
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1830 #ifdef __cplusplus
1831 extern "C"
1832 #endif
1833 char $2 ();
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1838 choke me
1839 #endif
1840
1841 int
1842 main ()
1843 {
1844 return $2 ();
1845 ;
1846 return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_link "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_func
1863
1864 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1867 # the include files in INCLUDES and setting the cache variable VAR
1868 # accordingly.
1869 ac_fn_c_check_header_mongrel ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if eval \${$3+:} false; then :
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1877 fi
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 else
1882 # Is the header compilable?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1884 $as_echo_n "checking $2 usability... " >&6; }
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 $4
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 ac_header_compiler=yes
1892 else
1893 ac_header_compiler=no
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1897 $as_echo "$ac_header_compiler" >&6; }
1898
1899 # Is the header present?
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1901 $as_echo_n "checking $2 presence... " >&6; }
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_cpp "$LINENO"; then :
1907 ac_header_preproc=yes
1908 else
1909 ac_header_preproc=no
1910 fi
1911 rm -f conftest.err conftest.i conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1913 $as_echo "$ac_header_preproc" >&6; }
1914
1915 # So? What about this header?
1916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1917 yes:no: )
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1919 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922 ;;
1923 no:yes:* )
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1925 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1927 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1929 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1931 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 ( $as_echo "## ---------------------------------------------------------------------- ##
1935 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1936 ## ---------------------------------------------------------------------- ##"
1937 ) | sed "s/^/$as_me: WARNING: /" >&2
1938 ;;
1939 esac
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 eval "$3=\$ac_header_compiler"
1946 fi
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 fi
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953 } # ac_fn_c_check_header_mongrel
1954 cat >config.log <<_ACEOF
1955 This file contains any messages produced by compilers while
1956 running configure, to aid debugging if configure makes a mistake.
1957
1958 It was created by xf86-video-chips $as_me 1.2.5, which was
1959 generated by GNU Autoconf 2.68. Invocation command line was
1960
1961 $ $0 $@
1962
1963 _ACEOF
1964 exec 5>>config.log
1965 {
1966 cat <<_ASUNAME
1967 ## --------- ##
1968 ## Platform. ##
1969 ## --------- ##
1970
1971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976
1977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1979
1980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1987
1988 _ASUNAME
1989
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 $as_echo "PATH: $as_dir"
1996 done
1997 IFS=$as_save_IFS
1998
1999 } >&5
2000
2001 cat >&5 <<_ACEOF
2002
2003
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2007
2008 _ACEOF
2009
2010
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2021 do
2022 for ac_arg
2023 do
2024 case $ac_arg in
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2028 continue ;;
2029 *\'*)
2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 esac
2032 case $ac_pass in
2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034 2)
2035 as_fn_append ac_configure_args1 " '$ac_arg'"
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2038 else
2039 case $ac_arg in
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 esac
2047 ;;
2048 -* ) ac_must_keep_next=true ;;
2049 esac
2050 fi
2051 as_fn_append ac_configure_args " '$ac_arg'"
2052 ;;
2053 esac
2054 done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2058
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log. We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065 # Save into config.log some information that might help in debugging.
2066 {
2067 echo
2068
2069 $as_echo "## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##"
2072 echo
2073 # The following way of writing the cache mishandles newlines in values,
2074 (
2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in #(
2078 *${as_nl}*)
2079 case $ac_var in #(
2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 esac
2083 case $ac_var in #(
2084 _ | IFS | as_nl) ;; #(
2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086 *) { eval $ac_var=; unset $ac_var;} ;;
2087 esac ;;
2088 esac
2089 done
2090 (set) 2>&1 |
2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092 *${as_nl}ac_space=\ *)
2093 sed -n \
2094 "s/'\''/'\''\\\\'\'''\''/g;
2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 ;; #(
2097 *)
2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2099 ;;
2100 esac |
2101 sort
2102 )
2103 echo
2104
2105 $as_echo "## ----------------- ##
2106 ## Output variables. ##
2107 ## ----------------- ##"
2108 echo
2109 for ac_var in $ac_subst_vars
2110 do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 $as_echo "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2118
2119 if test -n "$ac_subst_files"; then
2120 $as_echo "## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##"
2123 echo
2124 for ac_var in $ac_subst_files
2125 do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 $as_echo "$ac_var='\''$ac_val'\''"
2131 done | sort
2132 echo
2133 fi
2134
2135 if test -s confdefs.h; then
2136 $as_echo "## ----------- ##
2137 ## confdefs.h. ##
2138 ## ----------- ##"
2139 echo
2140 cat confdefs.h
2141 echo
2142 fi
2143 test "$ac_signal" != 0 &&
2144 $as_echo "$as_me: caught signal $ac_signal"
2145 $as_echo "$as_me: exit $exit_status"
2146 } >&5
2147 rm -f core *.core core.conftest.* &&
2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149 exit $exit_status
2150 ' 0
2151 for ac_signal in 1 2 13 15; do
2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2153 done
2154 ac_signal=0
2155
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2158
2159 $as_echo "/* confdefs.h */" > confdefs.h
2160
2161 # Predefined preprocessor variables.
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2185 _ACEOF
2186
2187
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2190 ac_site_file1=NONE
2191 ac_site_file2=NONE
2192 if test -n "$CONFIG_SITE"; then
2193 # We do not want a PATH search for config.site.
2194 case $CONFIG_SITE in #((
2195 -*) ac_site_file1=./$CONFIG_SITE;;
2196 */*) ac_site_file1=$CONFIG_SITE;;
2197 *) ac_site_file1=./$CONFIG_SITE;;
2198 esac
2199 elif test "x$prefix" != xNONE; then
2200 ac_site_file1=$prefix/share/config.site
2201 ac_site_file2=$prefix/etc/config.site
2202 else
2203 ac_site_file1=$ac_default_prefix/share/config.site
2204 ac_site_file2=$ac_default_prefix/etc/config.site
2205 fi
2206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207 do
2208 test "x$ac_site_file" = xNONE && continue
2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2212 sed 's/^/| /' "$ac_site_file" >&5
2213 . "$ac_site_file" \
2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "failed to load site script $ac_site_file
2217 See \`config.log' for more details" "$LINENO" 5; }
2218 fi
2219 done
2220
2221 if test -r "$cache_file"; then
2222 # Some versions of bash will fail to source /dev/null (special files
2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226 $as_echo "$as_me: loading cache $cache_file" >&6;}
2227 case $cache_file in
2228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229 *) . "./$cache_file";;
2230 esac
2231 fi
2232 else
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 $as_echo "$as_me: creating cache $cache_file" >&6;}
2235 >$cache_file
2236 fi
2237
2238 # Check that the precious variables saved in the cache have kept the same
2239 # value.
2240 ac_cache_corrupted=false
2241 for ac_var in $ac_precious_vars; do
2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243 eval ac_new_set=\$ac_env_${ac_var}_set
2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245 eval ac_new_val=\$ac_env_${ac_var}_value
2246 case $ac_old_set,$ac_new_set in
2247 set,)
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2251 ,set)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,);;
2256 *)
2257 if test "x$ac_old_val" != "x$ac_new_val"; then
2258 # differences in whitespace do not lead to failure.
2259 ac_old_val_w=`echo x $ac_old_val`
2260 ac_new_val_w=`echo x $ac_new_val`
2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264 ac_cache_corrupted=:
2265 else
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268 eval $ac_var=\$ac_old_val
2269 fi
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2271 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2273 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2274 fi;;
2275 esac
2276 # Pass precious variables to config.status.
2277 if test "$ac_new_set" = set; then
2278 case $ac_new_val in
2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 *) ac_arg=$ac_var=$ac_new_val ;;
2281 esac
2282 case " $ac_configure_args " in
2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285 esac
2286 fi
2287 done
2288 if $ac_cache_corrupted; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2294 fi
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2298
2299 ac_ext=c
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306
2307 ac_config_headers="$ac_config_headers config.h"
2308
2309 ac_aux_dir=
2310 for ac_dir in . "$srcdir"/.; do
2311 if test -f "$ac_dir/install-sh"; then
2312 ac_aux_dir=$ac_dir
2313 ac_install_sh="$ac_aux_dir/install-sh -c"
2314 break
2315 elif test -f "$ac_dir/install.sh"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/install.sh -c"
2318 break
2319 elif test -f "$ac_dir/shtool"; then
2320 ac_aux_dir=$ac_dir
2321 ac_install_sh="$ac_aux_dir/shtool install -c"
2322 break
2323 fi
2324 done
2325 if test -z "$ac_aux_dir"; then
2326 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2327 fi
2328
2329 # These three variables are undocumented and unsupported,
2330 # and are intended to be withdrawn in a future Autoconf release.
2331 # They can cause serious problems if a builder's source tree is in a directory
2332 # whose full name contains unusual characters.
2333 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2334 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2335 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2336
2337
2338
2339 # Initialize Automake
2340 am__api_version='1.11'
2341
2342 # Find a good install program. We prefer a C program (faster),
2343 # so one script is as good as another. But avoid the broken or
2344 # incompatible versions:
2345 # SysV /etc/install, /usr/sbin/install
2346 # SunOS /usr/etc/install
2347 # IRIX /sbin/install
2348 # AIX /bin/install
2349 # AmigaOS /C/install, which installs bootblocks on floppy discs
2350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2353 # OS/2's system install, which has a completely different semantic
2354 # ./install, which can be erroneously created by make from ./install.sh.
2355 # Reject install programs that cannot install multiple files.
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2357 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2358 if test -z "$INSTALL"; then
2359 if ${ac_cv_path_install+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 # Account for people who put trailing slashes in PATH elements.
2368 case $as_dir/ in #((
2369 ./ | .// | /[cC]/* | \
2370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2371 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2372 /usr/ucb/* ) ;;
2373 *)
2374 # OSF1 and SCO ODT 3.0 have their own names for install.
2375 # Don't use installbsd from OSF since it installs stuff as root
2376 # by default.
2377 for ac_prog in ginstall scoinst install; do
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2380 if test $ac_prog = install &&
2381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382 # AIX install. It has an incompatible calling convention.
2383 :
2384 elif test $ac_prog = install &&
2385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # program-specific install script used by HP pwplus--don't use.
2387 :
2388 else
2389 rm -rf conftest.one conftest.two conftest.dir
2390 echo one > conftest.one
2391 echo two > conftest.two
2392 mkdir conftest.dir
2393 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2394 test -s conftest.one && test -s conftest.two &&
2395 test -s conftest.dir/conftest.one &&
2396 test -s conftest.dir/conftest.two
2397 then
2398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2399 break 3
2400 fi
2401 fi
2402 fi
2403 done
2404 done
2405 ;;
2406 esac
2407
2408 done
2409 IFS=$as_save_IFS
2410
2411 rm -rf conftest.one conftest.two conftest.dir
2412
2413 fi
2414 if test "${ac_cv_path_install+set}" = set; then
2415 INSTALL=$ac_cv_path_install
2416 else
2417 # As a last resort, use the slow shell script. Don't cache a
2418 # value for INSTALL within a source directory, because that will
2419 # break other packages using the cache if that directory is
2420 # removed, or if the value is a relative name.
2421 INSTALL=$ac_install_sh
2422 fi
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2425 $as_echo "$INSTALL" >&6; }
2426
2427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428 # It thinks the first close brace ends the variable substitution.
2429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2430
2431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2432
2433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2436 $as_echo_n "checking whether build environment is sane... " >&6; }
2437 # Just in case
2438 sleep 1
2439 echo timestamp > conftest.file
2440 # Reject unsafe characters in $srcdir or the absolute working directory
2441 # name. Accept space and tab only in the latter.
2442 am_lf='
2443 '
2444 case `pwd` in
2445 *[\\\"\#\$\&\'\`$am_lf]*)
2446 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2447 esac
2448 case $srcdir in
2449 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2450 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2451 esac
2452
2453 # Do `set' in a subshell so we don't clobber the current shell's
2454 # arguments. Must try -L first in case configure is actually a
2455 # symlink; some systems play weird games with the mod time of symlinks
2456 # (eg FreeBSD returns the mod time of the symlink's containing
2457 # directory).
2458 if (
2459 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2460 if test "$*" = "X"; then
2461 # -L didn't work.
2462 set X `ls -t "$srcdir/configure" conftest.file`
2463 fi
2464 rm -f conftest.file
2465 if test "$*" != "X $srcdir/configure conftest.file" \
2466 && test "$*" != "X conftest.file $srcdir/configure"; then
2467
2468 # If neither matched, then we have a broken ls. This can happen
2469 # if, for instance, CONFIG_SHELL is bash and it inherits a
2470 # broken ls alias from the environment. This has actually
2471 # happened. Such a system could not be considered "sane".
2472 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2473 alias in your environment" "$LINENO" 5
2474 fi
2475
2476 test "$2" = conftest.file
2477 )
2478 then
2479 # Ok.
2480 :
2481 else
2482 as_fn_error $? "newly created file is older than distributed files!
2483 Check your system clock" "$LINENO" 5
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2486 $as_echo "yes" >&6; }
2487 test "$program_prefix" != NONE &&
2488 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2489 # Use a double $ so make ignores it.
2490 test "$program_suffix" != NONE &&
2491 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2492 # Double any \ or $.
2493 # By default was `s,x,x', remove it if useless.
2494 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2495 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2496
2497 # expand $ac_aux_dir to an absolute path
2498 am_aux_dir=`cd $ac_aux_dir && pwd`
2499
2500 if test x"${MISSING+set}" != xset; then
2501 case $am_aux_dir in
2502 *\ * | *\ *)
2503 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2504 *)
2505 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2506 esac
2507 fi
2508 # Use eval to expand $SHELL
2509 if eval "$MISSING --run true"; then
2510 am_missing_run="$MISSING --run "
2511 else
2512 am_missing_run=
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2514 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2515 fi
2516
2517 if test x"${install_sh}" != xset; then
2518 case $am_aux_dir in
2519 *\ * | *\ *)
2520 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2521 *)
2522 install_sh="\${SHELL} $am_aux_dir/install-sh"
2523 esac
2524 fi
2525
2526 # Installed binaries are usually stripped using `strip' when the user
2527 # run `make install-strip'. However `strip' might not be the right
2528 # tool to use in cross-compilation environments, therefore Automake
2529 # will honor the `STRIP' environment variable to overrule this program.
2530 if test "$cross_compiling" != no; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}strip; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_STRIP+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$STRIP"; then
2540 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 STRIP=$ac_cv_prog_STRIP
2560 if test -n "$STRIP"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2562 $as_echo "$STRIP" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2566 fi
2567
2568
2569 fi
2570 if test -z "$ac_cv_prog_STRIP"; then
2571 ac_ct_STRIP=$STRIP
2572 # Extract the first word of "strip", so it can be a program name with args.
2573 set dummy strip; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$ac_ct_STRIP"; then
2580 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_ac_ct_STRIP="strip"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2600 if test -n "$ac_ct_STRIP"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2602 $as_echo "$ac_ct_STRIP" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608 if test "x$ac_ct_STRIP" = x; then
2609 STRIP=":"
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612 yes:)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2615 ac_tool_warned=yes ;;
2616 esac
2617 STRIP=$ac_ct_STRIP
2618 fi
2619 else
2620 STRIP="$ac_cv_prog_STRIP"
2621 fi
2622
2623 fi
2624 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2627 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2628 if test -z "$MKDIR_P"; then
2629 if ${ac_cv_path_mkdir+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_prog in mkdir gmkdir; do
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2640 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2641 'mkdir (GNU coreutils) '* | \
2642 'mkdir (coreutils) '* | \
2643 'mkdir (fileutils) '4.1*)
2644 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2645 break 3;;
2646 esac
2647 done
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653
2654 test -d ./--version && rmdir ./--version
2655 if test "${ac_cv_path_mkdir+set}" = set; then
2656 MKDIR_P="$ac_cv_path_mkdir -p"
2657 else
2658 # As a last resort, use the slow shell script. Don't cache a
2659 # value for MKDIR_P within a source directory, because that will
2660 # break other packages using the cache if that directory is
2661 # removed, or if the value is a relative name.
2662 MKDIR_P="$ac_install_sh -d"
2663 fi
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2666 $as_echo "$MKDIR_P" >&6; }
2667
2668 mkdir_p="$MKDIR_P"
2669 case $mkdir_p in
2670 [\\/$]* | ?:[\\/]*) ;;
2671 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2672 esac
2673
2674 for ac_prog in gawk mawk nawk awk
2675 do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_AWK+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test -n "$AWK"; then
2684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_AWK="$ac_prog"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2706 $as_echo "$AWK" >&6; }
2707 else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 test -n "$AWK" && break
2714 done
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2718 set x ${MAKE-make}
2719 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2720 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 cat >conftest.make <<\_ACEOF
2724 SHELL = /bin/sh
2725 all:
2726 @echo '@@@%%%=$(MAKE)=@@@%%%'
2727 _ACEOF
2728 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2729 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2730 *@@@%%%=?*=@@@%%%*)
2731 eval ac_cv_prog_make_${ac_make}_set=yes;;
2732 *)
2733 eval ac_cv_prog_make_${ac_make}_set=no;;
2734 esac
2735 rm -f conftest.make
2736 fi
2737 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 SET_MAKE=
2741 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2744 SET_MAKE="MAKE=${MAKE-make}"
2745 fi
2746
2747 rm -rf .tst 2>/dev/null
2748 mkdir .tst 2>/dev/null
2749 if test -d .tst; then
2750 am__leading_dot=.
2751 else
2752 am__leading_dot=_
2753 fi
2754 rmdir .tst 2>/dev/null
2755
2756 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2757 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2758 # is not polluted with repeated "-I."
2759 am__isrc=' -I$(srcdir)'
2760 # test to see if srcdir already configured
2761 if test -f $srcdir/config.status; then
2762 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2763 fi
2764 fi
2765
2766 # test whether we have cygpath
2767 if test -z "$CYGPATH_W"; then
2768 if (cygpath --version) >/dev/null 2>/dev/null; then
2769 CYGPATH_W='cygpath -w'
2770 else
2771 CYGPATH_W=echo
2772 fi
2773 fi
2774
2775
2776 # Define the identity of the package.
2777 PACKAGE='xf86-video-chips'
2778 VERSION='1.2.5'
2779
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE "$PACKAGE"
2783 _ACEOF
2784
2785
2786 cat >>confdefs.h <<_ACEOF
2787 #define VERSION "$VERSION"
2788 _ACEOF
2789
2790 # Some tools Automake needs.
2791
2792 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2793
2794
2795 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2796
2797
2798 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2799
2800
2801 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2802
2803
2804 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2805
2806 # We need awk for the "check" target. The system "awk" is bad on
2807 # some platforms.
2808 # Always define AMTAR for backward compatibility. Yes, it's still used
2809 # in the wild :-( We should find a proper way to deprecate it ...
2810 AMTAR='$${TAR-tar}'
2811
2812 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2813
2814
2815
2816
2817
2818
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2820 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2821 # Check whether --enable-maintainer-mode was given.
2822 if test "${enable_maintainer_mode+set}" = set; then :
2823 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2824 else
2825 USE_MAINTAINER_MODE=no
2826 fi
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2829 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2830 if test $USE_MAINTAINER_MODE = yes; then
2831 MAINTAINER_MODE_TRUE=
2832 MAINTAINER_MODE_FALSE='#'
2833 else
2834 MAINTAINER_MODE_TRUE='#'
2835 MAINTAINER_MODE_FALSE=
2836 fi
2837
2838 MAINT=$MAINTAINER_MODE_TRUE
2839
2840
2841
2842 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854 DEPDIR="${am__leading_dot}deps"
2855
2856 ac_config_commands="$ac_config_commands depfiles"
2857
2858
2859 am_make=${MAKE-make}
2860 cat > confinc << 'END'
2861 am__doit:
2862 @echo this is the am__doit target
2863 .PHONY: am__doit
2864 END
2865 # If we don't find an include directive, just comment out the code.
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2867 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2868 am__include="#"
2869 am__quote=
2870 _am_result=none
2871 # First try GNU make style include.
2872 echo "include confinc" > confmf
2873 # Ignore all kinds of additional output from `make'.
2874 case `$am_make -s -f confmf 2> /dev/null` in #(
2875 *the\ am__doit\ target*)
2876 am__include=include
2877 am__quote=
2878 _am_result=GNU
2879 ;;
2880 esac
2881 # Now try BSD make style include.
2882 if test "$am__include" = "#"; then
2883 echo '.include "confinc"' > confmf
2884 case `$am_make -s -f confmf 2> /dev/null` in #(
2885 *the\ am__doit\ target*)
2886 am__include=.include
2887 am__quote="\""
2888 _am_result=BSD
2889 ;;
2890 esac
2891 fi
2892
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2895 $as_echo "$_am_result" >&6; }
2896 rm -f confinc confmf
2897
2898 # Check whether --enable-dependency-tracking was given.
2899 if test "${enable_dependency_tracking+set}" = set; then :
2900 enableval=$enable_dependency_tracking;
2901 fi
2902
2903 if test "x$enable_dependency_tracking" != xno; then
2904 am_depcomp="$ac_aux_dir/depcomp"
2905 AMDEPBACKSLASH='\'
2906 am__nodep='_no'
2907 fi
2908 if test "x$enable_dependency_tracking" != xno; then
2909 AMDEP_TRUE=
2910 AMDEP_FALSE='#'
2911 else
2912 AMDEP_TRUE='#'
2913 AMDEP_FALSE=
2914 fi
2915
2916
2917 ac_ext=c
2918 ac_cpp='$CPP $CPPFLAGS'
2919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 fi
2961 if test -z "$ac_cv_prog_CC"; then
2962 ac_ct_CC=$CC
2963 # Extract the first word of "gcc", so it can be a program name with args.
2964 set dummy gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_ac_ct_CC="gcc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993 $as_echo "$ac_ct_CC" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999 if test "x$ac_ct_CC" = x; then
3000 CC=""
3001 else
3002 case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3009 fi
3010 else
3011 CC="$ac_cv_prog_CC"
3012 fi
3013
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="${ac_tool_prefix}cc"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3047 else
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053 fi
3054 fi
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 ac_prog_rejected=no
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected=yes
3076 continue
3077 fi
3078 ac_cv_prog_CC="cc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 if test $ac_prog_rejected = yes; then
3087 # We found a bogon in the path, so make sure we never use it.
3088 set dummy $ac_cv_prog_CC
3089 shift
3090 if test $# != 0; then
3091 # We chose a different compiler from the bogus one.
3092 # However, it has the same basename, so the bogon will be chosen
3093 # first if we set CC to just the basename; use the full file name.
3094 shift
3095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096 fi
3097 fi
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 fi
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 for ac_prog in cl.exe
3114 do
3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; 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_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 test -n "$CC" && break
3153 done
3154 fi
3155 if test -z "$CC"; then
3156 ac_ct_CC=$CC
3157 for ac_prog in cl.exe
3158 do
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_ac_ct_CC="$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189 $as_echo "$ac_ct_CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 test -n "$ac_ct_CC" && break
3197 done
3198
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208 CC=$ac_ct_CC
3209 fi
3210 fi
3211
3212 fi
3213
3214
3215 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "no acceptable C compiler found in \$PATH
3218 See \`config.log' for more details" "$LINENO" 5; }
3219
3220 # Provide some information about the compiler.
3221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3222 set X $ac_compile
3223 ac_compiler=$2
3224 for ac_option in --version -v -V -qversion; do
3225 { { ac_try="$ac_compiler $ac_option >&5"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233 ac_status=$?
3234 if test -s conftest.err; then
3235 sed '10a\
3236 ... rest of stderr output deleted ...
3237 10q' conftest.err >conftest.er1
3238 cat conftest.er1 >&5
3239 fi
3240 rm -f conftest.er1 conftest.err
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }
3243 done
3244
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3247
3248 int
3249 main ()
3250 {
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 ac_clean_files_save=$ac_clean_files
3257 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3258 # Try to create an executable without -o first, disregard a.out.
3259 # It will help us diagnose broken compilers, and finding out an intuition
3260 # of exeext.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3262 $as_echo_n "checking whether the C compiler works... " >&6; }
3263 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264
3265 # The possible output files:
3266 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3267
3268 ac_rmfiles=
3269 for ac_file in $ac_files
3270 do
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3274 esac
3275 done
3276 rm -f $ac_rmfiles
3277
3278 if { { ac_try="$ac_link_default"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_link_default") 2>&5
3286 ac_status=$?
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }; then :
3289 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3290 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3291 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3292 # so that the user can short-circuit this test for compilers unknown to
3293 # Autoconf.
3294 for ac_file in $ac_files ''
3295 do
3296 test -f "$ac_file" || continue
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3299 ;;
3300 [ab].out )
3301 # We found the default executable, but exeext='' is most
3302 # certainly right.
3303 break;;
3304 *.* )
3305 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3306 then :; else
3307 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 fi
3309 # We set ac_cv_exeext here because the later test for it is not
3310 # safe: cross compilers may not add the suffix if given an `-o'
3311 # argument, so we may need to know it at that point already.
3312 # Even if this section looks crufty: it has the advantage of
3313 # actually working.
3314 break;;
3315 * )
3316 break;;
3317 esac
3318 done
3319 test "$ac_cv_exeext" = no && ac_cv_exeext=
3320
3321 else
3322 ac_file=''
3323 fi
3324 if test -z "$ac_file"; then :
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error 77 "C compiler cannot create executables
3333 See \`config.log' for more details" "$LINENO" 5; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3339 $as_echo_n "checking for C compiler default output file name... " >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3341 $as_echo "$ac_file" >&6; }
3342 ac_exeext=$ac_cv_exeext
3343
3344 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3345 ac_clean_files=$ac_clean_files_save
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3347 $as_echo_n "checking for suffix of executables... " >&6; }
3348 if { { ac_try="$ac_link"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_link") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3361 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 # `rm'.
3363 for ac_file in conftest.exe conftest conftest.*; do
3364 test -f "$ac_file" || continue
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368 break;;
3369 * ) break;;
3370 esac
3371 done
3372 else
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3376 See \`config.log' for more details" "$LINENO" 5; }
3377 fi
3378 rm -f conftest conftest$ac_cv_exeext
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3380 $as_echo "$ac_cv_exeext" >&6; }
3381
3382 rm -f conftest.$ac_ext
3383 EXEEXT=$ac_cv_exeext
3384 ac_exeext=$EXEEXT
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3387 #include <stdio.h>
3388 int
3389 main ()
3390 {
3391 FILE *f = fopen ("conftest.out", "w");
3392 return ferror (f) || fclose (f) != 0;
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 ac_clean_files="$ac_clean_files conftest.out"
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3402 $as_echo_n "checking whether we are cross compiling... " >&6; }
3403 if test "$cross_compiling" != yes; then
3404 { { ac_try="$ac_link"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_link") 2>&5
3412 ac_status=$?
3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }
3415 if { ac_try='./conftest$ac_cv_exeext'
3416 { { case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_try") 2>&5
3423 ac_status=$?
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }; }; then
3426 cross_compiling=no
3427 else
3428 if test "$cross_compiling" = maybe; then
3429 cross_compiling=yes
3430 else
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot run C compiled programs.
3434 If you meant to cross compile, use \`--host'.
3435 See \`config.log' for more details" "$LINENO" 5; }
3436 fi
3437 fi
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3440 $as_echo "$cross_compiling" >&6; }
3441
3442 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3445 $as_echo_n "checking for suffix of object files... " >&6; }
3446 if ${ac_cv_objext+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.o conftest.obj
3461 if { { ac_try="$ac_compile"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compile") 2>&5
3469 ac_status=$?
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 for ac_file in conftest.o conftest.obj conftest.*; do
3473 test -f "$ac_file" || continue;
3474 case $ac_file in
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3477 break;;
3478 esac
3479 done
3480 else
3481 $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "cannot compute suffix of object files: cannot compile
3487 See \`config.log' for more details" "$LINENO" 5; }
3488 fi
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3492 $as_echo "$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3496 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3497 if ${ac_cv_c_compiler_gnu+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502
3503 int
3504 main ()
3505 {
3506 #ifndef __GNUC__
3507 choke me
3508 #endif
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_compiler_gnu=yes
3516 else
3517 ac_compiler_gnu=no
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3521
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3525 if test $ac_compiler_gnu = yes; then
3526 GCC=yes
3527 else
3528 GCC=
3529 fi
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3533 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3534 if ${ac_cv_prog_cc_g+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3539 ac_cv_prog_cc_g=no
3540 CFLAGS="-g"
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_cv_prog_cc_g=yes
3554 else
3555 CFLAGS=""
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3568
3569 else
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3571 CFLAGS="-g"
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_g=yes
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_c_werror_flag=$ac_save_c_werror_flag
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3594 $as_echo "$ac_cv_prog_cc_g" >&6; }
3595 if test "$ac_test_CFLAGS" = set; then
3596 CFLAGS=$ac_save_CFLAGS
3597 elif test $ac_cv_prog_cc_g = yes; then
3598 if test "$GCC" = yes; then
3599 CFLAGS="-g -O2"
3600 else
3601 CFLAGS="-g"
3602 fi
3603 else
3604 if test "$GCC" = yes; then
3605 CFLAGS="-O2"
3606 else
3607 CFLAGS=
3608 fi
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3611 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612 if ${ac_cv_prog_cc_c89+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 ac_cv_prog_cc_c89=no
3616 ac_save_CC=$CC
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3629 {
3630 return p[i];
3631 }
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3633 {
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3640 }
3641
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3662 int
3663 main ()
3664 {
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 do
3673 CC="$ac_save_CC $ac_arg"
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_c89=$ac_arg
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext
3678 test "x$ac_cv_prog_cc_c89" != "xno" && break
3679 done
3680 rm -f conftest.$ac_ext
3681 CC=$ac_save_CC
3682
3683 fi
3684 # AC_CACHE_VAL
3685 case "x$ac_cv_prog_cc_c89" in
3686 x)
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3688 $as_echo "none needed" >&6; } ;;
3689 xno)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3691 $as_echo "unsupported" >&6; } ;;
3692 *)
3693 CC="$CC $ac_cv_prog_cc_c89"
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3695 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3696 esac
3697 if test "x$ac_cv_prog_cc_c89" != xno; then :
3698
3699 fi
3700
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706
3707 depcc="$CC" am_compiler_list=
3708
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3710 $as_echo_n "checking dependency style of $depcc... " >&6; }
3711 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3719 # in D'.
3720 rm -rf conftest.dir
3721 mkdir conftest.dir
3722 # Copy depcomp to subdir because otherwise we won't find it if we're
3723 # using a relative directory.
3724 cp "$am_depcomp" conftest.dir
3725 cd conftest.dir
3726 # We will build objects and dependencies in a subdirectory because
3727 # it helps to detect inapplicable dependency modes. For instance
3728 # both Tru64's cc and ICC support -MD to output dependencies as a
3729 # side effect of compilation, but ICC will put the dependencies in
3730 # the current directory while Tru64 will put them in the object
3731 # directory.
3732 mkdir sub
3733
3734 am_cv_CC_dependencies_compiler_type=none
3735 if test "$am_compiler_list" = ""; then
3736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 fi
3738 am__universal=false
3739 case " $depcc " in #(
3740 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3741 esac
3742
3743 for depmode in $am_compiler_list; do
3744 # Setup a source with many dependencies, because some compilers
3745 # like to wrap large dependency lists on column 80 (with \), and
3746 # we should not choose a depcomp mode which is confused by this.
3747 #
3748 # We need to recreate these files for each test, as the compiler may
3749 # overwrite some of them when testing with obscure command lines.
3750 # This happens at least with the AIX C compiler.
3751 : > sub/conftest.c
3752 for i in 1 2 3 4 5 6; do
3753 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3754 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3755 # Solaris 8's {/usr,}/bin/sh.
3756 touch sub/conftst$i.h
3757 done
3758 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3759
3760 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3761 # mode. It turns out that the SunPro C++ compiler does not properly
3762 # handle `-M -o', and we need to detect this. Also, some Intel
3763 # versions had trouble with output in subdirs
3764 am__obj=sub/conftest.${OBJEXT-o}
3765 am__minus_obj="-o $am__obj"
3766 case $depmode in
3767 gcc)
3768 # This depmode causes a compiler race in universal mode.
3769 test "$am__universal" = false || continue
3770 ;;
3771 nosideeffect)
3772 # after this tag, mechanisms are not by side-effect, so they'll
3773 # only be used when explicitly requested
3774 if test "x$enable_dependency_tracking" = xyes; then
3775 continue
3776 else
3777 break
3778 fi
3779 ;;
3780 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3781 # This compiler won't grok `-c -o', but also, the minuso test has
3782 # not run yet. These depmodes are late enough in the game, and
3783 # so weak that their functioning should not be impacted.
3784 am__obj=conftest.${OBJEXT-o}
3785 am__minus_obj=
3786 ;;
3787 none) break ;;
3788 esac
3789 if depmode=$depmode \
3790 source=sub/conftest.c object=$am__obj \
3791 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3792 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3793 >/dev/null 2>conftest.err &&
3794 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3795 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3796 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3797 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3798 # icc doesn't choke on unknown options, it will just issue warnings
3799 # or remarks (even with -Werror). So we grep stderr for any message
3800 # that says an option was ignored or not supported.
3801 # When given -MP, icc 7.0 and 7.1 complain thusly:
3802 # icc: Command line warning: ignoring option '-M'; no argument required
3803 # The diagnosis changed in icc 8.0:
3804 # icc: Command line remark: option '-MP' not supported
3805 if (grep 'ignoring option' conftest.err ||
3806 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3807 am_cv_CC_dependencies_compiler_type=$depmode
3808 break
3809 fi
3810 fi
3811 done
3812
3813 cd ..
3814 rm -rf conftest.dir
3815 else
3816 am_cv_CC_dependencies_compiler_type=none
3817 fi
3818
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3821 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3822 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3823
3824 if
3825 test "x$enable_dependency_tracking" != xno \
3826 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3827 am__fastdepCC_TRUE=
3828 am__fastdepCC_FALSE='#'
3829 else
3830 am__fastdepCC_TRUE='#'
3831 am__fastdepCC_FALSE=
3832 fi
3833
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3836 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3837 if ${ac_cv_prog_cc_c99+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 ac_cv_prog_cc_c99=no
3841 ac_save_CC=$CC
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844 #include <stdarg.h>
3845 #include <stdbool.h>
3846 #include <stdlib.h>
3847 #include <wchar.h>
3848 #include <stdio.h>
3849
3850 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3851 #define debug(...) fprintf (stderr, __VA_ARGS__)
3852 #define showlist(...) puts (#__VA_ARGS__)
3853 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3854 static void
3855 test_varargs_macros (void)
3856 {
3857 int x = 1234;
3858 int y = 5678;
3859 debug ("Flag");
3860 debug ("X = %d\n", x);
3861 showlist (The first, second, and third items.);
3862 report (x>y, "x is %d but y is %d", x, y);
3863 }
3864
3865 // Check long long types.
3866 #define BIG64 18446744073709551615ull
3867 #define BIG32 4294967295ul
3868 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3869 #if !BIG_OK
3870 your preprocessor is broken;
3871 #endif
3872 #if BIG_OK
3873 #else
3874 your preprocessor is broken;
3875 #endif
3876 static long long int bignum = -9223372036854775807LL;
3877 static unsigned long long int ubignum = BIG64;
3878
3879 struct incomplete_array
3880 {
3881 int datasize;
3882 double data[];
3883 };
3884
3885 struct named_init {
3886 int number;
3887 const wchar_t *name;
3888 double average;
3889 };
3890
3891 typedef const char *ccp;
3892
3893 static inline int
3894 test_restrict (ccp restrict text)
3895 {
3896 // See if C++-style comments work.
3897 // Iterate through items via the restricted pointer.
3898 // Also check for declarations in for loops.
3899 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3900 continue;
3901 return 0;
3902 }
3903
3904 // Check varargs and va_copy.
3905 static void
3906 test_varargs (const char *format, ...)
3907 {
3908 va_list args;
3909 va_start (args, format);
3910 va_list args_copy;
3911 va_copy (args_copy, args);
3912
3913 const char *str;
3914 int number;
3915 float fnumber;
3916
3917 while (*format)
3918 {
3919 switch (*format++)
3920 {
3921 case 's': // string
3922 str = va_arg (args_copy, const char *);
3923 break;
3924 case 'd': // int
3925 number = va_arg (args_copy, int);
3926 break;
3927 case 'f': // float
3928 fnumber = va_arg (args_copy, double);
3929 break;
3930 default:
3931 break;
3932 }
3933 }
3934 va_end (args_copy);
3935 va_end (args);
3936 }
3937
3938 int
3939 main ()
3940 {
3941
3942 // Check bool.
3943 _Bool success = false;
3944
3945 // Check restrict.
3946 if (test_restrict ("String literal") == 0)
3947 success = true;
3948 char *restrict newvar = "Another string";
3949
3950 // Check varargs.
3951 test_varargs ("s, d' f .", "string", 65, 34.234);
3952 test_varargs_macros ();
3953
3954 // Check flexible array members.
3955 struct incomplete_array *ia =
3956 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3957 ia->datasize = 10;
3958 for (int i = 0; i < ia->datasize; ++i)
3959 ia->data[i] = i * 1.234;
3960
3961 // Check named initializers.
3962 struct named_init ni = {
3963 .number = 34,
3964 .name = L"Test wide string",
3965 .average = 543.34343,
3966 };
3967
3968 ni.number = 58;
3969
3970 int dynamic_array[ni.number];
3971 dynamic_array[ni.number - 1] = 543;
3972
3973 // work around unused variable warnings
3974 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3975 || dynamic_array[ni.number - 1] != 543);
3976
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3982 do
3983 CC="$ac_save_CC $ac_arg"
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_c99=$ac_arg
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext
3988 test "x$ac_cv_prog_cc_c99" != "xno" && break
3989 done
3990 rm -f conftest.$ac_ext
3991 CC=$ac_save_CC
3992
3993 fi
3994 # AC_CACHE_VAL
3995 case "x$ac_cv_prog_cc_c99" in
3996 x)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
3999 xno)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4002 *)
4003 CC="$CC $ac_cv_prog_cc_c99"
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4005 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4006 esac
4007 if test "x$ac_cv_prog_cc_c99" != xno; then :
4008
4009 fi
4010
4011
4012
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4019 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4020 # On Suns, sometimes $CPP names a directory.
4021 if test -n "$CPP" && test -d "$CPP"; then
4022 CPP=
4023 fi
4024 if test -z "$CPP"; then
4025 if ${ac_cv_prog_CPP+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 # Double quotes because CPP needs to be expanded
4029 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4030 do
4031 ac_preproc_ok=false
4032 for ac_c_preproc_warn_flag in '' yes
4033 do
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047 Syntax error
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4050
4051 else
4052 # Broken: fails on valid input.
4053 continue
4054 fi
4055 rm -f conftest.err conftest.i conftest.$ac_ext
4056
4057 # OK, works on sane cases. Now check whether nonexistent headers
4058 # can be detected and how.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <ac_nonexistent.h>
4062 _ACEOF
4063 if ac_fn_c_try_cpp "$LINENO"; then :
4064 # Broken: success on invalid input.
4065 continue
4066 else
4067 # Passes both tests.
4068 ac_preproc_ok=:
4069 break
4070 fi
4071 rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073 done
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.i conftest.err conftest.$ac_ext
4076 if $ac_preproc_ok; then :
4077 break
4078 fi
4079
4080 done
4081 ac_cv_prog_CPP=$CPP
4082
4083 fi
4084 CPP=$ac_cv_prog_CPP
4085 else
4086 ac_cv_prog_CPP=$CPP
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4089 $as_echo "$CPP" >&6; }
4090 ac_preproc_ok=false
4091 for ac_c_preproc_warn_flag in '' yes
4092 do
4093 # Use a header file that comes with gcc, so configuring glibc
4094 # with a fresh cross-compiler works.
4095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096 # <limits.h> exists even on freestanding compilers.
4097 # On the NeXT, cc -E runs the code through the compiler's parser,
4098 # not just through cpp. "Syntax error" is here to catch this case.
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #ifdef __STDC__
4102 # include <limits.h>
4103 #else
4104 # include <assert.h>
4105 #endif
4106 Syntax error
4107 _ACEOF
4108 if ac_fn_c_try_cpp "$LINENO"; then :
4109
4110 else
4111 # Broken: fails on valid input.
4112 continue
4113 fi
4114 rm -f conftest.err conftest.i conftest.$ac_ext
4115
4116 # OK, works on sane cases. Now check whether nonexistent headers
4117 # can be detected and how.
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if ac_fn_c_try_cpp "$LINENO"; then :
4123 # Broken: success on invalid input.
4124 continue
4125 else
4126 # Passes both tests.
4127 ac_preproc_ok=:
4128 break
4129 fi
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132 done
4133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4134 rm -f conftest.i conftest.err conftest.$ac_ext
4135 if $ac_preproc_ok; then :
4136
4137 else
4138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4141 See \`config.log' for more details" "$LINENO" 5; }
4142 fi
4143
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4153 if ${ac_cv_path_GREP+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -z "$GREP"; then
4157 ac_path_GREP_found=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in grep ggrep; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4167 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4168 # Check for GNU ac_path_GREP and select it if it is found.
4169 # Check for GNU $ac_path_GREP
4170 case `"$ac_path_GREP" --version 2>&1` in
4171 *GNU*)
4172 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4173 *)
4174 ac_count=0
4175 $as_echo_n 0123456789 >"conftest.in"
4176 while :
4177 do
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'GREP' >> "conftest.nl"
4182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 as_fn_arith $ac_count + 1 && ac_count=$as_val
4185 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_GREP="$ac_path_GREP"
4188 ac_path_GREP_max=$ac_count
4189 fi
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4192 done
4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4195
4196 $ac_path_GREP_found && break 3
4197 done
4198 done
4199 done
4200 IFS=$as_save_IFS
4201 if test -z "$ac_cv_path_GREP"; then
4202 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203 fi
4204 else
4205 ac_cv_path_GREP=$GREP
4206 fi
4207
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4210 $as_echo "$ac_cv_path_GREP" >&6; }
4211 GREP="$ac_cv_path_GREP"
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4215 $as_echo_n "checking for egrep... " >&6; }
4216 if ${ac_cv_path_EGREP+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4220 then ac_cv_path_EGREP="$GREP -E"
4221 else
4222 if test -z "$EGREP"; then
4223 ac_path_EGREP_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in egrep; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4233 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4234 # Check for GNU ac_path_EGREP and select it if it is found.
4235 # Check for GNU $ac_path_EGREP
4236 case `"$ac_path_EGREP" --version 2>&1` in
4237 *GNU*)
4238 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4239 *)
4240 ac_count=0
4241 $as_echo_n 0123456789 >"conftest.in"
4242 while :
4243 do
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'EGREP' >> "conftest.nl"
4248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 as_fn_arith $ac_count + 1 && ac_count=$as_val
4251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_EGREP="$ac_path_EGREP"
4254 ac_path_EGREP_max=$ac_count
4255 fi
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4258 done
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4261
4262 $ac_path_EGREP_found && break 3
4263 done
4264 done
4265 done
4266 IFS=$as_save_IFS
4267 if test -z "$ac_cv_path_EGREP"; then
4268 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269 fi
4270 else
4271 ac_cv_path_EGREP=$EGREP
4272 fi
4273
4274 fi
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4277 $as_echo "$ac_cv_path_EGREP" >&6; }
4278 EGREP="$ac_cv_path_EGREP"
4279
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4282 $as_echo_n "checking for ANSI C header files... " >&6; }
4283 if ${ac_cv_header_stdc+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <stdlib.h>
4289 #include <stdarg.h>
4290 #include <string.h>
4291 #include <float.h>
4292
4293 int
4294 main ()
4295 {
4296
4297 ;
4298 return 0;
4299 }
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_header_stdc=yes
4303 else
4304 ac_cv_header_stdc=no
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307
4308 if test $ac_cv_header_stdc = yes; then
4309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <string.h>
4313
4314 _ACEOF
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 $EGREP "memchr" >/dev/null 2>&1; then :
4317
4318 else
4319 ac_cv_header_stdc=no
4320 fi
4321 rm -f conftest*
4322
4323 fi
4324
4325 if test $ac_cv_header_stdc = yes; then
4326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #include <stdlib.h>
4330
4331 _ACEOF
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 $EGREP "free" >/dev/null 2>&1; then :
4334
4335 else
4336 ac_cv_header_stdc=no
4337 fi
4338 rm -f conftest*
4339
4340 fi
4341
4342 if test $ac_cv_header_stdc = yes; then
4343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4344 if test "$cross_compiling" = yes; then :
4345 :
4346 else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <ctype.h>
4350 #include <stdlib.h>
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4354 #else
4355 # define ISLOWER(c) \
4356 (('a' <= (c) && (c) <= 'i') \
4357 || ('j' <= (c) && (c) <= 'r') \
4358 || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4360 #endif
4361
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4363 int
4364 main ()
4365 {
4366 int i;
4367 for (i = 0; i < 256; i++)
4368 if (XOR (islower (i), ISLOWER (i))
4369 || toupper (i) != TOUPPER (i))
4370 return 2;
4371 return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_run "$LINENO"; then :
4375
4376 else
4377 ac_cv_header_stdc=no
4378 fi
4379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4380 conftest.$ac_objext conftest.beam conftest.$ac_ext
4381 fi
4382
4383 fi
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4386 $as_echo "$ac_cv_header_stdc" >&6; }
4387 if test $ac_cv_header_stdc = yes; then
4388
4389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4390
4391 fi
4392
4393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4395 inttypes.h stdint.h unistd.h
4396 do :
4397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4399 "
4400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4401 cat >>confdefs.h <<_ACEOF
4402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 fi
4406
4407 done
4408
4409
4410
4411
4412
4413
4414 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4415 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4416 CLANGCC="yes"
4417 else
4418 CLANGCC="no"
4419 fi
4420
4421 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4422 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4423 INTELCC="yes"
4424 else
4425 INTELCC="no"
4426 fi
4427
4428 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4429 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4430 SUNCC="yes"
4431 else
4432 SUNCC="no"
4433 fi
4434
4435
4436
4437
4438
4439
4440
4441
4442 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 case $PKG_CONFIG in
4452 [\\/]* | ?:[\\/]*)
4453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4454 ;;
4455 *)
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 ;;
4472 esac
4473 fi
4474 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4475 if test -n "$PKG_CONFIG"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4477 $as_echo "$PKG_CONFIG" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 fi
4485 if test -z "$ac_cv_path_PKG_CONFIG"; then
4486 ac_pt_PKG_CONFIG=$PKG_CONFIG
4487 # Extract the first word of "pkg-config", so it can be a program name with args.
4488 set dummy pkg-config; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 case $ac_pt_PKG_CONFIG in
4495 [\\/]* | ?:[\\/]*)
4496 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4497 ;;
4498 *)
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510 done
4511 done
4512 IFS=$as_save_IFS
4513
4514 ;;
4515 esac
4516 fi
4517 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4518 if test -n "$ac_pt_PKG_CONFIG"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4520 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525
4526 if test "x$ac_pt_PKG_CONFIG" = x; then
4527 PKG_CONFIG=""
4528 else
4529 case $cross_compiling:$ac_tool_warned in
4530 yes:)
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4533 ac_tool_warned=yes ;;
4534 esac
4535 PKG_CONFIG=$ac_pt_PKG_CONFIG
4536 fi
4537 else
4538 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4539 fi
4540
4541 fi
4542 if test -n "$PKG_CONFIG"; then
4543 _pkg_min_version=0.9.0
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4545 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4546 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4548 $as_echo "yes" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 PKG_CONFIG=""
4553 fi
4554 fi
4555 # Make sure we can run config.sub.
4556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4560 $as_echo_n "checking build system type... " >&6; }
4561 if ${ac_cv_build+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 ac_build_alias=$build_alias
4565 test "x$ac_build_alias" = x &&
4566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4567 test "x$ac_build_alias" = x &&
4568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4571
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4574 $as_echo "$ac_cv_build" >&6; }
4575 case $ac_cv_build in
4576 *-*-*) ;;
4577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4578 esac
4579 build=$ac_cv_build
4580 ac_save_IFS=$IFS; IFS='-'
4581 set x $ac_cv_build
4582 shift
4583 build_cpu=$1
4584 build_vendor=$2
4585 shift; shift
4586 # Remember, the first character of IFS is used to create $*,
4587 # except with old shells:
4588 build_os=$*
4589 IFS=$ac_save_IFS
4590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4591
4592
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4594 $as_echo_n "checking host system type... " >&6; }
4595 if ${ac_cv_host+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test "x$host_alias" = x; then
4599 ac_cv_host=$ac_cv_build
4600 else
4601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4603 fi
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4607 $as_echo "$ac_cv_host" >&6; }
4608 case $ac_cv_host in
4609 *-*-*) ;;
4610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4611 esac
4612 host=$ac_cv_host
4613 ac_save_IFS=$IFS; IFS='-'
4614 set x $ac_cv_host
4615 shift
4616 host_cpu=$1
4617 host_vendor=$2
4618 shift; shift
4619 # Remember, the first character of IFS is used to create $*,
4620 # except with old shells:
4621 host_os=$*
4622 IFS=$ac_save_IFS
4623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4624
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4627 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4628 if ${ac_cv_path_SED+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4632 for ac_i in 1 2 3 4 5 6 7; do
4633 ac_script="$ac_script$as_nl$ac_script"
4634 done
4635 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4636 { ac_script=; unset ac_script;}
4637 if test -z "$SED"; then
4638 ac_path_SED_found=false
4639 # Loop through the user's path and test for each of PROGNAME-LIST
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_prog in sed gsed; do
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4648 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4649 # Check for GNU ac_path_SED and select it if it is found.
4650 # Check for GNU $ac_path_SED
4651 case `"$ac_path_SED" --version 2>&1` in
4652 *GNU*)
4653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4654 *)
4655 ac_count=0
4656 $as_echo_n 0123456789 >"conftest.in"
4657 while :
4658 do
4659 cat "conftest.in" "conftest.in" >"conftest.tmp"
4660 mv "conftest.tmp" "conftest.in"
4661 cp "conftest.in" "conftest.nl"
4662 $as_echo '' >> "conftest.nl"
4663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665 as_fn_arith $ac_count + 1 && ac_count=$as_val
4666 if test $ac_count -gt ${ac_path_SED_max-0}; then
4667 # Best one so far, save it but keep looking for a better one
4668 ac_cv_path_SED="$ac_path_SED"
4669 ac_path_SED_max=$ac_count
4670 fi
4671 # 10*(2^10) chars as input seems more than enough
4672 test $ac_count -gt 10 && break
4673 done
4674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 esac
4676
4677 $ac_path_SED_found && break 3
4678 done
4679 done
4680 done
4681 IFS=$as_save_IFS
4682 if test -z "$ac_cv_path_SED"; then
4683 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4684 fi
4685 else
4686 ac_cv_path_SED=$SED
4687 fi
4688
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4691 $as_echo "$ac_cv_path_SED" >&6; }
4692 SED="$ac_cv_path_SED"
4693 rm -f conftest.sed
4694
4695
4696
4697
4698
4699
4700 # Check whether --enable-selective-werror was given.
4701 if test "${enable_selective_werror+set}" = set; then :
4702 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4703 else
4704 SELECTIVE_WERROR=yes
4705 fi
4706
4707
4708
4709
4710
4711 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4712 if test "x$SUNCC" = "xyes"; then
4713 BASE_CFLAGS="-v"
4714 else
4715 BASE_CFLAGS=""
4716 fi
4717
4718 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732 xorg_testset_save_CFLAGS="$CFLAGS"
4733
4734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4737 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4738 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 int i;
4744 _ACEOF
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 xorg_cv_cc_flag_unknown_warning_option=yes
4747 else
4748 xorg_cv_cc_flag_unknown_warning_option=no
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4753 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4755 CFLAGS="$xorg_testset_save_CFLAGS"
4756 fi
4757
4758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4761 fi
4762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4764 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4765 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 int i;
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 xorg_cv_cc_flag_unused_command_line_argument=yes
4774 else
4775 xorg_cv_cc_flag_unused_command_line_argument=no
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4780 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4782 CFLAGS="$xorg_testset_save_CFLAGS"
4783 fi
4784
4785 found="no"
4786
4787 if test $found = "no" ; then
4788 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4790 fi
4791
4792 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4794 fi
4795
4796 CFLAGS="$CFLAGS -Wall"
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4799 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4800 cacheid=xorg_cv_cc_flag__Wall
4801 if eval \${$cacheid+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806 int i;
4807 int
4808 main ()
4809 {
4810
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 if ac_fn_c_try_link "$LINENO"; then :
4816 eval $cacheid=yes
4817 else
4818 eval $cacheid=no
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext \
4821 conftest$ac_exeext conftest.$ac_ext
4822 fi
4823
4824
4825 CFLAGS="$xorg_testset_save_CFLAGS"
4826
4827 eval supported=\$$cacheid
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4829 $as_echo "$supported" >&6; }
4830 if test "$supported" = "yes" ; then
4831 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4832 found="yes"
4833 fi
4834 fi
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850 xorg_testset_save_CFLAGS="$CFLAGS"
4851
4852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 int i;
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 xorg_cv_cc_flag_unknown_warning_option=yes
4865 else
4866 xorg_cv_cc_flag_unknown_warning_option=no
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4873 CFLAGS="$xorg_testset_save_CFLAGS"
4874 fi
4875
4876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4879 fi
4880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 int i;
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 xorg_cv_cc_flag_unused_command_line_argument=yes
4892 else
4893 xorg_cv_cc_flag_unused_command_line_argument=no
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4900 CFLAGS="$xorg_testset_save_CFLAGS"
4901 fi
4902
4903 found="no"
4904
4905 if test $found = "no" ; then
4906 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908 fi
4909
4910 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4912 fi
4913
4914 CFLAGS="$CFLAGS -Wpointer-arith"
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4917 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4918 cacheid=xorg_cv_cc_flag__Wpointer_arith
4919 if eval \${$cacheid+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 int i;
4925 int
4926 main ()
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_c_try_link "$LINENO"; then :
4934 eval $cacheid=yes
4935 else
4936 eval $cacheid=no
4937 fi
4938 rm -f core conftest.err conftest.$ac_objext \
4939 conftest$ac_exeext conftest.$ac_ext
4940 fi
4941
4942
4943 CFLAGS="$xorg_testset_save_CFLAGS"
4944
4945 eval supported=\$$cacheid
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4947 $as_echo "$supported" >&6; }
4948 if test "$supported" = "yes" ; then
4949 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4950 found="yes"
4951 fi
4952 fi
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 xorg_testset_save_CFLAGS="$CFLAGS"
4969
4970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 int i;
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 xorg_cv_cc_flag_unknown_warning_option=yes
4983 else
4984 xorg_cv_cc_flag_unknown_warning_option=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4991 CFLAGS="$xorg_testset_save_CFLAGS"
4992 fi
4993
4994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997 fi
4998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 int i;
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 xorg_cv_cc_flag_unused_command_line_argument=yes
5010 else
5011 xorg_cv_cc_flag_unused_command_line_argument=no
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5018 CFLAGS="$xorg_testset_save_CFLAGS"
5019 fi
5020
5021 found="no"
5022
5023 if test $found = "no" ; then
5024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026 fi
5027
5028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5030 fi
5031
5032 CFLAGS="$CFLAGS -Wmissing-declarations"
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5035 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5036 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5037 if eval \${$cacheid+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 int i;
5043 int
5044 main ()
5045 {
5046
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 if ac_fn_c_try_link "$LINENO"; then :
5052 eval $cacheid=yes
5053 else
5054 eval $cacheid=no
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058 fi
5059
5060
5061 CFLAGS="$xorg_testset_save_CFLAGS"
5062
5063 eval supported=\$$cacheid
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5065 $as_echo "$supported" >&6; }
5066 if test "$supported" = "yes" ; then
5067 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5068 found="yes"
5069 fi
5070 fi
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 xorg_testset_save_CFLAGS="$CFLAGS"
5087
5088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5091 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5092 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 int i;
5098 _ACEOF
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 xorg_cv_cc_flag_unknown_warning_option=yes
5101 else
5102 xorg_cv_cc_flag_unknown_warning_option=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5107 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5109 CFLAGS="$xorg_testset_save_CFLAGS"
5110 fi
5111
5112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5115 fi
5116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5118 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5119 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 int i;
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 xorg_cv_cc_flag_unused_command_line_argument=yes
5128 else
5129 xorg_cv_cc_flag_unused_command_line_argument=no
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5134 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5136 CFLAGS="$xorg_testset_save_CFLAGS"
5137 fi
5138
5139 found="no"
5140
5141 if test $found = "no" ; then
5142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5144 fi
5145
5146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5148 fi
5149
5150 CFLAGS="$CFLAGS -Wformat=2"
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5153 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5154 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5155 if eval \${$cacheid+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 int i;
5161 int
5162 main ()
5163 {
5164
5165 ;
5166 return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_link "$LINENO"; then :
5170 eval $cacheid=yes
5171 else
5172 eval $cacheid=no
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext \
5175 conftest$ac_exeext conftest.$ac_ext
5176 fi
5177
5178
5179 CFLAGS="$xorg_testset_save_CFLAGS"
5180
5181 eval supported=\$$cacheid
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5183 $as_echo "$supported" >&6; }
5184 if test "$supported" = "yes" ; then
5185 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5186 found="yes"
5187 fi
5188 fi
5189
5190 if test $found = "no" ; then
5191 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5193 fi
5194
5195 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5197 fi
5198
5199 CFLAGS="$CFLAGS -Wformat"
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5202 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5203 cacheid=xorg_cv_cc_flag__Wformat
5204 if eval \${$cacheid+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 int i;
5210 int
5211 main ()
5212 {
5213
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 if ac_fn_c_try_link "$LINENO"; then :
5219 eval $cacheid=yes
5220 else
5221 eval $cacheid=no
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext \
5224 conftest$ac_exeext conftest.$ac_ext
5225 fi
5226
5227
5228 CFLAGS="$xorg_testset_save_CFLAGS"
5229
5230 eval supported=\$$cacheid
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5232 $as_echo "$supported" >&6; }
5233 if test "$supported" = "yes" ; then
5234 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5235 found="yes"
5236 fi
5237 fi
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255 xorg_testset_save_CFLAGS="$CFLAGS"
5256
5257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5260 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5261 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 int i;
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 xorg_cv_cc_flag_unknown_warning_option=yes
5270 else
5271 xorg_cv_cc_flag_unknown_warning_option=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5276 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5278 CFLAGS="$xorg_testset_save_CFLAGS"
5279 fi
5280
5281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284 fi
5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5287 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5288 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 int i;
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296 xorg_cv_cc_flag_unused_command_line_argument=yes
5297 else
5298 xorg_cv_cc_flag_unused_command_line_argument=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5303 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5306 fi
5307
5308 found="no"
5309
5310 if test $found = "no" ; then
5311 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314
5315 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5317 fi
5318
5319 CFLAGS="$CFLAGS -Wstrict-prototypes"
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5322 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5323 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5324 if eval \${$cacheid+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 int i;
5330 int
5331 main ()
5332 {
5333
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_link "$LINENO"; then :
5339 eval $cacheid=yes
5340 else
5341 eval $cacheid=no
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345 fi
5346
5347
5348 CFLAGS="$xorg_testset_save_CFLAGS"
5349
5350 eval supported=\$$cacheid
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5352 $as_echo "$supported" >&6; }
5353 if test "$supported" = "yes" ; then
5354 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5355 found="yes"
5356 fi
5357 fi
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 xorg_testset_save_CFLAGS="$CFLAGS"
5374
5375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 int i;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 xorg_cv_cc_flag_unknown_warning_option=yes
5388 else
5389 xorg_cv_cc_flag_unknown_warning_option=no
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5396 CFLAGS="$xorg_testset_save_CFLAGS"
5397 fi
5398
5399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402 fi
5403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 int i;
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 xorg_cv_cc_flag_unused_command_line_argument=yes
5415 else
5416 xorg_cv_cc_flag_unused_command_line_argument=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5423 CFLAGS="$xorg_testset_save_CFLAGS"
5424 fi
5425
5426 found="no"
5427
5428 if test $found = "no" ; then
5429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431 fi
5432
5433 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5435 fi
5436
5437 CFLAGS="$CFLAGS -Wmissing-prototypes"
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5440 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5441 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5442 if eval \${$cacheid+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 int i;
5448 int
5449 main ()
5450 {
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_link "$LINENO"; then :
5457 eval $cacheid=yes
5458 else
5459 eval $cacheid=no
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
5463 fi
5464
5465
5466 CFLAGS="$xorg_testset_save_CFLAGS"
5467
5468 eval supported=\$$cacheid
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5470 $as_echo "$supported" >&6; }
5471 if test "$supported" = "yes" ; then
5472 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5473 found="yes"
5474 fi
5475 fi
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491 xorg_testset_save_CFLAGS="$CFLAGS"
5492
5493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5496 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5497 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 int i;
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then :
5505 xorg_cv_cc_flag_unknown_warning_option=yes
5506 else
5507 xorg_cv_cc_flag_unknown_warning_option=no
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5512 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5514 CFLAGS="$xorg_testset_save_CFLAGS"
5515 fi
5516
5517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520 fi
5521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5523 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5524 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 int i;
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 xorg_cv_cc_flag_unused_command_line_argument=yes
5533 else
5534 xorg_cv_cc_flag_unused_command_line_argument=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5539 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5541 CFLAGS="$xorg_testset_save_CFLAGS"
5542 fi
5543
5544 found="no"
5545
5546 if test $found = "no" ; then
5547 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549 fi
5550
5551 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553 fi
5554
5555 CFLAGS="$CFLAGS -Wnested-externs"
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5558 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5559 cacheid=xorg_cv_cc_flag__Wnested_externs
5560 if eval \${$cacheid+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 int i;
5566 int
5567 main ()
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_link "$LINENO"; then :
5575 eval $cacheid=yes
5576 else
5577 eval $cacheid=no
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 fi
5582
5583
5584 CFLAGS="$xorg_testset_save_CFLAGS"
5585
5586 eval supported=\$$cacheid
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5588 $as_echo "$supported" >&6; }
5589 if test "$supported" = "yes" ; then
5590 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5591 found="yes"
5592 fi
5593 fi
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 xorg_testset_save_CFLAGS="$CFLAGS"
5610
5611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5614 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5615 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 int i;
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 xorg_cv_cc_flag_unknown_warning_option=yes
5624 else
5625 xorg_cv_cc_flag_unknown_warning_option=no
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5630 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5632 CFLAGS="$xorg_testset_save_CFLAGS"
5633 fi
5634
5635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638 fi
5639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5641 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5642 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 int i;
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 xorg_cv_cc_flag_unused_command_line_argument=yes
5651 else
5652 xorg_cv_cc_flag_unused_command_line_argument=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5657 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5659 CFLAGS="$xorg_testset_save_CFLAGS"
5660 fi
5661
5662 found="no"
5663
5664 if test $found = "no" ; then
5665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667 fi
5668
5669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5671 fi
5672
5673 CFLAGS="$CFLAGS -Wbad-function-cast"
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5676 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5677 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5678 if eval \${$cacheid+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 int i;
5684 int
5685 main ()
5686 {
5687
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 if ac_fn_c_try_link "$LINENO"; then :
5693 eval $cacheid=yes
5694 else
5695 eval $cacheid=no
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext \
5698 conftest$ac_exeext conftest.$ac_ext
5699 fi
5700
5701
5702 CFLAGS="$xorg_testset_save_CFLAGS"
5703
5704 eval supported=\$$cacheid
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5706 $as_echo "$supported" >&6; }
5707 if test "$supported" = "yes" ; then
5708 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5709 found="yes"
5710 fi
5711 fi
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727 xorg_testset_save_CFLAGS="$CFLAGS"
5728
5729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 xorg_cv_cc_flag_unknown_warning_option=yes
5742 else
5743 xorg_cv_cc_flag_unknown_warning_option=no
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5750 CFLAGS="$xorg_testset_save_CFLAGS"
5751 fi
5752
5753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756 fi
5757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 int i;
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"; then :
5768 xorg_cv_cc_flag_unused_command_line_argument=yes
5769 else
5770 xorg_cv_cc_flag_unused_command_line_argument=no
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5777 CFLAGS="$xorg_testset_save_CFLAGS"
5778 fi
5779
5780 found="no"
5781
5782 if test $found = "no" ; then
5783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 fi
5786
5787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789 fi
5790
5791 CFLAGS="$CFLAGS -Wold-style-definition"
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5794 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5795 cacheid=xorg_cv_cc_flag__Wold_style_definition
5796 if eval \${$cacheid+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 int i;
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 eval $cacheid=yes
5812 else
5813 eval $cacheid=no
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 fi
5818
5819
5820 CFLAGS="$xorg_testset_save_CFLAGS"
5821
5822 eval supported=\$$cacheid
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5824 $as_echo "$supported" >&6; }
5825 if test "$supported" = "yes" ; then
5826 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5827 found="yes"
5828 fi
5829 fi
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 xorg_testset_save_CFLAGS="$CFLAGS"
5846
5847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 int i;
5857 _ACEOF
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859 xorg_cv_cc_flag_unknown_warning_option=yes
5860 else
5861 xorg_cv_cc_flag_unknown_warning_option=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5868 CFLAGS="$xorg_testset_save_CFLAGS"
5869 fi
5870
5871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874 fi
5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 int i;
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 xorg_cv_cc_flag_unused_command_line_argument=yes
5887 else
5888 xorg_cv_cc_flag_unused_command_line_argument=no
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5895 CFLAGS="$xorg_testset_save_CFLAGS"
5896 fi
5897
5898 found="no"
5899
5900 if test $found = "no" ; then
5901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903 fi
5904
5905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5907 fi
5908
5909 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5912 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5913 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5914 if eval \${$cacheid+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 int i;
5920 int
5921 main ()
5922 {
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 if ac_fn_c_try_link "$LINENO"; then :
5929 eval $cacheid=yes
5930 else
5931 eval $cacheid=no
5932 fi
5933 rm -f core conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext conftest.$ac_ext
5935 fi
5936
5937
5938 CFLAGS="$xorg_testset_save_CFLAGS"
5939
5940 eval supported=\$$cacheid
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5942 $as_echo "$supported" >&6; }
5943 if test "$supported" = "yes" ; then
5944 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5945 found="yes"
5946 fi
5947 fi
5948
5949
5950
5951
5952
5953 # This chunk adds additional warnings that could catch undesired effects.
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 xorg_testset_save_CFLAGS="$CFLAGS"
5968
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 int i;
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 xorg_cv_cc_flag_unknown_warning_option=yes
5982 else
5983 xorg_cv_cc_flag_unknown_warning_option=no
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5990 CFLAGS="$xorg_testset_save_CFLAGS"
5991 fi
5992
5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996 fi
5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 int i;
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 xorg_cv_cc_flag_unused_command_line_argument=yes
6009 else
6010 xorg_cv_cc_flag_unused_command_line_argument=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6017 CFLAGS="$xorg_testset_save_CFLAGS"
6018 fi
6019
6020 found="no"
6021
6022 if test $found = "no" ; then
6023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6025 fi
6026
6027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6029 fi
6030
6031 CFLAGS="$CFLAGS -Wunused"
6032
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6034 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6035 cacheid=xorg_cv_cc_flag__Wunused
6036 if eval \${$cacheid+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 int i;
6042 int
6043 main ()
6044 {
6045
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 if ac_fn_c_try_link "$LINENO"; then :
6051 eval $cacheid=yes
6052 else
6053 eval $cacheid=no
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6057 fi
6058
6059
6060 CFLAGS="$xorg_testset_save_CFLAGS"
6061
6062 eval supported=\$$cacheid
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6064 $as_echo "$supported" >&6; }
6065 if test "$supported" = "yes" ; then
6066 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6067 found="yes"
6068 fi
6069 fi
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 xorg_testset_save_CFLAGS="$CFLAGS"
6086
6087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 xorg_cv_cc_flag_unknown_warning_option=yes
6100 else
6101 xorg_cv_cc_flag_unknown_warning_option=no
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6108 CFLAGS="$xorg_testset_save_CFLAGS"
6109 fi
6110
6111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114 fi
6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 int i;
6124 _ACEOF
6125 if ac_fn_c_try_compile "$LINENO"; then :
6126 xorg_cv_cc_flag_unused_command_line_argument=yes
6127 else
6128 xorg_cv_cc_flag_unused_command_line_argument=no
6129 fi
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6135 CFLAGS="$xorg_testset_save_CFLAGS"
6136 fi
6137
6138 found="no"
6139
6140 if test $found = "no" ; then
6141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6143 fi
6144
6145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6147 fi
6148
6149 CFLAGS="$CFLAGS -Wuninitialized"
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6152 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6153 cacheid=xorg_cv_cc_flag__Wuninitialized
6154 if eval \${$cacheid+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 int i;
6160 int
6161 main ()
6162 {
6163
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_link "$LINENO"; then :
6169 eval $cacheid=yes
6170 else
6171 eval $cacheid=no
6172 fi
6173 rm -f core conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6175 fi
6176
6177
6178 CFLAGS="$xorg_testset_save_CFLAGS"
6179
6180 eval supported=\$$cacheid
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6182 $as_echo "$supported" >&6; }
6183 if test "$supported" = "yes" ; then
6184 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6185 found="yes"
6186 fi
6187 fi
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 xorg_testset_save_CFLAGS="$CFLAGS"
6204
6205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 int i;
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 xorg_cv_cc_flag_unknown_warning_option=yes
6218 else
6219 xorg_cv_cc_flag_unknown_warning_option=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6226 CFLAGS="$xorg_testset_save_CFLAGS"
6227 fi
6228
6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232 fi
6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 int i;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 xorg_cv_cc_flag_unused_command_line_argument=yes
6245 else
6246 xorg_cv_cc_flag_unused_command_line_argument=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6253 CFLAGS="$xorg_testset_save_CFLAGS"
6254 fi
6255
6256 found="no"
6257
6258 if test $found = "no" ; then
6259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6261 fi
6262
6263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6265 fi
6266
6267 CFLAGS="$CFLAGS -Wshadow"
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6270 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6271 cacheid=xorg_cv_cc_flag__Wshadow
6272 if eval \${$cacheid+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 int i;
6278 int
6279 main ()
6280 {
6281
6282 ;
6283 return 0;
6284 }
6285 _ACEOF
6286 if ac_fn_c_try_link "$LINENO"; then :
6287 eval $cacheid=yes
6288 else
6289 eval $cacheid=no
6290 fi
6291 rm -f core conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6293 fi
6294
6295
6296 CFLAGS="$xorg_testset_save_CFLAGS"
6297
6298 eval supported=\$$cacheid
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6300 $as_echo "$supported" >&6; }
6301 if test "$supported" = "yes" ; then
6302 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6303 found="yes"
6304 fi
6305 fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321 xorg_testset_save_CFLAGS="$CFLAGS"
6322
6323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 int i;
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 xorg_cv_cc_flag_unknown_warning_option=yes
6336 else
6337 xorg_cv_cc_flag_unknown_warning_option=no
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6344 CFLAGS="$xorg_testset_save_CFLAGS"
6345 fi
6346
6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350 fi
6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 int i;
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 xorg_cv_cc_flag_unused_command_line_argument=yes
6363 else
6364 xorg_cv_cc_flag_unused_command_line_argument=no
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6371 CFLAGS="$xorg_testset_save_CFLAGS"
6372 fi
6373
6374 found="no"
6375
6376 if test $found = "no" ; then
6377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 fi
6380
6381 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6383 fi
6384
6385 CFLAGS="$CFLAGS -Wcast-qual"
6386
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6388 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6389 cacheid=xorg_cv_cc_flag__Wcast_qual
6390 if eval \${$cacheid+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 int i;
6396 int
6397 main ()
6398 {
6399
6400 ;
6401 return 0;
6402 }
6403 _ACEOF
6404 if ac_fn_c_try_link "$LINENO"; then :
6405 eval $cacheid=yes
6406 else
6407 eval $cacheid=no
6408 fi
6409 rm -f core conftest.err conftest.$ac_objext \
6410 conftest$ac_exeext conftest.$ac_ext
6411 fi
6412
6413
6414 CFLAGS="$xorg_testset_save_CFLAGS"
6415
6416 eval supported=\$$cacheid
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6418 $as_echo "$supported" >&6; }
6419 if test "$supported" = "yes" ; then
6420 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6421 found="yes"
6422 fi
6423 fi
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 xorg_testset_save_CFLAGS="$CFLAGS"
6440
6441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 int i;
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 xorg_cv_cc_flag_unknown_warning_option=yes
6454 else
6455 xorg_cv_cc_flag_unknown_warning_option=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6462 CFLAGS="$xorg_testset_save_CFLAGS"
6463 fi
6464
6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468 fi
6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 int i;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 xorg_cv_cc_flag_unused_command_line_argument=yes
6481 else
6482 xorg_cv_cc_flag_unused_command_line_argument=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6489 CFLAGS="$xorg_testset_save_CFLAGS"
6490 fi
6491
6492 found="no"
6493
6494 if test $found = "no" ; then
6495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497 fi
6498
6499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6501 fi
6502
6503 CFLAGS="$CFLAGS -Wmissing-noreturn"
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6506 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6507 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6508 if eval \${$cacheid+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 int i;
6514 int
6515 main ()
6516 {
6517
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_c_try_link "$LINENO"; then :
6523 eval $cacheid=yes
6524 else
6525 eval $cacheid=no
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext \
6528 conftest$ac_exeext conftest.$ac_ext
6529 fi
6530
6531
6532 CFLAGS="$xorg_testset_save_CFLAGS"
6533
6534 eval supported=\$$cacheid
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6536 $as_echo "$supported" >&6; }
6537 if test "$supported" = "yes" ; then
6538 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6539 found="yes"
6540 fi
6541 fi
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557 xorg_testset_save_CFLAGS="$CFLAGS"
6558
6559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 int i;
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 xorg_cv_cc_flag_unknown_warning_option=yes
6572 else
6573 xorg_cv_cc_flag_unknown_warning_option=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6580 CFLAGS="$xorg_testset_save_CFLAGS"
6581 fi
6582
6583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 fi
6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 int i;
6596 _ACEOF
6597 if ac_fn_c_try_compile "$LINENO"; then :
6598 xorg_cv_cc_flag_unused_command_line_argument=yes
6599 else
6600 xorg_cv_cc_flag_unused_command_line_argument=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6607 CFLAGS="$xorg_testset_save_CFLAGS"
6608 fi
6609
6610 found="no"
6611
6612 if test $found = "no" ; then
6613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615 fi
6616
6617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6619 fi
6620
6621 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6624 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6625 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6626 if eval \${$cacheid+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int i;
6632 int
6633 main ()
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_link "$LINENO"; then :
6641 eval $cacheid=yes
6642 else
6643 eval $cacheid=no
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 fi
6648
6649
6650 CFLAGS="$xorg_testset_save_CFLAGS"
6651
6652 eval supported=\$$cacheid
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6654 $as_echo "$supported" >&6; }
6655 if test "$supported" = "yes" ; then
6656 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6657 found="yes"
6658 fi
6659 fi
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 xorg_testset_save_CFLAGS="$CFLAGS"
6676
6677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 int i;
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 xorg_cv_cc_flag_unknown_warning_option=yes
6690 else
6691 xorg_cv_cc_flag_unknown_warning_option=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699 fi
6700
6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 xorg_cv_cc_flag_unused_command_line_argument=yes
6717 else
6718 xorg_cv_cc_flag_unused_command_line_argument=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726 fi
6727
6728 found="no"
6729
6730 if test $found = "no" ; then
6731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 fi
6734
6735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 fi
6738
6739 CFLAGS="$CFLAGS -Wredundant-decls"
6740
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6742 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6743 cacheid=xorg_cv_cc_flag__Wredundant_decls
6744 if eval \${$cacheid+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 int
6751 main ()
6752 {
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 eval $cacheid=yes
6760 else
6761 eval $cacheid=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6765 fi
6766
6767
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769
6770 eval supported=\$$cacheid
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6772 $as_echo "$supported" >&6; }
6773 if test "$supported" = "yes" ; then
6774 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6775 found="yes"
6776 fi
6777 fi
6778
6779
6780
6781 # These are currently disabled because they are noisy. They will be enabled
6782 # in the future once the codebase is sufficiently modernized to silence
6783 # them. For now, I don't want them to drown out the other warnings.
6784 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6785 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6786 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6787
6788 # Turn some warnings into errors, so we don't accidently get successful builds
6789 # when there are problems that should be fixed.
6790
6791 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 xorg_testset_save_CFLAGS="$CFLAGS"
6806
6807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 _ACEOF
6818 if ac_fn_c_try_compile "$LINENO"; then :
6819 xorg_cv_cc_flag_unknown_warning_option=yes
6820 else
6821 xorg_cv_cc_flag_unknown_warning_option=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 fi
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6828 CFLAGS="$xorg_testset_save_CFLAGS"
6829 fi
6830
6831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834 fi
6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 int i;
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 xorg_cv_cc_flag_unused_command_line_argument=yes
6847 else
6848 xorg_cv_cc_flag_unused_command_line_argument=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6855 CFLAGS="$xorg_testset_save_CFLAGS"
6856 fi
6857
6858 found="no"
6859
6860 if test $found = "no" ; then
6861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863 fi
6864
6865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6867 fi
6868
6869 CFLAGS="$CFLAGS -Werror=implicit"
6870
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6872 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6873 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6874 if eval \${$cacheid+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 int
6881 main ()
6882 {
6883
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 eval $cacheid=yes
6890 else
6891 eval $cacheid=no
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 fi
6896
6897
6898 CFLAGS="$xorg_testset_save_CFLAGS"
6899
6900 eval supported=\$$cacheid
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6902 $as_echo "$supported" >&6; }
6903 if test "$supported" = "yes" ; then
6904 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6905 found="yes"
6906 fi
6907 fi
6908
6909 if test $found = "no" ; then
6910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912 fi
6913
6914 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6916 fi
6917
6918 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6919
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6921 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6922 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6923 if eval \${$cacheid+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 int i;
6929 int
6930 main ()
6931 {
6932
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"; then :
6938 eval $cacheid=yes
6939 else
6940 eval $cacheid=no
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6944 fi
6945
6946
6947 CFLAGS="$xorg_testset_save_CFLAGS"
6948
6949 eval supported=\$$cacheid
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6951 $as_echo "$supported" >&6; }
6952 if test "$supported" = "yes" ; then
6953 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6954 found="yes"
6955 fi
6956 fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972 xorg_testset_save_CFLAGS="$CFLAGS"
6973
6974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6978 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 int i;
6984 _ACEOF
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986 xorg_cv_cc_flag_unknown_warning_option=yes
6987 else
6988 xorg_cv_cc_flag_unknown_warning_option=no
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996 fi
6997
6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001 fi
7002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 int i;
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 xorg_cv_cc_flag_unused_command_line_argument=yes
7014 else
7015 xorg_cv_cc_flag_unused_command_line_argument=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7022 CFLAGS="$xorg_testset_save_CFLAGS"
7023 fi
7024
7025 found="no"
7026
7027 if test $found = "no" ; then
7028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030 fi
7031
7032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034 fi
7035
7036 CFLAGS="$CFLAGS -Werror=nonnull"
7037
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7039 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7040 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7041 if eval \${$cacheid+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 int i;
7047 int
7048 main ()
7049 {
7050
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_link "$LINENO"; then :
7056 eval $cacheid=yes
7057 else
7058 eval $cacheid=no
7059 fi
7060 rm -f core conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062 fi
7063
7064
7065 CFLAGS="$xorg_testset_save_CFLAGS"
7066
7067 eval supported=\$$cacheid
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7069 $as_echo "$supported" >&6; }
7070 if test "$supported" = "yes" ; then
7071 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7072 found="yes"
7073 fi
7074 fi
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090 xorg_testset_save_CFLAGS="$CFLAGS"
7091
7092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7096 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 int i;
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 xorg_cv_cc_flag_unknown_warning_option=yes
7105 else
7106 xorg_cv_cc_flag_unknown_warning_option=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 fi
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7113 CFLAGS="$xorg_testset_save_CFLAGS"
7114 fi
7115
7116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119 fi
7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 int i;
7129 _ACEOF
7130 if ac_fn_c_try_compile "$LINENO"; then :
7131 xorg_cv_cc_flag_unused_command_line_argument=yes
7132 else
7133 xorg_cv_cc_flag_unused_command_line_argument=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 found="no"
7144
7145 if test $found = "no" ; then
7146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 fi
7149
7150 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152 fi
7153
7154 CFLAGS="$CFLAGS -Werror=init-self"
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7157 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7158 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7159 if eval \${$cacheid+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 int i;
7165 int
7166 main ()
7167 {
7168
7169 ;
7170 return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_link "$LINENO"; then :
7174 eval $cacheid=yes
7175 else
7176 eval $cacheid=no
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 fi
7181
7182
7183 CFLAGS="$xorg_testset_save_CFLAGS"
7184
7185 eval supported=\$$cacheid
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7187 $as_echo "$supported" >&6; }
7188 if test "$supported" = "yes" ; then
7189 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7190 found="yes"
7191 fi
7192 fi
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208 xorg_testset_save_CFLAGS="$CFLAGS"
7209
7210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 int i;
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 xorg_cv_cc_flag_unknown_warning_option=yes
7223 else
7224 xorg_cv_cc_flag_unknown_warning_option=no
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7231 CFLAGS="$xorg_testset_save_CFLAGS"
7232 fi
7233
7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237 fi
7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 int i;
7247 _ACEOF
7248 if ac_fn_c_try_compile "$LINENO"; then :
7249 xorg_cv_cc_flag_unused_command_line_argument=yes
7250 else
7251 xorg_cv_cc_flag_unused_command_line_argument=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7259 fi
7260
7261 found="no"
7262
7263 if test $found = "no" ; then
7264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266 fi
7267
7268 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270 fi
7271
7272 CFLAGS="$CFLAGS -Werror=main"
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7275 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7276 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7277 if eval \${$cacheid+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 int i;
7283 int
7284 main ()
7285 {
7286
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 if ac_fn_c_try_link "$LINENO"; then :
7292 eval $cacheid=yes
7293 else
7294 eval $cacheid=no
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7298 fi
7299
7300
7301 CFLAGS="$xorg_testset_save_CFLAGS"
7302
7303 eval supported=\$$cacheid
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7305 $as_echo "$supported" >&6; }
7306 if test "$supported" = "yes" ; then
7307 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7308 found="yes"
7309 fi
7310 fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326 xorg_testset_save_CFLAGS="$CFLAGS"
7327
7328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 int i;
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340 xorg_cv_cc_flag_unknown_warning_option=yes
7341 else
7342 xorg_cv_cc_flag_unknown_warning_option=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 fi
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7349 CFLAGS="$xorg_testset_save_CFLAGS"
7350 fi
7351
7352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355 fi
7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 int i;
7365 _ACEOF
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 xorg_cv_cc_flag_unused_command_line_argument=yes
7368 else
7369 xorg_cv_cc_flag_unused_command_line_argument=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7377 fi
7378
7379 found="no"
7380
7381 if test $found = "no" ; then
7382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384 fi
7385
7386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388 fi
7389
7390 CFLAGS="$CFLAGS -Werror=missing-braces"
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7393 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7394 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7395 if eval \${$cacheid+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 int i;
7401 int
7402 main ()
7403 {
7404
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_link "$LINENO"; then :
7410 eval $cacheid=yes
7411 else
7412 eval $cacheid=no
7413 fi
7414 rm -f core conftest.err conftest.$ac_objext \
7415 conftest$ac_exeext conftest.$ac_ext
7416 fi
7417
7418
7419 CFLAGS="$xorg_testset_save_CFLAGS"
7420
7421 eval supported=\$$cacheid
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7423 $as_echo "$supported" >&6; }
7424 if test "$supported" = "yes" ; then
7425 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7426 found="yes"
7427 fi
7428 fi
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 xorg_testset_save_CFLAGS="$CFLAGS"
7445
7446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 int i;
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458 xorg_cv_cc_flag_unknown_warning_option=yes
7459 else
7460 xorg_cv_cc_flag_unknown_warning_option=no
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7467 CFLAGS="$xorg_testset_save_CFLAGS"
7468 fi
7469
7470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473 fi
7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 int i;
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"; then :
7485 xorg_cv_cc_flag_unused_command_line_argument=yes
7486 else
7487 xorg_cv_cc_flag_unused_command_line_argument=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7494 CFLAGS="$xorg_testset_save_CFLAGS"
7495 fi
7496
7497 found="no"
7498
7499 if test $found = "no" ; then
7500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502 fi
7503
7504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7506 fi
7507
7508 CFLAGS="$CFLAGS -Werror=sequence-point"
7509
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7511 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7512 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7513 if eval \${$cacheid+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 int i;
7519 int
7520 main ()
7521 {
7522
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528 eval $cacheid=yes
7529 else
7530 eval $cacheid=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534 fi
7535
7536
7537 CFLAGS="$xorg_testset_save_CFLAGS"
7538
7539 eval supported=\$$cacheid
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7541 $as_echo "$supported" >&6; }
7542 if test "$supported" = "yes" ; then
7543 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7544 found="yes"
7545 fi
7546 fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 xorg_testset_save_CFLAGS="$CFLAGS"
7563
7564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 xorg_cv_cc_flag_unknown_warning_option=yes
7577 else
7578 xorg_cv_cc_flag_unknown_warning_option=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7585 CFLAGS="$xorg_testset_save_CFLAGS"
7586 fi
7587
7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591 fi
7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 xorg_cv_cc_flag_unused_command_line_argument=yes
7604 else
7605 xorg_cv_cc_flag_unused_command_line_argument=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7612 CFLAGS="$xorg_testset_save_CFLAGS"
7613 fi
7614
7615 found="no"
7616
7617 if test $found = "no" ; then
7618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620 fi
7621
7622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7624 fi
7625
7626 CFLAGS="$CFLAGS -Werror=return-type"
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7629 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7630 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7631 if eval \${$cacheid+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 int i;
7637 int
7638 main ()
7639 {
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"; then :
7646 eval $cacheid=yes
7647 else
7648 eval $cacheid=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 fi
7653
7654
7655 CFLAGS="$xorg_testset_save_CFLAGS"
7656
7657 eval supported=\$$cacheid
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7659 $as_echo "$supported" >&6; }
7660 if test "$supported" = "yes" ; then
7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7662 found="yes"
7663 fi
7664 fi
7665
7666 if test $found = "no" ; then
7667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669 fi
7670
7671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673 fi
7674
7675 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7678 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7679 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7680 if eval \${$cacheid+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 int i;
7686 int
7687 main ()
7688 {
7689
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_link "$LINENO"; then :
7695 eval $cacheid=yes
7696 else
7697 eval $cacheid=no
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 fi
7702
7703
7704 CFLAGS="$xorg_testset_save_CFLAGS"
7705
7706 eval supported=\$$cacheid
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7708 $as_echo "$supported" >&6; }
7709 if test "$supported" = "yes" ; then
7710 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7711 found="yes"
7712 fi
7713 fi
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729 xorg_testset_save_CFLAGS="$CFLAGS"
7730
7731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 int i;
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 xorg_cv_cc_flag_unknown_warning_option=yes
7744 else
7745 xorg_cv_cc_flag_unknown_warning_option=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7752 CFLAGS="$xorg_testset_save_CFLAGS"
7753 fi
7754
7755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758 fi
7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 int i;
7768 _ACEOF
7769 if ac_fn_c_try_compile "$LINENO"; then :
7770 xorg_cv_cc_flag_unused_command_line_argument=yes
7771 else
7772 xorg_cv_cc_flag_unused_command_line_argument=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 fi
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7779 CFLAGS="$xorg_testset_save_CFLAGS"
7780 fi
7781
7782 found="no"
7783
7784 if test $found = "no" ; then
7785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7787 fi
7788
7789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7791 fi
7792
7793 CFLAGS="$CFLAGS -Werror=trigraphs"
7794
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7796 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7797 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7798 if eval \${$cacheid+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 int i;
7804 int
7805 main ()
7806 {
7807
7808 ;
7809 return 0;
7810 }
7811 _ACEOF
7812 if ac_fn_c_try_link "$LINENO"; then :
7813 eval $cacheid=yes
7814 else
7815 eval $cacheid=no
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819 fi
7820
7821
7822 CFLAGS="$xorg_testset_save_CFLAGS"
7823
7824 eval supported=\$$cacheid
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7826 $as_echo "$supported" >&6; }
7827 if test "$supported" = "yes" ; then
7828 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7829 found="yes"
7830 fi
7831 fi
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847 xorg_testset_save_CFLAGS="$CFLAGS"
7848
7849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 int i;
7859 _ACEOF
7860 if ac_fn_c_try_compile "$LINENO"; then :
7861 xorg_cv_cc_flag_unknown_warning_option=yes
7862 else
7863 xorg_cv_cc_flag_unknown_warning_option=no
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7870 CFLAGS="$xorg_testset_save_CFLAGS"
7871 fi
7872
7873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876 fi
7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 int i;
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 xorg_cv_cc_flag_unused_command_line_argument=yes
7889 else
7890 xorg_cv_cc_flag_unused_command_line_argument=no
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7897 CFLAGS="$xorg_testset_save_CFLAGS"
7898 fi
7899
7900 found="no"
7901
7902 if test $found = "no" ; then
7903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7905 fi
7906
7907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7909 fi
7910
7911 CFLAGS="$CFLAGS -Werror=array-bounds"
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7914 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7915 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7916 if eval \${$cacheid+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 int i;
7922 int
7923 main ()
7924 {
7925
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 if ac_fn_c_try_link "$LINENO"; then :
7931 eval $cacheid=yes
7932 else
7933 eval $cacheid=no
7934 fi
7935 rm -f core conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7937 fi
7938
7939
7940 CFLAGS="$xorg_testset_save_CFLAGS"
7941
7942 eval supported=\$$cacheid
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7944 $as_echo "$supported" >&6; }
7945 if test "$supported" = "yes" ; then
7946 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7947 found="yes"
7948 fi
7949 fi
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965 xorg_testset_save_CFLAGS="$CFLAGS"
7966
7967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 int i;
7977 _ACEOF
7978 if ac_fn_c_try_compile "$LINENO"; then :
7979 xorg_cv_cc_flag_unknown_warning_option=yes
7980 else
7981 xorg_cv_cc_flag_unknown_warning_option=no
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7988 CFLAGS="$xorg_testset_save_CFLAGS"
7989 fi
7990
7991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994 fi
7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 int i;
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 xorg_cv_cc_flag_unused_command_line_argument=yes
8007 else
8008 xorg_cv_cc_flag_unused_command_line_argument=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8015 CFLAGS="$xorg_testset_save_CFLAGS"
8016 fi
8017
8018 found="no"
8019
8020 if test $found = "no" ; then
8021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023 fi
8024
8025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8027 fi
8028
8029 CFLAGS="$CFLAGS -Werror=write-strings"
8030
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8032 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8033 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8034 if eval \${$cacheid+:} false; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 int i;
8040 int
8041 main ()
8042 {
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_link "$LINENO"; then :
8049 eval $cacheid=yes
8050 else
8051 eval $cacheid=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 fi
8056
8057
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060 eval supported=\$$cacheid
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8062 $as_echo "$supported" >&6; }
8063 if test "$supported" = "yes" ; then
8064 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8065 found="yes"
8066 fi
8067 fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 xorg_testset_save_CFLAGS="$CFLAGS"
8084
8085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 int i;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 xorg_cv_cc_flag_unknown_warning_option=yes
8098 else
8099 xorg_cv_cc_flag_unknown_warning_option=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8106 CFLAGS="$xorg_testset_save_CFLAGS"
8107 fi
8108
8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112 fi
8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 int i;
8122 _ACEOF
8123 if ac_fn_c_try_compile "$LINENO"; then :
8124 xorg_cv_cc_flag_unused_command_line_argument=yes
8125 else
8126 xorg_cv_cc_flag_unused_command_line_argument=no
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8133 CFLAGS="$xorg_testset_save_CFLAGS"
8134 fi
8135
8136 found="no"
8137
8138 if test $found = "no" ; then
8139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141 fi
8142
8143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8145 fi
8146
8147 CFLAGS="$CFLAGS -Werror=address"
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8150 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8151 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8152 if eval \${$cacheid+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 int i;
8158 int
8159 main ()
8160 {
8161
8162 ;
8163 return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_link "$LINENO"; then :
8167 eval $cacheid=yes
8168 else
8169 eval $cacheid=no
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext \
8172 conftest$ac_exeext conftest.$ac_ext
8173 fi
8174
8175
8176 CFLAGS="$xorg_testset_save_CFLAGS"
8177
8178 eval supported=\$$cacheid
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8180 $as_echo "$supported" >&6; }
8181 if test "$supported" = "yes" ; then
8182 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8183 found="yes"
8184 fi
8185 fi
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201 xorg_testset_save_CFLAGS="$CFLAGS"
8202
8203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 int i;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 xorg_cv_cc_flag_unknown_warning_option=yes
8216 else
8217 xorg_cv_cc_flag_unknown_warning_option=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8224 CFLAGS="$xorg_testset_save_CFLAGS"
8225 fi
8226
8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230 fi
8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 _ACEOF
8241 if ac_fn_c_try_compile "$LINENO"; then :
8242 xorg_cv_cc_flag_unused_command_line_argument=yes
8243 else
8244 xorg_cv_cc_flag_unused_command_line_argument=no
8245 fi
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8251 CFLAGS="$xorg_testset_save_CFLAGS"
8252 fi
8253
8254 found="no"
8255
8256 if test $found = "no" ; then
8257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259 fi
8260
8261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8263 fi
8264
8265 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8268 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8269 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8270 if eval \${$cacheid+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 int i;
8276 int
8277 main ()
8278 {
8279
8280 ;
8281 return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 eval $cacheid=yes
8286 else
8287 eval $cacheid=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 fi
8292
8293
8294 CFLAGS="$xorg_testset_save_CFLAGS"
8295
8296 eval supported=\$$cacheid
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8298 $as_echo "$supported" >&6; }
8299 if test "$supported" = "yes" ; then
8300 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8301 found="yes"
8302 fi
8303 fi
8304
8305 if test $found = "no" ; then
8306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308 fi
8309
8310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8312 fi
8313
8314 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8315
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8317 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8318 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8319 if eval \${$cacheid+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 int i;
8325 int
8326 main ()
8327 {
8328
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 if ac_fn_c_try_link "$LINENO"; then :
8334 eval $cacheid=yes
8335 else
8336 eval $cacheid=no
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 fi
8341
8342
8343 CFLAGS="$xorg_testset_save_CFLAGS"
8344
8345 eval supported=\$$cacheid
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8347 $as_echo "$supported" >&6; }
8348 if test "$supported" = "yes" ; then
8349 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8350 found="yes"
8351 fi
8352 fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368 xorg_testset_save_CFLAGS="$CFLAGS"
8369
8370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8373 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8374 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 int i;
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382 xorg_cv_cc_flag_unknown_warning_option=yes
8383 else
8384 xorg_cv_cc_flag_unknown_warning_option=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8389 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8391 CFLAGS="$xorg_testset_save_CFLAGS"
8392 fi
8393
8394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397 fi
8398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8400 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8401 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 int i;
8407 _ACEOF
8408 if ac_fn_c_try_compile "$LINENO"; then :
8409 xorg_cv_cc_flag_unused_command_line_argument=yes
8410 else
8411 xorg_cv_cc_flag_unused_command_line_argument=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8416 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8418 CFLAGS="$xorg_testset_save_CFLAGS"
8419 fi
8420
8421 found="no"
8422
8423 if test $found = "no" ; then
8424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426 fi
8427
8428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430 fi
8431
8432 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8435 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8436 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8437 if eval \${$cacheid+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 int i;
8443 int
8444 main ()
8445 {
8446
8447 ;
8448 return 0;
8449 }
8450 _ACEOF
8451 if ac_fn_c_try_link "$LINENO"; then :
8452 eval $cacheid=yes
8453 else
8454 eval $cacheid=no
8455 fi
8456 rm -f core conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 fi
8459
8460
8461 CFLAGS="$xorg_testset_save_CFLAGS"
8462
8463 eval supported=\$$cacheid
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8465 $as_echo "$supported" >&6; }
8466 if test "$supported" = "yes" ; then
8467 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8468 found="yes"
8469 fi
8470 fi
8471
8472 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8473 else
8474 { $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
8475 $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;}
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 xorg_testset_save_CFLAGS="$CFLAGS"
8490
8491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 int i;
8501 _ACEOF
8502 if ac_fn_c_try_compile "$LINENO"; then :
8503 xorg_cv_cc_flag_unknown_warning_option=yes
8504 else
8505 xorg_cv_cc_flag_unknown_warning_option=no
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8512 CFLAGS="$xorg_testset_save_CFLAGS"
8513 fi
8514
8515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518 fi
8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 int i;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 xorg_cv_cc_flag_unused_command_line_argument=yes
8531 else
8532 xorg_cv_cc_flag_unused_command_line_argument=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8539 CFLAGS="$xorg_testset_save_CFLAGS"
8540 fi
8541
8542 found="no"
8543
8544 if test $found = "no" ; then
8545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547 fi
8548
8549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8551 fi
8552
8553 CFLAGS="$CFLAGS -Wimplicit"
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8556 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8557 cacheid=xorg_cv_cc_flag__Wimplicit
8558 if eval \${$cacheid+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 int i;
8564 int
8565 main ()
8566 {
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"; then :
8573 eval $cacheid=yes
8574 else
8575 eval $cacheid=no
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 fi
8580
8581
8582 CFLAGS="$xorg_testset_save_CFLAGS"
8583
8584 eval supported=\$$cacheid
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8586 $as_echo "$supported" >&6; }
8587 if test "$supported" = "yes" ; then
8588 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8589 found="yes"
8590 fi
8591 fi
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607 xorg_testset_save_CFLAGS="$CFLAGS"
8608
8609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 int i;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 xorg_cv_cc_flag_unknown_warning_option=yes
8622 else
8623 xorg_cv_cc_flag_unknown_warning_option=no
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8630 CFLAGS="$xorg_testset_save_CFLAGS"
8631 fi
8632
8633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636 fi
8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 int i;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 xorg_cv_cc_flag_unused_command_line_argument=yes
8649 else
8650 xorg_cv_cc_flag_unused_command_line_argument=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658 fi
8659
8660 found="no"
8661
8662 if test $found = "no" ; then
8663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665 fi
8666
8667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669 fi
8670
8671 CFLAGS="$CFLAGS -Wnonnull"
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8674 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8675 cacheid=xorg_cv_cc_flag__Wnonnull
8676 if eval \${$cacheid+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 int i;
8682 int
8683 main ()
8684 {
8685
8686 ;
8687 return 0;
8688 }
8689 _ACEOF
8690 if ac_fn_c_try_link "$LINENO"; then :
8691 eval $cacheid=yes
8692 else
8693 eval $cacheid=no
8694 fi
8695 rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697 fi
8698
8699
8700 CFLAGS="$xorg_testset_save_CFLAGS"
8701
8702 eval supported=\$$cacheid
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8704 $as_echo "$supported" >&6; }
8705 if test "$supported" = "yes" ; then
8706 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8707 found="yes"
8708 fi
8709 fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725 xorg_testset_save_CFLAGS="$CFLAGS"
8726
8727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"; then :
8739 xorg_cv_cc_flag_unknown_warning_option=yes
8740 else
8741 xorg_cv_cc_flag_unknown_warning_option=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8748 CFLAGS="$xorg_testset_save_CFLAGS"
8749 fi
8750
8751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754 fi
8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 int i;
8764 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 xorg_cv_cc_flag_unused_command_line_argument=yes
8767 else
8768 xorg_cv_cc_flag_unused_command_line_argument=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8775 CFLAGS="$xorg_testset_save_CFLAGS"
8776 fi
8777
8778 found="no"
8779
8780 if test $found = "no" ; then
8781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783 fi
8784
8785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8787 fi
8788
8789 CFLAGS="$CFLAGS -Winit-self"
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8792 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8793 cacheid=xorg_cv_cc_flag__Winit_self
8794 if eval \${$cacheid+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 int i;
8800 int
8801 main ()
8802 {
8803
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 if ac_fn_c_try_link "$LINENO"; then :
8809 eval $cacheid=yes
8810 else
8811 eval $cacheid=no
8812 fi
8813 rm -f core conftest.err conftest.$ac_objext \
8814 conftest$ac_exeext conftest.$ac_ext
8815 fi
8816
8817
8818 CFLAGS="$xorg_testset_save_CFLAGS"
8819
8820 eval supported=\$$cacheid
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8822 $as_echo "$supported" >&6; }
8823 if test "$supported" = "yes" ; then
8824 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8825 found="yes"
8826 fi
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 xorg_testset_save_CFLAGS="$CFLAGS"
8844
8845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 _ACEOF
8856 if ac_fn_c_try_compile "$LINENO"; then :
8857 xorg_cv_cc_flag_unknown_warning_option=yes
8858 else
8859 xorg_cv_cc_flag_unknown_warning_option=no
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8866 CFLAGS="$xorg_testset_save_CFLAGS"
8867 fi
8868
8869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872 fi
8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 int i;
8882 _ACEOF
8883 if ac_fn_c_try_compile "$LINENO"; then :
8884 xorg_cv_cc_flag_unused_command_line_argument=yes
8885 else
8886 xorg_cv_cc_flag_unused_command_line_argument=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8894 fi
8895
8896 found="no"
8897
8898 if test $found = "no" ; then
8899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901 fi
8902
8903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905 fi
8906
8907 CFLAGS="$CFLAGS -Wmain"
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8910 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8911 cacheid=xorg_cv_cc_flag__Wmain
8912 if eval \${$cacheid+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 int i;
8918 int
8919 main ()
8920 {
8921
8922 ;
8923 return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 eval $cacheid=yes
8928 else
8929 eval $cacheid=no
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 fi
8934
8935
8936 CFLAGS="$xorg_testset_save_CFLAGS"
8937
8938 eval supported=\$$cacheid
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8940 $as_echo "$supported" >&6; }
8941 if test "$supported" = "yes" ; then
8942 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8943 found="yes"
8944 fi
8945 fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 xorg_testset_save_CFLAGS="$CFLAGS"
8962
8963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 int i;
8973 _ACEOF
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 xorg_cv_cc_flag_unknown_warning_option=yes
8976 else
8977 xorg_cv_cc_flag_unknown_warning_option=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990 fi
8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 int i;
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 xorg_cv_cc_flag_unused_command_line_argument=yes
9003 else
9004 xorg_cv_cc_flag_unused_command_line_argument=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9011 CFLAGS="$xorg_testset_save_CFLAGS"
9012 fi
9013
9014 found="no"
9015
9016 if test $found = "no" ; then
9017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019 fi
9020
9021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023 fi
9024
9025 CFLAGS="$CFLAGS -Wmissing-braces"
9026
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9028 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9029 cacheid=xorg_cv_cc_flag__Wmissing_braces
9030 if eval \${$cacheid+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 int i;
9036 int
9037 main ()
9038 {
9039
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045 eval $cacheid=yes
9046 else
9047 eval $cacheid=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 fi
9052
9053
9054 CFLAGS="$xorg_testset_save_CFLAGS"
9055
9056 eval supported=\$$cacheid
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9058 $as_echo "$supported" >&6; }
9059 if test "$supported" = "yes" ; then
9060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9061 found="yes"
9062 fi
9063 fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079 xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 int i;
9091 _ACEOF
9092 if ac_fn_c_try_compile "$LINENO"; then :
9093 xorg_cv_cc_flag_unknown_warning_option=yes
9094 else
9095 xorg_cv_cc_flag_unknown_warning_option=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 xorg_cv_cc_flag_unused_command_line_argument=yes
9121 else
9122 xorg_cv_cc_flag_unused_command_line_argument=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130 fi
9131
9132 found="no"
9133
9134 if test $found = "no" ; then
9135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 fi
9138
9139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141 fi
9142
9143 CFLAGS="$CFLAGS -Wsequence-point"
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9146 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9147 cacheid=xorg_cv_cc_flag__Wsequence_point
9148 if eval \${$cacheid+:} false; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9153 int i;
9154 int
9155 main ()
9156 {
9157
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 eval $cacheid=yes
9164 else
9165 eval $cacheid=no
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 fi
9170
9171
9172 CFLAGS="$xorg_testset_save_CFLAGS"
9173
9174 eval supported=\$$cacheid
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176 $as_echo "$supported" >&6; }
9177 if test "$supported" = "yes" ; then
9178 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9179 found="yes"
9180 fi
9181 fi
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197 xorg_testset_save_CFLAGS="$CFLAGS"
9198
9199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int i;
9209 _ACEOF
9210 if ac_fn_c_try_compile "$LINENO"; then :
9211 xorg_cv_cc_flag_unknown_warning_option=yes
9212 else
9213 xorg_cv_cc_flag_unknown_warning_option=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221 fi
9222
9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 fi
9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 int i;
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 xorg_cv_cc_flag_unused_command_line_argument=yes
9239 else
9240 xorg_cv_cc_flag_unused_command_line_argument=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9248 fi
9249
9250 found="no"
9251
9252 if test $found = "no" ; then
9253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255 fi
9256
9257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9259 fi
9260
9261 CFLAGS="$CFLAGS -Wreturn-type"
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9264 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9265 cacheid=xorg_cv_cc_flag__Wreturn_type
9266 if eval \${$cacheid+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 int i;
9272 int
9273 main ()
9274 {
9275
9276 ;
9277 return 0;
9278 }
9279 _ACEOF
9280 if ac_fn_c_try_link "$LINENO"; then :
9281 eval $cacheid=yes
9282 else
9283 eval $cacheid=no
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287 fi
9288
9289
9290 CFLAGS="$xorg_testset_save_CFLAGS"
9291
9292 eval supported=\$$cacheid
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9294 $as_echo "$supported" >&6; }
9295 if test "$supported" = "yes" ; then
9296 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9297 found="yes"
9298 fi
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315 xorg_testset_save_CFLAGS="$CFLAGS"
9316
9317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 int i;
9327 _ACEOF
9328 if ac_fn_c_try_compile "$LINENO"; then :
9329 xorg_cv_cc_flag_unknown_warning_option=yes
9330 else
9331 xorg_cv_cc_flag_unknown_warning_option=no
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9338 CFLAGS="$xorg_testset_save_CFLAGS"
9339 fi
9340
9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344 fi
9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 int i;
9354 _ACEOF
9355 if ac_fn_c_try_compile "$LINENO"; then :
9356 xorg_cv_cc_flag_unused_command_line_argument=yes
9357 else
9358 xorg_cv_cc_flag_unused_command_line_argument=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9365 CFLAGS="$xorg_testset_save_CFLAGS"
9366 fi
9367
9368 found="no"
9369
9370 if test $found = "no" ; then
9371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373 fi
9374
9375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377 fi
9378
9379 CFLAGS="$CFLAGS -Wtrigraphs"
9380
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9382 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9383 cacheid=xorg_cv_cc_flag__Wtrigraphs
9384 if eval \${$cacheid+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 int i;
9390 int
9391 main ()
9392 {
9393
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 eval $cacheid=yes
9400 else
9401 eval $cacheid=no
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 fi
9406
9407
9408 CFLAGS="$xorg_testset_save_CFLAGS"
9409
9410 eval supported=\$$cacheid
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9412 $as_echo "$supported" >&6; }
9413 if test "$supported" = "yes" ; then
9414 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9415 found="yes"
9416 fi
9417 fi
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433 xorg_testset_save_CFLAGS="$CFLAGS"
9434
9435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 int i;
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 xorg_cv_cc_flag_unknown_warning_option=yes
9448 else
9449 xorg_cv_cc_flag_unknown_warning_option=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9457 fi
9458
9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 fi
9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474 xorg_cv_cc_flag_unused_command_line_argument=yes
9475 else
9476 xorg_cv_cc_flag_unused_command_line_argument=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9484 fi
9485
9486 found="no"
9487
9488 if test $found = "no" ; then
9489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491 fi
9492
9493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495 fi
9496
9497 CFLAGS="$CFLAGS -Warray-bounds"
9498
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9500 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9501 cacheid=xorg_cv_cc_flag__Warray_bounds
9502 if eval \${$cacheid+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 int i;
9508 int
9509 main ()
9510 {
9511
9512 ;
9513 return 0;
9514 }
9515 _ACEOF
9516 if ac_fn_c_try_link "$LINENO"; then :
9517 eval $cacheid=yes
9518 else
9519 eval $cacheid=no
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 fi
9524
9525
9526 CFLAGS="$xorg_testset_save_CFLAGS"
9527
9528 eval supported=\$$cacheid
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9530 $as_echo "$supported" >&6; }
9531 if test "$supported" = "yes" ; then
9532 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9533 found="yes"
9534 fi
9535 fi
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551 xorg_testset_save_CFLAGS="$CFLAGS"
9552
9553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 int i;
9563 _ACEOF
9564 if ac_fn_c_try_compile "$LINENO"; then :
9565 xorg_cv_cc_flag_unknown_warning_option=yes
9566 else
9567 xorg_cv_cc_flag_unknown_warning_option=no
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9574 CFLAGS="$xorg_testset_save_CFLAGS"
9575 fi
9576
9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580 fi
9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 int i;
9590 _ACEOF
9591 if ac_fn_c_try_compile "$LINENO"; then :
9592 xorg_cv_cc_flag_unused_command_line_argument=yes
9593 else
9594 xorg_cv_cc_flag_unused_command_line_argument=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9601 CFLAGS="$xorg_testset_save_CFLAGS"
9602 fi
9603
9604 found="no"
9605
9606 if test $found = "no" ; then
9607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609 fi
9610
9611 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9613 fi
9614
9615 CFLAGS="$CFLAGS -Wwrite-strings"
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9618 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9619 cacheid=xorg_cv_cc_flag__Wwrite_strings
9620 if eval \${$cacheid+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9625 int i;
9626 int
9627 main ()
9628 {
9629
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_link "$LINENO"; then :
9635 eval $cacheid=yes
9636 else
9637 eval $cacheid=no
9638 fi
9639 rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 fi
9642
9643
9644 CFLAGS="$xorg_testset_save_CFLAGS"
9645
9646 eval supported=\$$cacheid
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9648 $as_echo "$supported" >&6; }
9649 if test "$supported" = "yes" ; then
9650 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9651 found="yes"
9652 fi
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669 xorg_testset_save_CFLAGS="$CFLAGS"
9670
9671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 int i;
9681 _ACEOF
9682 if ac_fn_c_try_compile "$LINENO"; then :
9683 xorg_cv_cc_flag_unknown_warning_option=yes
9684 else
9685 xorg_cv_cc_flag_unknown_warning_option=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9692 CFLAGS="$xorg_testset_save_CFLAGS"
9693 fi
9694
9695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698 fi
9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 int i;
9708 _ACEOF
9709 if ac_fn_c_try_compile "$LINENO"; then :
9710 xorg_cv_cc_flag_unused_command_line_argument=yes
9711 else
9712 xorg_cv_cc_flag_unused_command_line_argument=no
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9719 CFLAGS="$xorg_testset_save_CFLAGS"
9720 fi
9721
9722 found="no"
9723
9724 if test $found = "no" ; then
9725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727 fi
9728
9729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9731 fi
9732
9733 CFLAGS="$CFLAGS -Waddress"
9734
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9736 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9737 cacheid=xorg_cv_cc_flag__Waddress
9738 if eval \${$cacheid+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 int i;
9744 int
9745 main ()
9746 {
9747
9748 ;
9749 return 0;
9750 }
9751 _ACEOF
9752 if ac_fn_c_try_link "$LINENO"; then :
9753 eval $cacheid=yes
9754 else
9755 eval $cacheid=no
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759 fi
9760
9761
9762 CFLAGS="$xorg_testset_save_CFLAGS"
9763
9764 eval supported=\$$cacheid
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9766 $as_echo "$supported" >&6; }
9767 if test "$supported" = "yes" ; then
9768 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9769 found="yes"
9770 fi
9771 fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787 xorg_testset_save_CFLAGS="$CFLAGS"
9788
9789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 int i;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"; then :
9801 xorg_cv_cc_flag_unknown_warning_option=yes
9802 else
9803 xorg_cv_cc_flag_unknown_warning_option=no
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 fi
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9810 CFLAGS="$xorg_testset_save_CFLAGS"
9811 fi
9812
9813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816 fi
9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825 int i;
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828 xorg_cv_cc_flag_unused_command_line_argument=yes
9829 else
9830 xorg_cv_cc_flag_unused_command_line_argument=no
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9837 CFLAGS="$xorg_testset_save_CFLAGS"
9838 fi
9839
9840 found="no"
9841
9842 if test $found = "no" ; then
9843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845 fi
9846
9847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9849 fi
9850
9851 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9852
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9854 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9855 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9856 if eval \${$cacheid+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int i;
9862 int
9863 main ()
9864 {
9865
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 if ac_fn_c_try_link "$LINENO"; then :
9871 eval $cacheid=yes
9872 else
9873 eval $cacheid=no
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext \
9876 conftest$ac_exeext conftest.$ac_ext
9877 fi
9878
9879
9880 CFLAGS="$xorg_testset_save_CFLAGS"
9881
9882 eval supported=\$$cacheid
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9884 $as_echo "$supported" >&6; }
9885 if test "$supported" = "yes" ; then
9886 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9887 found="yes"
9888 fi
9889 fi
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905 xorg_testset_save_CFLAGS="$CFLAGS"
9906
9907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916 int i;
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 xorg_cv_cc_flag_unknown_warning_option=yes
9920 else
9921 xorg_cv_cc_flag_unknown_warning_option=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9928 CFLAGS="$xorg_testset_save_CFLAGS"
9929 fi
9930
9931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934 fi
9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 int i;
9944 _ACEOF
9945 if ac_fn_c_try_compile "$LINENO"; then :
9946 xorg_cv_cc_flag_unused_command_line_argument=yes
9947 else
9948 xorg_cv_cc_flag_unused_command_line_argument=no
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9955 CFLAGS="$xorg_testset_save_CFLAGS"
9956 fi
9957
9958 found="no"
9959
9960 if test $found = "no" ; then
9961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963 fi
9964
9965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9967 fi
9968
9969 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9972 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9973 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9974 if eval \${$cacheid+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9979 int i;
9980 int
9981 main ()
9982 {
9983
9984 ;
9985 return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_link "$LINENO"; then :
9989 eval $cacheid=yes
9990 else
9991 eval $cacheid=no
9992 fi
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 fi
9996
9997
9998 CFLAGS="$xorg_testset_save_CFLAGS"
9999
10000 eval supported=\$$cacheid
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10002 $as_echo "$supported" >&6; }
10003 if test "$supported" = "yes" ; then
10004 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10005 found="yes"
10006 fi
10007 fi
10008
10009
10010 fi
10011
10012
10013
10014
10015
10016
10017
10018 CWARNFLAGS="$BASE_CFLAGS"
10019 if test "x$GCC" = xyes ; then
10020 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10021 fi
10022
10023
10024
10025
10026
10027
10028
10029
10030 # Check whether --enable-strict-compilation was given.
10031 if test "${enable_strict_compilation+set}" = set; then :
10032 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10033 else
10034 STRICT_COMPILE=no
10035 fi
10036
10037
10038
10039
10040
10041
10042 STRICT_CFLAGS=""
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056 xorg_testset_save_CFLAGS="$CFLAGS"
10057
10058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10061 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10062 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067 int i;
10068 _ACEOF
10069 if ac_fn_c_try_compile "$LINENO"; then :
10070 xorg_cv_cc_flag_unknown_warning_option=yes
10071 else
10072 xorg_cv_cc_flag_unknown_warning_option=no
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10077 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10079 CFLAGS="$xorg_testset_save_CFLAGS"
10080 fi
10081
10082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085 fi
10086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10088 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10089 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 int i;
10095 _ACEOF
10096 if ac_fn_c_try_compile "$LINENO"; then :
10097 xorg_cv_cc_flag_unused_command_line_argument=yes
10098 else
10099 xorg_cv_cc_flag_unused_command_line_argument=no
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 fi
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10104 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10106 CFLAGS="$xorg_testset_save_CFLAGS"
10107 fi
10108
10109 found="no"
10110
10111 if test $found = "no" ; then
10112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114 fi
10115
10116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10118 fi
10119
10120 CFLAGS="$CFLAGS -pedantic"
10121
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10123 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10124 cacheid=xorg_cv_cc_flag__pedantic
10125 if eval \${$cacheid+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130 int i;
10131 int
10132 main ()
10133 {
10134
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140 eval $cacheid=yes
10141 else
10142 eval $cacheid=no
10143 fi
10144 rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10146 fi
10147
10148
10149 CFLAGS="$xorg_testset_save_CFLAGS"
10150
10151 eval supported=\$$cacheid
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10153 $as_echo "$supported" >&6; }
10154 if test "$supported" = "yes" ; then
10155 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10156 found="yes"
10157 fi
10158 fi
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174 xorg_testset_save_CFLAGS="$CFLAGS"
10175
10176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 _ACEOF
10187 if ac_fn_c_try_compile "$LINENO"; then :
10188 xorg_cv_cc_flag_unknown_warning_option=yes
10189 else
10190 xorg_cv_cc_flag_unknown_warning_option=no
10191 fi
10192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10197 CFLAGS="$xorg_testset_save_CFLAGS"
10198 fi
10199
10200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203 fi
10204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 int i;
10213 _ACEOF
10214 if ac_fn_c_try_compile "$LINENO"; then :
10215 xorg_cv_cc_flag_unused_command_line_argument=yes
10216 else
10217 xorg_cv_cc_flag_unused_command_line_argument=no
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10220 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10224 CFLAGS="$xorg_testset_save_CFLAGS"
10225 fi
10226
10227 found="no"
10228
10229 if test $found = "no" ; then
10230 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232 fi
10233
10234 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10236 fi
10237
10238 CFLAGS="$CFLAGS -Werror"
10239
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10241 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10242 cacheid=xorg_cv_cc_flag__Werror
10243 if eval \${$cacheid+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248 int i;
10249 int
10250 main ()
10251 {
10252
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258 eval $cacheid=yes
10259 else
10260 eval $cacheid=no
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 fi
10265
10266
10267 CFLAGS="$xorg_testset_save_CFLAGS"
10268
10269 eval supported=\$$cacheid
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10271 $as_echo "$supported" >&6; }
10272 if test "$supported" = "yes" ; then
10273 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10274 found="yes"
10275 fi
10276 fi
10277
10278 if test $found = "no" ; then
10279 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281 fi
10282
10283 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10285 fi
10286
10287 CFLAGS="$CFLAGS -errwarn"
10288
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10290 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10291 cacheid=xorg_cv_cc_flag__errwarn
10292 if eval \${$cacheid+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 int i;
10298 int
10299 main ()
10300 {
10301
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 if ac_fn_c_try_link "$LINENO"; then :
10307 eval $cacheid=yes
10308 else
10309 eval $cacheid=no
10310 fi
10311 rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313 fi
10314
10315
10316 CFLAGS="$xorg_testset_save_CFLAGS"
10317
10318 eval supported=\$$cacheid
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10320 $as_echo "$supported" >&6; }
10321 if test "$supported" = "yes" ; then
10322 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10323 found="yes"
10324 fi
10325 fi
10326
10327
10328
10329 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10330 # activate it with -Werror, so we add it here explicitly.
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344 xorg_testset_save_CFLAGS="$CFLAGS"
10345
10346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10349 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10350 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 int i;
10356 _ACEOF
10357 if ac_fn_c_try_compile "$LINENO"; then :
10358 xorg_cv_cc_flag_unknown_warning_option=yes
10359 else
10360 xorg_cv_cc_flag_unknown_warning_option=no
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10365 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10367 CFLAGS="$xorg_testset_save_CFLAGS"
10368 fi
10369
10370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373 fi
10374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10376 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10377 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 int i;
10383 _ACEOF
10384 if ac_fn_c_try_compile "$LINENO"; then :
10385 xorg_cv_cc_flag_unused_command_line_argument=yes
10386 else
10387 xorg_cv_cc_flag_unused_command_line_argument=no
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10390 fi
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10392 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10394 CFLAGS="$xorg_testset_save_CFLAGS"
10395 fi
10396
10397 found="no"
10398
10399 if test $found = "no" ; then
10400 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402 fi
10403
10404 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10406 fi
10407
10408 CFLAGS="$CFLAGS -Werror=attributes"
10409
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10411 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10412 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10413 if eval \${$cacheid+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 int i;
10419 int
10420 main ()
10421 {
10422
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 eval $cacheid=yes
10429 else
10430 eval $cacheid=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 fi
10435
10436
10437 CFLAGS="$xorg_testset_save_CFLAGS"
10438
10439 eval supported=\$$cacheid
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10441 $as_echo "$supported" >&6; }
10442 if test "$supported" = "yes" ; then
10443 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10444 found="yes"
10445 fi
10446 fi
10447
10448
10449
10450 if test "x$STRICT_COMPILE" = "xyes"; then
10451 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10452 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10453 fi
10454
10455
10456
10457
10458
10459
10460 cat >>confdefs.h <<_ACEOF
10461 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10462 _ACEOF
10463
10464 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10465 if test "x$PVM" = "x"; then
10466 PVM="0"
10467 fi
10468
10469 cat >>confdefs.h <<_ACEOF
10470 #define PACKAGE_VERSION_MINOR $PVM
10471 _ACEOF
10472
10473 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10474 if test "x$PVP" = "x"; then
10475 PVP="0"
10476 fi
10477
10478 cat >>confdefs.h <<_ACEOF
10479 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10480 _ACEOF
10481
10482
10483
10484 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10485 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10486 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10487 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10488
10489
10490
10491
10492 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10493 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10494 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10495 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10496 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10497
10498
10499
10500
10501
10502
10503 if test x$APP_MAN_SUFFIX = x ; then
10504 APP_MAN_SUFFIX=1
10505 fi
10506 if test x$APP_MAN_DIR = x ; then
10507 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10508 fi
10509
10510 if test x$LIB_MAN_SUFFIX = x ; then
10511 LIB_MAN_SUFFIX=3
10512 fi
10513 if test x$LIB_MAN_DIR = x ; then
10514 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10515 fi
10516
10517 if test x$FILE_MAN_SUFFIX = x ; then
10518 case $host_os in
10519 solaris*) FILE_MAN_SUFFIX=4 ;;
10520 *) FILE_MAN_SUFFIX=5 ;;
10521 esac
10522 fi
10523 if test x$FILE_MAN_DIR = x ; then
10524 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10525 fi
10526
10527 if test x$MISC_MAN_SUFFIX = x ; then
10528 case $host_os in
10529 solaris*) MISC_MAN_SUFFIX=5 ;;
10530 *) MISC_MAN_SUFFIX=7 ;;
10531 esac
10532 fi
10533 if test x$MISC_MAN_DIR = x ; then
10534 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10535 fi
10536
10537 if test x$DRIVER_MAN_SUFFIX = x ; then
10538 case $host_os in
10539 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10540 *) DRIVER_MAN_SUFFIX=4 ;;
10541 esac
10542 fi
10543 if test x$DRIVER_MAN_DIR = x ; then
10544 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10545 fi
10546
10547 if test x$ADMIN_MAN_SUFFIX = x ; then
10548 case $host_os in
10549 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10550 *) ADMIN_MAN_SUFFIX=8 ;;
10551 esac
10552 fi
10553 if test x$ADMIN_MAN_DIR = x ; then
10554 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10555 fi
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571 XORG_MAN_PAGE="X Version 11"
10572
10573 MAN_SUBSTS="\
10574 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10575 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10576 -e 's|__xservername__|Xorg|g' \
10577 -e 's|__xconfigfile__|xorg.conf|g' \
10578 -e 's|__projectroot__|\$(prefix)|g' \
10579 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10580 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10581 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10582 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10583 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10584 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10585 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10586
10587
10588
10589 # Check whether --enable-silent-rules was given.
10590 if test "${enable_silent_rules+set}" = set; then :
10591 enableval=$enable_silent_rules;
10592 fi
10593
10594 case $enable_silent_rules in
10595 yes) AM_DEFAULT_VERBOSITY=0;;
10596 no) AM_DEFAULT_VERBOSITY=1;;
10597 *) AM_DEFAULT_VERBOSITY=0;;
10598 esac
10599 am_make=${MAKE-make}
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10601 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10602 if ${am_cv_make_support_nested_variables+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 if $as_echo 'TRUE=$(BAR$(V))
10606 BAR0=false
10607 BAR1=true
10608 V=1
10609 am__doit:
10610 @$(TRUE)
10611 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10612 am_cv_make_support_nested_variables=yes
10613 else
10614 am_cv_make_support_nested_variables=no
10615 fi
10616 fi
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10618 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10619 if test $am_cv_make_support_nested_variables = yes; then
10620 AM_V='$(V)'
10621 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10622 else
10623 AM_V=$AM_DEFAULT_VERBOSITY
10624 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10625 fi
10626 AM_BACKSLASH='\'
10627
10628
10629
10630 # Initialize libtool
10631 # Check whether --enable-static was given.
10632 if test "${enable_static+set}" = set; then :
10633 enableval=$enable_static; p=${PACKAGE-default}
10634 case $enableval in
10635 yes) enable_static=yes ;;
10636 no) enable_static=no ;;
10637 *)
10638 enable_static=no
10639 # Look at the argument we got. We use all the common list separators.
10640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10641 for pkg in $enableval; do
10642 IFS="$lt_save_ifs"
10643 if test "X$pkg" = "X$p"; then
10644 enable_static=yes
10645 fi
10646 done
10647 IFS="$lt_save_ifs"
10648 ;;
10649 esac
10650 else
10651 enable_static=no
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662 case `pwd` in
10663 *\ * | *\ *)
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10665 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10666 esac
10667
10668
10669
10670 macro_version='2.4.2'
10671 macro_revision='1.3337'
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685 ltmain="$ac_aux_dir/ltmain.sh"
10686
10687 # Backslashify metacharacters that are still active within
10688 # double-quoted strings.
10689 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10690
10691 # Same as above, but do not quote variable references.
10692 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10693
10694 # Sed substitution to delay expansion of an escaped shell variable in a
10695 # double_quote_subst'ed string.
10696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10697
10698 # Sed substitution to delay expansion of an escaped single quote.
10699 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10700
10701 # Sed substitution to avoid accidental globbing in evaled expressions
10702 no_glob_subst='s/\*/\\\*/g'
10703
10704 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10707
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10709 $as_echo_n "checking how to print strings... " >&6; }
10710 # Test print first, because it will be a builtin if present.
10711 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10712 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10713 ECHO='print -r --'
10714 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10715 ECHO='printf %s\n'
10716 else
10717 # Use this function as a fallback that always works.
10718 func_fallback_echo ()
10719 {
10720 eval 'cat <<_LTECHO_EOF
10721 $1
10722 _LTECHO_EOF'
10723 }
10724 ECHO='func_fallback_echo'
10725 fi
10726
10727 # func_echo_all arg...
10728 # Invoke $ECHO with all args, space-separated.
10729 func_echo_all ()
10730 {
10731 $ECHO ""
10732 }
10733
10734 case "$ECHO" in
10735 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10736 $as_echo "printf" >&6; } ;;
10737 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10738 $as_echo "print -r" >&6; } ;;
10739 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10740 $as_echo "cat" >&6; } ;;
10741 esac
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10757 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10758 if ${ac_cv_path_SED+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10762 for ac_i in 1 2 3 4 5 6 7; do
10763 ac_script="$ac_script$as_nl$ac_script"
10764 done
10765 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10766 { ac_script=; unset ac_script;}
10767 if test -z "$SED"; then
10768 ac_path_SED_found=false
10769 # Loop through the user's path and test for each of PROGNAME-LIST
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10772 do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_prog in sed gsed; do
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10778 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10779 # Check for GNU ac_path_SED and select it if it is found.
10780 # Check for GNU $ac_path_SED
10781 case `"$ac_path_SED" --version 2>&1` in
10782 *GNU*)
10783 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10784 *)
10785 ac_count=0
10786 $as_echo_n 0123456789 >"conftest.in"
10787 while :
10788 do
10789 cat "conftest.in" "conftest.in" >"conftest.tmp"
10790 mv "conftest.tmp" "conftest.in"
10791 cp "conftest.in" "conftest.nl"
10792 $as_echo '' >> "conftest.nl"
10793 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10795 as_fn_arith $ac_count + 1 && ac_count=$as_val
10796 if test $ac_count -gt ${ac_path_SED_max-0}; then
10797 # Best one so far, save it but keep looking for a better one
10798 ac_cv_path_SED="$ac_path_SED"
10799 ac_path_SED_max=$ac_count
10800 fi
10801 # 10*(2^10) chars as input seems more than enough
10802 test $ac_count -gt 10 && break
10803 done
10804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10805 esac
10806
10807 $ac_path_SED_found && break 3
10808 done
10809 done
10810 done
10811 IFS=$as_save_IFS
10812 if test -z "$ac_cv_path_SED"; then
10813 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10814 fi
10815 else
10816 ac_cv_path_SED=$SED
10817 fi
10818
10819 fi
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10821 $as_echo "$ac_cv_path_SED" >&6; }
10822 SED="$ac_cv_path_SED"
10823 rm -f conftest.sed
10824
10825 test -z "$SED" && SED=sed
10826 Xsed="$SED -e 1s/^X//"
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10839 $as_echo_n "checking for fgrep... " >&6; }
10840 if ${ac_cv_path_FGREP+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10844 then ac_cv_path_FGREP="$GREP -F"
10845 else
10846 if test -z "$FGREP"; then
10847 ac_path_FGREP_found=false
10848 # Loop through the user's path and test for each of PROGNAME-LIST
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10851 do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_prog in fgrep; do
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10857 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10858 # Check for GNU ac_path_FGREP and select it if it is found.
10859 # Check for GNU $ac_path_FGREP
10860 case `"$ac_path_FGREP" --version 2>&1` in
10861 *GNU*)
10862 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10863 *)
10864 ac_count=0
10865 $as_echo_n 0123456789 >"conftest.in"
10866 while :
10867 do
10868 cat "conftest.in" "conftest.in" >"conftest.tmp"
10869 mv "conftest.tmp" "conftest.in"
10870 cp "conftest.in" "conftest.nl"
10871 $as_echo 'FGREP' >> "conftest.nl"
10872 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10874 as_fn_arith $ac_count + 1 && ac_count=$as_val
10875 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10876 # Best one so far, save it but keep looking for a better one
10877 ac_cv_path_FGREP="$ac_path_FGREP"
10878 ac_path_FGREP_max=$ac_count
10879 fi
10880 # 10*(2^10) chars as input seems more than enough
10881 test $ac_count -gt 10 && break
10882 done
10883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10884 esac
10885
10886 $ac_path_FGREP_found && break 3
10887 done
10888 done
10889 done
10890 IFS=$as_save_IFS
10891 if test -z "$ac_cv_path_FGREP"; then
10892 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10893 fi
10894 else
10895 ac_cv_path_FGREP=$FGREP
10896 fi
10897
10898 fi
10899 fi
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10901 $as_echo "$ac_cv_path_FGREP" >&6; }
10902 FGREP="$ac_cv_path_FGREP"
10903
10904
10905 test -z "$GREP" && GREP=grep
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925 # Check whether --with-gnu-ld was given.
10926 if test "${with_gnu_ld+set}" = set; then :
10927 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10928 else
10929 with_gnu_ld=no
10930 fi
10931
10932 ac_prog=ld
10933 if test "$GCC" = yes; then
10934 # Check if gcc -print-prog-name=ld gives a path.
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10936 $as_echo_n "checking for ld used by $CC... " >&6; }
10937 case $host in
10938 *-*-mingw*)
10939 # gcc leaves a trailing carriage return which upsets mingw
10940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10941 *)
10942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10943 esac
10944 case $ac_prog in
10945 # Accept absolute paths.
10946 [\\/]* | ?:[\\/]*)
10947 re_direlt='/[^/][^/]*/\.\./'
10948 # Canonicalize the pathname of ld
10949 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10950 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10951 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10952 done
10953 test -z "$LD" && LD="$ac_prog"
10954 ;;
10955 "")
10956 # If it fails, then pretend we aren't using GCC.
10957 ac_prog=ld
10958 ;;
10959 *)
10960 # If it is relative, then search for the first ld in PATH.
10961 with_gnu_ld=unknown
10962 ;;
10963 esac
10964 elif test "$with_gnu_ld" = yes; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10966 $as_echo_n "checking for GNU ld... " >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10969 $as_echo_n "checking for non-GNU ld... " >&6; }
10970 fi
10971 if ${lt_cv_path_LD+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 if test -z "$LD"; then
10975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10976 for ac_dir in $PATH; do
10977 IFS="$lt_save_ifs"
10978 test -z "$ac_dir" && ac_dir=.
10979 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10980 lt_cv_path_LD="$ac_dir/$ac_prog"
10981 # Check to see if the program is GNU ld. I'd rather use --version,
10982 # but apparently some variants of GNU ld only accept -v.
10983 # Break only if it was the GNU/non-GNU ld that we prefer.
10984 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10985 *GNU* | *'with BFD'*)
10986 test "$with_gnu_ld" != no && break
10987 ;;
10988 *)
10989 test "$with_gnu_ld" != yes && break
10990 ;;
10991 esac
10992 fi
10993 done
10994 IFS="$lt_save_ifs"
10995 else
10996 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10997 fi
10998 fi
10999
11000 LD="$lt_cv_path_LD"
11001 if test -n "$LD"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11003 $as_echo "$LD" >&6; }
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11011 if ${lt_cv_prog_gnu_ld+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11015 case `$LD -v 2>&1 </dev/null` in
11016 *GNU* | *'with BFD'*)
11017 lt_cv_prog_gnu_ld=yes
11018 ;;
11019 *)
11020 lt_cv_prog_gnu_ld=no
11021 ;;
11022 esac
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11025 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11026 with_gnu_ld=$lt_cv_prog_gnu_ld
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11037 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11038 if ${lt_cv_path_NM+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 if test -n "$NM"; then
11042 # Let the user override the test.
11043 lt_cv_path_NM="$NM"
11044 else
11045 lt_nm_to_check="${ac_tool_prefix}nm"
11046 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11047 lt_nm_to_check="$lt_nm_to_check nm"
11048 fi
11049 for lt_tmp_nm in $lt_nm_to_check; do
11050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11051 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11052 IFS="$lt_save_ifs"
11053 test -z "$ac_dir" && ac_dir=.
11054 tmp_nm="$ac_dir/$lt_tmp_nm"
11055 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11056 # Check to see if the nm accepts a BSD-compat flag.
11057 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11058 # nm: unknown option "B" ignored
11059 # Tru64's nm complains that /dev/null is an invalid object file
11060 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11061 */dev/null* | *'Invalid file or object type'*)
11062 lt_cv_path_NM="$tmp_nm -B"
11063 break
11064 ;;
11065 *)
11066 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11067 */dev/null*)
11068 lt_cv_path_NM="$tmp_nm -p"
11069 break
11070 ;;
11071 *)
11072 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11073 continue # so that we can try to find one that supports BSD flags
11074 ;;
11075 esac
11076 ;;
11077 esac
11078 fi
11079 done
11080 IFS="$lt_save_ifs"
11081 done
11082 : ${lt_cv_path_NM=no}
11083 fi
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11086 $as_echo "$lt_cv_path_NM" >&6; }
11087 if test "$lt_cv_path_NM" != "no"; then
11088 NM="$lt_cv_path_NM"
11089 else
11090 # Didn't find any BSD compatible name lister, look for dumpbin.
11091 if test -n "$DUMPBIN"; then :
11092 # Let the user override the test.
11093 else
11094 if test -n "$ac_tool_prefix"; then
11095 for ac_prog in dumpbin "link -dump"
11096 do
11097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_prog_DUMPBIN+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 if test -n "$DUMPBIN"; then
11105 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11106 else
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11117 fi
11118 done
11119 done
11120 IFS=$as_save_IFS
11121
11122 fi
11123 fi
11124 DUMPBIN=$ac_cv_prog_DUMPBIN
11125 if test -n "$DUMPBIN"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11127 $as_echo "$DUMPBIN" >&6; }
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11131 fi
11132
11133
11134 test -n "$DUMPBIN" && break
11135 done
11136 fi
11137 if test -z "$DUMPBIN"; then
11138 ac_ct_DUMPBIN=$DUMPBIN
11139 for ac_prog in dumpbin "link -dump"
11140 do
11141 # Extract the first word of "$ac_prog", so it can be a program name with args.
11142 set dummy $ac_prog; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 if test -n "$ac_ct_DUMPBIN"; then
11149 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11150 else
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11153 do
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11158 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160 break 2
11161 fi
11162 done
11163 done
11164 IFS=$as_save_IFS
11165
11166 fi
11167 fi
11168 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11169 if test -n "$ac_ct_DUMPBIN"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11171 $as_echo "$ac_ct_DUMPBIN" >&6; }
11172 else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176
11177
11178 test -n "$ac_ct_DUMPBIN" && break
11179 done
11180
11181 if test "x$ac_ct_DUMPBIN" = x; then
11182 DUMPBIN=":"
11183 else
11184 case $cross_compiling:$ac_tool_warned in
11185 yes:)
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11188 ac_tool_warned=yes ;;
11189 esac
11190 DUMPBIN=$ac_ct_DUMPBIN
11191 fi
11192 fi
11193
11194 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11195 *COFF*)
11196 DUMPBIN="$DUMPBIN -symbols"
11197 ;;
11198 *)
11199 DUMPBIN=:
11200 ;;
11201 esac
11202 fi
11203
11204 if test "$DUMPBIN" != ":"; then
11205 NM="$DUMPBIN"
11206 fi
11207 fi
11208 test -z "$NM" && NM=nm
11209
11210
11211
11212
11213
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11216 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11217 if ${lt_cv_nm_interface+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 lt_cv_nm_interface="BSD nm"
11221 echo "int some_variable = 0;" > conftest.$ac_ext
11222 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11223 (eval "$ac_compile" 2>conftest.err)
11224 cat conftest.err >&5
11225 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11226 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11227 cat conftest.err >&5
11228 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11229 cat conftest.out >&5
11230 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11231 lt_cv_nm_interface="MS dumpbin"
11232 fi
11233 rm -f conftest*
11234 fi
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11236 $as_echo "$lt_cv_nm_interface" >&6; }
11237
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11239 $as_echo_n "checking whether ln -s works... " >&6; }
11240 LN_S=$as_ln_s
11241 if test "$LN_S" = "ln -s"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11243 $as_echo "yes" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11246 $as_echo "no, using $LN_S" >&6; }
11247 fi
11248
11249 # find the maximum length of command line arguments
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11251 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11252 if ${lt_cv_sys_max_cmd_len+:} false; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 i=0
11256 teststring="ABCD"
11257
11258 case $build_os in
11259 msdosdjgpp*)
11260 # On DJGPP, this test can blow up pretty badly due to problems in libc
11261 # (any single argument exceeding 2000 bytes causes a buffer overrun
11262 # during glob expansion). Even if it were fixed, the result of this
11263 # check would be larger than it should be.
11264 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11265 ;;
11266
11267 gnu*)
11268 # Under GNU Hurd, this test is not required because there is
11269 # no limit to the length of command line arguments.
11270 # Libtool will interpret -1 as no limit whatsoever
11271 lt_cv_sys_max_cmd_len=-1;
11272 ;;
11273
11274 cygwin* | mingw* | cegcc*)
11275 # On Win9x/ME, this test blows up -- it succeeds, but takes
11276 # about 5 minutes as the teststring grows exponentially.
11277 # Worse, since 9x/ME are not pre-emptively multitasking,
11278 # you end up with a "frozen" computer, even though with patience
11279 # the test eventually succeeds (with a max line length of 256k).
11280 # Instead, let's just punt: use the minimum linelength reported by
11281 # all of the supported platforms: 8192 (on NT/2K/XP).
11282 lt_cv_sys_max_cmd_len=8192;
11283 ;;
11284
11285 mint*)
11286 # On MiNT this can take a long time and run out of memory.
11287 lt_cv_sys_max_cmd_len=8192;
11288 ;;
11289
11290 amigaos*)
11291 # On AmigaOS with pdksh, this test takes hours, literally.
11292 # So we just punt and use a minimum line length of 8192.
11293 lt_cv_sys_max_cmd_len=8192;
11294 ;;
11295
11296 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11297 # This has been around since 386BSD, at least. Likely further.
11298 if test -x /sbin/sysctl; then
11299 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11300 elif test -x /usr/sbin/sysctl; then
11301 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11302 else
11303 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11304 fi
11305 # And add a safety zone
11306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11308 ;;
11309
11310 interix*)
11311 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11312 lt_cv_sys_max_cmd_len=196608
11313 ;;
11314
11315 os2*)
11316 # The test takes a long time on OS/2.
11317 lt_cv_sys_max_cmd_len=8192
11318 ;;
11319
11320 osf*)
11321 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11322 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11323 # nice to cause kernel panics so lets avoid the loop below.
11324 # First set a reasonable default.
11325 lt_cv_sys_max_cmd_len=16384
11326 #
11327 if test -x /sbin/sysconfig; then
11328 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11329 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11330 esac
11331 fi
11332 ;;
11333 sco3.2v5*)
11334 lt_cv_sys_max_cmd_len=102400
11335 ;;
11336 sysv5* | sco5v6* | sysv4.2uw2*)
11337 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11338 if test -n "$kargmax"; then
11339 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11340 else
11341 lt_cv_sys_max_cmd_len=32768
11342 fi
11343 ;;
11344 *)
11345 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11346 if test -n "$lt_cv_sys_max_cmd_len"; then
11347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11349 else
11350 # Make teststring a little bigger before we do anything with it.
11351 # a 1K string should be a reasonable start.
11352 for i in 1 2 3 4 5 6 7 8 ; do
11353 teststring=$teststring$teststring
11354 done
11355 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11356 # If test is not a shell built-in, we'll probably end up computing a
11357 # maximum length that is only half of the actual maximum length, but
11358 # we can't tell.
11359 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11360 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11361 test $i != 17 # 1/2 MB should be enough
11362 do
11363 i=`expr $i + 1`
11364 teststring=$teststring$teststring
11365 done
11366 # Only check the string length outside the loop.
11367 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11368 teststring=
11369 # Add a significant safety factor because C++ compilers can tack on
11370 # massive amounts of additional arguments before passing them to the
11371 # linker. It appears as though 1/2 is a usable value.
11372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11373 fi
11374 ;;
11375 esac
11376
11377 fi
11378
11379 if test -n $lt_cv_sys_max_cmd_len ; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11381 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11384 $as_echo "none" >&6; }
11385 fi
11386 max_cmd_len=$lt_cv_sys_max_cmd_len
11387
11388
11389
11390
11391
11392
11393 : ${CP="cp -f"}
11394 : ${MV="mv -f"}
11395 : ${RM="rm -f"}
11396
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11398 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11399 # Try some XSI features
11400 xsi_shell=no
11401 ( _lt_dummy="a/b/c"
11402 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11403 = c,a/b,b/c, \
11404 && eval 'test $(( 1 + 1 )) -eq 2 \
11405 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11406 && xsi_shell=yes
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11408 $as_echo "$xsi_shell" >&6; }
11409
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11412 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11413 lt_shell_append=no
11414 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11415 >/dev/null 2>&1 \
11416 && lt_shell_append=yes
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11418 $as_echo "$lt_shell_append" >&6; }
11419
11420
11421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11422 lt_unset=unset
11423 else
11424 lt_unset=false
11425 fi
11426
11427
11428
11429
11430
11431 # test EBCDIC or ASCII
11432 case `echo X|tr X '\101'` in
11433 A) # ASCII based system
11434 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11435 lt_SP2NL='tr \040 \012'
11436 lt_NL2SP='tr \015\012 \040\040'
11437 ;;
11438 *) # EBCDIC based system
11439 lt_SP2NL='tr \100 \n'
11440 lt_NL2SP='tr \r\n \100\100'
11441 ;;
11442 esac
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11453 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11454 if ${lt_cv_to_host_file_cmd+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 case $host in
11458 *-*-mingw* )
11459 case $build in
11460 *-*-mingw* ) # actually msys
11461 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11462 ;;
11463 *-*-cygwin* )
11464 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11465 ;;
11466 * ) # otherwise, assume *nix
11467 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11468 ;;
11469 esac
11470 ;;
11471 *-*-cygwin* )
11472 case $build in
11473 *-*-mingw* ) # actually msys
11474 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11475 ;;
11476 *-*-cygwin* )
11477 lt_cv_to_host_file_cmd=func_convert_file_noop
11478 ;;
11479 * ) # otherwise, assume *nix
11480 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11481 ;;
11482 esac
11483 ;;
11484 * ) # unhandled hosts (and "normal" native builds)
11485 lt_cv_to_host_file_cmd=func_convert_file_noop
11486 ;;
11487 esac
11488
11489 fi
11490
11491 to_host_file_cmd=$lt_cv_to_host_file_cmd
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11493 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11494
11495
11496
11497
11498
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11500 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11501 if ${lt_cv_to_tool_file_cmd+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 #assume ordinary cross tools, or native build.
11505 lt_cv_to_tool_file_cmd=func_convert_file_noop
11506 case $host in
11507 *-*-mingw* )
11508 case $build in
11509 *-*-mingw* ) # actually msys
11510 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11511 ;;
11512 esac
11513 ;;
11514 esac
11515
11516 fi
11517
11518 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11520 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11521
11522
11523
11524
11525
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11527 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11528 if ${lt_cv_ld_reload_flag+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 lt_cv_ld_reload_flag='-r'
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11534 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11535 reload_flag=$lt_cv_ld_reload_flag
11536 case $reload_flag in
11537 "" | " "*) ;;
11538 *) reload_flag=" $reload_flag" ;;
11539 esac
11540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11541 case $host_os in
11542 cygwin* | mingw* | pw32* | cegcc*)
11543 if test "$GCC" != yes; then
11544 reload_cmds=false
11545 fi
11546 ;;
11547 darwin*)
11548 if test "$GCC" = yes; then
11549 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11550 else
11551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11552 fi
11553 ;;
11554 esac
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564 if test -n "$ac_tool_prefix"; then
11565 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11566 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if ${ac_cv_prog_OBJDUMP+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test -n "$OBJDUMP"; then
11573 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11577 do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586 done
11587 done
11588 IFS=$as_save_IFS
11589
11590 fi
11591 fi
11592 OBJDUMP=$ac_cv_prog_OBJDUMP
11593 if test -n "$OBJDUMP"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11595 $as_echo "$OBJDUMP" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602 fi
11603 if test -z "$ac_cv_prog_OBJDUMP"; then
11604 ac_ct_OBJDUMP=$OBJDUMP
11605 # Extract the first word of "objdump", so it can be a program name with args.
11606 set dummy objdump; ac_word=$2
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608 $as_echo_n "checking for $ac_word... " >&6; }
11609 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 if test -n "$ac_ct_OBJDUMP"; then
11613 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11614 else
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11617 do
11618 IFS=$as_save_IFS
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11624 break 2
11625 fi
11626 done
11627 done
11628 IFS=$as_save_IFS
11629
11630 fi
11631 fi
11632 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11633 if test -n "$ac_ct_OBJDUMP"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11635 $as_echo "$ac_ct_OBJDUMP" >&6; }
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11639 fi
11640
11641 if test "x$ac_ct_OBJDUMP" = x; then
11642 OBJDUMP="false"
11643 else
11644 case $cross_compiling:$ac_tool_warned in
11645 yes:)
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11648 ac_tool_warned=yes ;;
11649 esac
11650 OBJDUMP=$ac_ct_OBJDUMP
11651 fi
11652 else
11653 OBJDUMP="$ac_cv_prog_OBJDUMP"
11654 fi
11655
11656 test -z "$OBJDUMP" && OBJDUMP=objdump
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11667 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11668 if ${lt_cv_deplibs_check_method+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 lt_cv_file_magic_cmd='$MAGIC_CMD'
11672 lt_cv_file_magic_test_file=
11673 lt_cv_deplibs_check_method='unknown'
11674 # Need to set the preceding variable on all platforms that support
11675 # interlibrary dependencies.
11676 # 'none' -- dependencies not supported.
11677 # `unknown' -- same as none, but documents that we really don't know.
11678 # 'pass_all' -- all dependencies passed with no checks.
11679 # 'test_compile' -- check by making test program.
11680 # 'file_magic [[regex]]' -- check by looking for files in library path
11681 # which responds to the $file_magic_cmd with a given extended regex.
11682 # If you have `file' or equivalent on your system and you're not sure
11683 # whether `pass_all' will *always* work, you probably want this one.
11684
11685 case $host_os in
11686 aix[4-9]*)
11687 lt_cv_deplibs_check_method=pass_all
11688 ;;
11689
11690 beos*)
11691 lt_cv_deplibs_check_method=pass_all
11692 ;;
11693
11694 bsdi[45]*)
11695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11696 lt_cv_file_magic_cmd='/usr/bin/file -L'
11697 lt_cv_file_magic_test_file=/shlib/libc.so
11698 ;;
11699
11700 cygwin*)
11701 # func_win32_libid is a shell function defined in ltmain.sh
11702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11703 lt_cv_file_magic_cmd='func_win32_libid'
11704 ;;
11705
11706 mingw* | pw32*)
11707 # Base MSYS/MinGW do not provide the 'file' command needed by
11708 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11709 # unless we find 'file', for example because we are cross-compiling.
11710 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11711 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11712 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11713 lt_cv_file_magic_cmd='func_win32_libid'
11714 else
11715 # Keep this pattern in sync with the one in func_win32_libid.
11716 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11717 lt_cv_file_magic_cmd='$OBJDUMP -f'
11718 fi
11719 ;;
11720
11721 cegcc*)
11722 # use the weaker test based on 'objdump'. See mingw*.
11723 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11724 lt_cv_file_magic_cmd='$OBJDUMP -f'
11725 ;;
11726
11727 darwin* | rhapsody*)
11728 lt_cv_deplibs_check_method=pass_all
11729 ;;
11730
11731 freebsd* | dragonfly*)
11732 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11733 case $host_cpu in
11734 i*86 )
11735 # Not sure whether the presence of OpenBSD here was a mistake.
11736 # Let's accept both of them until this is cleared up.
11737 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11738 lt_cv_file_magic_cmd=/usr/bin/file
11739 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11740 ;;
11741 esac
11742 else
11743 lt_cv_deplibs_check_method=pass_all
11744 fi
11745 ;;
11746
11747 gnu*)
11748 lt_cv_deplibs_check_method=pass_all
11749 ;;
11750
11751 haiku*)
11752 lt_cv_deplibs_check_method=pass_all
11753 ;;
11754
11755 hpux10.20* | hpux11*)
11756 lt_cv_file_magic_cmd=/usr/bin/file
11757 case $host_cpu in
11758 ia64*)
11759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11761 ;;
11762 hppa*64*)
11763 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]'
11764 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11765 ;;
11766 *)
11767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11768 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11769 ;;
11770 esac
11771 ;;
11772
11773 interix[3-9]*)
11774 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11776 ;;
11777
11778 irix5* | irix6* | nonstopux*)
11779 case $LD in
11780 *-32|*"-32 ") libmagic=32-bit;;
11781 *-n32|*"-n32 ") libmagic=N32;;
11782 *-64|*"-64 ") libmagic=64-bit;;
11783 *) libmagic=never-match;;
11784 esac
11785 lt_cv_deplibs_check_method=pass_all
11786 ;;
11787
11788 # This must be glibc/ELF.
11789 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11790 lt_cv_deplibs_check_method=pass_all
11791 ;;
11792
11793 netbsd*)
11794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11796 else
11797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11798 fi
11799 ;;
11800
11801 newos6*)
11802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11803 lt_cv_file_magic_cmd=/usr/bin/file
11804 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11805 ;;
11806
11807 *nto* | *qnx*)
11808 lt_cv_deplibs_check_method=pass_all
11809 ;;
11810
11811 openbsd*)
11812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11814 else
11815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11816 fi
11817 ;;
11818
11819 osf3* | osf4* | osf5*)
11820 lt_cv_deplibs_check_method=pass_all
11821 ;;
11822
11823 rdos*)
11824 lt_cv_deplibs_check_method=pass_all
11825 ;;
11826
11827 solaris*)
11828 lt_cv_deplibs_check_method=pass_all
11829 ;;
11830
11831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11832 lt_cv_deplibs_check_method=pass_all
11833 ;;
11834
11835 sysv4 | sysv4.3*)
11836 case $host_vendor in
11837 motorola)
11838 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]'
11839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11840 ;;
11841 ncr)
11842 lt_cv_deplibs_check_method=pass_all
11843 ;;
11844 sequent)
11845 lt_cv_file_magic_cmd='/bin/file'
11846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11847 ;;
11848 sni)
11849 lt_cv_file_magic_cmd='/bin/file'
11850 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11851 lt_cv_file_magic_test_file=/lib/libc.so
11852 ;;
11853 siemens)
11854 lt_cv_deplibs_check_method=pass_all
11855 ;;
11856 pc)
11857 lt_cv_deplibs_check_method=pass_all
11858 ;;
11859 esac
11860 ;;
11861
11862 tpf*)
11863 lt_cv_deplibs_check_method=pass_all
11864 ;;
11865 esac
11866
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11869 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11870
11871 file_magic_glob=
11872 want_nocaseglob=no
11873 if test "$build" = "$host"; then
11874 case $host_os in
11875 mingw* | pw32*)
11876 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11877 want_nocaseglob=yes
11878 else
11879 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11880 fi
11881 ;;
11882 esac
11883 fi
11884
11885 file_magic_cmd=$lt_cv_file_magic_cmd
11886 deplibs_check_method=$lt_cv_deplibs_check_method
11887 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910 if test -n "$ac_tool_prefix"; then
11911 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11912 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_prog_DLLTOOL+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$DLLTOOL"; then
11919 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11931 fi
11932 done
11933 done
11934 IFS=$as_save_IFS
11935
11936 fi
11937 fi
11938 DLLTOOL=$ac_cv_prog_DLLTOOL
11939 if test -n "$DLLTOOL"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11941 $as_echo "$DLLTOOL" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946
11947
11948 fi
11949 if test -z "$ac_cv_prog_DLLTOOL"; then
11950 ac_ct_DLLTOOL=$DLLTOOL
11951 # Extract the first word of "dlltool", so it can be a program name with args.
11952 set dummy dlltool; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 if test -n "$ac_ct_DLLTOOL"; then
11959 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11960 else
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11963 do
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11968 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11971 fi
11972 done
11973 done
11974 IFS=$as_save_IFS
11975
11976 fi
11977 fi
11978 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11979 if test -n "$ac_ct_DLLTOOL"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11981 $as_echo "$ac_ct_DLLTOOL" >&6; }
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11985 fi
11986
11987 if test "x$ac_ct_DLLTOOL" = x; then
11988 DLLTOOL="false"
11989 else
11990 case $cross_compiling:$ac_tool_warned in
11991 yes:)
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11994 ac_tool_warned=yes ;;
11995 esac
11996 DLLTOOL=$ac_ct_DLLTOOL
11997 fi
11998 else
11999 DLLTOOL="$ac_cv_prog_DLLTOOL"
12000 fi
12001
12002 test -z "$DLLTOOL" && DLLTOOL=dlltool
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12014 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12015 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 lt_cv_sharedlib_from_linklib_cmd='unknown'
12019
12020 case $host_os in
12021 cygwin* | mingw* | pw32* | cegcc*)
12022 # two different shell functions defined in ltmain.sh
12023 # decide which to use based on capabilities of $DLLTOOL
12024 case `$DLLTOOL --help 2>&1` in
12025 *--identify-strict*)
12026 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12027 ;;
12028 *)
12029 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12030 ;;
12031 esac
12032 ;;
12033 *)
12034 # fallback: assume linklib IS sharedlib
12035 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12036 ;;
12037 esac
12038
12039 fi
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12041 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12042 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12043 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12044
12045
12046
12047
12048
12049
12050
12051 if test -n "$ac_tool_prefix"; then
12052 for ac_prog in ar
12053 do
12054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_prog_AR+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 if test -n "$AR"; then
12062 ac_cv_prog_AR="$AR" # Let the user override the test.
12063 else
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12066 do
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12071 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12074 fi
12075 done
12076 done
12077 IFS=$as_save_IFS
12078
12079 fi
12080 fi
12081 AR=$ac_cv_prog_AR
12082 if test -n "$AR"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12084 $as_echo "$AR" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12088 fi
12089
12090
12091 test -n "$AR" && break
12092 done
12093 fi
12094 if test -z "$AR"; then
12095 ac_ct_AR=$AR
12096 for ac_prog in ar
12097 do
12098 # Extract the first word of "$ac_prog", so it can be a program name with args.
12099 set dummy $ac_prog; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 if test -n "$ac_ct_AR"; then
12106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12107 else
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12110 do
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115 ac_cv_prog_ac_ct_AR="$ac_prog"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 break 2
12118 fi
12119 done
12120 done
12121 IFS=$as_save_IFS
12122
12123 fi
12124 fi
12125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12126 if test -n "$ac_ct_AR"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12128 $as_echo "$ac_ct_AR" >&6; }
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12132 fi
12133
12134
12135 test -n "$ac_ct_AR" && break
12136 done
12137
12138 if test "x$ac_ct_AR" = x; then
12139 AR="false"
12140 else
12141 case $cross_compiling:$ac_tool_warned in
12142 yes:)
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12145 ac_tool_warned=yes ;;
12146 esac
12147 AR=$ac_ct_AR
12148 fi
12149 fi
12150
12151 : ${AR=ar}
12152 : ${AR_FLAGS=cru}
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12165 $as_echo_n "checking for archiver @FILE support... " >&6; }
12166 if ${lt_cv_ar_at_file+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 lt_cv_ar_at_file=no
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172
12173 int
12174 main ()
12175 {
12176
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 if ac_fn_c_try_compile "$LINENO"; then :
12182 echo conftest.$ac_objext > conftest.lst
12183 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12185 (eval $lt_ar_try) 2>&5
12186 ac_status=$?
12187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12188 test $ac_status = 0; }
12189 if test "$ac_status" -eq 0; then
12190 # Ensure the archiver fails upon bogus file names.
12191 rm -f conftest.$ac_objext libconftest.a
12192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12193 (eval $lt_ar_try) 2>&5
12194 ac_status=$?
12195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12196 test $ac_status = 0; }
12197 if test "$ac_status" -ne 0; then
12198 lt_cv_ar_at_file=@
12199 fi
12200 fi
12201 rm -f conftest.* libconftest.a
12202
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205
12206 fi
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12208 $as_echo "$lt_cv_ar_at_file" >&6; }
12209
12210 if test "x$lt_cv_ar_at_file" = xno; then
12211 archiver_list_spec=
12212 else
12213 archiver_list_spec=$lt_cv_ar_at_file
12214 fi
12215
12216
12217
12218
12219
12220
12221
12222 if test -n "$ac_tool_prefix"; then
12223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12224 set dummy ${ac_tool_prefix}strip; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_prog_STRIP+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test -n "$STRIP"; then
12231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12243 fi
12244 done
12245 done
12246 IFS=$as_save_IFS
12247
12248 fi
12249 fi
12250 STRIP=$ac_cv_prog_STRIP
12251 if test -n "$STRIP"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12253 $as_echo "$STRIP" >&6; }
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12257 fi
12258
12259
12260 fi
12261 if test -z "$ac_cv_prog_STRIP"; then
12262 ac_ct_STRIP=$STRIP
12263 # Extract the first word of "strip", so it can be a program name with args.
12264 set dummy strip; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 if test -n "$ac_ct_STRIP"; then
12271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_prog_ac_ct_STRIP="strip"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12283 fi
12284 done
12285 done
12286 IFS=$as_save_IFS
12287
12288 fi
12289 fi
12290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12291 if test -n "$ac_ct_STRIP"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12293 $as_echo "$ac_ct_STRIP" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12297 fi
12298
12299 if test "x$ac_ct_STRIP" = x; then
12300 STRIP=":"
12301 else
12302 case $cross_compiling:$ac_tool_warned in
12303 yes:)
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12306 ac_tool_warned=yes ;;
12307 esac
12308 STRIP=$ac_ct_STRIP
12309 fi
12310 else
12311 STRIP="$ac_cv_prog_STRIP"
12312 fi
12313
12314 test -z "$STRIP" && STRIP=:
12315
12316
12317
12318
12319
12320
12321 if test -n "$ac_tool_prefix"; then
12322 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_prog_RANLIB+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test -n "$RANLIB"; then
12330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12331 else
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343 done
12344 done
12345 IFS=$as_save_IFS
12346
12347 fi
12348 fi
12349 RANLIB=$ac_cv_prog_RANLIB
12350 if test -n "$RANLIB"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12352 $as_echo "$RANLIB" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357
12358
12359 fi
12360 if test -z "$ac_cv_prog_RANLIB"; then
12361 ac_ct_RANLIB=$RANLIB
12362 # Extract the first word of "ranlib", so it can be a program name with args.
12363 set dummy ranlib; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 if test -n "$ac_ct_RANLIB"; then
12370 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12371 else
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373 for as_dir in $PATH
12374 do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379 ac_cv_prog_ac_ct_RANLIB="ranlib"
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 break 2
12382 fi
12383 done
12384 done
12385 IFS=$as_save_IFS
12386
12387 fi
12388 fi
12389 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12390 if test -n "$ac_ct_RANLIB"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12392 $as_echo "$ac_ct_RANLIB" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397
12398 if test "x$ac_ct_RANLIB" = x; then
12399 RANLIB=":"
12400 else
12401 case $cross_compiling:$ac_tool_warned in
12402 yes:)
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12405 ac_tool_warned=yes ;;
12406 esac
12407 RANLIB=$ac_ct_RANLIB
12408 fi
12409 else
12410 RANLIB="$ac_cv_prog_RANLIB"
12411 fi
12412
12413 test -z "$RANLIB" && RANLIB=:
12414
12415
12416
12417
12418
12419
12420 # Determine commands to create old-style static archives.
12421 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12422 old_postinstall_cmds='chmod 644 $oldlib'
12423 old_postuninstall_cmds=
12424
12425 if test -n "$RANLIB"; then
12426 case $host_os in
12427 openbsd*)
12428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12429 ;;
12430 *)
12431 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12432 ;;
12433 esac
12434 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12435 fi
12436
12437 case $host_os in
12438 darwin*)
12439 lock_old_archive_extraction=yes ;;
12440 *)
12441 lock_old_archive_extraction=no ;;
12442 esac
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482 # If no C compiler was specified, use CC.
12483 LTCC=${LTCC-"$CC"}
12484
12485 # If no C compiler flags were specified, use CFLAGS.
12486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12487
12488 # Allow CC to be a program name with arguments.
12489 compiler=$CC
12490
12491
12492 # Check for command to grab the raw symbol name followed by C symbol from nm.
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12494 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12495 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498
12499 # These are sane defaults that work on at least a few old systems.
12500 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12501
12502 # Character class describing NM global symbol codes.
12503 symcode='[BCDEGRST]'
12504
12505 # Regexp to match symbols that can be accessed directly from C.
12506 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12507
12508 # Define system-specific variables.
12509 case $host_os in
12510 aix*)
12511 symcode='[BCDT]'
12512 ;;
12513 cygwin* | mingw* | pw32* | cegcc*)
12514 symcode='[ABCDGISTW]'
12515 ;;
12516 hpux*)
12517 if test "$host_cpu" = ia64; then
12518 symcode='[ABCDEGRST]'
12519 fi
12520 ;;
12521 irix* | nonstopux*)
12522 symcode='[BCDEGRST]'
12523 ;;
12524 osf*)
12525 symcode='[BCDEGQRST]'
12526 ;;
12527 solaris*)
12528 symcode='[BDRT]'
12529 ;;
12530 sco3.2v5*)
12531 symcode='[DT]'
12532 ;;
12533 sysv4.2uw2*)
12534 symcode='[DT]'
12535 ;;
12536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12537 symcode='[ABDT]'
12538 ;;
12539 sysv4)
12540 symcode='[DFNSTU]'
12541 ;;
12542 esac
12543
12544 # If we're using GNU nm, then use its standard symbol codes.
12545 case `$NM -V 2>&1` in
12546 *GNU* | *'with BFD'*)
12547 symcode='[ABCDGIRSTW]' ;;
12548 esac
12549
12550 # Transform an extracted symbol line into a proper C declaration.
12551 # Some systems (esp. on ia64) link data and code symbols differently,
12552 # so use this general approach.
12553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12554
12555 # Transform an extracted symbol line into symbol name and symbol address
12556 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12557 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'"
12558
12559 # Handle CRLF in mingw tool chain
12560 opt_cr=
12561 case $build_os in
12562 mingw*)
12563 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12564 ;;
12565 esac
12566
12567 # Try without a prefix underscore, then with it.
12568 for ac_symprfx in "" "_"; do
12569
12570 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12571 symxfrm="\\1 $ac_symprfx\\2 \\2"
12572
12573 # Write the raw and C identifiers.
12574 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12575 # Fake it for dumpbin and say T for any non-static function
12576 # and D for any global variable.
12577 # Also find C++ and __fastcall symbols from MSVC++,
12578 # which start with @ or ?.
12579 lt_cv_sys_global_symbol_pipe="$AWK '"\
12580 " {last_section=section; section=\$ 3};"\
12581 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12582 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12583 " \$ 0!~/External *\|/{next};"\
12584 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12585 " {if(hide[section]) next};"\
12586 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12587 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12588 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12589 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12590 " ' prfx=^$ac_symprfx"
12591 else
12592 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12593 fi
12594 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12595
12596 # Check to see that the pipe works correctly.
12597 pipe_works=no
12598
12599 rm -f conftest*
12600 cat > conftest.$ac_ext <<_LT_EOF
12601 #ifdef __cplusplus
12602 extern "C" {
12603 #endif
12604 char nm_test_var;
12605 void nm_test_func(void);
12606 void nm_test_func(void){}
12607 #ifdef __cplusplus
12608 }
12609 #endif
12610 int main(){nm_test_var='a';nm_test_func();return(0);}
12611 _LT_EOF
12612
12613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12614 (eval $ac_compile) 2>&5
12615 ac_status=$?
12616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617 test $ac_status = 0; }; then
12618 # Now try to grab the symbols.
12619 nlist=conftest.nm
12620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12621 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12622 ac_status=$?
12623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624 test $ac_status = 0; } && test -s "$nlist"; then
12625 # Try sorting and uniquifying the output.
12626 if sort "$nlist" | uniq > "$nlist"T; then
12627 mv -f "$nlist"T "$nlist"
12628 else
12629 rm -f "$nlist"T
12630 fi
12631
12632 # Make sure that we snagged all the symbols we need.
12633 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12634 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12635 cat <<_LT_EOF > conftest.$ac_ext
12636 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12637 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12638 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12639 relocations are performed -- see ld's documentation on pseudo-relocs. */
12640 # define LT_DLSYM_CONST
12641 #elif defined(__osf__)
12642 /* This system does not cope well with relocations in const data. */
12643 # define LT_DLSYM_CONST
12644 #else
12645 # define LT_DLSYM_CONST const
12646 #endif
12647
12648 #ifdef __cplusplus
12649 extern "C" {
12650 #endif
12651
12652 _LT_EOF
12653 # Now generate the symbol file.
12654 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12655
12656 cat <<_LT_EOF >> conftest.$ac_ext
12657
12658 /* The mapping between symbol names and symbols. */
12659 LT_DLSYM_CONST struct {
12660 const char *name;
12661 void *address;
12662 }
12663 lt__PROGRAM__LTX_preloaded_symbols[] =
12664 {
12665 { "@PROGRAM@", (void *) 0 },
12666 _LT_EOF
12667 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12668 cat <<\_LT_EOF >> conftest.$ac_ext
12669 {0, (void *) 0}
12670 };
12671
12672 /* This works around a problem in FreeBSD linker */
12673 #ifdef FREEBSD_WORKAROUND
12674 static const void *lt_preloaded_setup() {
12675 return lt__PROGRAM__LTX_preloaded_symbols;
12676 }
12677 #endif
12678
12679 #ifdef __cplusplus
12680 }
12681 #endif
12682 _LT_EOF
12683 # Now try linking the two files.
12684 mv conftest.$ac_objext conftstm.$ac_objext
12685 lt_globsym_save_LIBS=$LIBS
12686 lt_globsym_save_CFLAGS=$CFLAGS
12687 LIBS="conftstm.$ac_objext"
12688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12690 (eval $ac_link) 2>&5
12691 ac_status=$?
12692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12693 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12694 pipe_works=yes
12695 fi
12696 LIBS=$lt_globsym_save_LIBS
12697 CFLAGS=$lt_globsym_save_CFLAGS
12698 else
12699 echo "cannot find nm_test_func in $nlist" >&5
12700 fi
12701 else
12702 echo "cannot find nm_test_var in $nlist" >&5
12703 fi
12704 else
12705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12706 fi
12707 else
12708 echo "$progname: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12710 fi
12711 rm -rf conftest* conftst*
12712
12713 # Do not use the global_symbol_pipe unless it works.
12714 if test "$pipe_works" = yes; then
12715 break
12716 else
12717 lt_cv_sys_global_symbol_pipe=
12718 fi
12719 done
12720
12721 fi
12722
12723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12724 lt_cv_sys_global_symbol_to_cdecl=
12725 fi
12726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12728 $as_echo "failed" >&6; }
12729 else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12731 $as_echo "ok" >&6; }
12732 fi
12733
12734 # Response file support.
12735 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12736 nm_file_list_spec='@'
12737 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12738 nm_file_list_spec='@'
12739 fi
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12768 $as_echo_n "checking for sysroot... " >&6; }
12769
12770 # Check whether --with-sysroot was given.
12771 if test "${with_sysroot+set}" = set; then :
12772 withval=$with_sysroot;
12773 else
12774 with_sysroot=no
12775 fi
12776
12777
12778 lt_sysroot=
12779 case ${with_sysroot} in #(
12780 yes)
12781 if test "$GCC" = yes; then
12782 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12783 fi
12784 ;; #(
12785 /*)
12786 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12787 ;; #(
12788 no|'')
12789 ;; #(
12790 *)
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12792 $as_echo "${with_sysroot}" >&6; }
12793 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12794 ;;
12795 esac
12796
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12798 $as_echo "${lt_sysroot:-no}" >&6; }
12799
12800
12801
12802
12803
12804 # Check whether --enable-libtool-lock was given.
12805 if test "${enable_libtool_lock+set}" = set; then :
12806 enableval=$enable_libtool_lock;
12807 fi
12808
12809 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12810
12811 # Some flags need to be propagated to the compiler or linker for good
12812 # libtool support.
12813 case $host in
12814 ia64-*-hpux*)
12815 # Find out which ABI we are using.
12816 echo 'int i;' > conftest.$ac_ext
12817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12818 (eval $ac_compile) 2>&5
12819 ac_status=$?
12820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821 test $ac_status = 0; }; then
12822 case `/usr/bin/file conftest.$ac_objext` in
12823 *ELF-32*)
12824 HPUX_IA64_MODE="32"
12825 ;;
12826 *ELF-64*)
12827 HPUX_IA64_MODE="64"
12828 ;;
12829 esac
12830 fi
12831 rm -rf conftest*
12832 ;;
12833 *-*-irix6*)
12834 # Find out which ABI we are using.
12835 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12837 (eval $ac_compile) 2>&5
12838 ac_status=$?
12839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12840 test $ac_status = 0; }; then
12841 if test "$lt_cv_prog_gnu_ld" = yes; then
12842 case `/usr/bin/file conftest.$ac_objext` in
12843 *32-bit*)
12844 LD="${LD-ld} -melf32bsmip"
12845 ;;
12846 *N32*)
12847 LD="${LD-ld} -melf32bmipn32"
12848 ;;
12849 *64-bit*)
12850 LD="${LD-ld} -melf64bmip"
12851 ;;
12852 esac
12853 else
12854 case `/usr/bin/file conftest.$ac_objext` in
12855 *32-bit*)
12856 LD="${LD-ld} -32"
12857 ;;
12858 *N32*)
12859 LD="${LD-ld} -n32"
12860 ;;
12861 *64-bit*)
12862 LD="${LD-ld} -64"
12863 ;;
12864 esac
12865 fi
12866 fi
12867 rm -rf conftest*
12868 ;;
12869
12870 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12871 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12872 # Find out which ABI we are using.
12873 echo 'int i;' > conftest.$ac_ext
12874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12875 (eval $ac_compile) 2>&5
12876 ac_status=$?
12877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12878 test $ac_status = 0; }; then
12879 case `/usr/bin/file conftest.o` in
12880 *32-bit*)
12881 case $host in
12882 x86_64-*kfreebsd*-gnu)
12883 LD="${LD-ld} -m elf_i386_fbsd"
12884 ;;
12885 x86_64-*linux*)
12886 LD="${LD-ld} -m elf_i386"
12887 ;;
12888 ppc64-*linux*|powerpc64-*linux*)
12889 LD="${LD-ld} -m elf32ppclinux"
12890 ;;
12891 s390x-*linux*)
12892 LD="${LD-ld} -m elf_s390"
12893 ;;
12894 sparc64-*linux*)
12895 LD="${LD-ld} -m elf32_sparc"
12896 ;;
12897 esac
12898 ;;
12899 *64-bit*)
12900 case $host in
12901 x86_64-*kfreebsd*-gnu)
12902 LD="${LD-ld} -m elf_x86_64_fbsd"
12903 ;;
12904 x86_64-*linux*)
12905 LD="${LD-ld} -m elf_x86_64"
12906 ;;
12907 ppc*-*linux*|powerpc*-*linux*)
12908 LD="${LD-ld} -m elf64ppc"
12909 ;;
12910 s390*-*linux*|s390*-*tpf*)
12911 LD="${LD-ld} -m elf64_s390"
12912 ;;
12913 sparc*-*linux*)
12914 LD="${LD-ld} -m elf64_sparc"
12915 ;;
12916 esac
12917 ;;
12918 esac
12919 fi
12920 rm -rf conftest*
12921 ;;
12922
12923 *-*-sco3.2v5*)
12924 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12925 SAVE_CFLAGS="$CFLAGS"
12926 CFLAGS="$CFLAGS -belf"
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12928 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12929 if ${lt_cv_cc_needs_belf+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 ac_ext=c
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940
12941 int
12942 main ()
12943 {
12944
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"; then :
12950 lt_cv_cc_needs_belf=yes
12951 else
12952 lt_cv_cc_needs_belf=no
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 ac_ext=c
12957 ac_cpp='$CPP $CPPFLAGS'
12958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12961
12962 fi
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12964 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12965 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12966 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12967 CFLAGS="$SAVE_CFLAGS"
12968 fi
12969 ;;
12970 *-*solaris*)
12971 # Find out which ABI we are using.
12972 echo 'int i;' > conftest.$ac_ext
12973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12974 (eval $ac_compile) 2>&5
12975 ac_status=$?
12976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12977 test $ac_status = 0; }; then
12978 case `/usr/bin/file conftest.o` in
12979 *64-bit*)
12980 case $lt_cv_prog_gnu_ld in
12981 yes*)
12982 case $host in
12983 i?86-*-solaris*)
12984 LD="${LD-ld} -m elf_x86_64"
12985 ;;
12986 sparc*-*-solaris*)
12987 LD="${LD-ld} -m elf64_sparc"
12988 ;;
12989 esac
12990 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12991 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12992 LD="${LD-ld}_sol2"
12993 fi
12994 ;;
12995 *)
12996 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12997 LD="${LD-ld} -64"
12998 fi
12999 ;;
13000 esac
13001 ;;
13002 esac
13003 fi
13004 rm -rf conftest*
13005 ;;
13006 esac
13007
13008 need_locks="$enable_libtool_lock"
13009
13010 if test -n "$ac_tool_prefix"; then
13011 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13012 set dummy ${ac_tool_prefix}mt; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 if test -n "$MANIFEST_TOOL"; then
13019 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13020 else
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13023 do
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13028 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13031 fi
13032 done
13033 done
13034 IFS=$as_save_IFS
13035
13036 fi
13037 fi
13038 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13039 if test -n "$MANIFEST_TOOL"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13041 $as_echo "$MANIFEST_TOOL" >&6; }
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13045 fi
13046
13047
13048 fi
13049 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13050 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13051 # Extract the first word of "mt", so it can be a program name with args.
13052 set dummy mt; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 if test -n "$ac_ct_MANIFEST_TOOL"; then
13059 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13060 else
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13063 do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13071 fi
13072 done
13073 done
13074 IFS=$as_save_IFS
13075
13076 fi
13077 fi
13078 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13079 if test -n "$ac_ct_MANIFEST_TOOL"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13081 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13085 fi
13086
13087 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13088 MANIFEST_TOOL=":"
13089 else
13090 case $cross_compiling:$ac_tool_warned in
13091 yes:)
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13094 ac_tool_warned=yes ;;
13095 esac
13096 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13097 fi
13098 else
13099 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13100 fi
13101
13102 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13104 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13105 if ${lt_cv_path_mainfest_tool+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 lt_cv_path_mainfest_tool=no
13109 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13110 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13111 cat conftest.err >&5
13112 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13113 lt_cv_path_mainfest_tool=yes
13114 fi
13115 rm -f conftest*
13116 fi
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13118 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13119 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13120 MANIFEST_TOOL=:
13121 fi
13122
13123
13124
13125
13126
13127
13128 case $host_os in
13129 rhapsody* | darwin*)
13130 if test -n "$ac_tool_prefix"; then
13131 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13132 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 if test -n "$DSYMUTIL"; then
13139 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13140 else
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13143 do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13148 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152 done
13153 done
13154 IFS=$as_save_IFS
13155
13156 fi
13157 fi
13158 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13159 if test -n "$DSYMUTIL"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13161 $as_echo "$DSYMUTIL" >&6; }
13162 else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13165 fi
13166
13167
13168 fi
13169 if test -z "$ac_cv_prog_DSYMUTIL"; then
13170 ac_ct_DSYMUTIL=$DSYMUTIL
13171 # Extract the first word of "dsymutil", so it can be a program name with args.
13172 set dummy dsymutil; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 if test -n "$ac_ct_DSYMUTIL"; then
13179 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13180 else
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13183 do
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13191 fi
13192 done
13193 done
13194 IFS=$as_save_IFS
13195
13196 fi
13197 fi
13198 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13199 if test -n "$ac_ct_DSYMUTIL"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13201 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13205 fi
13206
13207 if test "x$ac_ct_DSYMUTIL" = x; then
13208 DSYMUTIL=":"
13209 else
13210 case $cross_compiling:$ac_tool_warned in
13211 yes:)
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13214 ac_tool_warned=yes ;;
13215 esac
13216 DSYMUTIL=$ac_ct_DSYMUTIL
13217 fi
13218 else
13219 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13220 fi
13221
13222 if test -n "$ac_tool_prefix"; then
13223 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13224 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if ${ac_cv_prog_NMEDIT+:} false; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 if test -n "$NMEDIT"; then
13231 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13232 else
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13235 do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13243 fi
13244 done
13245 done
13246 IFS=$as_save_IFS
13247
13248 fi
13249 fi
13250 NMEDIT=$ac_cv_prog_NMEDIT
13251 if test -n "$NMEDIT"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13253 $as_echo "$NMEDIT" >&6; }
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13257 fi
13258
13259
13260 fi
13261 if test -z "$ac_cv_prog_NMEDIT"; then
13262 ac_ct_NMEDIT=$NMEDIT
13263 # Extract the first word of "nmedit", so it can be a program name with args.
13264 set dummy nmedit; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 if test -n "$ac_ct_NMEDIT"; then
13271 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284 done
13285 done
13286 IFS=$as_save_IFS
13287
13288 fi
13289 fi
13290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13291 if test -n "$ac_ct_NMEDIT"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13293 $as_echo "$ac_ct_NMEDIT" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298
13299 if test "x$ac_ct_NMEDIT" = x; then
13300 NMEDIT=":"
13301 else
13302 case $cross_compiling:$ac_tool_warned in
13303 yes:)
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13306 ac_tool_warned=yes ;;
13307 esac
13308 NMEDIT=$ac_ct_NMEDIT
13309 fi
13310 else
13311 NMEDIT="$ac_cv_prog_NMEDIT"
13312 fi
13313
13314 if test -n "$ac_tool_prefix"; then
13315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318 $as_echo_n "checking for $ac_word... " >&6; }
13319 if ${ac_cv_prog_LIPO+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 if test -n "$LIPO"; then
13323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13324 else
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH
13327 do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13332 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336 done
13337 done
13338 IFS=$as_save_IFS
13339
13340 fi
13341 fi
13342 LIPO=$ac_cv_prog_LIPO
13343 if test -n "$LIPO"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13345 $as_echo "$LIPO" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13349 fi
13350
13351
13352 fi
13353 if test -z "$ac_cv_prog_LIPO"; then
13354 ac_ct_LIPO=$LIPO
13355 # Extract the first word of "lipo", so it can be a program name with args.
13356 set dummy lipo; ac_word=$2
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358 $as_echo_n "checking for $ac_word... " >&6; }
13359 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 if test -n "$ac_ct_LIPO"; then
13363 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13364 else
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH
13367 do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13372 ac_cv_prog_ac_ct_LIPO="lipo"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376 done
13377 done
13378 IFS=$as_save_IFS
13379
13380 fi
13381 fi
13382 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13383 if test -n "$ac_ct_LIPO"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13385 $as_echo "$ac_ct_LIPO" >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13389 fi
13390
13391 if test "x$ac_ct_LIPO" = x; then
13392 LIPO=":"
13393 else
13394 case $cross_compiling:$ac_tool_warned in
13395 yes:)
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13398 ac_tool_warned=yes ;;
13399 esac
13400 LIPO=$ac_ct_LIPO
13401 fi
13402 else
13403 LIPO="$ac_cv_prog_LIPO"
13404 fi
13405
13406 if test -n "$ac_tool_prefix"; then
13407 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13408 set dummy ${ac_tool_prefix}otool; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if ${ac_cv_prog_OTOOL+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 if test -n "$OTOOL"; then
13415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13416 else
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13419 do
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13427 fi
13428 done
13429 done
13430 IFS=$as_save_IFS
13431
13432 fi
13433 fi
13434 OTOOL=$ac_cv_prog_OTOOL
13435 if test -n "$OTOOL"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13437 $as_echo "$OTOOL" >&6; }
13438 else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13441 fi
13442
13443
13444 fi
13445 if test -z "$ac_cv_prog_OTOOL"; then
13446 ac_ct_OTOOL=$OTOOL
13447 # Extract the first word of "otool", so it can be a program name with args.
13448 set dummy otool; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 if test -n "$ac_ct_OTOOL"; then
13455 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13456 else
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13459 do
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13464 ac_cv_prog_ac_ct_OTOOL="otool"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13467 fi
13468 done
13469 done
13470 IFS=$as_save_IFS
13471
13472 fi
13473 fi
13474 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13475 if test -n "$ac_ct_OTOOL"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13477 $as_echo "$ac_ct_OTOOL" >&6; }
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13481 fi
13482
13483 if test "x$ac_ct_OTOOL" = x; then
13484 OTOOL=":"
13485 else
13486 case $cross_compiling:$ac_tool_warned in
13487 yes:)
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13490 ac_tool_warned=yes ;;
13491 esac
13492 OTOOL=$ac_ct_OTOOL
13493 fi
13494 else
13495 OTOOL="$ac_cv_prog_OTOOL"
13496 fi
13497
13498 if test -n "$ac_tool_prefix"; then
13499 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13500 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if ${ac_cv_prog_OTOOL64+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 if test -n "$OTOOL64"; then
13507 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13508 else
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13511 do
13512 IFS=$as_save_IFS
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13516 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13518 break 2
13519 fi
13520 done
13521 done
13522 IFS=$as_save_IFS
13523
13524 fi
13525 fi
13526 OTOOL64=$ac_cv_prog_OTOOL64
13527 if test -n "$OTOOL64"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13529 $as_echo "$OTOOL64" >&6; }
13530 else
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13533 fi
13534
13535
13536 fi
13537 if test -z "$ac_cv_prog_OTOOL64"; then
13538 ac_ct_OTOOL64=$OTOOL64
13539 # Extract the first word of "otool64", so it can be a program name with args.
13540 set dummy otool64; ac_word=$2
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542 $as_echo_n "checking for $ac_word... " >&6; }
13543 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 if test -n "$ac_ct_OTOOL64"; then
13547 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13548 else
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $PATH
13551 do
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13556 ac_cv_prog_ac_ct_OTOOL64="otool64"
13557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 break 2
13559 fi
13560 done
13561 done
13562 IFS=$as_save_IFS
13563
13564 fi
13565 fi
13566 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13567 if test -n "$ac_ct_OTOOL64"; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13569 $as_echo "$ac_ct_OTOOL64" >&6; }
13570 else
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572 $as_echo "no" >&6; }
13573 fi
13574
13575 if test "x$ac_ct_OTOOL64" = x; then
13576 OTOOL64=":"
13577 else
13578 case $cross_compiling:$ac_tool_warned in
13579 yes:)
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13582 ac_tool_warned=yes ;;
13583 esac
13584 OTOOL64=$ac_ct_OTOOL64
13585 fi
13586 else
13587 OTOOL64="$ac_cv_prog_OTOOL64"
13588 fi
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13617 $as_echo_n "checking for -single_module linker flag... " >&6; }
13618 if ${lt_cv_apple_cc_single_mod+:} false; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 lt_cv_apple_cc_single_mod=no
13622 if test -z "${LT_MULTI_MODULE}"; then
13623 # By default we will add the -single_module flag. You can override
13624 # by either setting the environment variable LT_MULTI_MODULE
13625 # non-empty at configure time, or by adding -multi_module to the
13626 # link flags.
13627 rm -rf libconftest.dylib*
13628 echo "int foo(void){return 1;}" > conftest.c
13629 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13630 -dynamiclib -Wl,-single_module conftest.c" >&5
13631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13632 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13633 _lt_result=$?
13634 # If there is a non-empty error log, and "single_module"
13635 # appears in it, assume the flag caused a linker warning
13636 if test -s conftest.err && $GREP single_module conftest.err; then
13637 cat conftest.err >&5
13638 # Otherwise, if the output was created with a 0 exit code from
13639 # the compiler, it worked.
13640 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13641 lt_cv_apple_cc_single_mod=yes
13642 else
13643 cat conftest.err >&5
13644 fi
13645 rm -rf libconftest.dylib*
13646 rm -f conftest.*
13647 fi
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13650 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13651
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13653 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13654 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 lt_cv_ld_exported_symbols_list=no
13658 save_LDFLAGS=$LDFLAGS
13659 echo "_main" > conftest.sym
13660 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663
13664 int
13665 main ()
13666 {
13667
13668 ;
13669 return 0;
13670 }
13671 _ACEOF
13672 if ac_fn_c_try_link "$LINENO"; then :
13673 lt_cv_ld_exported_symbols_list=yes
13674 else
13675 lt_cv_ld_exported_symbols_list=no
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13679 LDFLAGS="$save_LDFLAGS"
13680
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13683 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13684
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13686 $as_echo_n "checking for -force_load linker flag... " >&6; }
13687 if ${lt_cv_ld_force_load+:} false; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 lt_cv_ld_force_load=no
13691 cat > conftest.c << _LT_EOF
13692 int forced_loaded() { return 2;}
13693 _LT_EOF
13694 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13695 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13696 echo "$AR cru libconftest.a conftest.o" >&5
13697 $AR cru libconftest.a conftest.o 2>&5
13698 echo "$RANLIB libconftest.a" >&5
13699 $RANLIB libconftest.a 2>&5
13700 cat > conftest.c << _LT_EOF
13701 int main() { return 0;}
13702 _LT_EOF
13703 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13704 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13705 _lt_result=$?
13706 if test -s conftest.err && $GREP force_load conftest.err; then
13707 cat conftest.err >&5
13708 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13709 lt_cv_ld_force_load=yes
13710 else
13711 cat conftest.err >&5
13712 fi
13713 rm -f conftest.err libconftest.a conftest conftest.c
13714 rm -rf conftest.dSYM
13715
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13718 $as_echo "$lt_cv_ld_force_load" >&6; }
13719 case $host_os in
13720 rhapsody* | darwin1.[012])
13721 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13722 darwin1.*)
13723 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13724 darwin*) # darwin 5.x on
13725 # if running on 10.5 or later, the deployment target defaults
13726 # to the OS version, if on x86, and 10.4, the deployment
13727 # target defaults to 10.4. Don't you love it?
13728 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13729 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13730 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13731 10.[012]*)
13732 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13733 10.*)
13734 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13735 esac
13736 ;;
13737 esac
13738 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13739 _lt_dar_single_mod='$single_module'
13740 fi
13741 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13742 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13743 else
13744 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13745 fi
13746 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13747 _lt_dsymutil='~$DSYMUTIL $lib || :'
13748 else
13749 _lt_dsymutil=
13750 fi
13751 ;;
13752 esac
13753
13754 for ac_header in dlfcn.h
13755 do :
13756 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13757 "
13758 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_DLFCN_H 1
13761 _ACEOF
13762
13763 fi
13764
13765 done
13766
13767
13768
13769
13770
13771 # Set options
13772
13773
13774
13775 enable_dlopen=no
13776
13777
13778 enable_win32_dll=no
13779
13780
13781 # Check whether --enable-shared was given.
13782 if test "${enable_shared+set}" = set; then :
13783 enableval=$enable_shared; p=${PACKAGE-default}
13784 case $enableval in
13785 yes) enable_shared=yes ;;
13786 no) enable_shared=no ;;
13787 *)
13788 enable_shared=no
13789 # Look at the argument we got. We use all the common list separators.
13790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13791 for pkg in $enableval; do
13792 IFS="$lt_save_ifs"
13793 if test "X$pkg" = "X$p"; then
13794 enable_shared=yes
13795 fi
13796 done
13797 IFS="$lt_save_ifs"
13798 ;;
13799 esac
13800 else
13801 enable_shared=yes
13802 fi
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814 # Check whether --with-pic was given.
13815 if test "${with_pic+set}" = set; then :
13816 withval=$with_pic; lt_p=${PACKAGE-default}
13817 case $withval in
13818 yes|no) pic_mode=$withval ;;
13819 *)
13820 pic_mode=default
13821 # Look at the argument we got. We use all the common list separators.
13822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13823 for lt_pkg in $withval; do
13824 IFS="$lt_save_ifs"
13825 if test "X$lt_pkg" = "X$lt_p"; then
13826 pic_mode=yes
13827 fi
13828 done
13829 IFS="$lt_save_ifs"
13830 ;;
13831 esac
13832 else
13833 pic_mode=default
13834 fi
13835
13836
13837 test -z "$pic_mode" && pic_mode=default
13838
13839
13840
13841
13842
13843
13844
13845 # Check whether --enable-fast-install was given.
13846 if test "${enable_fast_install+set}" = set; then :
13847 enableval=$enable_fast_install; p=${PACKAGE-default}
13848 case $enableval in
13849 yes) enable_fast_install=yes ;;
13850 no) enable_fast_install=no ;;
13851 *)
13852 enable_fast_install=no
13853 # Look at the argument we got. We use all the common list separators.
13854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13855 for pkg in $enableval; do
13856 IFS="$lt_save_ifs"
13857 if test "X$pkg" = "X$p"; then
13858 enable_fast_install=yes
13859 fi
13860 done
13861 IFS="$lt_save_ifs"
13862 ;;
13863 esac
13864 else
13865 enable_fast_install=yes
13866 fi
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878 # This can be used to rebuild libtool when needed
13879 LIBTOOL_DEPS="$ltmain"
13880
13881 # Always use our own libtool.
13882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913 test -z "$LN_S" && LN_S="ln -s"
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928 if test -n "${ZSH_VERSION+set}" ; then
13929 setopt NO_GLOB_SUBST
13930 fi
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13933 $as_echo_n "checking for objdir... " >&6; }
13934 if ${lt_cv_objdir+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 rm -f .libs 2>/dev/null
13938 mkdir .libs 2>/dev/null
13939 if test -d .libs; then
13940 lt_cv_objdir=.libs
13941 else
13942 # MS-DOS does not allow filenames that begin with a dot.
13943 lt_cv_objdir=_libs
13944 fi
13945 rmdir .libs 2>/dev/null
13946 fi
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13948 $as_echo "$lt_cv_objdir" >&6; }
13949 objdir=$lt_cv_objdir
13950
13951
13952
13953
13954
13955 cat >>confdefs.h <<_ACEOF
13956 #define LT_OBJDIR "$lt_cv_objdir/"
13957 _ACEOF
13958
13959
13960
13961
13962 case $host_os in
13963 aix3*)
13964 # AIX sometimes has problems with the GCC collect2 program. For some
13965 # reason, if we set the COLLECT_NAMES environment variable, the problems
13966 # vanish in a puff of smoke.
13967 if test "X${COLLECT_NAMES+set}" != Xset; then
13968 COLLECT_NAMES=
13969 export COLLECT_NAMES
13970 fi
13971 ;;
13972 esac
13973
13974 # Global variables:
13975 ofile=libtool
13976 can_build_shared=yes
13977
13978 # All known linkers require a `.a' archive for static linking (except MSVC,
13979 # which needs '.lib').
13980 libext=a
13981
13982 with_gnu_ld="$lt_cv_prog_gnu_ld"
13983
13984 old_CC="$CC"
13985 old_CFLAGS="$CFLAGS"
13986
13987 # Set sane defaults for various variables
13988 test -z "$CC" && CC=cc
13989 test -z "$LTCC" && LTCC=$CC
13990 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13991 test -z "$LD" && LD=ld
13992 test -z "$ac_objext" && ac_objext=o
13993
13994 for cc_temp in $compiler""; do
13995 case $cc_temp in
13996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13998 \-*) ;;
13999 *) break;;
14000 esac
14001 done
14002 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14003
14004
14005 # Only perform the check for file, if the check method requires it
14006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14007 case $deplibs_check_method in
14008 file_magic*)
14009 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14011 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14012 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 case $MAGIC_CMD in
14016 [\\/*] | ?:[\\/]*)
14017 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14018 ;;
14019 *)
14020 lt_save_MAGIC_CMD="$MAGIC_CMD"
14021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14022 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14023 for ac_dir in $ac_dummy; do
14024 IFS="$lt_save_ifs"
14025 test -z "$ac_dir" && ac_dir=.
14026 if test -f $ac_dir/${ac_tool_prefix}file; then
14027 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14028 if test -n "$file_magic_test_file"; then
14029 case $deplibs_check_method in
14030 "file_magic "*)
14031 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14034 $EGREP "$file_magic_regex" > /dev/null; then
14035 :
14036 else
14037 cat <<_LT_EOF 1>&2
14038
14039 *** Warning: the command libtool uses to detect shared libraries,
14040 *** $file_magic_cmd, produces output that libtool cannot recognize.
14041 *** The result is that libtool may fail to recognize shared libraries
14042 *** as such. This will affect the creation of libtool libraries that
14043 *** depend on shared libraries, but programs linked with such libtool
14044 *** libraries will work regardless of this problem. Nevertheless, you
14045 *** may want to report the problem to your system manager and/or to
14046 *** bug-libtool@gnu.org
14047
14048 _LT_EOF
14049 fi ;;
14050 esac
14051 fi
14052 break
14053 fi
14054 done
14055 IFS="$lt_save_ifs"
14056 MAGIC_CMD="$lt_save_MAGIC_CMD"
14057 ;;
14058 esac
14059 fi
14060
14061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14062 if test -n "$MAGIC_CMD"; then
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14064 $as_echo "$MAGIC_CMD" >&6; }
14065 else
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14067 $as_echo "no" >&6; }
14068 fi
14069
14070
14071
14072
14073
14074 if test -z "$lt_cv_path_MAGIC_CMD"; then
14075 if test -n "$ac_tool_prefix"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14077 $as_echo_n "checking for file... " >&6; }
14078 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 case $MAGIC_CMD in
14082 [\\/*] | ?:[\\/]*)
14083 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14084 ;;
14085 *)
14086 lt_save_MAGIC_CMD="$MAGIC_CMD"
14087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14088 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14089 for ac_dir in $ac_dummy; do
14090 IFS="$lt_save_ifs"
14091 test -z "$ac_dir" && ac_dir=.
14092 if test -f $ac_dir/file; then
14093 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14094 if test -n "$file_magic_test_file"; then
14095 case $deplibs_check_method in
14096 "file_magic "*)
14097 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14098 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14100 $EGREP "$file_magic_regex" > /dev/null; then
14101 :
14102 else
14103 cat <<_LT_EOF 1>&2
14104
14105 *** Warning: the command libtool uses to detect shared libraries,
14106 *** $file_magic_cmd, produces output that libtool cannot recognize.
14107 *** The result is that libtool may fail to recognize shared libraries
14108 *** as such. This will affect the creation of libtool libraries that
14109 *** depend on shared libraries, but programs linked with such libtool
14110 *** libraries will work regardless of this problem. Nevertheless, you
14111 *** may want to report the problem to your system manager and/or to
14112 *** bug-libtool@gnu.org
14113
14114 _LT_EOF
14115 fi ;;
14116 esac
14117 fi
14118 break
14119 fi
14120 done
14121 IFS="$lt_save_ifs"
14122 MAGIC_CMD="$lt_save_MAGIC_CMD"
14123 ;;
14124 esac
14125 fi
14126
14127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14128 if test -n "$MAGIC_CMD"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14130 $as_echo "$MAGIC_CMD" >&6; }
14131 else
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14134 fi
14135
14136
14137 else
14138 MAGIC_CMD=:
14139 fi
14140 fi
14141
14142 fi
14143 ;;
14144 esac
14145
14146 # Use C for the default configuration in the libtool script
14147
14148 lt_save_CC="$CC"
14149 ac_ext=c
14150 ac_cpp='$CPP $CPPFLAGS'
14151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14154
14155
14156 # Source file extension for C test sources.
14157 ac_ext=c
14158
14159 # Object file extension for compiled C test sources.
14160 objext=o
14161 objext=$objext
14162
14163 # Code to be used in simple compile tests
14164 lt_simple_compile_test_code="int some_variable = 0;"
14165
14166 # Code to be used in simple link tests
14167 lt_simple_link_test_code='int main(){return(0);}'
14168
14169
14170
14171
14172
14173
14174
14175 # If no C compiler was specified, use CC.
14176 LTCC=${LTCC-"$CC"}
14177
14178 # If no C compiler flags were specified, use CFLAGS.
14179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14180
14181 # Allow CC to be a program name with arguments.
14182 compiler=$CC
14183
14184 # Save the default compiler, since it gets overwritten when the other
14185 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14186 compiler_DEFAULT=$CC
14187
14188 # save warnings/boilerplate of simple test code
14189 ac_outfile=conftest.$ac_objext
14190 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14192 _lt_compiler_boilerplate=`cat conftest.err`
14193 $RM conftest*
14194
14195 ac_outfile=conftest.$ac_objext
14196 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14198 _lt_linker_boilerplate=`cat conftest.err`
14199 $RM -r conftest*
14200
14201
14202 if test -n "$compiler"; then
14203
14204 lt_prog_compiler_no_builtin_flag=
14205
14206 if test "$GCC" = yes; then
14207 case $cc_basename in
14208 nvcc*)
14209 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14210 *)
14211 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14212 esac
14213
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14215 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14216 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 lt_cv_prog_compiler_rtti_exceptions=no
14220 ac_outfile=conftest.$ac_objext
14221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14222 lt_compiler_flag="-fno-rtti -fno-exceptions"
14223 # Insert the option either (1) after the last *FLAGS variable, or
14224 # (2) before a word containing "conftest.", or (3) at the end.
14225 # Note that $ac_compile itself does not contain backslashes and begins
14226 # with a dollar sign (not a hyphen), so the echo should work correctly.
14227 # The option is referenced via a variable to avoid confusing sed.
14228 lt_compile=`echo "$ac_compile" | $SED \
14229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14231 -e 's:$: $lt_compiler_flag:'`
14232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14233 (eval "$lt_compile" 2>conftest.err)
14234 ac_status=$?
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 if (exit $ac_status) && test -s "$ac_outfile"; then
14238 # The compiler can only warn and ignore the option if not recognized
14239 # So say no if there are warnings other than the usual output.
14240 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14243 lt_cv_prog_compiler_rtti_exceptions=yes
14244 fi
14245 fi
14246 $RM conftest*
14247
14248 fi
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14250 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14251
14252 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14253 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14254 else
14255 :
14256 fi
14257
14258 fi
14259
14260
14261
14262
14263
14264
14265 lt_prog_compiler_wl=
14266 lt_prog_compiler_pic=
14267 lt_prog_compiler_static=
14268
14269
14270 if test "$GCC" = yes; then
14271 lt_prog_compiler_wl='-Wl,'
14272 lt_prog_compiler_static='-static'
14273
14274 case $host_os in
14275 aix*)
14276 # All AIX code is PIC.
14277 if test "$host_cpu" = ia64; then
14278 # AIX 5 now supports IA64 processor
14279 lt_prog_compiler_static='-Bstatic'
14280 fi
14281 ;;
14282
14283 amigaos*)
14284 case $host_cpu in
14285 powerpc)
14286 # see comment about AmigaOS4 .so support
14287 lt_prog_compiler_pic='-fPIC'
14288 ;;
14289 m68k)
14290 # FIXME: we need at least 68020 code to build shared libraries, but
14291 # adding the `-m68020' flag to GCC prevents building anything better,
14292 # like `-m68040'.
14293 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14294 ;;
14295 esac
14296 ;;
14297
14298 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14299 # PIC is the default for these OSes.
14300 ;;
14301
14302 mingw* | cygwin* | pw32* | os2* | cegcc*)
14303 # This hack is so that the source file can tell whether it is being
14304 # built for inclusion in a dll (and should export symbols for example).
14305 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14306 # (--disable-auto-import) libraries
14307 lt_prog_compiler_pic='-DDLL_EXPORT'
14308 ;;
14309
14310 darwin* | rhapsody*)
14311 # PIC is the default on this platform
14312 # Common symbols not allowed in MH_DYLIB files
14313 lt_prog_compiler_pic='-fno-common'
14314 ;;
14315
14316 haiku*)
14317 # PIC is the default for Haiku.
14318 # The "-static" flag exists, but is broken.
14319 lt_prog_compiler_static=
14320 ;;
14321
14322 hpux*)
14323 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14324 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14325 # sets the default TLS model and affects inlining.
14326 case $host_cpu in
14327 hppa*64*)
14328 # +Z the default
14329 ;;
14330 *)
14331 lt_prog_compiler_pic='-fPIC'
14332 ;;
14333 esac
14334 ;;
14335
14336 interix[3-9]*)
14337 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14338 # Instead, we relocate shared libraries at runtime.
14339 ;;
14340
14341 msdosdjgpp*)
14342 # Just because we use GCC doesn't mean we suddenly get shared libraries
14343 # on systems that don't support them.
14344 lt_prog_compiler_can_build_shared=no
14345 enable_shared=no
14346 ;;
14347
14348 *nto* | *qnx*)
14349 # QNX uses GNU C++, but need to define -shared option too, otherwise
14350 # it will coredump.
14351 lt_prog_compiler_pic='-fPIC -shared'
14352 ;;
14353
14354 sysv4*MP*)
14355 if test -d /usr/nec; then
14356 lt_prog_compiler_pic=-Kconform_pic
14357 fi
14358 ;;
14359
14360 *)
14361 lt_prog_compiler_pic='-fPIC'
14362 ;;
14363 esac
14364
14365 case $cc_basename in
14366 nvcc*) # Cuda Compiler Driver 2.2
14367 lt_prog_compiler_wl='-Xlinker '
14368 if test -n "$lt_prog_compiler_pic"; then
14369 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14370 fi
14371 ;;
14372 esac
14373 else
14374 # PORTME Check for flag to pass linker flags through the system compiler.
14375 case $host_os in
14376 aix*)
14377 lt_prog_compiler_wl='-Wl,'
14378 if test "$host_cpu" = ia64; then
14379 # AIX 5 now supports IA64 processor
14380 lt_prog_compiler_static='-Bstatic'
14381 else
14382 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14383 fi
14384 ;;
14385
14386 mingw* | cygwin* | pw32* | os2* | cegcc*)
14387 # This hack is so that the source file can tell whether it is being
14388 # built for inclusion in a dll (and should export symbols for example).
14389 lt_prog_compiler_pic='-DDLL_EXPORT'
14390 ;;
14391
14392 hpux9* | hpux10* | hpux11*)
14393 lt_prog_compiler_wl='-Wl,'
14394 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14395 # not for PA HP-UX.
14396 case $host_cpu in
14397 hppa*64*|ia64*)
14398 # +Z the default
14399 ;;
14400 *)
14401 lt_prog_compiler_pic='+Z'
14402 ;;
14403 esac
14404 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14405 lt_prog_compiler_static='${wl}-a ${wl}archive'
14406 ;;
14407
14408 irix5* | irix6* | nonstopux*)
14409 lt_prog_compiler_wl='-Wl,'
14410 # PIC (with -KPIC) is the default.
14411 lt_prog_compiler_static='-non_shared'
14412 ;;
14413
14414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14415 case $cc_basename in
14416 # old Intel for x86_64 which still supported -KPIC.
14417 ecc*)
14418 lt_prog_compiler_wl='-Wl,'
14419 lt_prog_compiler_pic='-KPIC'
14420 lt_prog_compiler_static='-static'
14421 ;;
14422 # icc used to be incompatible with GCC.
14423 # ICC 10 doesn't accept -KPIC any more.
14424 icc* | ifort*)
14425 lt_prog_compiler_wl='-Wl,'
14426 lt_prog_compiler_pic='-fPIC'
14427 lt_prog_compiler_static='-static'
14428 ;;
14429 # Lahey Fortran 8.1.
14430 lf95*)
14431 lt_prog_compiler_wl='-Wl,'
14432 lt_prog_compiler_pic='--shared'
14433 lt_prog_compiler_static='--static'
14434 ;;
14435 nagfor*)
14436 # NAG Fortran compiler
14437 lt_prog_compiler_wl='-Wl,-Wl,,'
14438 lt_prog_compiler_pic='-PIC'
14439 lt_prog_compiler_static='-Bstatic'
14440 ;;
14441 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14442 # Portland Group compilers (*not* the Pentium gcc compiler,
14443 # which looks to be a dead project)
14444 lt_prog_compiler_wl='-Wl,'
14445 lt_prog_compiler_pic='-fpic'
14446 lt_prog_compiler_static='-Bstatic'
14447 ;;
14448 ccc*)
14449 lt_prog_compiler_wl='-Wl,'
14450 # All Alpha code is PIC.
14451 lt_prog_compiler_static='-non_shared'
14452 ;;
14453 xl* | bgxl* | bgf* | mpixl*)
14454 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14455 lt_prog_compiler_wl='-Wl,'
14456 lt_prog_compiler_pic='-qpic'
14457 lt_prog_compiler_static='-qstaticlink'
14458 ;;
14459 *)
14460 case `$CC -V 2>&1 | sed 5q` in
14461 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14462 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14463 lt_prog_compiler_pic='-KPIC'
14464 lt_prog_compiler_static='-Bstatic'
14465 lt_prog_compiler_wl=''
14466 ;;
14467 *Sun\ F* | *Sun*Fortran*)
14468 lt_prog_compiler_pic='-KPIC'
14469 lt_prog_compiler_static='-Bstatic'
14470 lt_prog_compiler_wl='-Qoption ld '
14471 ;;
14472 *Sun\ C*)
14473 # Sun C 5.9
14474 lt_prog_compiler_pic='-KPIC'
14475 lt_prog_compiler_static='-Bstatic'
14476 lt_prog_compiler_wl='-Wl,'
14477 ;;
14478 *Intel*\ [CF]*Compiler*)
14479 lt_prog_compiler_wl='-Wl,'
14480 lt_prog_compiler_pic='-fPIC'
14481 lt_prog_compiler_static='-static'
14482 ;;
14483 *Portland\ Group*)
14484 lt_prog_compiler_wl='-Wl,'
14485 lt_prog_compiler_pic='-fpic'
14486 lt_prog_compiler_static='-Bstatic'
14487 ;;
14488 esac
14489 ;;
14490 esac
14491 ;;
14492
14493 newsos6)
14494 lt_prog_compiler_pic='-KPIC'
14495 lt_prog_compiler_static='-Bstatic'
14496 ;;
14497
14498 *nto* | *qnx*)
14499 # QNX uses GNU C++, but need to define -shared option too, otherwise
14500 # it will coredump.
14501 lt_prog_compiler_pic='-fPIC -shared'
14502 ;;
14503
14504 osf3* | osf4* | osf5*)
14505 lt_prog_compiler_wl='-Wl,'
14506 # All OSF/1 code is PIC.
14507 lt_prog_compiler_static='-non_shared'
14508 ;;
14509
14510 rdos*)
14511 lt_prog_compiler_static='-non_shared'
14512 ;;
14513
14514 solaris*)
14515 lt_prog_compiler_pic='-KPIC'
14516 lt_prog_compiler_static='-Bstatic'
14517 case $cc_basename in
14518 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14519 lt_prog_compiler_wl='-Qoption ld ';;
14520 *)
14521 lt_prog_compiler_wl='-Wl,';;
14522 esac
14523 ;;
14524
14525 sunos4*)
14526 lt_prog_compiler_wl='-Qoption ld '
14527 lt_prog_compiler_pic='-PIC'
14528 lt_prog_compiler_static='-Bstatic'
14529 ;;
14530
14531 sysv4 | sysv4.2uw2* | sysv4.3*)
14532 lt_prog_compiler_wl='-Wl,'
14533 lt_prog_compiler_pic='-KPIC'
14534 lt_prog_compiler_static='-Bstatic'
14535 ;;
14536
14537 sysv4*MP*)
14538 if test -d /usr/nec ;then
14539 lt_prog_compiler_pic='-Kconform_pic'
14540 lt_prog_compiler_static='-Bstatic'
14541 fi
14542 ;;
14543
14544 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14545 lt_prog_compiler_wl='-Wl,'
14546 lt_prog_compiler_pic='-KPIC'
14547 lt_prog_compiler_static='-Bstatic'
14548 ;;
14549
14550 unicos*)
14551 lt_prog_compiler_wl='-Wl,'
14552 lt_prog_compiler_can_build_shared=no
14553 ;;
14554
14555 uts4*)
14556 lt_prog_compiler_pic='-pic'
14557 lt_prog_compiler_static='-Bstatic'
14558 ;;
14559
14560 *)
14561 lt_prog_compiler_can_build_shared=no
14562 ;;
14563 esac
14564 fi
14565
14566 case $host_os in
14567 # For platforms which do not support PIC, -DPIC is meaningless:
14568 *djgpp*)
14569 lt_prog_compiler_pic=
14570 ;;
14571 *)
14572 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14573 ;;
14574 esac
14575
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14577 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14578 if ${lt_cv_prog_compiler_pic+:} false; then :
14579 $as_echo_n "(cached) " >&6
14580 else
14581 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14584 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14585 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14586
14587 #
14588 # Check to make sure the PIC flag actually works.
14589 #
14590 if test -n "$lt_prog_compiler_pic"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14592 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14593 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595 else
14596 lt_cv_prog_compiler_pic_works=no
14597 ac_outfile=conftest.$ac_objext
14598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14599 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14600 # Insert the option either (1) after the last *FLAGS variable, or
14601 # (2) before a word containing "conftest.", or (3) at the end.
14602 # Note that $ac_compile itself does not contain backslashes and begins
14603 # with a dollar sign (not a hyphen), so the echo should work correctly.
14604 # The option is referenced via a variable to avoid confusing sed.
14605 lt_compile=`echo "$ac_compile" | $SED \
14606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14608 -e 's:$: $lt_compiler_flag:'`
14609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14610 (eval "$lt_compile" 2>conftest.err)
14611 ac_status=$?
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 if (exit $ac_status) && test -s "$ac_outfile"; then
14615 # The compiler can only warn and ignore the option if not recognized
14616 # So say no if there are warnings other than the usual output.
14617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14619 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14620 lt_cv_prog_compiler_pic_works=yes
14621 fi
14622 fi
14623 $RM conftest*
14624
14625 fi
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14627 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14628
14629 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14630 case $lt_prog_compiler_pic in
14631 "" | " "*) ;;
14632 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14633 esac
14634 else
14635 lt_prog_compiler_pic=
14636 lt_prog_compiler_can_build_shared=no
14637 fi
14638
14639 fi
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651 #
14652 # Check to make sure the static flag actually works.
14653 #
14654 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14656 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14657 if ${lt_cv_prog_compiler_static_works+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 lt_cv_prog_compiler_static_works=no
14661 save_LDFLAGS="$LDFLAGS"
14662 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14663 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14665 # The linker can only warn and ignore the option if not recognized
14666 # So say no if there are warnings
14667 if test -s conftest.err; then
14668 # Append any errors to the config.log.
14669 cat conftest.err 1>&5
14670 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14672 if diff conftest.exp conftest.er2 >/dev/null; then
14673 lt_cv_prog_compiler_static_works=yes
14674 fi
14675 else
14676 lt_cv_prog_compiler_static_works=yes
14677 fi
14678 fi
14679 $RM -r conftest*
14680 LDFLAGS="$save_LDFLAGS"
14681
14682 fi
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14684 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14685
14686 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14687 :
14688 else
14689 lt_prog_compiler_static=
14690 fi
14691
14692
14693
14694
14695
14696
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14699 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14700 if ${lt_cv_prog_compiler_c_o+:} false; then :
14701 $as_echo_n "(cached) " >&6
14702 else
14703 lt_cv_prog_compiler_c_o=no
14704 $RM -r conftest 2>/dev/null
14705 mkdir conftest
14706 cd conftest
14707 mkdir out
14708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14709
14710 lt_compiler_flag="-o out/conftest2.$ac_objext"
14711 # Insert the option either (1) after the last *FLAGS variable, or
14712 # (2) before a word containing "conftest.", or (3) at the end.
14713 # Note that $ac_compile itself does not contain backslashes and begins
14714 # with a dollar sign (not a hyphen), so the echo should work correctly.
14715 lt_compile=`echo "$ac_compile" | $SED \
14716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14718 -e 's:$: $lt_compiler_flag:'`
14719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14720 (eval "$lt_compile" 2>out/conftest.err)
14721 ac_status=$?
14722 cat out/conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14725 then
14726 # The compiler can only warn and ignore the option if not recognized
14727 # So say no if there are warnings
14728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14731 lt_cv_prog_compiler_c_o=yes
14732 fi
14733 fi
14734 chmod u+w . 2>&5
14735 $RM conftest*
14736 # SGI C++ compiler will create directory out/ii_files/ for
14737 # template instantiation
14738 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14739 $RM out/* && rmdir out
14740 cd ..
14741 $RM -r conftest
14742 $RM conftest*
14743
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14746 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14747
14748
14749
14750
14751
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14755 if ${lt_cv_prog_compiler_c_o+:} false; then :
14756 $as_echo_n "(cached) " >&6
14757 else
14758 lt_cv_prog_compiler_c_o=no
14759 $RM -r conftest 2>/dev/null
14760 mkdir conftest
14761 cd conftest
14762 mkdir out
14763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14764
14765 lt_compiler_flag="-o out/conftest2.$ac_objext"
14766 # Insert the option either (1) after the last *FLAGS variable, or
14767 # (2) before a word containing "conftest.", or (3) at the end.
14768 # Note that $ac_compile itself does not contain backslashes and begins
14769 # with a dollar sign (not a hyphen), so the echo should work correctly.
14770 lt_compile=`echo "$ac_compile" | $SED \
14771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14773 -e 's:$: $lt_compiler_flag:'`
14774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14775 (eval "$lt_compile" 2>out/conftest.err)
14776 ac_status=$?
14777 cat out/conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14780 then
14781 # The compiler can only warn and ignore the option if not recognized
14782 # So say no if there are warnings
14783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14786 lt_cv_prog_compiler_c_o=yes
14787 fi
14788 fi
14789 chmod u+w . 2>&5
14790 $RM conftest*
14791 # SGI C++ compiler will create directory out/ii_files/ for
14792 # template instantiation
14793 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14794 $RM out/* && rmdir out
14795 cd ..
14796 $RM -r conftest
14797 $RM conftest*
14798
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14801 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14802
14803
14804
14805
14806 hard_links="nottested"
14807 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14808 # do not overwrite the value of need_locks provided by the user
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14810 $as_echo_n "checking if we can lock with hard links... " >&6; }
14811 hard_links=yes
14812 $RM conftest*
14813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14814 touch conftest.a
14815 ln conftest.a conftest.b 2>&5 || hard_links=no
14816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14818 $as_echo "$hard_links" >&6; }
14819 if test "$hard_links" = no; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14821 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14822 need_locks=warn
14823 fi
14824 else
14825 need_locks=no
14826 fi
14827
14828
14829
14830
14831
14832
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14835
14836 runpath_var=
14837 allow_undefined_flag=
14838 always_export_symbols=no
14839 archive_cmds=
14840 archive_expsym_cmds=
14841 compiler_needs_object=no
14842 enable_shared_with_static_runtimes=no
14843 export_dynamic_flag_spec=
14844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14845 hardcode_automatic=no
14846 hardcode_direct=no
14847 hardcode_direct_absolute=no
14848 hardcode_libdir_flag_spec=
14849 hardcode_libdir_separator=
14850 hardcode_minus_L=no
14851 hardcode_shlibpath_var=unsupported
14852 inherit_rpath=no
14853 link_all_deplibs=unknown
14854 module_cmds=
14855 module_expsym_cmds=
14856 old_archive_from_new_cmds=
14857 old_archive_from_expsyms_cmds=
14858 thread_safe_flag_spec=
14859 whole_archive_flag_spec=
14860 # include_expsyms should be a list of space-separated symbols to be *always*
14861 # included in the symbol list
14862 include_expsyms=
14863 # exclude_expsyms can be an extended regexp of symbols to exclude
14864 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14866 # as well as any symbol that contains `d'.
14867 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14869 # platforms (ab)use it in PIC code, but their linkers get confused if
14870 # the symbol is explicitly referenced. Since portable code cannot
14871 # rely on this symbol name, it's probably fine to never include it in
14872 # preloaded symbol tables.
14873 # Exclude shared library initialization/finalization symbols.
14874 extract_expsyms_cmds=
14875
14876 case $host_os in
14877 cygwin* | mingw* | pw32* | cegcc*)
14878 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14879 # When not using gcc, we currently assume that we are using
14880 # Microsoft Visual C++.
14881 if test "$GCC" != yes; then
14882 with_gnu_ld=no
14883 fi
14884 ;;
14885 interix*)
14886 # we just hope/assume this is gcc and not c89 (= MSVC++)
14887 with_gnu_ld=yes
14888 ;;
14889 openbsd*)
14890 with_gnu_ld=no
14891 ;;
14892 esac
14893
14894 ld_shlibs=yes
14895
14896 # On some targets, GNU ld is compatible enough with the native linker
14897 # that we're better off using the native interface for both.
14898 lt_use_gnu_ld_interface=no
14899 if test "$with_gnu_ld" = yes; then
14900 case $host_os in
14901 aix*)
14902 # The AIX port of GNU ld has always aspired to compatibility
14903 # with the native linker. However, as the warning in the GNU ld
14904 # block says, versions before 2.19.5* couldn't really create working
14905 # shared libraries, regardless of the interface used.
14906 case `$LD -v 2>&1` in
14907 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14908 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14909 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14910 *)
14911 lt_use_gnu_ld_interface=yes
14912 ;;
14913 esac
14914 ;;
14915 *)
14916 lt_use_gnu_ld_interface=yes
14917 ;;
14918 esac
14919 fi
14920
14921 if test "$lt_use_gnu_ld_interface" = yes; then
14922 # If archive_cmds runs LD, not CC, wlarc should be empty
14923 wlarc='${wl}'
14924
14925 # Set some defaults for GNU ld with shared library support. These
14926 # are reset later if shared libraries are not supported. Putting them
14927 # here allows them to be overridden if necessary.
14928 runpath_var=LD_RUN_PATH
14929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14930 export_dynamic_flag_spec='${wl}--export-dynamic'
14931 # ancient GNU ld didn't support --whole-archive et. al.
14932 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14933 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14934 else
14935 whole_archive_flag_spec=
14936 fi
14937 supports_anon_versioning=no
14938 case `$LD -v 2>&1` in
14939 *GNU\ gold*) supports_anon_versioning=yes ;;
14940 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14941 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14942 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14943 *\ 2.11.*) ;; # other 2.11 versions
14944 *) supports_anon_versioning=yes ;;
14945 esac
14946
14947 # See if GNU ld supports shared libraries.
14948 case $host_os in
14949 aix[3-9]*)
14950 # On AIX/PPC, the GNU linker is very broken
14951 if test "$host_cpu" != ia64; then
14952 ld_shlibs=no
14953 cat <<_LT_EOF 1>&2
14954
14955 *** Warning: the GNU linker, at least up to release 2.19, is reported
14956 *** to be unable to reliably create shared libraries on AIX.
14957 *** Therefore, libtool is disabling shared libraries support. If you
14958 *** really care for shared libraries, you may want to install binutils
14959 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14960 *** You will then need to restart the configuration process.
14961
14962 _LT_EOF
14963 fi
14964 ;;
14965
14966 amigaos*)
14967 case $host_cpu in
14968 powerpc)
14969 # see comment about AmigaOS4 .so support
14970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14971 archive_expsym_cmds=''
14972 ;;
14973 m68k)
14974 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)'
14975 hardcode_libdir_flag_spec='-L$libdir'
14976 hardcode_minus_L=yes
14977 ;;
14978 esac
14979 ;;
14980
14981 beos*)
14982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14983 allow_undefined_flag=unsupported
14984 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14985 # support --undefined. This deserves some investigation. FIXME
14986 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987 else
14988 ld_shlibs=no
14989 fi
14990 ;;
14991
14992 cygwin* | mingw* | pw32* | cegcc*)
14993 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14994 # as there is no search path for DLLs.
14995 hardcode_libdir_flag_spec='-L$libdir'
14996 export_dynamic_flag_spec='${wl}--export-all-symbols'
14997 allow_undefined_flag=unsupported
14998 always_export_symbols=no
14999 enable_shared_with_static_runtimes=yes
15000 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'
15001 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15002
15003 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15005 # If the export-symbols file already is a .def file (1st line
15006 # is EXPORTS), use it as is; otherwise, prepend...
15007 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15008 cp $export_symbols $output_objdir/$soname.def;
15009 else
15010 echo EXPORTS > $output_objdir/$soname.def;
15011 cat $export_symbols >> $output_objdir/$soname.def;
15012 fi~
15013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15014 else
15015 ld_shlibs=no
15016 fi
15017 ;;
15018
15019 haiku*)
15020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021 link_all_deplibs=yes
15022 ;;
15023
15024 interix[3-9]*)
15025 hardcode_direct=no
15026 hardcode_shlibpath_var=no
15027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15028 export_dynamic_flag_spec='${wl}-E'
15029 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15030 # Instead, shared libraries are loaded at an image base (0x10000000 by
15031 # default) and relocated if they conflict, which is a slow very memory
15032 # consuming and fragmenting process. To avoid this, we pick a random,
15033 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15034 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15036 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'
15037 ;;
15038
15039 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15040 tmp_diet=no
15041 if test "$host_os" = linux-dietlibc; then
15042 case $cc_basename in
15043 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15044 esac
15045 fi
15046 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15047 && test "$tmp_diet" = no
15048 then
15049 tmp_addflag=' $pic_flag'
15050 tmp_sharedflag='-shared'
15051 case $cc_basename,$host_cpu in
15052 pgcc*) # Portland Group C compiler
15053 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'
15054 tmp_addflag=' $pic_flag'
15055 ;;
15056 pgf77* | pgf90* | pgf95* | pgfortran*)
15057 # Portland Group f77 and f90 compilers
15058 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'
15059 tmp_addflag=' $pic_flag -Mnomain' ;;
15060 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15061 tmp_addflag=' -i_dynamic' ;;
15062 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15063 tmp_addflag=' -i_dynamic -nofor_main' ;;
15064 ifc* | ifort*) # Intel Fortran compiler
15065 tmp_addflag=' -nofor_main' ;;
15066 lf95*) # Lahey Fortran 8.1
15067 whole_archive_flag_spec=
15068 tmp_sharedflag='--shared' ;;
15069 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15070 tmp_sharedflag='-qmkshrobj'
15071 tmp_addflag= ;;
15072 nvcc*) # Cuda Compiler Driver 2.2
15073 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'
15074 compiler_needs_object=yes
15075 ;;
15076 esac
15077 case `$CC -V 2>&1 | sed 5q` in
15078 *Sun\ C*) # Sun C 5.9
15079 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'
15080 compiler_needs_object=yes
15081 tmp_sharedflag='-G' ;;
15082 *Sun\ F*) # Sun Fortran 8.3
15083 tmp_sharedflag='-G' ;;
15084 esac
15085 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15086
15087 if test "x$supports_anon_versioning" = xyes; then
15088 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15089 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15090 echo "local: *; };" >> $output_objdir/$libname.ver~
15091 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15092 fi
15093
15094 case $cc_basename in
15095 xlf* | bgf* | bgxlf* | mpixlf*)
15096 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15097 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15099 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15100 if test "x$supports_anon_versioning" = xyes; then
15101 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15103 echo "local: *; };" >> $output_objdir/$libname.ver~
15104 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15105 fi
15106 ;;
15107 esac
15108 else
15109 ld_shlibs=no
15110 fi
15111 ;;
15112
15113 netbsd*)
15114 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15115 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15116 wlarc=
15117 else
15118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15120 fi
15121 ;;
15122
15123 solaris*)
15124 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15125 ld_shlibs=no
15126 cat <<_LT_EOF 1>&2
15127
15128 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15129 *** create shared libraries on Solaris systems. Therefore, libtool
15130 *** is disabling shared libraries support. We urge you to upgrade GNU
15131 *** binutils to release 2.9.1 or newer. Another option is to modify
15132 *** your PATH or compiler configuration so that the native linker is
15133 *** used, and then restart.
15134
15135 _LT_EOF
15136 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15137 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15138 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15139 else
15140 ld_shlibs=no
15141 fi
15142 ;;
15143
15144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15145 case `$LD -v 2>&1` in
15146 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15147 ld_shlibs=no
15148 cat <<_LT_EOF 1>&2
15149
15150 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15151 *** reliably create shared libraries on SCO systems. Therefore, libtool
15152 *** is disabling shared libraries support. We urge you to upgrade GNU
15153 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15154 *** your PATH or compiler configuration so that the native linker is
15155 *** used, and then restart.
15156
15157 _LT_EOF
15158 ;;
15159 *)
15160 # For security reasons, it is highly recommended that you always
15161 # use absolute paths for naming shared libraries, and exclude the
15162 # DT_RUNPATH tag from executables and libraries. But doing so
15163 # requires that you compile everything twice, which is a pain.
15164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15168 else
15169 ld_shlibs=no
15170 fi
15171 ;;
15172 esac
15173 ;;
15174
15175 sunos4*)
15176 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15177 wlarc=
15178 hardcode_direct=yes
15179 hardcode_shlibpath_var=no
15180 ;;
15181
15182 *)
15183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15186 else
15187 ld_shlibs=no
15188 fi
15189 ;;
15190 esac
15191
15192 if test "$ld_shlibs" = no; then
15193 runpath_var=
15194 hardcode_libdir_flag_spec=
15195 export_dynamic_flag_spec=
15196 whole_archive_flag_spec=
15197 fi
15198 else
15199 # PORTME fill in a description of your system's linker (not GNU ld)
15200 case $host_os in
15201 aix3*)
15202 allow_undefined_flag=unsupported
15203 always_export_symbols=yes
15204 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'
15205 # Note: this linker hardcodes the directories in LIBPATH if there
15206 # are no directories specified by -L.
15207 hardcode_minus_L=yes
15208 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15209 # Neither direct hardcoding nor static linking is supported with a
15210 # broken collect2.
15211 hardcode_direct=unsupported
15212 fi
15213 ;;
15214
15215 aix[4-9]*)
15216 if test "$host_cpu" = ia64; then
15217 # On IA64, the linker does run time linking by default, so we don't
15218 # have to do anything special.
15219 aix_use_runtimelinking=no
15220 exp_sym_flag='-Bexport'
15221 no_entry_flag=""
15222 else
15223 # If we're using GNU nm, then we don't want the "-C" option.
15224 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15225 # Also, AIX nm treats weak defined symbols like other global
15226 # defined symbols, whereas GNU nm marks them as "W".
15227 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15228 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'
15229 else
15230 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'
15231 fi
15232 aix_use_runtimelinking=no
15233
15234 # Test if we are trying to use run time linking or normal
15235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15236 # need to do runtime linking.
15237 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15238 for ld_flag in $LDFLAGS; do
15239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15240 aix_use_runtimelinking=yes
15241 break
15242 fi
15243 done
15244 ;;
15245 esac
15246
15247 exp_sym_flag='-bexport'
15248 no_entry_flag='-bnoentry'
15249 fi
15250
15251 # When large executables or shared objects are built, AIX ld can
15252 # have problems creating the table of contents. If linking a library
15253 # or program results in "error TOC overflow" add -mminimal-toc to
15254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15256
15257 archive_cmds=''
15258 hardcode_direct=yes
15259 hardcode_direct_absolute=yes
15260 hardcode_libdir_separator=':'
15261 link_all_deplibs=yes
15262 file_list_spec='${wl}-f,'
15263
15264 if test "$GCC" = yes; then
15265 case $host_os in aix4.[012]|aix4.[012].*)
15266 # We only want to do this on AIX 4.2 and lower, the check
15267 # below for broken collect2 doesn't work under 4.3+
15268 collect2name=`${CC} -print-prog-name=collect2`
15269 if test -f "$collect2name" &&
15270 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15271 then
15272 # We have reworked collect2
15273 :
15274 else
15275 # We have old collect2
15276 hardcode_direct=unsupported
15277 # It fails to find uninstalled libraries when the uninstalled
15278 # path is not listed in the libpath. Setting hardcode_minus_L
15279 # to unsupported forces relinking
15280 hardcode_minus_L=yes
15281 hardcode_libdir_flag_spec='-L$libdir'
15282 hardcode_libdir_separator=
15283 fi
15284 ;;
15285 esac
15286 shared_flag='-shared'
15287 if test "$aix_use_runtimelinking" = yes; then
15288 shared_flag="$shared_flag "'${wl}-G'
15289 fi
15290 else
15291 # not using gcc
15292 if test "$host_cpu" = ia64; then
15293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15294 # chokes on -Wl,-G. The following line is correct:
15295 shared_flag='-G'
15296 else
15297 if test "$aix_use_runtimelinking" = yes; then
15298 shared_flag='${wl}-G'
15299 else
15300 shared_flag='${wl}-bM:SRE'
15301 fi
15302 fi
15303 fi
15304
15305 export_dynamic_flag_spec='${wl}-bexpall'
15306 # It seems that -bexpall does not export symbols beginning with
15307 # underscore (_), so it is better to generate a list of symbols to export.
15308 always_export_symbols=yes
15309 if test "$aix_use_runtimelinking" = yes; then
15310 # Warning - without using the other runtime loading flags (-brtl),
15311 # -berok will link without error, but may produce a broken library.
15312 allow_undefined_flag='-berok'
15313 # Determine the default libpath from the value encoded in an
15314 # empty executable.
15315 if test "${lt_cv_aix_libpath+set}" = set; then
15316 aix_libpath=$lt_cv_aix_libpath
15317 else
15318 if ${lt_cv_aix_libpath_+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323
15324 int
15325 main ()
15326 {
15327
15328 ;
15329 return 0;
15330 }
15331 _ACEOF
15332 if ac_fn_c_try_link "$LINENO"; then :
15333
15334 lt_aix_libpath_sed='
15335 /Import File Strings/,/^$/ {
15336 /^0/ {
15337 s/^0 *\([^ ]*\) *$/\1/
15338 p
15339 }
15340 }'
15341 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15342 # Check for a 64-bit object if we didn't find anything.
15343 if test -z "$lt_cv_aix_libpath_"; then
15344 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15345 fi
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15349 if test -z "$lt_cv_aix_libpath_"; then
15350 lt_cv_aix_libpath_="/usr/lib:/lib"
15351 fi
15352
15353 fi
15354
15355 aix_libpath=$lt_cv_aix_libpath_
15356 fi
15357
15358 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15359 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"
15360 else
15361 if test "$host_cpu" = ia64; then
15362 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15363 allow_undefined_flag="-z nodefs"
15364 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"
15365 else
15366 # Determine the default libpath from the value encoded in an
15367 # empty executable.
15368 if test "${lt_cv_aix_libpath+set}" = set; then
15369 aix_libpath=$lt_cv_aix_libpath
15370 else
15371 if ${lt_cv_aix_libpath_+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376
15377 int
15378 main ()
15379 {
15380
15381 ;
15382 return 0;
15383 }
15384 _ACEOF
15385 if ac_fn_c_try_link "$LINENO"; then :
15386
15387 lt_aix_libpath_sed='
15388 /Import File Strings/,/^$/ {
15389 /^0/ {
15390 s/^0 *\([^ ]*\) *$/\1/
15391 p
15392 }
15393 }'
15394 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15395 # Check for a 64-bit object if we didn't find anything.
15396 if test -z "$lt_cv_aix_libpath_"; then
15397 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15398 fi
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 if test -z "$lt_cv_aix_libpath_"; then
15403 lt_cv_aix_libpath_="/usr/lib:/lib"
15404 fi
15405
15406 fi
15407
15408 aix_libpath=$lt_cv_aix_libpath_
15409 fi
15410
15411 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15412 # Warning - without using the other run time loading flags,
15413 # -berok will link without error, but may produce a broken library.
15414 no_undefined_flag=' ${wl}-bernotok'
15415 allow_undefined_flag=' ${wl}-berok'
15416 if test "$with_gnu_ld" = yes; then
15417 # We only use this code for GNU lds that support --whole-archive.
15418 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15419 else
15420 # Exported symbols can be pulled into shared objects from archives
15421 whole_archive_flag_spec='$convenience'
15422 fi
15423 archive_cmds_need_lc=yes
15424 # This is similar to how AIX traditionally builds its shared libraries.
15425 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'
15426 fi
15427 fi
15428 ;;
15429
15430 amigaos*)
15431 case $host_cpu in
15432 powerpc)
15433 # see comment about AmigaOS4 .so support
15434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15435 archive_expsym_cmds=''
15436 ;;
15437 m68k)
15438 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)'
15439 hardcode_libdir_flag_spec='-L$libdir'
15440 hardcode_minus_L=yes
15441 ;;
15442 esac
15443 ;;
15444
15445 bsdi[45]*)
15446 export_dynamic_flag_spec=-rdynamic
15447 ;;
15448
15449 cygwin* | mingw* | pw32* | cegcc*)
15450 # When not using gcc, we currently assume that we are using
15451 # Microsoft Visual C++.
15452 # hardcode_libdir_flag_spec is actually meaningless, as there is
15453 # no search path for DLLs.
15454 case $cc_basename in
15455 cl*)
15456 # Native MSVC
15457 hardcode_libdir_flag_spec=' '
15458 allow_undefined_flag=unsupported
15459 always_export_symbols=yes
15460 file_list_spec='@'
15461 # Tell ltmain to make .lib files, not .a files.
15462 libext=lib
15463 # Tell ltmain to make .dll files, not .so files.
15464 shrext_cmds=".dll"
15465 # FIXME: Setting linknames here is a bad hack.
15466 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15467 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15468 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15469 else
15470 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15471 fi~
15472 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15473 linknames='
15474 # The linker will not automatically build a static lib if we build a DLL.
15475 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15476 enable_shared_with_static_runtimes=yes
15477 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15478 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15479 # Don't use ranlib
15480 old_postinstall_cmds='chmod 644 $oldlib'
15481 postlink_cmds='lt_outputfile="@OUTPUT@"~
15482 lt_tool_outputfile="@TOOL_OUTPUT@"~
15483 case $lt_outputfile in
15484 *.exe|*.EXE) ;;
15485 *)
15486 lt_outputfile="$lt_outputfile.exe"
15487 lt_tool_outputfile="$lt_tool_outputfile.exe"
15488 ;;
15489 esac~
15490 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15491 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15492 $RM "$lt_outputfile.manifest";
15493 fi'
15494 ;;
15495 *)
15496 # Assume MSVC wrapper
15497 hardcode_libdir_flag_spec=' '
15498 allow_undefined_flag=unsupported
15499 # Tell ltmain to make .lib files, not .a files.
15500 libext=lib
15501 # Tell ltmain to make .dll files, not .so files.
15502 shrext_cmds=".dll"
15503 # FIXME: Setting linknames here is a bad hack.
15504 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15505 # The linker will automatically build a .lib file if we build a DLL.
15506 old_archive_from_new_cmds='true'
15507 # FIXME: Should let the user specify the lib program.
15508 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15509 enable_shared_with_static_runtimes=yes
15510 ;;
15511 esac
15512 ;;
15513
15514 darwin* | rhapsody*)
15515
15516
15517 archive_cmds_need_lc=no
15518 hardcode_direct=no
15519 hardcode_automatic=yes
15520 hardcode_shlibpath_var=unsupported
15521 if test "$lt_cv_ld_force_load" = "yes"; then
15522 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\"`'
15523
15524 else
15525 whole_archive_flag_spec=''
15526 fi
15527 link_all_deplibs=yes
15528 allow_undefined_flag="$_lt_dar_allow_undefined"
15529 case $cc_basename in
15530 ifort*) _lt_dar_can_shared=yes ;;
15531 *) _lt_dar_can_shared=$GCC ;;
15532 esac
15533 if test "$_lt_dar_can_shared" = "yes"; then
15534 output_verbose_link_cmd=func_echo_all
15535 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15536 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15537 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}"
15538 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}"
15539
15540 else
15541 ld_shlibs=no
15542 fi
15543
15544 ;;
15545
15546 dgux*)
15547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_libdir_flag_spec='-L$libdir'
15549 hardcode_shlibpath_var=no
15550 ;;
15551
15552 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15553 # support. Future versions do this automatically, but an explicit c++rt0.o
15554 # does not break anything, and helps significantly (at the cost of a little
15555 # extra space).
15556 freebsd2.2*)
15557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15558 hardcode_libdir_flag_spec='-R$libdir'
15559 hardcode_direct=yes
15560 hardcode_shlibpath_var=no
15561 ;;
15562
15563 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15564 freebsd2.*)
15565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15566 hardcode_direct=yes
15567 hardcode_minus_L=yes
15568 hardcode_shlibpath_var=no
15569 ;;
15570
15571 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15572 freebsd* | dragonfly*)
15573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15574 hardcode_libdir_flag_spec='-R$libdir'
15575 hardcode_direct=yes
15576 hardcode_shlibpath_var=no
15577 ;;
15578
15579 hpux9*)
15580 if test "$GCC" = yes; then
15581 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'
15582 else
15583 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'
15584 fi
15585 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15586 hardcode_libdir_separator=:
15587 hardcode_direct=yes
15588
15589 # hardcode_minus_L: Not really in the search PATH,
15590 # but as the default location of the library.
15591 hardcode_minus_L=yes
15592 export_dynamic_flag_spec='${wl}-E'
15593 ;;
15594
15595 hpux10*)
15596 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15597 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15598 else
15599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15600 fi
15601 if test "$with_gnu_ld" = no; then
15602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15603 hardcode_libdir_separator=:
15604 hardcode_direct=yes
15605 hardcode_direct_absolute=yes
15606 export_dynamic_flag_spec='${wl}-E'
15607 # hardcode_minus_L: Not really in the search PATH,
15608 # but as the default location of the library.
15609 hardcode_minus_L=yes
15610 fi
15611 ;;
15612
15613 hpux11*)
15614 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15615 case $host_cpu in
15616 hppa*64*)
15617 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15618 ;;
15619 ia64*)
15620 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15621 ;;
15622 *)
15623 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624 ;;
15625 esac
15626 else
15627 case $host_cpu in
15628 hppa*64*)
15629 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 ;;
15631 ia64*)
15632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15633 ;;
15634 *)
15635
15636 # Older versions of the 11.00 compiler do not understand -b yet
15637 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15639 $as_echo_n "checking if $CC understands -b... " >&6; }
15640 if ${lt_cv_prog_compiler__b+:} false; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 lt_cv_prog_compiler__b=no
15644 save_LDFLAGS="$LDFLAGS"
15645 LDFLAGS="$LDFLAGS -b"
15646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15648 # The linker can only warn and ignore the option if not recognized
15649 # So say no if there are warnings
15650 if test -s conftest.err; then
15651 # Append any errors to the config.log.
15652 cat conftest.err 1>&5
15653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15655 if diff conftest.exp conftest.er2 >/dev/null; then
15656 lt_cv_prog_compiler__b=yes
15657 fi
15658 else
15659 lt_cv_prog_compiler__b=yes
15660 fi
15661 fi
15662 $RM -r conftest*
15663 LDFLAGS="$save_LDFLAGS"
15664
15665 fi
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15667 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15668
15669 if test x"$lt_cv_prog_compiler__b" = xyes; then
15670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15671 else
15672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15673 fi
15674
15675 ;;
15676 esac
15677 fi
15678 if test "$with_gnu_ld" = no; then
15679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15680 hardcode_libdir_separator=:
15681
15682 case $host_cpu in
15683 hppa*64*|ia64*)
15684 hardcode_direct=no
15685 hardcode_shlibpath_var=no
15686 ;;
15687 *)
15688 hardcode_direct=yes
15689 hardcode_direct_absolute=yes
15690 export_dynamic_flag_spec='${wl}-E'
15691
15692 # hardcode_minus_L: Not really in the search PATH,
15693 # but as the default location of the library.
15694 hardcode_minus_L=yes
15695 ;;
15696 esac
15697 fi
15698 ;;
15699
15700 irix5* | irix6* | nonstopux*)
15701 if test "$GCC" = yes; then
15702 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'
15703 # Try to use the -exported_symbol ld option, if it does not
15704 # work, assume that -exports_file does not work either and
15705 # implicitly export all symbols.
15706 # This should be the same for all languages, so no per-tag cache variable.
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15708 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15709 if ${lt_cv_irix_exported_symbol+:} false; then :
15710 $as_echo_n "(cached) " >&6
15711 else
15712 save_LDFLAGS="$LDFLAGS"
15713 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 int foo (void) { return 0; }
15717 _ACEOF
15718 if ac_fn_c_try_link "$LINENO"; then :
15719 lt_cv_irix_exported_symbol=yes
15720 else
15721 lt_cv_irix_exported_symbol=no
15722 fi
15723 rm -f core conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15725 LDFLAGS="$save_LDFLAGS"
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15728 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15729 if test "$lt_cv_irix_exported_symbol" = yes; then
15730 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'
15731 fi
15732 else
15733 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'
15734 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'
15735 fi
15736 archive_cmds_need_lc='no'
15737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15738 hardcode_libdir_separator=:
15739 inherit_rpath=yes
15740 link_all_deplibs=yes
15741 ;;
15742
15743 netbsd*)
15744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15746 else
15747 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15748 fi
15749 hardcode_libdir_flag_spec='-R$libdir'
15750 hardcode_direct=yes
15751 hardcode_shlibpath_var=no
15752 ;;
15753
15754 newsos6)
15755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_direct=yes
15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758 hardcode_libdir_separator=:
15759 hardcode_shlibpath_var=no
15760 ;;
15761
15762 *nto* | *qnx*)
15763 ;;
15764
15765 openbsd*)
15766 if test -f /usr/libexec/ld.so; then
15767 hardcode_direct=yes
15768 hardcode_shlibpath_var=no
15769 hardcode_direct_absolute=yes
15770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15772 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15774 export_dynamic_flag_spec='${wl}-E'
15775 else
15776 case $host_os in
15777 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15779 hardcode_libdir_flag_spec='-R$libdir'
15780 ;;
15781 *)
15782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15784 ;;
15785 esac
15786 fi
15787 else
15788 ld_shlibs=no
15789 fi
15790 ;;
15791
15792 os2*)
15793 hardcode_libdir_flag_spec='-L$libdir'
15794 hardcode_minus_L=yes
15795 allow_undefined_flag=unsupported
15796 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'
15797 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15798 ;;
15799
15800 osf3*)
15801 if test "$GCC" = yes; then
15802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15803 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'
15804 else
15805 allow_undefined_flag=' -expect_unresolved \*'
15806 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'
15807 fi
15808 archive_cmds_need_lc='no'
15809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15810 hardcode_libdir_separator=:
15811 ;;
15812
15813 osf4* | osf5*) # as osf3* with the addition of -msym flag
15814 if test "$GCC" = yes; then
15815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15816 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'
15817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15818 else
15819 allow_undefined_flag=' -expect_unresolved \*'
15820 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'
15821 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~
15822 $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'
15823
15824 # Both c and cxx compiler support -rpath directly
15825 hardcode_libdir_flag_spec='-rpath $libdir'
15826 fi
15827 archive_cmds_need_lc='no'
15828 hardcode_libdir_separator=:
15829 ;;
15830
15831 solaris*)
15832 no_undefined_flag=' -z defs'
15833 if test "$GCC" = yes; then
15834 wlarc='${wl}'
15835 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15837 $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'
15838 else
15839 case `$CC -V 2>&1` in
15840 *"Compilers 5.0"*)
15841 wlarc=''
15842 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15844 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15845 ;;
15846 *)
15847 wlarc='${wl}'
15848 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15850 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15851 ;;
15852 esac
15853 fi
15854 hardcode_libdir_flag_spec='-R$libdir'
15855 hardcode_shlibpath_var=no
15856 case $host_os in
15857 solaris2.[0-5] | solaris2.[0-5].*) ;;
15858 *)
15859 # The compiler driver will combine and reorder linker options,
15860 # but understands `-z linker_flag'. GCC discards it without `$wl',
15861 # but is careful enough not to reorder.
15862 # Supported since Solaris 2.6 (maybe 2.5.1?)
15863 if test "$GCC" = yes; then
15864 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15865 else
15866 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15867 fi
15868 ;;
15869 esac
15870 link_all_deplibs=yes
15871 ;;
15872
15873 sunos4*)
15874 if test "x$host_vendor" = xsequent; then
15875 # Use $CC to link under sequent, because it throws in some extra .o
15876 # files that make .init and .fini sections work.
15877 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15878 else
15879 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15880 fi
15881 hardcode_libdir_flag_spec='-L$libdir'
15882 hardcode_direct=yes
15883 hardcode_minus_L=yes
15884 hardcode_shlibpath_var=no
15885 ;;
15886
15887 sysv4)
15888 case $host_vendor in
15889 sni)
15890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_direct=yes # is this really true???
15892 ;;
15893 siemens)
15894 ## LD is ld it makes a PLAMLIB
15895 ## CC just makes a GrossModule.
15896 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15897 reload_cmds='$CC -r -o $output$reload_objs'
15898 hardcode_direct=no
15899 ;;
15900 motorola)
15901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15903 ;;
15904 esac
15905 runpath_var='LD_RUN_PATH'
15906 hardcode_shlibpath_var=no
15907 ;;
15908
15909 sysv4.3*)
15910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911 hardcode_shlibpath_var=no
15912 export_dynamic_flag_spec='-Bexport'
15913 ;;
15914
15915 sysv4*MP*)
15916 if test -d /usr/nec; then
15917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 hardcode_shlibpath_var=no
15919 runpath_var=LD_RUN_PATH
15920 hardcode_runpath_var=yes
15921 ld_shlibs=yes
15922 fi
15923 ;;
15924
15925 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15926 no_undefined_flag='${wl}-z,text'
15927 archive_cmds_need_lc=no
15928 hardcode_shlibpath_var=no
15929 runpath_var='LD_RUN_PATH'
15930
15931 if test "$GCC" = yes; then
15932 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15934 else
15935 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15936 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15937 fi
15938 ;;
15939
15940 sysv5* | sco3.2v5* | sco5v6*)
15941 # Note: We can NOT use -z defs as we might desire, because we do not
15942 # link with -lc, and that would cause any symbols used from libc to
15943 # always be unresolved, which means just about no library would
15944 # ever link correctly. If we're not using GNU ld we use -z text
15945 # though, which does catch some bad symbols but isn't as heavy-handed
15946 # as -z defs.
15947 no_undefined_flag='${wl}-z,text'
15948 allow_undefined_flag='${wl}-z,nodefs'
15949 archive_cmds_need_lc=no
15950 hardcode_shlibpath_var=no
15951 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15952 hardcode_libdir_separator=':'
15953 link_all_deplibs=yes
15954 export_dynamic_flag_spec='${wl}-Bexport'
15955 runpath_var='LD_RUN_PATH'
15956
15957 if test "$GCC" = yes; then
15958 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15959 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960 else
15961 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15962 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15963 fi
15964 ;;
15965
15966 uts4*)
15967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968 hardcode_libdir_flag_spec='-L$libdir'
15969 hardcode_shlibpath_var=no
15970 ;;
15971
15972 *)
15973 ld_shlibs=no
15974 ;;
15975 esac
15976
15977 if test x$host_vendor = xsni; then
15978 case $host in
15979 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15980 export_dynamic_flag_spec='${wl}-Blargedynsym'
15981 ;;
15982 esac
15983 fi
15984 fi
15985
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15987 $as_echo "$ld_shlibs" >&6; }
15988 test "$ld_shlibs" = no && can_build_shared=no
15989
15990 with_gnu_ld=$with_gnu_ld
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006 #
16007 # Do we need to explicitly link libc?
16008 #
16009 case "x$archive_cmds_need_lc" in
16010 x|xyes)
16011 # Assume -lc should be added
16012 archive_cmds_need_lc=yes
16013
16014 if test "$enable_shared" = yes && test "$GCC" = yes; then
16015 case $archive_cmds in
16016 *'~'*)
16017 # FIXME: we may have to deal with multi-command sequences.
16018 ;;
16019 '$CC '*)
16020 # Test whether the compiler implicitly links with -lc since on some
16021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16022 # to ld, don't add -lc before -lgcc.
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16024 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16025 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 $RM conftest*
16029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16030
16031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16032 (eval $ac_compile) 2>&5
16033 ac_status=$?
16034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035 test $ac_status = 0; } 2>conftest.err; then
16036 soname=conftest
16037 lib=conftest
16038 libobjs=conftest.$ac_objext
16039 deplibs=
16040 wl=$lt_prog_compiler_wl
16041 pic_flag=$lt_prog_compiler_pic
16042 compiler_flags=-v
16043 linker_flags=-v
16044 verstring=
16045 output_objdir=.
16046 libname=conftest
16047 lt_save_allow_undefined_flag=$allow_undefined_flag
16048 allow_undefined_flag=
16049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16050 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16051 ac_status=$?
16052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16053 test $ac_status = 0; }
16054 then
16055 lt_cv_archive_cmds_need_lc=no
16056 else
16057 lt_cv_archive_cmds_need_lc=yes
16058 fi
16059 allow_undefined_flag=$lt_save_allow_undefined_flag
16060 else
16061 cat conftest.err 1>&5
16062 fi
16063 $RM conftest*
16064
16065 fi
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16067 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16068 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16069 ;;
16070 esac
16071 fi
16072 ;;
16073 esac
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16227 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16228
16229 if test "$GCC" = yes; then
16230 case $host_os in
16231 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16232 *) lt_awk_arg="/^libraries:/" ;;
16233 esac
16234 case $host_os in
16235 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16236 *) lt_sed_strip_eq="s,=/,/,g" ;;
16237 esac
16238 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16239 case $lt_search_path_spec in
16240 *\;*)
16241 # if the path contains ";" then we assume it to be the separator
16242 # otherwise default to the standard path separator (i.e. ":") - it is
16243 # assumed that no part of a normal pathname contains ";" but that should
16244 # okay in the real world where ";" in dirpaths is itself problematic.
16245 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16246 ;;
16247 *)
16248 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16249 ;;
16250 esac
16251 # Ok, now we have the path, separated by spaces, we can step through it
16252 # and add multilib dir if necessary.
16253 lt_tmp_lt_search_path_spec=
16254 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16255 for lt_sys_path in $lt_search_path_spec; do
16256 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16257 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16258 else
16259 test -d "$lt_sys_path" && \
16260 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16261 fi
16262 done
16263 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16264 BEGIN {RS=" "; FS="/|\n";} {
16265 lt_foo="";
16266 lt_count=0;
16267 for (lt_i = NF; lt_i > 0; lt_i--) {
16268 if ($lt_i != "" && $lt_i != ".") {
16269 if ($lt_i == "..") {
16270 lt_count++;
16271 } else {
16272 if (lt_count == 0) {
16273 lt_foo="/" $lt_i lt_foo;
16274 } else {
16275 lt_count--;
16276 }
16277 }
16278 }
16279 }
16280 if (lt_foo != "") { lt_freq[lt_foo]++; }
16281 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16282 }'`
16283 # AWK program above erroneously prepends '/' to C:/dos/paths
16284 # for these hosts.
16285 case $host_os in
16286 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16287 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16288 esac
16289 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16290 else
16291 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16292 fi
16293 library_names_spec=
16294 libname_spec='lib$name'
16295 soname_spec=
16296 shrext_cmds=".so"
16297 postinstall_cmds=
16298 postuninstall_cmds=
16299 finish_cmds=
16300 finish_eval=
16301 shlibpath_var=
16302 shlibpath_overrides_runpath=unknown
16303 version_type=none
16304 dynamic_linker="$host_os ld.so"
16305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16306 need_lib_prefix=unknown
16307 hardcode_into_libs=no
16308
16309 # when you set need_version to no, make sure it does not cause -set_version
16310 # flags to be left without arguments
16311 need_version=unknown
16312
16313 case $host_os in
16314 aix3*)
16315 version_type=linux # correct to gnu/linux during the next big refactor
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16317 shlibpath_var=LIBPATH
16318
16319 # AIX 3 has no versioning support, so we append a major version to the name.
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 ;;
16322
16323 aix[4-9]*)
16324 version_type=linux # correct to gnu/linux during the next big refactor
16325 need_lib_prefix=no
16326 need_version=no
16327 hardcode_into_libs=yes
16328 if test "$host_cpu" = ia64; then
16329 # AIX 5 supports IA64
16330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 else
16333 # With GCC up to 2.95.x, collect2 would create an import file
16334 # for dependence libraries. The import file would start with
16335 # the line `#! .'. This would cause the generated library to
16336 # depend on `.', always an invalid library. This was fixed in
16337 # development snapshots of GCC prior to 3.0.
16338 case $host_os in
16339 aix4 | aix4.[01] | aix4.[01].*)
16340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16341 echo ' yes '
16342 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16343 :
16344 else
16345 can_build_shared=no
16346 fi
16347 ;;
16348 esac
16349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16350 # soname into executable. Probably we can add versioning support to
16351 # collect2, so additional links can be useful in future.
16352 if test "$aix_use_runtimelinking" = yes; then
16353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16354 # instead of lib<name>.a to let people know that these are not
16355 # typical AIX shared libraries.
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 else
16358 # We preserve .a as extension for shared libraries through AIX4.2
16359 # and later when we are not doing run time linking.
16360 library_names_spec='${libname}${release}.a $libname.a'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 fi
16363 shlibpath_var=LIBPATH
16364 fi
16365 ;;
16366
16367 amigaos*)
16368 case $host_cpu in
16369 powerpc)
16370 # Since July 2007 AmigaOS4 officially supports .so libraries.
16371 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 ;;
16374 m68k)
16375 library_names_spec='$libname.ixlibrary $libname.a'
16376 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16377 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'
16378 ;;
16379 esac
16380 ;;
16381
16382 beos*)
16383 library_names_spec='${libname}${shared_ext}'
16384 dynamic_linker="$host_os ld.so"
16385 shlibpath_var=LIBRARY_PATH
16386 ;;
16387
16388 bsdi[45]*)
16389 version_type=linux # correct to gnu/linux during the next big refactor
16390 need_version=no
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16397 # the default ld.so.conf also contains /usr/contrib/lib and
16398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16399 # libtool to hard-code these into programs
16400 ;;
16401
16402 cygwin* | mingw* | pw32* | cegcc*)
16403 version_type=windows
16404 shrext_cmds=".dll"
16405 need_version=no
16406 need_lib_prefix=no
16407
16408 case $GCC,$cc_basename in
16409 yes,*)
16410 # gcc
16411 library_names_spec='$libname.dll.a'
16412 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16413 postinstall_cmds='base_file=`basename \${file}`~
16414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16415 dldir=$destdir/`dirname \$dlpath`~
16416 test -d \$dldir || mkdir -p \$dldir~
16417 $install_prog $dir/$dlname \$dldir/$dlname~
16418 chmod a+x \$dldir/$dlname~
16419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16421 fi'
16422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16423 dlpath=$dir/\$dldll~
16424 $RM \$dlpath'
16425 shlibpath_overrides_runpath=yes
16426
16427 case $host_os in
16428 cygwin*)
16429 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16431
16432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16433 ;;
16434 mingw* | cegcc*)
16435 # MinGW DLLs use traditional 'lib' prefix
16436 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16437 ;;
16438 pw32*)
16439 # pw32 DLLs use 'pw' prefix rather than 'lib'
16440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16441 ;;
16442 esac
16443 dynamic_linker='Win32 ld.exe'
16444 ;;
16445
16446 *,cl*)
16447 # Native MSVC
16448 libname_spec='$name'
16449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16450 library_names_spec='${libname}.dll.lib'
16451
16452 case $build_os in
16453 mingw*)
16454 sys_lib_search_path_spec=
16455 lt_save_ifs=$IFS
16456 IFS=';'
16457 for lt_path in $LIB
16458 do
16459 IFS=$lt_save_ifs
16460 # Let DOS variable expansion print the short 8.3 style file name.
16461 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16462 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16463 done
16464 IFS=$lt_save_ifs
16465 # Convert to MSYS style.
16466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16467 ;;
16468 cygwin*)
16469 # Convert to unix form, then to dos form, then back to unix form
16470 # but this time dos style (no spaces!) so that the unix form looks
16471 # like /cygdrive/c/PROGRA~1:/cygdr...
16472 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16473 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16474 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16475 ;;
16476 *)
16477 sys_lib_search_path_spec="$LIB"
16478 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16479 # It is most probably a Windows format PATH.
16480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16481 else
16482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16483 fi
16484 # FIXME: find the short name or the path components, as spaces are
16485 # common. (e.g. "Program Files" -> "PROGRA~1")
16486 ;;
16487 esac
16488
16489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16490 postinstall_cmds='base_file=`basename \${file}`~
16491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16492 dldir=$destdir/`dirname \$dlpath`~
16493 test -d \$dldir || mkdir -p \$dldir~
16494 $install_prog $dir/$dlname \$dldir/$dlname'
16495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16496 dlpath=$dir/\$dldll~
16497 $RM \$dlpath'
16498 shlibpath_overrides_runpath=yes
16499 dynamic_linker='Win32 link.exe'
16500 ;;
16501
16502 *)
16503 # Assume MSVC wrapper
16504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16505 dynamic_linker='Win32 ld.exe'
16506 ;;
16507 esac
16508 # FIXME: first we should search . and the directory the executable is in
16509 shlibpath_var=PATH
16510 ;;
16511
16512 darwin* | rhapsody*)
16513 dynamic_linker="$host_os dyld"
16514 version_type=darwin
16515 need_lib_prefix=no
16516 need_version=no
16517 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16518 soname_spec='${libname}${release}${major}$shared_ext'
16519 shlibpath_overrides_runpath=yes
16520 shlibpath_var=DYLD_LIBRARY_PATH
16521 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16522
16523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16525 ;;
16526
16527 dgux*)
16528 version_type=linux # correct to gnu/linux during the next big refactor
16529 need_lib_prefix=no
16530 need_version=no
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 ;;
16535
16536 freebsd* | dragonfly*)
16537 # DragonFly does not have aout. When/if they implement a new
16538 # versioning mechanism, adjust this.
16539 if test -x /usr/bin/objformat; then
16540 objformat=`/usr/bin/objformat`
16541 else
16542 case $host_os in
16543 freebsd[23].*) objformat=aout ;;
16544 *) objformat=elf ;;
16545 esac
16546 fi
16547 version_type=freebsd-$objformat
16548 case $version_type in
16549 freebsd-elf*)
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16551 need_version=no
16552 need_lib_prefix=no
16553 ;;
16554 freebsd-*)
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16556 need_version=yes
16557 ;;
16558 esac
16559 shlibpath_var=LD_LIBRARY_PATH
16560 case $host_os in
16561 freebsd2.*)
16562 shlibpath_overrides_runpath=yes
16563 ;;
16564 freebsd3.[01]* | freebsdelf3.[01]*)
16565 shlibpath_overrides_runpath=yes
16566 hardcode_into_libs=yes
16567 ;;
16568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16570 shlibpath_overrides_runpath=no
16571 hardcode_into_libs=yes
16572 ;;
16573 *) # from 4.6 on, and DragonFly
16574 shlibpath_overrides_runpath=yes
16575 hardcode_into_libs=yes
16576 ;;
16577 esac
16578 ;;
16579
16580 gnu*)
16581 version_type=linux # correct to gnu/linux during the next big refactor
16582 need_lib_prefix=no
16583 need_version=no
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=no
16588 hardcode_into_libs=yes
16589 ;;
16590
16591 haiku*)
16592 version_type=linux # correct to gnu/linux during the next big refactor
16593 need_lib_prefix=no
16594 need_version=no
16595 dynamic_linker="$host_os runtime_loader"
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 shlibpath_var=LIBRARY_PATH
16599 shlibpath_overrides_runpath=yes
16600 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16601 hardcode_into_libs=yes
16602 ;;
16603
16604 hpux9* | hpux10* | hpux11*)
16605 # Give a soname corresponding to the major version so that dld.sl refuses to
16606 # link against other versions.
16607 version_type=sunos
16608 need_lib_prefix=no
16609 need_version=no
16610 case $host_cpu in
16611 ia64*)
16612 shrext_cmds='.so'
16613 hardcode_into_libs=yes
16614 dynamic_linker="$host_os dld.so"
16615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618 soname_spec='${libname}${release}${shared_ext}$major'
16619 if test "X$HPUX_IA64_MODE" = X32; then
16620 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16621 else
16622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16623 fi
16624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16625 ;;
16626 hppa*64*)
16627 shrext_cmds='.sl'
16628 hardcode_into_libs=yes
16629 dynamic_linker="$host_os dld.sl"
16630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16633 soname_spec='${libname}${release}${shared_ext}$major'
16634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16636 ;;
16637 *)
16638 shrext_cmds='.sl'
16639 dynamic_linker="$host_os dld.sl"
16640 shlibpath_var=SHLIB_PATH
16641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 ;;
16645 esac
16646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16647 postinstall_cmds='chmod 555 $lib'
16648 # or fails outright, so override atomically:
16649 install_override_mode=555
16650 ;;
16651
16652 interix[3-9]*)
16653 version_type=linux # correct to gnu/linux during the next big refactor
16654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16659 shlibpath_var=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath=no
16661 hardcode_into_libs=yes
16662 ;;
16663
16664 irix5* | irix6* | nonstopux*)
16665 case $host_os in
16666 nonstopux*) version_type=nonstopux ;;
16667 *)
16668 if test "$lt_cv_prog_gnu_ld" = yes; then
16669 version_type=linux # correct to gnu/linux during the next big refactor
16670 else
16671 version_type=irix
16672 fi ;;
16673 esac
16674 need_lib_prefix=no
16675 need_version=no
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16678 case $host_os in
16679 irix5* | nonstopux*)
16680 libsuff= shlibsuff=
16681 ;;
16682 *)
16683 case $LD in # libtool.m4 will add one of these switches to LD
16684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16685 libsuff= shlibsuff= libmagic=32-bit;;
16686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16687 libsuff=32 shlibsuff=N32 libmagic=N32;;
16688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16690 *) libsuff= shlibsuff= libmagic=never-match;;
16691 esac
16692 ;;
16693 esac
16694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16695 shlibpath_overrides_runpath=no
16696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16698 hardcode_into_libs=yes
16699 ;;
16700
16701 # No shared lib support for Linux oldld, aout, or coff.
16702 linux*oldld* | linux*aout* | linux*coff*)
16703 dynamic_linker=no
16704 ;;
16705
16706 # This must be glibc/ELF.
16707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16708 version_type=linux # correct to gnu/linux during the next big refactor
16709 need_lib_prefix=no
16710 need_version=no
16711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=no
16716
16717 # Some binutils ld are patched to set DT_RUNPATH
16718 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16719 $as_echo_n "(cached) " >&6
16720 else
16721 lt_cv_shlibpath_overrides_runpath=no
16722 save_LDFLAGS=$LDFLAGS
16723 save_libdir=$libdir
16724 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16725 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16728
16729 int
16730 main ()
16731 {
16732
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 if ac_fn_c_try_link "$LINENO"; then :
16738 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16739 lt_cv_shlibpath_overrides_runpath=yes
16740 fi
16741 fi
16742 rm -f core conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LDFLAGS=$save_LDFLAGS
16745 libdir=$save_libdir
16746
16747 fi
16748
16749 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16750
16751 # This implies no fast_install, which is unacceptable.
16752 # Some rework will be needed to allow for fast_install
16753 # before this can be enabled.
16754 hardcode_into_libs=yes
16755
16756 # Add ABI-specific directories to the system library path.
16757 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16758
16759 # Append ld.so.conf contents to the search path
16760 if test -f /etc/ld.so.conf; then
16761 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' ' '`
16762 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16763
16764 fi
16765
16766 # We used to test for /lib/ld.so.1 and disable shared libraries on
16767 # powerpc, because MkLinux only supported shared libraries with the
16768 # GNU dynamic linker. Since this was broken with cross compilers,
16769 # most powerpc-linux boxes support dynamic linking these days and
16770 # people can always --disable-shared, the test was removed, and we
16771 # assume the GNU/Linux dynamic linker is in use.
16772 dynamic_linker='GNU/Linux ld.so'
16773 ;;
16774
16775 netbsd*)
16776 version_type=sunos
16777 need_lib_prefix=no
16778 need_version=no
16779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16782 dynamic_linker='NetBSD (a.out) ld.so'
16783 else
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 dynamic_linker='NetBSD ld.elf_so'
16787 fi
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=yes
16790 hardcode_into_libs=yes
16791 ;;
16792
16793 newsos6)
16794 version_type=linux # correct to gnu/linux during the next big refactor
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 shlibpath_overrides_runpath=yes
16798 ;;
16799
16800 *nto* | *qnx*)
16801 version_type=qnx
16802 need_lib_prefix=no
16803 need_version=no
16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805 soname_spec='${libname}${release}${shared_ext}$major'
16806 shlibpath_var=LD_LIBRARY_PATH
16807 shlibpath_overrides_runpath=no
16808 hardcode_into_libs=yes
16809 dynamic_linker='ldqnx.so'
16810 ;;
16811
16812 openbsd*)
16813 version_type=sunos
16814 sys_lib_dlsearch_path_spec="/usr/lib"
16815 need_lib_prefix=no
16816 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16817 case $host_os in
16818 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16819 *) need_version=no ;;
16820 esac
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16823 shlibpath_var=LD_LIBRARY_PATH
16824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16825 case $host_os in
16826 openbsd2.[89] | openbsd2.[89].*)
16827 shlibpath_overrides_runpath=no
16828 ;;
16829 *)
16830 shlibpath_overrides_runpath=yes
16831 ;;
16832 esac
16833 else
16834 shlibpath_overrides_runpath=yes
16835 fi
16836 ;;
16837
16838 os2*)
16839 libname_spec='$name'
16840 shrext_cmds=".dll"
16841 need_lib_prefix=no
16842 library_names_spec='$libname${shared_ext} $libname.a'
16843 dynamic_linker='OS/2 ld.exe'
16844 shlibpath_var=LIBPATH
16845 ;;
16846
16847 osf3* | osf4* | osf5*)
16848 version_type=osf
16849 need_lib_prefix=no
16850 need_version=no
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16855 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16856 ;;
16857
16858 rdos*)
16859 dynamic_linker=no
16860 ;;
16861
16862 solaris*)
16863 version_type=linux # correct to gnu/linux during the next big refactor
16864 need_lib_prefix=no
16865 need_version=no
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867 soname_spec='${libname}${release}${shared_ext}$major'
16868 shlibpath_var=LD_LIBRARY_PATH
16869 shlibpath_overrides_runpath=yes
16870 hardcode_into_libs=yes
16871 # ldd complains unless libraries are executable
16872 postinstall_cmds='chmod +x $lib'
16873 ;;
16874
16875 sunos4*)
16876 version_type=sunos
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16879 shlibpath_var=LD_LIBRARY_PATH
16880 shlibpath_overrides_runpath=yes
16881 if test "$with_gnu_ld" = yes; then
16882 need_lib_prefix=no
16883 fi
16884 need_version=yes
16885 ;;
16886
16887 sysv4 | sysv4.3*)
16888 version_type=linux # correct to gnu/linux during the next big refactor
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 case $host_vendor in
16893 sni)
16894 shlibpath_overrides_runpath=no
16895 need_lib_prefix=no
16896 runpath_var=LD_RUN_PATH
16897 ;;
16898 siemens)
16899 need_lib_prefix=no
16900 ;;
16901 motorola)
16902 need_lib_prefix=no
16903 need_version=no
16904 shlibpath_overrides_runpath=no
16905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16906 ;;
16907 esac
16908 ;;
16909
16910 sysv4*MP*)
16911 if test -d /usr/nec ;then
16912 version_type=linux # correct to gnu/linux during the next big refactor
16913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16914 soname_spec='$libname${shared_ext}.$major'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 fi
16917 ;;
16918
16919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16920 version_type=freebsd-elf
16921 need_lib_prefix=no
16922 need_version=no
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16924 soname_spec='${libname}${release}${shared_ext}$major'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 shlibpath_overrides_runpath=yes
16927 hardcode_into_libs=yes
16928 if test "$with_gnu_ld" = yes; then
16929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16930 else
16931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16932 case $host_os in
16933 sco3.2v5*)
16934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16935 ;;
16936 esac
16937 fi
16938 sys_lib_dlsearch_path_spec='/usr/lib'
16939 ;;
16940
16941 tpf*)
16942 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16943 version_type=linux # correct to gnu/linux during the next big refactor
16944 need_lib_prefix=no
16945 need_version=no
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 shlibpath_var=LD_LIBRARY_PATH
16948 shlibpath_overrides_runpath=no
16949 hardcode_into_libs=yes
16950 ;;
16951
16952 uts4*)
16953 version_type=linux # correct to gnu/linux during the next big refactor
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16955 soname_spec='${libname}${release}${shared_ext}$major'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 ;;
16958
16959 *)
16960 dynamic_linker=no
16961 ;;
16962 esac
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16964 $as_echo "$dynamic_linker" >&6; }
16965 test "$dynamic_linker" = no && can_build_shared=no
16966
16967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16968 if test "$GCC" = yes; then
16969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16970 fi
16971
16972 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16973 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16974 fi
16975 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16976 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16977 fi
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17071 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17072 hardcode_action=
17073 if test -n "$hardcode_libdir_flag_spec" ||
17074 test -n "$runpath_var" ||
17075 test "X$hardcode_automatic" = "Xyes" ; then
17076
17077 # We can hardcode non-existent directories.
17078 if test "$hardcode_direct" != no &&
17079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17080 # have to relink, otherwise we might link with an installed library
17081 # when we should be linking with a yet-to-be-installed one
17082 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17083 test "$hardcode_minus_L" != no; then
17084 # Linking always hardcodes the temporary library directory.
17085 hardcode_action=relink
17086 else
17087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17088 hardcode_action=immediate
17089 fi
17090 else
17091 # We cannot hardcode anything, or else we can only hardcode existing
17092 # directories.
17093 hardcode_action=unsupported
17094 fi
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17096 $as_echo "$hardcode_action" >&6; }
17097
17098 if test "$hardcode_action" = relink ||
17099 test "$inherit_rpath" = yes; then
17100 # Fast installation is not supported
17101 enable_fast_install=no
17102 elif test "$shlibpath_overrides_runpath" = yes ||
17103 test "$enable_shared" = no; then
17104 # Fast installation is not necessary
17105 enable_fast_install=needless
17106 fi
17107
17108
17109
17110
17111
17112
17113 if test "x$enable_dlopen" != xyes; then
17114 enable_dlopen=unknown
17115 enable_dlopen_self=unknown
17116 enable_dlopen_self_static=unknown
17117 else
17118 lt_cv_dlopen=no
17119 lt_cv_dlopen_libs=
17120
17121 case $host_os in
17122 beos*)
17123 lt_cv_dlopen="load_add_on"
17124 lt_cv_dlopen_libs=
17125 lt_cv_dlopen_self=yes
17126 ;;
17127
17128 mingw* | pw32* | cegcc*)
17129 lt_cv_dlopen="LoadLibrary"
17130 lt_cv_dlopen_libs=
17131 ;;
17132
17133 cygwin*)
17134 lt_cv_dlopen="dlopen"
17135 lt_cv_dlopen_libs=
17136 ;;
17137
17138 darwin*)
17139 # if libdl is installed we need to link against it
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17141 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17142 if ${ac_cv_lib_dl_dlopen+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144 else
17145 ac_check_lib_save_LIBS=$LIBS
17146 LIBS="-ldl $LIBS"
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149
17150 /* Override any GCC internal prototype to avoid an error.
17151 Use char because int might match the return type of a GCC
17152 builtin and then its argument prototype would still apply. */
17153 #ifdef __cplusplus
17154 extern "C"
17155 #endif
17156 char dlopen ();
17157 int
17158 main ()
17159 {
17160 return dlopen ();
17161 ;
17162 return 0;
17163 }
17164 _ACEOF
17165 if ac_fn_c_try_link "$LINENO"; then :
17166 ac_cv_lib_dl_dlopen=yes
17167 else
17168 ac_cv_lib_dl_dlopen=no
17169 fi
17170 rm -f core conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
17172 LIBS=$ac_check_lib_save_LIBS
17173 fi
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17175 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17176 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17178 else
17179
17180 lt_cv_dlopen="dyld"
17181 lt_cv_dlopen_libs=
17182 lt_cv_dlopen_self=yes
17183
17184 fi
17185
17186 ;;
17187
17188 *)
17189 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17190 if test "x$ac_cv_func_shl_load" = xyes; then :
17191 lt_cv_dlopen="shl_load"
17192 else
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17194 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17195 if ${ac_cv_lib_dld_shl_load+:} false; then :
17196 $as_echo_n "(cached) " >&6
17197 else
17198 ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-ldld $LIBS"
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17202
17203 /* Override any GCC internal prototype to avoid an error.
17204 Use char because int might match the return type of a GCC
17205 builtin and then its argument prototype would still apply. */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 char shl_load ();
17210 int
17211 main ()
17212 {
17213 return shl_load ();
17214 ;
17215 return 0;
17216 }
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"; then :
17219 ac_cv_lib_dld_shl_load=yes
17220 else
17221 ac_cv_lib_dld_shl_load=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17226 fi
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17228 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17229 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17230 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17231 else
17232 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17233 if test "x$ac_cv_func_dlopen" = xyes; then :
17234 lt_cv_dlopen="dlopen"
17235 else
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17237 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17238 if ${ac_cv_lib_dl_dlopen+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-ldl $LIBS"
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char dlopen ();
17253 int
17254 main ()
17255 {
17256 return dlopen ();
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"; then :
17262 ac_cv_lib_dl_dlopen=yes
17263 else
17264 ac_cv_lib_dl_dlopen=no
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17272 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17274 else
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17276 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17277 if ${ac_cv_lib_svld_dlopen+:} false; then :
17278 $as_echo_n "(cached) " >&6
17279 else
17280 ac_check_lib_save_LIBS=$LIBS
17281 LIBS="-lsvld $LIBS"
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284
17285 /* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17288 #ifdef __cplusplus
17289 extern "C"
17290 #endif
17291 char dlopen ();
17292 int
17293 main ()
17294 {
17295 return dlopen ();
17296 ;
17297 return 0;
17298 }
17299 _ACEOF
17300 if ac_fn_c_try_link "$LINENO"; then :
17301 ac_cv_lib_svld_dlopen=yes
17302 else
17303 ac_cv_lib_svld_dlopen=no
17304 fi
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 LIBS=$ac_check_lib_save_LIBS
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17310 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17311 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17313 else
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17315 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17316 if ${ac_cv_lib_dld_dld_link+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318 else
17319 ac_check_lib_save_LIBS=$LIBS
17320 LIBS="-ldld $LIBS"
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17323
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17327 #ifdef __cplusplus
17328 extern "C"
17329 #endif
17330 char dld_link ();
17331 int
17332 main ()
17333 {
17334 return dld_link ();
17335 ;
17336 return 0;
17337 }
17338 _ACEOF
17339 if ac_fn_c_try_link "$LINENO"; then :
17340 ac_cv_lib_dld_dld_link=yes
17341 else
17342 ac_cv_lib_dld_dld_link=no
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17349 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17350 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17351 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17352 fi
17353
17354
17355 fi
17356
17357
17358 fi
17359
17360
17361 fi
17362
17363
17364 fi
17365
17366
17367 fi
17368
17369 ;;
17370 esac
17371
17372 if test "x$lt_cv_dlopen" != xno; then
17373 enable_dlopen=yes
17374 else
17375 enable_dlopen=no
17376 fi
17377
17378 case $lt_cv_dlopen in
17379 dlopen)
17380 save_CPPFLAGS="$CPPFLAGS"
17381 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17382
17383 save_LDFLAGS="$LDFLAGS"
17384 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17385
17386 save_LIBS="$LIBS"
17387 LIBS="$lt_cv_dlopen_libs $LIBS"
17388
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17390 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17391 if ${lt_cv_dlopen_self+:} false; then :
17392 $as_echo_n "(cached) " >&6
17393 else
17394 if test "$cross_compiling" = yes; then :
17395 lt_cv_dlopen_self=cross
17396 else
17397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17398 lt_status=$lt_dlunknown
17399 cat > conftest.$ac_ext <<_LT_EOF
17400 #line $LINENO "configure"
17401 #include "confdefs.h"
17402
17403 #if HAVE_DLFCN_H
17404 #include <dlfcn.h>
17405 #endif
17406
17407 #include <stdio.h>
17408
17409 #ifdef RTLD_GLOBAL
17410 # define LT_DLGLOBAL RTLD_GLOBAL
17411 #else
17412 # ifdef DL_GLOBAL
17413 # define LT_DLGLOBAL DL_GLOBAL
17414 # else
17415 # define LT_DLGLOBAL 0
17416 # endif
17417 #endif
17418
17419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17420 find out it does not work in some platform. */
17421 #ifndef LT_DLLAZY_OR_NOW
17422 # ifdef RTLD_LAZY
17423 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17424 # else
17425 # ifdef DL_LAZY
17426 # define LT_DLLAZY_OR_NOW DL_LAZY
17427 # else
17428 # ifdef RTLD_NOW
17429 # define LT_DLLAZY_OR_NOW RTLD_NOW
17430 # else
17431 # ifdef DL_NOW
17432 # define LT_DLLAZY_OR_NOW DL_NOW
17433 # else
17434 # define LT_DLLAZY_OR_NOW 0
17435 # endif
17436 # endif
17437 # endif
17438 # endif
17439 #endif
17440
17441 /* When -fvisbility=hidden is used, assume the code has been annotated
17442 correspondingly for the symbols needed. */
17443 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17444 int fnord () __attribute__((visibility("default")));
17445 #endif
17446
17447 int fnord () { return 42; }
17448 int main ()
17449 {
17450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17451 int status = $lt_dlunknown;
17452
17453 if (self)
17454 {
17455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17456 else
17457 {
17458 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17459 else puts (dlerror ());
17460 }
17461 /* dlclose (self); */
17462 }
17463 else
17464 puts (dlerror ());
17465
17466 return status;
17467 }
17468 _LT_EOF
17469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17470 (eval $ac_link) 2>&5
17471 ac_status=$?
17472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17473 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17474 (./conftest; exit; ) >&5 2>/dev/null
17475 lt_status=$?
17476 case x$lt_status in
17477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17479 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17480 esac
17481 else :
17482 # compilation failed
17483 lt_cv_dlopen_self=no
17484 fi
17485 fi
17486 rm -fr conftest*
17487
17488
17489 fi
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17491 $as_echo "$lt_cv_dlopen_self" >&6; }
17492
17493 if test "x$lt_cv_dlopen_self" = xyes; then
17494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17496 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17497 if ${lt_cv_dlopen_self_static+:} false; then :
17498 $as_echo_n "(cached) " >&6
17499 else
17500 if test "$cross_compiling" = yes; then :
17501 lt_cv_dlopen_self_static=cross
17502 else
17503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17504 lt_status=$lt_dlunknown
17505 cat > conftest.$ac_ext <<_LT_EOF
17506 #line $LINENO "configure"
17507 #include "confdefs.h"
17508
17509 #if HAVE_DLFCN_H
17510 #include <dlfcn.h>
17511 #endif
17512
17513 #include <stdio.h>
17514
17515 #ifdef RTLD_GLOBAL
17516 # define LT_DLGLOBAL RTLD_GLOBAL
17517 #else
17518 # ifdef DL_GLOBAL
17519 # define LT_DLGLOBAL DL_GLOBAL
17520 # else
17521 # define LT_DLGLOBAL 0
17522 # endif
17523 #endif
17524
17525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17526 find out it does not work in some platform. */
17527 #ifndef LT_DLLAZY_OR_NOW
17528 # ifdef RTLD_LAZY
17529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17530 # else
17531 # ifdef DL_LAZY
17532 # define LT_DLLAZY_OR_NOW DL_LAZY
17533 # else
17534 # ifdef RTLD_NOW
17535 # define LT_DLLAZY_OR_NOW RTLD_NOW
17536 # else
17537 # ifdef DL_NOW
17538 # define LT_DLLAZY_OR_NOW DL_NOW
17539 # else
17540 # define LT_DLLAZY_OR_NOW 0
17541 # endif
17542 # endif
17543 # endif
17544 # endif
17545 #endif
17546
17547 /* When -fvisbility=hidden is used, assume the code has been annotated
17548 correspondingly for the symbols needed. */
17549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17550 int fnord () __attribute__((visibility("default")));
17551 #endif
17552
17553 int fnord () { return 42; }
17554 int main ()
17555 {
17556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17557 int status = $lt_dlunknown;
17558
17559 if (self)
17560 {
17561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17562 else
17563 {
17564 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17565 else puts (dlerror ());
17566 }
17567 /* dlclose (self); */
17568 }
17569 else
17570 puts (dlerror ());
17571
17572 return status;
17573 }
17574 _LT_EOF
17575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17576 (eval $ac_link) 2>&5
17577 ac_status=$?
17578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17580 (./conftest; exit; ) >&5 2>/dev/null
17581 lt_status=$?
17582 case x$lt_status in
17583 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17584 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17585 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17586 esac
17587 else :
17588 # compilation failed
17589 lt_cv_dlopen_self_static=no
17590 fi
17591 fi
17592 rm -fr conftest*
17593
17594
17595 fi
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17597 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17598 fi
17599
17600 CPPFLAGS="$save_CPPFLAGS"
17601 LDFLAGS="$save_LDFLAGS"
17602 LIBS="$save_LIBS"
17603 ;;
17604 esac
17605
17606 case $lt_cv_dlopen_self in
17607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17608 *) enable_dlopen_self=unknown ;;
17609 esac
17610
17611 case $lt_cv_dlopen_self_static in
17612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17613 *) enable_dlopen_self_static=unknown ;;
17614 esac
17615 fi
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633 striplib=
17634 old_striplib=
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17636 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17637 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17638 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17639 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17641 $as_echo "yes" >&6; }
17642 else
17643 # FIXME - insert some real tests, host_os isn't really good enough
17644 case $host_os in
17645 darwin*)
17646 if test -n "$STRIP" ; then
17647 striplib="$STRIP -x"
17648 old_striplib="$STRIP -S"
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17650 $as_echo "yes" >&6; }
17651 else
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17653 $as_echo "no" >&6; }
17654 fi
17655 ;;
17656 *)
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17658 $as_echo "no" >&6; }
17659 ;;
17660 esac
17661 fi
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674 # Report which library types will actually be built
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17676 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17678 $as_echo "$can_build_shared" >&6; }
17679
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17681 $as_echo_n "checking whether to build shared libraries... " >&6; }
17682 test "$can_build_shared" = "no" && enable_shared=no
17683
17684 # On AIX, shared libraries and static libraries use the same namespace, and
17685 # are all built from PIC.
17686 case $host_os in
17687 aix3*)
17688 test "$enable_shared" = yes && enable_static=no
17689 if test -n "$RANLIB"; then
17690 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17691 postinstall_cmds='$RANLIB $lib'
17692 fi
17693 ;;
17694
17695 aix[4-9]*)
17696 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17697 test "$enable_shared" = yes && enable_static=no
17698 fi
17699 ;;
17700 esac
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17702 $as_echo "$enable_shared" >&6; }
17703
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17705 $as_echo_n "checking whether to build static libraries... " >&6; }
17706 # Make sure either enable_shared or enable_static is yes.
17707 test "$enable_shared" = yes || enable_static=yes
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17709 $as_echo "$enable_static" >&6; }
17710
17711
17712
17713
17714 fi
17715 ac_ext=c
17716 ac_cpp='$CPP $CPPFLAGS'
17717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17720
17721 CC="$lt_save_CC"
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737 ac_config_commands="$ac_config_commands libtool"
17738
17739
17740
17741
17742 # Only expand once:
17743
17744
17745
17746
17747
17748 # Define a configure option for an alternate module directory
17749
17750 # Check whether --with-xorg-module-dir was given.
17751 if test "${with_xorg_module_dir+set}" = set; then :
17752 withval=$with_xorg_module_dir; moduledir="$withval"
17753 else
17754 moduledir="$libdir/xorg/modules"
17755 fi
17756
17757
17758 # Store the list of server defined optional extensions in REQUIRED_MODULES
17759
17760
17761 SAVE_CFLAGS="$CFLAGS"
17762 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17765
17766 #include "xorg-server.h"
17767 #if !defined RANDR
17768 #error RANDR not defined
17769 #endif
17770
17771 int
17772 main ()
17773 {
17774
17775 ;
17776 return 0;
17777 }
17778 _ACEOF
17779 if ac_fn_c_try_compile "$LINENO"; then :
17780 _EXT_CHECK=yes
17781 else
17782 _EXT_CHECK=no
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 CFLAGS="$SAVE_CFLAGS"
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17787 $as_echo_n "checking if RANDR is defined... " >&6; }
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17789 $as_echo "$_EXT_CHECK" >&6; }
17790 if test "$_EXT_CHECK" != no; then
17791 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17792 fi
17793
17794
17795
17796 SAVE_CFLAGS="$CFLAGS"
17797 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800
17801 #include "xorg-server.h"
17802 #if !defined RENDER
17803 #error RENDER not defined
17804 #endif
17805
17806 int
17807 main ()
17808 {
17809
17810 ;
17811 return 0;
17812 }
17813 _ACEOF
17814 if ac_fn_c_try_compile "$LINENO"; then :
17815 _EXT_CHECK=yes
17816 else
17817 _EXT_CHECK=no
17818 fi
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 CFLAGS="$SAVE_CFLAGS"
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17822 $as_echo_n "checking if RENDER is defined... " >&6; }
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17824 $as_echo "$_EXT_CHECK" >&6; }
17825 if test "$_EXT_CHECK" != no; then
17826 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17827 fi
17828
17829
17830
17831 SAVE_CFLAGS="$CFLAGS"
17832 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17835
17836 #include "xorg-server.h"
17837 #if !defined XV
17838 #error XV not defined
17839 #endif
17840
17841 int
17842 main ()
17843 {
17844
17845 ;
17846 return 0;
17847 }
17848 _ACEOF
17849 if ac_fn_c_try_compile "$LINENO"; then :
17850 _EXT_CHECK=yes
17851 else
17852 _EXT_CHECK=no
17853 fi
17854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855 CFLAGS="$SAVE_CFLAGS"
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17857 $as_echo_n "checking if XV is defined... " >&6; }
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17859 $as_echo "$_EXT_CHECK" >&6; }
17860 if test "$_EXT_CHECK" != no; then
17861 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17862 fi
17863
17864
17865
17866 SAVE_CFLAGS="$CFLAGS"
17867 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870
17871 #include "xorg-server.h"
17872 #if !defined DPMSExtension
17873 #error DPMSExtension not defined
17874 #endif
17875
17876 int
17877 main ()
17878 {
17879
17880 ;
17881 return 0;
17882 }
17883 _ACEOF
17884 if ac_fn_c_try_compile "$LINENO"; then :
17885 _EXT_CHECK=yes
17886 else
17887 _EXT_CHECK=no
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17890 CFLAGS="$SAVE_CFLAGS"
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17892 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17894 $as_echo "$_EXT_CHECK" >&6; }
17895 if test "$_EXT_CHECK" != no; then
17896 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17897 fi
17898
17899
17900 # Obtain compiler/linker options for the driver dependencies
17901
17902 pkg_failed=no
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17904 $as_echo_n "checking for XORG... " >&6; }
17905
17906 if test -n "$XORG_CFLAGS"; then
17907 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17908 elif test -n "$PKG_CONFIG"; then
17909 if test -n "$PKG_CONFIG" && \
17910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17911 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17912 ac_status=$?
17913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17914 test $ac_status = 0; }; then
17915 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17916 else
17917 pkg_failed=yes
17918 fi
17919 else
17920 pkg_failed=untried
17921 fi
17922 if test -n "$XORG_LIBS"; then
17923 pkg_cv_XORG_LIBS="$XORG_LIBS"
17924 elif test -n "$PKG_CONFIG"; then
17925 if test -n "$PKG_CONFIG" && \
17926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17927 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17928 ac_status=$?
17929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17930 test $ac_status = 0; }; then
17931 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17932 else
17933 pkg_failed=yes
17934 fi
17935 else
17936 pkg_failed=untried
17937 fi
17938
17939
17940
17941 if test $pkg_failed = yes; then
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17943 $as_echo "no" >&6; }
17944
17945 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17946 _pkg_short_errors_supported=yes
17947 else
17948 _pkg_short_errors_supported=no
17949 fi
17950 if test $_pkg_short_errors_supported = yes; then
17951 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17952 else
17953 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17954 fi
17955 # Put the nasty error message in config.log where it belongs
17956 echo "$XORG_PKG_ERRORS" >&5
17957
17958 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17959
17960 $XORG_PKG_ERRORS
17961
17962 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17963 installed software in a non-standard prefix.
17964
17965 Alternatively, you may set the environment variables XORG_CFLAGS
17966 and XORG_LIBS to avoid the need to call pkg-config.
17967 See the pkg-config man page for more details." "$LINENO" 5
17968
17969 elif test $pkg_failed = untried; then
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17971 $as_echo "no" >&6; }
17972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17974 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17975 is in your PATH or set the PKG_CONFIG environment variable to the full
17976 path to pkg-config.
17977
17978 Alternatively, you may set the environment variables XORG_CFLAGS
17979 and XORG_LIBS to avoid the need to call pkg-config.
17980 See the pkg-config man page for more details.
17981
17982 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17983 See \`config.log' for more details" "$LINENO" 5; }
17984
17985 else
17986 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17987 XORG_LIBS=$pkg_cv_XORG_LIBS
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17989 $as_echo "yes" >&6; }
17990
17991 fi
17992
17993 # Checks for libraries.
17994 SAVE_CPPFLAGS="$CPPFLAGS"
17995 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17996 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17997 "
17998 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17999 XSERVER_LIBPCIACCESS=yes
18000 else
18001 XSERVER_LIBPCIACCESS=no
18002 fi
18003
18004 ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18005 if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18006
18007 $as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18008
18009 fi
18010
18011
18012 ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18013 if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18014
18015 $as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18016
18017 fi
18018
18019
18020 CPPFLAGS="$SAVE_CPPFLAGS"
18021
18022 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18023
18024 pkg_failed=no
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18026 $as_echo_n "checking for PCIACCESS... " >&6; }
18027
18028 if test -n "$PCIACCESS_CFLAGS"; then
18029 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18030 elif test -n "$PKG_CONFIG"; then
18031 if test -n "$PKG_CONFIG" && \
18032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18033 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18034 ac_status=$?
18035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18036 test $ac_status = 0; }; then
18037 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18038 else
18039 pkg_failed=yes
18040 fi
18041 else
18042 pkg_failed=untried
18043 fi
18044 if test -n "$PCIACCESS_LIBS"; then
18045 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18046 elif test -n "$PKG_CONFIG"; then
18047 if test -n "$PKG_CONFIG" && \
18048 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18049 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18050 ac_status=$?
18051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18052 test $ac_status = 0; }; then
18053 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18054 else
18055 pkg_failed=yes
18056 fi
18057 else
18058 pkg_failed=untried
18059 fi
18060
18061
18062
18063 if test $pkg_failed = yes; then
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18065 $as_echo "no" >&6; }
18066
18067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18068 _pkg_short_errors_supported=yes
18069 else
18070 _pkg_short_errors_supported=no
18071 fi
18072 if test $_pkg_short_errors_supported = yes; then
18073 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18074 else
18075 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18076 fi
18077 # Put the nasty error message in config.log where it belongs
18078 echo "$PCIACCESS_PKG_ERRORS" >&5
18079
18080 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18081
18082 $PCIACCESS_PKG_ERRORS
18083
18084 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18085 installed software in a non-standard prefix.
18086
18087 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18088 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18089 See the pkg-config man page for more details." "$LINENO" 5
18090
18091 elif test $pkg_failed = untried; then
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18093 $as_echo "no" >&6; }
18094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18096 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18097 is in your PATH or set the PKG_CONFIG environment variable to the full
18098 path to pkg-config.
18099
18100 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18101 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18102 See the pkg-config man page for more details.
18103
18104 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18105 See \`config.log' for more details" "$LINENO" 5; }
18106
18107 else
18108 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18109 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18111 $as_echo "yes" >&6; }
18112
18113 fi
18114 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18115 fi
18116 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18117 XSERVER_LIBPCIACCESS_TRUE=
18118 XSERVER_LIBPCIACCESS_FALSE='#'
18119 else
18120 XSERVER_LIBPCIACCESS_TRUE='#'
18121 XSERVER_LIBPCIACCESS_FALSE=
18122 fi
18123
18124 # Check whether --enable-xaa was given.
18125 if test "${enable_xaa+set}" = set; then :
18126 enableval=$enable_xaa; XAA="$enableval"
18127 else
18128 XAA=auto
18129 fi
18130
18131 if test "x$XAA" != xno; then
18132 save_CFLAGS=$CFLAGS
18133 save_CPPFLAGS=$CPPFLAGS
18134 CFLAGS=$XORG_CFLAGS
18135 CPPFLAGS="$XORG_CFLAGS"
18136 for ac_header in xaa.h
18137 do :
18138 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18139 if test "x$ac_cv_header_xaa_h" = xyes; then :
18140 cat >>confdefs.h <<_ACEOF
18141 #define HAVE_XAA_H 1
18142 _ACEOF
18143 XAA=yes
18144 else
18145 XAA=no
18146 fi
18147
18148 done
18149
18150 CFLAGS=$save_CFLAGS
18151 CPPFLAGS=$save_CPPFLAGS
18152 fi
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18154 $as_echo_n "checking whether to include XAA support... " >&6; }
18155 if test "x$XAA" = xyes; then
18156 XAA_TRUE=
18157 XAA_FALSE='#'
18158 else
18159 XAA_TRUE='#'
18160 XAA_FALSE=
18161 fi
18162
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18164 $as_echo "$XAA" >&6; }
18165
18166 save_CFLAGS="$CFLAGS"
18167 CFLAGS="$XORG_CFLAGS"
18168 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18169 "
18170 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18171
18172 $as_echo "#define HAVE_ISA 1" >>confdefs.h
18173
18174 fi
18175
18176 CFLAGS="$save_CFLAGS"
18177
18178
18179 # Checks for functions (often defined as inlines in compiler.h)
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb" >&5
18181 $as_echo_n "checking for inb... " >&6; }
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18184
18185 #include "util/AsmMacros.h"
18186
18187 int main() {
18188 int x = inb(0);
18189 return x;
18190 }
18191
18192 _ACEOF
18193 if ac_fn_c_try_link "$LINENO"; then :
18194 HAVE_INB=yes
18195 else
18196 HAVE_INB=no
18197 fi
18198 rm -f core conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_INB" >&5
18201 $as_echo "$HAVE_INB" >&6; }
18202 if test x$HAVE_INB = xyes; then
18203 BUILD_UTILS_TRUE=
18204 BUILD_UTILS_FALSE='#'
18205 else
18206 BUILD_UTILS_TRUE='#'
18207 BUILD_UTILS_FALSE=
18208 fi
18209
18210
18211
18212
18213 DRIVER_NAME=chips
18214
18215
18216 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
18217
18218 cat >confcache <<\_ACEOF
18219 # This file is a shell script that caches the results of configure
18220 # tests run on this system so they can be shared between configure
18221 # scripts and configure runs, see configure's option --config-cache.
18222 # It is not useful on other systems. If it contains results you don't
18223 # want to keep, you may remove or edit it.
18224 #
18225 # config.status only pays attention to the cache file if you give it
18226 # the --recheck option to rerun configure.
18227 #
18228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18230 # following values.
18231
18232 _ACEOF
18233
18234 # The following way of writing the cache mishandles newlines in values,
18235 # but we know of no workaround that is simple, portable, and efficient.
18236 # So, we kill variables containing newlines.
18237 # Ultrix sh set writes to stderr and can't be redirected directly,
18238 # and sets the high bit in the cache file unless we assign to the vars.
18239 (
18240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18241 eval ac_val=\$$ac_var
18242 case $ac_val in #(
18243 *${as_nl}*)
18244 case $ac_var in #(
18245 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18247 esac
18248 case $ac_var in #(
18249 _ | IFS | as_nl) ;; #(
18250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18251 *) { eval $ac_var=; unset $ac_var;} ;;
18252 esac ;;
18253 esac
18254 done
18255
18256 (set) 2>&1 |
18257 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18258 *${as_nl}ac_space=\ *)
18259 # `set' does not quote correctly, so add quotes: double-quote
18260 # substitution turns \\\\ into \\, and sed turns \\ into \.
18261 sed -n \
18262 "s/'/'\\\\''/g;
18263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18264 ;; #(
18265 *)
18266 # `set' quotes correctly as required by POSIX, so do not add quotes.
18267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18268 ;;
18269 esac |
18270 sort
18271 ) |
18272 sed '
18273 /^ac_cv_env_/b end
18274 t clear
18275 :clear
18276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18277 t end
18278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18279 :end' >>confcache
18280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18281 if test -w "$cache_file"; then
18282 if test "x$cache_file" != "x/dev/null"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18284 $as_echo "$as_me: updating cache $cache_file" >&6;}
18285 if test ! -f "$cache_file" || test -h "$cache_file"; then
18286 cat confcache >"$cache_file"
18287 else
18288 case $cache_file in #(
18289 */* | ?:*)
18290 mv -f confcache "$cache_file"$$ &&
18291 mv -f "$cache_file"$$ "$cache_file" ;; #(
18292 *)
18293 mv -f confcache "$cache_file" ;;
18294 esac
18295 fi
18296 fi
18297 else
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18299 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18300 fi
18301 fi
18302 rm -f confcache
18303
18304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18305 # Let make expand exec_prefix.
18306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18307
18308 DEFS=-DHAVE_CONFIG_H
18309
18310 ac_libobjs=
18311 ac_ltlibobjs=
18312 U=
18313 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18314 # 1. Remove the extension, and $U if already installed.
18315 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18316 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18317 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18318 # will be set to the directory where LIBOBJS objects are built.
18319 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18320 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18321 done
18322 LIBOBJS=$ac_libobjs
18323
18324 LTLIBOBJS=$ac_ltlibobjs
18325
18326
18327 if test -n "$EXEEXT"; then
18328 am__EXEEXT_TRUE=
18329 am__EXEEXT_FALSE='#'
18330 else
18331 am__EXEEXT_TRUE='#'
18332 am__EXEEXT_FALSE=
18333 fi
18334
18335 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18336 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18338 fi
18339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18340 as_fn_error $? "conditional \"AMDEP\" was never defined.
18341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18342 fi
18343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18346 fi
18347 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18348 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18350 fi
18351 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18352 as_fn_error $? "conditional \"XAA\" was never defined.
18353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18354 fi
18355 if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then
18356 as_fn_error $? "conditional \"BUILD_UTILS\" was never defined.
18357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18358 fi
18359
18360 : "${CONFIG_STATUS=./config.status}"
18361 ac_write_fail=0
18362 ac_clean_files_save=$ac_clean_files
18363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18365 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18366 as_write_fail=0
18367 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18368 #! $SHELL
18369 # Generated by $as_me.
18370 # Run this file to recreate the current configuration.
18371 # Compiler output produced by configure, useful for debugging
18372 # configure, is in config.log if it exists.
18373
18374 debug=false
18375 ac_cs_recheck=false
18376 ac_cs_silent=false
18377
18378 SHELL=\${CONFIG_SHELL-$SHELL}
18379 export SHELL
18380 _ASEOF
18381 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18382 ## -------------------- ##
18383 ## M4sh Initialization. ##
18384 ## -------------------- ##
18385
18386 # Be more Bourne compatible
18387 DUALCASE=1; export DUALCASE # for MKS sh
18388 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18389 emulate sh
18390 NULLCMD=:
18391 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18392 # is contrary to our usage. Disable this feature.
18393 alias -g '${1+"$@"}'='"$@"'
18394 setopt NO_GLOB_SUBST
18395 else
18396 case `(set -o) 2>/dev/null` in #(
18397 *posix*) :
18398 set -o posix ;; #(
18399 *) :
18400 ;;
18401 esac
18402 fi
18403
18404
18405 as_nl='
18406 '
18407 export as_nl
18408 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18409 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18410 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18412 # Prefer a ksh shell builtin over an external printf program on Solaris,
18413 # but without wasting forks for bash or zsh.
18414 if test -z "$BASH_VERSION$ZSH_VERSION" \
18415 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18416 as_echo='print -r --'
18417 as_echo_n='print -rn --'
18418 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18419 as_echo='printf %s\n'
18420 as_echo_n='printf %s'
18421 else
18422 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18423 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18424 as_echo_n='/usr/ucb/echo -n'
18425 else
18426 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18427 as_echo_n_body='eval
18428 arg=$1;
18429 case $arg in #(
18430 *"$as_nl"*)
18431 expr "X$arg" : "X\\(.*\\)$as_nl";
18432 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18433 esac;
18434 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18435 '
18436 export as_echo_n_body
18437 as_echo_n='sh -c $as_echo_n_body as_echo'
18438 fi
18439 export as_echo_body
18440 as_echo='sh -c $as_echo_body as_echo'
18441 fi
18442
18443 # The user is always right.
18444 if test "${PATH_SEPARATOR+set}" != set; then
18445 PATH_SEPARATOR=:
18446 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18447 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18448 PATH_SEPARATOR=';'
18449 }
18450 fi
18451
18452
18453 # IFS
18454 # We need space, tab and new line, in precisely that order. Quoting is
18455 # there to prevent editors from complaining about space-tab.
18456 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18457 # splitting by setting IFS to empty value.)
18458 IFS=" "" $as_nl"
18459
18460 # Find who we are. Look in the path if we contain no directory separator.
18461 as_myself=
18462 case $0 in #((
18463 *[\\/]* ) as_myself=$0 ;;
18464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18465 for as_dir in $PATH
18466 do
18467 IFS=$as_save_IFS
18468 test -z "$as_dir" && as_dir=.
18469 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18470 done
18471 IFS=$as_save_IFS
18472
18473 ;;
18474 esac
18475 # We did not find ourselves, most probably we were run as `sh COMMAND'
18476 # in which case we are not to be found in the path.
18477 if test "x$as_myself" = x; then
18478 as_myself=$0
18479 fi
18480 if test ! -f "$as_myself"; then
18481 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18482 exit 1
18483 fi
18484
18485 # Unset variables that we do not need and which cause bugs (e.g. in
18486 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18487 # suppresses any "Segmentation fault" message there. '((' could
18488 # trigger a bug in pdksh 5.2.14.
18489 for as_var in BASH_ENV ENV MAIL MAILPATH
18490 do eval test x\${$as_var+set} = xset \
18491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18492 done
18493 PS1='$ '
18494 PS2='> '
18495 PS4='+ '
18496
18497 # NLS nuisances.
18498 LC_ALL=C
18499 export LC_ALL
18500 LANGUAGE=C
18501 export LANGUAGE
18502
18503 # CDPATH.
18504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18505
18506
18507 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18508 # ----------------------------------------
18509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18511 # script with STATUS, using 1 if that was 0.
18512 as_fn_error ()
18513 {
18514 as_status=$1; test $as_status -eq 0 && as_status=1
18515 if test "$4"; then
18516 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18517 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18518 fi
18519 $as_echo "$as_me: error: $2" >&2
18520 as_fn_exit $as_status
18521 } # as_fn_error
18522
18523
18524 # as_fn_set_status STATUS
18525 # -----------------------
18526 # Set $? to STATUS, without forking.
18527 as_fn_set_status ()
18528 {
18529 return $1
18530 } # as_fn_set_status
18531
18532 # as_fn_exit STATUS
18533 # -----------------
18534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18535 as_fn_exit ()
18536 {
18537 set +e
18538 as_fn_set_status $1
18539 exit $1
18540 } # as_fn_exit
18541
18542 # as_fn_unset VAR
18543 # ---------------
18544 # Portably unset VAR.
18545 as_fn_unset ()
18546 {
18547 { eval $1=; unset $1;}
18548 }
18549 as_unset=as_fn_unset
18550 # as_fn_append VAR VALUE
18551 # ----------------------
18552 # Append the text in VALUE to the end of the definition contained in VAR. Take
18553 # advantage of any shell optimizations that allow amortized linear growth over
18554 # repeated appends, instead of the typical quadratic growth present in naive
18555 # implementations.
18556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18557 eval 'as_fn_append ()
18558 {
18559 eval $1+=\$2
18560 }'
18561 else
18562 as_fn_append ()
18563 {
18564 eval $1=\$$1\$2
18565 }
18566 fi # as_fn_append
18567
18568 # as_fn_arith ARG...
18569 # ------------------
18570 # Perform arithmetic evaluation on the ARGs, and store the result in the
18571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18572 # must be portable across $(()) and expr.
18573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18574 eval 'as_fn_arith ()
18575 {
18576 as_val=$(( $* ))
18577 }'
18578 else
18579 as_fn_arith ()
18580 {
18581 as_val=`expr "$@" || test $? -eq 1`
18582 }
18583 fi # as_fn_arith
18584
18585
18586 if expr a : '\(a\)' >/dev/null 2>&1 &&
18587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18588 as_expr=expr
18589 else
18590 as_expr=false
18591 fi
18592
18593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18594 as_basename=basename
18595 else
18596 as_basename=false
18597 fi
18598
18599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18600 as_dirname=dirname
18601 else
18602 as_dirname=false
18603 fi
18604
18605 as_me=`$as_basename -- "$0" ||
18606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18607 X"$0" : 'X\(//\)$' \| \
18608 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18609 $as_echo X/"$0" |
18610 sed '/^.*\/\([^/][^/]*\)\/*$/{
18611 s//\1/
18612 q
18613 }
18614 /^X\/\(\/\/\)$/{
18615 s//\1/
18616 q
18617 }
18618 /^X\/\(\/\).*/{
18619 s//\1/
18620 q
18621 }
18622 s/.*/./; q'`
18623
18624 # Avoid depending upon Character Ranges.
18625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18628 as_cr_digits='0123456789'
18629 as_cr_alnum=$as_cr_Letters$as_cr_digits
18630
18631 ECHO_C= ECHO_N= ECHO_T=
18632 case `echo -n x` in #(((((
18633 -n*)
18634 case `echo 'xy\c'` in
18635 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18636 xy) ECHO_C='\c';;
18637 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18638 ECHO_T=' ';;
18639 esac;;
18640 *)
18641 ECHO_N='-n';;
18642 esac
18643
18644 rm -f conf$$ conf$$.exe conf$$.file
18645 if test -d conf$$.dir; then
18646 rm -f conf$$.dir/conf$$.file
18647 else
18648 rm -f conf$$.dir
18649 mkdir conf$$.dir 2>/dev/null
18650 fi
18651 if (echo >conf$$.file) 2>/dev/null; then
18652 if ln -s conf$$.file conf$$ 2>/dev/null; then
18653 as_ln_s='ln -s'
18654 # ... but there are two gotchas:
18655 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18656 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18657 # In both cases, we have to default to `cp -p'.
18658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18659 as_ln_s='cp -p'
18660 elif ln conf$$.file conf$$ 2>/dev/null; then
18661 as_ln_s=ln
18662 else
18663 as_ln_s='cp -p'
18664 fi
18665 else
18666 as_ln_s='cp -p'
18667 fi
18668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18669 rmdir conf$$.dir 2>/dev/null
18670
18671
18672 # as_fn_mkdir_p
18673 # -------------
18674 # Create "$as_dir" as a directory, including parents if necessary.
18675 as_fn_mkdir_p ()
18676 {
18677
18678 case $as_dir in #(
18679 -*) as_dir=./$as_dir;;
18680 esac
18681 test -d "$as_dir" || eval $as_mkdir_p || {
18682 as_dirs=
18683 while :; do
18684 case $as_dir in #(
18685 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18686 *) as_qdir=$as_dir;;
18687 esac
18688 as_dirs="'$as_qdir' $as_dirs"
18689 as_dir=`$as_dirname -- "$as_dir" ||
18690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18691 X"$as_dir" : 'X\(//\)[^/]' \| \
18692 X"$as_dir" : 'X\(//\)$' \| \
18693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18694 $as_echo X"$as_dir" |
18695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18696 s//\1/
18697 q
18698 }
18699 /^X\(\/\/\)[^/].*/{
18700 s//\1/
18701 q
18702 }
18703 /^X\(\/\/\)$/{
18704 s//\1/
18705 q
18706 }
18707 /^X\(\/\).*/{
18708 s//\1/
18709 q
18710 }
18711 s/.*/./; q'`
18712 test -d "$as_dir" && break
18713 done
18714 test -z "$as_dirs" || eval "mkdir $as_dirs"
18715 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18716
18717
18718 } # as_fn_mkdir_p
18719 if mkdir -p . 2>/dev/null; then
18720 as_mkdir_p='mkdir -p "$as_dir"'
18721 else
18722 test -d ./-p && rmdir ./-p
18723 as_mkdir_p=false
18724 fi
18725
18726 if test -x / >/dev/null 2>&1; then
18727 as_test_x='test -x'
18728 else
18729 if ls -dL / >/dev/null 2>&1; then
18730 as_ls_L_option=L
18731 else
18732 as_ls_L_option=
18733 fi
18734 as_test_x='
18735 eval sh -c '\''
18736 if test -d "$1"; then
18737 test -d "$1/.";
18738 else
18739 case $1 in #(
18740 -*)set "./$1";;
18741 esac;
18742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18743 ???[sx]*):;;*)false;;esac;fi
18744 '\'' sh
18745 '
18746 fi
18747 as_executable_p=$as_test_x
18748
18749 # Sed expression to map a string onto a valid CPP name.
18750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18751
18752 # Sed expression to map a string onto a valid variable name.
18753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18754
18755
18756 exec 6>&1
18757 ## ----------------------------------- ##
18758 ## Main body of $CONFIG_STATUS script. ##
18759 ## ----------------------------------- ##
18760 _ASEOF
18761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18762
18763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18764 # Save the log message, to keep $0 and so on meaningful, and to
18765 # report actual input values of CONFIG_FILES etc. instead of their
18766 # values after options handling.
18767 ac_log="
18768 This file was extended by xf86-video-chips $as_me 1.2.5, which was
18769 generated by GNU Autoconf 2.68. Invocation command line was
18770
18771 CONFIG_FILES = $CONFIG_FILES
18772 CONFIG_HEADERS = $CONFIG_HEADERS
18773 CONFIG_LINKS = $CONFIG_LINKS
18774 CONFIG_COMMANDS = $CONFIG_COMMANDS
18775 $ $0 $@
18776
18777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18778 "
18779
18780 _ACEOF
18781
18782 case $ac_config_files in *"
18783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18784 esac
18785
18786 case $ac_config_headers in *"
18787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18788 esac
18789
18790
18791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18792 # Files that config.status was made for.
18793 config_files="$ac_config_files"
18794 config_headers="$ac_config_headers"
18795 config_commands="$ac_config_commands"
18796
18797 _ACEOF
18798
18799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18800 ac_cs_usage="\
18801 \`$as_me' instantiates files and other configuration actions
18802 from templates according to the current configuration. Unless the files
18803 and actions are specified as TAGs, all are instantiated by default.
18804
18805 Usage: $0 [OPTION]... [TAG]...
18806
18807 -h, --help print this help, then exit
18808 -V, --version print version number and configuration settings, then exit
18809 --config print configuration, then exit
18810 -q, --quiet, --silent
18811 do not print progress messages
18812 -d, --debug don't remove temporary files
18813 --recheck update $as_me by reconfiguring in the same conditions
18814 --file=FILE[:TEMPLATE]
18815 instantiate the configuration file FILE
18816 --header=FILE[:TEMPLATE]
18817 instantiate the configuration header FILE
18818
18819 Configuration files:
18820 $config_files
18821
18822 Configuration headers:
18823 $config_headers
18824
18825 Configuration commands:
18826 $config_commands
18827
18828 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18829
18830 _ACEOF
18831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18832 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18833 ac_cs_version="\\
18834 xf86-video-chips config.status 1.2.5
18835 configured by $0, generated by GNU Autoconf 2.68,
18836 with options \\"\$ac_cs_config\\"
18837
18838 Copyright (C) 2010 Free Software Foundation, Inc.
18839 This config.status script is free software; the Free Software Foundation
18840 gives unlimited permission to copy, distribute and modify it."
18841
18842 ac_pwd='$ac_pwd'
18843 srcdir='$srcdir'
18844 INSTALL='$INSTALL'
18845 MKDIR_P='$MKDIR_P'
18846 AWK='$AWK'
18847 test -n "\$AWK" || AWK=awk
18848 _ACEOF
18849
18850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18851 # The default lists apply if the user does not specify any file.
18852 ac_need_defaults=:
18853 while test $# != 0
18854 do
18855 case $1 in
18856 --*=?*)
18857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18858 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18859 ac_shift=:
18860 ;;
18861 --*=)
18862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18863 ac_optarg=
18864 ac_shift=:
18865 ;;
18866 *)
18867 ac_option=$1
18868 ac_optarg=$2
18869 ac_shift=shift
18870 ;;
18871 esac
18872
18873 case $ac_option in
18874 # Handling of the options.
18875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18876 ac_cs_recheck=: ;;
18877 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18878 $as_echo "$ac_cs_version"; exit ;;
18879 --config | --confi | --conf | --con | --co | --c )
18880 $as_echo "$ac_cs_config"; exit ;;
18881 --debug | --debu | --deb | --de | --d | -d )
18882 debug=: ;;
18883 --file | --fil | --fi | --f )
18884 $ac_shift
18885 case $ac_optarg in
18886 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18887 '') as_fn_error $? "missing file argument" ;;
18888 esac
18889 as_fn_append CONFIG_FILES " '$ac_optarg'"
18890 ac_need_defaults=false;;
18891 --header | --heade | --head | --hea )
18892 $ac_shift
18893 case $ac_optarg in
18894 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18895 esac
18896 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18897 ac_need_defaults=false;;
18898 --he | --h)
18899 # Conflict between --help and --header
18900 as_fn_error $? "ambiguous option: \`$1'
18901 Try \`$0 --help' for more information.";;
18902 --help | --hel | -h )
18903 $as_echo "$ac_cs_usage"; exit ;;
18904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18905 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18906 ac_cs_silent=: ;;
18907
18908 # This is an error.
18909 -*) as_fn_error $? "unrecognized option: \`$1'
18910 Try \`$0 --help' for more information." ;;
18911
18912 *) as_fn_append ac_config_targets " $1"
18913 ac_need_defaults=false ;;
18914
18915 esac
18916 shift
18917 done
18918
18919 ac_configure_extra_args=
18920
18921 if $ac_cs_silent; then
18922 exec 6>/dev/null
18923 ac_configure_extra_args="$ac_configure_extra_args --silent"
18924 fi
18925
18926 _ACEOF
18927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18928 if \$ac_cs_recheck; then
18929 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18930 shift
18931 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18932 CONFIG_SHELL='$SHELL'
18933 export CONFIG_SHELL
18934 exec "\$@"
18935 fi
18936
18937 _ACEOF
18938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18939 exec 5>>config.log
18940 {
18941 echo
18942 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18943 ## Running $as_me. ##
18944 _ASBOX
18945 $as_echo "$ac_log"
18946 } >&5
18947
18948 _ACEOF
18949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950 #
18951 # INIT-COMMANDS
18952 #
18953 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18954
18955
18956 # The HP-UX ksh and POSIX shell print the target directory to stdout
18957 # if CDPATH is set.
18958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18959
18960 sed_quote_subst='$sed_quote_subst'
18961 double_quote_subst='$double_quote_subst'
18962 delay_variable_subst='$delay_variable_subst'
18963 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18964 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18965 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18966 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18967 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18968 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18969 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18970 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18971 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18972 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18973 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18974 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18975 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18976 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18977 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18978 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18979 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18980 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18981 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18982 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18983 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18984 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18985 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18986 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18987 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18988 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18989 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18990 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18991 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18992 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18993 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18994 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18995 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18996 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18997 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18998 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18999 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19000 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19001 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19002 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19003 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19004 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19005 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19006 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19007 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19008 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19009 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19010 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19011 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19012 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19013 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19014 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19015 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19016 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19017 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19018 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19019 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"`'
19020 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19021 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19022 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19023 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19024 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19025 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19026 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19027 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19028 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19029 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19030 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19031 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19032 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19033 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19034 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19035 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19036 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19037 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19038 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19039 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19040 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19041 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19042 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19043 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19044 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19045 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19046 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19047 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19048 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19049 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19050 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19051 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19052 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19053 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19054 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19055 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19056 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19057 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19058 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19059 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19060 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19061 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19062 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19063 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19064 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19065 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19066 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19067 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19068 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19069 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19070 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19071 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19072 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19073 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19074 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19075 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19076 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19077 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19078 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19079 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19080 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19081 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19082 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19083 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19084 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19085 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19086 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19087 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19088 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19089 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19090 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19091 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19092 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19093
19094 LTCC='$LTCC'
19095 LTCFLAGS='$LTCFLAGS'
19096 compiler='$compiler_DEFAULT'
19097
19098 # A function that is used when there is no print builtin or printf.
19099 func_fallback_echo ()
19100 {
19101 eval 'cat <<_LTECHO_EOF
19102 \$1
19103 _LTECHO_EOF'
19104 }
19105
19106 # Quote evaled strings.
19107 for var in SHELL \
19108 ECHO \
19109 PATH_SEPARATOR \
19110 SED \
19111 GREP \
19112 EGREP \
19113 FGREP \
19114 LD \
19115 NM \
19116 LN_S \
19117 lt_SP2NL \
19118 lt_NL2SP \
19119 reload_flag \
19120 OBJDUMP \
19121 deplibs_check_method \
19122 file_magic_cmd \
19123 file_magic_glob \
19124 want_nocaseglob \
19125 DLLTOOL \
19126 sharedlib_from_linklib_cmd \
19127 AR \
19128 AR_FLAGS \
19129 archiver_list_spec \
19130 STRIP \
19131 RANLIB \
19132 CC \
19133 CFLAGS \
19134 compiler \
19135 lt_cv_sys_global_symbol_pipe \
19136 lt_cv_sys_global_symbol_to_cdecl \
19137 lt_cv_sys_global_symbol_to_c_name_address \
19138 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19139 nm_file_list_spec \
19140 lt_prog_compiler_no_builtin_flag \
19141 lt_prog_compiler_pic \
19142 lt_prog_compiler_wl \
19143 lt_prog_compiler_static \
19144 lt_cv_prog_compiler_c_o \
19145 need_locks \
19146 MANIFEST_TOOL \
19147 DSYMUTIL \
19148 NMEDIT \
19149 LIPO \
19150 OTOOL \
19151 OTOOL64 \
19152 shrext_cmds \
19153 export_dynamic_flag_spec \
19154 whole_archive_flag_spec \
19155 compiler_needs_object \
19156 with_gnu_ld \
19157 allow_undefined_flag \
19158 no_undefined_flag \
19159 hardcode_libdir_flag_spec \
19160 hardcode_libdir_separator \
19161 exclude_expsyms \
19162 include_expsyms \
19163 file_list_spec \
19164 variables_saved_for_relink \
19165 libname_spec \
19166 library_names_spec \
19167 soname_spec \
19168 install_override_mode \
19169 finish_eval \
19170 old_striplib \
19171 striplib; do
19172 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19173 *[\\\\\\\`\\"\\\$]*)
19174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19175 ;;
19176 *)
19177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19178 ;;
19179 esac
19180 done
19181
19182 # Double-quote double-evaled strings.
19183 for var in reload_cmds \
19184 old_postinstall_cmds \
19185 old_postuninstall_cmds \
19186 old_archive_cmds \
19187 extract_expsyms_cmds \
19188 old_archive_from_new_cmds \
19189 old_archive_from_expsyms_cmds \
19190 archive_cmds \
19191 archive_expsym_cmds \
19192 module_cmds \
19193 module_expsym_cmds \
19194 export_symbols_cmds \
19195 prelink_cmds \
19196 postlink_cmds \
19197 postinstall_cmds \
19198 postuninstall_cmds \
19199 finish_cmds \
19200 sys_lib_search_path_spec \
19201 sys_lib_dlsearch_path_spec; do
19202 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19203 *[\\\\\\\`\\"\\\$]*)
19204 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19205 ;;
19206 *)
19207 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19208 ;;
19209 esac
19210 done
19211
19212 ac_aux_dir='$ac_aux_dir'
19213 xsi_shell='$xsi_shell'
19214 lt_shell_append='$lt_shell_append'
19215
19216 # See if we are running on zsh, and set the options which allow our
19217 # commands through without removal of \ escapes INIT.
19218 if test -n "\${ZSH_VERSION+set}" ; then
19219 setopt NO_GLOB_SUBST
19220 fi
19221
19222
19223 PACKAGE='$PACKAGE'
19224 VERSION='$VERSION'
19225 TIMESTAMP='$TIMESTAMP'
19226 RM='$RM'
19227 ofile='$ofile'
19228
19229
19230
19231
19232 _ACEOF
19233
19234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19235
19236 # Handling of arguments.
19237 for ac_config_target in $ac_config_targets
19238 do
19239 case $ac_config_target in
19240 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19241 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19242 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19243 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19244 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19245 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19246 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19247
19248 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19249 esac
19250 done
19251
19252
19253 # If the user did not use the arguments to specify the items to instantiate,
19254 # then the envvar interface is used. Set only those that are not.
19255 # We use the long form for the default assignment because of an extremely
19256 # bizarre bug on SunOS 4.1.3.
19257 if $ac_need_defaults; then
19258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19261 fi
19262
19263 # Have a temporary directory for convenience. Make it in the build tree
19264 # simply because there is no reason against having it here, and in addition,
19265 # creating and moving files from /tmp can sometimes cause problems.
19266 # Hook for its removal unless debugging.
19267 # Note that there is a small window in which the directory will not be cleaned:
19268 # after its creation but before its name has been assigned to `$tmp'.
19269 $debug ||
19270 {
19271 tmp= ac_tmp=
19272 trap 'exit_status=$?
19273 : "${ac_tmp:=$tmp}"
19274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19275 ' 0
19276 trap 'as_fn_exit 1' 1 2 13 15
19277 }
19278 # Create a (secure) tmp directory for tmp files.
19279
19280 {
19281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19282 test -d "$tmp"
19283 } ||
19284 {
19285 tmp=./conf$$-$RANDOM
19286 (umask 077 && mkdir "$tmp")
19287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19288 ac_tmp=$tmp
19289
19290 # Set up the scripts for CONFIG_FILES section.
19291 # No need to generate them if there are no CONFIG_FILES.
19292 # This happens for instance with `./config.status config.h'.
19293 if test -n "$CONFIG_FILES"; then
19294
19295
19296 ac_cr=`echo X | tr X '\015'`
19297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19298 # But we know of no other shell where ac_cr would be empty at this
19299 # point, so we can use a bashism as a fallback.
19300 if test "x$ac_cr" = x; then
19301 eval ac_cr=\$\'\\r\'
19302 fi
19303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19305 ac_cs_awk_cr='\\r'
19306 else
19307 ac_cs_awk_cr=$ac_cr
19308 fi
19309
19310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19311 _ACEOF
19312
19313
19314 {
19315 echo "cat >conf$$subs.awk <<_ACEOF" &&
19316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19317 echo "_ACEOF"
19318 } >conf$$subs.sh ||
19319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19321 ac_delim='%!_!# '
19322 for ac_last_try in false false false false false :; do
19323 . ./conf$$subs.sh ||
19324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19325
19326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19327 if test $ac_delim_n = $ac_delim_num; then
19328 break
19329 elif $ac_last_try; then
19330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19331 else
19332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19333 fi
19334 done
19335 rm -f conf$$subs.sh
19336
19337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19339 _ACEOF
19340 sed -n '
19341 h
19342 s/^/S["/; s/!.*/"]=/
19343 p
19344 g
19345 s/^[^!]*!//
19346 :repl
19347 t repl
19348 s/'"$ac_delim"'$//
19349 t delim
19350 :nl
19351 h
19352 s/\(.\{148\}\)..*/\1/
19353 t more1
19354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19355 p
19356 n
19357 b repl
19358 :more1
19359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19360 p
19361 g
19362 s/.\{148\}//
19363 t nl
19364 :delim
19365 h
19366 s/\(.\{148\}\)..*/\1/
19367 t more2
19368 s/["\\]/\\&/g; s/^/"/; s/$/"/
19369 p
19370 b
19371 :more2
19372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19373 p
19374 g
19375 s/.\{148\}//
19376 t delim
19377 ' <conf$$subs.awk | sed '
19378 /^[^""]/{
19379 N
19380 s/\n//
19381 }
19382 ' >>$CONFIG_STATUS || ac_write_fail=1
19383 rm -f conf$$subs.awk
19384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19385 _ACAWK
19386 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19387 for (key in S) S_is_set[key] = 1
19388 FS = ""
19389
19390 }
19391 {
19392 line = $ 0
19393 nfields = split(line, field, "@")
19394 substed = 0
19395 len = length(field[1])
19396 for (i = 2; i < nfields; i++) {
19397 key = field[i]
19398 keylen = length(key)
19399 if (S_is_set[key]) {
19400 value = S[key]
19401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19402 len += length(value) + length(field[++i])
19403 substed = 1
19404 } else
19405 len += 1 + keylen
19406 }
19407
19408 print line
19409 }
19410
19411 _ACAWK
19412 _ACEOF
19413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19416 else
19417 cat
19418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19420 _ACEOF
19421
19422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19424 # trailing colons and then remove the whole line if VPATH becomes empty
19425 # (actually we leave an empty line to preserve line numbers).
19426 if test "x$srcdir" = x.; then
19427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19428 h
19429 s///
19430 s/^/:/
19431 s/[ ]*$/:/
19432 s/:\$(srcdir):/:/g
19433 s/:\${srcdir}:/:/g
19434 s/:@srcdir@:/:/g
19435 s/^:*//
19436 s/:*$//
19437 x
19438 s/\(=[ ]*\).*/\1/
19439 G
19440 s/\n//
19441 s/^[^=]*=[ ]*$//
19442 }'
19443 fi
19444
19445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19446 fi # test -n "$CONFIG_FILES"
19447
19448 # Set up the scripts for CONFIG_HEADERS section.
19449 # No need to generate them if there are no CONFIG_HEADERS.
19450 # This happens for instance with `./config.status Makefile'.
19451 if test -n "$CONFIG_HEADERS"; then
19452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19453 BEGIN {
19454 _ACEOF
19455
19456 # Transform confdefs.h into an awk script `defines.awk', embedded as
19457 # here-document in config.status, that substitutes the proper values into
19458 # config.h.in to produce config.h.
19459
19460 # Create a delimiter string that does not exist in confdefs.h, to ease
19461 # handling of long lines.
19462 ac_delim='%!_!# '
19463 for ac_last_try in false false :; do
19464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19465 if test -z "$ac_tt"; then
19466 break
19467 elif $ac_last_try; then
19468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19469 else
19470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19471 fi
19472 done
19473
19474 # For the awk script, D is an array of macro values keyed by name,
19475 # likewise P contains macro parameters if any. Preserve backslash
19476 # newline sequences.
19477
19478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19479 sed -n '
19480 s/.\{148\}/&'"$ac_delim"'/g
19481 t rset
19482 :rset
19483 s/^[ ]*#[ ]*define[ ][ ]*/ /
19484 t def
19485 d
19486 :def
19487 s/\\$//
19488 t bsnl
19489 s/["\\]/\\&/g
19490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19491 D["\1"]=" \3"/p
19492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19493 d
19494 :bsnl
19495 s/["\\]/\\&/g
19496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19497 D["\1"]=" \3\\\\\\n"\\/p
19498 t cont
19499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19500 t cont
19501 d
19502 :cont
19503 n
19504 s/.\{148\}/&'"$ac_delim"'/g
19505 t clear
19506 :clear
19507 s/\\$//
19508 t bsnlc
19509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19510 d
19511 :bsnlc
19512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19513 b cont
19514 ' <confdefs.h | sed '
19515 s/'"$ac_delim"'/"\\\
19516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19517
19518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19519 for (key in D) D_is_set[key] = 1
19520 FS = ""
19521 }
19522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19523 line = \$ 0
19524 split(line, arg, " ")
19525 if (arg[1] == "#") {
19526 defundef = arg[2]
19527 mac1 = arg[3]
19528 } else {
19529 defundef = substr(arg[1], 2)
19530 mac1 = arg[2]
19531 }
19532 split(mac1, mac2, "(") #)
19533 macro = mac2[1]
19534 prefix = substr(line, 1, index(line, defundef) - 1)
19535 if (D_is_set[macro]) {
19536 # Preserve the white space surrounding the "#".
19537 print prefix "define", macro P[macro] D[macro]
19538 next
19539 } else {
19540 # Replace #undef with comments. This is necessary, for example,
19541 # in the case of _POSIX_SOURCE, which is predefined and required
19542 # on some systems where configure will not decide to define it.
19543 if (defundef == "undef") {
19544 print "/*", prefix defundef, macro, "*/"
19545 next
19546 }
19547 }
19548 }
19549 { print }
19550 _ACAWK
19551 _ACEOF
19552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19554 fi # test -n "$CONFIG_HEADERS"
19555
19556
19557 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19558 shift
19559 for ac_tag
19560 do
19561 case $ac_tag in
19562 :[FHLC]) ac_mode=$ac_tag; continue;;
19563 esac
19564 case $ac_mode$ac_tag in
19565 :[FHL]*:*);;
19566 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19567 :[FH]-) ac_tag=-:-;;
19568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19569 esac
19570 ac_save_IFS=$IFS
19571 IFS=:
19572 set x $ac_tag
19573 IFS=$ac_save_IFS
19574 shift
19575 ac_file=$1
19576 shift
19577
19578 case $ac_mode in
19579 :L) ac_source=$1;;
19580 :[FH])
19581 ac_file_inputs=
19582 for ac_f
19583 do
19584 case $ac_f in
19585 -) ac_f="$ac_tmp/stdin";;
19586 *) # Look for the file first in the build tree, then in the source tree
19587 # (if the path is not absolute). The absolute path cannot be DOS-style,
19588 # because $ac_f cannot contain `:'.
19589 test -f "$ac_f" ||
19590 case $ac_f in
19591 [\\/$]*) false;;
19592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19593 esac ||
19594 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19595 esac
19596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19597 as_fn_append ac_file_inputs " '$ac_f'"
19598 done
19599
19600 # Let's still pretend it is `configure' which instantiates (i.e., don't
19601 # use $as_me), people would be surprised to read:
19602 # /* config.h. Generated by config.status. */
19603 configure_input='Generated from '`
19604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19605 `' by configure.'
19606 if test x"$ac_file" != x-; then
19607 configure_input="$ac_file. $configure_input"
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19609 $as_echo "$as_me: creating $ac_file" >&6;}
19610 fi
19611 # Neutralize special characters interpreted by sed in replacement strings.
19612 case $configure_input in #(
19613 *\&* | *\|* | *\\* )
19614 ac_sed_conf_input=`$as_echo "$configure_input" |
19615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19616 *) ac_sed_conf_input=$configure_input;;
19617 esac
19618
19619 case $ac_tag in
19620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19622 esac
19623 ;;
19624 esac
19625
19626 ac_dir=`$as_dirname -- "$ac_file" ||
19627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19628 X"$ac_file" : 'X\(//\)[^/]' \| \
19629 X"$ac_file" : 'X\(//\)$' \| \
19630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19631 $as_echo X"$ac_file" |
19632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19633 s//\1/
19634 q
19635 }
19636 /^X\(\/\/\)[^/].*/{
19637 s//\1/
19638 q
19639 }
19640 /^X\(\/\/\)$/{
19641 s//\1/
19642 q
19643 }
19644 /^X\(\/\).*/{
19645 s//\1/
19646 q
19647 }
19648 s/.*/./; q'`
19649 as_dir="$ac_dir"; as_fn_mkdir_p
19650 ac_builddir=.
19651
19652 case "$ac_dir" in
19653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19654 *)
19655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19656 # A ".." for each directory in $ac_dir_suffix.
19657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19658 case $ac_top_builddir_sub in
19659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19661 esac ;;
19662 esac
19663 ac_abs_top_builddir=$ac_pwd
19664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19665 # for backward compatibility:
19666 ac_top_builddir=$ac_top_build_prefix
19667
19668 case $srcdir in
19669 .) # We are building in place.
19670 ac_srcdir=.
19671 ac_top_srcdir=$ac_top_builddir_sub
19672 ac_abs_top_srcdir=$ac_pwd ;;
19673 [\\/]* | ?:[\\/]* ) # Absolute name.
19674 ac_srcdir=$srcdir$ac_dir_suffix;
19675 ac_top_srcdir=$srcdir
19676 ac_abs_top_srcdir=$srcdir ;;
19677 *) # Relative name.
19678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19679 ac_top_srcdir=$ac_top_build_prefix$srcdir
19680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19681 esac
19682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19683
19684
19685 case $ac_mode in
19686 :F)
19687 #
19688 # CONFIG_FILE
19689 #
19690
19691 case $INSTALL in
19692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19694 esac
19695 ac_MKDIR_P=$MKDIR_P
19696 case $MKDIR_P in
19697 [\\/$]* | ?:[\\/]* ) ;;
19698 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19699 esac
19700 _ACEOF
19701
19702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19703 # If the template does not know about datarootdir, expand it.
19704 # FIXME: This hack should be removed a few years after 2.60.
19705 ac_datarootdir_hack=; ac_datarootdir_seen=
19706 ac_sed_dataroot='
19707 /datarootdir/ {
19708 p
19709 q
19710 }
19711 /@datadir@/p
19712 /@docdir@/p
19713 /@infodir@/p
19714 /@localedir@/p
19715 /@mandir@/p'
19716 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19717 *datarootdir*) ac_datarootdir_seen=yes;;
19718 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19720 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19721 _ACEOF
19722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19723 ac_datarootdir_hack='
19724 s&@datadir@&$datadir&g
19725 s&@docdir@&$docdir&g
19726 s&@infodir@&$infodir&g
19727 s&@localedir@&$localedir&g
19728 s&@mandir@&$mandir&g
19729 s&\\\${datarootdir}&$datarootdir&g' ;;
19730 esac
19731 _ACEOF
19732
19733 # Neutralize VPATH when `$srcdir' = `.'.
19734 # Shell code in configure.ac might set extrasub.
19735 # FIXME: do we really want to maintain this feature?
19736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19737 ac_sed_extra="$ac_vpsub
19738 $extrasub
19739 _ACEOF
19740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19741 :t
19742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19743 s|@configure_input@|$ac_sed_conf_input|;t t
19744 s&@top_builddir@&$ac_top_builddir_sub&;t t
19745 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19746 s&@srcdir@&$ac_srcdir&;t t
19747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19748 s&@top_srcdir@&$ac_top_srcdir&;t t
19749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19750 s&@builddir@&$ac_builddir&;t t
19751 s&@abs_builddir@&$ac_abs_builddir&;t t
19752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19753 s&@INSTALL@&$ac_INSTALL&;t t
19754 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19755 $ac_datarootdir_hack
19756 "
19757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19758 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19759
19760 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19761 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19763 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19765 which seems to be undefined. Please make sure it is defined" >&5
19766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19767 which seems to be undefined. Please make sure it is defined" >&2;}
19768
19769 rm -f "$ac_tmp/stdin"
19770 case $ac_file in
19771 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19772 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19773 esac \
19774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19775 ;;
19776 :H)
19777 #
19778 # CONFIG_HEADER
19779 #
19780 if test x"$ac_file" != x-; then
19781 {
19782 $as_echo "/* $configure_input */" \
19783 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19784 } >"$ac_tmp/config.h" \
19785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19786 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19788 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19789 else
19790 rm -f "$ac_file"
19791 mv "$ac_tmp/config.h" "$ac_file" \
19792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19793 fi
19794 else
19795 $as_echo "/* $configure_input */" \
19796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19797 || as_fn_error $? "could not create -" "$LINENO" 5
19798 fi
19799 # Compute "$ac_file"'s index in $config_headers.
19800 _am_arg="$ac_file"
19801 _am_stamp_count=1
19802 for _am_header in $config_headers :; do
19803 case $_am_header in
19804 $_am_arg | $_am_arg:* )
19805 break ;;
19806 * )
19807 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19808 esac
19809 done
19810 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19811 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19812 X"$_am_arg" : 'X\(//\)[^/]' \| \
19813 X"$_am_arg" : 'X\(//\)$' \| \
19814 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19815 $as_echo X"$_am_arg" |
19816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19817 s//\1/
19818 q
19819 }
19820 /^X\(\/\/\)[^/].*/{
19821 s//\1/
19822 q
19823 }
19824 /^X\(\/\/\)$/{
19825 s//\1/
19826 q
19827 }
19828 /^X\(\/\).*/{
19829 s//\1/
19830 q
19831 }
19832 s/.*/./; q'`/stamp-h$_am_stamp_count
19833 ;;
19834
19835 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19836 $as_echo "$as_me: executing $ac_file commands" >&6;}
19837 ;;
19838 esac
19839
19840
19841 case $ac_file$ac_mode in
19842 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19843 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19844 # are listed without --file. Let's play safe and only enable the eval
19845 # if we detect the quoting.
19846 case $CONFIG_FILES in
19847 *\'*) eval set x "$CONFIG_FILES" ;;
19848 *) set x $CONFIG_FILES ;;
19849 esac
19850 shift
19851 for mf
19852 do
19853 # Strip MF so we end up with the name of the file.
19854 mf=`echo "$mf" | sed -e 's/:.*$//'`
19855 # Check whether this is an Automake generated Makefile or not.
19856 # We used to match only the files named `Makefile.in', but
19857 # some people rename them; so instead we look at the file content.
19858 # Grep'ing the first line is not enough: some people post-process
19859 # each Makefile.in and add a new line on top of each file to say so.
19860 # Grep'ing the whole file is not good either: AIX grep has a line
19861 # limit of 2048, but all sed's we know have understand at least 4000.
19862 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19863 dirpart=`$as_dirname -- "$mf" ||
19864 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19865 X"$mf" : 'X\(//\)[^/]' \| \
19866 X"$mf" : 'X\(//\)$' \| \
19867 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19868 $as_echo X"$mf" |
19869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19870 s//\1/
19871 q
19872 }
19873 /^X\(\/\/\)[^/].*/{
19874 s//\1/
19875 q
19876 }
19877 /^X\(\/\/\)$/{
19878 s//\1/
19879 q
19880 }
19881 /^X\(\/\).*/{
19882 s//\1/
19883 q
19884 }
19885 s/.*/./; q'`
19886 else
19887 continue
19888 fi
19889 # Extract the definition of DEPDIR, am__include, and am__quote
19890 # from the Makefile without running `make'.
19891 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19892 test -z "$DEPDIR" && continue
19893 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19894 test -z "am__include" && continue
19895 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19896 # When using ansi2knr, U may be empty or an underscore; expand it
19897 U=`sed -n 's/^U = //p' < "$mf"`
19898 # Find all dependency output files, they are included files with
19899 # $(DEPDIR) in their names. We invoke sed twice because it is the
19900 # simplest approach to changing $(DEPDIR) to its actual value in the
19901 # expansion.
19902 for file in `sed -n "
19903 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19904 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19905 # Make sure the directory exists.
19906 test -f "$dirpart/$file" && continue
19907 fdir=`$as_dirname -- "$file" ||
19908 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19909 X"$file" : 'X\(//\)[^/]' \| \
19910 X"$file" : 'X\(//\)$' \| \
19911 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19912 $as_echo X"$file" |
19913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19914 s//\1/
19915 q
19916 }
19917 /^X\(\/\/\)[^/].*/{
19918 s//\1/
19919 q
19920 }
19921 /^X\(\/\/\)$/{
19922 s//\1/
19923 q
19924 }
19925 /^X\(\/\).*/{
19926 s//\1/
19927 q
19928 }
19929 s/.*/./; q'`
19930 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19931 # echo "creating $dirpart/$file"
19932 echo '# dummy' > "$dirpart/$file"
19933 done
19934 done
19935 }
19936 ;;
19937 "libtool":C)
19938
19939 # See if we are running on zsh, and set the options which allow our
19940 # commands through without removal of \ escapes.
19941 if test -n "${ZSH_VERSION+set}" ; then
19942 setopt NO_GLOB_SUBST
19943 fi
19944
19945 cfgfile="${ofile}T"
19946 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19947 $RM "$cfgfile"
19948
19949 cat <<_LT_EOF >> "$cfgfile"
19950 #! $SHELL
19951
19952 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19953 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19954 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19955 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19956 #
19957 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19958 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19959 # Foundation, Inc.
19960 # Written by Gordon Matzigkeit, 1996
19961 #
19962 # This file is part of GNU Libtool.
19963 #
19964 # GNU Libtool is free software; you can redistribute it and/or
19965 # modify it under the terms of the GNU General Public License as
19966 # published by the Free Software Foundation; either version 2 of
19967 # the License, or (at your option) any later version.
19968 #
19969 # As a special exception to the GNU General Public License,
19970 # if you distribute this file as part of a program or library that
19971 # is built using GNU Libtool, you may include this file under the
19972 # same distribution terms that you use for the rest of that program.
19973 #
19974 # GNU Libtool is distributed in the hope that it will be useful,
19975 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19976 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19977 # GNU General Public License for more details.
19978 #
19979 # You should have received a copy of the GNU General Public License
19980 # along with GNU Libtool; see the file COPYING. If not, a copy
19981 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19982 # obtained by writing to the Free Software Foundation, Inc.,
19983 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19984
19985
19986 # The names of the tagged configurations supported by this script.
19987 available_tags=""
19988
19989 # ### BEGIN LIBTOOL CONFIG
19990
19991 # Whether or not to build static libraries.
19992 build_old_libs=$enable_static
19993
19994 # Which release of libtool.m4 was used?
19995 macro_version=$macro_version
19996 macro_revision=$macro_revision
19997
19998 # Whether or not to build shared libraries.
19999 build_libtool_libs=$enable_shared
20000
20001 # What type of objects to build.
20002 pic_mode=$pic_mode
20003
20004 # Whether or not to optimize for fast installation.
20005 fast_install=$enable_fast_install
20006
20007 # Shell to use when invoking shell scripts.
20008 SHELL=$lt_SHELL
20009
20010 # An echo program that protects backslashes.
20011 ECHO=$lt_ECHO
20012
20013 # The PATH separator for the build system.
20014 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20015
20016 # The host system.
20017 host_alias=$host_alias
20018 host=$host
20019 host_os=$host_os
20020
20021 # The build system.
20022 build_alias=$build_alias
20023 build=$build
20024 build_os=$build_os
20025
20026 # A sed program that does not truncate output.
20027 SED=$lt_SED
20028
20029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20030 Xsed="\$SED -e 1s/^X//"
20031
20032 # A grep program that handles long lines.
20033 GREP=$lt_GREP
20034
20035 # An ERE matcher.
20036 EGREP=$lt_EGREP
20037
20038 # A literal string matcher.
20039 FGREP=$lt_FGREP
20040
20041 # A BSD- or MS-compatible name lister.
20042 NM=$lt_NM
20043
20044 # Whether we need soft or hard links.
20045 LN_S=$lt_LN_S
20046
20047 # What is the maximum length of a command?
20048 max_cmd_len=$max_cmd_len
20049
20050 # Object file suffix (normally "o").
20051 objext=$ac_objext
20052
20053 # Executable file suffix (normally "").
20054 exeext=$exeext
20055
20056 # whether the shell understands "unset".
20057 lt_unset=$lt_unset
20058
20059 # turn spaces into newlines.
20060 SP2NL=$lt_lt_SP2NL
20061
20062 # turn newlines into spaces.
20063 NL2SP=$lt_lt_NL2SP
20064
20065 # convert \$build file names to \$host format.
20066 to_host_file_cmd=$lt_cv_to_host_file_cmd
20067
20068 # convert \$build files to toolchain format.
20069 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20070
20071 # An object symbol dumper.
20072 OBJDUMP=$lt_OBJDUMP
20073
20074 # Method to check whether dependent libraries are shared objects.
20075 deplibs_check_method=$lt_deplibs_check_method
20076
20077 # Command to use when deplibs_check_method = "file_magic".
20078 file_magic_cmd=$lt_file_magic_cmd
20079
20080 # How to find potential files when deplibs_check_method = "file_magic".
20081 file_magic_glob=$lt_file_magic_glob
20082
20083 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20084 want_nocaseglob=$lt_want_nocaseglob
20085
20086 # DLL creation program.
20087 DLLTOOL=$lt_DLLTOOL
20088
20089 # Command to associate shared and link libraries.
20090 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20091
20092 # The archiver.
20093 AR=$lt_AR
20094
20095 # Flags to create an archive.
20096 AR_FLAGS=$lt_AR_FLAGS
20097
20098 # How to feed a file listing to the archiver.
20099 archiver_list_spec=$lt_archiver_list_spec
20100
20101 # A symbol stripping program.
20102 STRIP=$lt_STRIP
20103
20104 # Commands used to install an old-style archive.
20105 RANLIB=$lt_RANLIB
20106 old_postinstall_cmds=$lt_old_postinstall_cmds
20107 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20108
20109 # Whether to use a lock for old archive extraction.
20110 lock_old_archive_extraction=$lock_old_archive_extraction
20111
20112 # A C compiler.
20113 LTCC=$lt_CC
20114
20115 # LTCC compiler flags.
20116 LTCFLAGS=$lt_CFLAGS
20117
20118 # Take the output of nm and produce a listing of raw symbols and C names.
20119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20120
20121 # Transform the output of nm in a proper C declaration.
20122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20123
20124 # Transform the output of nm in a C name address pair.
20125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20126
20127 # Transform the output of nm in a C name address pair when lib prefix is needed.
20128 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20129
20130 # Specify filename containing input files for \$NM.
20131 nm_file_list_spec=$lt_nm_file_list_spec
20132
20133 # The root where to search for dependent libraries,and in which our libraries should be installed.
20134 lt_sysroot=$lt_sysroot
20135
20136 # The name of the directory that contains temporary libtool files.
20137 objdir=$objdir
20138
20139 # Used to examine libraries when file_magic_cmd begins with "file".
20140 MAGIC_CMD=$MAGIC_CMD
20141
20142 # Must we lock files when doing compilation?
20143 need_locks=$lt_need_locks
20144
20145 # Manifest tool.
20146 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20147
20148 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20149 DSYMUTIL=$lt_DSYMUTIL
20150
20151 # Tool to change global to local symbols on Mac OS X.
20152 NMEDIT=$lt_NMEDIT
20153
20154 # Tool to manipulate fat objects and archives on Mac OS X.
20155 LIPO=$lt_LIPO
20156
20157 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20158 OTOOL=$lt_OTOOL
20159
20160 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20161 OTOOL64=$lt_OTOOL64
20162
20163 # Old archive suffix (normally "a").
20164 libext=$libext
20165
20166 # Shared library suffix (normally ".so").
20167 shrext_cmds=$lt_shrext_cmds
20168
20169 # The commands to extract the exported symbol list from a shared archive.
20170 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20171
20172 # Variables whose values should be saved in libtool wrapper scripts and
20173 # restored at link time.
20174 variables_saved_for_relink=$lt_variables_saved_for_relink
20175
20176 # Do we need the "lib" prefix for modules?
20177 need_lib_prefix=$need_lib_prefix
20178
20179 # Do we need a version for libraries?
20180 need_version=$need_version
20181
20182 # Library versioning type.
20183 version_type=$version_type
20184
20185 # Shared library runtime path variable.
20186 runpath_var=$runpath_var
20187
20188 # Shared library path variable.
20189 shlibpath_var=$shlibpath_var
20190
20191 # Is shlibpath searched before the hard-coded library search path?
20192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20193
20194 # Format of library name prefix.
20195 libname_spec=$lt_libname_spec
20196
20197 # List of archive names. First name is the real one, the rest are links.
20198 # The last name is the one that the linker finds with -lNAME
20199 library_names_spec=$lt_library_names_spec
20200
20201 # The coded name of the library, if different from the real name.
20202 soname_spec=$lt_soname_spec
20203
20204 # Permission mode override for installation of shared libraries.
20205 install_override_mode=$lt_install_override_mode
20206
20207 # Command to use after installation of a shared archive.
20208 postinstall_cmds=$lt_postinstall_cmds
20209
20210 # Command to use after uninstallation of a shared archive.
20211 postuninstall_cmds=$lt_postuninstall_cmds
20212
20213 # Commands used to finish a libtool library installation in a directory.
20214 finish_cmds=$lt_finish_cmds
20215
20216 # As "finish_cmds", except a single script fragment to be evaled but
20217 # not shown.
20218 finish_eval=$lt_finish_eval
20219
20220 # Whether we should hardcode library paths into libraries.
20221 hardcode_into_libs=$hardcode_into_libs
20222
20223 # Compile-time system search path for libraries.
20224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20225
20226 # Run-time system search path for libraries.
20227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20228
20229 # Whether dlopen is supported.
20230 dlopen_support=$enable_dlopen
20231
20232 # Whether dlopen of programs is supported.
20233 dlopen_self=$enable_dlopen_self
20234
20235 # Whether dlopen of statically linked programs is supported.
20236 dlopen_self_static=$enable_dlopen_self_static
20237
20238 # Commands to strip libraries.
20239 old_striplib=$lt_old_striplib
20240 striplib=$lt_striplib
20241
20242
20243 # The linker used to build libraries.
20244 LD=$lt_LD
20245
20246 # How to create reloadable object files.
20247 reload_flag=$lt_reload_flag
20248 reload_cmds=$lt_reload_cmds
20249
20250 # Commands used to build an old-style archive.
20251 old_archive_cmds=$lt_old_archive_cmds
20252
20253 # A language specific compiler.
20254 CC=$lt_compiler
20255
20256 # Is the compiler the GNU compiler?
20257 with_gcc=$GCC
20258
20259 # Compiler flag to turn off builtin functions.
20260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20261
20262 # Additional compiler flags for building library objects.
20263 pic_flag=$lt_lt_prog_compiler_pic
20264
20265 # How to pass a linker flag through the compiler.
20266 wl=$lt_lt_prog_compiler_wl
20267
20268 # Compiler flag to prevent dynamic linking.
20269 link_static_flag=$lt_lt_prog_compiler_static
20270
20271 # Does compiler simultaneously support -c and -o options?
20272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20273
20274 # Whether or not to add -lc for building shared libraries.
20275 build_libtool_need_lc=$archive_cmds_need_lc
20276
20277 # Whether or not to disallow shared libs when runtime libs are static.
20278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20279
20280 # Compiler flag to allow reflexive dlopens.
20281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20282
20283 # Compiler flag to generate shared objects directly from archives.
20284 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20285
20286 # Whether the compiler copes with passing no objects directly.
20287 compiler_needs_object=$lt_compiler_needs_object
20288
20289 # Create an old-style archive from a shared archive.
20290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20291
20292 # Create a temporary old-style archive to link instead of a shared archive.
20293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20294
20295 # Commands used to build a shared archive.
20296 archive_cmds=$lt_archive_cmds
20297 archive_expsym_cmds=$lt_archive_expsym_cmds
20298
20299 # Commands used to build a loadable module if different from building
20300 # a shared archive.
20301 module_cmds=$lt_module_cmds
20302 module_expsym_cmds=$lt_module_expsym_cmds
20303
20304 # Whether we are building with GNU ld or not.
20305 with_gnu_ld=$lt_with_gnu_ld
20306
20307 # Flag that allows shared libraries with undefined symbols to be built.
20308 allow_undefined_flag=$lt_allow_undefined_flag
20309
20310 # Flag that enforces no undefined symbols.
20311 no_undefined_flag=$lt_no_undefined_flag
20312
20313 # Flag to hardcode \$libdir into a binary during linking.
20314 # This must work even if \$libdir does not exist
20315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20316
20317 # Whether we need a single "-rpath" flag with a separated argument.
20318 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20319
20320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20321 # DIR into the resulting binary.
20322 hardcode_direct=$hardcode_direct
20323
20324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20325 # DIR into the resulting binary and the resulting library dependency is
20326 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20327 # library is relocated.
20328 hardcode_direct_absolute=$hardcode_direct_absolute
20329
20330 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20331 # into the resulting binary.
20332 hardcode_minus_L=$hardcode_minus_L
20333
20334 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20335 # into the resulting binary.
20336 hardcode_shlibpath_var=$hardcode_shlibpath_var
20337
20338 # Set to "yes" if building a shared library automatically hardcodes DIR
20339 # into the library and all subsequent libraries and executables linked
20340 # against it.
20341 hardcode_automatic=$hardcode_automatic
20342
20343 # Set to yes if linker adds runtime paths of dependent libraries
20344 # to runtime path list.
20345 inherit_rpath=$inherit_rpath
20346
20347 # Whether libtool must link a program against all its dependency libraries.
20348 link_all_deplibs=$link_all_deplibs
20349
20350 # Set to "yes" if exported symbols are required.
20351 always_export_symbols=$always_export_symbols
20352
20353 # The commands to list exported symbols.
20354 export_symbols_cmds=$lt_export_symbols_cmds
20355
20356 # Symbols that should not be listed in the preloaded symbols.
20357 exclude_expsyms=$lt_exclude_expsyms
20358
20359 # Symbols that must always be exported.
20360 include_expsyms=$lt_include_expsyms
20361
20362 # Commands necessary for linking programs (against libraries) with templates.
20363 prelink_cmds=$lt_prelink_cmds
20364
20365 # Commands necessary for finishing linking programs.
20366 postlink_cmds=$lt_postlink_cmds
20367
20368 # Specify filename containing input files.
20369 file_list_spec=$lt_file_list_spec
20370
20371 # How to hardcode a shared library path into an executable.
20372 hardcode_action=$hardcode_action
20373
20374 # ### END LIBTOOL CONFIG
20375
20376 _LT_EOF
20377
20378 case $host_os in
20379 aix3*)
20380 cat <<\_LT_EOF >> "$cfgfile"
20381 # AIX sometimes has problems with the GCC collect2 program. For some
20382 # reason, if we set the COLLECT_NAMES environment variable, the problems
20383 # vanish in a puff of smoke.
20384 if test "X${COLLECT_NAMES+set}" != Xset; then
20385 COLLECT_NAMES=
20386 export COLLECT_NAMES
20387 fi
20388 _LT_EOF
20389 ;;
20390 esac
20391
20392
20393 ltmain="$ac_aux_dir/ltmain.sh"
20394
20395
20396 # We use sed instead of cat because bash on DJGPP gets confused if
20397 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20398 # text mode, it properly converts lines to CR/LF. This bash problem
20399 # is reportedly fixed, but why not run on old versions too?
20400 sed '$q' "$ltmain" >> "$cfgfile" \
20401 || (rm -f "$cfgfile"; exit 1)
20402
20403 if test x"$xsi_shell" = xyes; then
20404 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20405 func_dirname ()\
20406 {\
20407 \ case ${1} in\
20408 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20409 \ * ) func_dirname_result="${3}" ;;\
20410 \ esac\
20411 } # Extended-shell func_dirname implementation' "$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
20416
20417 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20418 func_basename ()\
20419 {\
20420 \ func_basename_result="${1##*/}"\
20421 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20422 && mv -f "$cfgfile.tmp" "$cfgfile" \
20423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20424 test 0 -eq $? || _lt_function_replace_fail=:
20425
20426
20427 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20428 func_dirname_and_basename ()\
20429 {\
20430 \ case ${1} in\
20431 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20432 \ * ) func_dirname_result="${3}" ;;\
20433 \ esac\
20434 \ func_basename_result="${1##*/}"\
20435 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20436 && mv -f "$cfgfile.tmp" "$cfgfile" \
20437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20438 test 0 -eq $? || _lt_function_replace_fail=:
20439
20440
20441 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20442 func_stripname ()\
20443 {\
20444 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20445 \ # positional parameters, so assign one to ordinary parameter first.\
20446 \ func_stripname_result=${3}\
20447 \ func_stripname_result=${func_stripname_result#"${1}"}\
20448 \ func_stripname_result=${func_stripname_result%"${2}"}\
20449 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20450 && mv -f "$cfgfile.tmp" "$cfgfile" \
20451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20452 test 0 -eq $? || _lt_function_replace_fail=:
20453
20454
20455 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20456 func_split_long_opt ()\
20457 {\
20458 \ func_split_long_opt_name=${1%%=*}\
20459 \ func_split_long_opt_arg=${1#*=}\
20460 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20461 && mv -f "$cfgfile.tmp" "$cfgfile" \
20462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20463 test 0 -eq $? || _lt_function_replace_fail=:
20464
20465
20466 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20467 func_split_short_opt ()\
20468 {\
20469 \ func_split_short_opt_arg=${1#??}\
20470 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20471 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20472 && mv -f "$cfgfile.tmp" "$cfgfile" \
20473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20474 test 0 -eq $? || _lt_function_replace_fail=:
20475
20476
20477 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20478 func_lo2o ()\
20479 {\
20480 \ case ${1} in\
20481 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20482 \ *) func_lo2o_result=${1} ;;\
20483 \ esac\
20484 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20485 && mv -f "$cfgfile.tmp" "$cfgfile" \
20486 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20487 test 0 -eq $? || _lt_function_replace_fail=:
20488
20489
20490 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20491 func_xform ()\
20492 {\
20493 func_xform_result=${1%.*}.lo\
20494 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20495 && mv -f "$cfgfile.tmp" "$cfgfile" \
20496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20497 test 0 -eq $? || _lt_function_replace_fail=:
20498
20499
20500 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20501 func_arith ()\
20502 {\
20503 func_arith_result=$(( $* ))\
20504 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20505 && mv -f "$cfgfile.tmp" "$cfgfile" \
20506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20507 test 0 -eq $? || _lt_function_replace_fail=:
20508
20509
20510 sed -e '/^func_len ()$/,/^} # func_len /c\
20511 func_len ()\
20512 {\
20513 func_len_result=${#1}\
20514 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20515 && mv -f "$cfgfile.tmp" "$cfgfile" \
20516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20517 test 0 -eq $? || _lt_function_replace_fail=:
20518
20519 fi
20520
20521 if test x"$lt_shell_append" = xyes; then
20522 sed -e '/^func_append ()$/,/^} # func_append /c\
20523 func_append ()\
20524 {\
20525 eval "${1}+=\\${2}"\
20526 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20527 && mv -f "$cfgfile.tmp" "$cfgfile" \
20528 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20529 test 0 -eq $? || _lt_function_replace_fail=:
20530
20531
20532 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20533 func_append_quoted ()\
20534 {\
20535 \ func_quote_for_eval "${2}"\
20536 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20537 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20538 && mv -f "$cfgfile.tmp" "$cfgfile" \
20539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20540 test 0 -eq $? || _lt_function_replace_fail=:
20541
20542
20543 # Save a `func_append' function call where possible by direct use of '+='
20544 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20545 && mv -f "$cfgfile.tmp" "$cfgfile" \
20546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20547 test 0 -eq $? || _lt_function_replace_fail=:
20548 else
20549 # Save a `func_append' function call even when '+=' is not available
20550 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20551 && mv -f "$cfgfile.tmp" "$cfgfile" \
20552 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20553 test 0 -eq $? || _lt_function_replace_fail=:
20554 fi
20555
20556 if test x"$_lt_function_replace_fail" = x":"; then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20558 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20559 fi
20560
20561
20562 mv -f "$cfgfile" "$ofile" ||
20563 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20564 chmod +x "$ofile"
20565
20566 ;;
20567
20568 esac
20569 done # for ac_tag
20570
20571
20572 as_fn_exit 0
20573 _ACEOF
20574 ac_clean_files=$ac_clean_files_save
20575
20576 test $ac_write_fail = 0 ||
20577 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20578
20579
20580 # configure is writing to config.log, and then calls config.status.
20581 # config.status does its own redirection, appending to config.log.
20582 # Unfortunately, on DOS this fails, as config.log is still kept open
20583 # by configure, so config.status won't be able to write to it; its
20584 # output is simply discarded. So we exec the FD to /dev/null,
20585 # effectively closing config.log, so it can be properly (re)opened and
20586 # appended to by config.status. When coming back to configure, we
20587 # need to make the FD available again.
20588 if test "$no_create" != yes; then
20589 ac_cs_success=:
20590 ac_config_status_args=
20591 test "$silent" = yes &&
20592 ac_config_status_args="$ac_config_status_args --quiet"
20593 exec 5>/dev/null
20594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20595 exec 5>>config.log
20596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20597 # would make configure fail if this is the last instruction.
20598 $ac_cs_success || as_fn_exit 1
20599 fi
20600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20603 fi
20604
20605