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-savage 2.3.6.
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-savage'
573 PACKAGE_TARNAME='xf86-video-savage'
574 PACKAGE_VERSION='2.3.6'
575 PACKAGE_STRING='xf86-video-savage 2.3.6'
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 XSERVER_LIBPCIACCESS_FALSE
623 XSERVER_LIBPCIACCESS_TRUE
624 PCIACCESS_LIBS
625 PCIACCESS_CFLAGS
626 XAA_FALSE
627 XAA_TRUE
628 DRI_LIBS
629 DRI_CFLAGS
630 DRI_FALSE
631 DRI_TRUE
632 HAVE_XEXTPROTO_71_FALSE
633 HAVE_XEXTPROTO_71_TRUE
634 XEXT_LIBS
635 XEXT_CFLAGS
636 XORG_LIBS
637 XORG_CFLAGS
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 LIBTOOL
656 AM_BACKSLASH
657 AM_DEFAULT_VERBOSITY
658 AM_DEFAULT_V
659 AM_V
660 MAN_SUBSTS
661 XORG_MAN_PAGE
662 ADMIN_MAN_DIR
663 DRIVER_MAN_DIR
664 MISC_MAN_DIR
665 FILE_MAN_DIR
666 LIB_MAN_DIR
667 APP_MAN_DIR
668 ADMIN_MAN_SUFFIX
669 DRIVER_MAN_SUFFIX
670 MISC_MAN_SUFFIX
671 FILE_MAN_SUFFIX
672 LIB_MAN_SUFFIX
673 APP_MAN_SUFFIX
674 SED
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 INSTALL_CMD
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 CHANGELOG_CMD
688 STRICT_CFLAGS
689 CWARNFLAGS
690 BASE_CFLAGS
691 EGREP
692 GREP
693 CPP
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_maintainer_mode
779 enable_dependency_tracking
780 enable_selective_werror
781 enable_strict_compilation
782 enable_silent_rules
783 enable_static
784 enable_shared
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 with_xorg_module_dir
791 enable_dri
792 enable_xaa
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP
803 PKG_CONFIG
804 PKG_CONFIG_PATH
805 PKG_CONFIG_LIBDIR
806 XORG_CFLAGS
807 XORG_LIBS
808 XEXT_CFLAGS
809 XEXT_LIBS
810 DRI_CFLAGS
811 DRI_LIBS
812 PCIACCESS_CFLAGS
813 PCIACCESS_LIBS'
814
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1270 If a cross compiler is detected then cross compile mode will be used" >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures xf86-video-savage 2.3.6 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root
1405 [DATAROOTDIR/doc/xf86-video-savage]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1410 _ACEOF
1411
1412 cat <<\_ACEOF
1413
1414 Program names:
1415 --program-prefix=PREFIX prepend PREFIX to installed program names
1416 --program-suffix=SUFFIX append SUFFIX to installed program names
1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418
1419 System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of xf86-video-savage 2.3.6:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431 Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-maintainer-mode enable make rules and dependencies not useful
1436 (and sometimes confusing) to the casual installer
1437 --disable-dependency-tracking speeds up one-time build
1438 --enable-dependency-tracking do not reject slow dependency extractors
1439 --disable-selective-werror
1440 Turn off selective compiler errors. (default:
1441 enabled)
1442 --enable-strict-compilation
1443 Enable all warnings from compiler and make them
1444 errors (default: disabled)
1445 --enable-silent-rules less verbose build output (undo: `make V=1')
1446 --disable-silent-rules verbose build output (undo: `make V=0')
1447 --enable-static[=PKGS] build static libraries [default=no]
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-fast-install[=PKGS]
1450 optimize for fast installation [default=yes]
1451 --disable-libtool-lock avoid locking (might break parallel builds)
1452 --disable-dri Disable DRI support [[default=auto]]
1453 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1454 [default=auto]
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-sysroot=DIR Search for dependent libraries within DIR
1463 (or the compiler's sysroot if not specified).
1464 --with-xorg-module-dir=DIR
1465 Default xorg module directory
1466 [[default=$libdir/xorg/modules]]
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477 PKG_CONFIG path to pkg-config utility
1478 PKG_CONFIG_PATH
1479 directories to add to pkg-config's search path
1480 PKG_CONFIG_LIBDIR
1481 path overriding pkg-config's built-in search path
1482 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1483 XORG_LIBS linker flags for XORG, overriding pkg-config
1484 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1485 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1486 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1487 DRI_LIBS linker flags for DRI, overriding pkg-config
1488 PCIACCESS_CFLAGS
1489 C compiler flags for PCIACCESS, overriding pkg-config
1490 PCIACCESS_LIBS
1491 linker flags for PCIACCESS, overriding pkg-config
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 xf86-video-savage configure 2.3.6
1560 generated by GNU Autoconf 2.68
1561
1562 Copyright (C) 2010 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1612 # ---------------------------------------------
1613 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1614 # accordingly.
1615 ac_fn_c_check_decl ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 as_decl_name=`echo $2|sed 's/ *(.*//'`
1619 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1621 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 int
1629 main ()
1630 {
1631 #ifndef $as_decl_name
1632 #ifdef __cplusplus
1633 (void) $as_decl_use;
1634 #else
1635 (void) $as_decl_name;
1636 #endif
1637 #endif
1638
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$3=yes"
1645 else
1646 eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_decl
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_compile
1766
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802 fi
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_link
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_header_mongrel ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if eval \${$3+:} false; then :
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 else
1898 # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_header_compiler=yes
1908 else
1909 ac_header_compiler=no
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1914
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923 ac_header_preproc=yes
1924 else
1925 ac_header_preproc=no
1926 fi
1927 rm -f conftest.err conftest.i conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1930
1931 # So? What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 yes:no: )
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 ;;
1939 no:yes:* )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ( $as_echo "## ---------------------------------------------------------------------- ##
1951 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1952 ## ---------------------------------------------------------------------- ##"
1953 ) | sed "s/^/$as_me: WARNING: /" >&2
1954 ;;
1955 esac
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 eval "$3=\$ac_header_compiler"
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 fi
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_header_mongrel
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1973
1974 It was created by xf86-video-savage $as_me 2.3.6, which was
1975 generated by GNU Autoconf 2.68. Invocation command line was
1976
1977 $ $0 $@
1978
1979 _ACEOF
1980 exec 5>>config.log
1981 {
1982 cat <<_ASUNAME
1983 ## --------- ##
1984 ## Platform. ##
1985 ## --------- ##
1986
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1995
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003
2004 _ASUNAME
2005
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013 IFS=$as_save_IFS
2014
2015 } >&5
2016
2017 cat >&5 <<_ACEOF
2018
2019
2020 ## ----------- ##
2021 ## Core tests. ##
2022 ## ----------- ##
2023
2024 _ACEOF
2025
2026
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_configure_args=
2033 ac_configure_args0=
2034 ac_configure_args1=
2035 ac_must_keep_next=false
2036 for ac_pass in 1 2
2037 do
2038 for ac_arg
2039 do
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050 2)
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2063 ;;
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2066 fi
2067 as_fn_append ac_configure_args " '$ac_arg'"
2068 ;;
2069 esac
2070 done
2071 done
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2074
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2082 {
2083 echo
2084
2085 $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2088 echo
2089 # The following way of writing the cache mishandles newlines in values,
2090 (
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in #(
2094 *${as_nl}*)
2095 case $ac_var in #(
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 esac
2099 case $ac_var in #(
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2103 esac ;;
2104 esac
2105 done
2106 (set) 2>&1 |
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2109 sed -n \
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 ;; #(
2113 *)
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 ;;
2116 esac |
2117 sort
2118 )
2119 echo
2120
2121 $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2139 echo
2140 for ac_var in $ac_subst_files
2141 do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2149 fi
2150
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##"
2155 echo
2156 cat confdefs.h
2157 echo
2158 fi
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2166 ' 0
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2171
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2174
2175 $as_echo "/* confdefs.h */" > confdefs.h
2176
2177 # Predefined preprocessor variables.
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2201 _ACEOF
2202
2203
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 ac_site_file1=NONE
2207 ac_site_file2=NONE
2208 if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1=./$CONFIG_SITE;;
2212 */*) ac_site_file1=$CONFIG_SITE;;
2213 *) ac_site_file1=./$CONFIG_SITE;;
2214 esac
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2218 else
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2221 fi
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223 do
2224 test "x$ac_site_file" = xNONE && continue
2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2229 . "$ac_site_file" \
2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $? "failed to load site script $ac_site_file
2233 See \`config.log' for more details" "$LINENO" 5; }
2234 fi
2235 done
2236
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2243 case $cache_file in
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2246 esac
2247 fi
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2251 >$cache_file
2252 fi
2253
2254 # Check that the precious variables saved in the cache have kept the same
2255 # value.
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259 eval ac_new_set=\$ac_env_${ac_var}_set
2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261 eval ac_new_val=\$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2263 set,)
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2267 ,set)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,);;
2272 *)
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w=`echo x $ac_old_val`
2276 ac_new_val_w=`echo x $ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280 ac_cache_corrupted=:
2281 else
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\$ac_old_val
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2290 fi;;
2291 esac
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2294 case $ac_new_val in
2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 *) ac_arg=$ac_var=$ac_new_val ;;
2297 esac
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301 esac
2302 fi
2303 done
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 fi
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2314
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322
2323 ac_config_headers="$ac_config_headers config.h"
2324
2325 ac_aux_dir=
2326 for ac_dir in . "$srcdir"/.; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354
2355 # Initialize Automake
2356 am__api_version='1.11'
2357
2358 # Find a good install program. We prefer a C program (faster),
2359 # so one script is as good as another. But avoid the broken or
2360 # incompatible versions:
2361 # SysV /etc/install, /usr/sbin/install
2362 # SunOS /usr/etc/install
2363 # IRIX /sbin/install
2364 # AIX /bin/install
2365 # AmigaOS /C/install, which installs bootblocks on floppy discs
2366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2369 # OS/2's system install, which has a completely different semantic
2370 # ./install, which can be erroneously created by make from ./install.sh.
2371 # Reject install programs that cannot install multiple files.
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2373 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2374 if test -z "$INSTALL"; then
2375 if ${ac_cv_path_install+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2380 do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 # Account for people who put trailing slashes in PATH elements.
2384 case $as_dir/ in #((
2385 ./ | .// | /[cC]/* | \
2386 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2387 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2388 /usr/ucb/* ) ;;
2389 *)
2390 # OSF1 and SCO ODT 3.0 have their own names for install.
2391 # Don't use installbsd from OSF since it installs stuff as root
2392 # by default.
2393 for ac_prog in ginstall scoinst install; do
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2396 if test $ac_prog = install &&
2397 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398 # AIX install. It has an incompatible calling convention.
2399 :
2400 elif test $ac_prog = install &&
2401 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # program-specific install script used by HP pwplus--don't use.
2403 :
2404 else
2405 rm -rf conftest.one conftest.two conftest.dir
2406 echo one > conftest.one
2407 echo two > conftest.two
2408 mkdir conftest.dir
2409 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2410 test -s conftest.one && test -s conftest.two &&
2411 test -s conftest.dir/conftest.one &&
2412 test -s conftest.dir/conftest.two
2413 then
2414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2415 break 3
2416 fi
2417 fi
2418 fi
2419 done
2420 done
2421 ;;
2422 esac
2423
2424 done
2425 IFS=$as_save_IFS
2426
2427 rm -rf conftest.one conftest.two conftest.dir
2428
2429 fi
2430 if test "${ac_cv_path_install+set}" = set; then
2431 INSTALL=$ac_cv_path_install
2432 else
2433 # As a last resort, use the slow shell script. Don't cache a
2434 # value for INSTALL within a source directory, because that will
2435 # break other packages using the cache if that directory is
2436 # removed, or if the value is a relative name.
2437 INSTALL=$ac_install_sh
2438 fi
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2441 $as_echo "$INSTALL" >&6; }
2442
2443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2444 # It thinks the first close brace ends the variable substitution.
2445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446
2447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448
2449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2450
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2452 $as_echo_n "checking whether build environment is sane... " >&6; }
2453 # Just in case
2454 sleep 1
2455 echo timestamp > conftest.file
2456 # Reject unsafe characters in $srcdir or the absolute working directory
2457 # name. Accept space and tab only in the latter.
2458 am_lf='
2459 '
2460 case `pwd` in
2461 *[\\\"\#\$\&\'\`$am_lf]*)
2462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463 esac
2464 case $srcdir in
2465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2466 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2467 esac
2468
2469 # Do `set' in a subshell so we don't clobber the current shell's
2470 # arguments. Must try -L first in case configure is actually a
2471 # symlink; some systems play weird games with the mod time of symlinks
2472 # (eg FreeBSD returns the mod time of the symlink's containing
2473 # directory).
2474 if (
2475 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2476 if test "$*" = "X"; then
2477 # -L didn't work.
2478 set X `ls -t "$srcdir/configure" conftest.file`
2479 fi
2480 rm -f conftest.file
2481 if test "$*" != "X $srcdir/configure conftest.file" \
2482 && test "$*" != "X conftest.file $srcdir/configure"; then
2483
2484 # If neither matched, then we have a broken ls. This can happen
2485 # if, for instance, CONFIG_SHELL is bash and it inherits a
2486 # broken ls alias from the environment. This has actually
2487 # happened. Such a system could not be considered "sane".
2488 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2489 alias in your environment" "$LINENO" 5
2490 fi
2491
2492 test "$2" = conftest.file
2493 )
2494 then
2495 # Ok.
2496 :
2497 else
2498 as_fn_error $? "newly created file is older than distributed files!
2499 Check your system clock" "$LINENO" 5
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502 $as_echo "yes" >&6; }
2503 test "$program_prefix" != NONE &&
2504 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2505 # Use a double $ so make ignores it.
2506 test "$program_suffix" != NONE &&
2507 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2508 # Double any \ or $.
2509 # By default was `s,x,x', remove it if useless.
2510 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2511 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2512
2513 # expand $ac_aux_dir to an absolute path
2514 am_aux_dir=`cd $ac_aux_dir && pwd`
2515
2516 if test x"${MISSING+set}" != xset; then
2517 case $am_aux_dir in
2518 *\ * | *\ *)
2519 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2520 *)
2521 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2522 esac
2523 fi
2524 # Use eval to expand $SHELL
2525 if eval "$MISSING --run true"; then
2526 am_missing_run="$MISSING --run "
2527 else
2528 am_missing_run=
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2530 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2531 fi
2532
2533 if test x"${install_sh}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2537 *)
2538 install_sh="\${SHELL} $am_aux_dir/install-sh"
2539 esac
2540 fi
2541
2542 # Installed binaries are usually stripped using `strip' when the user
2543 # run `make install-strip'. However `strip' might not be the right
2544 # tool to use in cross-compilation environments, therefore Automake
2545 # will honor the `STRIP' environment variable to overrule this program.
2546 if test "$cross_compiling" != no; then
2547 if test -n "$ac_tool_prefix"; then
2548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2549 set dummy ${ac_tool_prefix}strip; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_STRIP+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$STRIP"; then
2556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 STRIP=$ac_cv_prog_STRIP
2576 if test -n "$STRIP"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2578 $as_echo "$STRIP" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2582 fi
2583
2584
2585 fi
2586 if test -z "$ac_cv_prog_STRIP"; then
2587 ac_ct_STRIP=$STRIP
2588 # Extract the first word of "strip", so it can be a program name with args.
2589 set dummy strip; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$ac_ct_STRIP"; then
2596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_ac_ct_STRIP="strip"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2616 if test -n "$ac_ct_STRIP"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2618 $as_echo "$ac_ct_STRIP" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624 if test "x$ac_ct_STRIP" = x; then
2625 STRIP=":"
2626 else
2627 case $cross_compiling:$ac_tool_warned in
2628 yes:)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633 STRIP=$ac_ct_STRIP
2634 fi
2635 else
2636 STRIP="$ac_cv_prog_STRIP"
2637 fi
2638
2639 fi
2640 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2643 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2644 if test -z "$MKDIR_P"; then
2645 if ${ac_cv_path_mkdir+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_prog in mkdir gmkdir; do
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2656 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2657 'mkdir (GNU coreutils) '* | \
2658 'mkdir (coreutils) '* | \
2659 'mkdir (fileutils) '4.1*)
2660 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2661 break 3;;
2662 esac
2663 done
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669
2670 test -d ./--version && rmdir ./--version
2671 if test "${ac_cv_path_mkdir+set}" = set; then
2672 MKDIR_P="$ac_cv_path_mkdir -p"
2673 else
2674 # As a last resort, use the slow shell script. Don't cache a
2675 # value for MKDIR_P within a source directory, because that will
2676 # break other packages using the cache if that directory is
2677 # removed, or if the value is a relative name.
2678 MKDIR_P="$ac_install_sh -d"
2679 fi
2680 fi
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2682 $as_echo "$MKDIR_P" >&6; }
2683
2684 mkdir_p="$MKDIR_P"
2685 case $mkdir_p in
2686 [\\/$]* | ?:[\\/]*) ;;
2687 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2688 esac
2689
2690 for ac_prog in gawk mawk nawk awk
2691 do
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_AWK+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$AWK"; then
2700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_AWK="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 AWK=$ac_cv_prog_AWK
2720 if test -n "$AWK"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722 $as_echo "$AWK" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 test -n "$AWK" && break
2730 done
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734 set x ${MAKE-make}
2735 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 cat >conftest.make <<\_ACEOF
2740 SHELL = /bin/sh
2741 all:
2742 @echo '@@@%%%=$(MAKE)=@@@%%%'
2743 _ACEOF
2744 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746 *@@@%%%=?*=@@@%%%*)
2747 eval ac_cv_prog_make_${ac_make}_set=yes;;
2748 *)
2749 eval ac_cv_prog_make_${ac_make}_set=no;;
2750 esac
2751 rm -f conftest.make
2752 fi
2753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 SET_MAKE=
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 SET_MAKE="MAKE=${MAKE-make}"
2761 fi
2762
2763 rm -rf .tst 2>/dev/null
2764 mkdir .tst 2>/dev/null
2765 if test -d .tst; then
2766 am__leading_dot=.
2767 else
2768 am__leading_dot=_
2769 fi
2770 rmdir .tst 2>/dev/null
2771
2772 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2773 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2774 # is not polluted with repeated "-I."
2775 am__isrc=' -I$(srcdir)'
2776 # test to see if srcdir already configured
2777 if test -f $srcdir/config.status; then
2778 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2779 fi
2780 fi
2781
2782 # test whether we have cygpath
2783 if test -z "$CYGPATH_W"; then
2784 if (cygpath --version) >/dev/null 2>/dev/null; then
2785 CYGPATH_W='cygpath -w'
2786 else
2787 CYGPATH_W=echo
2788 fi
2789 fi
2790
2791
2792 # Define the identity of the package.
2793 PACKAGE='xf86-video-savage'
2794 VERSION='2.3.6'
2795
2796
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE "$PACKAGE"
2799 _ACEOF
2800
2801
2802 cat >>confdefs.h <<_ACEOF
2803 #define VERSION "$VERSION"
2804 _ACEOF
2805
2806 # Some tools Automake needs.
2807
2808 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809
2810
2811 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812
2813
2814 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815
2816
2817 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818
2819
2820 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821
2822 # We need awk for the "check" target. The system "awk" is bad on
2823 # some platforms.
2824 # Always define AMTAR for backward compatibility. Yes, it's still used
2825 # in the wild :-( We should find a proper way to deprecate it ...
2826 AMTAR='$${TAR-tar}'
2827
2828 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2829
2830
2831
2832
2833
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2836 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2837 # Check whether --enable-maintainer-mode was given.
2838 if test "${enable_maintainer_mode+set}" = set; then :
2839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2840 else
2841 USE_MAINTAINER_MODE=no
2842 fi
2843
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2845 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2846 if test $USE_MAINTAINER_MODE = yes; then
2847 MAINTAINER_MODE_TRUE=
2848 MAINTAINER_MODE_FALSE='#'
2849 else
2850 MAINTAINER_MODE_TRUE='#'
2851 MAINTAINER_MODE_FALSE=
2852 fi
2853
2854 MAINT=$MAINTAINER_MODE_TRUE
2855
2856
2857
2858 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870 DEPDIR="${am__leading_dot}deps"
2871
2872 ac_config_commands="$ac_config_commands depfiles"
2873
2874
2875 am_make=${MAKE-make}
2876 cat > confinc << 'END'
2877 am__doit:
2878 @echo this is the am__doit target
2879 .PHONY: am__doit
2880 END
2881 # If we don't find an include directive, just comment out the code.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2883 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2884 am__include="#"
2885 am__quote=
2886 _am_result=none
2887 # First try GNU make style include.
2888 echo "include confinc" > confmf
2889 # Ignore all kinds of additional output from `make'.
2890 case `$am_make -s -f confmf 2> /dev/null` in #(
2891 *the\ am__doit\ target*)
2892 am__include=include
2893 am__quote=
2894 _am_result=GNU
2895 ;;
2896 esac
2897 # Now try BSD make style include.
2898 if test "$am__include" = "#"; then
2899 echo '.include "confinc"' > confmf
2900 case `$am_make -s -f confmf 2> /dev/null` in #(
2901 *the\ am__doit\ target*)
2902 am__include=.include
2903 am__quote="\""
2904 _am_result=BSD
2905 ;;
2906 esac
2907 fi
2908
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2911 $as_echo "$_am_result" >&6; }
2912 rm -f confinc confmf
2913
2914 # Check whether --enable-dependency-tracking was given.
2915 if test "${enable_dependency_tracking+set}" = set; then :
2916 enableval=$enable_dependency_tracking;
2917 fi
2918
2919 if test "x$enable_dependency_tracking" != xno; then
2920 am_depcomp="$ac_aux_dir/depcomp"
2921 AMDEPBACKSLASH='\'
2922 am__nodep='_no'
2923 fi
2924 if test "x$enable_dependency_tracking" != xno; then
2925 AMDEP_TRUE=
2926 AMDEP_FALSE='#'
2927 else
2928 AMDEP_TRUE='#'
2929 AMDEP_FALSE=
2930 fi
2931
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$ac_cv_prog_CC"; then
2978 ac_ct_CC=$CC
2979 # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3025 fi
3026 else
3027 CC="$ac_cv_prog_CC"
3028 fi
3029
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}cc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_CC="${ac_tool_prefix}cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 fi
3070 fi
3071 if test -z "$CC"; then
3072 # Extract the first word of "cc", so it can be a program name with args.
3073 set dummy cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 ac_prog_rejected=no
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091 ac_prog_rejected=yes
3092 continue
3093 fi
3094 ac_cv_prog_CC="cc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3105 shift
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3110 shift
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112 fi
3113 fi
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 fi
3127 if test -z "$CC"; then
3128 if test -n "$ac_tool_prefix"; then
3129 for ac_prog in cl.exe
3130 do
3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 test -n "$CC" && break
3169 done
3170 fi
3171 if test -z "$CC"; then
3172 ac_ct_CC=$CC
3173 for ac_prog in cl.exe
3174 do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212 test -n "$ac_ct_CC" && break
3213 done
3214
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224 CC=$ac_ct_CC
3225 fi
3226 fi
3227
3228 fi
3229
3230
3231 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details" "$LINENO" 5; }
3235
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 for ac_option in --version -v -V -qversion; do
3241 { { ac_try="$ac_compiler $ac_option >&5"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249 ac_status=$?
3250 if test -s conftest.err; then
3251 sed '10a\
3252 ... rest of stderr output deleted ...
3253 10q' conftest.err >conftest.er1
3254 cat conftest.er1 >&5
3255 fi
3256 rm -f conftest.er1 conftest.err
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }
3259 done
3260
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263
3264 int
3265 main ()
3266 {
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 ac_clean_files_save=$ac_clean_files
3273 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3274 # Try to create an executable without -o first, disregard a.out.
3275 # It will help us diagnose broken compilers, and finding out an intuition
3276 # of exeext.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278 $as_echo_n "checking whether the C compiler works... " >&6; }
3279 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3280
3281 # The possible output files:
3282 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3283
3284 ac_rmfiles=
3285 for ac_file in $ac_files
3286 do
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290 esac
3291 done
3292 rm -f $ac_rmfiles
3293
3294 if { { ac_try="$ac_link_default"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link_default") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3308 # so that the user can short-circuit this test for compilers unknown to
3309 # Autoconf.
3310 for ac_file in $ac_files ''
3311 do
3312 test -f "$ac_file" || continue
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3315 ;;
3316 [ab].out )
3317 # We found the default executable, but exeext='' is most
3318 # certainly right.
3319 break;;
3320 *.* )
3321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3322 then :; else
3323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 fi
3325 # We set ac_cv_exeext here because the later test for it is not
3326 # safe: cross compilers may not add the suffix if given an `-o'
3327 # argument, so we may need to know it at that point already.
3328 # Even if this section looks crufty: it has the advantage of
3329 # actually working.
3330 break;;
3331 * )
3332 break;;
3333 esac
3334 done
3335 test "$ac_cv_exeext" = no && ac_cv_exeext=
3336
3337 else
3338 ac_file=''
3339 fi
3340 if test -z "$ac_file"; then :
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error 77 "C compiler cannot create executables
3349 See \`config.log' for more details" "$LINENO" 5; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355 $as_echo_n "checking for C compiler default output file name... " >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357 $as_echo "$ac_file" >&6; }
3358 ac_exeext=$ac_cv_exeext
3359
3360 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3363 $as_echo_n "checking for suffix of executables... " >&6; }
3364 if { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3376 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3377 # work properly (i.e., refer to `conftest.exe'), while it won't with
3378 # `rm'.
3379 for ac_file in conftest.exe conftest conftest.*; do
3380 test -f "$ac_file" || continue
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384 break;;
3385 * ) break;;
3386 esac
3387 done
3388 else
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3392 See \`config.log' for more details" "$LINENO" 5; }
3393 fi
3394 rm -f conftest conftest$ac_cv_exeext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3396 $as_echo "$ac_cv_exeext" >&6; }
3397
3398 rm -f conftest.$ac_ext
3399 EXEEXT=$ac_cv_exeext
3400 ac_exeext=$EXEEXT
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3403 #include <stdio.h>
3404 int
3405 main ()
3406 {
3407 FILE *f = fopen ("conftest.out", "w");
3408 return ferror (f) || fclose (f) != 0;
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files="$ac_clean_files conftest.out"
3415 # Check that the compiler produces executables we can run. If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 if test "$cross_compiling" != yes; then
3420 { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }
3431 if { ac_try='./conftest$ac_cv_exeext'
3432 { { case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_try") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; }; then
3442 cross_compiling=no
3443 else
3444 if test "$cross_compiling" = maybe; then
3445 cross_compiling=yes
3446 else
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "cannot run C compiled programs.
3450 If you meant to cross compile, use \`--host'.
3451 See \`config.log' for more details" "$LINENO" 5; }
3452 fi
3453 fi
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3456 $as_echo "$cross_compiling" >&6; }
3457
3458 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3459 ac_clean_files=$ac_clean_files_save
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461 $as_echo_n "checking for suffix of object files... " >&6; }
3462 if ${ac_cv_objext+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467
3468 int
3469 main ()
3470 {
3471
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.o conftest.obj
3477 if { { ac_try="$ac_compile"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_compile") 2>&5
3485 ac_status=$?
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }; then :
3488 for ac_file in conftest.o conftest.obj conftest.*; do
3489 test -f "$ac_file" || continue;
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493 break;;
3494 esac
3495 done
3496 else
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error $? "cannot compute suffix of object files: cannot compile
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 fi
3505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508 $as_echo "$ac_cv_objext" >&6; }
3509 OBJEXT=$ac_cv_objext
3510 ac_objext=$OBJEXT
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513 if ${ac_cv_c_compiler_gnu+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 int
3520 main ()
3521 {
3522 #ifndef __GNUC__
3523 choke me
3524 #endif
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_compiler_gnu=yes
3532 else
3533 ac_compiler_gnu=no
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541 if test $ac_compiler_gnu = yes; then
3542 GCC=yes
3543 else
3544 GCC=
3545 fi
3546 ac_test_CFLAGS=${CFLAGS+set}
3547 ac_save_CFLAGS=$CFLAGS
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3550 if ${ac_cv_prog_cc_g+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 ac_save_c_werror_flag=$ac_c_werror_flag
3554 ac_c_werror_flag=yes
3555 ac_cv_prog_cc_g=no
3556 CFLAGS="-g"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_g=yes
3570 else
3571 CFLAGS=""
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
3585 else
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3587 CFLAGS="-g"
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_g=yes
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610 $as_echo "$ac_cv_prog_cc_g" >&6; }
3611 if test "$ac_test_CFLAGS" = set; then
3612 CFLAGS=$ac_save_CFLAGS
3613 elif test $ac_cv_prog_cc_g = yes; then
3614 if test "$GCC" = yes; then
3615 CFLAGS="-g -O2"
3616 else
3617 CFLAGS="-g"
3618 fi
3619 else
3620 if test "$GCC" = yes; then
3621 CFLAGS="-O2"
3622 else
3623 CFLAGS=
3624 fi
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628 if ${ac_cv_prog_cc_c89+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 ac_cv_prog_cc_c89=no
3632 ac_save_CC=$CC
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <stdarg.h>
3636 #include <stdio.h>
3637 #include <sys/types.h>
3638 #include <sys/stat.h>
3639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3640 struct buf { int x; };
3641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642 static char *e (p, i)
3643 char **p;
3644 int i;
3645 {
3646 return p[i];
3647 }
3648 static char *f (char * (*g) (char **, int), char **p, ...)
3649 {
3650 char *s;
3651 va_list v;
3652 va_start (v,p);
3653 s = g (p, va_arg (v,int));
3654 va_end (v);
3655 return s;
3656 }
3657
3658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3659 function prototypes and stuff, but not '\xHH' hex character constants.
3660 These don't provoke an error unfortunately, instead are silently treated
3661 as 'x'. The following induces an error, until -std is added to get
3662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3663 array size at least. It's necessary to write '\x00'==0 to get something
3664 that's true only with -std. */
3665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666
3667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668 inside strings and character constants. */
3669 #define FOO(x) 'x'
3670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671
3672 int test (int i, double x);
3673 struct s1 {int (*f) (int a);};
3674 struct s2 {int (*f) (double a);};
3675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676 int argc;
3677 char **argv;
3678 int
3679 main ()
3680 {
3681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 do
3689 CC="$ac_save_CC $ac_arg"
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_c89=$ac_arg
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext
3694 test "x$ac_cv_prog_cc_c89" != "xno" && break
3695 done
3696 rm -f conftest.$ac_ext
3697 CC=$ac_save_CC
3698
3699 fi
3700 # AC_CACHE_VAL
3701 case "x$ac_cv_prog_cc_c89" in
3702 x)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704 $as_echo "none needed" >&6; } ;;
3705 xno)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;;
3708 *)
3709 CC="$CC $ac_cv_prog_cc_c89"
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3712 esac
3713 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714
3715 fi
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723 depcc="$CC" am_compiler_list=
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3726 $as_echo_n "checking dependency style of $depcc... " >&6; }
3727 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3731 # We make a subdir and do the tests there. Otherwise we can end up
3732 # making bogus files that we don't know about and never remove. For
3733 # instance it was reported that on HP-UX the gcc test will end up
3734 # making a dummy file named `D' -- because `-MD' means `put the output
3735 # in D'.
3736 rm -rf conftest.dir
3737 mkdir conftest.dir
3738 # Copy depcomp to subdir because otherwise we won't find it if we're
3739 # using a relative directory.
3740 cp "$am_depcomp" conftest.dir
3741 cd conftest.dir
3742 # We will build objects and dependencies in a subdirectory because
3743 # it helps to detect inapplicable dependency modes. For instance
3744 # both Tru64's cc and ICC support -MD to output dependencies as a
3745 # side effect of compilation, but ICC will put the dependencies in
3746 # the current directory while Tru64 will put them in the object
3747 # directory.
3748 mkdir sub
3749
3750 am_cv_CC_dependencies_compiler_type=none
3751 if test "$am_compiler_list" = ""; then
3752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3753 fi
3754 am__universal=false
3755 case " $depcc " in #(
3756 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3757 esac
3758
3759 for depmode in $am_compiler_list; do
3760 # Setup a source with many dependencies, because some compilers
3761 # like to wrap large dependency lists on column 80 (with \), and
3762 # we should not choose a depcomp mode which is confused by this.
3763 #
3764 # We need to recreate these files for each test, as the compiler may
3765 # overwrite some of them when testing with obscure command lines.
3766 # This happens at least with the AIX C compiler.
3767 : > sub/conftest.c
3768 for i in 1 2 3 4 5 6; do
3769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771 # Solaris 8's {/usr,}/bin/sh.
3772 touch sub/conftst$i.h
3773 done
3774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3776 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3777 # mode. It turns out that the SunPro C++ compiler does not properly
3778 # handle `-M -o', and we need to detect this. Also, some Intel
3779 # versions had trouble with output in subdirs
3780 am__obj=sub/conftest.${OBJEXT-o}
3781 am__minus_obj="-o $am__obj"
3782 case $depmode in
3783 gcc)
3784 # This depmode causes a compiler race in universal mode.
3785 test "$am__universal" = false || continue
3786 ;;
3787 nosideeffect)
3788 # after this tag, mechanisms are not by side-effect, so they'll
3789 # only be used when explicitly requested
3790 if test "x$enable_dependency_tracking" = xyes; then
3791 continue
3792 else
3793 break
3794 fi
3795 ;;
3796 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3797 # This compiler won't grok `-c -o', but also, the minuso test has
3798 # not run yet. These depmodes are late enough in the game, and
3799 # so weak that their functioning should not be impacted.
3800 am__obj=conftest.${OBJEXT-o}
3801 am__minus_obj=
3802 ;;
3803 none) break ;;
3804 esac
3805 if depmode=$depmode \
3806 source=sub/conftest.c object=$am__obj \
3807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3808 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3809 >/dev/null 2>conftest.err &&
3810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814 # icc doesn't choke on unknown options, it will just issue warnings
3815 # or remarks (even with -Werror). So we grep stderr for any message
3816 # that says an option was ignored or not supported.
3817 # When given -MP, icc 7.0 and 7.1 complain thusly:
3818 # icc: Command line warning: ignoring option '-M'; no argument required
3819 # The diagnosis changed in icc 8.0:
3820 # icc: Command line remark: option '-MP' not supported
3821 if (grep 'ignoring option' conftest.err ||
3822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823 am_cv_CC_dependencies_compiler_type=$depmode
3824 break
3825 fi
3826 fi
3827 done
3828
3829 cd ..
3830 rm -rf conftest.dir
3831 else
3832 am_cv_CC_dependencies_compiler_type=none
3833 fi
3834
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3837 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3838 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3839
3840 if
3841 test "x$enable_dependency_tracking" != xno \
3842 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3843 am__fastdepCC_TRUE=
3844 am__fastdepCC_FALSE='#'
3845 else
3846 am__fastdepCC_TRUE='#'
3847 am__fastdepCC_FALSE=
3848 fi
3849
3850
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3852 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3853 if ${ac_cv_prog_cc_c99+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_cv_prog_cc_c99=no
3857 ac_save_CC=$CC
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <stdarg.h>
3861 #include <stdbool.h>
3862 #include <stdlib.h>
3863 #include <wchar.h>
3864 #include <stdio.h>
3865
3866 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3867 #define debug(...) fprintf (stderr, __VA_ARGS__)
3868 #define showlist(...) puts (#__VA_ARGS__)
3869 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3870 static void
3871 test_varargs_macros (void)
3872 {
3873 int x = 1234;
3874 int y = 5678;
3875 debug ("Flag");
3876 debug ("X = %d\n", x);
3877 showlist (The first, second, and third items.);
3878 report (x>y, "x is %d but y is %d", x, y);
3879 }
3880
3881 // Check long long types.
3882 #define BIG64 18446744073709551615ull
3883 #define BIG32 4294967295ul
3884 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3885 #if !BIG_OK
3886 your preprocessor is broken;
3887 #endif
3888 #if BIG_OK
3889 #else
3890 your preprocessor is broken;
3891 #endif
3892 static long long int bignum = -9223372036854775807LL;
3893 static unsigned long long int ubignum = BIG64;
3894
3895 struct incomplete_array
3896 {
3897 int datasize;
3898 double data[];
3899 };
3900
3901 struct named_init {
3902 int number;
3903 const wchar_t *name;
3904 double average;
3905 };
3906
3907 typedef const char *ccp;
3908
3909 static inline int
3910 test_restrict (ccp restrict text)
3911 {
3912 // See if C++-style comments work.
3913 // Iterate through items via the restricted pointer.
3914 // Also check for declarations in for loops.
3915 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3916 continue;
3917 return 0;
3918 }
3919
3920 // Check varargs and va_copy.
3921 static void
3922 test_varargs (const char *format, ...)
3923 {
3924 va_list args;
3925 va_start (args, format);
3926 va_list args_copy;
3927 va_copy (args_copy, args);
3928
3929 const char *str;
3930 int number;
3931 float fnumber;
3932
3933 while (*format)
3934 {
3935 switch (*format++)
3936 {
3937 case 's': // string
3938 str = va_arg (args_copy, const char *);
3939 break;
3940 case 'd': // int
3941 number = va_arg (args_copy, int);
3942 break;
3943 case 'f': // float
3944 fnumber = va_arg (args_copy, double);
3945 break;
3946 default:
3947 break;
3948 }
3949 }
3950 va_end (args_copy);
3951 va_end (args);
3952 }
3953
3954 int
3955 main ()
3956 {
3957
3958 // Check bool.
3959 _Bool success = false;
3960
3961 // Check restrict.
3962 if (test_restrict ("String literal") == 0)
3963 success = true;
3964 char *restrict newvar = "Another string";
3965
3966 // Check varargs.
3967 test_varargs ("s, d' f .", "string", 65, 34.234);
3968 test_varargs_macros ();
3969
3970 // Check flexible array members.
3971 struct incomplete_array *ia =
3972 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3973 ia->datasize = 10;
3974 for (int i = 0; i < ia->datasize; ++i)
3975 ia->data[i] = i * 1.234;
3976
3977 // Check named initializers.
3978 struct named_init ni = {
3979 .number = 34,
3980 .name = L"Test wide string",
3981 .average = 543.34343,
3982 };
3983
3984 ni.number = 58;
3985
3986 int dynamic_array[ni.number];
3987 dynamic_array[ni.number - 1] = 543;
3988
3989 // work around unused variable warnings
3990 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3991 || dynamic_array[ni.number - 1] != 543);
3992
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3998 do
3999 CC="$ac_save_CC $ac_arg"
4000 if ac_fn_c_try_compile "$LINENO"; then :
4001 ac_cv_prog_cc_c99=$ac_arg
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext
4004 test "x$ac_cv_prog_cc_c99" != "xno" && break
4005 done
4006 rm -f conftest.$ac_ext
4007 CC=$ac_save_CC
4008
4009 fi
4010 # AC_CACHE_VAL
4011 case "x$ac_cv_prog_cc_c99" in
4012 x)
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;;
4015 xno)
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4017 $as_echo "unsupported" >&6; } ;;
4018 *)
4019 CC="$CC $ac_cv_prog_cc_c99"
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4021 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4022 esac
4023 if test "x$ac_cv_prog_cc_c99" != xno; then :
4024
4025 fi
4026
4027
4028
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4035 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4036 # On Suns, sometimes $CPP names a directory.
4037 if test -n "$CPP" && test -d "$CPP"; then
4038 CPP=
4039 fi
4040 if test -z "$CPP"; then
4041 if ${ac_cv_prog_CPP+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 # Double quotes because CPP needs to be expanded
4045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4046 do
4047 ac_preproc_ok=false
4048 for ac_c_preproc_warn_flag in '' yes
4049 do
4050 # Use a header file that comes with gcc, so configuring glibc
4051 # with a fresh cross-compiler works.
4052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053 # <limits.h> exists even on freestanding compilers.
4054 # On the NeXT, cc -E runs the code through the compiler's parser,
4055 # not just through cpp. "Syntax error" is here to catch this case.
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #ifdef __STDC__
4059 # include <limits.h>
4060 #else
4061 # include <assert.h>
4062 #endif
4063 Syntax error
4064 _ACEOF
4065 if ac_fn_c_try_cpp "$LINENO"; then :
4066
4067 else
4068 # Broken: fails on valid input.
4069 continue
4070 fi
4071 rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073 # OK, works on sane cases. Now check whether nonexistent headers
4074 # can be detected and how.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077 #include <ac_nonexistent.h>
4078 _ACEOF
4079 if ac_fn_c_try_cpp "$LINENO"; then :
4080 # Broken: success on invalid input.
4081 continue
4082 else
4083 # Passes both tests.
4084 ac_preproc_ok=:
4085 break
4086 fi
4087 rm -f conftest.err conftest.i conftest.$ac_ext
4088
4089 done
4090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091 rm -f conftest.i conftest.err conftest.$ac_ext
4092 if $ac_preproc_ok; then :
4093 break
4094 fi
4095
4096 done
4097 ac_cv_prog_CPP=$CPP
4098
4099 fi
4100 CPP=$ac_cv_prog_CPP
4101 else
4102 ac_cv_prog_CPP=$CPP
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4105 $as_echo "$CPP" >&6; }
4106 ac_preproc_ok=false
4107 for ac_c_preproc_warn_flag in '' yes
4108 do
4109 # Use a header file that comes with gcc, so configuring glibc
4110 # with a fresh cross-compiler works.
4111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 # <limits.h> exists even on freestanding compilers.
4113 # On the NeXT, cc -E runs the code through the compiler's parser,
4114 # not just through cpp. "Syntax error" is here to catch this case.
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #ifdef __STDC__
4118 # include <limits.h>
4119 #else
4120 # include <assert.h>
4121 #endif
4122 Syntax error
4123 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4125
4126 else
4127 # Broken: fails on valid input.
4128 continue
4129 fi
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #include <ac_nonexistent.h>
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4139 # Broken: success on invalid input.
4140 continue
4141 else
4142 # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4145 fi
4146 rm -f conftest.err conftest.i conftest.$ac_ext
4147
4148 done
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.i conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then :
4152
4153 else
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4157 See \`config.log' for more details" "$LINENO" 5; }
4158 fi
4159
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4168 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4169 if ${ac_cv_path_GREP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -z "$GREP"; then
4173 ac_path_GREP_found=false
4174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_prog in grep ggrep; do
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4184 # Check for GNU ac_path_GREP and select it if it is found.
4185 # Check for GNU $ac_path_GREP
4186 case `"$ac_path_GREP" --version 2>&1` in
4187 *GNU*)
4188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4189 *)
4190 ac_count=0
4191 $as_echo_n 0123456789 >"conftest.in"
4192 while :
4193 do
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 $as_echo 'GREP' >> "conftest.nl"
4198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200 as_fn_arith $ac_count + 1 && ac_count=$as_val
4201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_GREP="$ac_path_GREP"
4204 ac_path_GREP_max=$ac_count
4205 fi
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4208 done
4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 esac
4211
4212 $ac_path_GREP_found && break 3
4213 done
4214 done
4215 done
4216 IFS=$as_save_IFS
4217 if test -z "$ac_cv_path_GREP"; then
4218 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4219 fi
4220 else
4221 ac_cv_path_GREP=$GREP
4222 fi
4223
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4226 $as_echo "$ac_cv_path_GREP" >&6; }
4227 GREP="$ac_cv_path_GREP"
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4231 $as_echo_n "checking for egrep... " >&6; }
4232 if ${ac_cv_path_EGREP+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4236 then ac_cv_path_EGREP="$GREP -E"
4237 else
4238 if test -z "$EGREP"; then
4239 ac_path_EGREP_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in egrep; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4250 # Check for GNU ac_path_EGREP and select it if it is found.
4251 # Check for GNU $ac_path_EGREP
4252 case `"$ac_path_EGREP" --version 2>&1` in
4253 *GNU*)
4254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4255 *)
4256 ac_count=0
4257 $as_echo_n 0123456789 >"conftest.in"
4258 while :
4259 do
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo 'EGREP' >> "conftest.nl"
4264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_EGREP="$ac_path_EGREP"
4270 ac_path_EGREP_max=$ac_count
4271 fi
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4274 done
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278 $ac_path_EGREP_found && break 3
4279 done
4280 done
4281 done
4282 IFS=$as_save_IFS
4283 if test -z "$ac_cv_path_EGREP"; then
4284 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285 fi
4286 else
4287 ac_cv_path_EGREP=$EGREP
4288 fi
4289
4290 fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4293 $as_echo "$ac_cv_path_EGREP" >&6; }
4294 EGREP="$ac_cv_path_EGREP"
4295
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4298 $as_echo_n "checking for ANSI C header files... " >&6; }
4299 if ${ac_cv_header_stdc+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <stdlib.h>
4305 #include <stdarg.h>
4306 #include <string.h>
4307 #include <float.h>
4308
4309 int
4310 main ()
4311 {
4312
4313 ;
4314 return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318 ac_cv_header_stdc=yes
4319 else
4320 ac_cv_header_stdc=no
4321 fi
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323
4324 if test $ac_cv_header_stdc = yes; then
4325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <string.h>
4329
4330 _ACEOF
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "memchr" >/dev/null 2>&1; then :
4333
4334 else
4335 ac_cv_header_stdc=no
4336 fi
4337 rm -f conftest*
4338
4339 fi
4340
4341 if test $ac_cv_header_stdc = yes; then
4342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <stdlib.h>
4346
4347 _ACEOF
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "free" >/dev/null 2>&1; then :
4350
4351 else
4352 ac_cv_header_stdc=no
4353 fi
4354 rm -f conftest*
4355
4356 fi
4357
4358 if test $ac_cv_header_stdc = yes; then
4359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360 if test "$cross_compiling" = yes; then :
4361 :
4362 else
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365 #include <ctype.h>
4366 #include <stdlib.h>
4367 #if ((' ' & 0x0FF) == 0x020)
4368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370 #else
4371 # define ISLOWER(c) \
4372 (('a' <= (c) && (c) <= 'i') \
4373 || ('j' <= (c) && (c) <= 'r') \
4374 || ('s' <= (c) && (c) <= 'z'))
4375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376 #endif
4377
4378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379 int
4380 main ()
4381 {
4382 int i;
4383 for (i = 0; i < 256; i++)
4384 if (XOR (islower (i), ISLOWER (i))
4385 || toupper (i) != TOUPPER (i))
4386 return 2;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_run "$LINENO"; then :
4391
4392 else
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4396 conftest.$ac_objext conftest.beam conftest.$ac_ext
4397 fi
4398
4399 fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4402 $as_echo "$ac_cv_header_stdc" >&6; }
4403 if test $ac_cv_header_stdc = yes; then
4404
4405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4406
4407 fi
4408
4409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4411 inttypes.h stdint.h unistd.h
4412 do :
4413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4415 "
4416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4417 cat >>confdefs.h <<_ACEOF
4418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4419 _ACEOF
4420
4421 fi
4422
4423 done
4424
4425
4426
4427
4428
4429
4430 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4431 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4432 CLANGCC="yes"
4433 else
4434 CLANGCC="no"
4435 fi
4436
4437 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4438 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4439 INTELCC="yes"
4440 else
4441 INTELCC="no"
4442 fi
4443
4444 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4445 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4446 SUNCC="yes"
4447 else
4448 SUNCC="no"
4449 fi
4450
4451
4452
4453
4454
4455
4456
4457
4458 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4459 if test -n "$ac_tool_prefix"; then
4460 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4461 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 case $PKG_CONFIG in
4468 [\\/]* | ?:[\\/]*)
4469 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4470 ;;
4471 *)
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 ;;
4488 esac
4489 fi
4490 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4491 if test -n "$PKG_CONFIG"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4493 $as_echo "$PKG_CONFIG" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498
4499
4500 fi
4501 if test -z "$ac_cv_path_PKG_CONFIG"; then
4502 ac_pt_PKG_CONFIG=$PKG_CONFIG
4503 # Extract the first word of "pkg-config", so it can be a program name with args.
4504 set dummy pkg-config; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 case $ac_pt_PKG_CONFIG in
4511 [\\/]* | ?:[\\/]*)
4512 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4513 ;;
4514 *)
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4529
4530 ;;
4531 esac
4532 fi
4533 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4534 if test -n "$ac_pt_PKG_CONFIG"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4536 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4540 fi
4541
4542 if test "x$ac_pt_PKG_CONFIG" = x; then
4543 PKG_CONFIG=""
4544 else
4545 case $cross_compiling:$ac_tool_warned in
4546 yes:)
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549 ac_tool_warned=yes ;;
4550 esac
4551 PKG_CONFIG=$ac_pt_PKG_CONFIG
4552 fi
4553 else
4554 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4555 fi
4556
4557 fi
4558 if test -n "$PKG_CONFIG"; then
4559 _pkg_min_version=0.9.0
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4561 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4562 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564 $as_echo "yes" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 PKG_CONFIG=""
4569 fi
4570 fi
4571 # Make sure we can run config.sub.
4572 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4573 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4576 $as_echo_n "checking build system type... " >&6; }
4577 if ${ac_cv_build+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 ac_build_alias=$build_alias
4581 test "x$ac_build_alias" = x &&
4582 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4583 test "x$ac_build_alias" = x &&
4584 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4585 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4587
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4590 $as_echo "$ac_cv_build" >&6; }
4591 case $ac_cv_build in
4592 *-*-*) ;;
4593 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4594 esac
4595 build=$ac_cv_build
4596 ac_save_IFS=$IFS; IFS='-'
4597 set x $ac_cv_build
4598 shift
4599 build_cpu=$1
4600 build_vendor=$2
4601 shift; shift
4602 # Remember, the first character of IFS is used to create $*,
4603 # except with old shells:
4604 build_os=$*
4605 IFS=$ac_save_IFS
4606 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4607
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4610 $as_echo_n "checking host system type... " >&6; }
4611 if ${ac_cv_host+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test "x$host_alias" = x; then
4615 ac_cv_host=$ac_cv_build
4616 else
4617 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4619 fi
4620
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4623 $as_echo "$ac_cv_host" >&6; }
4624 case $ac_cv_host in
4625 *-*-*) ;;
4626 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4627 esac
4628 host=$ac_cv_host
4629 ac_save_IFS=$IFS; IFS='-'
4630 set x $ac_cv_host
4631 shift
4632 host_cpu=$1
4633 host_vendor=$2
4634 shift; shift
4635 # Remember, the first character of IFS is used to create $*,
4636 # except with old shells:
4637 host_os=$*
4638 IFS=$ac_save_IFS
4639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4640
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4643 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4644 if ${ac_cv_path_SED+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4648 for ac_i in 1 2 3 4 5 6 7; do
4649 ac_script="$ac_script$as_nl$ac_script"
4650 done
4651 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4652 { ac_script=; unset ac_script;}
4653 if test -z "$SED"; then
4654 ac_path_SED_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in sed gsed; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4664 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4665 # Check for GNU ac_path_SED and select it if it is found.
4666 # Check for GNU $ac_path_SED
4667 case `"$ac_path_SED" --version 2>&1` in
4668 *GNU*)
4669 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4670 *)
4671 ac_count=0
4672 $as_echo_n 0123456789 >"conftest.in"
4673 while :
4674 do
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo '' >> "conftest.nl"
4679 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_SED_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_SED="$ac_path_SED"
4685 ac_path_SED_max=$ac_count
4686 fi
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4689 done
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4692
4693 $ac_path_SED_found && break 3
4694 done
4695 done
4696 done
4697 IFS=$as_save_IFS
4698 if test -z "$ac_cv_path_SED"; then
4699 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4700 fi
4701 else
4702 ac_cv_path_SED=$SED
4703 fi
4704
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4707 $as_echo "$ac_cv_path_SED" >&6; }
4708 SED="$ac_cv_path_SED"
4709 rm -f conftest.sed
4710
4711
4712
4713
4714
4715
4716 # Check whether --enable-selective-werror was given.
4717 if test "${enable_selective_werror+set}" = set; then :
4718 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4719 else
4720 SELECTIVE_WERROR=yes
4721 fi
4722
4723
4724
4725
4726
4727 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4728 if test "x$SUNCC" = "xyes"; then
4729 BASE_CFLAGS="-v"
4730 else
4731 BASE_CFLAGS=""
4732 fi
4733
4734 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748 xorg_testset_save_CFLAGS="$CFLAGS"
4749
4750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 int i;
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 xorg_cv_cc_flag_unknown_warning_option=yes
4763 else
4764 xorg_cv_cc_flag_unknown_warning_option=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4771 CFLAGS="$xorg_testset_save_CFLAGS"
4772 fi
4773
4774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777 fi
4778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 int i;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 xorg_cv_cc_flag_unused_command_line_argument=yes
4790 else
4791 xorg_cv_cc_flag_unused_command_line_argument=no
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4798 CFLAGS="$xorg_testset_save_CFLAGS"
4799 fi
4800
4801 found="no"
4802
4803 if test $found = "no" ; then
4804 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4806 fi
4807
4808 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4810 fi
4811
4812 CFLAGS="$CFLAGS -Wall"
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4815 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4816 cacheid=xorg_cv_cc_flag__Wall
4817 if eval \${$cacheid+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 int i;
4823 int
4824 main ()
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_link "$LINENO"; then :
4832 eval $cacheid=yes
4833 else
4834 eval $cacheid=no
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838 fi
4839
4840
4841 CFLAGS="$xorg_testset_save_CFLAGS"
4842
4843 eval supported=\$$cacheid
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4845 $as_echo "$supported" >&6; }
4846 if test "$supported" = "yes" ; then
4847 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4848 found="yes"
4849 fi
4850 fi
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 xorg_testset_save_CFLAGS="$CFLAGS"
4867
4868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4871 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4872 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 int i;
4878 _ACEOF
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 xorg_cv_cc_flag_unknown_warning_option=yes
4881 else
4882 xorg_cv_cc_flag_unknown_warning_option=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4887 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4889 CFLAGS="$xorg_testset_save_CFLAGS"
4890 fi
4891
4892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895 fi
4896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4898 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4899 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 int i;
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 xorg_cv_cc_flag_unused_command_line_argument=yes
4908 else
4909 xorg_cv_cc_flag_unused_command_line_argument=no
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4914 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4916 CFLAGS="$xorg_testset_save_CFLAGS"
4917 fi
4918
4919 found="no"
4920
4921 if test $found = "no" ; then
4922 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4924 fi
4925
4926 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4928 fi
4929
4930 CFLAGS="$CFLAGS -Wpointer-arith"
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4933 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4934 cacheid=xorg_cv_cc_flag__Wpointer_arith
4935 if eval \${$cacheid+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 int i;
4941 int
4942 main ()
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_link "$LINENO"; then :
4950 eval $cacheid=yes
4951 else
4952 eval $cacheid=no
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext \
4955 conftest$ac_exeext conftest.$ac_ext
4956 fi
4957
4958
4959 CFLAGS="$xorg_testset_save_CFLAGS"
4960
4961 eval supported=\$$cacheid
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4963 $as_echo "$supported" >&6; }
4964 if test "$supported" = "yes" ; then
4965 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4966 found="yes"
4967 fi
4968 fi
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984 xorg_testset_save_CFLAGS="$CFLAGS"
4985
4986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 int i;
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"; then :
4998 xorg_cv_cc_flag_unknown_warning_option=yes
4999 else
5000 xorg_cv_cc_flag_unknown_warning_option=no
5001 fi
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5007 CFLAGS="$xorg_testset_save_CFLAGS"
5008 fi
5009
5010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013 fi
5014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 int i;
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 xorg_cv_cc_flag_unused_command_line_argument=yes
5026 else
5027 xorg_cv_cc_flag_unused_command_line_argument=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5034 CFLAGS="$xorg_testset_save_CFLAGS"
5035 fi
5036
5037 found="no"
5038
5039 if test $found = "no" ; then
5040 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5042 fi
5043
5044 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5046 fi
5047
5048 CFLAGS="$CFLAGS -Wmissing-declarations"
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5051 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5052 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5053 if eval \${$cacheid+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 int i;
5059 int
5060 main ()
5061 {
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 if ac_fn_c_try_link "$LINENO"; then :
5068 eval $cacheid=yes
5069 else
5070 eval $cacheid=no
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext \
5073 conftest$ac_exeext conftest.$ac_ext
5074 fi
5075
5076
5077 CFLAGS="$xorg_testset_save_CFLAGS"
5078
5079 eval supported=\$$cacheid
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5081 $as_echo "$supported" >&6; }
5082 if test "$supported" = "yes" ; then
5083 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5084 found="yes"
5085 fi
5086 fi
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 xorg_testset_save_CFLAGS="$CFLAGS"
5103
5104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5107 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5108 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 int i;
5114 _ACEOF
5115 if ac_fn_c_try_compile "$LINENO"; then :
5116 xorg_cv_cc_flag_unknown_warning_option=yes
5117 else
5118 xorg_cv_cc_flag_unknown_warning_option=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5123 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5125 CFLAGS="$xorg_testset_save_CFLAGS"
5126 fi
5127
5128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131 fi
5132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5134 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5135 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 int i;
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 xorg_cv_cc_flag_unused_command_line_argument=yes
5144 else
5145 xorg_cv_cc_flag_unused_command_line_argument=no
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5150 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5152 CFLAGS="$xorg_testset_save_CFLAGS"
5153 fi
5154
5155 found="no"
5156
5157 if test $found = "no" ; then
5158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160 fi
5161
5162 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5164 fi
5165
5166 CFLAGS="$CFLAGS -Wformat=2"
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5169 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5170 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5171 if eval \${$cacheid+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 int i;
5177 int
5178 main ()
5179 {
5180
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 if ac_fn_c_try_link "$LINENO"; then :
5186 eval $cacheid=yes
5187 else
5188 eval $cacheid=no
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext \
5191 conftest$ac_exeext conftest.$ac_ext
5192 fi
5193
5194
5195 CFLAGS="$xorg_testset_save_CFLAGS"
5196
5197 eval supported=\$$cacheid
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5199 $as_echo "$supported" >&6; }
5200 if test "$supported" = "yes" ; then
5201 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5202 found="yes"
5203 fi
5204 fi
5205
5206 if test $found = "no" ; then
5207 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209 fi
5210
5211 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5213 fi
5214
5215 CFLAGS="$CFLAGS -Wformat"
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5218 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5219 cacheid=xorg_cv_cc_flag__Wformat
5220 if eval \${$cacheid+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 int i;
5226 int
5227 main ()
5228 {
5229
5230 ;
5231 return 0;
5232 }
5233 _ACEOF
5234 if ac_fn_c_try_link "$LINENO"; then :
5235 eval $cacheid=yes
5236 else
5237 eval $cacheid=no
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5241 fi
5242
5243
5244 CFLAGS="$xorg_testset_save_CFLAGS"
5245
5246 eval supported=\$$cacheid
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5248 $as_echo "$supported" >&6; }
5249 if test "$supported" = "yes" ; then
5250 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5251 found="yes"
5252 fi
5253 fi
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 xorg_testset_save_CFLAGS="$CFLAGS"
5272
5273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 int i;
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 xorg_cv_cc_flag_unknown_warning_option=yes
5286 else
5287 xorg_cv_cc_flag_unknown_warning_option=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5294 CFLAGS="$xorg_testset_save_CFLAGS"
5295 fi
5296
5297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300 fi
5301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 int i;
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 xorg_cv_cc_flag_unused_command_line_argument=yes
5313 else
5314 xorg_cv_cc_flag_unused_command_line_argument=no
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 fi
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5321 CFLAGS="$xorg_testset_save_CFLAGS"
5322 fi
5323
5324 found="no"
5325
5326 if test $found = "no" ; then
5327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329 fi
5330
5331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333 fi
5334
5335 CFLAGS="$CFLAGS -Wstrict-prototypes"
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5338 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5339 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5340 if eval \${$cacheid+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 int i;
5346 int
5347 main ()
5348 {
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 if ac_fn_c_try_link "$LINENO"; then :
5355 eval $cacheid=yes
5356 else
5357 eval $cacheid=no
5358 fi
5359 rm -f core conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 fi
5362
5363
5364 CFLAGS="$xorg_testset_save_CFLAGS"
5365
5366 eval supported=\$$cacheid
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5368 $as_echo "$supported" >&6; }
5369 if test "$supported" = "yes" ; then
5370 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5371 found="yes"
5372 fi
5373 fi
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389 xorg_testset_save_CFLAGS="$CFLAGS"
5390
5391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 int i;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 xorg_cv_cc_flag_unknown_warning_option=yes
5404 else
5405 xorg_cv_cc_flag_unknown_warning_option=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5412 CFLAGS="$xorg_testset_save_CFLAGS"
5413 fi
5414
5415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418 fi
5419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 int i;
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 xorg_cv_cc_flag_unused_command_line_argument=yes
5431 else
5432 xorg_cv_cc_flag_unused_command_line_argument=no
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5439 CFLAGS="$xorg_testset_save_CFLAGS"
5440 fi
5441
5442 found="no"
5443
5444 if test $found = "no" ; then
5445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447 fi
5448
5449 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451 fi
5452
5453 CFLAGS="$CFLAGS -Wmissing-prototypes"
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5456 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5457 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5458 if eval \${$cacheid+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 int i;
5464 int
5465 main ()
5466 {
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_link "$LINENO"; then :
5473 eval $cacheid=yes
5474 else
5475 eval $cacheid=no
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 fi
5480
5481
5482 CFLAGS="$xorg_testset_save_CFLAGS"
5483
5484 eval supported=\$$cacheid
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5486 $as_echo "$supported" >&6; }
5487 if test "$supported" = "yes" ; then
5488 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5489 found="yes"
5490 fi
5491 fi
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 xorg_testset_save_CFLAGS="$CFLAGS"
5508
5509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 int i;
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"; then :
5521 xorg_cv_cc_flag_unknown_warning_option=yes
5522 else
5523 xorg_cv_cc_flag_unknown_warning_option=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5530 CFLAGS="$xorg_testset_save_CFLAGS"
5531 fi
5532
5533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536 fi
5537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 int i;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548 xorg_cv_cc_flag_unused_command_line_argument=yes
5549 else
5550 xorg_cv_cc_flag_unused_command_line_argument=no
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5557 CFLAGS="$xorg_testset_save_CFLAGS"
5558 fi
5559
5560 found="no"
5561
5562 if test $found = "no" ; then
5563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565 fi
5566
5567 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5569 fi
5570
5571 CFLAGS="$CFLAGS -Wnested-externs"
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5574 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5575 cacheid=xorg_cv_cc_flag__Wnested_externs
5576 if eval \${$cacheid+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 int i;
5582 int
5583 main ()
5584 {
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_link "$LINENO"; then :
5591 eval $cacheid=yes
5592 else
5593 eval $cacheid=no
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597 fi
5598
5599
5600 CFLAGS="$xorg_testset_save_CFLAGS"
5601
5602 eval supported=\$$cacheid
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5604 $as_echo "$supported" >&6; }
5605 if test "$supported" = "yes" ; then
5606 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5607 found="yes"
5608 fi
5609 fi
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 xorg_testset_save_CFLAGS="$CFLAGS"
5626
5627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5630 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5631 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 int i;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 xorg_cv_cc_flag_unknown_warning_option=yes
5640 else
5641 xorg_cv_cc_flag_unknown_warning_option=no
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5646 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5648 CFLAGS="$xorg_testset_save_CFLAGS"
5649 fi
5650
5651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654 fi
5655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5657 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5658 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 int i;
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 xorg_cv_cc_flag_unused_command_line_argument=yes
5667 else
5668 xorg_cv_cc_flag_unused_command_line_argument=no
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5673 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5676 fi
5677
5678 found="no"
5679
5680 if test $found = "no" ; then
5681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5683 fi
5684
5685 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5687 fi
5688
5689 CFLAGS="$CFLAGS -Wbad-function-cast"
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5692 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5693 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5694 if eval \${$cacheid+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 int i;
5700 int
5701 main ()
5702 {
5703
5704 ;
5705 return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_link "$LINENO"; then :
5709 eval $cacheid=yes
5710 else
5711 eval $cacheid=no
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext \
5714 conftest$ac_exeext conftest.$ac_ext
5715 fi
5716
5717
5718 CFLAGS="$xorg_testset_save_CFLAGS"
5719
5720 eval supported=\$$cacheid
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5722 $as_echo "$supported" >&6; }
5723 if test "$supported" = "yes" ; then
5724 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5725 found="yes"
5726 fi
5727 fi
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743 xorg_testset_save_CFLAGS="$CFLAGS"
5744
5745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 int i;
5755 _ACEOF
5756 if ac_fn_c_try_compile "$LINENO"; then :
5757 xorg_cv_cc_flag_unknown_warning_option=yes
5758 else
5759 xorg_cv_cc_flag_unknown_warning_option=no
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5766 CFLAGS="$xorg_testset_save_CFLAGS"
5767 fi
5768
5769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772 fi
5773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 int i;
5782 _ACEOF
5783 if ac_fn_c_try_compile "$LINENO"; then :
5784 xorg_cv_cc_flag_unused_command_line_argument=yes
5785 else
5786 xorg_cv_cc_flag_unused_command_line_argument=no
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5793 CFLAGS="$xorg_testset_save_CFLAGS"
5794 fi
5795
5796 found="no"
5797
5798 if test $found = "no" ; then
5799 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5801 fi
5802
5803 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5805 fi
5806
5807 CFLAGS="$CFLAGS -Wold-style-definition"
5808
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5810 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5811 cacheid=xorg_cv_cc_flag__Wold_style_definition
5812 if eval \${$cacheid+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 int i;
5818 int
5819 main ()
5820 {
5821
5822 ;
5823 return 0;
5824 }
5825 _ACEOF
5826 if ac_fn_c_try_link "$LINENO"; then :
5827 eval $cacheid=yes
5828 else
5829 eval $cacheid=no
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5833 fi
5834
5835
5836 CFLAGS="$xorg_testset_save_CFLAGS"
5837
5838 eval supported=\$$cacheid
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5840 $as_echo "$supported" >&6; }
5841 if test "$supported" = "yes" ; then
5842 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5843 found="yes"
5844 fi
5845 fi
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 xorg_testset_save_CFLAGS="$CFLAGS"
5862
5863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5866 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5867 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 int i;
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"; then :
5875 xorg_cv_cc_flag_unknown_warning_option=yes
5876 else
5877 xorg_cv_cc_flag_unknown_warning_option=no
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5882 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5884 CFLAGS="$xorg_testset_save_CFLAGS"
5885 fi
5886
5887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890 fi
5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5893 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5894 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 int i;
5900 _ACEOF
5901 if ac_fn_c_try_compile "$LINENO"; then :
5902 xorg_cv_cc_flag_unused_command_line_argument=yes
5903 else
5904 xorg_cv_cc_flag_unused_command_line_argument=no
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 fi
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5909 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5911 CFLAGS="$xorg_testset_save_CFLAGS"
5912 fi
5913
5914 found="no"
5915
5916 if test $found = "no" ; then
5917 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919 fi
5920
5921 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5923 fi
5924
5925 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5926
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5928 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5929 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5930 if eval \${$cacheid+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 int i;
5936 int
5937 main ()
5938 {
5939
5940 ;
5941 return 0;
5942 }
5943 _ACEOF
5944 if ac_fn_c_try_link "$LINENO"; then :
5945 eval $cacheid=yes
5946 else
5947 eval $cacheid=no
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext \
5950 conftest$ac_exeext conftest.$ac_ext
5951 fi
5952
5953
5954 CFLAGS="$xorg_testset_save_CFLAGS"
5955
5956 eval supported=\$$cacheid
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5958 $as_echo "$supported" >&6; }
5959 if test "$supported" = "yes" ; then
5960 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5961 found="yes"
5962 fi
5963 fi
5964
5965
5966
5967
5968
5969 # This chunk adds additional warnings that could catch undesired effects.
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 xorg_testset_save_CFLAGS="$CFLAGS"
5984
5985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5988 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5989 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 xorg_cv_cc_flag_unknown_warning_option=yes
5998 else
5999 xorg_cv_cc_flag_unknown_warning_option=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6004 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007 fi
6008
6009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012 fi
6013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6015 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6016 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 int i;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024 xorg_cv_cc_flag_unused_command_line_argument=yes
6025 else
6026 xorg_cv_cc_flag_unused_command_line_argument=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6031 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6033 CFLAGS="$xorg_testset_save_CFLAGS"
6034 fi
6035
6036 found="no"
6037
6038 if test $found = "no" ; then
6039 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041 fi
6042
6043 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045 fi
6046
6047 CFLAGS="$CFLAGS -Wunused"
6048
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6050 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6051 cacheid=xorg_cv_cc_flag__Wunused
6052 if eval \${$cacheid+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 int i;
6058 int
6059 main ()
6060 {
6061
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_c_try_link "$LINENO"; then :
6067 eval $cacheid=yes
6068 else
6069 eval $cacheid=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6073 fi
6074
6075
6076 CFLAGS="$xorg_testset_save_CFLAGS"
6077
6078 eval supported=\$$cacheid
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6080 $as_echo "$supported" >&6; }
6081 if test "$supported" = "yes" ; then
6082 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6083 found="yes"
6084 fi
6085 fi
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 xorg_testset_save_CFLAGS="$CFLAGS"
6102
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6106 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6107 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int i;
6113 _ACEOF
6114 if ac_fn_c_try_compile "$LINENO"; then :
6115 xorg_cv_cc_flag_unknown_warning_option=yes
6116 else
6117 xorg_cv_cc_flag_unknown_warning_option=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6122 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6124 CFLAGS="$xorg_testset_save_CFLAGS"
6125 fi
6126
6127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130 fi
6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6133 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6134 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 int i;
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142 xorg_cv_cc_flag_unused_command_line_argument=yes
6143 else
6144 xorg_cv_cc_flag_unused_command_line_argument=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151 CFLAGS="$xorg_testset_save_CFLAGS"
6152 fi
6153
6154 found="no"
6155
6156 if test $found = "no" ; then
6157 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159 fi
6160
6161 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163 fi
6164
6165 CFLAGS="$CFLAGS -Wuninitialized"
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6168 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6169 cacheid=xorg_cv_cc_flag__Wuninitialized
6170 if eval \${$cacheid+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 int i;
6176 int
6177 main ()
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"; then :
6185 eval $cacheid=yes
6186 else
6187 eval $cacheid=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6191 fi
6192
6193
6194 CFLAGS="$xorg_testset_save_CFLAGS"
6195
6196 eval supported=\$$cacheid
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6198 $as_echo "$supported" >&6; }
6199 if test "$supported" = "yes" ; then
6200 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6201 found="yes"
6202 fi
6203 fi
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 xorg_testset_save_CFLAGS="$CFLAGS"
6220
6221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6224 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6225 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 int i;
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 xorg_cv_cc_flag_unknown_warning_option=yes
6234 else
6235 xorg_cv_cc_flag_unknown_warning_option=no
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6240 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6242 CFLAGS="$xorg_testset_save_CFLAGS"
6243 fi
6244
6245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6251 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6252 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 int i;
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 xorg_cv_cc_flag_unused_command_line_argument=yes
6261 else
6262 xorg_cv_cc_flag_unused_command_line_argument=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6267 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6269 CFLAGS="$xorg_testset_save_CFLAGS"
6270 fi
6271
6272 found="no"
6273
6274 if test $found = "no" ; then
6275 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6277 fi
6278
6279 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281 fi
6282
6283 CFLAGS="$CFLAGS -Wshadow"
6284
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6286 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6287 cacheid=xorg_cv_cc_flag__Wshadow
6288 if eval \${$cacheid+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 int
6295 main ()
6296 {
6297
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"; then :
6303 eval $cacheid=yes
6304 else
6305 eval $cacheid=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6309 fi
6310
6311
6312 CFLAGS="$xorg_testset_save_CFLAGS"
6313
6314 eval supported=\$$cacheid
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6316 $as_echo "$supported" >&6; }
6317 if test "$supported" = "yes" ; then
6318 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6319 found="yes"
6320 fi
6321 fi
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 xorg_testset_save_CFLAGS="$CFLAGS"
6338
6339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 int i;
6349 _ACEOF
6350 if ac_fn_c_try_compile "$LINENO"; then :
6351 xorg_cv_cc_flag_unknown_warning_option=yes
6352 else
6353 xorg_cv_cc_flag_unknown_warning_option=no
6354 fi
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6360 CFLAGS="$xorg_testset_save_CFLAGS"
6361 fi
6362
6363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366 fi
6367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 int i;
6376 _ACEOF
6377 if ac_fn_c_try_compile "$LINENO"; then :
6378 xorg_cv_cc_flag_unused_command_line_argument=yes
6379 else
6380 xorg_cv_cc_flag_unused_command_line_argument=no
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 fi
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6387 CFLAGS="$xorg_testset_save_CFLAGS"
6388 fi
6389
6390 found="no"
6391
6392 if test $found = "no" ; then
6393 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6395 fi
6396
6397 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6399 fi
6400
6401 CFLAGS="$CFLAGS -Wcast-qual"
6402
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6404 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6405 cacheid=xorg_cv_cc_flag__Wcast_qual
6406 if eval \${$cacheid+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 int i;
6412 int
6413 main ()
6414 {
6415
6416 ;
6417 return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_c_try_link "$LINENO"; then :
6421 eval $cacheid=yes
6422 else
6423 eval $cacheid=no
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
6427 fi
6428
6429
6430 CFLAGS="$xorg_testset_save_CFLAGS"
6431
6432 eval supported=\$$cacheid
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6434 $as_echo "$supported" >&6; }
6435 if test "$supported" = "yes" ; then
6436 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6437 found="yes"
6438 fi
6439 fi
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 xorg_testset_save_CFLAGS="$CFLAGS"
6456
6457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6461 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 int i;
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 xorg_cv_cc_flag_unknown_warning_option=yes
6470 else
6471 xorg_cv_cc_flag_unknown_warning_option=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6478 CFLAGS="$xorg_testset_save_CFLAGS"
6479 fi
6480
6481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6484 fi
6485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 int i;
6494 _ACEOF
6495 if ac_fn_c_try_compile "$LINENO"; then :
6496 xorg_cv_cc_flag_unused_command_line_argument=yes
6497 else
6498 xorg_cv_cc_flag_unused_command_line_argument=no
6499 fi
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6505 CFLAGS="$xorg_testset_save_CFLAGS"
6506 fi
6507
6508 found="no"
6509
6510 if test $found = "no" ; then
6511 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513 fi
6514
6515 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6517 fi
6518
6519 CFLAGS="$CFLAGS -Wmissing-noreturn"
6520
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6522 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6523 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6524 if eval \${$cacheid+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 int i;
6530 int
6531 main ()
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_link "$LINENO"; then :
6539 eval $cacheid=yes
6540 else
6541 eval $cacheid=no
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6545 fi
6546
6547
6548 CFLAGS="$xorg_testset_save_CFLAGS"
6549
6550 eval supported=\$$cacheid
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6552 $as_echo "$supported" >&6; }
6553 if test "$supported" = "yes" ; then
6554 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6555 found="yes"
6556 fi
6557 fi
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 xorg_testset_save_CFLAGS="$CFLAGS"
6574
6575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6578 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6579 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 int i;
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587 xorg_cv_cc_flag_unknown_warning_option=yes
6588 else
6589 xorg_cv_cc_flag_unknown_warning_option=no
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6594 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6596 CFLAGS="$xorg_testset_save_CFLAGS"
6597 fi
6598
6599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6602 fi
6603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6605 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6606 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611 int i;
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 xorg_cv_cc_flag_unused_command_line_argument=yes
6615 else
6616 xorg_cv_cc_flag_unused_command_line_argument=no
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6621 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6623 CFLAGS="$xorg_testset_save_CFLAGS"
6624 fi
6625
6626 found="no"
6627
6628 if test $found = "no" ; then
6629 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6631 fi
6632
6633 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6635 fi
6636
6637 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6640 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6641 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6642 if eval \${$cacheid+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 int i;
6648 int
6649 main ()
6650 {
6651
6652 ;
6653 return 0;
6654 }
6655 _ACEOF
6656 if ac_fn_c_try_link "$LINENO"; then :
6657 eval $cacheid=yes
6658 else
6659 eval $cacheid=no
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 fi
6664
6665
6666 CFLAGS="$xorg_testset_save_CFLAGS"
6667
6668 eval supported=\$$cacheid
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6670 $as_echo "$supported" >&6; }
6671 if test "$supported" = "yes" ; then
6672 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6673 found="yes"
6674 fi
6675 fi
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 xorg_testset_save_CFLAGS="$CFLAGS"
6692
6693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6697 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 int i;
6703 _ACEOF
6704 if ac_fn_c_try_compile "$LINENO"; then :
6705 xorg_cv_cc_flag_unknown_warning_option=yes
6706 else
6707 xorg_cv_cc_flag_unknown_warning_option=no
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 fi
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6714 CFLAGS="$xorg_testset_save_CFLAGS"
6715 fi
6716
6717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720 fi
6721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 int i;
6730 _ACEOF
6731 if ac_fn_c_try_compile "$LINENO"; then :
6732 xorg_cv_cc_flag_unused_command_line_argument=yes
6733 else
6734 xorg_cv_cc_flag_unused_command_line_argument=no
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6741 CFLAGS="$xorg_testset_save_CFLAGS"
6742 fi
6743
6744 found="no"
6745
6746 if test $found = "no" ; then
6747 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749 fi
6750
6751 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753 fi
6754
6755 CFLAGS="$CFLAGS -Wredundant-decls"
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6758 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6759 cacheid=xorg_cv_cc_flag__Wredundant_decls
6760 if eval \${$cacheid+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 int i;
6766 int
6767 main ()
6768 {
6769
6770 ;
6771 return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 eval $cacheid=yes
6776 else
6777 eval $cacheid=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 fi
6782
6783
6784 CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786 eval supported=\$$cacheid
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788 $as_echo "$supported" >&6; }
6789 if test "$supported" = "yes" ; then
6790 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6791 found="yes"
6792 fi
6793 fi
6794
6795
6796
6797 # These are currently disabled because they are noisy. They will be enabled
6798 # in the future once the codebase is sufficiently modernized to silence
6799 # them. For now, I don't want them to drown out the other warnings.
6800 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6801 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6802 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6803
6804 # Turn some warnings into errors, so we don't accidently get successful builds
6805 # when there are problems that should be fixed.
6806
6807 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 xorg_testset_save_CFLAGS="$CFLAGS"
6822
6823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6826 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6827 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 int i;
6833 _ACEOF
6834 if ac_fn_c_try_compile "$LINENO"; then :
6835 xorg_cv_cc_flag_unknown_warning_option=yes
6836 else
6837 xorg_cv_cc_flag_unknown_warning_option=no
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6842 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6844 CFLAGS="$xorg_testset_save_CFLAGS"
6845 fi
6846
6847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850 fi
6851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6853 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6854 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 int i;
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 xorg_cv_cc_flag_unused_command_line_argument=yes
6863 else
6864 xorg_cv_cc_flag_unused_command_line_argument=no
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 fi
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6869 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6871 CFLAGS="$xorg_testset_save_CFLAGS"
6872 fi
6873
6874 found="no"
6875
6876 if test $found = "no" ; then
6877 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6879 fi
6880
6881 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883 fi
6884
6885 CFLAGS="$CFLAGS -Werror=implicit"
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6888 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6889 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6890 if eval \${$cacheid+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 int i;
6896 int
6897 main ()
6898 {
6899
6900 ;
6901 return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 eval $cacheid=yes
6906 else
6907 eval $cacheid=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext conftest.$ac_ext
6911 fi
6912
6913
6914 CFLAGS="$xorg_testset_save_CFLAGS"
6915
6916 eval supported=\$$cacheid
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6918 $as_echo "$supported" >&6; }
6919 if test "$supported" = "yes" ; then
6920 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6921 found="yes"
6922 fi
6923 fi
6924
6925 if test $found = "no" ; then
6926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928 fi
6929
6930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6932 fi
6933
6934 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6937 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6938 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6939 if eval \${$cacheid+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 int i;
6945 int
6946 main ()
6947 {
6948
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 eval $cacheid=yes
6955 else
6956 eval $cacheid=no
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 fi
6961
6962
6963 CFLAGS="$xorg_testset_save_CFLAGS"
6964
6965 eval supported=\$$cacheid
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6967 $as_echo "$supported" >&6; }
6968 if test "$supported" = "yes" ; then
6969 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6970 found="yes"
6971 fi
6972 fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 xorg_testset_save_CFLAGS="$CFLAGS"
6989
6990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 int i;
7000 _ACEOF
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002 xorg_cv_cc_flag_unknown_warning_option=yes
7003 else
7004 xorg_cv_cc_flag_unknown_warning_option=no
7005 fi
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7011 CFLAGS="$xorg_testset_save_CFLAGS"
7012 fi
7013
7014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017 fi
7018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 int i;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"; then :
7029 xorg_cv_cc_flag_unused_command_line_argument=yes
7030 else
7031 xorg_cv_cc_flag_unused_command_line_argument=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7038 CFLAGS="$xorg_testset_save_CFLAGS"
7039 fi
7040
7041 found="no"
7042
7043 if test $found = "no" ; then
7044 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7046 fi
7047
7048 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7050 fi
7051
7052 CFLAGS="$CFLAGS -Werror=nonnull"
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7055 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7056 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7057 if eval \${$cacheid+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 int i;
7063 int
7064 main ()
7065 {
7066
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_link "$LINENO"; then :
7072 eval $cacheid=yes
7073 else
7074 eval $cacheid=no
7075 fi
7076 rm -f core conftest.err conftest.$ac_objext \
7077 conftest$ac_exeext conftest.$ac_ext
7078 fi
7079
7080
7081 CFLAGS="$xorg_testset_save_CFLAGS"
7082
7083 eval supported=\$$cacheid
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7085 $as_echo "$supported" >&6; }
7086 if test "$supported" = "yes" ; then
7087 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7088 found="yes"
7089 fi
7090 fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106 xorg_testset_save_CFLAGS="$CFLAGS"
7107
7108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"; then :
7120 xorg_cv_cc_flag_unknown_warning_option=yes
7121 else
7122 xorg_cv_cc_flag_unknown_warning_option=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130 fi
7131
7132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 fi
7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 int i;
7145 _ACEOF
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 xorg_cv_cc_flag_unused_command_line_argument=yes
7148 else
7149 xorg_cv_cc_flag_unused_command_line_argument=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157 fi
7158
7159 found="no"
7160
7161 if test $found = "no" ; then
7162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164 fi
7165
7166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168 fi
7169
7170 CFLAGS="$CFLAGS -Werror=init-self"
7171
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7173 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7174 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7175 if eval \${$cacheid+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 int i;
7181 int
7182 main ()
7183 {
7184
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"; then :
7190 eval $cacheid=yes
7191 else
7192 eval $cacheid=no
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7196 fi
7197
7198
7199 CFLAGS="$xorg_testset_save_CFLAGS"
7200
7201 eval supported=\$$cacheid
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7203 $as_echo "$supported" >&6; }
7204 if test "$supported" = "yes" ; then
7205 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7206 found="yes"
7207 fi
7208 fi
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224 xorg_testset_save_CFLAGS="$CFLAGS"
7225
7226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7229 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7230 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 int i;
7236 _ACEOF
7237 if ac_fn_c_try_compile "$LINENO"; then :
7238 xorg_cv_cc_flag_unknown_warning_option=yes
7239 else
7240 xorg_cv_cc_flag_unknown_warning_option=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 fi
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247 CFLAGS="$xorg_testset_save_CFLAGS"
7248 fi
7249
7250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253 fi
7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 int i;
7263 _ACEOF
7264 if ac_fn_c_try_compile "$LINENO"; then :
7265 xorg_cv_cc_flag_unused_command_line_argument=yes
7266 else
7267 xorg_cv_cc_flag_unused_command_line_argument=no
7268 fi
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7272 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7274 CFLAGS="$xorg_testset_save_CFLAGS"
7275 fi
7276
7277 found="no"
7278
7279 if test $found = "no" ; then
7280 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7282 fi
7283
7284 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7286 fi
7287
7288 CFLAGS="$CFLAGS -Werror=main"
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7291 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7292 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7293 if eval \${$cacheid+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 int i;
7299 int
7300 main ()
7301 {
7302
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 if ac_fn_c_try_link "$LINENO"; then :
7308 eval $cacheid=yes
7309 else
7310 eval $cacheid=no
7311 fi
7312 rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 fi
7315
7316
7317 CFLAGS="$xorg_testset_save_CFLAGS"
7318
7319 eval supported=\$$cacheid
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7321 $as_echo "$supported" >&6; }
7322 if test "$supported" = "yes" ; then
7323 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7324 found="yes"
7325 fi
7326 fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342 xorg_testset_save_CFLAGS="$CFLAGS"
7343
7344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7347 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7348 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353 int i;
7354 _ACEOF
7355 if ac_fn_c_try_compile "$LINENO"; then :
7356 xorg_cv_cc_flag_unknown_warning_option=yes
7357 else
7358 xorg_cv_cc_flag_unknown_warning_option=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7363 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7365 CFLAGS="$xorg_testset_save_CFLAGS"
7366 fi
7367
7368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371 fi
7372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7374 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7375 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 int i;
7381 _ACEOF
7382 if ac_fn_c_try_compile "$LINENO"; then :
7383 xorg_cv_cc_flag_unused_command_line_argument=yes
7384 else
7385 xorg_cv_cc_flag_unused_command_line_argument=no
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 fi
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7390 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7392 CFLAGS="$xorg_testset_save_CFLAGS"
7393 fi
7394
7395 found="no"
7396
7397 if test $found = "no" ; then
7398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400 fi
7401
7402 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7404 fi
7405
7406 CFLAGS="$CFLAGS -Werror=missing-braces"
7407
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7409 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7410 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7411 if eval \${$cacheid+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 int i;
7417 int
7418 main ()
7419 {
7420
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 if ac_fn_c_try_link "$LINENO"; then :
7426 eval $cacheid=yes
7427 else
7428 eval $cacheid=no
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7432 fi
7433
7434
7435 CFLAGS="$xorg_testset_save_CFLAGS"
7436
7437 eval supported=\$$cacheid
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7439 $as_echo "$supported" >&6; }
7440 if test "$supported" = "yes" ; then
7441 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7442 found="yes"
7443 fi
7444 fi
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 xorg_testset_save_CFLAGS="$CFLAGS"
7461
7462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7465 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7466 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 int i;
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"; then :
7474 xorg_cv_cc_flag_unknown_warning_option=yes
7475 else
7476 xorg_cv_cc_flag_unknown_warning_option=no
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7481 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7483 CFLAGS="$xorg_testset_save_CFLAGS"
7484 fi
7485
7486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489 fi
7490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7492 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7493 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 int i;
7499 _ACEOF
7500 if ac_fn_c_try_compile "$LINENO"; then :
7501 xorg_cv_cc_flag_unused_command_line_argument=yes
7502 else
7503 xorg_cv_cc_flag_unused_command_line_argument=no
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7508 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7510 CFLAGS="$xorg_testset_save_CFLAGS"
7511 fi
7512
7513 found="no"
7514
7515 if test $found = "no" ; then
7516 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7518 fi
7519
7520 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7522 fi
7523
7524 CFLAGS="$CFLAGS -Werror=sequence-point"
7525
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7527 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7528 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7529 if eval \${$cacheid+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 int i;
7535 int
7536 main ()
7537 {
7538
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 if ac_fn_c_try_link "$LINENO"; then :
7544 eval $cacheid=yes
7545 else
7546 eval $cacheid=no
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550 fi
7551
7552
7553 CFLAGS="$xorg_testset_save_CFLAGS"
7554
7555 eval supported=\$$cacheid
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7557 $as_echo "$supported" >&6; }
7558 if test "$supported" = "yes" ; then
7559 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7560 found="yes"
7561 fi
7562 fi
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 xorg_testset_save_CFLAGS="$CFLAGS"
7579
7580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7583 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7584 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 int i;
7590 _ACEOF
7591 if ac_fn_c_try_compile "$LINENO"; then :
7592 xorg_cv_cc_flag_unknown_warning_option=yes
7593 else
7594 xorg_cv_cc_flag_unknown_warning_option=no
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 fi
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7599 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7601 CFLAGS="$xorg_testset_save_CFLAGS"
7602 fi
7603
7604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607 fi
7608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7610 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7611 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 int i;
7617 _ACEOF
7618 if ac_fn_c_try_compile "$LINENO"; then :
7619 xorg_cv_cc_flag_unused_command_line_argument=yes
7620 else
7621 xorg_cv_cc_flag_unused_command_line_argument=no
7622 fi
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7626 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7628 CFLAGS="$xorg_testset_save_CFLAGS"
7629 fi
7630
7631 found="no"
7632
7633 if test $found = "no" ; then
7634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636 fi
7637
7638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640 fi
7641
7642 CFLAGS="$CFLAGS -Werror=return-type"
7643
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7645 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7646 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7647 if eval \${$cacheid+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 int i;
7653 int
7654 main ()
7655 {
7656
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_link "$LINENO"; then :
7662 eval $cacheid=yes
7663 else
7664 eval $cacheid=no
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext \
7667 conftest$ac_exeext conftest.$ac_ext
7668 fi
7669
7670
7671 CFLAGS="$xorg_testset_save_CFLAGS"
7672
7673 eval supported=\$$cacheid
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7675 $as_echo "$supported" >&6; }
7676 if test "$supported" = "yes" ; then
7677 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7678 found="yes"
7679 fi
7680 fi
7681
7682 if test $found = "no" ; then
7683 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685 fi
7686
7687 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689 fi
7690
7691 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7694 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7695 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7696 if eval \${$cacheid+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 int
7703 main ()
7704 {
7705
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"; then :
7711 eval $cacheid=yes
7712 else
7713 eval $cacheid=no
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7717 fi
7718
7719
7720 CFLAGS="$xorg_testset_save_CFLAGS"
7721
7722 eval supported=\$$cacheid
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7724 $as_echo "$supported" >&6; }
7725 if test "$supported" = "yes" ; then
7726 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7727 found="yes"
7728 fi
7729 fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745 xorg_testset_save_CFLAGS="$CFLAGS"
7746
7747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 int i;
7757 _ACEOF
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759 xorg_cv_cc_flag_unknown_warning_option=yes
7760 else
7761 xorg_cv_cc_flag_unknown_warning_option=no
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 fi
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7768 CFLAGS="$xorg_testset_save_CFLAGS"
7769 fi
7770
7771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774 fi
7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 int i;
7784 _ACEOF
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786 xorg_cv_cc_flag_unused_command_line_argument=yes
7787 else
7788 xorg_cv_cc_flag_unused_command_line_argument=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7795 CFLAGS="$xorg_testset_save_CFLAGS"
7796 fi
7797
7798 found="no"
7799
7800 if test $found = "no" ; then
7801 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803 fi
7804
7805 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7807 fi
7808
7809 CFLAGS="$CFLAGS -Werror=trigraphs"
7810
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7812 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7813 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7814 if eval \${$cacheid+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 int i;
7820 int
7821 main ()
7822 {
7823
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 if ac_fn_c_try_link "$LINENO"; then :
7829 eval $cacheid=yes
7830 else
7831 eval $cacheid=no
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7835 fi
7836
7837
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839
7840 eval supported=\$$cacheid
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7842 $as_echo "$supported" >&6; }
7843 if test "$supported" = "yes" ; then
7844 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7845 found="yes"
7846 fi
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863 xorg_testset_save_CFLAGS="$CFLAGS"
7864
7865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 int i;
7875 _ACEOF
7876 if ac_fn_c_try_compile "$LINENO"; then :
7877 xorg_cv_cc_flag_unknown_warning_option=yes
7878 else
7879 xorg_cv_cc_flag_unknown_warning_option=no
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 fi
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7886 CFLAGS="$xorg_testset_save_CFLAGS"
7887 fi
7888
7889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7892 fi
7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 int i;
7902 _ACEOF
7903 if ac_fn_c_try_compile "$LINENO"; then :
7904 xorg_cv_cc_flag_unused_command_line_argument=yes
7905 else
7906 xorg_cv_cc_flag_unused_command_line_argument=no
7907 fi
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7913 CFLAGS="$xorg_testset_save_CFLAGS"
7914 fi
7915
7916 found="no"
7917
7918 if test $found = "no" ; then
7919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7921 fi
7922
7923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7925 fi
7926
7927 CFLAGS="$CFLAGS -Werror=array-bounds"
7928
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7930 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7931 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7932 if eval \${$cacheid+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 int i;
7938 int
7939 main ()
7940 {
7941
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 eval $cacheid=yes
7948 else
7949 eval $cacheid=no
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7953 fi
7954
7955
7956 CFLAGS="$xorg_testset_save_CFLAGS"
7957
7958 eval supported=\$$cacheid
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7960 $as_echo "$supported" >&6; }
7961 if test "$supported" = "yes" ; then
7962 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7963 found="yes"
7964 fi
7965 fi
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981 xorg_testset_save_CFLAGS="$CFLAGS"
7982
7983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 int i;
7993 _ACEOF
7994 if ac_fn_c_try_compile "$LINENO"; then :
7995 xorg_cv_cc_flag_unknown_warning_option=yes
7996 else
7997 xorg_cv_cc_flag_unknown_warning_option=no
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 fi
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8004 CFLAGS="$xorg_testset_save_CFLAGS"
8005 fi
8006
8007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010 fi
8011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 int i;
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022 xorg_cv_cc_flag_unused_command_line_argument=yes
8023 else
8024 xorg_cv_cc_flag_unused_command_line_argument=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 fi
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8031 CFLAGS="$xorg_testset_save_CFLAGS"
8032 fi
8033
8034 found="no"
8035
8036 if test $found = "no" ; then
8037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039 fi
8040
8041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043 fi
8044
8045 CFLAGS="$CFLAGS -Werror=write-strings"
8046
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8048 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8049 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8050 if eval \${$cacheid+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 int i;
8056 int
8057 main ()
8058 {
8059
8060 ;
8061 return 0;
8062 }
8063 _ACEOF
8064 if ac_fn_c_try_link "$LINENO"; then :
8065 eval $cacheid=yes
8066 else
8067 eval $cacheid=no
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071 fi
8072
8073
8074 CFLAGS="$xorg_testset_save_CFLAGS"
8075
8076 eval supported=\$$cacheid
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8078 $as_echo "$supported" >&6; }
8079 if test "$supported" = "yes" ; then
8080 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8081 found="yes"
8082 fi
8083 fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099 xorg_testset_save_CFLAGS="$CFLAGS"
8100
8101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 int i;
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113 xorg_cv_cc_flag_unknown_warning_option=yes
8114 else
8115 xorg_cv_cc_flag_unknown_warning_option=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8122 CFLAGS="$xorg_testset_save_CFLAGS"
8123 fi
8124
8125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8128 fi
8129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137 int i;
8138 _ACEOF
8139 if ac_fn_c_try_compile "$LINENO"; then :
8140 xorg_cv_cc_flag_unused_command_line_argument=yes
8141 else
8142 xorg_cv_cc_flag_unused_command_line_argument=no
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8149 CFLAGS="$xorg_testset_save_CFLAGS"
8150 fi
8151
8152 found="no"
8153
8154 if test $found = "no" ; then
8155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8157 fi
8158
8159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8161 fi
8162
8163 CFLAGS="$CFLAGS -Werror=address"
8164
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8166 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8167 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8168 if eval \${$cacheid+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 int i;
8174 int
8175 main ()
8176 {
8177
8178 ;
8179 return 0;
8180 }
8181 _ACEOF
8182 if ac_fn_c_try_link "$LINENO"; then :
8183 eval $cacheid=yes
8184 else
8185 eval $cacheid=no
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8189 fi
8190
8191
8192 CFLAGS="$xorg_testset_save_CFLAGS"
8193
8194 eval supported=\$$cacheid
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8196 $as_echo "$supported" >&6; }
8197 if test "$supported" = "yes" ; then
8198 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8199 found="yes"
8200 fi
8201 fi
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217 xorg_testset_save_CFLAGS="$CFLAGS"
8218
8219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8222 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8223 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228 int i;
8229 _ACEOF
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231 xorg_cv_cc_flag_unknown_warning_option=yes
8232 else
8233 xorg_cv_cc_flag_unknown_warning_option=no
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8238 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8240 CFLAGS="$xorg_testset_save_CFLAGS"
8241 fi
8242
8243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 fi
8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8249 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8250 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 int i;
8256 _ACEOF
8257 if ac_fn_c_try_compile "$LINENO"; then :
8258 xorg_cv_cc_flag_unused_command_line_argument=yes
8259 else
8260 xorg_cv_cc_flag_unused_command_line_argument=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 fi
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8265 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8267 CFLAGS="$xorg_testset_save_CFLAGS"
8268 fi
8269
8270 found="no"
8271
8272 if test $found = "no" ; then
8273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275 fi
8276
8277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279 fi
8280
8281 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8284 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8285 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8286 if eval \${$cacheid+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 int i;
8292 int
8293 main ()
8294 {
8295
8296 ;
8297 return 0;
8298 }
8299 _ACEOF
8300 if ac_fn_c_try_link "$LINENO"; then :
8301 eval $cacheid=yes
8302 else
8303 eval $cacheid=no
8304 fi
8305 rm -f core conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307 fi
8308
8309
8310 CFLAGS="$xorg_testset_save_CFLAGS"
8311
8312 eval supported=\$$cacheid
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8314 $as_echo "$supported" >&6; }
8315 if test "$supported" = "yes" ; then
8316 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8317 found="yes"
8318 fi
8319 fi
8320
8321 if test $found = "no" ; then
8322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8324 fi
8325
8326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8328 fi
8329
8330 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8331
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8333 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8334 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8335 if eval \${$cacheid+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 int i;
8341 int
8342 main ()
8343 {
8344
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_link "$LINENO"; then :
8350 eval $cacheid=yes
8351 else
8352 eval $cacheid=no
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 fi
8357
8358
8359 CFLAGS="$xorg_testset_save_CFLAGS"
8360
8361 eval supported=\$$cacheid
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8363 $as_echo "$supported" >&6; }
8364 if test "$supported" = "yes" ; then
8365 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8366 found="yes"
8367 fi
8368 fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 xorg_testset_save_CFLAGS="$CFLAGS"
8385
8386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8389 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8390 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 int i;
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"; then :
8398 xorg_cv_cc_flag_unknown_warning_option=yes
8399 else
8400 xorg_cv_cc_flag_unknown_warning_option=no
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8405 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8407 CFLAGS="$xorg_testset_save_CFLAGS"
8408 fi
8409
8410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413 fi
8414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8416 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8417 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 int i;
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425 xorg_cv_cc_flag_unused_command_line_argument=yes
8426 else
8427 xorg_cv_cc_flag_unused_command_line_argument=no
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8432 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8434 CFLAGS="$xorg_testset_save_CFLAGS"
8435 fi
8436
8437 found="no"
8438
8439 if test $found = "no" ; then
8440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8442 fi
8443
8444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8446 fi
8447
8448 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8449
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8451 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8452 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8453 if eval \${$cacheid+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 int i;
8459 int
8460 main ()
8461 {
8462
8463 ;
8464 return 0;
8465 }
8466 _ACEOF
8467 if ac_fn_c_try_link "$LINENO"; then :
8468 eval $cacheid=yes
8469 else
8470 eval $cacheid=no
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8474 fi
8475
8476
8477 CFLAGS="$xorg_testset_save_CFLAGS"
8478
8479 eval supported=\$$cacheid
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8481 $as_echo "$supported" >&6; }
8482 if test "$supported" = "yes" ; then
8483 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8484 found="yes"
8485 fi
8486 fi
8487
8488 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8489 else
8490 { $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
8491 $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;}
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 xorg_testset_save_CFLAGS="$CFLAGS"
8506
8507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519 xorg_cv_cc_flag_unknown_warning_option=yes
8520 else
8521 xorg_cv_cc_flag_unknown_warning_option=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8528 CFLAGS="$xorg_testset_save_CFLAGS"
8529 fi
8530
8531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534 fi
8535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 int i;
8544 _ACEOF
8545 if ac_fn_c_try_compile "$LINENO"; then :
8546 xorg_cv_cc_flag_unused_command_line_argument=yes
8547 else
8548 xorg_cv_cc_flag_unused_command_line_argument=no
8549 fi
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8555 CFLAGS="$xorg_testset_save_CFLAGS"
8556 fi
8557
8558 found="no"
8559
8560 if test $found = "no" ; then
8561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563 fi
8564
8565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8567 fi
8568
8569 CFLAGS="$CFLAGS -Wimplicit"
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8572 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8573 cacheid=xorg_cv_cc_flag__Wimplicit
8574 if eval \${$cacheid+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579 int i;
8580 int
8581 main ()
8582 {
8583
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 if ac_fn_c_try_link "$LINENO"; then :
8589 eval $cacheid=yes
8590 else
8591 eval $cacheid=no
8592 fi
8593 rm -f core conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext conftest.$ac_ext
8595 fi
8596
8597
8598 CFLAGS="$xorg_testset_save_CFLAGS"
8599
8600 eval supported=\$$cacheid
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8602 $as_echo "$supported" >&6; }
8603 if test "$supported" = "yes" ; then
8604 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8605 found="yes"
8606 fi
8607 fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623 xorg_testset_save_CFLAGS="$CFLAGS"
8624
8625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 int i;
8635 _ACEOF
8636 if ac_fn_c_try_compile "$LINENO"; then :
8637 xorg_cv_cc_flag_unknown_warning_option=yes
8638 else
8639 xorg_cv_cc_flag_unknown_warning_option=no
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8646 CFLAGS="$xorg_testset_save_CFLAGS"
8647 fi
8648
8649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8652 fi
8653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 int i;
8662 _ACEOF
8663 if ac_fn_c_try_compile "$LINENO"; then :
8664 xorg_cv_cc_flag_unused_command_line_argument=yes
8665 else
8666 xorg_cv_cc_flag_unused_command_line_argument=no
8667 fi
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8673 CFLAGS="$xorg_testset_save_CFLAGS"
8674 fi
8675
8676 found="no"
8677
8678 if test $found = "no" ; then
8679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681 fi
8682
8683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685 fi
8686
8687 CFLAGS="$CFLAGS -Wnonnull"
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8690 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8691 cacheid=xorg_cv_cc_flag__Wnonnull
8692 if eval \${$cacheid+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 int i;
8698 int
8699 main ()
8700 {
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 eval $cacheid=yes
8708 else
8709 eval $cacheid=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 fi
8714
8715
8716 CFLAGS="$xorg_testset_save_CFLAGS"
8717
8718 eval supported=\$$cacheid
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8720 $as_echo "$supported" >&6; }
8721 if test "$supported" = "yes" ; then
8722 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8723 found="yes"
8724 fi
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 xorg_testset_save_CFLAGS="$CFLAGS"
8742
8743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 int i;
8753 _ACEOF
8754 if ac_fn_c_try_compile "$LINENO"; then :
8755 xorg_cv_cc_flag_unknown_warning_option=yes
8756 else
8757 xorg_cv_cc_flag_unknown_warning_option=no
8758 fi
8759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8764 CFLAGS="$xorg_testset_save_CFLAGS"
8765 fi
8766
8767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770 fi
8771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 int i;
8780 _ACEOF
8781 if ac_fn_c_try_compile "$LINENO"; then :
8782 xorg_cv_cc_flag_unused_command_line_argument=yes
8783 else
8784 xorg_cv_cc_flag_unused_command_line_argument=no
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8791 CFLAGS="$xorg_testset_save_CFLAGS"
8792 fi
8793
8794 found="no"
8795
8796 if test $found = "no" ; then
8797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8799 fi
8800
8801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8803 fi
8804
8805 CFLAGS="$CFLAGS -Winit-self"
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8808 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8809 cacheid=xorg_cv_cc_flag__Winit_self
8810 if eval \${$cacheid+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 int i;
8816 int
8817 main ()
8818 {
8819
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_link "$LINENO"; then :
8825 eval $cacheid=yes
8826 else
8827 eval $cacheid=no
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8831 fi
8832
8833
8834 CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836 eval supported=\$$cacheid
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838 $as_echo "$supported" >&6; }
8839 if test "$supported" = "yes" ; then
8840 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8841 found="yes"
8842 fi
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"; then :
8873 xorg_cv_cc_flag_unknown_warning_option=yes
8874 else
8875 xorg_cv_cc_flag_unknown_warning_option=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883 fi
8884
8885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888 fi
8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897 int i;
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 xorg_cv_cc_flag_unused_command_line_argument=yes
8901 else
8902 xorg_cv_cc_flag_unused_command_line_argument=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909 CFLAGS="$xorg_testset_save_CFLAGS"
8910 fi
8911
8912 found="no"
8913
8914 if test $found = "no" ; then
8915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917 fi
8918
8919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 fi
8922
8923 CFLAGS="$CFLAGS -Wmain"
8924
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8926 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8927 cacheid=xorg_cv_cc_flag__Wmain
8928 if eval \${$cacheid+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 int i;
8934 int
8935 main ()
8936 {
8937
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 eval $cacheid=yes
8944 else
8945 eval $cacheid=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 fi
8950
8951
8952 CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954 eval supported=\$$cacheid
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956 $as_echo "$supported" >&6; }
8957 if test "$supported" = "yes" ; then
8958 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8959 found="yes"
8960 fi
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977 xorg_testset_save_CFLAGS="$CFLAGS"
8978
8979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 int i;
8989 _ACEOF
8990 if ac_fn_c_try_compile "$LINENO"; then :
8991 xorg_cv_cc_flag_unknown_warning_option=yes
8992 else
8993 xorg_cv_cc_flag_unknown_warning_option=no
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 fi
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9000 CFLAGS="$xorg_testset_save_CFLAGS"
9001 fi
9002
9003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9006 fi
9007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 int i;
9016 _ACEOF
9017 if ac_fn_c_try_compile "$LINENO"; then :
9018 xorg_cv_cc_flag_unused_command_line_argument=yes
9019 else
9020 xorg_cv_cc_flag_unused_command_line_argument=no
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9027 CFLAGS="$xorg_testset_save_CFLAGS"
9028 fi
9029
9030 found="no"
9031
9032 if test $found = "no" ; then
9033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9035 fi
9036
9037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9039 fi
9040
9041 CFLAGS="$CFLAGS -Wmissing-braces"
9042
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9044 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9045 cacheid=xorg_cv_cc_flag__Wmissing_braces
9046 if eval \${$cacheid+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 int i;
9052 int
9053 main ()
9054 {
9055
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_c_try_link "$LINENO"; then :
9061 eval $cacheid=yes
9062 else
9063 eval $cacheid=no
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 fi
9068
9069
9070 CFLAGS="$xorg_testset_save_CFLAGS"
9071
9072 eval supported=\$$cacheid
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9074 $as_echo "$supported" >&6; }
9075 if test "$supported" = "yes" ; then
9076 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9077 found="yes"
9078 fi
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 xorg_testset_save_CFLAGS="$CFLAGS"
9096
9097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9101 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 int i;
9107 _ACEOF
9108 if ac_fn_c_try_compile "$LINENO"; then :
9109 xorg_cv_cc_flag_unknown_warning_option=yes
9110 else
9111 xorg_cv_cc_flag_unknown_warning_option=no
9112 fi
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9116 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9118 CFLAGS="$xorg_testset_save_CFLAGS"
9119 fi
9120
9121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124 fi
9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9127 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9128 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9133 int i;
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"; then :
9136 xorg_cv_cc_flag_unused_command_line_argument=yes
9137 else
9138 xorg_cv_cc_flag_unused_command_line_argument=no
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9143 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9145 CFLAGS="$xorg_testset_save_CFLAGS"
9146 fi
9147
9148 found="no"
9149
9150 if test $found = "no" ; then
9151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153 fi
9154
9155 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157 fi
9158
9159 CFLAGS="$CFLAGS -Wsequence-point"
9160
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9162 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9163 cacheid=xorg_cv_cc_flag__Wsequence_point
9164 if eval \${$cacheid+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 int i;
9170 int
9171 main ()
9172 {
9173
9174 ;
9175 return 0;
9176 }
9177 _ACEOF
9178 if ac_fn_c_try_link "$LINENO"; then :
9179 eval $cacheid=yes
9180 else
9181 eval $cacheid=no
9182 fi
9183 rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 fi
9186
9187
9188 CFLAGS="$xorg_testset_save_CFLAGS"
9189
9190 eval supported=\$$cacheid
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9192 $as_echo "$supported" >&6; }
9193 if test "$supported" = "yes" ; then
9194 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9195 found="yes"
9196 fi
9197 fi
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213 xorg_testset_save_CFLAGS="$CFLAGS"
9214
9215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9218 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9219 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 int i;
9225 _ACEOF
9226 if ac_fn_c_try_compile "$LINENO"; then :
9227 xorg_cv_cc_flag_unknown_warning_option=yes
9228 else
9229 xorg_cv_cc_flag_unknown_warning_option=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 fi
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236 CFLAGS="$xorg_testset_save_CFLAGS"
9237 fi
9238
9239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 fi
9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 int i;
9252 _ACEOF
9253 if ac_fn_c_try_compile "$LINENO"; then :
9254 xorg_cv_cc_flag_unused_command_line_argument=yes
9255 else
9256 xorg_cv_cc_flag_unused_command_line_argument=no
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9261 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9263 CFLAGS="$xorg_testset_save_CFLAGS"
9264 fi
9265
9266 found="no"
9267
9268 if test $found = "no" ; then
9269 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271 fi
9272
9273 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9275 fi
9276
9277 CFLAGS="$CFLAGS -Wreturn-type"
9278
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9280 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9281 cacheid=xorg_cv_cc_flag__Wreturn_type
9282 if eval \${$cacheid+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 int i;
9288 int
9289 main ()
9290 {
9291
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 if ac_fn_c_try_link "$LINENO"; then :
9297 eval $cacheid=yes
9298 else
9299 eval $cacheid=no
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 fi
9304
9305
9306 CFLAGS="$xorg_testset_save_CFLAGS"
9307
9308 eval supported=\$$cacheid
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9310 $as_echo "$supported" >&6; }
9311 if test "$supported" = "yes" ; then
9312 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9313 found="yes"
9314 fi
9315 fi
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331 xorg_testset_save_CFLAGS="$CFLAGS"
9332
9333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9336 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9337 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 int i;
9343 _ACEOF
9344 if ac_fn_c_try_compile "$LINENO"; then :
9345 xorg_cv_cc_flag_unknown_warning_option=yes
9346 else
9347 xorg_cv_cc_flag_unknown_warning_option=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9352 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9354 CFLAGS="$xorg_testset_save_CFLAGS"
9355 fi
9356
9357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360 fi
9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9364 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 int i;
9370 _ACEOF
9371 if ac_fn_c_try_compile "$LINENO"; then :
9372 xorg_cv_cc_flag_unused_command_line_argument=yes
9373 else
9374 xorg_cv_cc_flag_unused_command_line_argument=no
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9379 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9381 CFLAGS="$xorg_testset_save_CFLAGS"
9382 fi
9383
9384 found="no"
9385
9386 if test $found = "no" ; then
9387 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389 fi
9390
9391 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393 fi
9394
9395 CFLAGS="$CFLAGS -Wtrigraphs"
9396
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9398 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9399 cacheid=xorg_cv_cc_flag__Wtrigraphs
9400 if eval \${$cacheid+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 int i;
9406 int
9407 main ()
9408 {
9409
9410 ;
9411 return 0;
9412 }
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 eval $cacheid=yes
9416 else
9417 eval $cacheid=no
9418 fi
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 fi
9422
9423
9424 CFLAGS="$xorg_testset_save_CFLAGS"
9425
9426 eval supported=\$$cacheid
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9428 $as_echo "$supported" >&6; }
9429 if test "$supported" = "yes" ; then
9430 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9431 found="yes"
9432 fi
9433 fi
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449 xorg_testset_save_CFLAGS="$CFLAGS"
9450
9451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9454 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9455 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 int i;
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"; then :
9463 xorg_cv_cc_flag_unknown_warning_option=yes
9464 else
9465 xorg_cv_cc_flag_unknown_warning_option=no
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 fi
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9470 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9472 CFLAGS="$xorg_testset_save_CFLAGS"
9473 fi
9474
9475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9478 fi
9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9481 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9482 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487 int i;
9488 _ACEOF
9489 if ac_fn_c_try_compile "$LINENO"; then :
9490 xorg_cv_cc_flag_unused_command_line_argument=yes
9491 else
9492 xorg_cv_cc_flag_unused_command_line_argument=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9497 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9499 CFLAGS="$xorg_testset_save_CFLAGS"
9500 fi
9501
9502 found="no"
9503
9504 if test $found = "no" ; then
9505 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507 fi
9508
9509 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9511 fi
9512
9513 CFLAGS="$CFLAGS -Warray-bounds"
9514
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9516 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9517 cacheid=xorg_cv_cc_flag__Warray_bounds
9518 if eval \${$cacheid+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 int i;
9524 int
9525 main ()
9526 {
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 eval $cacheid=yes
9534 else
9535 eval $cacheid=no
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 fi
9540
9541
9542 CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544 eval supported=\$$cacheid
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546 $as_echo "$supported" >&6; }
9547 if test "$supported" = "yes" ; then
9548 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9549 found="yes"
9550 fi
9551 fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567 xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 int i;
9579 _ACEOF
9580 if ac_fn_c_try_compile "$LINENO"; then :
9581 xorg_cv_cc_flag_unknown_warning_option=yes
9582 else
9583 xorg_cv_cc_flag_unknown_warning_option=no
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9586 fi
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9588 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9590 CFLAGS="$xorg_testset_save_CFLAGS"
9591 fi
9592
9593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9596 fi
9597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9599 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9600 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 int i;
9606 _ACEOF
9607 if ac_fn_c_try_compile "$LINENO"; then :
9608 xorg_cv_cc_flag_unused_command_line_argument=yes
9609 else
9610 xorg_cv_cc_flag_unused_command_line_argument=no
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9615 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9617 CFLAGS="$xorg_testset_save_CFLAGS"
9618 fi
9619
9620 found="no"
9621
9622 if test $found = "no" ; then
9623 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9625 fi
9626
9627 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9629 fi
9630
9631 CFLAGS="$CFLAGS -Wwrite-strings"
9632
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9634 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9635 cacheid=xorg_cv_cc_flag__Wwrite_strings
9636 if eval \${$cacheid+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641 int i;
9642 int
9643 main ()
9644 {
9645
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_c_try_link "$LINENO"; then :
9651 eval $cacheid=yes
9652 else
9653 eval $cacheid=no
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 fi
9658
9659
9660 CFLAGS="$xorg_testset_save_CFLAGS"
9661
9662 eval supported=\$$cacheid
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9664 $as_echo "$supported" >&6; }
9665 if test "$supported" = "yes" ; then
9666 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9667 found="yes"
9668 fi
9669 fi
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685 xorg_testset_save_CFLAGS="$CFLAGS"
9686
9687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9690 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9691 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9696 int i;
9697 _ACEOF
9698 if ac_fn_c_try_compile "$LINENO"; then :
9699 xorg_cv_cc_flag_unknown_warning_option=yes
9700 else
9701 xorg_cv_cc_flag_unknown_warning_option=no
9702 fi
9703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704 fi
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9706 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9708 CFLAGS="$xorg_testset_save_CFLAGS"
9709 fi
9710
9711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9714 fi
9715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9717 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9718 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 int i;
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"; then :
9726 xorg_cv_cc_flag_unused_command_line_argument=yes
9727 else
9728 xorg_cv_cc_flag_unused_command_line_argument=no
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9733 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9735 CFLAGS="$xorg_testset_save_CFLAGS"
9736 fi
9737
9738 found="no"
9739
9740 if test $found = "no" ; then
9741 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9743 fi
9744
9745 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9747 fi
9748
9749 CFLAGS="$CFLAGS -Waddress"
9750
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9752 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9753 cacheid=xorg_cv_cc_flag__Waddress
9754 if eval \${$cacheid+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759 int i;
9760 int
9761 main ()
9762 {
9763
9764 ;
9765 return 0;
9766 }
9767 _ACEOF
9768 if ac_fn_c_try_link "$LINENO"; then :
9769 eval $cacheid=yes
9770 else
9771 eval $cacheid=no
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 fi
9776
9777
9778 CFLAGS="$xorg_testset_save_CFLAGS"
9779
9780 eval supported=\$$cacheid
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9782 $as_echo "$supported" >&6; }
9783 if test "$supported" = "yes" ; then
9784 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9785 found="yes"
9786 fi
9787 fi
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803 xorg_testset_save_CFLAGS="$CFLAGS"
9804
9805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 int i;
9815 _ACEOF
9816 if ac_fn_c_try_compile "$LINENO"; then :
9817 xorg_cv_cc_flag_unknown_warning_option=yes
9818 else
9819 xorg_cv_cc_flag_unknown_warning_option=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9826 CFLAGS="$xorg_testset_save_CFLAGS"
9827 fi
9828
9829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832 fi
9833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 int i;
9842 _ACEOF
9843 if ac_fn_c_try_compile "$LINENO"; then :
9844 xorg_cv_cc_flag_unused_command_line_argument=yes
9845 else
9846 xorg_cv_cc_flag_unused_command_line_argument=no
9847 fi
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 fi
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9853 CFLAGS="$xorg_testset_save_CFLAGS"
9854 fi
9855
9856 found="no"
9857
9858 if test $found = "no" ; then
9859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9861 fi
9862
9863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9865 fi
9866
9867 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9870 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9871 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9872 if eval \${$cacheid+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 int i;
9878 int
9879 main ()
9880 {
9881
9882 ;
9883 return 0;
9884 }
9885 _ACEOF
9886 if ac_fn_c_try_link "$LINENO"; then :
9887 eval $cacheid=yes
9888 else
9889 eval $cacheid=no
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 fi
9894
9895
9896 CFLAGS="$xorg_testset_save_CFLAGS"
9897
9898 eval supported=\$$cacheid
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9900 $as_echo "$supported" >&6; }
9901 if test "$supported" = "yes" ; then
9902 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9903 found="yes"
9904 fi
9905 fi
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921 xorg_testset_save_CFLAGS="$CFLAGS"
9922
9923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9926 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9927 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932 int i;
9933 _ACEOF
9934 if ac_fn_c_try_compile "$LINENO"; then :
9935 xorg_cv_cc_flag_unknown_warning_option=yes
9936 else
9937 xorg_cv_cc_flag_unknown_warning_option=no
9938 fi
9939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 fi
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9942 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9944 CFLAGS="$xorg_testset_save_CFLAGS"
9945 fi
9946
9947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950 fi
9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9953 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9954 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959 int i;
9960 _ACEOF
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962 xorg_cv_cc_flag_unused_command_line_argument=yes
9963 else
9964 xorg_cv_cc_flag_unused_command_line_argument=no
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9969 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9971 CFLAGS="$xorg_testset_save_CFLAGS"
9972 fi
9973
9974 found="no"
9975
9976 if test $found = "no" ; then
9977 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9979 fi
9980
9981 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9983 fi
9984
9985 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9986
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9988 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9989 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9990 if eval \${$cacheid+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995 int i;
9996 int
9997 main ()
9998 {
9999
10000 ;
10001 return 0;
10002 }
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"; then :
10005 eval $cacheid=yes
10006 else
10007 eval $cacheid=no
10008 fi
10009 rm -f core conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011 fi
10012
10013
10014 CFLAGS="$xorg_testset_save_CFLAGS"
10015
10016 eval supported=\$$cacheid
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10018 $as_echo "$supported" >&6; }
10019 if test "$supported" = "yes" ; then
10020 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10021 found="yes"
10022 fi
10023 fi
10024
10025
10026 fi
10027
10028
10029
10030
10031
10032
10033
10034 CWARNFLAGS="$BASE_CFLAGS"
10035 if test "x$GCC" = xyes ; then
10036 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10037 fi
10038
10039
10040
10041
10042
10043
10044
10045
10046 # Check whether --enable-strict-compilation was given.
10047 if test "${enable_strict_compilation+set}" = set; then :
10048 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10049 else
10050 STRICT_COMPILE=no
10051 fi
10052
10053
10054
10055
10056
10057
10058 STRICT_CFLAGS=""
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072 xorg_testset_save_CFLAGS="$CFLAGS"
10073
10074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 int i;
10084 _ACEOF
10085 if ac_fn_c_try_compile "$LINENO"; then :
10086 xorg_cv_cc_flag_unknown_warning_option=yes
10087 else
10088 xorg_cv_cc_flag_unknown_warning_option=no
10089 fi
10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10095 CFLAGS="$xorg_testset_save_CFLAGS"
10096 fi
10097
10098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101 fi
10102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 int i;
10111 _ACEOF
10112 if ac_fn_c_try_compile "$LINENO"; then :
10113 xorg_cv_cc_flag_unused_command_line_argument=yes
10114 else
10115 xorg_cv_cc_flag_unused_command_line_argument=no
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10122 CFLAGS="$xorg_testset_save_CFLAGS"
10123 fi
10124
10125 found="no"
10126
10127 if test $found = "no" ; then
10128 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130 fi
10131
10132 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10134 fi
10135
10136 CFLAGS="$CFLAGS -pedantic"
10137
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10139 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10140 cacheid=xorg_cv_cc_flag__pedantic
10141 if eval \${$cacheid+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 int i;
10147 int
10148 main ()
10149 {
10150
10151 ;
10152 return 0;
10153 }
10154 _ACEOF
10155 if ac_fn_c_try_link "$LINENO"; then :
10156 eval $cacheid=yes
10157 else
10158 eval $cacheid=no
10159 fi
10160 rm -f core conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10162 fi
10163
10164
10165 CFLAGS="$xorg_testset_save_CFLAGS"
10166
10167 eval supported=\$$cacheid
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10169 $as_echo "$supported" >&6; }
10170 if test "$supported" = "yes" ; then
10171 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10172 found="yes"
10173 fi
10174 fi
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190 xorg_testset_save_CFLAGS="$CFLAGS"
10191
10192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201 int i;
10202 _ACEOF
10203 if ac_fn_c_try_compile "$LINENO"; then :
10204 xorg_cv_cc_flag_unknown_warning_option=yes
10205 else
10206 xorg_cv_cc_flag_unknown_warning_option=no
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209 fi
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10213 CFLAGS="$xorg_testset_save_CFLAGS"
10214 fi
10215
10216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219 fi
10220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 int i;
10229 _ACEOF
10230 if ac_fn_c_try_compile "$LINENO"; then :
10231 xorg_cv_cc_flag_unused_command_line_argument=yes
10232 else
10233 xorg_cv_cc_flag_unused_command_line_argument=no
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236 fi
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10240 CFLAGS="$xorg_testset_save_CFLAGS"
10241 fi
10242
10243 found="no"
10244
10245 if test $found = "no" ; then
10246 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248 fi
10249
10250 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252 fi
10253
10254 CFLAGS="$CFLAGS -Werror"
10255
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10257 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10258 cacheid=xorg_cv_cc_flag__Werror
10259 if eval \${$cacheid+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 int i;
10265 int
10266 main ()
10267 {
10268
10269 ;
10270 return 0;
10271 }
10272 _ACEOF
10273 if ac_fn_c_try_link "$LINENO"; then :
10274 eval $cacheid=yes
10275 else
10276 eval $cacheid=no
10277 fi
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280 fi
10281
10282
10283 CFLAGS="$xorg_testset_save_CFLAGS"
10284
10285 eval supported=\$$cacheid
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10287 $as_echo "$supported" >&6; }
10288 if test "$supported" = "yes" ; then
10289 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10290 found="yes"
10291 fi
10292 fi
10293
10294 if test $found = "no" ; then
10295 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10297 fi
10298
10299 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301 fi
10302
10303 CFLAGS="$CFLAGS -errwarn"
10304
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10306 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10307 cacheid=xorg_cv_cc_flag__errwarn
10308 if eval \${$cacheid+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 int i;
10314 int
10315 main ()
10316 {
10317
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323 eval $cacheid=yes
10324 else
10325 eval $cacheid=no
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 fi
10330
10331
10332 CFLAGS="$xorg_testset_save_CFLAGS"
10333
10334 eval supported=\$$cacheid
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10336 $as_echo "$supported" >&6; }
10337 if test "$supported" = "yes" ; then
10338 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10339 found="yes"
10340 fi
10341 fi
10342
10343
10344
10345 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10346 # activate it with -Werror, so we add it here explicitly.
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360 xorg_testset_save_CFLAGS="$CFLAGS"
10361
10362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10365 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10366 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10371 int i;
10372 _ACEOF
10373 if ac_fn_c_try_compile "$LINENO"; then :
10374 xorg_cv_cc_flag_unknown_warning_option=yes
10375 else
10376 xorg_cv_cc_flag_unknown_warning_option=no
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379 fi
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10381 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10383 CFLAGS="$xorg_testset_save_CFLAGS"
10384 fi
10385
10386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10389 fi
10390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10392 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10393 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 int i;
10399 _ACEOF
10400 if ac_fn_c_try_compile "$LINENO"; then :
10401 xorg_cv_cc_flag_unused_command_line_argument=yes
10402 else
10403 xorg_cv_cc_flag_unused_command_line_argument=no
10404 fi
10405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 fi
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10408 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10410 CFLAGS="$xorg_testset_save_CFLAGS"
10411 fi
10412
10413 found="no"
10414
10415 if test $found = "no" ; then
10416 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418 fi
10419
10420 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422 fi
10423
10424 CFLAGS="$CFLAGS -Werror=attributes"
10425
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10427 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10428 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10429 if eval \${$cacheid+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 int i;
10435 int
10436 main ()
10437 {
10438
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"; then :
10444 eval $cacheid=yes
10445 else
10446 eval $cacheid=no
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 fi
10451
10452
10453 CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455 eval supported=\$$cacheid
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457 $as_echo "$supported" >&6; }
10458 if test "$supported" = "yes" ; then
10459 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10460 found="yes"
10461 fi
10462 fi
10463
10464
10465
10466 if test "x$STRICT_COMPILE" = "xyes"; then
10467 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10468 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10469 fi
10470
10471
10472
10473
10474
10475
10476 cat >>confdefs.h <<_ACEOF
10477 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10478 _ACEOF
10479
10480 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10481 if test "x$PVM" = "x"; then
10482 PVM="0"
10483 fi
10484
10485 cat >>confdefs.h <<_ACEOF
10486 #define PACKAGE_VERSION_MINOR $PVM
10487 _ACEOF
10488
10489 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10490 if test "x$PVP" = "x"; then
10491 PVP="0"
10492 fi
10493
10494 cat >>confdefs.h <<_ACEOF
10495 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10496 _ACEOF
10497
10498
10499
10500 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10501 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10502 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10503 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10504
10505
10506
10507
10508 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10509 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10510 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10511 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10512 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10513
10514
10515
10516
10517
10518
10519 if test x$APP_MAN_SUFFIX = x ; then
10520 APP_MAN_SUFFIX=1
10521 fi
10522 if test x$APP_MAN_DIR = x ; then
10523 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10524 fi
10525
10526 if test x$LIB_MAN_SUFFIX = x ; then
10527 LIB_MAN_SUFFIX=3
10528 fi
10529 if test x$LIB_MAN_DIR = x ; then
10530 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10531 fi
10532
10533 if test x$FILE_MAN_SUFFIX = x ; then
10534 case $host_os in
10535 solaris*) FILE_MAN_SUFFIX=4 ;;
10536 *) FILE_MAN_SUFFIX=5 ;;
10537 esac
10538 fi
10539 if test x$FILE_MAN_DIR = x ; then
10540 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10541 fi
10542
10543 if test x$MISC_MAN_SUFFIX = x ; then
10544 case $host_os in
10545 solaris*) MISC_MAN_SUFFIX=5 ;;
10546 *) MISC_MAN_SUFFIX=7 ;;
10547 esac
10548 fi
10549 if test x$MISC_MAN_DIR = x ; then
10550 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10551 fi
10552
10553 if test x$DRIVER_MAN_SUFFIX = x ; then
10554 case $host_os in
10555 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10556 *) DRIVER_MAN_SUFFIX=4 ;;
10557 esac
10558 fi
10559 if test x$DRIVER_MAN_DIR = x ; then
10560 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10561 fi
10562
10563 if test x$ADMIN_MAN_SUFFIX = x ; then
10564 case $host_os in
10565 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10566 *) ADMIN_MAN_SUFFIX=8 ;;
10567 esac
10568 fi
10569 if test x$ADMIN_MAN_DIR = x ; then
10570 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10571 fi
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587 XORG_MAN_PAGE="X Version 11"
10588
10589 MAN_SUBSTS="\
10590 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10591 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10592 -e 's|__xservername__|Xorg|g' \
10593 -e 's|__xconfigfile__|xorg.conf|g' \
10594 -e 's|__projectroot__|\$(prefix)|g' \
10595 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10596 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10597 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10598 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10599 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10600 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10601 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10602
10603
10604
10605 # Check whether --enable-silent-rules was given.
10606 if test "${enable_silent_rules+set}" = set; then :
10607 enableval=$enable_silent_rules;
10608 fi
10609
10610 case $enable_silent_rules in
10611 yes) AM_DEFAULT_VERBOSITY=0;;
10612 no) AM_DEFAULT_VERBOSITY=1;;
10613 *) AM_DEFAULT_VERBOSITY=0;;
10614 esac
10615 am_make=${MAKE-make}
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10617 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10618 if ${am_cv_make_support_nested_variables+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 if $as_echo 'TRUE=$(BAR$(V))
10622 BAR0=false
10623 BAR1=true
10624 V=1
10625 am__doit:
10626 @$(TRUE)
10627 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10628 am_cv_make_support_nested_variables=yes
10629 else
10630 am_cv_make_support_nested_variables=no
10631 fi
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10634 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10635 if test $am_cv_make_support_nested_variables = yes; then
10636 AM_V='$(V)'
10637 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10638 else
10639 AM_V=$AM_DEFAULT_VERBOSITY
10640 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10641 fi
10642 AM_BACKSLASH='\'
10643
10644
10645
10646 # Initialize libtool
10647 # Check whether --enable-static was given.
10648 if test "${enable_static+set}" = set; then :
10649 enableval=$enable_static; p=${PACKAGE-default}
10650 case $enableval in
10651 yes) enable_static=yes ;;
10652 no) enable_static=no ;;
10653 *)
10654 enable_static=no
10655 # Look at the argument we got. We use all the common list separators.
10656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10657 for pkg in $enableval; do
10658 IFS="$lt_save_ifs"
10659 if test "X$pkg" = "X$p"; then
10660 enable_static=yes
10661 fi
10662 done
10663 IFS="$lt_save_ifs"
10664 ;;
10665 esac
10666 else
10667 enable_static=no
10668 fi
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678 case `pwd` in
10679 *\ * | *\ *)
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10681 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10682 esac
10683
10684
10685
10686 macro_version='2.4.2'
10687 macro_revision='1.3337'
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701 ltmain="$ac_aux_dir/ltmain.sh"
10702
10703 # Backslashify metacharacters that are still active within
10704 # double-quoted strings.
10705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10706
10707 # Same as above, but do not quote variable references.
10708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10709
10710 # Sed substitution to delay expansion of an escaped shell variable in a
10711 # double_quote_subst'ed string.
10712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10713
10714 # Sed substitution to delay expansion of an escaped single quote.
10715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10716
10717 # Sed substitution to avoid accidental globbing in evaled expressions
10718 no_glob_subst='s/\*/\\\*/g'
10719
10720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10725 $as_echo_n "checking how to print strings... " >&6; }
10726 # Test print first, because it will be a builtin if present.
10727 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10728 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10729 ECHO='print -r --'
10730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10731 ECHO='printf %s\n'
10732 else
10733 # Use this function as a fallback that always works.
10734 func_fallback_echo ()
10735 {
10736 eval 'cat <<_LTECHO_EOF
10737 $1
10738 _LTECHO_EOF'
10739 }
10740 ECHO='func_fallback_echo'
10741 fi
10742
10743 # func_echo_all arg...
10744 # Invoke $ECHO with all args, space-separated.
10745 func_echo_all ()
10746 {
10747 $ECHO ""
10748 }
10749
10750 case "$ECHO" in
10751 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10752 $as_echo "printf" >&6; } ;;
10753 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10754 $as_echo "print -r" >&6; } ;;
10755 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10756 $as_echo "cat" >&6; } ;;
10757 esac
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10773 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10774 if ${ac_cv_path_SED+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10778 for ac_i in 1 2 3 4 5 6 7; do
10779 ac_script="$ac_script$as_nl$ac_script"
10780 done
10781 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10782 { ac_script=; unset ac_script;}
10783 if test -z "$SED"; then
10784 ac_path_SED_found=false
10785 # Loop through the user's path and test for each of PROGNAME-LIST
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10788 do
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_prog in sed gsed; do
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10794 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10795 # Check for GNU ac_path_SED and select it if it is found.
10796 # Check for GNU $ac_path_SED
10797 case `"$ac_path_SED" --version 2>&1` in
10798 *GNU*)
10799 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10800 *)
10801 ac_count=0
10802 $as_echo_n 0123456789 >"conftest.in"
10803 while :
10804 do
10805 cat "conftest.in" "conftest.in" >"conftest.tmp"
10806 mv "conftest.tmp" "conftest.in"
10807 cp "conftest.in" "conftest.nl"
10808 $as_echo '' >> "conftest.nl"
10809 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10811 as_fn_arith $ac_count + 1 && ac_count=$as_val
10812 if test $ac_count -gt ${ac_path_SED_max-0}; then
10813 # Best one so far, save it but keep looking for a better one
10814 ac_cv_path_SED="$ac_path_SED"
10815 ac_path_SED_max=$ac_count
10816 fi
10817 # 10*(2^10) chars as input seems more than enough
10818 test $ac_count -gt 10 && break
10819 done
10820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10821 esac
10822
10823 $ac_path_SED_found && break 3
10824 done
10825 done
10826 done
10827 IFS=$as_save_IFS
10828 if test -z "$ac_cv_path_SED"; then
10829 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10830 fi
10831 else
10832 ac_cv_path_SED=$SED
10833 fi
10834
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10837 $as_echo "$ac_cv_path_SED" >&6; }
10838 SED="$ac_cv_path_SED"
10839 rm -f conftest.sed
10840
10841 test -z "$SED" && SED=sed
10842 Xsed="$SED -e 1s/^X//"
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10855 $as_echo_n "checking for fgrep... " >&6; }
10856 if ${ac_cv_path_FGREP+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10860 then ac_cv_path_FGREP="$GREP -F"
10861 else
10862 if test -z "$FGREP"; then
10863 ac_path_FGREP_found=false
10864 # Loop through the user's path and test for each of PROGNAME-LIST
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10867 do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_prog in fgrep; do
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10873 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10874 # Check for GNU ac_path_FGREP and select it if it is found.
10875 # Check for GNU $ac_path_FGREP
10876 case `"$ac_path_FGREP" --version 2>&1` in
10877 *GNU*)
10878 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10879 *)
10880 ac_count=0
10881 $as_echo_n 0123456789 >"conftest.in"
10882 while :
10883 do
10884 cat "conftest.in" "conftest.in" >"conftest.tmp"
10885 mv "conftest.tmp" "conftest.in"
10886 cp "conftest.in" "conftest.nl"
10887 $as_echo 'FGREP' >> "conftest.nl"
10888 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10890 as_fn_arith $ac_count + 1 && ac_count=$as_val
10891 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10892 # Best one so far, save it but keep looking for a better one
10893 ac_cv_path_FGREP="$ac_path_FGREP"
10894 ac_path_FGREP_max=$ac_count
10895 fi
10896 # 10*(2^10) chars as input seems more than enough
10897 test $ac_count -gt 10 && break
10898 done
10899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10900 esac
10901
10902 $ac_path_FGREP_found && break 3
10903 done
10904 done
10905 done
10906 IFS=$as_save_IFS
10907 if test -z "$ac_cv_path_FGREP"; then
10908 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10909 fi
10910 else
10911 ac_cv_path_FGREP=$FGREP
10912 fi
10913
10914 fi
10915 fi
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10917 $as_echo "$ac_cv_path_FGREP" >&6; }
10918 FGREP="$ac_cv_path_FGREP"
10919
10920
10921 test -z "$GREP" && GREP=grep
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 # Check whether --with-gnu-ld was given.
10942 if test "${with_gnu_ld+set}" = set; then :
10943 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10944 else
10945 with_gnu_ld=no
10946 fi
10947
10948 ac_prog=ld
10949 if test "$GCC" = yes; then
10950 # Check if gcc -print-prog-name=ld gives a path.
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10952 $as_echo_n "checking for ld used by $CC... " >&6; }
10953 case $host in
10954 *-*-mingw*)
10955 # gcc leaves a trailing carriage return which upsets mingw
10956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10957 *)
10958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10959 esac
10960 case $ac_prog in
10961 # Accept absolute paths.
10962 [\\/]* | ?:[\\/]*)
10963 re_direlt='/[^/][^/]*/\.\./'
10964 # Canonicalize the pathname of ld
10965 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10966 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10967 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10968 done
10969 test -z "$LD" && LD="$ac_prog"
10970 ;;
10971 "")
10972 # If it fails, then pretend we aren't using GCC.
10973 ac_prog=ld
10974 ;;
10975 *)
10976 # If it is relative, then search for the first ld in PATH.
10977 with_gnu_ld=unknown
10978 ;;
10979 esac
10980 elif test "$with_gnu_ld" = yes; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10982 $as_echo_n "checking for GNU ld... " >&6; }
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10985 $as_echo_n "checking for non-GNU ld... " >&6; }
10986 fi
10987 if ${lt_cv_path_LD+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 if test -z "$LD"; then
10991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10992 for ac_dir in $PATH; do
10993 IFS="$lt_save_ifs"
10994 test -z "$ac_dir" && ac_dir=.
10995 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10996 lt_cv_path_LD="$ac_dir/$ac_prog"
10997 # Check to see if the program is GNU ld. I'd rather use --version,
10998 # but apparently some variants of GNU ld only accept -v.
10999 # Break only if it was the GNU/non-GNU ld that we prefer.
11000 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11001 *GNU* | *'with BFD'*)
11002 test "$with_gnu_ld" != no && break
11003 ;;
11004 *)
11005 test "$with_gnu_ld" != yes && break
11006 ;;
11007 esac
11008 fi
11009 done
11010 IFS="$lt_save_ifs"
11011 else
11012 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11013 fi
11014 fi
11015
11016 LD="$lt_cv_path_LD"
11017 if test -n "$LD"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11019 $as_echo "$LD" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11023 fi
11024 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11027 if ${lt_cv_prog_gnu_ld+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11031 case `$LD -v 2>&1 </dev/null` in
11032 *GNU* | *'with BFD'*)
11033 lt_cv_prog_gnu_ld=yes
11034 ;;
11035 *)
11036 lt_cv_prog_gnu_ld=no
11037 ;;
11038 esac
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11042 with_gnu_ld=$lt_cv_prog_gnu_ld
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11053 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11054 if ${lt_cv_path_NM+:} false; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 if test -n "$NM"; then
11058 # Let the user override the test.
11059 lt_cv_path_NM="$NM"
11060 else
11061 lt_nm_to_check="${ac_tool_prefix}nm"
11062 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11063 lt_nm_to_check="$lt_nm_to_check nm"
11064 fi
11065 for lt_tmp_nm in $lt_nm_to_check; do
11066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11067 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11068 IFS="$lt_save_ifs"
11069 test -z "$ac_dir" && ac_dir=.
11070 tmp_nm="$ac_dir/$lt_tmp_nm"
11071 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11072 # Check to see if the nm accepts a BSD-compat flag.
11073 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11074 # nm: unknown option "B" ignored
11075 # Tru64's nm complains that /dev/null is an invalid object file
11076 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11077 */dev/null* | *'Invalid file or object type'*)
11078 lt_cv_path_NM="$tmp_nm -B"
11079 break
11080 ;;
11081 *)
11082 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11083 */dev/null*)
11084 lt_cv_path_NM="$tmp_nm -p"
11085 break
11086 ;;
11087 *)
11088 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11089 continue # so that we can try to find one that supports BSD flags
11090 ;;
11091 esac
11092 ;;
11093 esac
11094 fi
11095 done
11096 IFS="$lt_save_ifs"
11097 done
11098 : ${lt_cv_path_NM=no}
11099 fi
11100 fi
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11102 $as_echo "$lt_cv_path_NM" >&6; }
11103 if test "$lt_cv_path_NM" != "no"; then
11104 NM="$lt_cv_path_NM"
11105 else
11106 # Didn't find any BSD compatible name lister, look for dumpbin.
11107 if test -n "$DUMPBIN"; then :
11108 # Let the user override the test.
11109 else
11110 if test -n "$ac_tool_prefix"; then
11111 for ac_prog in dumpbin "link -dump"
11112 do
11113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if ${ac_cv_prog_DUMPBIN+:} false; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 if test -n "$DUMPBIN"; then
11121 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11122 else
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134 done
11135 done
11136 IFS=$as_save_IFS
11137
11138 fi
11139 fi
11140 DUMPBIN=$ac_cv_prog_DUMPBIN
11141 if test -n "$DUMPBIN"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11143 $as_echo "$DUMPBIN" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148
11149
11150 test -n "$DUMPBIN" && break
11151 done
11152 fi
11153 if test -z "$DUMPBIN"; then
11154 ac_ct_DUMPBIN=$DUMPBIN
11155 for ac_prog in dumpbin "link -dump"
11156 do
11157 # Extract the first word of "$ac_prog", so it can be a program name with args.
11158 set dummy $ac_prog; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 if test -n "$ac_ct_DUMPBIN"; then
11165 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11177 fi
11178 done
11179 done
11180 IFS=$as_save_IFS
11181
11182 fi
11183 fi
11184 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11185 if test -n "$ac_ct_DUMPBIN"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11187 $as_echo "$ac_ct_DUMPBIN" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11191 fi
11192
11193
11194 test -n "$ac_ct_DUMPBIN" && break
11195 done
11196
11197 if test "x$ac_ct_DUMPBIN" = x; then
11198 DUMPBIN=":"
11199 else
11200 case $cross_compiling:$ac_tool_warned in
11201 yes:)
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11204 ac_tool_warned=yes ;;
11205 esac
11206 DUMPBIN=$ac_ct_DUMPBIN
11207 fi
11208 fi
11209
11210 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11211 *COFF*)
11212 DUMPBIN="$DUMPBIN -symbols"
11213 ;;
11214 *)
11215 DUMPBIN=:
11216 ;;
11217 esac
11218 fi
11219
11220 if test "$DUMPBIN" != ":"; then
11221 NM="$DUMPBIN"
11222 fi
11223 fi
11224 test -z "$NM" && NM=nm
11225
11226
11227
11228
11229
11230
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11232 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11233 if ${lt_cv_nm_interface+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 lt_cv_nm_interface="BSD nm"
11237 echo "int some_variable = 0;" > conftest.$ac_ext
11238 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11239 (eval "$ac_compile" 2>conftest.err)
11240 cat conftest.err >&5
11241 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11242 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11243 cat conftest.err >&5
11244 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11245 cat conftest.out >&5
11246 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11247 lt_cv_nm_interface="MS dumpbin"
11248 fi
11249 rm -f conftest*
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11252 $as_echo "$lt_cv_nm_interface" >&6; }
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11255 $as_echo_n "checking whether ln -s works... " >&6; }
11256 LN_S=$as_ln_s
11257 if test "$LN_S" = "ln -s"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259 $as_echo "yes" >&6; }
11260 else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11262 $as_echo "no, using $LN_S" >&6; }
11263 fi
11264
11265 # find the maximum length of command line arguments
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11267 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11268 if ${lt_cv_sys_max_cmd_len+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 i=0
11272 teststring="ABCD"
11273
11274 case $build_os in
11275 msdosdjgpp*)
11276 # On DJGPP, this test can blow up pretty badly due to problems in libc
11277 # (any single argument exceeding 2000 bytes causes a buffer overrun
11278 # during glob expansion). Even if it were fixed, the result of this
11279 # check would be larger than it should be.
11280 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11281 ;;
11282
11283 gnu*)
11284 # Under GNU Hurd, this test is not required because there is
11285 # no limit to the length of command line arguments.
11286 # Libtool will interpret -1 as no limit whatsoever
11287 lt_cv_sys_max_cmd_len=-1;
11288 ;;
11289
11290 cygwin* | mingw* | cegcc*)
11291 # On Win9x/ME, this test blows up -- it succeeds, but takes
11292 # about 5 minutes as the teststring grows exponentially.
11293 # Worse, since 9x/ME are not pre-emptively multitasking,
11294 # you end up with a "frozen" computer, even though with patience
11295 # the test eventually succeeds (with a max line length of 256k).
11296 # Instead, let's just punt: use the minimum linelength reported by
11297 # all of the supported platforms: 8192 (on NT/2K/XP).
11298 lt_cv_sys_max_cmd_len=8192;
11299 ;;
11300
11301 mint*)
11302 # On MiNT this can take a long time and run out of memory.
11303 lt_cv_sys_max_cmd_len=8192;
11304 ;;
11305
11306 amigaos*)
11307 # On AmigaOS with pdksh, this test takes hours, literally.
11308 # So we just punt and use a minimum line length of 8192.
11309 lt_cv_sys_max_cmd_len=8192;
11310 ;;
11311
11312 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11313 # This has been around since 386BSD, at least. Likely further.
11314 if test -x /sbin/sysctl; then
11315 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11316 elif test -x /usr/sbin/sysctl; then
11317 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11318 else
11319 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11320 fi
11321 # And add a safety zone
11322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11324 ;;
11325
11326 interix*)
11327 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11328 lt_cv_sys_max_cmd_len=196608
11329 ;;
11330
11331 os2*)
11332 # The test takes a long time on OS/2.
11333 lt_cv_sys_max_cmd_len=8192
11334 ;;
11335
11336 osf*)
11337 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11338 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11339 # nice to cause kernel panics so lets avoid the loop below.
11340 # First set a reasonable default.
11341 lt_cv_sys_max_cmd_len=16384
11342 #
11343 if test -x /sbin/sysconfig; then
11344 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11345 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11346 esac
11347 fi
11348 ;;
11349 sco3.2v5*)
11350 lt_cv_sys_max_cmd_len=102400
11351 ;;
11352 sysv5* | sco5v6* | sysv4.2uw2*)
11353 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11354 if test -n "$kargmax"; then
11355 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11356 else
11357 lt_cv_sys_max_cmd_len=32768
11358 fi
11359 ;;
11360 *)
11361 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11362 if test -n "$lt_cv_sys_max_cmd_len"; then
11363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11365 else
11366 # Make teststring a little bigger before we do anything with it.
11367 # a 1K string should be a reasonable start.
11368 for i in 1 2 3 4 5 6 7 8 ; do
11369 teststring=$teststring$teststring
11370 done
11371 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11372 # If test is not a shell built-in, we'll probably end up computing a
11373 # maximum length that is only half of the actual maximum length, but
11374 # we can't tell.
11375 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11376 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11377 test $i != 17 # 1/2 MB should be enough
11378 do
11379 i=`expr $i + 1`
11380 teststring=$teststring$teststring
11381 done
11382 # Only check the string length outside the loop.
11383 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11384 teststring=
11385 # Add a significant safety factor because C++ compilers can tack on
11386 # massive amounts of additional arguments before passing them to the
11387 # linker. It appears as though 1/2 is a usable value.
11388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11389 fi
11390 ;;
11391 esac
11392
11393 fi
11394
11395 if test -n $lt_cv_sys_max_cmd_len ; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11397 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11400 $as_echo "none" >&6; }
11401 fi
11402 max_cmd_len=$lt_cv_sys_max_cmd_len
11403
11404
11405
11406
11407
11408
11409 : ${CP="cp -f"}
11410 : ${MV="mv -f"}
11411 : ${RM="rm -f"}
11412
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11414 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11415 # Try some XSI features
11416 xsi_shell=no
11417 ( _lt_dummy="a/b/c"
11418 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11419 = c,a/b,b/c, \
11420 && eval 'test $(( 1 + 1 )) -eq 2 \
11421 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11422 && xsi_shell=yes
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11424 $as_echo "$xsi_shell" >&6; }
11425
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11428 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11429 lt_shell_append=no
11430 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11431 >/dev/null 2>&1 \
11432 && lt_shell_append=yes
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11434 $as_echo "$lt_shell_append" >&6; }
11435
11436
11437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11438 lt_unset=unset
11439 else
11440 lt_unset=false
11441 fi
11442
11443
11444
11445
11446
11447 # test EBCDIC or ASCII
11448 case `echo X|tr X '\101'` in
11449 A) # ASCII based system
11450 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11451 lt_SP2NL='tr \040 \012'
11452 lt_NL2SP='tr \015\012 \040\040'
11453 ;;
11454 *) # EBCDIC based system
11455 lt_SP2NL='tr \100 \n'
11456 lt_NL2SP='tr \r\n \100\100'
11457 ;;
11458 esac
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11469 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11470 if ${lt_cv_to_host_file_cmd+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 case $host in
11474 *-*-mingw* )
11475 case $build in
11476 *-*-mingw* ) # actually msys
11477 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11478 ;;
11479 *-*-cygwin* )
11480 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11481 ;;
11482 * ) # otherwise, assume *nix
11483 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11484 ;;
11485 esac
11486 ;;
11487 *-*-cygwin* )
11488 case $build in
11489 *-*-mingw* ) # actually msys
11490 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11491 ;;
11492 *-*-cygwin* )
11493 lt_cv_to_host_file_cmd=func_convert_file_noop
11494 ;;
11495 * ) # otherwise, assume *nix
11496 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11497 ;;
11498 esac
11499 ;;
11500 * ) # unhandled hosts (and "normal" native builds)
11501 lt_cv_to_host_file_cmd=func_convert_file_noop
11502 ;;
11503 esac
11504
11505 fi
11506
11507 to_host_file_cmd=$lt_cv_to_host_file_cmd
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11509 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11510
11511
11512
11513
11514
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11516 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11517 if ${lt_cv_to_tool_file_cmd+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 #assume ordinary cross tools, or native build.
11521 lt_cv_to_tool_file_cmd=func_convert_file_noop
11522 case $host in
11523 *-*-mingw* )
11524 case $build in
11525 *-*-mingw* ) # actually msys
11526 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11527 ;;
11528 esac
11529 ;;
11530 esac
11531
11532 fi
11533
11534 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11536 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11537
11538
11539
11540
11541
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11543 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11544 if ${lt_cv_ld_reload_flag+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 lt_cv_ld_reload_flag='-r'
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11550 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11551 reload_flag=$lt_cv_ld_reload_flag
11552 case $reload_flag in
11553 "" | " "*) ;;
11554 *) reload_flag=" $reload_flag" ;;
11555 esac
11556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11557 case $host_os in
11558 cygwin* | mingw* | pw32* | cegcc*)
11559 if test "$GCC" != yes; then
11560 reload_cmds=false
11561 fi
11562 ;;
11563 darwin*)
11564 if test "$GCC" = yes; then
11565 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11566 else
11567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11568 fi
11569 ;;
11570 esac
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580 if test -n "$ac_tool_prefix"; then
11581 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11582 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if ${ac_cv_prog_OBJDUMP+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 if test -n "$OBJDUMP"; then
11589 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11601 fi
11602 done
11603 done
11604 IFS=$as_save_IFS
11605
11606 fi
11607 fi
11608 OBJDUMP=$ac_cv_prog_OBJDUMP
11609 if test -n "$OBJDUMP"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11611 $as_echo "$OBJDUMP" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616
11617
11618 fi
11619 if test -z "$ac_cv_prog_OBJDUMP"; then
11620 ac_ct_OBJDUMP=$OBJDUMP
11621 # Extract the first word of "objdump", so it can be a program name with args.
11622 set dummy objdump; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 if test -n "$ac_ct_OBJDUMP"; then
11629 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11633 do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642 done
11643 done
11644 IFS=$as_save_IFS
11645
11646 fi
11647 fi
11648 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11649 if test -n "$ac_ct_OBJDUMP"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11651 $as_echo "$ac_ct_OBJDUMP" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11655 fi
11656
11657 if test "x$ac_ct_OBJDUMP" = x; then
11658 OBJDUMP="false"
11659 else
11660 case $cross_compiling:$ac_tool_warned in
11661 yes:)
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11664 ac_tool_warned=yes ;;
11665 esac
11666 OBJDUMP=$ac_ct_OBJDUMP
11667 fi
11668 else
11669 OBJDUMP="$ac_cv_prog_OBJDUMP"
11670 fi
11671
11672 test -z "$OBJDUMP" && OBJDUMP=objdump
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11683 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11684 if ${lt_cv_deplibs_check_method+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 lt_cv_file_magic_cmd='$MAGIC_CMD'
11688 lt_cv_file_magic_test_file=
11689 lt_cv_deplibs_check_method='unknown'
11690 # Need to set the preceding variable on all platforms that support
11691 # interlibrary dependencies.
11692 # 'none' -- dependencies not supported.
11693 # `unknown' -- same as none, but documents that we really don't know.
11694 # 'pass_all' -- all dependencies passed with no checks.
11695 # 'test_compile' -- check by making test program.
11696 # 'file_magic [[regex]]' -- check by looking for files in library path
11697 # which responds to the $file_magic_cmd with a given extended regex.
11698 # If you have `file' or equivalent on your system and you're not sure
11699 # whether `pass_all' will *always* work, you probably want this one.
11700
11701 case $host_os in
11702 aix[4-9]*)
11703 lt_cv_deplibs_check_method=pass_all
11704 ;;
11705
11706 beos*)
11707 lt_cv_deplibs_check_method=pass_all
11708 ;;
11709
11710 bsdi[45]*)
11711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11712 lt_cv_file_magic_cmd='/usr/bin/file -L'
11713 lt_cv_file_magic_test_file=/shlib/libc.so
11714 ;;
11715
11716 cygwin*)
11717 # func_win32_libid is a shell function defined in ltmain.sh
11718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11719 lt_cv_file_magic_cmd='func_win32_libid'
11720 ;;
11721
11722 mingw* | pw32*)
11723 # Base MSYS/MinGW do not provide the 'file' command needed by
11724 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11725 # unless we find 'file', for example because we are cross-compiling.
11726 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11727 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11729 lt_cv_file_magic_cmd='func_win32_libid'
11730 else
11731 # Keep this pattern in sync with the one in func_win32_libid.
11732 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11733 lt_cv_file_magic_cmd='$OBJDUMP -f'
11734 fi
11735 ;;
11736
11737 cegcc*)
11738 # use the weaker test based on 'objdump'. See mingw*.
11739 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11740 lt_cv_file_magic_cmd='$OBJDUMP -f'
11741 ;;
11742
11743 darwin* | rhapsody*)
11744 lt_cv_deplibs_check_method=pass_all
11745 ;;
11746
11747 freebsd* | dragonfly*)
11748 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11749 case $host_cpu in
11750 i*86 )
11751 # Not sure whether the presence of OpenBSD here was a mistake.
11752 # Let's accept both of them until this is cleared up.
11753 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11754 lt_cv_file_magic_cmd=/usr/bin/file
11755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11756 ;;
11757 esac
11758 else
11759 lt_cv_deplibs_check_method=pass_all
11760 fi
11761 ;;
11762
11763 gnu*)
11764 lt_cv_deplibs_check_method=pass_all
11765 ;;
11766
11767 haiku*)
11768 lt_cv_deplibs_check_method=pass_all
11769 ;;
11770
11771 hpux10.20* | hpux11*)
11772 lt_cv_file_magic_cmd=/usr/bin/file
11773 case $host_cpu in
11774 ia64*)
11775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11776 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11777 ;;
11778 hppa*64*)
11779 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]'
11780 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11781 ;;
11782 *)
11783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11784 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11785 ;;
11786 esac
11787 ;;
11788
11789 interix[3-9]*)
11790 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11792 ;;
11793
11794 irix5* | irix6* | nonstopux*)
11795 case $LD in
11796 *-32|*"-32 ") libmagic=32-bit;;
11797 *-n32|*"-n32 ") libmagic=N32;;
11798 *-64|*"-64 ") libmagic=64-bit;;
11799 *) libmagic=never-match;;
11800 esac
11801 lt_cv_deplibs_check_method=pass_all
11802 ;;
11803
11804 # This must be glibc/ELF.
11805 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11806 lt_cv_deplibs_check_method=pass_all
11807 ;;
11808
11809 netbsd*)
11810 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11812 else
11813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11814 fi
11815 ;;
11816
11817 newos6*)
11818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11819 lt_cv_file_magic_cmd=/usr/bin/file
11820 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11821 ;;
11822
11823 *nto* | *qnx*)
11824 lt_cv_deplibs_check_method=pass_all
11825 ;;
11826
11827 openbsd*)
11828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11830 else
11831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11832 fi
11833 ;;
11834
11835 osf3* | osf4* | osf5*)
11836 lt_cv_deplibs_check_method=pass_all
11837 ;;
11838
11839 rdos*)
11840 lt_cv_deplibs_check_method=pass_all
11841 ;;
11842
11843 solaris*)
11844 lt_cv_deplibs_check_method=pass_all
11845 ;;
11846
11847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11848 lt_cv_deplibs_check_method=pass_all
11849 ;;
11850
11851 sysv4 | sysv4.3*)
11852 case $host_vendor in
11853 motorola)
11854 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]'
11855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11856 ;;
11857 ncr)
11858 lt_cv_deplibs_check_method=pass_all
11859 ;;
11860 sequent)
11861 lt_cv_file_magic_cmd='/bin/file'
11862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11863 ;;
11864 sni)
11865 lt_cv_file_magic_cmd='/bin/file'
11866 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11867 lt_cv_file_magic_test_file=/lib/libc.so
11868 ;;
11869 siemens)
11870 lt_cv_deplibs_check_method=pass_all
11871 ;;
11872 pc)
11873 lt_cv_deplibs_check_method=pass_all
11874 ;;
11875 esac
11876 ;;
11877
11878 tpf*)
11879 lt_cv_deplibs_check_method=pass_all
11880 ;;
11881 esac
11882
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11885 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11886
11887 file_magic_glob=
11888 want_nocaseglob=no
11889 if test "$build" = "$host"; then
11890 case $host_os in
11891 mingw* | pw32*)
11892 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11893 want_nocaseglob=yes
11894 else
11895 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11896 fi
11897 ;;
11898 esac
11899 fi
11900
11901 file_magic_cmd=$lt_cv_file_magic_cmd
11902 deplibs_check_method=$lt_cv_deplibs_check_method
11903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 if test -n "$ac_tool_prefix"; then
11927 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11928 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_prog_DLLTOOL+:} false; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 if test -n "$DLLTOOL"; then
11935 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11936 else
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11939 do
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11944 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948 done
11949 done
11950 IFS=$as_save_IFS
11951
11952 fi
11953 fi
11954 DLLTOOL=$ac_cv_prog_DLLTOOL
11955 if test -n "$DLLTOOL"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11957 $as_echo "$DLLTOOL" >&6; }
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11961 fi
11962
11963
11964 fi
11965 if test -z "$ac_cv_prog_DLLTOOL"; then
11966 ac_ct_DLLTOOL=$DLLTOOL
11967 # Extract the first word of "dlltool", so it can be a program name with args.
11968 set dummy dlltool; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 if test -n "$ac_ct_DLLTOOL"; then
11975 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11976 else
11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $PATH
11979 do
11980 IFS=$as_save_IFS
11981 test -z "$as_dir" && as_dir=.
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986 break 2
11987 fi
11988 done
11989 done
11990 IFS=$as_save_IFS
11991
11992 fi
11993 fi
11994 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11995 if test -n "$ac_ct_DLLTOOL"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11997 $as_echo "$ac_ct_DLLTOOL" >&6; }
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001 fi
12002
12003 if test "x$ac_ct_DLLTOOL" = x; then
12004 DLLTOOL="false"
12005 else
12006 case $cross_compiling:$ac_tool_warned in
12007 yes:)
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12010 ac_tool_warned=yes ;;
12011 esac
12012 DLLTOOL=$ac_ct_DLLTOOL
12013 fi
12014 else
12015 DLLTOOL="$ac_cv_prog_DLLTOOL"
12016 fi
12017
12018 test -z "$DLLTOOL" && DLLTOOL=dlltool
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12030 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12031 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 lt_cv_sharedlib_from_linklib_cmd='unknown'
12035
12036 case $host_os in
12037 cygwin* | mingw* | pw32* | cegcc*)
12038 # two different shell functions defined in ltmain.sh
12039 # decide which to use based on capabilities of $DLLTOOL
12040 case `$DLLTOOL --help 2>&1` in
12041 *--identify-strict*)
12042 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12043 ;;
12044 *)
12045 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12046 ;;
12047 esac
12048 ;;
12049 *)
12050 # fallback: assume linklib IS sharedlib
12051 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12052 ;;
12053 esac
12054
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12057 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12058 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12059 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12060
12061
12062
12063
12064
12065
12066
12067 if test -n "$ac_tool_prefix"; then
12068 for ac_prog in ar
12069 do
12070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_prog_AR+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 if test -n "$AR"; then
12078 ac_cv_prog_AR="$AR" # Let the user override the test.
12079 else
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12087 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091 done
12092 done
12093 IFS=$as_save_IFS
12094
12095 fi
12096 fi
12097 AR=$ac_cv_prog_AR
12098 if test -n "$AR"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12100 $as_echo "$AR" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104 fi
12105
12106
12107 test -n "$AR" && break
12108 done
12109 fi
12110 if test -z "$AR"; then
12111 ac_ct_AR=$AR
12112 for ac_prog in ar
12113 do
12114 # Extract the first word of "$ac_prog", so it can be a program name with args.
12115 set dummy $ac_prog; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 if test -n "$ac_ct_AR"; then
12122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12123 else
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12126 do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_prog_ac_ct_AR="$ac_prog"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135 done
12136 done
12137 IFS=$as_save_IFS
12138
12139 fi
12140 fi
12141 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12142 if test -n "$ac_ct_AR"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12144 $as_echo "$ac_ct_AR" >&6; }
12145 else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12148 fi
12149
12150
12151 test -n "$ac_ct_AR" && break
12152 done
12153
12154 if test "x$ac_ct_AR" = x; then
12155 AR="false"
12156 else
12157 case $cross_compiling:$ac_tool_warned in
12158 yes:)
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12161 ac_tool_warned=yes ;;
12162 esac
12163 AR=$ac_ct_AR
12164 fi
12165 fi
12166
12167 : ${AR=ar}
12168 : ${AR_FLAGS=cru}
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12181 $as_echo_n "checking for archiver @FILE support... " >&6; }
12182 if ${lt_cv_ar_at_file+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 lt_cv_ar_at_file=no
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 int
12190 main ()
12191 {
12192
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 if ac_fn_c_try_compile "$LINENO"; then :
12198 echo conftest.$ac_objext > conftest.lst
12199 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12201 (eval $lt_ar_try) 2>&5
12202 ac_status=$?
12203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; }
12205 if test "$ac_status" -eq 0; then
12206 # Ensure the archiver fails upon bogus file names.
12207 rm -f conftest.$ac_objext libconftest.a
12208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12209 (eval $lt_ar_try) 2>&5
12210 ac_status=$?
12211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212 test $ac_status = 0; }
12213 if test "$ac_status" -ne 0; then
12214 lt_cv_ar_at_file=@
12215 fi
12216 fi
12217 rm -f conftest.* libconftest.a
12218
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12224 $as_echo "$lt_cv_ar_at_file" >&6; }
12225
12226 if test "x$lt_cv_ar_at_file" = xno; then
12227 archiver_list_spec=
12228 else
12229 archiver_list_spec=$lt_cv_ar_at_file
12230 fi
12231
12232
12233
12234
12235
12236
12237
12238 if test -n "$ac_tool_prefix"; then
12239 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12240 set dummy ${ac_tool_prefix}strip; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_prog_STRIP+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 if test -n "$STRIP"; then
12247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12248 else
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12251 do
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12256 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12259 fi
12260 done
12261 done
12262 IFS=$as_save_IFS
12263
12264 fi
12265 fi
12266 STRIP=$ac_cv_prog_STRIP
12267 if test -n "$STRIP"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12269 $as_echo "$STRIP" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12273 fi
12274
12275
12276 fi
12277 if test -z "$ac_cv_prog_STRIP"; then
12278 ac_ct_STRIP=$STRIP
12279 # Extract the first word of "strip", so it can be a program name with args.
12280 set dummy strip; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 if test -n "$ac_ct_STRIP"; then
12287 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12288 else
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12291 do
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_ac_ct_STRIP="strip"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12299 fi
12300 done
12301 done
12302 IFS=$as_save_IFS
12303
12304 fi
12305 fi
12306 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12307 if test -n "$ac_ct_STRIP"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12309 $as_echo "$ac_ct_STRIP" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12313 fi
12314
12315 if test "x$ac_ct_STRIP" = x; then
12316 STRIP=":"
12317 else
12318 case $cross_compiling:$ac_tool_warned in
12319 yes:)
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12322 ac_tool_warned=yes ;;
12323 esac
12324 STRIP=$ac_ct_STRIP
12325 fi
12326 else
12327 STRIP="$ac_cv_prog_STRIP"
12328 fi
12329
12330 test -z "$STRIP" && STRIP=:
12331
12332
12333
12334
12335
12336
12337 if test -n "$ac_tool_prefix"; then
12338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12341 $as_echo_n "checking for $ac_word... " >&6; }
12342 if ${ac_cv_prog_RANLIB+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 if test -n "$RANLIB"; then
12346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12347 else
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349 for as_dir in $PATH
12350 do
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12358 fi
12359 done
12360 done
12361 IFS=$as_save_IFS
12362
12363 fi
12364 fi
12365 RANLIB=$ac_cv_prog_RANLIB
12366 if test -n "$RANLIB"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12368 $as_echo "$RANLIB" >&6; }
12369 else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12372 fi
12373
12374
12375 fi
12376 if test -z "$ac_cv_prog_RANLIB"; then
12377 ac_ct_RANLIB=$RANLIB
12378 # Extract the first word of "ranlib", so it can be a program name with args.
12379 set dummy ranlib; ac_word=$2
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381 $as_echo_n "checking for $ac_word... " >&6; }
12382 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 if test -n "$ac_ct_RANLIB"; then
12386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12387 else
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH
12390 do
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12395 ac_cv_prog_ac_ct_RANLIB="ranlib"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12398 fi
12399 done
12400 done
12401 IFS=$as_save_IFS
12402
12403 fi
12404 fi
12405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12406 if test -n "$ac_ct_RANLIB"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12408 $as_echo "$ac_ct_RANLIB" >&6; }
12409 else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12412 fi
12413
12414 if test "x$ac_ct_RANLIB" = x; then
12415 RANLIB=":"
12416 else
12417 case $cross_compiling:$ac_tool_warned in
12418 yes:)
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12421 ac_tool_warned=yes ;;
12422 esac
12423 RANLIB=$ac_ct_RANLIB
12424 fi
12425 else
12426 RANLIB="$ac_cv_prog_RANLIB"
12427 fi
12428
12429 test -z "$RANLIB" && RANLIB=:
12430
12431
12432
12433
12434
12435
12436 # Determine commands to create old-style static archives.
12437 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12438 old_postinstall_cmds='chmod 644 $oldlib'
12439 old_postuninstall_cmds=
12440
12441 if test -n "$RANLIB"; then
12442 case $host_os in
12443 openbsd*)
12444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12445 ;;
12446 *)
12447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12448 ;;
12449 esac
12450 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12451 fi
12452
12453 case $host_os in
12454 darwin*)
12455 lock_old_archive_extraction=yes ;;
12456 *)
12457 lock_old_archive_extraction=no ;;
12458 esac
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498 # If no C compiler was specified, use CC.
12499 LTCC=${LTCC-"$CC"}
12500
12501 # If no C compiler flags were specified, use CFLAGS.
12502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12503
12504 # Allow CC to be a program name with arguments.
12505 compiler=$CC
12506
12507
12508 # Check for command to grab the raw symbol name followed by C symbol from nm.
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12510 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12511 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514
12515 # These are sane defaults that work on at least a few old systems.
12516 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12517
12518 # Character class describing NM global symbol codes.
12519 symcode='[BCDEGRST]'
12520
12521 # Regexp to match symbols that can be accessed directly from C.
12522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12523
12524 # Define system-specific variables.
12525 case $host_os in
12526 aix*)
12527 symcode='[BCDT]'
12528 ;;
12529 cygwin* | mingw* | pw32* | cegcc*)
12530 symcode='[ABCDGISTW]'
12531 ;;
12532 hpux*)
12533 if test "$host_cpu" = ia64; then
12534 symcode='[ABCDEGRST]'
12535 fi
12536 ;;
12537 irix* | nonstopux*)
12538 symcode='[BCDEGRST]'
12539 ;;
12540 osf*)
12541 symcode='[BCDEGQRST]'
12542 ;;
12543 solaris*)
12544 symcode='[BDRT]'
12545 ;;
12546 sco3.2v5*)
12547 symcode='[DT]'
12548 ;;
12549 sysv4.2uw2*)
12550 symcode='[DT]'
12551 ;;
12552 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12553 symcode='[ABDT]'
12554 ;;
12555 sysv4)
12556 symcode='[DFNSTU]'
12557 ;;
12558 esac
12559
12560 # If we're using GNU nm, then use its standard symbol codes.
12561 case `$NM -V 2>&1` in
12562 *GNU* | *'with BFD'*)
12563 symcode='[ABCDGIRSTW]' ;;
12564 esac
12565
12566 # Transform an extracted symbol line into a proper C declaration.
12567 # Some systems (esp. on ia64) link data and code symbols differently,
12568 # so use this general approach.
12569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12570
12571 # Transform an extracted symbol line into symbol name and symbol address
12572 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12573 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'"
12574
12575 # Handle CRLF in mingw tool chain
12576 opt_cr=
12577 case $build_os in
12578 mingw*)
12579 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12580 ;;
12581 esac
12582
12583 # Try without a prefix underscore, then with it.
12584 for ac_symprfx in "" "_"; do
12585
12586 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12587 symxfrm="\\1 $ac_symprfx\\2 \\2"
12588
12589 # Write the raw and C identifiers.
12590 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12591 # Fake it for dumpbin and say T for any non-static function
12592 # and D for any global variable.
12593 # Also find C++ and __fastcall symbols from MSVC++,
12594 # which start with @ or ?.
12595 lt_cv_sys_global_symbol_pipe="$AWK '"\
12596 " {last_section=section; section=\$ 3};"\
12597 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12598 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12599 " \$ 0!~/External *\|/{next};"\
12600 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12601 " {if(hide[section]) next};"\
12602 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12603 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12604 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12605 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12606 " ' prfx=^$ac_symprfx"
12607 else
12608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12609 fi
12610 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12611
12612 # Check to see that the pipe works correctly.
12613 pipe_works=no
12614
12615 rm -f conftest*
12616 cat > conftest.$ac_ext <<_LT_EOF
12617 #ifdef __cplusplus
12618 extern "C" {
12619 #endif
12620 char nm_test_var;
12621 void nm_test_func(void);
12622 void nm_test_func(void){}
12623 #ifdef __cplusplus
12624 }
12625 #endif
12626 int main(){nm_test_var='a';nm_test_func();return(0);}
12627 _LT_EOF
12628
12629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12630 (eval $ac_compile) 2>&5
12631 ac_status=$?
12632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633 test $ac_status = 0; }; then
12634 # Now try to grab the symbols.
12635 nlist=conftest.nm
12636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12637 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12638 ac_status=$?
12639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640 test $ac_status = 0; } && test -s "$nlist"; then
12641 # Try sorting and uniquifying the output.
12642 if sort "$nlist" | uniq > "$nlist"T; then
12643 mv -f "$nlist"T "$nlist"
12644 else
12645 rm -f "$nlist"T
12646 fi
12647
12648 # Make sure that we snagged all the symbols we need.
12649 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12650 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12651 cat <<_LT_EOF > conftest.$ac_ext
12652 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12653 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12654 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12655 relocations are performed -- see ld's documentation on pseudo-relocs. */
12656 # define LT_DLSYM_CONST
12657 #elif defined(__osf__)
12658 /* This system does not cope well with relocations in const data. */
12659 # define LT_DLSYM_CONST
12660 #else
12661 # define LT_DLSYM_CONST const
12662 #endif
12663
12664 #ifdef __cplusplus
12665 extern "C" {
12666 #endif
12667
12668 _LT_EOF
12669 # Now generate the symbol file.
12670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12671
12672 cat <<_LT_EOF >> conftest.$ac_ext
12673
12674 /* The mapping between symbol names and symbols. */
12675 LT_DLSYM_CONST struct {
12676 const char *name;
12677 void *address;
12678 }
12679 lt__PROGRAM__LTX_preloaded_symbols[] =
12680 {
12681 { "@PROGRAM@", (void *) 0 },
12682 _LT_EOF
12683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12684 cat <<\_LT_EOF >> conftest.$ac_ext
12685 {0, (void *) 0}
12686 };
12687
12688 /* This works around a problem in FreeBSD linker */
12689 #ifdef FREEBSD_WORKAROUND
12690 static const void *lt_preloaded_setup() {
12691 return lt__PROGRAM__LTX_preloaded_symbols;
12692 }
12693 #endif
12694
12695 #ifdef __cplusplus
12696 }
12697 #endif
12698 _LT_EOF
12699 # Now try linking the two files.
12700 mv conftest.$ac_objext conftstm.$ac_objext
12701 lt_globsym_save_LIBS=$LIBS
12702 lt_globsym_save_CFLAGS=$CFLAGS
12703 LIBS="conftstm.$ac_objext"
12704 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12706 (eval $ac_link) 2>&5
12707 ac_status=$?
12708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12710 pipe_works=yes
12711 fi
12712 LIBS=$lt_globsym_save_LIBS
12713 CFLAGS=$lt_globsym_save_CFLAGS
12714 else
12715 echo "cannot find nm_test_func in $nlist" >&5
12716 fi
12717 else
12718 echo "cannot find nm_test_var in $nlist" >&5
12719 fi
12720 else
12721 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12722 fi
12723 else
12724 echo "$progname: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 fi
12727 rm -rf conftest* conftst*
12728
12729 # Do not use the global_symbol_pipe unless it works.
12730 if test "$pipe_works" = yes; then
12731 break
12732 else
12733 lt_cv_sys_global_symbol_pipe=
12734 fi
12735 done
12736
12737 fi
12738
12739 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12740 lt_cv_sys_global_symbol_to_cdecl=
12741 fi
12742 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12744 $as_echo "failed" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12747 $as_echo "ok" >&6; }
12748 fi
12749
12750 # Response file support.
12751 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12752 nm_file_list_spec='@'
12753 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12754 nm_file_list_spec='@'
12755 fi
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12784 $as_echo_n "checking for sysroot... " >&6; }
12785
12786 # Check whether --with-sysroot was given.
12787 if test "${with_sysroot+set}" = set; then :
12788 withval=$with_sysroot;
12789 else
12790 with_sysroot=no
12791 fi
12792
12793
12794 lt_sysroot=
12795 case ${with_sysroot} in #(
12796 yes)
12797 if test "$GCC" = yes; then
12798 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12799 fi
12800 ;; #(
12801 /*)
12802 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12803 ;; #(
12804 no|'')
12805 ;; #(
12806 *)
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12808 $as_echo "${with_sysroot}" >&6; }
12809 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12810 ;;
12811 esac
12812
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12814 $as_echo "${lt_sysroot:-no}" >&6; }
12815
12816
12817
12818
12819
12820 # Check whether --enable-libtool-lock was given.
12821 if test "${enable_libtool_lock+set}" = set; then :
12822 enableval=$enable_libtool_lock;
12823 fi
12824
12825 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12826
12827 # Some flags need to be propagated to the compiler or linker for good
12828 # libtool support.
12829 case $host in
12830 ia64-*-hpux*)
12831 # Find out which ABI we are using.
12832 echo 'int i;' > conftest.$ac_ext
12833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12834 (eval $ac_compile) 2>&5
12835 ac_status=$?
12836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837 test $ac_status = 0; }; then
12838 case `/usr/bin/file conftest.$ac_objext` in
12839 *ELF-32*)
12840 HPUX_IA64_MODE="32"
12841 ;;
12842 *ELF-64*)
12843 HPUX_IA64_MODE="64"
12844 ;;
12845 esac
12846 fi
12847 rm -rf conftest*
12848 ;;
12849 *-*-irix6*)
12850 # Find out which ABI we are using.
12851 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853 (eval $ac_compile) 2>&5
12854 ac_status=$?
12855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856 test $ac_status = 0; }; then
12857 if test "$lt_cv_prog_gnu_ld" = yes; then
12858 case `/usr/bin/file conftest.$ac_objext` in
12859 *32-bit*)
12860 LD="${LD-ld} -melf32bsmip"
12861 ;;
12862 *N32*)
12863 LD="${LD-ld} -melf32bmipn32"
12864 ;;
12865 *64-bit*)
12866 LD="${LD-ld} -melf64bmip"
12867 ;;
12868 esac
12869 else
12870 case `/usr/bin/file conftest.$ac_objext` in
12871 *32-bit*)
12872 LD="${LD-ld} -32"
12873 ;;
12874 *N32*)
12875 LD="${LD-ld} -n32"
12876 ;;
12877 *64-bit*)
12878 LD="${LD-ld} -64"
12879 ;;
12880 esac
12881 fi
12882 fi
12883 rm -rf conftest*
12884 ;;
12885
12886 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12887 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12888 # Find out which ABI we are using.
12889 echo 'int i;' > conftest.$ac_ext
12890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12891 (eval $ac_compile) 2>&5
12892 ac_status=$?
12893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894 test $ac_status = 0; }; then
12895 case `/usr/bin/file conftest.o` in
12896 *32-bit*)
12897 case $host in
12898 x86_64-*kfreebsd*-gnu)
12899 LD="${LD-ld} -m elf_i386_fbsd"
12900 ;;
12901 x86_64-*linux*)
12902 LD="${LD-ld} -m elf_i386"
12903 ;;
12904 ppc64-*linux*|powerpc64-*linux*)
12905 LD="${LD-ld} -m elf32ppclinux"
12906 ;;
12907 s390x-*linux*)
12908 LD="${LD-ld} -m elf_s390"
12909 ;;
12910 sparc64-*linux*)
12911 LD="${LD-ld} -m elf32_sparc"
12912 ;;
12913 esac
12914 ;;
12915 *64-bit*)
12916 case $host in
12917 x86_64-*kfreebsd*-gnu)
12918 LD="${LD-ld} -m elf_x86_64_fbsd"
12919 ;;
12920 x86_64-*linux*)
12921 LD="${LD-ld} -m elf_x86_64"
12922 ;;
12923 ppc*-*linux*|powerpc*-*linux*)
12924 LD="${LD-ld} -m elf64ppc"
12925 ;;
12926 s390*-*linux*|s390*-*tpf*)
12927 LD="${LD-ld} -m elf64_s390"
12928 ;;
12929 sparc*-*linux*)
12930 LD="${LD-ld} -m elf64_sparc"
12931 ;;
12932 esac
12933 ;;
12934 esac
12935 fi
12936 rm -rf conftest*
12937 ;;
12938
12939 *-*-sco3.2v5*)
12940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12941 SAVE_CFLAGS="$CFLAGS"
12942 CFLAGS="$CFLAGS -belf"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12944 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12945 if ${lt_cv_cc_needs_belf+:} false; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 ac_ext=c
12949 ac_cpp='$CPP $CPPFLAGS'
12950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12956
12957 int
12958 main ()
12959 {
12960
12961 ;
12962 return 0;
12963 }
12964 _ACEOF
12965 if ac_fn_c_try_link "$LINENO"; then :
12966 lt_cv_cc_needs_belf=yes
12967 else
12968 lt_cv_cc_needs_belf=no
12969 fi
12970 rm -f core conftest.err conftest.$ac_objext \
12971 conftest$ac_exeext conftest.$ac_ext
12972 ac_ext=c
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12980 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12981 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12983 CFLAGS="$SAVE_CFLAGS"
12984 fi
12985 ;;
12986 *-*solaris*)
12987 # Find out which ABI we are using.
12988 echo 'int i;' > conftest.$ac_ext
12989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12990 (eval $ac_compile) 2>&5
12991 ac_status=$?
12992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993 test $ac_status = 0; }; then
12994 case `/usr/bin/file conftest.o` in
12995 *64-bit*)
12996 case $lt_cv_prog_gnu_ld in
12997 yes*)
12998 case $host in
12999 i?86-*-solaris*)
13000 LD="${LD-ld} -m elf_x86_64"
13001 ;;
13002 sparc*-*-solaris*)
13003 LD="${LD-ld} -m elf64_sparc"
13004 ;;
13005 esac
13006 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13007 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13008 LD="${LD-ld}_sol2"
13009 fi
13010 ;;
13011 *)
13012 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13013 LD="${LD-ld} -64"
13014 fi
13015 ;;
13016 esac
13017 ;;
13018 esac
13019 fi
13020 rm -rf conftest*
13021 ;;
13022 esac
13023
13024 need_locks="$enable_libtool_lock"
13025
13026 if test -n "$ac_tool_prefix"; then
13027 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13028 set dummy ${ac_tool_prefix}mt; ac_word=$2
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030 $as_echo_n "checking for $ac_word... " >&6; }
13031 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 if test -n "$MANIFEST_TOOL"; then
13035 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13036 else
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13039 do
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13047 fi
13048 done
13049 done
13050 IFS=$as_save_IFS
13051
13052 fi
13053 fi
13054 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13055 if test -n "$MANIFEST_TOOL"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13057 $as_echo "$MANIFEST_TOOL" >&6; }
13058 else
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13061 fi
13062
13063
13064 fi
13065 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13066 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13067 # Extract the first word of "mt", so it can be a program name with args.
13068 set dummy mt; ac_word=$2
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070 $as_echo_n "checking for $ac_word... " >&6; }
13071 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 if test -n "$ac_ct_MANIFEST_TOOL"; then
13075 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13076 else
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13079 do
13080 IFS=$as_save_IFS
13081 test -z "$as_dir" && as_dir=.
13082 for ac_exec_ext in '' $ac_executable_extensions; do
13083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13084 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086 break 2
13087 fi
13088 done
13089 done
13090 IFS=$as_save_IFS
13091
13092 fi
13093 fi
13094 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13095 if test -n "$ac_ct_MANIFEST_TOOL"; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13097 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13098 else
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13101 fi
13102
13103 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13104 MANIFEST_TOOL=":"
13105 else
13106 case $cross_compiling:$ac_tool_warned in
13107 yes:)
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13110 ac_tool_warned=yes ;;
13111 esac
13112 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13113 fi
13114 else
13115 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13116 fi
13117
13118 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13120 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13121 if ${lt_cv_path_mainfest_tool+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 lt_cv_path_mainfest_tool=no
13125 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13126 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13127 cat conftest.err >&5
13128 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13129 lt_cv_path_mainfest_tool=yes
13130 fi
13131 rm -f conftest*
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13134 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13135 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13136 MANIFEST_TOOL=:
13137 fi
13138
13139
13140
13141
13142
13143
13144 case $host_os in
13145 rhapsody* | darwin*)
13146 if test -n "$ac_tool_prefix"; then
13147 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13148 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150 $as_echo_n "checking for $ac_word... " >&6; }
13151 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 if test -n "$DSYMUTIL"; then
13155 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13156 else
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13159 do
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13164 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 break 2
13167 fi
13168 done
13169 done
13170 IFS=$as_save_IFS
13171
13172 fi
13173 fi
13174 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13175 if test -n "$DSYMUTIL"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13177 $as_echo "$DSYMUTIL" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 fi
13182
13183
13184 fi
13185 if test -z "$ac_cv_prog_DSYMUTIL"; then
13186 ac_ct_DSYMUTIL=$DSYMUTIL
13187 # Extract the first word of "dsymutil", so it can be a program name with args.
13188 set dummy dsymutil; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 if test -n "$ac_ct_DSYMUTIL"; then
13195 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13196 else
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13199 do
13200 IFS=$as_save_IFS
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 break 2
13207 fi
13208 done
13209 done
13210 IFS=$as_save_IFS
13211
13212 fi
13213 fi
13214 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13215 if test -n "$ac_ct_DSYMUTIL"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13217 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 $as_echo "no" >&6; }
13221 fi
13222
13223 if test "x$ac_ct_DSYMUTIL" = x; then
13224 DSYMUTIL=":"
13225 else
13226 case $cross_compiling:$ac_tool_warned in
13227 yes:)
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13230 ac_tool_warned=yes ;;
13231 esac
13232 DSYMUTIL=$ac_ct_DSYMUTIL
13233 fi
13234 else
13235 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13236 fi
13237
13238 if test -n "$ac_tool_prefix"; then
13239 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13240 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if ${ac_cv_prog_NMEDIT+:} false; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 if test -n "$NMEDIT"; then
13247 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13248 else
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13251 do
13252 IFS=$as_save_IFS
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 break 2
13259 fi
13260 done
13261 done
13262 IFS=$as_save_IFS
13263
13264 fi
13265 fi
13266 NMEDIT=$ac_cv_prog_NMEDIT
13267 if test -n "$NMEDIT"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13269 $as_echo "$NMEDIT" >&6; }
13270 else
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13273 fi
13274
13275
13276 fi
13277 if test -z "$ac_cv_prog_NMEDIT"; then
13278 ac_ct_NMEDIT=$NMEDIT
13279 # Extract the first word of "nmedit", so it can be a program name with args.
13280 set dummy nmedit; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 if test -n "$ac_ct_NMEDIT"; then
13287 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13288 else
13289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13290 for as_dir in $PATH
13291 do
13292 IFS=$as_save_IFS
13293 test -z "$as_dir" && as_dir=.
13294 for ac_exec_ext in '' $ac_executable_extensions; do
13295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13296 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 break 2
13299 fi
13300 done
13301 done
13302 IFS=$as_save_IFS
13303
13304 fi
13305 fi
13306 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13307 if test -n "$ac_ct_NMEDIT"; then
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13309 $as_echo "$ac_ct_NMEDIT" >&6; }
13310 else
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13313 fi
13314
13315 if test "x$ac_ct_NMEDIT" = x; then
13316 NMEDIT=":"
13317 else
13318 case $cross_compiling:$ac_tool_warned in
13319 yes:)
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13322 ac_tool_warned=yes ;;
13323 esac
13324 NMEDIT=$ac_ct_NMEDIT
13325 fi
13326 else
13327 NMEDIT="$ac_cv_prog_NMEDIT"
13328 fi
13329
13330 if test -n "$ac_tool_prefix"; then
13331 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13332 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 $as_echo_n "checking for $ac_word... " >&6; }
13335 if ${ac_cv_prog_LIPO+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 if test -n "$LIPO"; then
13339 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13340 else
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13343 do
13344 IFS=$as_save_IFS
13345 test -z "$as_dir" && as_dir=.
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350 break 2
13351 fi
13352 done
13353 done
13354 IFS=$as_save_IFS
13355
13356 fi
13357 fi
13358 LIPO=$ac_cv_prog_LIPO
13359 if test -n "$LIPO"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13361 $as_echo "$LIPO" >&6; }
13362 else
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13365 fi
13366
13367
13368 fi
13369 if test -z "$ac_cv_prog_LIPO"; then
13370 ac_ct_LIPO=$LIPO
13371 # Extract the first word of "lipo", so it can be a program name with args.
13372 set dummy lipo; ac_word=$2
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 $as_echo_n "checking for $ac_word... " >&6; }
13375 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 if test -n "$ac_ct_LIPO"; then
13379 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13380 else
13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382 for as_dir in $PATH
13383 do
13384 IFS=$as_save_IFS
13385 test -z "$as_dir" && as_dir=.
13386 for ac_exec_ext in '' $ac_executable_extensions; do
13387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13388 ac_cv_prog_ac_ct_LIPO="lipo"
13389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390 break 2
13391 fi
13392 done
13393 done
13394 IFS=$as_save_IFS
13395
13396 fi
13397 fi
13398 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13399 if test -n "$ac_ct_LIPO"; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13401 $as_echo "$ac_ct_LIPO" >&6; }
13402 else
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404 $as_echo "no" >&6; }
13405 fi
13406
13407 if test "x$ac_ct_LIPO" = x; then
13408 LIPO=":"
13409 else
13410 case $cross_compiling:$ac_tool_warned in
13411 yes:)
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13414 ac_tool_warned=yes ;;
13415 esac
13416 LIPO=$ac_ct_LIPO
13417 fi
13418 else
13419 LIPO="$ac_cv_prog_LIPO"
13420 fi
13421
13422 if test -n "$ac_tool_prefix"; then
13423 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13424 set dummy ${ac_tool_prefix}otool; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if ${ac_cv_prog_OTOOL+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 if test -n "$OTOOL"; then
13431 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13432 else
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13435 do
13436 IFS=$as_save_IFS
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442 break 2
13443 fi
13444 done
13445 done
13446 IFS=$as_save_IFS
13447
13448 fi
13449 fi
13450 OTOOL=$ac_cv_prog_OTOOL
13451 if test -n "$OTOOL"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13453 $as_echo "$OTOOL" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458
13459
13460 fi
13461 if test -z "$ac_cv_prog_OTOOL"; then
13462 ac_ct_OTOOL=$OTOOL
13463 # Extract the first word of "otool", so it can be a program name with args.
13464 set dummy otool; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 if test -n "$ac_ct_OTOOL"; then
13471 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13472 else
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13475 do
13476 IFS=$as_save_IFS
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13480 ac_cv_prog_ac_ct_OTOOL="otool"
13481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482 break 2
13483 fi
13484 done
13485 done
13486 IFS=$as_save_IFS
13487
13488 fi
13489 fi
13490 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13491 if test -n "$ac_ct_OTOOL"; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13493 $as_echo "$ac_ct_OTOOL" >&6; }
13494 else
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13497 fi
13498
13499 if test "x$ac_ct_OTOOL" = x; then
13500 OTOOL=":"
13501 else
13502 case $cross_compiling:$ac_tool_warned in
13503 yes:)
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13506 ac_tool_warned=yes ;;
13507 esac
13508 OTOOL=$ac_ct_OTOOL
13509 fi
13510 else
13511 OTOOL="$ac_cv_prog_OTOOL"
13512 fi
13513
13514 if test -n "$ac_tool_prefix"; then
13515 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13516 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if ${ac_cv_prog_OTOOL64+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$OTOOL64"; then
13523 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 fi
13541 fi
13542 OTOOL64=$ac_cv_prog_OTOOL64
13543 if test -n "$OTOOL64"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13545 $as_echo "$OTOOL64" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551
13552 fi
13553 if test -z "$ac_cv_prog_OTOOL64"; then
13554 ac_ct_OTOOL64=$OTOOL64
13555 # Extract the first word of "otool64", so it can be a program name with args.
13556 set dummy otool64; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$ac_ct_OTOOL64"; then
13563 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_ac_ct_OTOOL64="otool64"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13575 fi
13576 done
13577 done
13578 IFS=$as_save_IFS
13579
13580 fi
13581 fi
13582 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13583 if test -n "$ac_ct_OTOOL64"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13585 $as_echo "$ac_ct_OTOOL64" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589 fi
13590
13591 if test "x$ac_ct_OTOOL64" = x; then
13592 OTOOL64=":"
13593 else
13594 case $cross_compiling:$ac_tool_warned in
13595 yes:)
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13598 ac_tool_warned=yes ;;
13599 esac
13600 OTOOL64=$ac_ct_OTOOL64
13601 fi
13602 else
13603 OTOOL64="$ac_cv_prog_OTOOL64"
13604 fi
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13633 $as_echo_n "checking for -single_module linker flag... " >&6; }
13634 if ${lt_cv_apple_cc_single_mod+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 lt_cv_apple_cc_single_mod=no
13638 if test -z "${LT_MULTI_MODULE}"; then
13639 # By default we will add the -single_module flag. You can override
13640 # by either setting the environment variable LT_MULTI_MODULE
13641 # non-empty at configure time, or by adding -multi_module to the
13642 # link flags.
13643 rm -rf libconftest.dylib*
13644 echo "int foo(void){return 1;}" > conftest.c
13645 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13646 -dynamiclib -Wl,-single_module conftest.c" >&5
13647 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13648 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13649 _lt_result=$?
13650 # If there is a non-empty error log, and "single_module"
13651 # appears in it, assume the flag caused a linker warning
13652 if test -s conftest.err && $GREP single_module conftest.err; then
13653 cat conftest.err >&5
13654 # Otherwise, if the output was created with a 0 exit code from
13655 # the compiler, it worked.
13656 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13657 lt_cv_apple_cc_single_mod=yes
13658 else
13659 cat conftest.err >&5
13660 fi
13661 rm -rf libconftest.dylib*
13662 rm -f conftest.*
13663 fi
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13666 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13667
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13669 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13670 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 lt_cv_ld_exported_symbols_list=no
13674 save_LDFLAGS=$LDFLAGS
13675 echo "_main" > conftest.sym
13676 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679
13680 int
13681 main ()
13682 {
13683
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 if ac_fn_c_try_link "$LINENO"; then :
13689 lt_cv_ld_exported_symbols_list=yes
13690 else
13691 lt_cv_ld_exported_symbols_list=no
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LDFLAGS="$save_LDFLAGS"
13696
13697 fi
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13699 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13702 $as_echo_n "checking for -force_load linker flag... " >&6; }
13703 if ${lt_cv_ld_force_load+:} false; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 lt_cv_ld_force_load=no
13707 cat > conftest.c << _LT_EOF
13708 int forced_loaded() { return 2;}
13709 _LT_EOF
13710 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13711 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13712 echo "$AR cru libconftest.a conftest.o" >&5
13713 $AR cru libconftest.a conftest.o 2>&5
13714 echo "$RANLIB libconftest.a" >&5
13715 $RANLIB libconftest.a 2>&5
13716 cat > conftest.c << _LT_EOF
13717 int main() { return 0;}
13718 _LT_EOF
13719 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13720 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13721 _lt_result=$?
13722 if test -s conftest.err && $GREP force_load conftest.err; then
13723 cat conftest.err >&5
13724 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13725 lt_cv_ld_force_load=yes
13726 else
13727 cat conftest.err >&5
13728 fi
13729 rm -f conftest.err libconftest.a conftest conftest.c
13730 rm -rf conftest.dSYM
13731
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13734 $as_echo "$lt_cv_ld_force_load" >&6; }
13735 case $host_os in
13736 rhapsody* | darwin1.[012])
13737 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13738 darwin1.*)
13739 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13740 darwin*) # darwin 5.x on
13741 # if running on 10.5 or later, the deployment target defaults
13742 # to the OS version, if on x86, and 10.4, the deployment
13743 # target defaults to 10.4. Don't you love it?
13744 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13745 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13746 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13747 10.[012]*)
13748 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13749 10.*)
13750 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13751 esac
13752 ;;
13753 esac
13754 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13755 _lt_dar_single_mod='$single_module'
13756 fi
13757 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13758 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13759 else
13760 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13761 fi
13762 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13763 _lt_dsymutil='~$DSYMUTIL $lib || :'
13764 else
13765 _lt_dsymutil=
13766 fi
13767 ;;
13768 esac
13769
13770 for ac_header in dlfcn.h
13771 do :
13772 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13773 "
13774 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13775 cat >>confdefs.h <<_ACEOF
13776 #define HAVE_DLFCN_H 1
13777 _ACEOF
13778
13779 fi
13780
13781 done
13782
13783
13784
13785
13786
13787 # Set options
13788
13789
13790
13791 enable_dlopen=no
13792
13793
13794 enable_win32_dll=no
13795
13796
13797 # Check whether --enable-shared was given.
13798 if test "${enable_shared+set}" = set; then :
13799 enableval=$enable_shared; p=${PACKAGE-default}
13800 case $enableval in
13801 yes) enable_shared=yes ;;
13802 no) enable_shared=no ;;
13803 *)
13804 enable_shared=no
13805 # Look at the argument we got. We use all the common list separators.
13806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13807 for pkg in $enableval; do
13808 IFS="$lt_save_ifs"
13809 if test "X$pkg" = "X$p"; then
13810 enable_shared=yes
13811 fi
13812 done
13813 IFS="$lt_save_ifs"
13814 ;;
13815 esac
13816 else
13817 enable_shared=yes
13818 fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830 # Check whether --with-pic was given.
13831 if test "${with_pic+set}" = set; then :
13832 withval=$with_pic; lt_p=${PACKAGE-default}
13833 case $withval in
13834 yes|no) pic_mode=$withval ;;
13835 *)
13836 pic_mode=default
13837 # Look at the argument we got. We use all the common list separators.
13838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13839 for lt_pkg in $withval; do
13840 IFS="$lt_save_ifs"
13841 if test "X$lt_pkg" = "X$lt_p"; then
13842 pic_mode=yes
13843 fi
13844 done
13845 IFS="$lt_save_ifs"
13846 ;;
13847 esac
13848 else
13849 pic_mode=default
13850 fi
13851
13852
13853 test -z "$pic_mode" && pic_mode=default
13854
13855
13856
13857
13858
13859
13860
13861 # Check whether --enable-fast-install was given.
13862 if test "${enable_fast_install+set}" = set; then :
13863 enableval=$enable_fast_install; p=${PACKAGE-default}
13864 case $enableval in
13865 yes) enable_fast_install=yes ;;
13866 no) enable_fast_install=no ;;
13867 *)
13868 enable_fast_install=no
13869 # Look at the argument we got. We use all the common list separators.
13870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13871 for pkg in $enableval; do
13872 IFS="$lt_save_ifs"
13873 if test "X$pkg" = "X$p"; then
13874 enable_fast_install=yes
13875 fi
13876 done
13877 IFS="$lt_save_ifs"
13878 ;;
13879 esac
13880 else
13881 enable_fast_install=yes
13882 fi
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894 # This can be used to rebuild libtool when needed
13895 LIBTOOL_DEPS="$ltmain"
13896
13897 # Always use our own libtool.
13898 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929 test -z "$LN_S" && LN_S="ln -s"
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944 if test -n "${ZSH_VERSION+set}" ; then
13945 setopt NO_GLOB_SUBST
13946 fi
13947
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13949 $as_echo_n "checking for objdir... " >&6; }
13950 if ${lt_cv_objdir+:} false; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 rm -f .libs 2>/dev/null
13954 mkdir .libs 2>/dev/null
13955 if test -d .libs; then
13956 lt_cv_objdir=.libs
13957 else
13958 # MS-DOS does not allow filenames that begin with a dot.
13959 lt_cv_objdir=_libs
13960 fi
13961 rmdir .libs 2>/dev/null
13962 fi
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13964 $as_echo "$lt_cv_objdir" >&6; }
13965 objdir=$lt_cv_objdir
13966
13967
13968
13969
13970
13971 cat >>confdefs.h <<_ACEOF
13972 #define LT_OBJDIR "$lt_cv_objdir/"
13973 _ACEOF
13974
13975
13976
13977
13978 case $host_os in
13979 aix3*)
13980 # AIX sometimes has problems with the GCC collect2 program. For some
13981 # reason, if we set the COLLECT_NAMES environment variable, the problems
13982 # vanish in a puff of smoke.
13983 if test "X${COLLECT_NAMES+set}" != Xset; then
13984 COLLECT_NAMES=
13985 export COLLECT_NAMES
13986 fi
13987 ;;
13988 esac
13989
13990 # Global variables:
13991 ofile=libtool
13992 can_build_shared=yes
13993
13994 # All known linkers require a `.a' archive for static linking (except MSVC,
13995 # which needs '.lib').
13996 libext=a
13997
13998 with_gnu_ld="$lt_cv_prog_gnu_ld"
13999
14000 old_CC="$CC"
14001 old_CFLAGS="$CFLAGS"
14002
14003 # Set sane defaults for various variables
14004 test -z "$CC" && CC=cc
14005 test -z "$LTCC" && LTCC=$CC
14006 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14007 test -z "$LD" && LD=ld
14008 test -z "$ac_objext" && ac_objext=o
14009
14010 for cc_temp in $compiler""; do
14011 case $cc_temp in
14012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14014 \-*) ;;
14015 *) break;;
14016 esac
14017 done
14018 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14019
14020
14021 # Only perform the check for file, if the check method requires it
14022 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14023 case $deplibs_check_method in
14024 file_magic*)
14025 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14027 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14028 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 case $MAGIC_CMD in
14032 [\\/*] | ?:[\\/]*)
14033 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14034 ;;
14035 *)
14036 lt_save_MAGIC_CMD="$MAGIC_CMD"
14037 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14039 for ac_dir in $ac_dummy; do
14040 IFS="$lt_save_ifs"
14041 test -z "$ac_dir" && ac_dir=.
14042 if test -f $ac_dir/${ac_tool_prefix}file; then
14043 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14044 if test -n "$file_magic_test_file"; then
14045 case $deplibs_check_method in
14046 "file_magic "*)
14047 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14050 $EGREP "$file_magic_regex" > /dev/null; then
14051 :
14052 else
14053 cat <<_LT_EOF 1>&2
14054
14055 *** Warning: the command libtool uses to detect shared libraries,
14056 *** $file_magic_cmd, produces output that libtool cannot recognize.
14057 *** The result is that libtool may fail to recognize shared libraries
14058 *** as such. This will affect the creation of libtool libraries that
14059 *** depend on shared libraries, but programs linked with such libtool
14060 *** libraries will work regardless of this problem. Nevertheless, you
14061 *** may want to report the problem to your system manager and/or to
14062 *** bug-libtool@gnu.org
14063
14064 _LT_EOF
14065 fi ;;
14066 esac
14067 fi
14068 break
14069 fi
14070 done
14071 IFS="$lt_save_ifs"
14072 MAGIC_CMD="$lt_save_MAGIC_CMD"
14073 ;;
14074 esac
14075 fi
14076
14077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14078 if test -n "$MAGIC_CMD"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14080 $as_echo "$MAGIC_CMD" >&6; }
14081 else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14084 fi
14085
14086
14087
14088
14089
14090 if test -z "$lt_cv_path_MAGIC_CMD"; then
14091 if test -n "$ac_tool_prefix"; then
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14093 $as_echo_n "checking for file... " >&6; }
14094 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 case $MAGIC_CMD in
14098 [\\/*] | ?:[\\/]*)
14099 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14100 ;;
14101 *)
14102 lt_save_MAGIC_CMD="$MAGIC_CMD"
14103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14105 for ac_dir in $ac_dummy; do
14106 IFS="$lt_save_ifs"
14107 test -z "$ac_dir" && ac_dir=.
14108 if test -f $ac_dir/file; then
14109 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14110 if test -n "$file_magic_test_file"; then
14111 case $deplibs_check_method in
14112 "file_magic "*)
14113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14116 $EGREP "$file_magic_regex" > /dev/null; then
14117 :
14118 else
14119 cat <<_LT_EOF 1>&2
14120
14121 *** Warning: the command libtool uses to detect shared libraries,
14122 *** $file_magic_cmd, produces output that libtool cannot recognize.
14123 *** The result is that libtool may fail to recognize shared libraries
14124 *** as such. This will affect the creation of libtool libraries that
14125 *** depend on shared libraries, but programs linked with such libtool
14126 *** libraries will work regardless of this problem. Nevertheless, you
14127 *** may want to report the problem to your system manager and/or to
14128 *** bug-libtool@gnu.org
14129
14130 _LT_EOF
14131 fi ;;
14132 esac
14133 fi
14134 break
14135 fi
14136 done
14137 IFS="$lt_save_ifs"
14138 MAGIC_CMD="$lt_save_MAGIC_CMD"
14139 ;;
14140 esac
14141 fi
14142
14143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144 if test -n "$MAGIC_CMD"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14146 $as_echo "$MAGIC_CMD" >&6; }
14147 else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14150 fi
14151
14152
14153 else
14154 MAGIC_CMD=:
14155 fi
14156 fi
14157
14158 fi
14159 ;;
14160 esac
14161
14162 # Use C for the default configuration in the libtool script
14163
14164 lt_save_CC="$CC"
14165 ac_ext=c
14166 ac_cpp='$CPP $CPPFLAGS'
14167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14170
14171
14172 # Source file extension for C test sources.
14173 ac_ext=c
14174
14175 # Object file extension for compiled C test sources.
14176 objext=o
14177 objext=$objext
14178
14179 # Code to be used in simple compile tests
14180 lt_simple_compile_test_code="int some_variable = 0;"
14181
14182 # Code to be used in simple link tests
14183 lt_simple_link_test_code='int main(){return(0);}'
14184
14185
14186
14187
14188
14189
14190
14191 # If no C compiler was specified, use CC.
14192 LTCC=${LTCC-"$CC"}
14193
14194 # If no C compiler flags were specified, use CFLAGS.
14195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14196
14197 # Allow CC to be a program name with arguments.
14198 compiler=$CC
14199
14200 # Save the default compiler, since it gets overwritten when the other
14201 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14202 compiler_DEFAULT=$CC
14203
14204 # save warnings/boilerplate of simple test code
14205 ac_outfile=conftest.$ac_objext
14206 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14207 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14208 _lt_compiler_boilerplate=`cat conftest.err`
14209 $RM conftest*
14210
14211 ac_outfile=conftest.$ac_objext
14212 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14213 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14214 _lt_linker_boilerplate=`cat conftest.err`
14215 $RM -r conftest*
14216
14217
14218 if test -n "$compiler"; then
14219
14220 lt_prog_compiler_no_builtin_flag=
14221
14222 if test "$GCC" = yes; then
14223 case $cc_basename in
14224 nvcc*)
14225 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14226 *)
14227 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14228 esac
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14231 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14232 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 lt_cv_prog_compiler_rtti_exceptions=no
14236 ac_outfile=conftest.$ac_objext
14237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238 lt_compiler_flag="-fno-rtti -fno-exceptions"
14239 # Insert the option either (1) after the last *FLAGS variable, or
14240 # (2) before a word containing "conftest.", or (3) at the end.
14241 # Note that $ac_compile itself does not contain backslashes and begins
14242 # with a dollar sign (not a hyphen), so the echo should work correctly.
14243 # The option is referenced via a variable to avoid confusing sed.
14244 lt_compile=`echo "$ac_compile" | $SED \
14245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14247 -e 's:$: $lt_compiler_flag:'`
14248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14249 (eval "$lt_compile" 2>conftest.err)
14250 ac_status=$?
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 if (exit $ac_status) && test -s "$ac_outfile"; then
14254 # The compiler can only warn and ignore the option if not recognized
14255 # So say no if there are warnings other than the usual output.
14256 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14259 lt_cv_prog_compiler_rtti_exceptions=yes
14260 fi
14261 fi
14262 $RM conftest*
14263
14264 fi
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14266 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14267
14268 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14269 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14270 else
14271 :
14272 fi
14273
14274 fi
14275
14276
14277
14278
14279
14280
14281 lt_prog_compiler_wl=
14282 lt_prog_compiler_pic=
14283 lt_prog_compiler_static=
14284
14285
14286 if test "$GCC" = yes; then
14287 lt_prog_compiler_wl='-Wl,'
14288 lt_prog_compiler_static='-static'
14289
14290 case $host_os in
14291 aix*)
14292 # All AIX code is PIC.
14293 if test "$host_cpu" = ia64; then
14294 # AIX 5 now supports IA64 processor
14295 lt_prog_compiler_static='-Bstatic'
14296 fi
14297 ;;
14298
14299 amigaos*)
14300 case $host_cpu in
14301 powerpc)
14302 # see comment about AmigaOS4 .so support
14303 lt_prog_compiler_pic='-fPIC'
14304 ;;
14305 m68k)
14306 # FIXME: we need at least 68020 code to build shared libraries, but
14307 # adding the `-m68020' flag to GCC prevents building anything better,
14308 # like `-m68040'.
14309 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14310 ;;
14311 esac
14312 ;;
14313
14314 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14315 # PIC is the default for these OSes.
14316 ;;
14317
14318 mingw* | cygwin* | pw32* | os2* | cegcc*)
14319 # This hack is so that the source file can tell whether it is being
14320 # built for inclusion in a dll (and should export symbols for example).
14321 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14322 # (--disable-auto-import) libraries
14323 lt_prog_compiler_pic='-DDLL_EXPORT'
14324 ;;
14325
14326 darwin* | rhapsody*)
14327 # PIC is the default on this platform
14328 # Common symbols not allowed in MH_DYLIB files
14329 lt_prog_compiler_pic='-fno-common'
14330 ;;
14331
14332 haiku*)
14333 # PIC is the default for Haiku.
14334 # The "-static" flag exists, but is broken.
14335 lt_prog_compiler_static=
14336 ;;
14337
14338 hpux*)
14339 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14340 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14341 # sets the default TLS model and affects inlining.
14342 case $host_cpu in
14343 hppa*64*)
14344 # +Z the default
14345 ;;
14346 *)
14347 lt_prog_compiler_pic='-fPIC'
14348 ;;
14349 esac
14350 ;;
14351
14352 interix[3-9]*)
14353 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14354 # Instead, we relocate shared libraries at runtime.
14355 ;;
14356
14357 msdosdjgpp*)
14358 # Just because we use GCC doesn't mean we suddenly get shared libraries
14359 # on systems that don't support them.
14360 lt_prog_compiler_can_build_shared=no
14361 enable_shared=no
14362 ;;
14363
14364 *nto* | *qnx*)
14365 # QNX uses GNU C++, but need to define -shared option too, otherwise
14366 # it will coredump.
14367 lt_prog_compiler_pic='-fPIC -shared'
14368 ;;
14369
14370 sysv4*MP*)
14371 if test -d /usr/nec; then
14372 lt_prog_compiler_pic=-Kconform_pic
14373 fi
14374 ;;
14375
14376 *)
14377 lt_prog_compiler_pic='-fPIC'
14378 ;;
14379 esac
14380
14381 case $cc_basename in
14382 nvcc*) # Cuda Compiler Driver 2.2
14383 lt_prog_compiler_wl='-Xlinker '
14384 if test -n "$lt_prog_compiler_pic"; then
14385 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14386 fi
14387 ;;
14388 esac
14389 else
14390 # PORTME Check for flag to pass linker flags through the system compiler.
14391 case $host_os in
14392 aix*)
14393 lt_prog_compiler_wl='-Wl,'
14394 if test "$host_cpu" = ia64; then
14395 # AIX 5 now supports IA64 processor
14396 lt_prog_compiler_static='-Bstatic'
14397 else
14398 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14399 fi
14400 ;;
14401
14402 mingw* | cygwin* | pw32* | os2* | cegcc*)
14403 # This hack is so that the source file can tell whether it is being
14404 # built for inclusion in a dll (and should export symbols for example).
14405 lt_prog_compiler_pic='-DDLL_EXPORT'
14406 ;;
14407
14408 hpux9* | hpux10* | hpux11*)
14409 lt_prog_compiler_wl='-Wl,'
14410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14411 # not for PA HP-UX.
14412 case $host_cpu in
14413 hppa*64*|ia64*)
14414 # +Z the default
14415 ;;
14416 *)
14417 lt_prog_compiler_pic='+Z'
14418 ;;
14419 esac
14420 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14421 lt_prog_compiler_static='${wl}-a ${wl}archive'
14422 ;;
14423
14424 irix5* | irix6* | nonstopux*)
14425 lt_prog_compiler_wl='-Wl,'
14426 # PIC (with -KPIC) is the default.
14427 lt_prog_compiler_static='-non_shared'
14428 ;;
14429
14430 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14431 case $cc_basename in
14432 # old Intel for x86_64 which still supported -KPIC.
14433 ecc*)
14434 lt_prog_compiler_wl='-Wl,'
14435 lt_prog_compiler_pic='-KPIC'
14436 lt_prog_compiler_static='-static'
14437 ;;
14438 # icc used to be incompatible with GCC.
14439 # ICC 10 doesn't accept -KPIC any more.
14440 icc* | ifort*)
14441 lt_prog_compiler_wl='-Wl,'
14442 lt_prog_compiler_pic='-fPIC'
14443 lt_prog_compiler_static='-static'
14444 ;;
14445 # Lahey Fortran 8.1.
14446 lf95*)
14447 lt_prog_compiler_wl='-Wl,'
14448 lt_prog_compiler_pic='--shared'
14449 lt_prog_compiler_static='--static'
14450 ;;
14451 nagfor*)
14452 # NAG Fortran compiler
14453 lt_prog_compiler_wl='-Wl,-Wl,,'
14454 lt_prog_compiler_pic='-PIC'
14455 lt_prog_compiler_static='-Bstatic'
14456 ;;
14457 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14458 # Portland Group compilers (*not* the Pentium gcc compiler,
14459 # which looks to be a dead project)
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-fpic'
14462 lt_prog_compiler_static='-Bstatic'
14463 ;;
14464 ccc*)
14465 lt_prog_compiler_wl='-Wl,'
14466 # All Alpha code is PIC.
14467 lt_prog_compiler_static='-non_shared'
14468 ;;
14469 xl* | bgxl* | bgf* | mpixl*)
14470 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14471 lt_prog_compiler_wl='-Wl,'
14472 lt_prog_compiler_pic='-qpic'
14473 lt_prog_compiler_static='-qstaticlink'
14474 ;;
14475 *)
14476 case `$CC -V 2>&1 | sed 5q` in
14477 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14478 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14479 lt_prog_compiler_pic='-KPIC'
14480 lt_prog_compiler_static='-Bstatic'
14481 lt_prog_compiler_wl=''
14482 ;;
14483 *Sun\ F* | *Sun*Fortran*)
14484 lt_prog_compiler_pic='-KPIC'
14485 lt_prog_compiler_static='-Bstatic'
14486 lt_prog_compiler_wl='-Qoption ld '
14487 ;;
14488 *Sun\ C*)
14489 # Sun C 5.9
14490 lt_prog_compiler_pic='-KPIC'
14491 lt_prog_compiler_static='-Bstatic'
14492 lt_prog_compiler_wl='-Wl,'
14493 ;;
14494 *Intel*\ [CF]*Compiler*)
14495 lt_prog_compiler_wl='-Wl,'
14496 lt_prog_compiler_pic='-fPIC'
14497 lt_prog_compiler_static='-static'
14498 ;;
14499 *Portland\ Group*)
14500 lt_prog_compiler_wl='-Wl,'
14501 lt_prog_compiler_pic='-fpic'
14502 lt_prog_compiler_static='-Bstatic'
14503 ;;
14504 esac
14505 ;;
14506 esac
14507 ;;
14508
14509 newsos6)
14510 lt_prog_compiler_pic='-KPIC'
14511 lt_prog_compiler_static='-Bstatic'
14512 ;;
14513
14514 *nto* | *qnx*)
14515 # QNX uses GNU C++, but need to define -shared option too, otherwise
14516 # it will coredump.
14517 lt_prog_compiler_pic='-fPIC -shared'
14518 ;;
14519
14520 osf3* | osf4* | osf5*)
14521 lt_prog_compiler_wl='-Wl,'
14522 # All OSF/1 code is PIC.
14523 lt_prog_compiler_static='-non_shared'
14524 ;;
14525
14526 rdos*)
14527 lt_prog_compiler_static='-non_shared'
14528 ;;
14529
14530 solaris*)
14531 lt_prog_compiler_pic='-KPIC'
14532 lt_prog_compiler_static='-Bstatic'
14533 case $cc_basename in
14534 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14535 lt_prog_compiler_wl='-Qoption ld ';;
14536 *)
14537 lt_prog_compiler_wl='-Wl,';;
14538 esac
14539 ;;
14540
14541 sunos4*)
14542 lt_prog_compiler_wl='-Qoption ld '
14543 lt_prog_compiler_pic='-PIC'
14544 lt_prog_compiler_static='-Bstatic'
14545 ;;
14546
14547 sysv4 | sysv4.2uw2* | sysv4.3*)
14548 lt_prog_compiler_wl='-Wl,'
14549 lt_prog_compiler_pic='-KPIC'
14550 lt_prog_compiler_static='-Bstatic'
14551 ;;
14552
14553 sysv4*MP*)
14554 if test -d /usr/nec ;then
14555 lt_prog_compiler_pic='-Kconform_pic'
14556 lt_prog_compiler_static='-Bstatic'
14557 fi
14558 ;;
14559
14560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14561 lt_prog_compiler_wl='-Wl,'
14562 lt_prog_compiler_pic='-KPIC'
14563 lt_prog_compiler_static='-Bstatic'
14564 ;;
14565
14566 unicos*)
14567 lt_prog_compiler_wl='-Wl,'
14568 lt_prog_compiler_can_build_shared=no
14569 ;;
14570
14571 uts4*)
14572 lt_prog_compiler_pic='-pic'
14573 lt_prog_compiler_static='-Bstatic'
14574 ;;
14575
14576 *)
14577 lt_prog_compiler_can_build_shared=no
14578 ;;
14579 esac
14580 fi
14581
14582 case $host_os in
14583 # For platforms which do not support PIC, -DPIC is meaningless:
14584 *djgpp*)
14585 lt_prog_compiler_pic=
14586 ;;
14587 *)
14588 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14589 ;;
14590 esac
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14593 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14594 if ${lt_cv_prog_compiler_pic+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14600 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14601 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14602
14603 #
14604 # Check to make sure the PIC flag actually works.
14605 #
14606 if test -n "$lt_prog_compiler_pic"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14608 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14609 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 lt_cv_prog_compiler_pic_works=no
14613 ac_outfile=conftest.$ac_objext
14614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14615 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14616 # Insert the option either (1) after the last *FLAGS variable, or
14617 # (2) before a word containing "conftest.", or (3) at the end.
14618 # Note that $ac_compile itself does not contain backslashes and begins
14619 # with a dollar sign (not a hyphen), so the echo should work correctly.
14620 # The option is referenced via a variable to avoid confusing sed.
14621 lt_compile=`echo "$ac_compile" | $SED \
14622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14624 -e 's:$: $lt_compiler_flag:'`
14625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14626 (eval "$lt_compile" 2>conftest.err)
14627 ac_status=$?
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 if (exit $ac_status) && test -s "$ac_outfile"; then
14631 # The compiler can only warn and ignore the option if not recognized
14632 # So say no if there are warnings other than the usual output.
14633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14636 lt_cv_prog_compiler_pic_works=yes
14637 fi
14638 fi
14639 $RM conftest*
14640
14641 fi
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14643 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14644
14645 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14646 case $lt_prog_compiler_pic in
14647 "" | " "*) ;;
14648 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14649 esac
14650 else
14651 lt_prog_compiler_pic=
14652 lt_prog_compiler_can_build_shared=no
14653 fi
14654
14655 fi
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667 #
14668 # Check to make sure the static flag actually works.
14669 #
14670 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14672 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14673 if ${lt_cv_prog_compiler_static_works+:} false; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676 lt_cv_prog_compiler_static_works=no
14677 save_LDFLAGS="$LDFLAGS"
14678 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14679 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14681 # The linker can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 if test -s conftest.err; then
14684 # Append any errors to the config.log.
14685 cat conftest.err 1>&5
14686 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688 if diff conftest.exp conftest.er2 >/dev/null; then
14689 lt_cv_prog_compiler_static_works=yes
14690 fi
14691 else
14692 lt_cv_prog_compiler_static_works=yes
14693 fi
14694 fi
14695 $RM -r conftest*
14696 LDFLAGS="$save_LDFLAGS"
14697
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14700 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14701
14702 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14703 :
14704 else
14705 lt_prog_compiler_static=
14706 fi
14707
14708
14709
14710
14711
14712
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14716 if ${lt_cv_prog_compiler_c_o+:} false; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 lt_cv_prog_compiler_c_o=no
14720 $RM -r conftest 2>/dev/null
14721 mkdir conftest
14722 cd conftest
14723 mkdir out
14724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725
14726 lt_compiler_flag="-o out/conftest2.$ac_objext"
14727 # Insert the option either (1) after the last *FLAGS variable, or
14728 # (2) before a word containing "conftest.", or (3) at the end.
14729 # Note that $ac_compile itself does not contain backslashes and begins
14730 # with a dollar sign (not a hyphen), so the echo should work correctly.
14731 lt_compile=`echo "$ac_compile" | $SED \
14732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734 -e 's:$: $lt_compiler_flag:'`
14735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14736 (eval "$lt_compile" 2>out/conftest.err)
14737 ac_status=$?
14738 cat out/conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14741 then
14742 # The compiler can only warn and ignore the option if not recognized
14743 # So say no if there are warnings
14744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14747 lt_cv_prog_compiler_c_o=yes
14748 fi
14749 fi
14750 chmod u+w . 2>&5
14751 $RM conftest*
14752 # SGI C++ compiler will create directory out/ii_files/ for
14753 # template instantiation
14754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14755 $RM out/* && rmdir out
14756 cd ..
14757 $RM -r conftest
14758 $RM conftest*
14759
14760 fi
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14762 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14763
14764
14765
14766
14767
14768
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14771 if ${lt_cv_prog_compiler_c_o+:} false; then :
14772 $as_echo_n "(cached) " >&6
14773 else
14774 lt_cv_prog_compiler_c_o=no
14775 $RM -r conftest 2>/dev/null
14776 mkdir conftest
14777 cd conftest
14778 mkdir out
14779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14780
14781 lt_compiler_flag="-o out/conftest2.$ac_objext"
14782 # Insert the option either (1) after the last *FLAGS variable, or
14783 # (2) before a word containing "conftest.", or (3) at the end.
14784 # Note that $ac_compile itself does not contain backslashes and begins
14785 # with a dollar sign (not a hyphen), so the echo should work correctly.
14786 lt_compile=`echo "$ac_compile" | $SED \
14787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14789 -e 's:$: $lt_compiler_flag:'`
14790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14791 (eval "$lt_compile" 2>out/conftest.err)
14792 ac_status=$?
14793 cat out/conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14796 then
14797 # The compiler can only warn and ignore the option if not recognized
14798 # So say no if there are warnings
14799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14802 lt_cv_prog_compiler_c_o=yes
14803 fi
14804 fi
14805 chmod u+w . 2>&5
14806 $RM conftest*
14807 # SGI C++ compiler will create directory out/ii_files/ for
14808 # template instantiation
14809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14810 $RM out/* && rmdir out
14811 cd ..
14812 $RM -r conftest
14813 $RM conftest*
14814
14815 fi
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14817 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14818
14819
14820
14821
14822 hard_links="nottested"
14823 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14824 # do not overwrite the value of need_locks provided by the user
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14826 $as_echo_n "checking if we can lock with hard links... " >&6; }
14827 hard_links=yes
14828 $RM conftest*
14829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14830 touch conftest.a
14831 ln conftest.a conftest.b 2>&5 || hard_links=no
14832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14834 $as_echo "$hard_links" >&6; }
14835 if test "$hard_links" = no; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14837 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14838 need_locks=warn
14839 fi
14840 else
14841 need_locks=no
14842 fi
14843
14844
14845
14846
14847
14848
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14850 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14851
14852 runpath_var=
14853 allow_undefined_flag=
14854 always_export_symbols=no
14855 archive_cmds=
14856 archive_expsym_cmds=
14857 compiler_needs_object=no
14858 enable_shared_with_static_runtimes=no
14859 export_dynamic_flag_spec=
14860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14861 hardcode_automatic=no
14862 hardcode_direct=no
14863 hardcode_direct_absolute=no
14864 hardcode_libdir_flag_spec=
14865 hardcode_libdir_separator=
14866 hardcode_minus_L=no
14867 hardcode_shlibpath_var=unsupported
14868 inherit_rpath=no
14869 link_all_deplibs=unknown
14870 module_cmds=
14871 module_expsym_cmds=
14872 old_archive_from_new_cmds=
14873 old_archive_from_expsyms_cmds=
14874 thread_safe_flag_spec=
14875 whole_archive_flag_spec=
14876 # include_expsyms should be a list of space-separated symbols to be *always*
14877 # included in the symbol list
14878 include_expsyms=
14879 # exclude_expsyms can be an extended regexp of symbols to exclude
14880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14882 # as well as any symbol that contains `d'.
14883 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14885 # platforms (ab)use it in PIC code, but their linkers get confused if
14886 # the symbol is explicitly referenced. Since portable code cannot
14887 # rely on this symbol name, it's probably fine to never include it in
14888 # preloaded symbol tables.
14889 # Exclude shared library initialization/finalization symbols.
14890 extract_expsyms_cmds=
14891
14892 case $host_os in
14893 cygwin* | mingw* | pw32* | cegcc*)
14894 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14895 # When not using gcc, we currently assume that we are using
14896 # Microsoft Visual C++.
14897 if test "$GCC" != yes; then
14898 with_gnu_ld=no
14899 fi
14900 ;;
14901 interix*)
14902 # we just hope/assume this is gcc and not c89 (= MSVC++)
14903 with_gnu_ld=yes
14904 ;;
14905 openbsd*)
14906 with_gnu_ld=no
14907 ;;
14908 esac
14909
14910 ld_shlibs=yes
14911
14912 # On some targets, GNU ld is compatible enough with the native linker
14913 # that we're better off using the native interface for both.
14914 lt_use_gnu_ld_interface=no
14915 if test "$with_gnu_ld" = yes; then
14916 case $host_os in
14917 aix*)
14918 # The AIX port of GNU ld has always aspired to compatibility
14919 # with the native linker. However, as the warning in the GNU ld
14920 # block says, versions before 2.19.5* couldn't really create working
14921 # shared libraries, regardless of the interface used.
14922 case `$LD -v 2>&1` in
14923 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14924 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14925 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14926 *)
14927 lt_use_gnu_ld_interface=yes
14928 ;;
14929 esac
14930 ;;
14931 *)
14932 lt_use_gnu_ld_interface=yes
14933 ;;
14934 esac
14935 fi
14936
14937 if test "$lt_use_gnu_ld_interface" = yes; then
14938 # If archive_cmds runs LD, not CC, wlarc should be empty
14939 wlarc='${wl}'
14940
14941 # Set some defaults for GNU ld with shared library support. These
14942 # are reset later if shared libraries are not supported. Putting them
14943 # here allows them to be overridden if necessary.
14944 runpath_var=LD_RUN_PATH
14945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14946 export_dynamic_flag_spec='${wl}--export-dynamic'
14947 # ancient GNU ld didn't support --whole-archive et. al.
14948 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14949 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14950 else
14951 whole_archive_flag_spec=
14952 fi
14953 supports_anon_versioning=no
14954 case `$LD -v 2>&1` in
14955 *GNU\ gold*) supports_anon_versioning=yes ;;
14956 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14957 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14958 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14959 *\ 2.11.*) ;; # other 2.11 versions
14960 *) supports_anon_versioning=yes ;;
14961 esac
14962
14963 # See if GNU ld supports shared libraries.
14964 case $host_os in
14965 aix[3-9]*)
14966 # On AIX/PPC, the GNU linker is very broken
14967 if test "$host_cpu" != ia64; then
14968 ld_shlibs=no
14969 cat <<_LT_EOF 1>&2
14970
14971 *** Warning: the GNU linker, at least up to release 2.19, is reported
14972 *** to be unable to reliably create shared libraries on AIX.
14973 *** Therefore, libtool is disabling shared libraries support. If you
14974 *** really care for shared libraries, you may want to install binutils
14975 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14976 *** You will then need to restart the configuration process.
14977
14978 _LT_EOF
14979 fi
14980 ;;
14981
14982 amigaos*)
14983 case $host_cpu in
14984 powerpc)
14985 # see comment about AmigaOS4 .so support
14986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987 archive_expsym_cmds=''
14988 ;;
14989 m68k)
14990 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)'
14991 hardcode_libdir_flag_spec='-L$libdir'
14992 hardcode_minus_L=yes
14993 ;;
14994 esac
14995 ;;
14996
14997 beos*)
14998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14999 allow_undefined_flag=unsupported
15000 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15001 # support --undefined. This deserves some investigation. FIXME
15002 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003 else
15004 ld_shlibs=no
15005 fi
15006 ;;
15007
15008 cygwin* | mingw* | pw32* | cegcc*)
15009 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15010 # as there is no search path for DLLs.
15011 hardcode_libdir_flag_spec='-L$libdir'
15012 export_dynamic_flag_spec='${wl}--export-all-symbols'
15013 allow_undefined_flag=unsupported
15014 always_export_symbols=no
15015 enable_shared_with_static_runtimes=yes
15016 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'
15017 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15018
15019 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15021 # If the export-symbols file already is a .def file (1st line
15022 # is EXPORTS), use it as is; otherwise, prepend...
15023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024 cp $export_symbols $output_objdir/$soname.def;
15025 else
15026 echo EXPORTS > $output_objdir/$soname.def;
15027 cat $export_symbols >> $output_objdir/$soname.def;
15028 fi~
15029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030 else
15031 ld_shlibs=no
15032 fi
15033 ;;
15034
15035 haiku*)
15036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037 link_all_deplibs=yes
15038 ;;
15039
15040 interix[3-9]*)
15041 hardcode_direct=no
15042 hardcode_shlibpath_var=no
15043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15044 export_dynamic_flag_spec='${wl}-E'
15045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15046 # Instead, shared libraries are loaded at an image base (0x10000000 by
15047 # default) and relocated if they conflict, which is a slow very memory
15048 # consuming and fragmenting process. To avoid this, we pick a random,
15049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15052 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'
15053 ;;
15054
15055 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15056 tmp_diet=no
15057 if test "$host_os" = linux-dietlibc; then
15058 case $cc_basename in
15059 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15060 esac
15061 fi
15062 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15063 && test "$tmp_diet" = no
15064 then
15065 tmp_addflag=' $pic_flag'
15066 tmp_sharedflag='-shared'
15067 case $cc_basename,$host_cpu in
15068 pgcc*) # Portland Group C compiler
15069 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'
15070 tmp_addflag=' $pic_flag'
15071 ;;
15072 pgf77* | pgf90* | pgf95* | pgfortran*)
15073 # Portland Group f77 and f90 compilers
15074 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'
15075 tmp_addflag=' $pic_flag -Mnomain' ;;
15076 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15077 tmp_addflag=' -i_dynamic' ;;
15078 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15079 tmp_addflag=' -i_dynamic -nofor_main' ;;
15080 ifc* | ifort*) # Intel Fortran compiler
15081 tmp_addflag=' -nofor_main' ;;
15082 lf95*) # Lahey Fortran 8.1
15083 whole_archive_flag_spec=
15084 tmp_sharedflag='--shared' ;;
15085 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15086 tmp_sharedflag='-qmkshrobj'
15087 tmp_addflag= ;;
15088 nvcc*) # Cuda Compiler Driver 2.2
15089 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'
15090 compiler_needs_object=yes
15091 ;;
15092 esac
15093 case `$CC -V 2>&1 | sed 5q` in
15094 *Sun\ C*) # Sun C 5.9
15095 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'
15096 compiler_needs_object=yes
15097 tmp_sharedflag='-G' ;;
15098 *Sun\ F*) # Sun Fortran 8.3
15099 tmp_sharedflag='-G' ;;
15100 esac
15101 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102
15103 if test "x$supports_anon_versioning" = xyes; then
15104 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15105 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15106 echo "local: *; };" >> $output_objdir/$libname.ver~
15107 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15108 fi
15109
15110 case $cc_basename in
15111 xlf* | bgf* | bgxlf* | mpixlf*)
15112 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15113 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15115 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15116 if test "x$supports_anon_versioning" = xyes; then
15117 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15119 echo "local: *; };" >> $output_objdir/$libname.ver~
15120 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15121 fi
15122 ;;
15123 esac
15124 else
15125 ld_shlibs=no
15126 fi
15127 ;;
15128
15129 netbsd*)
15130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15131 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15132 wlarc=
15133 else
15134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136 fi
15137 ;;
15138
15139 solaris*)
15140 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15141 ld_shlibs=no
15142 cat <<_LT_EOF 1>&2
15143
15144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15145 *** create shared libraries on Solaris systems. Therefore, libtool
15146 *** is disabling shared libraries support. We urge you to upgrade GNU
15147 *** binutils to release 2.9.1 or newer. Another option is to modify
15148 *** your PATH or compiler configuration so that the native linker is
15149 *** used, and then restart.
15150
15151 _LT_EOF
15152 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15154 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15155 else
15156 ld_shlibs=no
15157 fi
15158 ;;
15159
15160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15161 case `$LD -v 2>&1` in
15162 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15163 ld_shlibs=no
15164 cat <<_LT_EOF 1>&2
15165
15166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15167 *** reliably create shared libraries on SCO systems. Therefore, libtool
15168 *** is disabling shared libraries support. We urge you to upgrade GNU
15169 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15170 *** your PATH or compiler configuration so that the native linker is
15171 *** used, and then restart.
15172
15173 _LT_EOF
15174 ;;
15175 *)
15176 # For security reasons, it is highly recommended that you always
15177 # use absolute paths for naming shared libraries, and exclude the
15178 # DT_RUNPATH tag from executables and libraries. But doing so
15179 # requires that you compile everything twice, which is a pain.
15180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184 else
15185 ld_shlibs=no
15186 fi
15187 ;;
15188 esac
15189 ;;
15190
15191 sunos4*)
15192 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15193 wlarc=
15194 hardcode_direct=yes
15195 hardcode_shlibpath_var=no
15196 ;;
15197
15198 *)
15199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15201 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15202 else
15203 ld_shlibs=no
15204 fi
15205 ;;
15206 esac
15207
15208 if test "$ld_shlibs" = no; then
15209 runpath_var=
15210 hardcode_libdir_flag_spec=
15211 export_dynamic_flag_spec=
15212 whole_archive_flag_spec=
15213 fi
15214 else
15215 # PORTME fill in a description of your system's linker (not GNU ld)
15216 case $host_os in
15217 aix3*)
15218 allow_undefined_flag=unsupported
15219 always_export_symbols=yes
15220 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'
15221 # Note: this linker hardcodes the directories in LIBPATH if there
15222 # are no directories specified by -L.
15223 hardcode_minus_L=yes
15224 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15225 # Neither direct hardcoding nor static linking is supported with a
15226 # broken collect2.
15227 hardcode_direct=unsupported
15228 fi
15229 ;;
15230
15231 aix[4-9]*)
15232 if test "$host_cpu" = ia64; then
15233 # On IA64, the linker does run time linking by default, so we don't
15234 # have to do anything special.
15235 aix_use_runtimelinking=no
15236 exp_sym_flag='-Bexport'
15237 no_entry_flag=""
15238 else
15239 # If we're using GNU nm, then we don't want the "-C" option.
15240 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15241 # Also, AIX nm treats weak defined symbols like other global
15242 # defined symbols, whereas GNU nm marks them as "W".
15243 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15244 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'
15245 else
15246 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'
15247 fi
15248 aix_use_runtimelinking=no
15249
15250 # Test if we are trying to use run time linking or normal
15251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15252 # need to do runtime linking.
15253 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15254 for ld_flag in $LDFLAGS; do
15255 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15256 aix_use_runtimelinking=yes
15257 break
15258 fi
15259 done
15260 ;;
15261 esac
15262
15263 exp_sym_flag='-bexport'
15264 no_entry_flag='-bnoentry'
15265 fi
15266
15267 # When large executables or shared objects are built, AIX ld can
15268 # have problems creating the table of contents. If linking a library
15269 # or program results in "error TOC overflow" add -mminimal-toc to
15270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15272
15273 archive_cmds=''
15274 hardcode_direct=yes
15275 hardcode_direct_absolute=yes
15276 hardcode_libdir_separator=':'
15277 link_all_deplibs=yes
15278 file_list_spec='${wl}-f,'
15279
15280 if test "$GCC" = yes; then
15281 case $host_os in aix4.[012]|aix4.[012].*)
15282 # We only want to do this on AIX 4.2 and lower, the check
15283 # below for broken collect2 doesn't work under 4.3+
15284 collect2name=`${CC} -print-prog-name=collect2`
15285 if test -f "$collect2name" &&
15286 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15287 then
15288 # We have reworked collect2
15289 :
15290 else
15291 # We have old collect2
15292 hardcode_direct=unsupported
15293 # It fails to find uninstalled libraries when the uninstalled
15294 # path is not listed in the libpath. Setting hardcode_minus_L
15295 # to unsupported forces relinking
15296 hardcode_minus_L=yes
15297 hardcode_libdir_flag_spec='-L$libdir'
15298 hardcode_libdir_separator=
15299 fi
15300 ;;
15301 esac
15302 shared_flag='-shared'
15303 if test "$aix_use_runtimelinking" = yes; then
15304 shared_flag="$shared_flag "'${wl}-G'
15305 fi
15306 else
15307 # not using gcc
15308 if test "$host_cpu" = ia64; then
15309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15310 # chokes on -Wl,-G. The following line is correct:
15311 shared_flag='-G'
15312 else
15313 if test "$aix_use_runtimelinking" = yes; then
15314 shared_flag='${wl}-G'
15315 else
15316 shared_flag='${wl}-bM:SRE'
15317 fi
15318 fi
15319 fi
15320
15321 export_dynamic_flag_spec='${wl}-bexpall'
15322 # It seems that -bexpall does not export symbols beginning with
15323 # underscore (_), so it is better to generate a list of symbols to export.
15324 always_export_symbols=yes
15325 if test "$aix_use_runtimelinking" = yes; then
15326 # Warning - without using the other runtime loading flags (-brtl),
15327 # -berok will link without error, but may produce a broken library.
15328 allow_undefined_flag='-berok'
15329 # Determine the default libpath from the value encoded in an
15330 # empty executable.
15331 if test "${lt_cv_aix_libpath+set}" = set; then
15332 aix_libpath=$lt_cv_aix_libpath
15333 else
15334 if ${lt_cv_aix_libpath_+:} false; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339
15340 int
15341 main ()
15342 {
15343
15344 ;
15345 return 0;
15346 }
15347 _ACEOF
15348 if ac_fn_c_try_link "$LINENO"; then :
15349
15350 lt_aix_libpath_sed='
15351 /Import File Strings/,/^$/ {
15352 /^0/ {
15353 s/^0 *\([^ ]*\) *$/\1/
15354 p
15355 }
15356 }'
15357 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15358 # Check for a 64-bit object if we didn't find anything.
15359 if test -z "$lt_cv_aix_libpath_"; then
15360 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15361 fi
15362 fi
15363 rm -f core conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
15365 if test -z "$lt_cv_aix_libpath_"; then
15366 lt_cv_aix_libpath_="/usr/lib:/lib"
15367 fi
15368
15369 fi
15370
15371 aix_libpath=$lt_cv_aix_libpath_
15372 fi
15373
15374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15375 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"
15376 else
15377 if test "$host_cpu" = ia64; then
15378 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15379 allow_undefined_flag="-z nodefs"
15380 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"
15381 else
15382 # Determine the default libpath from the value encoded in an
15383 # empty executable.
15384 if test "${lt_cv_aix_libpath+set}" = set; then
15385 aix_libpath=$lt_cv_aix_libpath
15386 else
15387 if ${lt_cv_aix_libpath_+:} false; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392
15393 int
15394 main ()
15395 {
15396
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402
15403 lt_aix_libpath_sed='
15404 /Import File Strings/,/^$/ {
15405 /^0/ {
15406 s/^0 *\([^ ]*\) *$/\1/
15407 p
15408 }
15409 }'
15410 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15411 # Check for a 64-bit object if we didn't find anything.
15412 if test -z "$lt_cv_aix_libpath_"; then
15413 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15414 fi
15415 fi
15416 rm -f core conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15418 if test -z "$lt_cv_aix_libpath_"; then
15419 lt_cv_aix_libpath_="/usr/lib:/lib"
15420 fi
15421
15422 fi
15423
15424 aix_libpath=$lt_cv_aix_libpath_
15425 fi
15426
15427 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15428 # Warning - without using the other run time loading flags,
15429 # -berok will link without error, but may produce a broken library.
15430 no_undefined_flag=' ${wl}-bernotok'
15431 allow_undefined_flag=' ${wl}-berok'
15432 if test "$with_gnu_ld" = yes; then
15433 # We only use this code for GNU lds that support --whole-archive.
15434 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15435 else
15436 # Exported symbols can be pulled into shared objects from archives
15437 whole_archive_flag_spec='$convenience'
15438 fi
15439 archive_cmds_need_lc=yes
15440 # This is similar to how AIX traditionally builds its shared libraries.
15441 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'
15442 fi
15443 fi
15444 ;;
15445
15446 amigaos*)
15447 case $host_cpu in
15448 powerpc)
15449 # see comment about AmigaOS4 .so support
15450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451 archive_expsym_cmds=''
15452 ;;
15453 m68k)
15454 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)'
15455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_minus_L=yes
15457 ;;
15458 esac
15459 ;;
15460
15461 bsdi[45]*)
15462 export_dynamic_flag_spec=-rdynamic
15463 ;;
15464
15465 cygwin* | mingw* | pw32* | cegcc*)
15466 # When not using gcc, we currently assume that we are using
15467 # Microsoft Visual C++.
15468 # hardcode_libdir_flag_spec is actually meaningless, as there is
15469 # no search path for DLLs.
15470 case $cc_basename in
15471 cl*)
15472 # Native MSVC
15473 hardcode_libdir_flag_spec=' '
15474 allow_undefined_flag=unsupported
15475 always_export_symbols=yes
15476 file_list_spec='@'
15477 # Tell ltmain to make .lib files, not .a files.
15478 libext=lib
15479 # Tell ltmain to make .dll files, not .so files.
15480 shrext_cmds=".dll"
15481 # FIXME: Setting linknames here is a bad hack.
15482 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15483 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15484 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15485 else
15486 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15487 fi~
15488 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15489 linknames='
15490 # The linker will not automatically build a static lib if we build a DLL.
15491 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15492 enable_shared_with_static_runtimes=yes
15493 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15495 # Don't use ranlib
15496 old_postinstall_cmds='chmod 644 $oldlib'
15497 postlink_cmds='lt_outputfile="@OUTPUT@"~
15498 lt_tool_outputfile="@TOOL_OUTPUT@"~
15499 case $lt_outputfile in
15500 *.exe|*.EXE) ;;
15501 *)
15502 lt_outputfile="$lt_outputfile.exe"
15503 lt_tool_outputfile="$lt_tool_outputfile.exe"
15504 ;;
15505 esac~
15506 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15507 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15508 $RM "$lt_outputfile.manifest";
15509 fi'
15510 ;;
15511 *)
15512 # Assume MSVC wrapper
15513 hardcode_libdir_flag_spec=' '
15514 allow_undefined_flag=unsupported
15515 # Tell ltmain to make .lib files, not .a files.
15516 libext=lib
15517 # Tell ltmain to make .dll files, not .so files.
15518 shrext_cmds=".dll"
15519 # FIXME: Setting linknames here is a bad hack.
15520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15521 # The linker will automatically build a .lib file if we build a DLL.
15522 old_archive_from_new_cmds='true'
15523 # FIXME: Should let the user specify the lib program.
15524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15525 enable_shared_with_static_runtimes=yes
15526 ;;
15527 esac
15528 ;;
15529
15530 darwin* | rhapsody*)
15531
15532
15533 archive_cmds_need_lc=no
15534 hardcode_direct=no
15535 hardcode_automatic=yes
15536 hardcode_shlibpath_var=unsupported
15537 if test "$lt_cv_ld_force_load" = "yes"; then
15538 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\"`'
15539
15540 else
15541 whole_archive_flag_spec=''
15542 fi
15543 link_all_deplibs=yes
15544 allow_undefined_flag="$_lt_dar_allow_undefined"
15545 case $cc_basename in
15546 ifort*) _lt_dar_can_shared=yes ;;
15547 *) _lt_dar_can_shared=$GCC ;;
15548 esac
15549 if test "$_lt_dar_can_shared" = "yes"; then
15550 output_verbose_link_cmd=func_echo_all
15551 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15552 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15553 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}"
15554 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}"
15555
15556 else
15557 ld_shlibs=no
15558 fi
15559
15560 ;;
15561
15562 dgux*)
15563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_libdir_flag_spec='-L$libdir'
15565 hardcode_shlibpath_var=no
15566 ;;
15567
15568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15569 # support. Future versions do this automatically, but an explicit c++rt0.o
15570 # does not break anything, and helps significantly (at the cost of a little
15571 # extra space).
15572 freebsd2.2*)
15573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15574 hardcode_libdir_flag_spec='-R$libdir'
15575 hardcode_direct=yes
15576 hardcode_shlibpath_var=no
15577 ;;
15578
15579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15580 freebsd2.*)
15581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15582 hardcode_direct=yes
15583 hardcode_minus_L=yes
15584 hardcode_shlibpath_var=no
15585 ;;
15586
15587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15588 freebsd* | dragonfly*)
15589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15590 hardcode_libdir_flag_spec='-R$libdir'
15591 hardcode_direct=yes
15592 hardcode_shlibpath_var=no
15593 ;;
15594
15595 hpux9*)
15596 if test "$GCC" = yes; then
15597 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'
15598 else
15599 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'
15600 fi
15601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602 hardcode_libdir_separator=:
15603 hardcode_direct=yes
15604
15605 # hardcode_minus_L: Not really in the search PATH,
15606 # but as the default location of the library.
15607 hardcode_minus_L=yes
15608 export_dynamic_flag_spec='${wl}-E'
15609 ;;
15610
15611 hpux10*)
15612 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15613 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15614 else
15615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15616 fi
15617 if test "$with_gnu_ld" = no; then
15618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15619 hardcode_libdir_separator=:
15620 hardcode_direct=yes
15621 hardcode_direct_absolute=yes
15622 export_dynamic_flag_spec='${wl}-E'
15623 # hardcode_minus_L: Not really in the search PATH,
15624 # but as the default location of the library.
15625 hardcode_minus_L=yes
15626 fi
15627 ;;
15628
15629 hpux11*)
15630 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15631 case $host_cpu in
15632 hppa*64*)
15633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 ;;
15635 ia64*)
15636 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15637 ;;
15638 *)
15639 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15640 ;;
15641 esac
15642 else
15643 case $host_cpu in
15644 hppa*64*)
15645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15646 ;;
15647 ia64*)
15648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15649 ;;
15650 *)
15651
15652 # Older versions of the 11.00 compiler do not understand -b yet
15653 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15655 $as_echo_n "checking if $CC understands -b... " >&6; }
15656 if ${lt_cv_prog_compiler__b+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658 else
15659 lt_cv_prog_compiler__b=no
15660 save_LDFLAGS="$LDFLAGS"
15661 LDFLAGS="$LDFLAGS -b"
15662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15664 # The linker can only warn and ignore the option if not recognized
15665 # So say no if there are warnings
15666 if test -s conftest.err; then
15667 # Append any errors to the config.log.
15668 cat conftest.err 1>&5
15669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15671 if diff conftest.exp conftest.er2 >/dev/null; then
15672 lt_cv_prog_compiler__b=yes
15673 fi
15674 else
15675 lt_cv_prog_compiler__b=yes
15676 fi
15677 fi
15678 $RM -r conftest*
15679 LDFLAGS="$save_LDFLAGS"
15680
15681 fi
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15683 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15684
15685 if test x"$lt_cv_prog_compiler__b" = xyes; then
15686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15687 else
15688 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15689 fi
15690
15691 ;;
15692 esac
15693 fi
15694 if test "$with_gnu_ld" = no; then
15695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15696 hardcode_libdir_separator=:
15697
15698 case $host_cpu in
15699 hppa*64*|ia64*)
15700 hardcode_direct=no
15701 hardcode_shlibpath_var=no
15702 ;;
15703 *)
15704 hardcode_direct=yes
15705 hardcode_direct_absolute=yes
15706 export_dynamic_flag_spec='${wl}-E'
15707
15708 # hardcode_minus_L: Not really in the search PATH,
15709 # but as the default location of the library.
15710 hardcode_minus_L=yes
15711 ;;
15712 esac
15713 fi
15714 ;;
15715
15716 irix5* | irix6* | nonstopux*)
15717 if test "$GCC" = yes; then
15718 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'
15719 # Try to use the -exported_symbol ld option, if it does not
15720 # work, assume that -exports_file does not work either and
15721 # implicitly export all symbols.
15722 # This should be the same for all languages, so no per-tag cache variable.
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15724 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15725 if ${lt_cv_irix_exported_symbol+:} false; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 save_LDFLAGS="$LDFLAGS"
15729 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15732 int foo (void) { return 0; }
15733 _ACEOF
15734 if ac_fn_c_try_link "$LINENO"; then :
15735 lt_cv_irix_exported_symbol=yes
15736 else
15737 lt_cv_irix_exported_symbol=no
15738 fi
15739 rm -f core conftest.err conftest.$ac_objext \
15740 conftest$ac_exeext conftest.$ac_ext
15741 LDFLAGS="$save_LDFLAGS"
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15744 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15745 if test "$lt_cv_irix_exported_symbol" = yes; then
15746 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'
15747 fi
15748 else
15749 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'
15750 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'
15751 fi
15752 archive_cmds_need_lc='no'
15753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15754 hardcode_libdir_separator=:
15755 inherit_rpath=yes
15756 link_all_deplibs=yes
15757 ;;
15758
15759 netbsd*)
15760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15762 else
15763 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15764 fi
15765 hardcode_libdir_flag_spec='-R$libdir'
15766 hardcode_direct=yes
15767 hardcode_shlibpath_var=no
15768 ;;
15769
15770 newsos6)
15771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_direct=yes
15773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15774 hardcode_libdir_separator=:
15775 hardcode_shlibpath_var=no
15776 ;;
15777
15778 *nto* | *qnx*)
15779 ;;
15780
15781 openbsd*)
15782 if test -f /usr/libexec/ld.so; then
15783 hardcode_direct=yes
15784 hardcode_shlibpath_var=no
15785 hardcode_direct_absolute=yes
15786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15788 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15790 export_dynamic_flag_spec='${wl}-E'
15791 else
15792 case $host_os in
15793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15795 hardcode_libdir_flag_spec='-R$libdir'
15796 ;;
15797 *)
15798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15800 ;;
15801 esac
15802 fi
15803 else
15804 ld_shlibs=no
15805 fi
15806 ;;
15807
15808 os2*)
15809 hardcode_libdir_flag_spec='-L$libdir'
15810 hardcode_minus_L=yes
15811 allow_undefined_flag=unsupported
15812 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'
15813 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15814 ;;
15815
15816 osf3*)
15817 if test "$GCC" = yes; then
15818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15819 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'
15820 else
15821 allow_undefined_flag=' -expect_unresolved \*'
15822 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'
15823 fi
15824 archive_cmds_need_lc='no'
15825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15826 hardcode_libdir_separator=:
15827 ;;
15828
15829 osf4* | osf5*) # as osf3* with the addition of -msym flag
15830 if test "$GCC" = yes; then
15831 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15832 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'
15833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15834 else
15835 allow_undefined_flag=' -expect_unresolved \*'
15836 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'
15837 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~
15838 $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'
15839
15840 # Both c and cxx compiler support -rpath directly
15841 hardcode_libdir_flag_spec='-rpath $libdir'
15842 fi
15843 archive_cmds_need_lc='no'
15844 hardcode_libdir_separator=:
15845 ;;
15846
15847 solaris*)
15848 no_undefined_flag=' -z defs'
15849 if test "$GCC" = yes; then
15850 wlarc='${wl}'
15851 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15853 $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'
15854 else
15855 case `$CC -V 2>&1` in
15856 *"Compilers 5.0"*)
15857 wlarc=''
15858 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15860 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15861 ;;
15862 *)
15863 wlarc='${wl}'
15864 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15866 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15867 ;;
15868 esac
15869 fi
15870 hardcode_libdir_flag_spec='-R$libdir'
15871 hardcode_shlibpath_var=no
15872 case $host_os in
15873 solaris2.[0-5] | solaris2.[0-5].*) ;;
15874 *)
15875 # The compiler driver will combine and reorder linker options,
15876 # but understands `-z linker_flag'. GCC discards it without `$wl',
15877 # but is careful enough not to reorder.
15878 # Supported since Solaris 2.6 (maybe 2.5.1?)
15879 if test "$GCC" = yes; then
15880 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15881 else
15882 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15883 fi
15884 ;;
15885 esac
15886 link_all_deplibs=yes
15887 ;;
15888
15889 sunos4*)
15890 if test "x$host_vendor" = xsequent; then
15891 # Use $CC to link under sequent, because it throws in some extra .o
15892 # files that make .init and .fini sections work.
15893 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15894 else
15895 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15896 fi
15897 hardcode_libdir_flag_spec='-L$libdir'
15898 hardcode_direct=yes
15899 hardcode_minus_L=yes
15900 hardcode_shlibpath_var=no
15901 ;;
15902
15903 sysv4)
15904 case $host_vendor in
15905 sni)
15906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907 hardcode_direct=yes # is this really true???
15908 ;;
15909 siemens)
15910 ## LD is ld it makes a PLAMLIB
15911 ## CC just makes a GrossModule.
15912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15913 reload_cmds='$CC -r -o $output$reload_objs'
15914 hardcode_direct=no
15915 ;;
15916 motorola)
15917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15919 ;;
15920 esac
15921 runpath_var='LD_RUN_PATH'
15922 hardcode_shlibpath_var=no
15923 ;;
15924
15925 sysv4.3*)
15926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927 hardcode_shlibpath_var=no
15928 export_dynamic_flag_spec='-Bexport'
15929 ;;
15930
15931 sysv4*MP*)
15932 if test -d /usr/nec; then
15933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_shlibpath_var=no
15935 runpath_var=LD_RUN_PATH
15936 hardcode_runpath_var=yes
15937 ld_shlibs=yes
15938 fi
15939 ;;
15940
15941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15942 no_undefined_flag='${wl}-z,text'
15943 archive_cmds_need_lc=no
15944 hardcode_shlibpath_var=no
15945 runpath_var='LD_RUN_PATH'
15946
15947 if test "$GCC" = yes; then
15948 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15950 else
15951 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953 fi
15954 ;;
15955
15956 sysv5* | sco3.2v5* | sco5v6*)
15957 # Note: We can NOT use -z defs as we might desire, because we do not
15958 # link with -lc, and that would cause any symbols used from libc to
15959 # always be unresolved, which means just about no library would
15960 # ever link correctly. If we're not using GNU ld we use -z text
15961 # though, which does catch some bad symbols but isn't as heavy-handed
15962 # as -z defs.
15963 no_undefined_flag='${wl}-z,text'
15964 allow_undefined_flag='${wl}-z,nodefs'
15965 archive_cmds_need_lc=no
15966 hardcode_shlibpath_var=no
15967 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15968 hardcode_libdir_separator=':'
15969 link_all_deplibs=yes
15970 export_dynamic_flag_spec='${wl}-Bexport'
15971 runpath_var='LD_RUN_PATH'
15972
15973 if test "$GCC" = yes; then
15974 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15976 else
15977 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979 fi
15980 ;;
15981
15982 uts4*)
15983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15984 hardcode_libdir_flag_spec='-L$libdir'
15985 hardcode_shlibpath_var=no
15986 ;;
15987
15988 *)
15989 ld_shlibs=no
15990 ;;
15991 esac
15992
15993 if test x$host_vendor = xsni; then
15994 case $host in
15995 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15996 export_dynamic_flag_spec='${wl}-Blargedynsym'
15997 ;;
15998 esac
15999 fi
16000 fi
16001
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16003 $as_echo "$ld_shlibs" >&6; }
16004 test "$ld_shlibs" = no && can_build_shared=no
16005
16006 with_gnu_ld=$with_gnu_ld
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022 #
16023 # Do we need to explicitly link libc?
16024 #
16025 case "x$archive_cmds_need_lc" in
16026 x|xyes)
16027 # Assume -lc should be added
16028 archive_cmds_need_lc=yes
16029
16030 if test "$enable_shared" = yes && test "$GCC" = yes; then
16031 case $archive_cmds in
16032 *'~'*)
16033 # FIXME: we may have to deal with multi-command sequences.
16034 ;;
16035 '$CC '*)
16036 # Test whether the compiler implicitly links with -lc since on some
16037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16038 # to ld, don't add -lc before -lgcc.
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16040 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16041 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16042 $as_echo_n "(cached) " >&6
16043 else
16044 $RM conftest*
16045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16046
16047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16048 (eval $ac_compile) 2>&5
16049 ac_status=$?
16050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16051 test $ac_status = 0; } 2>conftest.err; then
16052 soname=conftest
16053 lib=conftest
16054 libobjs=conftest.$ac_objext
16055 deplibs=
16056 wl=$lt_prog_compiler_wl
16057 pic_flag=$lt_prog_compiler_pic
16058 compiler_flags=-v
16059 linker_flags=-v
16060 verstring=
16061 output_objdir=.
16062 libname=conftest
16063 lt_save_allow_undefined_flag=$allow_undefined_flag
16064 allow_undefined_flag=
16065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16066 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16067 ac_status=$?
16068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16069 test $ac_status = 0; }
16070 then
16071 lt_cv_archive_cmds_need_lc=no
16072 else
16073 lt_cv_archive_cmds_need_lc=yes
16074 fi
16075 allow_undefined_flag=$lt_save_allow_undefined_flag
16076 else
16077 cat conftest.err 1>&5
16078 fi
16079 $RM conftest*
16080
16081 fi
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16083 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16084 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16085 ;;
16086 esac
16087 fi
16088 ;;
16089 esac
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
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16243 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16244
16245 if test "$GCC" = yes; then
16246 case $host_os in
16247 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16248 *) lt_awk_arg="/^libraries:/" ;;
16249 esac
16250 case $host_os in
16251 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16252 *) lt_sed_strip_eq="s,=/,/,g" ;;
16253 esac
16254 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16255 case $lt_search_path_spec in
16256 *\;*)
16257 # if the path contains ";" then we assume it to be the separator
16258 # otherwise default to the standard path separator (i.e. ":") - it is
16259 # assumed that no part of a normal pathname contains ";" but that should
16260 # okay in the real world where ";" in dirpaths is itself problematic.
16261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16262 ;;
16263 *)
16264 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16265 ;;
16266 esac
16267 # Ok, now we have the path, separated by spaces, we can step through it
16268 # and add multilib dir if necessary.
16269 lt_tmp_lt_search_path_spec=
16270 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16271 for lt_sys_path in $lt_search_path_spec; do
16272 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16274 else
16275 test -d "$lt_sys_path" && \
16276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16277 fi
16278 done
16279 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16280 BEGIN {RS=" "; FS="/|\n";} {
16281 lt_foo="";
16282 lt_count=0;
16283 for (lt_i = NF; lt_i > 0; lt_i--) {
16284 if ($lt_i != "" && $lt_i != ".") {
16285 if ($lt_i == "..") {
16286 lt_count++;
16287 } else {
16288 if (lt_count == 0) {
16289 lt_foo="/" $lt_i lt_foo;
16290 } else {
16291 lt_count--;
16292 }
16293 }
16294 }
16295 }
16296 if (lt_foo != "") { lt_freq[lt_foo]++; }
16297 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16298 }'`
16299 # AWK program above erroneously prepends '/' to C:/dos/paths
16300 # for these hosts.
16301 case $host_os in
16302 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16303 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16304 esac
16305 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16306 else
16307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16308 fi
16309 library_names_spec=
16310 libname_spec='lib$name'
16311 soname_spec=
16312 shrext_cmds=".so"
16313 postinstall_cmds=
16314 postuninstall_cmds=
16315 finish_cmds=
16316 finish_eval=
16317 shlibpath_var=
16318 shlibpath_overrides_runpath=unknown
16319 version_type=none
16320 dynamic_linker="$host_os ld.so"
16321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16322 need_lib_prefix=unknown
16323 hardcode_into_libs=no
16324
16325 # when you set need_version to no, make sure it does not cause -set_version
16326 # flags to be left without arguments
16327 need_version=unknown
16328
16329 case $host_os in
16330 aix3*)
16331 version_type=linux # correct to gnu/linux during the next big refactor
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16333 shlibpath_var=LIBPATH
16334
16335 # AIX 3 has no versioning support, so we append a major version to the name.
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 ;;
16338
16339 aix[4-9]*)
16340 version_type=linux # correct to gnu/linux during the next big refactor
16341 need_lib_prefix=no
16342 need_version=no
16343 hardcode_into_libs=yes
16344 if test "$host_cpu" = ia64; then
16345 # AIX 5 supports IA64
16346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 else
16349 # With GCC up to 2.95.x, collect2 would create an import file
16350 # for dependence libraries. The import file would start with
16351 # the line `#! .'. This would cause the generated library to
16352 # depend on `.', always an invalid library. This was fixed in
16353 # development snapshots of GCC prior to 3.0.
16354 case $host_os in
16355 aix4 | aix4.[01] | aix4.[01].*)
16356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16357 echo ' yes '
16358 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16359 :
16360 else
16361 can_build_shared=no
16362 fi
16363 ;;
16364 esac
16365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16366 # soname into executable. Probably we can add versioning support to
16367 # collect2, so additional links can be useful in future.
16368 if test "$aix_use_runtimelinking" = yes; then
16369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16370 # instead of lib<name>.a to let people know that these are not
16371 # typical AIX shared libraries.
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 else
16374 # We preserve .a as extension for shared libraries through AIX4.2
16375 # and later when we are not doing run time linking.
16376 library_names_spec='${libname}${release}.a $libname.a'
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 fi
16379 shlibpath_var=LIBPATH
16380 fi
16381 ;;
16382
16383 amigaos*)
16384 case $host_cpu in
16385 powerpc)
16386 # Since July 2007 AmigaOS4 officially supports .so libraries.
16387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 ;;
16390 m68k)
16391 library_names_spec='$libname.ixlibrary $libname.a'
16392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16393 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'
16394 ;;
16395 esac
16396 ;;
16397
16398 beos*)
16399 library_names_spec='${libname}${shared_ext}'
16400 dynamic_linker="$host_os ld.so"
16401 shlibpath_var=LIBRARY_PATH
16402 ;;
16403
16404 bsdi[45]*)
16405 version_type=linux # correct to gnu/linux during the next big refactor
16406 need_version=no
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16413 # the default ld.so.conf also contains /usr/contrib/lib and
16414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16415 # libtool to hard-code these into programs
16416 ;;
16417
16418 cygwin* | mingw* | pw32* | cegcc*)
16419 version_type=windows
16420 shrext_cmds=".dll"
16421 need_version=no
16422 need_lib_prefix=no
16423
16424 case $GCC,$cc_basename in
16425 yes,*)
16426 # gcc
16427 library_names_spec='$libname.dll.a'
16428 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16429 postinstall_cmds='base_file=`basename \${file}`~
16430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16431 dldir=$destdir/`dirname \$dlpath`~
16432 test -d \$dldir || mkdir -p \$dldir~
16433 $install_prog $dir/$dlname \$dldir/$dlname~
16434 chmod a+x \$dldir/$dlname~
16435 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16436 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16437 fi'
16438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16439 dlpath=$dir/\$dldll~
16440 $RM \$dlpath'
16441 shlibpath_overrides_runpath=yes
16442
16443 case $host_os in
16444 cygwin*)
16445 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16446 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447
16448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16449 ;;
16450 mingw* | cegcc*)
16451 # MinGW DLLs use traditional 'lib' prefix
16452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16453 ;;
16454 pw32*)
16455 # pw32 DLLs use 'pw' prefix rather than 'lib'
16456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16457 ;;
16458 esac
16459 dynamic_linker='Win32 ld.exe'
16460 ;;
16461
16462 *,cl*)
16463 # Native MSVC
16464 libname_spec='$name'
16465 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16466 library_names_spec='${libname}.dll.lib'
16467
16468 case $build_os in
16469 mingw*)
16470 sys_lib_search_path_spec=
16471 lt_save_ifs=$IFS
16472 IFS=';'
16473 for lt_path in $LIB
16474 do
16475 IFS=$lt_save_ifs
16476 # Let DOS variable expansion print the short 8.3 style file name.
16477 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16478 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16479 done
16480 IFS=$lt_save_ifs
16481 # Convert to MSYS style.
16482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16483 ;;
16484 cygwin*)
16485 # Convert to unix form, then to dos form, then back to unix form
16486 # but this time dos style (no spaces!) so that the unix form looks
16487 # like /cygdrive/c/PROGRA~1:/cygdr...
16488 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16489 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16490 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16491 ;;
16492 *)
16493 sys_lib_search_path_spec="$LIB"
16494 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16495 # It is most probably a Windows format PATH.
16496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16497 else
16498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16499 fi
16500 # FIXME: find the short name or the path components, as spaces are
16501 # common. (e.g. "Program Files" -> "PROGRA~1")
16502 ;;
16503 esac
16504
16505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16506 postinstall_cmds='base_file=`basename \${file}`~
16507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16508 dldir=$destdir/`dirname \$dlpath`~
16509 test -d \$dldir || mkdir -p \$dldir~
16510 $install_prog $dir/$dlname \$dldir/$dlname'
16511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16512 dlpath=$dir/\$dldll~
16513 $RM \$dlpath'
16514 shlibpath_overrides_runpath=yes
16515 dynamic_linker='Win32 link.exe'
16516 ;;
16517
16518 *)
16519 # Assume MSVC wrapper
16520 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16521 dynamic_linker='Win32 ld.exe'
16522 ;;
16523 esac
16524 # FIXME: first we should search . and the directory the executable is in
16525 shlibpath_var=PATH
16526 ;;
16527
16528 darwin* | rhapsody*)
16529 dynamic_linker="$host_os dyld"
16530 version_type=darwin
16531 need_lib_prefix=no
16532 need_version=no
16533 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16534 soname_spec='${libname}${release}${major}$shared_ext'
16535 shlibpath_overrides_runpath=yes
16536 shlibpath_var=DYLD_LIBRARY_PATH
16537 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16538
16539 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16540 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16541 ;;
16542
16543 dgux*)
16544 version_type=linux # correct to gnu/linux during the next big refactor
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 ;;
16551
16552 freebsd* | dragonfly*)
16553 # DragonFly does not have aout. When/if they implement a new
16554 # versioning mechanism, adjust this.
16555 if test -x /usr/bin/objformat; then
16556 objformat=`/usr/bin/objformat`
16557 else
16558 case $host_os in
16559 freebsd[23].*) objformat=aout ;;
16560 *) objformat=elf ;;
16561 esac
16562 fi
16563 version_type=freebsd-$objformat
16564 case $version_type in
16565 freebsd-elf*)
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16567 need_version=no
16568 need_lib_prefix=no
16569 ;;
16570 freebsd-*)
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16572 need_version=yes
16573 ;;
16574 esac
16575 shlibpath_var=LD_LIBRARY_PATH
16576 case $host_os in
16577 freebsd2.*)
16578 shlibpath_overrides_runpath=yes
16579 ;;
16580 freebsd3.[01]* | freebsdelf3.[01]*)
16581 shlibpath_overrides_runpath=yes
16582 hardcode_into_libs=yes
16583 ;;
16584 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16585 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16586 shlibpath_overrides_runpath=no
16587 hardcode_into_libs=yes
16588 ;;
16589 *) # from 4.6 on, and DragonFly
16590 shlibpath_overrides_runpath=yes
16591 hardcode_into_libs=yes
16592 ;;
16593 esac
16594 ;;
16595
16596 gnu*)
16597 version_type=linux # correct to gnu/linux during the next big refactor
16598 need_lib_prefix=no
16599 need_version=no
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=no
16604 hardcode_into_libs=yes
16605 ;;
16606
16607 haiku*)
16608 version_type=linux # correct to gnu/linux during the next big refactor
16609 need_lib_prefix=no
16610 need_version=no
16611 dynamic_linker="$host_os runtime_loader"
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 shlibpath_var=LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes
16616 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16617 hardcode_into_libs=yes
16618 ;;
16619
16620 hpux9* | hpux10* | hpux11*)
16621 # Give a soname corresponding to the major version so that dld.sl refuses to
16622 # link against other versions.
16623 version_type=sunos
16624 need_lib_prefix=no
16625 need_version=no
16626 case $host_cpu in
16627 ia64*)
16628 shrext_cmds='.so'
16629 hardcode_into_libs=yes
16630 dynamic_linker="$host_os dld.so"
16631 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16635 if test "X$HPUX_IA64_MODE" = X32; then
16636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16637 else
16638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16639 fi
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641 ;;
16642 hppa*64*)
16643 shrext_cmds='.sl'
16644 hardcode_into_libs=yes
16645 dynamic_linker="$host_os dld.sl"
16646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649 soname_spec='${libname}${release}${shared_ext}$major'
16650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16652 ;;
16653 *)
16654 shrext_cmds='.sl'
16655 dynamic_linker="$host_os dld.sl"
16656 shlibpath_var=SHLIB_PATH
16657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 ;;
16661 esac
16662 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16663 postinstall_cmds='chmod 555 $lib'
16664 # or fails outright, so override atomically:
16665 install_override_mode=555
16666 ;;
16667
16668 interix[3-9]*)
16669 version_type=linux # correct to gnu/linux during the next big refactor
16670 need_lib_prefix=no
16671 need_version=no
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=no
16677 hardcode_into_libs=yes
16678 ;;
16679
16680 irix5* | irix6* | nonstopux*)
16681 case $host_os in
16682 nonstopux*) version_type=nonstopux ;;
16683 *)
16684 if test "$lt_cv_prog_gnu_ld" = yes; then
16685 version_type=linux # correct to gnu/linux during the next big refactor
16686 else
16687 version_type=irix
16688 fi ;;
16689 esac
16690 need_lib_prefix=no
16691 need_version=no
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16694 case $host_os in
16695 irix5* | nonstopux*)
16696 libsuff= shlibsuff=
16697 ;;
16698 *)
16699 case $LD in # libtool.m4 will add one of these switches to LD
16700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16701 libsuff= shlibsuff= libmagic=32-bit;;
16702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16703 libsuff=32 shlibsuff=N32 libmagic=N32;;
16704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16706 *) libsuff= shlibsuff= libmagic=never-match;;
16707 esac
16708 ;;
16709 esac
16710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16711 shlibpath_overrides_runpath=no
16712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16714 hardcode_into_libs=yes
16715 ;;
16716
16717 # No shared lib support for Linux oldld, aout, or coff.
16718 linux*oldld* | linux*aout* | linux*coff*)
16719 dynamic_linker=no
16720 ;;
16721
16722 # This must be glibc/ELF.
16723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16724 version_type=linux # correct to gnu/linux during the next big refactor
16725 need_lib_prefix=no
16726 need_version=no
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
16729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 shlibpath_overrides_runpath=no
16732
16733 # Some binutils ld are patched to set DT_RUNPATH
16734 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 lt_cv_shlibpath_overrides_runpath=no
16738 save_LDFLAGS=$LDFLAGS
16739 save_libdir=$libdir
16740 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16741 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16744
16745 int
16746 main ()
16747 {
16748
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 if ac_fn_c_try_link "$LINENO"; then :
16754 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16755 lt_cv_shlibpath_overrides_runpath=yes
16756 fi
16757 fi
16758 rm -f core conftest.err conftest.$ac_objext \
16759 conftest$ac_exeext conftest.$ac_ext
16760 LDFLAGS=$save_LDFLAGS
16761 libdir=$save_libdir
16762
16763 fi
16764
16765 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16766
16767 # This implies no fast_install, which is unacceptable.
16768 # Some rework will be needed to allow for fast_install
16769 # before this can be enabled.
16770 hardcode_into_libs=yes
16771
16772 # Add ABI-specific directories to the system library path.
16773 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16774
16775 # Append ld.so.conf contents to the search path
16776 if test -f /etc/ld.so.conf; then
16777 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' ' '`
16778 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16779
16780 fi
16781
16782 # We used to test for /lib/ld.so.1 and disable shared libraries on
16783 # powerpc, because MkLinux only supported shared libraries with the
16784 # GNU dynamic linker. Since this was broken with cross compilers,
16785 # most powerpc-linux boxes support dynamic linking these days and
16786 # people can always --disable-shared, the test was removed, and we
16787 # assume the GNU/Linux dynamic linker is in use.
16788 dynamic_linker='GNU/Linux ld.so'
16789 ;;
16790
16791 netbsd*)
16792 version_type=sunos
16793 need_lib_prefix=no
16794 need_version=no
16795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16798 dynamic_linker='NetBSD (a.out) ld.so'
16799 else
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 dynamic_linker='NetBSD ld.elf_so'
16803 fi
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16806 hardcode_into_libs=yes
16807 ;;
16808
16809 newsos6)
16810 version_type=linux # correct to gnu/linux during the next big refactor
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 shlibpath_overrides_runpath=yes
16814 ;;
16815
16816 *nto* | *qnx*)
16817 version_type=qnx
16818 need_lib_prefix=no
16819 need_version=no
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=no
16824 hardcode_into_libs=yes
16825 dynamic_linker='ldqnx.so'
16826 ;;
16827
16828 openbsd*)
16829 version_type=sunos
16830 sys_lib_dlsearch_path_spec="/usr/lib"
16831 need_lib_prefix=no
16832 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16833 case $host_os in
16834 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16835 *) need_version=no ;;
16836 esac
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16841 case $host_os in
16842 openbsd2.[89] | openbsd2.[89].*)
16843 shlibpath_overrides_runpath=no
16844 ;;
16845 *)
16846 shlibpath_overrides_runpath=yes
16847 ;;
16848 esac
16849 else
16850 shlibpath_overrides_runpath=yes
16851 fi
16852 ;;
16853
16854 os2*)
16855 libname_spec='$name'
16856 shrext_cmds=".dll"
16857 need_lib_prefix=no
16858 library_names_spec='$libname${shared_ext} $libname.a'
16859 dynamic_linker='OS/2 ld.exe'
16860 shlibpath_var=LIBPATH
16861 ;;
16862
16863 osf3* | osf4* | osf5*)
16864 version_type=osf
16865 need_lib_prefix=no
16866 need_version=no
16867 soname_spec='${libname}${release}${shared_ext}$major'
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16871 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16872 ;;
16873
16874 rdos*)
16875 dynamic_linker=no
16876 ;;
16877
16878 solaris*)
16879 version_type=linux # correct to gnu/linux during the next big refactor
16880 need_lib_prefix=no
16881 need_version=no
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 shlibpath_overrides_runpath=yes
16886 hardcode_into_libs=yes
16887 # ldd complains unless libraries are executable
16888 postinstall_cmds='chmod +x $lib'
16889 ;;
16890
16891 sunos4*)
16892 version_type=sunos
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16894 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 shlibpath_overrides_runpath=yes
16897 if test "$with_gnu_ld" = yes; then
16898 need_lib_prefix=no
16899 fi
16900 need_version=yes
16901 ;;
16902
16903 sysv4 | sysv4.3*)
16904 version_type=linux # correct to gnu/linux during the next big refactor
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16906 soname_spec='${libname}${release}${shared_ext}$major'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 case $host_vendor in
16909 sni)
16910 shlibpath_overrides_runpath=no
16911 need_lib_prefix=no
16912 runpath_var=LD_RUN_PATH
16913 ;;
16914 siemens)
16915 need_lib_prefix=no
16916 ;;
16917 motorola)
16918 need_lib_prefix=no
16919 need_version=no
16920 shlibpath_overrides_runpath=no
16921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16922 ;;
16923 esac
16924 ;;
16925
16926 sysv4*MP*)
16927 if test -d /usr/nec ;then
16928 version_type=linux # correct to gnu/linux during the next big refactor
16929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16930 soname_spec='$libname${shared_ext}.$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 fi
16933 ;;
16934
16935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16936 version_type=freebsd-elf
16937 need_lib_prefix=no
16938 need_version=no
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 shlibpath_overrides_runpath=yes
16943 hardcode_into_libs=yes
16944 if test "$with_gnu_ld" = yes; then
16945 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16946 else
16947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16948 case $host_os in
16949 sco3.2v5*)
16950 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16951 ;;
16952 esac
16953 fi
16954 sys_lib_dlsearch_path_spec='/usr/lib'
16955 ;;
16956
16957 tpf*)
16958 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16959 version_type=linux # correct to gnu/linux during the next big refactor
16960 need_lib_prefix=no
16961 need_version=no
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963 shlibpath_var=LD_LIBRARY_PATH
16964 shlibpath_overrides_runpath=no
16965 hardcode_into_libs=yes
16966 ;;
16967
16968 uts4*)
16969 version_type=linux # correct to gnu/linux during the next big refactor
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 shlibpath_var=LD_LIBRARY_PATH
16973 ;;
16974
16975 *)
16976 dynamic_linker=no
16977 ;;
16978 esac
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16980 $as_echo "$dynamic_linker" >&6; }
16981 test "$dynamic_linker" = no && can_build_shared=no
16982
16983 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16984 if test "$GCC" = yes; then
16985 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16986 fi
16987
16988 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16989 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16990 fi
16991 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16992 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16993 fi
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
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17087 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17088 hardcode_action=
17089 if test -n "$hardcode_libdir_flag_spec" ||
17090 test -n "$runpath_var" ||
17091 test "X$hardcode_automatic" = "Xyes" ; then
17092
17093 # We can hardcode non-existent directories.
17094 if test "$hardcode_direct" != no &&
17095 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17096 # have to relink, otherwise we might link with an installed library
17097 # when we should be linking with a yet-to-be-installed one
17098 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17099 test "$hardcode_minus_L" != no; then
17100 # Linking always hardcodes the temporary library directory.
17101 hardcode_action=relink
17102 else
17103 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17104 hardcode_action=immediate
17105 fi
17106 else
17107 # We cannot hardcode anything, or else we can only hardcode existing
17108 # directories.
17109 hardcode_action=unsupported
17110 fi
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17112 $as_echo "$hardcode_action" >&6; }
17113
17114 if test "$hardcode_action" = relink ||
17115 test "$inherit_rpath" = yes; then
17116 # Fast installation is not supported
17117 enable_fast_install=no
17118 elif test "$shlibpath_overrides_runpath" = yes ||
17119 test "$enable_shared" = no; then
17120 # Fast installation is not necessary
17121 enable_fast_install=needless
17122 fi
17123
17124
17125
17126
17127
17128
17129 if test "x$enable_dlopen" != xyes; then
17130 enable_dlopen=unknown
17131 enable_dlopen_self=unknown
17132 enable_dlopen_self_static=unknown
17133 else
17134 lt_cv_dlopen=no
17135 lt_cv_dlopen_libs=
17136
17137 case $host_os in
17138 beos*)
17139 lt_cv_dlopen="load_add_on"
17140 lt_cv_dlopen_libs=
17141 lt_cv_dlopen_self=yes
17142 ;;
17143
17144 mingw* | pw32* | cegcc*)
17145 lt_cv_dlopen="LoadLibrary"
17146 lt_cv_dlopen_libs=
17147 ;;
17148
17149 cygwin*)
17150 lt_cv_dlopen="dlopen"
17151 lt_cv_dlopen_libs=
17152 ;;
17153
17154 darwin*)
17155 # if libdl is installed we need to link against it
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17158 if ${ac_cv_lib_dl_dlopen+:} false; then :
17159 $as_echo_n "(cached) " >&6
17160 else
17161 ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-ldl $LIBS"
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17169 #ifdef __cplusplus
17170 extern "C"
17171 #endif
17172 char dlopen ();
17173 int
17174 main ()
17175 {
17176 return dlopen ();
17177 ;
17178 return 0;
17179 }
17180 _ACEOF
17181 if ac_fn_c_try_link "$LINENO"; then :
17182 ac_cv_lib_dl_dlopen=yes
17183 else
17184 ac_cv_lib_dl_dlopen=no
17185 fi
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17189 fi
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17192 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17194 else
17195
17196 lt_cv_dlopen="dyld"
17197 lt_cv_dlopen_libs=
17198 lt_cv_dlopen_self=yes
17199
17200 fi
17201
17202 ;;
17203
17204 *)
17205 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17206 if test "x$ac_cv_func_shl_load" = xyes; then :
17207 lt_cv_dlopen="shl_load"
17208 else
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17210 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17211 if ${ac_cv_lib_dld_shl_load+:} false; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17214 ac_check_lib_save_LIBS=$LIBS
17215 LIBS="-ldld $LIBS"
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17218
17219 /* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17222 #ifdef __cplusplus
17223 extern "C"
17224 #endif
17225 char shl_load ();
17226 int
17227 main ()
17228 {
17229 return shl_load ();
17230 ;
17231 return 0;
17232 }
17233 _ACEOF
17234 if ac_fn_c_try_link "$LINENO"; then :
17235 ac_cv_lib_dld_shl_load=yes
17236 else
17237 ac_cv_lib_dld_shl_load=no
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241 LIBS=$ac_check_lib_save_LIBS
17242 fi
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17244 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17245 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17246 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17247 else
17248 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17249 if test "x$ac_cv_func_dlopen" = xyes; then :
17250 lt_cv_dlopen="dlopen"
17251 else
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17254 if ${ac_cv_lib_dl_dlopen+:} false; then :
17255 $as_echo_n "(cached) " >&6
17256 else
17257 ac_check_lib_save_LIBS=$LIBS
17258 LIBS="-ldl $LIBS"
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261
17262 /* Override any GCC internal prototype to avoid an error.
17263 Use char because int might match the return type of a GCC
17264 builtin and then its argument prototype would still apply. */
17265 #ifdef __cplusplus
17266 extern "C"
17267 #endif
17268 char dlopen ();
17269 int
17270 main ()
17271 {
17272 return dlopen ();
17273 ;
17274 return 0;
17275 }
17276 _ACEOF
17277 if ac_fn_c_try_link "$LINENO"; then :
17278 ac_cv_lib_dl_dlopen=yes
17279 else
17280 ac_cv_lib_dl_dlopen=no
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17284 LIBS=$ac_check_lib_save_LIBS
17285 fi
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17288 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17290 else
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17292 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17293 if ${ac_cv_lib_svld_dlopen+:} false; then :
17294 $as_echo_n "(cached) " >&6
17295 else
17296 ac_check_lib_save_LIBS=$LIBS
17297 LIBS="-lsvld $LIBS"
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17300
17301 /* Override any GCC internal prototype to avoid an error.
17302 Use char because int might match the return type of a GCC
17303 builtin and then its argument prototype would still apply. */
17304 #ifdef __cplusplus
17305 extern "C"
17306 #endif
17307 char dlopen ();
17308 int
17309 main ()
17310 {
17311 return dlopen ();
17312 ;
17313 return 0;
17314 }
17315 _ACEOF
17316 if ac_fn_c_try_link "$LINENO"; then :
17317 ac_cv_lib_svld_dlopen=yes
17318 else
17319 ac_cv_lib_svld_dlopen=no
17320 fi
17321 rm -f core conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17323 LIBS=$ac_check_lib_save_LIBS
17324 fi
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17326 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17327 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17329 else
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17331 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17332 if ${ac_cv_lib_dld_dld_link+:} false; then :
17333 $as_echo_n "(cached) " >&6
17334 else
17335 ac_check_lib_save_LIBS=$LIBS
17336 LIBS="-ldld $LIBS"
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17339
17340 /* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343 #ifdef __cplusplus
17344 extern "C"
17345 #endif
17346 char dld_link ();
17347 int
17348 main ()
17349 {
17350 return dld_link ();
17351 ;
17352 return 0;
17353 }
17354 _ACEOF
17355 if ac_fn_c_try_link "$LINENO"; then :
17356 ac_cv_lib_dld_dld_link=yes
17357 else
17358 ac_cv_lib_dld_dld_link=no
17359 fi
17360 rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362 LIBS=$ac_check_lib_save_LIBS
17363 fi
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17365 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17366 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17367 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17368 fi
17369
17370
17371 fi
17372
17373
17374 fi
17375
17376
17377 fi
17378
17379
17380 fi
17381
17382
17383 fi
17384
17385 ;;
17386 esac
17387
17388 if test "x$lt_cv_dlopen" != xno; then
17389 enable_dlopen=yes
17390 else
17391 enable_dlopen=no
17392 fi
17393
17394 case $lt_cv_dlopen in
17395 dlopen)
17396 save_CPPFLAGS="$CPPFLAGS"
17397 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17398
17399 save_LDFLAGS="$LDFLAGS"
17400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17401
17402 save_LIBS="$LIBS"
17403 LIBS="$lt_cv_dlopen_libs $LIBS"
17404
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17406 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17407 if ${lt_cv_dlopen_self+:} false; then :
17408 $as_echo_n "(cached) " >&6
17409 else
17410 if test "$cross_compiling" = yes; then :
17411 lt_cv_dlopen_self=cross
17412 else
17413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17414 lt_status=$lt_dlunknown
17415 cat > conftest.$ac_ext <<_LT_EOF
17416 #line $LINENO "configure"
17417 #include "confdefs.h"
17418
17419 #if HAVE_DLFCN_H
17420 #include <dlfcn.h>
17421 #endif
17422
17423 #include <stdio.h>
17424
17425 #ifdef RTLD_GLOBAL
17426 # define LT_DLGLOBAL RTLD_GLOBAL
17427 #else
17428 # ifdef DL_GLOBAL
17429 # define LT_DLGLOBAL DL_GLOBAL
17430 # else
17431 # define LT_DLGLOBAL 0
17432 # endif
17433 #endif
17434
17435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17436 find out it does not work in some platform. */
17437 #ifndef LT_DLLAZY_OR_NOW
17438 # ifdef RTLD_LAZY
17439 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17440 # else
17441 # ifdef DL_LAZY
17442 # define LT_DLLAZY_OR_NOW DL_LAZY
17443 # else
17444 # ifdef RTLD_NOW
17445 # define LT_DLLAZY_OR_NOW RTLD_NOW
17446 # else
17447 # ifdef DL_NOW
17448 # define LT_DLLAZY_OR_NOW DL_NOW
17449 # else
17450 # define LT_DLLAZY_OR_NOW 0
17451 # endif
17452 # endif
17453 # endif
17454 # endif
17455 #endif
17456
17457 /* When -fvisbility=hidden is used, assume the code has been annotated
17458 correspondingly for the symbols needed. */
17459 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17460 int fnord () __attribute__((visibility("default")));
17461 #endif
17462
17463 int fnord () { return 42; }
17464 int main ()
17465 {
17466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17467 int status = $lt_dlunknown;
17468
17469 if (self)
17470 {
17471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17472 else
17473 {
17474 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17475 else puts (dlerror ());
17476 }
17477 /* dlclose (self); */
17478 }
17479 else
17480 puts (dlerror ());
17481
17482 return status;
17483 }
17484 _LT_EOF
17485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17486 (eval $ac_link) 2>&5
17487 ac_status=$?
17488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17490 (./conftest; exit; ) >&5 2>/dev/null
17491 lt_status=$?
17492 case x$lt_status in
17493 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17494 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17495 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17496 esac
17497 else :
17498 # compilation failed
17499 lt_cv_dlopen_self=no
17500 fi
17501 fi
17502 rm -fr conftest*
17503
17504
17505 fi
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17507 $as_echo "$lt_cv_dlopen_self" >&6; }
17508
17509 if test "x$lt_cv_dlopen_self" = xyes; then
17510 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17512 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17513 if ${lt_cv_dlopen_self_static+:} false; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17516 if test "$cross_compiling" = yes; then :
17517 lt_cv_dlopen_self_static=cross
17518 else
17519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17520 lt_status=$lt_dlunknown
17521 cat > conftest.$ac_ext <<_LT_EOF
17522 #line $LINENO "configure"
17523 #include "confdefs.h"
17524
17525 #if HAVE_DLFCN_H
17526 #include <dlfcn.h>
17527 #endif
17528
17529 #include <stdio.h>
17530
17531 #ifdef RTLD_GLOBAL
17532 # define LT_DLGLOBAL RTLD_GLOBAL
17533 #else
17534 # ifdef DL_GLOBAL
17535 # define LT_DLGLOBAL DL_GLOBAL
17536 # else
17537 # define LT_DLGLOBAL 0
17538 # endif
17539 #endif
17540
17541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17542 find out it does not work in some platform. */
17543 #ifndef LT_DLLAZY_OR_NOW
17544 # ifdef RTLD_LAZY
17545 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17546 # else
17547 # ifdef DL_LAZY
17548 # define LT_DLLAZY_OR_NOW DL_LAZY
17549 # else
17550 # ifdef RTLD_NOW
17551 # define LT_DLLAZY_OR_NOW RTLD_NOW
17552 # else
17553 # ifdef DL_NOW
17554 # define LT_DLLAZY_OR_NOW DL_NOW
17555 # else
17556 # define LT_DLLAZY_OR_NOW 0
17557 # endif
17558 # endif
17559 # endif
17560 # endif
17561 #endif
17562
17563 /* When -fvisbility=hidden is used, assume the code has been annotated
17564 correspondingly for the symbols needed. */
17565 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17566 int fnord () __attribute__((visibility("default")));
17567 #endif
17568
17569 int fnord () { return 42; }
17570 int main ()
17571 {
17572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17573 int status = $lt_dlunknown;
17574
17575 if (self)
17576 {
17577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17578 else
17579 {
17580 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17581 else puts (dlerror ());
17582 }
17583 /* dlclose (self); */
17584 }
17585 else
17586 puts (dlerror ());
17587
17588 return status;
17589 }
17590 _LT_EOF
17591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17592 (eval $ac_link) 2>&5
17593 ac_status=$?
17594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17595 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17596 (./conftest; exit; ) >&5 2>/dev/null
17597 lt_status=$?
17598 case x$lt_status in
17599 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17600 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17601 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17602 esac
17603 else :
17604 # compilation failed
17605 lt_cv_dlopen_self_static=no
17606 fi
17607 fi
17608 rm -fr conftest*
17609
17610
17611 fi
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17613 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17614 fi
17615
17616 CPPFLAGS="$save_CPPFLAGS"
17617 LDFLAGS="$save_LDFLAGS"
17618 LIBS="$save_LIBS"
17619 ;;
17620 esac
17621
17622 case $lt_cv_dlopen_self in
17623 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17624 *) enable_dlopen_self=unknown ;;
17625 esac
17626
17627 case $lt_cv_dlopen_self_static in
17628 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17629 *) enable_dlopen_self_static=unknown ;;
17630 esac
17631 fi
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649 striplib=
17650 old_striplib=
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17652 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17653 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17655 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17657 $as_echo "yes" >&6; }
17658 else
17659 # FIXME - insert some real tests, host_os isn't really good enough
17660 case $host_os in
17661 darwin*)
17662 if test -n "$STRIP" ; then
17663 striplib="$STRIP -x"
17664 old_striplib="$STRIP -S"
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17666 $as_echo "yes" >&6; }
17667 else
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669 $as_echo "no" >&6; }
17670 fi
17671 ;;
17672 *)
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674 $as_echo "no" >&6; }
17675 ;;
17676 esac
17677 fi
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690 # Report which library types will actually be built
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17692 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17694 $as_echo "$can_build_shared" >&6; }
17695
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17697 $as_echo_n "checking whether to build shared libraries... " >&6; }
17698 test "$can_build_shared" = "no" && enable_shared=no
17699
17700 # On AIX, shared libraries and static libraries use the same namespace, and
17701 # are all built from PIC.
17702 case $host_os in
17703 aix3*)
17704 test "$enable_shared" = yes && enable_static=no
17705 if test -n "$RANLIB"; then
17706 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17707 postinstall_cmds='$RANLIB $lib'
17708 fi
17709 ;;
17710
17711 aix[4-9]*)
17712 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17713 test "$enable_shared" = yes && enable_static=no
17714 fi
17715 ;;
17716 esac
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17718 $as_echo "$enable_shared" >&6; }
17719
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17721 $as_echo_n "checking whether to build static libraries... " >&6; }
17722 # Make sure either enable_shared or enable_static is yes.
17723 test "$enable_shared" = yes || enable_static=yes
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17725 $as_echo "$enable_static" >&6; }
17726
17727
17728
17729
17730 fi
17731 ac_ext=c
17732 ac_cpp='$CPP $CPPFLAGS'
17733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17736
17737 CC="$lt_save_CC"
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753 ac_config_commands="$ac_config_commands libtool"
17754
17755
17756
17757
17758 # Only expand once:
17759
17760
17761
17762
17763
17764 # Define a configure option for an alternate module directory
17765
17766 # Check whether --with-xorg-module-dir was given.
17767 if test "${with_xorg_module_dir+set}" = set; then :
17768 withval=$with_xorg_module_dir; moduledir="$withval"
17769 else
17770 moduledir="$libdir/xorg/modules"
17771 fi
17772
17773
17774 # Check whether --enable-dri was given.
17775 if test "${enable_dri+set}" = set; then :
17776 enableval=$enable_dri; DRI="$enableval"
17777 else
17778 DRI=auto
17779 fi
17780
17781
17782 # Store the list of server defined optional extensions in REQUIRED_MODULES
17783
17784
17785 SAVE_CFLAGS="$CFLAGS"
17786 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789
17790 #include "xorg-server.h"
17791 #if !defined RANDR
17792 #error RANDR not defined
17793 #endif
17794
17795 int
17796 main ()
17797 {
17798
17799 ;
17800 return 0;
17801 }
17802 _ACEOF
17803 if ac_fn_c_try_compile "$LINENO"; then :
17804 _EXT_CHECK=yes
17805 else
17806 _EXT_CHECK=no
17807 fi
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 CFLAGS="$SAVE_CFLAGS"
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17811 $as_echo_n "checking if RANDR is defined... " >&6; }
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17813 $as_echo "$_EXT_CHECK" >&6; }
17814 if test "$_EXT_CHECK" != no; then
17815 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17816 fi
17817
17818
17819
17820 SAVE_CFLAGS="$CFLAGS"
17821 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17824
17825 #include "xorg-server.h"
17826 #if !defined RENDER
17827 #error RENDER not defined
17828 #endif
17829
17830 int
17831 main ()
17832 {
17833
17834 ;
17835 return 0;
17836 }
17837 _ACEOF
17838 if ac_fn_c_try_compile "$LINENO"; then :
17839 _EXT_CHECK=yes
17840 else
17841 _EXT_CHECK=no
17842 fi
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 CFLAGS="$SAVE_CFLAGS"
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17846 $as_echo_n "checking if RENDER is defined... " >&6; }
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17848 $as_echo "$_EXT_CHECK" >&6; }
17849 if test "$_EXT_CHECK" != no; then
17850 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17851 fi
17852
17853
17854
17855 SAVE_CFLAGS="$CFLAGS"
17856 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17859
17860 #include "xorg-server.h"
17861 #if !defined XV
17862 #error XV not defined
17863 #endif
17864
17865 int
17866 main ()
17867 {
17868
17869 ;
17870 return 0;
17871 }
17872 _ACEOF
17873 if ac_fn_c_try_compile "$LINENO"; then :
17874 _EXT_CHECK=yes
17875 else
17876 _EXT_CHECK=no
17877 fi
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 CFLAGS="$SAVE_CFLAGS"
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17881 $as_echo_n "checking if XV is defined... " >&6; }
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17883 $as_echo "$_EXT_CHECK" >&6; }
17884 if test "$_EXT_CHECK" != no; then
17885 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17886 fi
17887
17888
17889
17890 SAVE_CFLAGS="$CFLAGS"
17891 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17894
17895 #include "xorg-server.h"
17896 #if !defined DPMSExtension
17897 #error DPMSExtension not defined
17898 #endif
17899
17900 int
17901 main ()
17902 {
17903
17904 ;
17905 return 0;
17906 }
17907 _ACEOF
17908 if ac_fn_c_try_compile "$LINENO"; then :
17909 _EXT_CHECK=yes
17910 else
17911 _EXT_CHECK=no
17912 fi
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914 CFLAGS="$SAVE_CFLAGS"
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17916 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17918 $as_echo "$_EXT_CHECK" >&6; }
17919 if test "$_EXT_CHECK" != no; then
17920 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17921 fi
17922
17923
17924 # Obtain compiler/linker options for the driver dependencies
17925
17926 pkg_failed=no
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17928 $as_echo_n "checking for XORG... " >&6; }
17929
17930 if test -n "$XORG_CFLAGS"; then
17931 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17932 elif test -n "$PKG_CONFIG"; then
17933 if test -n "$PKG_CONFIG" && \
17934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17935 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17936 ac_status=$?
17937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938 test $ac_status = 0; }; then
17939 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17940 else
17941 pkg_failed=yes
17942 fi
17943 else
17944 pkg_failed=untried
17945 fi
17946 if test -n "$XORG_LIBS"; then
17947 pkg_cv_XORG_LIBS="$XORG_LIBS"
17948 elif test -n "$PKG_CONFIG"; then
17949 if test -n "$PKG_CONFIG" && \
17950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17951 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17952 ac_status=$?
17953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17954 test $ac_status = 0; }; then
17955 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17956 else
17957 pkg_failed=yes
17958 fi
17959 else
17960 pkg_failed=untried
17961 fi
17962
17963
17964
17965 if test $pkg_failed = yes; then
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17967 $as_echo "no" >&6; }
17968
17969 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17970 _pkg_short_errors_supported=yes
17971 else
17972 _pkg_short_errors_supported=no
17973 fi
17974 if test $_pkg_short_errors_supported = yes; then
17975 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17976 else
17977 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17978 fi
17979 # Put the nasty error message in config.log where it belongs
17980 echo "$XORG_PKG_ERRORS" >&5
17981
17982 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
17983
17984 $XORG_PKG_ERRORS
17985
17986 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17987 installed software in a non-standard prefix.
17988
17989 Alternatively, you may set the environment variables XORG_CFLAGS
17990 and XORG_LIBS to avoid the need to call pkg-config.
17991 See the pkg-config man page for more details." "$LINENO" 5
17992
17993 elif test $pkg_failed = untried; then
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995 $as_echo "no" >&6; }
17996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17998 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17999 is in your PATH or set the PKG_CONFIG environment variable to the full
18000 path to pkg-config.
18001
18002 Alternatively, you may set the environment variables XORG_CFLAGS
18003 and XORG_LIBS to avoid the need to call pkg-config.
18004 See the pkg-config man page for more details.
18005
18006 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18007 See \`config.log' for more details" "$LINENO" 5; }
18008
18009 else
18010 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18011 XORG_LIBS=$pkg_cv_XORG_LIBS
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18013 $as_echo "yes" >&6; }
18014
18015 fi
18016
18017 pkg_failed=no
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18019 $as_echo_n "checking for XEXT... " >&6; }
18020
18021 if test -n "$XEXT_CFLAGS"; then
18022 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18023 elif test -n "$PKG_CONFIG"; then
18024 if test -n "$PKG_CONFIG" && \
18025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18026 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18027 ac_status=$?
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; }; then
18030 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18031 else
18032 pkg_failed=yes
18033 fi
18034 else
18035 pkg_failed=untried
18036 fi
18037 if test -n "$XEXT_LIBS"; then
18038 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18039 elif test -n "$PKG_CONFIG"; then
18040 if test -n "$PKG_CONFIG" && \
18041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18042 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18043 ac_status=$?
18044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18045 test $ac_status = 0; }; then
18046 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18047 else
18048 pkg_failed=yes
18049 fi
18050 else
18051 pkg_failed=untried
18052 fi
18053
18054
18055
18056 if test $pkg_failed = yes; then
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18058 $as_echo "no" >&6; }
18059
18060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18061 _pkg_short_errors_supported=yes
18062 else
18063 _pkg_short_errors_supported=no
18064 fi
18065 if test $_pkg_short_errors_supported = yes; then
18066 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
18067 else
18068 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
18069 fi
18070 # Put the nasty error message in config.log where it belongs
18071 echo "$XEXT_PKG_ERRORS" >&5
18072
18073 HAVE_XEXTPROTO_71="no"
18074 elif test $pkg_failed = untried; then
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076 $as_echo "no" >&6; }
18077 HAVE_XEXTPROTO_71="no"
18078 else
18079 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18080 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18082 $as_echo "yes" >&6; }
18083 HAVE_XEXTPROTO_71="yes";
18084 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18085
18086 fi
18087 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18088 HAVE_XEXTPROTO_71_TRUE=
18089 HAVE_XEXTPROTO_71_FALSE='#'
18090 else
18091 HAVE_XEXTPROTO_71_TRUE='#'
18092 HAVE_XEXTPROTO_71_FALSE=
18093 fi
18094
18095 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18096
18097 # Checks for libraries.
18098
18099
18100 if test "$DRI" != no; then
18101 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18103 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18104 if eval \${$as_ac_File+:} false; then :
18105 $as_echo_n "(cached) " >&6
18106 else
18107 test "$cross_compiling" = yes &&
18108 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18109 if test -r "${sdkdir}/dri.h"; then
18110 eval "$as_ac_File=yes"
18111 else
18112 eval "$as_ac_File=no"
18113 fi
18114 fi
18115 eval ac_res=\$$as_ac_File
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18117 $as_echo "$ac_res" >&6; }
18118 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18119 have_dri_h="yes"
18120 else
18121 have_dri_h="no"
18122 fi
18123
18124 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18126 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18127 if eval \${$as_ac_File+:} false; then :
18128 $as_echo_n "(cached) " >&6
18129 else
18130 test "$cross_compiling" = yes &&
18131 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18132 if test -r "${sdkdir}/sarea.h"; then
18133 eval "$as_ac_File=yes"
18134 else
18135 eval "$as_ac_File=no"
18136 fi
18137 fi
18138 eval ac_res=\$$as_ac_File
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18140 $as_echo "$ac_res" >&6; }
18141 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18142 have_sarea_h="yes"
18143 else
18144 have_sarea_h="no"
18145 fi
18146
18147 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18149 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18150 if eval \${$as_ac_File+:} false; then :
18151 $as_echo_n "(cached) " >&6
18152 else
18153 test "$cross_compiling" = yes &&
18154 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18155 if test -r "${sdkdir}/dristruct.h"; then
18156 eval "$as_ac_File=yes"
18157 else
18158 eval "$as_ac_File=no"
18159 fi
18160 fi
18161 eval ac_res=\$$as_ac_File
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18163 $as_echo "$ac_res" >&6; }
18164 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18165 have_dristruct_h="yes"
18166 else
18167 have_dristruct_h="no"
18168 fi
18169
18170 fi
18171
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18173 $as_echo_n "checking whether to include DRI support... " >&6; }
18174 if test x$DRI = xauto; then
18175 if test "$have_dri_h" = yes -a \
18176 "$have_sarea_h" = yes -a \
18177 "$have_dristruct_h" = yes; then
18178 DRI="yes"
18179 else
18180 DRI="no"
18181 fi
18182 fi
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18184 $as_echo "$DRI" >&6; }
18185
18186 if test x$DRI = xyes; then
18187 DRI_TRUE=
18188 DRI_FALSE='#'
18189 else
18190 DRI_TRUE='#'
18191 DRI_FALSE=
18192 fi
18193
18194 if test "$DRI" = yes; then
18195
18196 pkg_failed=no
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18198 $as_echo_n "checking for DRI... " >&6; }
18199
18200 if test -n "$DRI_CFLAGS"; then
18201 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18202 elif test -n "$PKG_CONFIG"; then
18203 if test -n "$PKG_CONFIG" && \
18204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18205 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18206 ac_status=$?
18207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18208 test $ac_status = 0; }; then
18209 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18210 else
18211 pkg_failed=yes
18212 fi
18213 else
18214 pkg_failed=untried
18215 fi
18216 if test -n "$DRI_LIBS"; then
18217 pkg_cv_DRI_LIBS="$DRI_LIBS"
18218 elif test -n "$PKG_CONFIG"; then
18219 if test -n "$PKG_CONFIG" && \
18220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18221 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18222 ac_status=$?
18223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224 test $ac_status = 0; }; then
18225 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18226 else
18227 pkg_failed=yes
18228 fi
18229 else
18230 pkg_failed=untried
18231 fi
18232
18233
18234
18235 if test $pkg_failed = yes; then
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18237 $as_echo "no" >&6; }
18238
18239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18240 _pkg_short_errors_supported=yes
18241 else
18242 _pkg_short_errors_supported=no
18243 fi
18244 if test $_pkg_short_errors_supported = yes; then
18245 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18246 else
18247 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18248 fi
18249 # Put the nasty error message in config.log where it belongs
18250 echo "$DRI_PKG_ERRORS" >&5
18251
18252 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18253
18254 $DRI_PKG_ERRORS
18255
18256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18257 installed software in a non-standard prefix.
18258
18259 Alternatively, you may set the environment variables DRI_CFLAGS
18260 and DRI_LIBS to avoid the need to call pkg-config.
18261 See the pkg-config man page for more details." "$LINENO" 5
18262
18263 elif test $pkg_failed = untried; then
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18265 $as_echo "no" >&6; }
18266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18268 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18269 is in your PATH or set the PKG_CONFIG environment variable to the full
18270 path to pkg-config.
18271
18272 Alternatively, you may set the environment variables DRI_CFLAGS
18273 and DRI_LIBS to avoid the need to call pkg-config.
18274 See the pkg-config man page for more details.
18275
18276 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18277 See \`config.log' for more details" "$LINENO" 5; }
18278
18279 else
18280 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18281 DRI_LIBS=$pkg_cv_DRI_LIBS
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18283 $as_echo "yes" >&6; }
18284
18285 fi
18286
18287 $as_echo "#define SAVAGEDRI 1" >>confdefs.h
18288
18289
18290 $as_echo "#define SAVAGEDRI_DEVEL 1" >>confdefs.h
18291
18292 fi
18293
18294 # Check whether --enable-xaa was given.
18295 if test "${enable_xaa+set}" = set; then :
18296 enableval=$enable_xaa; XAA="$enableval"
18297 else
18298 XAA=auto
18299 fi
18300
18301 if test "x$XAA" != xno; then
18302 save_CFLAGS=$CFLAGS
18303 save_CPPFLAGS=$CPPFLAGS
18304 CFLAGS=$XORG_CFLAGS
18305 CPPFLAGS="$XORG_CFLAGS"
18306 for ac_header in xaa.h
18307 do :
18308 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18309 if test "x$ac_cv_header_xaa_h" = xyes; then :
18310 cat >>confdefs.h <<_ACEOF
18311 #define HAVE_XAA_H 1
18312 _ACEOF
18313 XAA=yes
18314 else
18315 XAA=no
18316 fi
18317
18318 done
18319
18320 CFLAGS=$save_CFLAGS
18321 CPPFLAGS=$save_CPPFLAGS
18322 fi
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18324 $as_echo_n "checking whether to include XAA support... " >&6; }
18325 if test "x$XAA" = xyes; then
18326 XAA_TRUE=
18327 XAA_FALSE='#'
18328 else
18329 XAA_TRUE='#'
18330 XAA_FALSE=
18331 fi
18332
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18334 $as_echo "$XAA" >&6; }
18335
18336 save_CFLAGS="$CFLAGS"
18337 CFLAGS="$XORG_CFLAGS"
18338 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18339 "
18340 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18341 XSERVER_LIBPCIACCESS=yes
18342 else
18343 XSERVER_LIBPCIACCESS=no
18344 fi
18345
18346 ac_fn_c_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include \"xf86xv.h\"
18347 "
18348 if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes; then :
18349
18350 $as_echo "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h
18351
18352 fi
18353
18354 CFLAGS="$save_CFLAGS"
18355
18356 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18357
18358 pkg_failed=no
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18360 $as_echo_n "checking for PCIACCESS... " >&6; }
18361
18362 if test -n "$PCIACCESS_CFLAGS"; then
18363 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18364 elif test -n "$PKG_CONFIG"; then
18365 if test -n "$PKG_CONFIG" && \
18366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
18367 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
18368 ac_status=$?
18369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18370 test $ac_status = 0; }; then
18371 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
18372 else
18373 pkg_failed=yes
18374 fi
18375 else
18376 pkg_failed=untried
18377 fi
18378 if test -n "$PCIACCESS_LIBS"; then
18379 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18380 elif test -n "$PKG_CONFIG"; then
18381 if test -n "$PKG_CONFIG" && \
18382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
18383 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
18384 ac_status=$?
18385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18386 test $ac_status = 0; }; then
18387 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
18388 else
18389 pkg_failed=yes
18390 fi
18391 else
18392 pkg_failed=untried
18393 fi
18394
18395
18396
18397 if test $pkg_failed = yes; then
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18399 $as_echo "no" >&6; }
18400
18401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18402 _pkg_short_errors_supported=yes
18403 else
18404 _pkg_short_errors_supported=no
18405 fi
18406 if test $_pkg_short_errors_supported = yes; then
18407 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
18408 else
18409 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
18410 fi
18411 # Put the nasty error message in config.log where it belongs
18412 echo "$PCIACCESS_PKG_ERRORS" >&5
18413
18414 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
18415
18416 $PCIACCESS_PKG_ERRORS
18417
18418 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18419 installed software in a non-standard prefix.
18420
18421 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18422 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18423 See the pkg-config man page for more details." "$LINENO" 5
18424
18425 elif test $pkg_failed = untried; then
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427 $as_echo "no" >&6; }
18428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18430 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18431 is in your PATH or set the PKG_CONFIG environment variable to the full
18432 path to pkg-config.
18433
18434 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18435 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18436 See the pkg-config man page for more details.
18437
18438 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18439 See \`config.log' for more details" "$LINENO" 5; }
18440
18441 else
18442 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18443 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18445 $as_echo "yes" >&6; }
18446
18447 fi
18448 fi
18449 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18450 XSERVER_LIBPCIACCESS_TRUE=
18451 XSERVER_LIBPCIACCESS_FALSE='#'
18452 else
18453 XSERVER_LIBPCIACCESS_TRUE='#'
18454 XSERVER_LIBPCIACCESS_FALSE=
18455 fi
18456
18457
18458
18459
18460 DRIVER_NAME=savage
18461
18462
18463 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18464
18465 cat >confcache <<\_ACEOF
18466 # This file is a shell script that caches the results of configure
18467 # tests run on this system so they can be shared between configure
18468 # scripts and configure runs, see configure's option --config-cache.
18469 # It is not useful on other systems. If it contains results you don't
18470 # want to keep, you may remove or edit it.
18471 #
18472 # config.status only pays attention to the cache file if you give it
18473 # the --recheck option to rerun configure.
18474 #
18475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18477 # following values.
18478
18479 _ACEOF
18480
18481 # The following way of writing the cache mishandles newlines in values,
18482 # but we know of no workaround that is simple, portable, and efficient.
18483 # So, we kill variables containing newlines.
18484 # Ultrix sh set writes to stderr and can't be redirected directly,
18485 # and sets the high bit in the cache file unless we assign to the vars.
18486 (
18487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18488 eval ac_val=\$$ac_var
18489 case $ac_val in #(
18490 *${as_nl}*)
18491 case $ac_var in #(
18492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18494 esac
18495 case $ac_var in #(
18496 _ | IFS | as_nl) ;; #(
18497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18498 *) { eval $ac_var=; unset $ac_var;} ;;
18499 esac ;;
18500 esac
18501 done
18502
18503 (set) 2>&1 |
18504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18505 *${as_nl}ac_space=\ *)
18506 # `set' does not quote correctly, so add quotes: double-quote
18507 # substitution turns \\\\ into \\, and sed turns \\ into \.
18508 sed -n \
18509 "s/'/'\\\\''/g;
18510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18511 ;; #(
18512 *)
18513 # `set' quotes correctly as required by POSIX, so do not add quotes.
18514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18515 ;;
18516 esac |
18517 sort
18518 ) |
18519 sed '
18520 /^ac_cv_env_/b end
18521 t clear
18522 :clear
18523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18524 t end
18525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18526 :end' >>confcache
18527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18528 if test -w "$cache_file"; then
18529 if test "x$cache_file" != "x/dev/null"; then
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18531 $as_echo "$as_me: updating cache $cache_file" >&6;}
18532 if test ! -f "$cache_file" || test -h "$cache_file"; then
18533 cat confcache >"$cache_file"
18534 else
18535 case $cache_file in #(
18536 */* | ?:*)
18537 mv -f confcache "$cache_file"$$ &&
18538 mv -f "$cache_file"$$ "$cache_file" ;; #(
18539 *)
18540 mv -f confcache "$cache_file" ;;
18541 esac
18542 fi
18543 fi
18544 else
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18546 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18547 fi
18548 fi
18549 rm -f confcache
18550
18551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18552 # Let make expand exec_prefix.
18553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18554
18555 DEFS=-DHAVE_CONFIG_H
18556
18557 ac_libobjs=
18558 ac_ltlibobjs=
18559 U=
18560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18561 # 1. Remove the extension, and $U if already installed.
18562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18563 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18565 # will be set to the directory where LIBOBJS objects are built.
18566 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18567 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18568 done
18569 LIBOBJS=$ac_libobjs
18570
18571 LTLIBOBJS=$ac_ltlibobjs
18572
18573
18574 if test -n "$EXEEXT"; then
18575 am__EXEEXT_TRUE=
18576 am__EXEEXT_FALSE='#'
18577 else
18578 am__EXEEXT_TRUE='#'
18579 am__EXEEXT_FALSE=
18580 fi
18581
18582 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18583 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18585 fi
18586 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18587 as_fn_error $? "conditional \"AMDEP\" was never defined.
18588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18589 fi
18590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18591 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18593 fi
18594 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18595 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18597 fi
18598 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18599 as_fn_error $? "conditional \"DRI\" was never defined.
18600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18601 fi
18602 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18603 as_fn_error $? "conditional \"XAA\" was never defined.
18604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18605 fi
18606 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18607 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18609 fi
18610
18611 : "${CONFIG_STATUS=./config.status}"
18612 ac_write_fail=0
18613 ac_clean_files_save=$ac_clean_files
18614 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18616 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18617 as_write_fail=0
18618 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18619 #! $SHELL
18620 # Generated by $as_me.
18621 # Run this file to recreate the current configuration.
18622 # Compiler output produced by configure, useful for debugging
18623 # configure, is in config.log if it exists.
18624
18625 debug=false
18626 ac_cs_recheck=false
18627 ac_cs_silent=false
18628
18629 SHELL=\${CONFIG_SHELL-$SHELL}
18630 export SHELL
18631 _ASEOF
18632 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18633 ## -------------------- ##
18634 ## M4sh Initialization. ##
18635 ## -------------------- ##
18636
18637 # Be more Bourne compatible
18638 DUALCASE=1; export DUALCASE # for MKS sh
18639 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18640 emulate sh
18641 NULLCMD=:
18642 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18643 # is contrary to our usage. Disable this feature.
18644 alias -g '${1+"$@"}'='"$@"'
18645 setopt NO_GLOB_SUBST
18646 else
18647 case `(set -o) 2>/dev/null` in #(
18648 *posix*) :
18649 set -o posix ;; #(
18650 *) :
18651 ;;
18652 esac
18653 fi
18654
18655
18656 as_nl='
18657 '
18658 export as_nl
18659 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18660 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18663 # Prefer a ksh shell builtin over an external printf program on Solaris,
18664 # but without wasting forks for bash or zsh.
18665 if test -z "$BASH_VERSION$ZSH_VERSION" \
18666 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18667 as_echo='print -r --'
18668 as_echo_n='print -rn --'
18669 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18670 as_echo='printf %s\n'
18671 as_echo_n='printf %s'
18672 else
18673 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18674 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18675 as_echo_n='/usr/ucb/echo -n'
18676 else
18677 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18678 as_echo_n_body='eval
18679 arg=$1;
18680 case $arg in #(
18681 *"$as_nl"*)
18682 expr "X$arg" : "X\\(.*\\)$as_nl";
18683 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18684 esac;
18685 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18686 '
18687 export as_echo_n_body
18688 as_echo_n='sh -c $as_echo_n_body as_echo'
18689 fi
18690 export as_echo_body
18691 as_echo='sh -c $as_echo_body as_echo'
18692 fi
18693
18694 # The user is always right.
18695 if test "${PATH_SEPARATOR+set}" != set; then
18696 PATH_SEPARATOR=:
18697 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18698 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18699 PATH_SEPARATOR=';'
18700 }
18701 fi
18702
18703
18704 # IFS
18705 # We need space, tab and new line, in precisely that order. Quoting is
18706 # there to prevent editors from complaining about space-tab.
18707 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18708 # splitting by setting IFS to empty value.)
18709 IFS=" "" $as_nl"
18710
18711 # Find who we are. Look in the path if we contain no directory separator.
18712 as_myself=
18713 case $0 in #((
18714 *[\\/]* ) as_myself=$0 ;;
18715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18716 for as_dir in $PATH
18717 do
18718 IFS=$as_save_IFS
18719 test -z "$as_dir" && as_dir=.
18720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18721 done
18722 IFS=$as_save_IFS
18723
18724 ;;
18725 esac
18726 # We did not find ourselves, most probably we were run as `sh COMMAND'
18727 # in which case we are not to be found in the path.
18728 if test "x$as_myself" = x; then
18729 as_myself=$0
18730 fi
18731 if test ! -f "$as_myself"; then
18732 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18733 exit 1
18734 fi
18735
18736 # Unset variables that we do not need and which cause bugs (e.g. in
18737 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18738 # suppresses any "Segmentation fault" message there. '((' could
18739 # trigger a bug in pdksh 5.2.14.
18740 for as_var in BASH_ENV ENV MAIL MAILPATH
18741 do eval test x\${$as_var+set} = xset \
18742 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18743 done
18744 PS1='$ '
18745 PS2='> '
18746 PS4='+ '
18747
18748 # NLS nuisances.
18749 LC_ALL=C
18750 export LC_ALL
18751 LANGUAGE=C
18752 export LANGUAGE
18753
18754 # CDPATH.
18755 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18756
18757
18758 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18759 # ----------------------------------------
18760 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18761 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18762 # script with STATUS, using 1 if that was 0.
18763 as_fn_error ()
18764 {
18765 as_status=$1; test $as_status -eq 0 && as_status=1
18766 if test "$4"; then
18767 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18768 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18769 fi
18770 $as_echo "$as_me: error: $2" >&2
18771 as_fn_exit $as_status
18772 } # as_fn_error
18773
18774
18775 # as_fn_set_status STATUS
18776 # -----------------------
18777 # Set $? to STATUS, without forking.
18778 as_fn_set_status ()
18779 {
18780 return $1
18781 } # as_fn_set_status
18782
18783 # as_fn_exit STATUS
18784 # -----------------
18785 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18786 as_fn_exit ()
18787 {
18788 set +e
18789 as_fn_set_status $1
18790 exit $1
18791 } # as_fn_exit
18792
18793 # as_fn_unset VAR
18794 # ---------------
18795 # Portably unset VAR.
18796 as_fn_unset ()
18797 {
18798 { eval $1=; unset $1;}
18799 }
18800 as_unset=as_fn_unset
18801 # as_fn_append VAR VALUE
18802 # ----------------------
18803 # Append the text in VALUE to the end of the definition contained in VAR. Take
18804 # advantage of any shell optimizations that allow amortized linear growth over
18805 # repeated appends, instead of the typical quadratic growth present in naive
18806 # implementations.
18807 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18808 eval 'as_fn_append ()
18809 {
18810 eval $1+=\$2
18811 }'
18812 else
18813 as_fn_append ()
18814 {
18815 eval $1=\$$1\$2
18816 }
18817 fi # as_fn_append
18818
18819 # as_fn_arith ARG...
18820 # ------------------
18821 # Perform arithmetic evaluation on the ARGs, and store the result in the
18822 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18823 # must be portable across $(()) and expr.
18824 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18825 eval 'as_fn_arith ()
18826 {
18827 as_val=$(( $* ))
18828 }'
18829 else
18830 as_fn_arith ()
18831 {
18832 as_val=`expr "$@" || test $? -eq 1`
18833 }
18834 fi # as_fn_arith
18835
18836
18837 if expr a : '\(a\)' >/dev/null 2>&1 &&
18838 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18839 as_expr=expr
18840 else
18841 as_expr=false
18842 fi
18843
18844 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18845 as_basename=basename
18846 else
18847 as_basename=false
18848 fi
18849
18850 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18851 as_dirname=dirname
18852 else
18853 as_dirname=false
18854 fi
18855
18856 as_me=`$as_basename -- "$0" ||
18857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18858 X"$0" : 'X\(//\)$' \| \
18859 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18860 $as_echo X/"$0" |
18861 sed '/^.*\/\([^/][^/]*\)\/*$/{
18862 s//\1/
18863 q
18864 }
18865 /^X\/\(\/\/\)$/{
18866 s//\1/
18867 q
18868 }
18869 /^X\/\(\/\).*/{
18870 s//\1/
18871 q
18872 }
18873 s/.*/./; q'`
18874
18875 # Avoid depending upon Character Ranges.
18876 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18879 as_cr_digits='0123456789'
18880 as_cr_alnum=$as_cr_Letters$as_cr_digits
18881
18882 ECHO_C= ECHO_N= ECHO_T=
18883 case `echo -n x` in #(((((
18884 -n*)
18885 case `echo 'xy\c'` in
18886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18887 xy) ECHO_C='\c';;
18888 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18889 ECHO_T=' ';;
18890 esac;;
18891 *)
18892 ECHO_N='-n';;
18893 esac
18894
18895 rm -f conf$$ conf$$.exe conf$$.file
18896 if test -d conf$$.dir; then
18897 rm -f conf$$.dir/conf$$.file
18898 else
18899 rm -f conf$$.dir
18900 mkdir conf$$.dir 2>/dev/null
18901 fi
18902 if (echo >conf$$.file) 2>/dev/null; then
18903 if ln -s conf$$.file conf$$ 2>/dev/null; then
18904 as_ln_s='ln -s'
18905 # ... but there are two gotchas:
18906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18908 # In both cases, we have to default to `cp -p'.
18909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18910 as_ln_s='cp -p'
18911 elif ln conf$$.file conf$$ 2>/dev/null; then
18912 as_ln_s=ln
18913 else
18914 as_ln_s='cp -p'
18915 fi
18916 else
18917 as_ln_s='cp -p'
18918 fi
18919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18920 rmdir conf$$.dir 2>/dev/null
18921
18922
18923 # as_fn_mkdir_p
18924 # -------------
18925 # Create "$as_dir" as a directory, including parents if necessary.
18926 as_fn_mkdir_p ()
18927 {
18928
18929 case $as_dir in #(
18930 -*) as_dir=./$as_dir;;
18931 esac
18932 test -d "$as_dir" || eval $as_mkdir_p || {
18933 as_dirs=
18934 while :; do
18935 case $as_dir in #(
18936 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18937 *) as_qdir=$as_dir;;
18938 esac
18939 as_dirs="'$as_qdir' $as_dirs"
18940 as_dir=`$as_dirname -- "$as_dir" ||
18941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18942 X"$as_dir" : 'X\(//\)[^/]' \| \
18943 X"$as_dir" : 'X\(//\)$' \| \
18944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18945 $as_echo X"$as_dir" |
18946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18947 s//\1/
18948 q
18949 }
18950 /^X\(\/\/\)[^/].*/{
18951 s//\1/
18952 q
18953 }
18954 /^X\(\/\/\)$/{
18955 s//\1/
18956 q
18957 }
18958 /^X\(\/\).*/{
18959 s//\1/
18960 q
18961 }
18962 s/.*/./; q'`
18963 test -d "$as_dir" && break
18964 done
18965 test -z "$as_dirs" || eval "mkdir $as_dirs"
18966 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18967
18968
18969 } # as_fn_mkdir_p
18970 if mkdir -p . 2>/dev/null; then
18971 as_mkdir_p='mkdir -p "$as_dir"'
18972 else
18973 test -d ./-p && rmdir ./-p
18974 as_mkdir_p=false
18975 fi
18976
18977 if test -x / >/dev/null 2>&1; then
18978 as_test_x='test -x'
18979 else
18980 if ls -dL / >/dev/null 2>&1; then
18981 as_ls_L_option=L
18982 else
18983 as_ls_L_option=
18984 fi
18985 as_test_x='
18986 eval sh -c '\''
18987 if test -d "$1"; then
18988 test -d "$1/.";
18989 else
18990 case $1 in #(
18991 -*)set "./$1";;
18992 esac;
18993 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18994 ???[sx]*):;;*)false;;esac;fi
18995 '\'' sh
18996 '
18997 fi
18998 as_executable_p=$as_test_x
18999
19000 # Sed expression to map a string onto a valid CPP name.
19001 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19002
19003 # Sed expression to map a string onto a valid variable name.
19004 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19005
19006
19007 exec 6>&1
19008 ## ----------------------------------- ##
19009 ## Main body of $CONFIG_STATUS script. ##
19010 ## ----------------------------------- ##
19011 _ASEOF
19012 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19013
19014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19015 # Save the log message, to keep $0 and so on meaningful, and to
19016 # report actual input values of CONFIG_FILES etc. instead of their
19017 # values after options handling.
19018 ac_log="
19019 This file was extended by xf86-video-savage $as_me 2.3.6, which was
19020 generated by GNU Autoconf 2.68. Invocation command line was
19021
19022 CONFIG_FILES = $CONFIG_FILES
19023 CONFIG_HEADERS = $CONFIG_HEADERS
19024 CONFIG_LINKS = $CONFIG_LINKS
19025 CONFIG_COMMANDS = $CONFIG_COMMANDS
19026 $ $0 $@
19027
19028 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19029 "
19030
19031 _ACEOF
19032
19033 case $ac_config_files in *"
19034 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19035 esac
19036
19037 case $ac_config_headers in *"
19038 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19039 esac
19040
19041
19042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19043 # Files that config.status was made for.
19044 config_files="$ac_config_files"
19045 config_headers="$ac_config_headers"
19046 config_commands="$ac_config_commands"
19047
19048 _ACEOF
19049
19050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051 ac_cs_usage="\
19052 \`$as_me' instantiates files and other configuration actions
19053 from templates according to the current configuration. Unless the files
19054 and actions are specified as TAGs, all are instantiated by default.
19055
19056 Usage: $0 [OPTION]... [TAG]...
19057
19058 -h, --help print this help, then exit
19059 -V, --version print version number and configuration settings, then exit
19060 --config print configuration, then exit
19061 -q, --quiet, --silent
19062 do not print progress messages
19063 -d, --debug don't remove temporary files
19064 --recheck update $as_me by reconfiguring in the same conditions
19065 --file=FILE[:TEMPLATE]
19066 instantiate the configuration file FILE
19067 --header=FILE[:TEMPLATE]
19068 instantiate the configuration header FILE
19069
19070 Configuration files:
19071 $config_files
19072
19073 Configuration headers:
19074 $config_headers
19075
19076 Configuration commands:
19077 $config_commands
19078
19079 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19080
19081 _ACEOF
19082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19083 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19084 ac_cs_version="\\
19085 xf86-video-savage config.status 2.3.6
19086 configured by $0, generated by GNU Autoconf 2.68,
19087 with options \\"\$ac_cs_config\\"
19088
19089 Copyright (C) 2010 Free Software Foundation, Inc.
19090 This config.status script is free software; the Free Software Foundation
19091 gives unlimited permission to copy, distribute and modify it."
19092
19093 ac_pwd='$ac_pwd'
19094 srcdir='$srcdir'
19095 INSTALL='$INSTALL'
19096 MKDIR_P='$MKDIR_P'
19097 AWK='$AWK'
19098 test -n "\$AWK" || AWK=awk
19099 _ACEOF
19100
19101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19102 # The default lists apply if the user does not specify any file.
19103 ac_need_defaults=:
19104 while test $# != 0
19105 do
19106 case $1 in
19107 --*=?*)
19108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19110 ac_shift=:
19111 ;;
19112 --*=)
19113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19114 ac_optarg=
19115 ac_shift=:
19116 ;;
19117 *)
19118 ac_option=$1
19119 ac_optarg=$2
19120 ac_shift=shift
19121 ;;
19122 esac
19123
19124 case $ac_option in
19125 # Handling of the options.
19126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19127 ac_cs_recheck=: ;;
19128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19129 $as_echo "$ac_cs_version"; exit ;;
19130 --config | --confi | --conf | --con | --co | --c )
19131 $as_echo "$ac_cs_config"; exit ;;
19132 --debug | --debu | --deb | --de | --d | -d )
19133 debug=: ;;
19134 --file | --fil | --fi | --f )
19135 $ac_shift
19136 case $ac_optarg in
19137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19138 '') as_fn_error $? "missing file argument" ;;
19139 esac
19140 as_fn_append CONFIG_FILES " '$ac_optarg'"
19141 ac_need_defaults=false;;
19142 --header | --heade | --head | --hea )
19143 $ac_shift
19144 case $ac_optarg in
19145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19146 esac
19147 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19148 ac_need_defaults=false;;
19149 --he | --h)
19150 # Conflict between --help and --header
19151 as_fn_error $? "ambiguous option: \`$1'
19152 Try \`$0 --help' for more information.";;
19153 --help | --hel | -h )
19154 $as_echo "$ac_cs_usage"; exit ;;
19155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19157 ac_cs_silent=: ;;
19158
19159 # This is an error.
19160 -*) as_fn_error $? "unrecognized option: \`$1'
19161 Try \`$0 --help' for more information." ;;
19162
19163 *) as_fn_append ac_config_targets " $1"
19164 ac_need_defaults=false ;;
19165
19166 esac
19167 shift
19168 done
19169
19170 ac_configure_extra_args=
19171
19172 if $ac_cs_silent; then
19173 exec 6>/dev/null
19174 ac_configure_extra_args="$ac_configure_extra_args --silent"
19175 fi
19176
19177 _ACEOF
19178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19179 if \$ac_cs_recheck; then
19180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19181 shift
19182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19183 CONFIG_SHELL='$SHELL'
19184 export CONFIG_SHELL
19185 exec "\$@"
19186 fi
19187
19188 _ACEOF
19189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19190 exec 5>>config.log
19191 {
19192 echo
19193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19194 ## Running $as_me. ##
19195 _ASBOX
19196 $as_echo "$ac_log"
19197 } >&5
19198
19199 _ACEOF
19200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19201 #
19202 # INIT-COMMANDS
19203 #
19204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19205
19206
19207 # The HP-UX ksh and POSIX shell print the target directory to stdout
19208 # if CDPATH is set.
19209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19210
19211 sed_quote_subst='$sed_quote_subst'
19212 double_quote_subst='$double_quote_subst'
19213 delay_variable_subst='$delay_variable_subst'
19214 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19215 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19216 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19217 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19218 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19219 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19220 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19221 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19222 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19223 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19224 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19225 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19226 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19227 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19228 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19229 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19230 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19231 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19232 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19233 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19234 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19235 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19236 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19237 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19238 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19239 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19240 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19241 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19242 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19243 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19244 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19245 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19246 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19247 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19248 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19249 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19250 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19251 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19252 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19253 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19254 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19255 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19256 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19257 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19258 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19259 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19260 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19261 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19262 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19263 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19264 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19265 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19266 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19267 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19268 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19269 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19270 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"`'
19271 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19272 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19273 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19274 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19275 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19276 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19277 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19278 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19279 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19280 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19281 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19282 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19283 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19284 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19285 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19286 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19287 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19288 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19289 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19290 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19291 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19292 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19293 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19294 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19295 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19296 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19297 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19298 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19299 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19300 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19301 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19302 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19303 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19304 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19305 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19306 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19307 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19308 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19309 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19310 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19311 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19312 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19313 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19314 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19315 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19316 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19317 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19318 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19319 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19320 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19321 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19322 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19323 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19324 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19325 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19326 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19327 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19328 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19329 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19330 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19331 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19332 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19333 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19334 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19335 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19336 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19337 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19338 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19339 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19340 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19341 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19342 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19343 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19344
19345 LTCC='$LTCC'
19346 LTCFLAGS='$LTCFLAGS'
19347 compiler='$compiler_DEFAULT'
19348
19349 # A function that is used when there is no print builtin or printf.
19350 func_fallback_echo ()
19351 {
19352 eval 'cat <<_LTECHO_EOF
19353 \$1
19354 _LTECHO_EOF'
19355 }
19356
19357 # Quote evaled strings.
19358 for var in SHELL \
19359 ECHO \
19360 PATH_SEPARATOR \
19361 SED \
19362 GREP \
19363 EGREP \
19364 FGREP \
19365 LD \
19366 NM \
19367 LN_S \
19368 lt_SP2NL \
19369 lt_NL2SP \
19370 reload_flag \
19371 OBJDUMP \
19372 deplibs_check_method \
19373 file_magic_cmd \
19374 file_magic_glob \
19375 want_nocaseglob \
19376 DLLTOOL \
19377 sharedlib_from_linklib_cmd \
19378 AR \
19379 AR_FLAGS \
19380 archiver_list_spec \
19381 STRIP \
19382 RANLIB \
19383 CC \
19384 CFLAGS \
19385 compiler \
19386 lt_cv_sys_global_symbol_pipe \
19387 lt_cv_sys_global_symbol_to_cdecl \
19388 lt_cv_sys_global_symbol_to_c_name_address \
19389 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19390 nm_file_list_spec \
19391 lt_prog_compiler_no_builtin_flag \
19392 lt_prog_compiler_pic \
19393 lt_prog_compiler_wl \
19394 lt_prog_compiler_static \
19395 lt_cv_prog_compiler_c_o \
19396 need_locks \
19397 MANIFEST_TOOL \
19398 DSYMUTIL \
19399 NMEDIT \
19400 LIPO \
19401 OTOOL \
19402 OTOOL64 \
19403 shrext_cmds \
19404 export_dynamic_flag_spec \
19405 whole_archive_flag_spec \
19406 compiler_needs_object \
19407 with_gnu_ld \
19408 allow_undefined_flag \
19409 no_undefined_flag \
19410 hardcode_libdir_flag_spec \
19411 hardcode_libdir_separator \
19412 exclude_expsyms \
19413 include_expsyms \
19414 file_list_spec \
19415 variables_saved_for_relink \
19416 libname_spec \
19417 library_names_spec \
19418 soname_spec \
19419 install_override_mode \
19420 finish_eval \
19421 old_striplib \
19422 striplib; do
19423 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19424 *[\\\\\\\`\\"\\\$]*)
19425 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19426 ;;
19427 *)
19428 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19429 ;;
19430 esac
19431 done
19432
19433 # Double-quote double-evaled strings.
19434 for var in reload_cmds \
19435 old_postinstall_cmds \
19436 old_postuninstall_cmds \
19437 old_archive_cmds \
19438 extract_expsyms_cmds \
19439 old_archive_from_new_cmds \
19440 old_archive_from_expsyms_cmds \
19441 archive_cmds \
19442 archive_expsym_cmds \
19443 module_cmds \
19444 module_expsym_cmds \
19445 export_symbols_cmds \
19446 prelink_cmds \
19447 postlink_cmds \
19448 postinstall_cmds \
19449 postuninstall_cmds \
19450 finish_cmds \
19451 sys_lib_search_path_spec \
19452 sys_lib_dlsearch_path_spec; do
19453 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19454 *[\\\\\\\`\\"\\\$]*)
19455 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19456 ;;
19457 *)
19458 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19459 ;;
19460 esac
19461 done
19462
19463 ac_aux_dir='$ac_aux_dir'
19464 xsi_shell='$xsi_shell'
19465 lt_shell_append='$lt_shell_append'
19466
19467 # See if we are running on zsh, and set the options which allow our
19468 # commands through without removal of \ escapes INIT.
19469 if test -n "\${ZSH_VERSION+set}" ; then
19470 setopt NO_GLOB_SUBST
19471 fi
19472
19473
19474 PACKAGE='$PACKAGE'
19475 VERSION='$VERSION'
19476 TIMESTAMP='$TIMESTAMP'
19477 RM='$RM'
19478 ofile='$ofile'
19479
19480
19481
19482
19483 _ACEOF
19484
19485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19486
19487 # Handling of arguments.
19488 for ac_config_target in $ac_config_targets
19489 do
19490 case $ac_config_target in
19491 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19492 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19493 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19494 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19495 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19496 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19497
19498 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19499 esac
19500 done
19501
19502
19503 # If the user did not use the arguments to specify the items to instantiate,
19504 # then the envvar interface is used. Set only those that are not.
19505 # We use the long form for the default assignment because of an extremely
19506 # bizarre bug on SunOS 4.1.3.
19507 if $ac_need_defaults; then
19508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19511 fi
19512
19513 # Have a temporary directory for convenience. Make it in the build tree
19514 # simply because there is no reason against having it here, and in addition,
19515 # creating and moving files from /tmp can sometimes cause problems.
19516 # Hook for its removal unless debugging.
19517 # Note that there is a small window in which the directory will not be cleaned:
19518 # after its creation but before its name has been assigned to `$tmp'.
19519 $debug ||
19520 {
19521 tmp= ac_tmp=
19522 trap 'exit_status=$?
19523 : "${ac_tmp:=$tmp}"
19524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19525 ' 0
19526 trap 'as_fn_exit 1' 1 2 13 15
19527 }
19528 # Create a (secure) tmp directory for tmp files.
19529
19530 {
19531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19532 test -d "$tmp"
19533 } ||
19534 {
19535 tmp=./conf$$-$RANDOM
19536 (umask 077 && mkdir "$tmp")
19537 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19538 ac_tmp=$tmp
19539
19540 # Set up the scripts for CONFIG_FILES section.
19541 # No need to generate them if there are no CONFIG_FILES.
19542 # This happens for instance with `./config.status config.h'.
19543 if test -n "$CONFIG_FILES"; then
19544
19545
19546 ac_cr=`echo X | tr X '\015'`
19547 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19548 # But we know of no other shell where ac_cr would be empty at this
19549 # point, so we can use a bashism as a fallback.
19550 if test "x$ac_cr" = x; then
19551 eval ac_cr=\$\'\\r\'
19552 fi
19553 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19555 ac_cs_awk_cr='\\r'
19556 else
19557 ac_cs_awk_cr=$ac_cr
19558 fi
19559
19560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19561 _ACEOF
19562
19563
19564 {
19565 echo "cat >conf$$subs.awk <<_ACEOF" &&
19566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19567 echo "_ACEOF"
19568 } >conf$$subs.sh ||
19569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19571 ac_delim='%!_!# '
19572 for ac_last_try in false false false false false :; do
19573 . ./conf$$subs.sh ||
19574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19575
19576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19577 if test $ac_delim_n = $ac_delim_num; then
19578 break
19579 elif $ac_last_try; then
19580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19581 else
19582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19583 fi
19584 done
19585 rm -f conf$$subs.sh
19586
19587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19588 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19589 _ACEOF
19590 sed -n '
19591 h
19592 s/^/S["/; s/!.*/"]=/
19593 p
19594 g
19595 s/^[^!]*!//
19596 :repl
19597 t repl
19598 s/'"$ac_delim"'$//
19599 t delim
19600 :nl
19601 h
19602 s/\(.\{148\}\)..*/\1/
19603 t more1
19604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19605 p
19606 n
19607 b repl
19608 :more1
19609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19610 p
19611 g
19612 s/.\{148\}//
19613 t nl
19614 :delim
19615 h
19616 s/\(.\{148\}\)..*/\1/
19617 t more2
19618 s/["\\]/\\&/g; s/^/"/; s/$/"/
19619 p
19620 b
19621 :more2
19622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19623 p
19624 g
19625 s/.\{148\}//
19626 t delim
19627 ' <conf$$subs.awk | sed '
19628 /^[^""]/{
19629 N
19630 s/\n//
19631 }
19632 ' >>$CONFIG_STATUS || ac_write_fail=1
19633 rm -f conf$$subs.awk
19634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19635 _ACAWK
19636 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19637 for (key in S) S_is_set[key] = 1
19638 FS = ""
19639
19640 }
19641 {
19642 line = $ 0
19643 nfields = split(line, field, "@")
19644 substed = 0
19645 len = length(field[1])
19646 for (i = 2; i < nfields; i++) {
19647 key = field[i]
19648 keylen = length(key)
19649 if (S_is_set[key]) {
19650 value = S[key]
19651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19652 len += length(value) + length(field[++i])
19653 substed = 1
19654 } else
19655 len += 1 + keylen
19656 }
19657
19658 print line
19659 }
19660
19661 _ACAWK
19662 _ACEOF
19663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19664 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19666 else
19667 cat
19668 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19670 _ACEOF
19671
19672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19674 # trailing colons and then remove the whole line if VPATH becomes empty
19675 # (actually we leave an empty line to preserve line numbers).
19676 if test "x$srcdir" = x.; then
19677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19678 h
19679 s///
19680 s/^/:/
19681 s/[ ]*$/:/
19682 s/:\$(srcdir):/:/g
19683 s/:\${srcdir}:/:/g
19684 s/:@srcdir@:/:/g
19685 s/^:*//
19686 s/:*$//
19687 x
19688 s/\(=[ ]*\).*/\1/
19689 G
19690 s/\n//
19691 s/^[^=]*=[ ]*$//
19692 }'
19693 fi
19694
19695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19696 fi # test -n "$CONFIG_FILES"
19697
19698 # Set up the scripts for CONFIG_HEADERS section.
19699 # No need to generate them if there are no CONFIG_HEADERS.
19700 # This happens for instance with `./config.status Makefile'.
19701 if test -n "$CONFIG_HEADERS"; then
19702 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19703 BEGIN {
19704 _ACEOF
19705
19706 # Transform confdefs.h into an awk script `defines.awk', embedded as
19707 # here-document in config.status, that substitutes the proper values into
19708 # config.h.in to produce config.h.
19709
19710 # Create a delimiter string that does not exist in confdefs.h, to ease
19711 # handling of long lines.
19712 ac_delim='%!_!# '
19713 for ac_last_try in false false :; do
19714 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19715 if test -z "$ac_tt"; then
19716 break
19717 elif $ac_last_try; then
19718 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19719 else
19720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19721 fi
19722 done
19723
19724 # For the awk script, D is an array of macro values keyed by name,
19725 # likewise P contains macro parameters if any. Preserve backslash
19726 # newline sequences.
19727
19728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19729 sed -n '
19730 s/.\{148\}/&'"$ac_delim"'/g
19731 t rset
19732 :rset
19733 s/^[ ]*#[ ]*define[ ][ ]*/ /
19734 t def
19735 d
19736 :def
19737 s/\\$//
19738 t bsnl
19739 s/["\\]/\\&/g
19740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19741 D["\1"]=" \3"/p
19742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19743 d
19744 :bsnl
19745 s/["\\]/\\&/g
19746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19747 D["\1"]=" \3\\\\\\n"\\/p
19748 t cont
19749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19750 t cont
19751 d
19752 :cont
19753 n
19754 s/.\{148\}/&'"$ac_delim"'/g
19755 t clear
19756 :clear
19757 s/\\$//
19758 t bsnlc
19759 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19760 d
19761 :bsnlc
19762 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19763 b cont
19764 ' <confdefs.h | sed '
19765 s/'"$ac_delim"'/"\\\
19766 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19767
19768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19769 for (key in D) D_is_set[key] = 1
19770 FS = ""
19771 }
19772 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19773 line = \$ 0
19774 split(line, arg, " ")
19775 if (arg[1] == "#") {
19776 defundef = arg[2]
19777 mac1 = arg[3]
19778 } else {
19779 defundef = substr(arg[1], 2)
19780 mac1 = arg[2]
19781 }
19782 split(mac1, mac2, "(") #)
19783 macro = mac2[1]
19784 prefix = substr(line, 1, index(line, defundef) - 1)
19785 if (D_is_set[macro]) {
19786 # Preserve the white space surrounding the "#".
19787 print prefix "define", macro P[macro] D[macro]
19788 next
19789 } else {
19790 # Replace #undef with comments. This is necessary, for example,
19791 # in the case of _POSIX_SOURCE, which is predefined and required
19792 # on some systems where configure will not decide to define it.
19793 if (defundef == "undef") {
19794 print "/*", prefix defundef, macro, "*/"
19795 next
19796 }
19797 }
19798 }
19799 { print }
19800 _ACAWK
19801 _ACEOF
19802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19803 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19804 fi # test -n "$CONFIG_HEADERS"
19805
19806
19807 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19808 shift
19809 for ac_tag
19810 do
19811 case $ac_tag in
19812 :[FHLC]) ac_mode=$ac_tag; continue;;
19813 esac
19814 case $ac_mode$ac_tag in
19815 :[FHL]*:*);;
19816 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19817 :[FH]-) ac_tag=-:-;;
19818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19819 esac
19820 ac_save_IFS=$IFS
19821 IFS=:
19822 set x $ac_tag
19823 IFS=$ac_save_IFS
19824 shift
19825 ac_file=$1
19826 shift
19827
19828 case $ac_mode in
19829 :L) ac_source=$1;;
19830 :[FH])
19831 ac_file_inputs=
19832 for ac_f
19833 do
19834 case $ac_f in
19835 -) ac_f="$ac_tmp/stdin";;
19836 *) # Look for the file first in the build tree, then in the source tree
19837 # (if the path is not absolute). The absolute path cannot be DOS-style,
19838 # because $ac_f cannot contain `:'.
19839 test -f "$ac_f" ||
19840 case $ac_f in
19841 [\\/$]*) false;;
19842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19843 esac ||
19844 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19845 esac
19846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19847 as_fn_append ac_file_inputs " '$ac_f'"
19848 done
19849
19850 # Let's still pretend it is `configure' which instantiates (i.e., don't
19851 # use $as_me), people would be surprised to read:
19852 # /* config.h. Generated by config.status. */
19853 configure_input='Generated from '`
19854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19855 `' by configure.'
19856 if test x"$ac_file" != x-; then
19857 configure_input="$ac_file. $configure_input"
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19859 $as_echo "$as_me: creating $ac_file" >&6;}
19860 fi
19861 # Neutralize special characters interpreted by sed in replacement strings.
19862 case $configure_input in #(
19863 *\&* | *\|* | *\\* )
19864 ac_sed_conf_input=`$as_echo "$configure_input" |
19865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19866 *) ac_sed_conf_input=$configure_input;;
19867 esac
19868
19869 case $ac_tag in
19870 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19872 esac
19873 ;;
19874 esac
19875
19876 ac_dir=`$as_dirname -- "$ac_file" ||
19877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19878 X"$ac_file" : 'X\(//\)[^/]' \| \
19879 X"$ac_file" : 'X\(//\)$' \| \
19880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19881 $as_echo X"$ac_file" |
19882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19883 s//\1/
19884 q
19885 }
19886 /^X\(\/\/\)[^/].*/{
19887 s//\1/
19888 q
19889 }
19890 /^X\(\/\/\)$/{
19891 s//\1/
19892 q
19893 }
19894 /^X\(\/\).*/{
19895 s//\1/
19896 q
19897 }
19898 s/.*/./; q'`
19899 as_dir="$ac_dir"; as_fn_mkdir_p
19900 ac_builddir=.
19901
19902 case "$ac_dir" in
19903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19904 *)
19905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19906 # A ".." for each directory in $ac_dir_suffix.
19907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19908 case $ac_top_builddir_sub in
19909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19911 esac ;;
19912 esac
19913 ac_abs_top_builddir=$ac_pwd
19914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19915 # for backward compatibility:
19916 ac_top_builddir=$ac_top_build_prefix
19917
19918 case $srcdir in
19919 .) # We are building in place.
19920 ac_srcdir=.
19921 ac_top_srcdir=$ac_top_builddir_sub
19922 ac_abs_top_srcdir=$ac_pwd ;;
19923 [\\/]* | ?:[\\/]* ) # Absolute name.
19924 ac_srcdir=$srcdir$ac_dir_suffix;
19925 ac_top_srcdir=$srcdir
19926 ac_abs_top_srcdir=$srcdir ;;
19927 *) # Relative name.
19928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19929 ac_top_srcdir=$ac_top_build_prefix$srcdir
19930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19931 esac
19932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19933
19934
19935 case $ac_mode in
19936 :F)
19937 #
19938 # CONFIG_FILE
19939 #
19940
19941 case $INSTALL in
19942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19944 esac
19945 ac_MKDIR_P=$MKDIR_P
19946 case $MKDIR_P in
19947 [\\/$]* | ?:[\\/]* ) ;;
19948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19949 esac
19950 _ACEOF
19951
19952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953 # If the template does not know about datarootdir, expand it.
19954 # FIXME: This hack should be removed a few years after 2.60.
19955 ac_datarootdir_hack=; ac_datarootdir_seen=
19956 ac_sed_dataroot='
19957 /datarootdir/ {
19958 p
19959 q
19960 }
19961 /@datadir@/p
19962 /@docdir@/p
19963 /@infodir@/p
19964 /@localedir@/p
19965 /@mandir@/p'
19966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19967 *datarootdir*) ac_datarootdir_seen=yes;;
19968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19971 _ACEOF
19972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973 ac_datarootdir_hack='
19974 s&@datadir@&$datadir&g
19975 s&@docdir@&$docdir&g
19976 s&@infodir@&$infodir&g
19977 s&@localedir@&$localedir&g
19978 s&@mandir@&$mandir&g
19979 s&\\\${datarootdir}&$datarootdir&g' ;;
19980 esac
19981 _ACEOF
19982
19983 # Neutralize VPATH when `$srcdir' = `.'.
19984 # Shell code in configure.ac might set extrasub.
19985 # FIXME: do we really want to maintain this feature?
19986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19987 ac_sed_extra="$ac_vpsub
19988 $extrasub
19989 _ACEOF
19990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19991 :t
19992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19993 s|@configure_input@|$ac_sed_conf_input|;t t
19994 s&@top_builddir@&$ac_top_builddir_sub&;t t
19995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19996 s&@srcdir@&$ac_srcdir&;t t
19997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19998 s&@top_srcdir@&$ac_top_srcdir&;t t
19999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20000 s&@builddir@&$ac_builddir&;t t
20001 s&@abs_builddir@&$ac_abs_builddir&;t t
20002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20003 s&@INSTALL@&$ac_INSTALL&;t t
20004 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20005 $ac_datarootdir_hack
20006 "
20007 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20008 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20009
20010 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20011 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20013 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20015 which seems to be undefined. Please make sure it is defined" >&5
20016 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20017 which seems to be undefined. Please make sure it is defined" >&2;}
20018
20019 rm -f "$ac_tmp/stdin"
20020 case $ac_file in
20021 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20022 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20023 esac \
20024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20025 ;;
20026 :H)
20027 #
20028 # CONFIG_HEADER
20029 #
20030 if test x"$ac_file" != x-; then
20031 {
20032 $as_echo "/* $configure_input */" \
20033 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20034 } >"$ac_tmp/config.h" \
20035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20036 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20038 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20039 else
20040 rm -f "$ac_file"
20041 mv "$ac_tmp/config.h" "$ac_file" \
20042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20043 fi
20044 else
20045 $as_echo "/* $configure_input */" \
20046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20047 || as_fn_error $? "could not create -" "$LINENO" 5
20048 fi
20049 # Compute "$ac_file"'s index in $config_headers.
20050 _am_arg="$ac_file"
20051 _am_stamp_count=1
20052 for _am_header in $config_headers :; do
20053 case $_am_header in
20054 $_am_arg | $_am_arg:* )
20055 break ;;
20056 * )
20057 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20058 esac
20059 done
20060 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20061 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062 X"$_am_arg" : 'X\(//\)[^/]' \| \
20063 X"$_am_arg" : 'X\(//\)$' \| \
20064 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20065 $as_echo X"$_am_arg" |
20066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20067 s//\1/
20068 q
20069 }
20070 /^X\(\/\/\)[^/].*/{
20071 s//\1/
20072 q
20073 }
20074 /^X\(\/\/\)$/{
20075 s//\1/
20076 q
20077 }
20078 /^X\(\/\).*/{
20079 s//\1/
20080 q
20081 }
20082 s/.*/./; q'`/stamp-h$_am_stamp_count
20083 ;;
20084
20085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20086 $as_echo "$as_me: executing $ac_file commands" >&6;}
20087 ;;
20088 esac
20089
20090
20091 case $ac_file$ac_mode in
20092 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20093 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20094 # are listed without --file. Let's play safe and only enable the eval
20095 # if we detect the quoting.
20096 case $CONFIG_FILES in
20097 *\'*) eval set x "$CONFIG_FILES" ;;
20098 *) set x $CONFIG_FILES ;;
20099 esac
20100 shift
20101 for mf
20102 do
20103 # Strip MF so we end up with the name of the file.
20104 mf=`echo "$mf" | sed -e 's/:.*$//'`
20105 # Check whether this is an Automake generated Makefile or not.
20106 # We used to match only the files named `Makefile.in', but
20107 # some people rename them; so instead we look at the file content.
20108 # Grep'ing the first line is not enough: some people post-process
20109 # each Makefile.in and add a new line on top of each file to say so.
20110 # Grep'ing the whole file is not good either: AIX grep has a line
20111 # limit of 2048, but all sed's we know have understand at least 4000.
20112 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20113 dirpart=`$as_dirname -- "$mf" ||
20114 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20115 X"$mf" : 'X\(//\)[^/]' \| \
20116 X"$mf" : 'X\(//\)$' \| \
20117 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20118 $as_echo X"$mf" |
20119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20120 s//\1/
20121 q
20122 }
20123 /^X\(\/\/\)[^/].*/{
20124 s//\1/
20125 q
20126 }
20127 /^X\(\/\/\)$/{
20128 s//\1/
20129 q
20130 }
20131 /^X\(\/\).*/{
20132 s//\1/
20133 q
20134 }
20135 s/.*/./; q'`
20136 else
20137 continue
20138 fi
20139 # Extract the definition of DEPDIR, am__include, and am__quote
20140 # from the Makefile without running `make'.
20141 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20142 test -z "$DEPDIR" && continue
20143 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20144 test -z "am__include" && continue
20145 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20146 # When using ansi2knr, U may be empty or an underscore; expand it
20147 U=`sed -n 's/^U = //p' < "$mf"`
20148 # Find all dependency output files, they are included files with
20149 # $(DEPDIR) in their names. We invoke sed twice because it is the
20150 # simplest approach to changing $(DEPDIR) to its actual value in the
20151 # expansion.
20152 for file in `sed -n "
20153 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20154 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20155 # Make sure the directory exists.
20156 test -f "$dirpart/$file" && continue
20157 fdir=`$as_dirname -- "$file" ||
20158 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20159 X"$file" : 'X\(//\)[^/]' \| \
20160 X"$file" : 'X\(//\)$' \| \
20161 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20162 $as_echo X"$file" |
20163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20164 s//\1/
20165 q
20166 }
20167 /^X\(\/\/\)[^/].*/{
20168 s//\1/
20169 q
20170 }
20171 /^X\(\/\/\)$/{
20172 s//\1/
20173 q
20174 }
20175 /^X\(\/\).*/{
20176 s//\1/
20177 q
20178 }
20179 s/.*/./; q'`
20180 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20181 # echo "creating $dirpart/$file"
20182 echo '# dummy' > "$dirpart/$file"
20183 done
20184 done
20185 }
20186 ;;
20187 "libtool":C)
20188
20189 # See if we are running on zsh, and set the options which allow our
20190 # commands through without removal of \ escapes.
20191 if test -n "${ZSH_VERSION+set}" ; then
20192 setopt NO_GLOB_SUBST
20193 fi
20194
20195 cfgfile="${ofile}T"
20196 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20197 $RM "$cfgfile"
20198
20199 cat <<_LT_EOF >> "$cfgfile"
20200 #! $SHELL
20201
20202 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20203 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20205 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20206 #
20207 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20208 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20209 # Foundation, Inc.
20210 # Written by Gordon Matzigkeit, 1996
20211 #
20212 # This file is part of GNU Libtool.
20213 #
20214 # GNU Libtool is free software; you can redistribute it and/or
20215 # modify it under the terms of the GNU General Public License as
20216 # published by the Free Software Foundation; either version 2 of
20217 # the License, or (at your option) any later version.
20218 #
20219 # As a special exception to the GNU General Public License,
20220 # if you distribute this file as part of a program or library that
20221 # is built using GNU Libtool, you may include this file under the
20222 # same distribution terms that you use for the rest of that program.
20223 #
20224 # GNU Libtool is distributed in the hope that it will be useful,
20225 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20227 # GNU General Public License for more details.
20228 #
20229 # You should have received a copy of the GNU General Public License
20230 # along with GNU Libtool; see the file COPYING. If not, a copy
20231 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20232 # obtained by writing to the Free Software Foundation, Inc.,
20233 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20234
20235
20236 # The names of the tagged configurations supported by this script.
20237 available_tags=""
20238
20239 # ### BEGIN LIBTOOL CONFIG
20240
20241 # Whether or not to build static libraries.
20242 build_old_libs=$enable_static
20243
20244 # Which release of libtool.m4 was used?
20245 macro_version=$macro_version
20246 macro_revision=$macro_revision
20247
20248 # Whether or not to build shared libraries.
20249 build_libtool_libs=$enable_shared
20250
20251 # What type of objects to build.
20252 pic_mode=$pic_mode
20253
20254 # Whether or not to optimize for fast installation.
20255 fast_install=$enable_fast_install
20256
20257 # Shell to use when invoking shell scripts.
20258 SHELL=$lt_SHELL
20259
20260 # An echo program that protects backslashes.
20261 ECHO=$lt_ECHO
20262
20263 # The PATH separator for the build system.
20264 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20265
20266 # The host system.
20267 host_alias=$host_alias
20268 host=$host
20269 host_os=$host_os
20270
20271 # The build system.
20272 build_alias=$build_alias
20273 build=$build
20274 build_os=$build_os
20275
20276 # A sed program that does not truncate output.
20277 SED=$lt_SED
20278
20279 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20280 Xsed="\$SED -e 1s/^X//"
20281
20282 # A grep program that handles long lines.
20283 GREP=$lt_GREP
20284
20285 # An ERE matcher.
20286 EGREP=$lt_EGREP
20287
20288 # A literal string matcher.
20289 FGREP=$lt_FGREP
20290
20291 # A BSD- or MS-compatible name lister.
20292 NM=$lt_NM
20293
20294 # Whether we need soft or hard links.
20295 LN_S=$lt_LN_S
20296
20297 # What is the maximum length of a command?
20298 max_cmd_len=$max_cmd_len
20299
20300 # Object file suffix (normally "o").
20301 objext=$ac_objext
20302
20303 # Executable file suffix (normally "").
20304 exeext=$exeext
20305
20306 # whether the shell understands "unset".
20307 lt_unset=$lt_unset
20308
20309 # turn spaces into newlines.
20310 SP2NL=$lt_lt_SP2NL
20311
20312 # turn newlines into spaces.
20313 NL2SP=$lt_lt_NL2SP
20314
20315 # convert \$build file names to \$host format.
20316 to_host_file_cmd=$lt_cv_to_host_file_cmd
20317
20318 # convert \$build files to toolchain format.
20319 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20320
20321 # An object symbol dumper.
20322 OBJDUMP=$lt_OBJDUMP
20323
20324 # Method to check whether dependent libraries are shared objects.
20325 deplibs_check_method=$lt_deplibs_check_method
20326
20327 # Command to use when deplibs_check_method = "file_magic".
20328 file_magic_cmd=$lt_file_magic_cmd
20329
20330 # How to find potential files when deplibs_check_method = "file_magic".
20331 file_magic_glob=$lt_file_magic_glob
20332
20333 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20334 want_nocaseglob=$lt_want_nocaseglob
20335
20336 # DLL creation program.
20337 DLLTOOL=$lt_DLLTOOL
20338
20339 # Command to associate shared and link libraries.
20340 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20341
20342 # The archiver.
20343 AR=$lt_AR
20344
20345 # Flags to create an archive.
20346 AR_FLAGS=$lt_AR_FLAGS
20347
20348 # How to feed a file listing to the archiver.
20349 archiver_list_spec=$lt_archiver_list_spec
20350
20351 # A symbol stripping program.
20352 STRIP=$lt_STRIP
20353
20354 # Commands used to install an old-style archive.
20355 RANLIB=$lt_RANLIB
20356 old_postinstall_cmds=$lt_old_postinstall_cmds
20357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20358
20359 # Whether to use a lock for old archive extraction.
20360 lock_old_archive_extraction=$lock_old_archive_extraction
20361
20362 # A C compiler.
20363 LTCC=$lt_CC
20364
20365 # LTCC compiler flags.
20366 LTCFLAGS=$lt_CFLAGS
20367
20368 # Take the output of nm and produce a listing of raw symbols and C names.
20369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20370
20371 # Transform the output of nm in a proper C declaration.
20372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20373
20374 # Transform the output of nm in a C name address pair.
20375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20376
20377 # Transform the output of nm in a C name address pair when lib prefix is needed.
20378 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20379
20380 # Specify filename containing input files for \$NM.
20381 nm_file_list_spec=$lt_nm_file_list_spec
20382
20383 # The root where to search for dependent libraries,and in which our libraries should be installed.
20384 lt_sysroot=$lt_sysroot
20385
20386 # The name of the directory that contains temporary libtool files.
20387 objdir=$objdir
20388
20389 # Used to examine libraries when file_magic_cmd begins with "file".
20390 MAGIC_CMD=$MAGIC_CMD
20391
20392 # Must we lock files when doing compilation?
20393 need_locks=$lt_need_locks
20394
20395 # Manifest tool.
20396 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20397
20398 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20399 DSYMUTIL=$lt_DSYMUTIL
20400
20401 # Tool to change global to local symbols on Mac OS X.
20402 NMEDIT=$lt_NMEDIT
20403
20404 # Tool to manipulate fat objects and archives on Mac OS X.
20405 LIPO=$lt_LIPO
20406
20407 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20408 OTOOL=$lt_OTOOL
20409
20410 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20411 OTOOL64=$lt_OTOOL64
20412
20413 # Old archive suffix (normally "a").
20414 libext=$libext
20415
20416 # Shared library suffix (normally ".so").
20417 shrext_cmds=$lt_shrext_cmds
20418
20419 # The commands to extract the exported symbol list from a shared archive.
20420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20421
20422 # Variables whose values should be saved in libtool wrapper scripts and
20423 # restored at link time.
20424 variables_saved_for_relink=$lt_variables_saved_for_relink
20425
20426 # Do we need the "lib" prefix for modules?
20427 need_lib_prefix=$need_lib_prefix
20428
20429 # Do we need a version for libraries?
20430 need_version=$need_version
20431
20432 # Library versioning type.
20433 version_type=$version_type
20434
20435 # Shared library runtime path variable.
20436 runpath_var=$runpath_var
20437
20438 # Shared library path variable.
20439 shlibpath_var=$shlibpath_var
20440
20441 # Is shlibpath searched before the hard-coded library search path?
20442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20443
20444 # Format of library name prefix.
20445 libname_spec=$lt_libname_spec
20446
20447 # List of archive names. First name is the real one, the rest are links.
20448 # The last name is the one that the linker finds with -lNAME
20449 library_names_spec=$lt_library_names_spec
20450
20451 # The coded name of the library, if different from the real name.
20452 soname_spec=$lt_soname_spec
20453
20454 # Permission mode override for installation of shared libraries.
20455 install_override_mode=$lt_install_override_mode
20456
20457 # Command to use after installation of a shared archive.
20458 postinstall_cmds=$lt_postinstall_cmds
20459
20460 # Command to use after uninstallation of a shared archive.
20461 postuninstall_cmds=$lt_postuninstall_cmds
20462
20463 # Commands used to finish a libtool library installation in a directory.
20464 finish_cmds=$lt_finish_cmds
20465
20466 # As "finish_cmds", except a single script fragment to be evaled but
20467 # not shown.
20468 finish_eval=$lt_finish_eval
20469
20470 # Whether we should hardcode library paths into libraries.
20471 hardcode_into_libs=$hardcode_into_libs
20472
20473 # Compile-time system search path for libraries.
20474 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20475
20476 # Run-time system search path for libraries.
20477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20478
20479 # Whether dlopen is supported.
20480 dlopen_support=$enable_dlopen
20481
20482 # Whether dlopen of programs is supported.
20483 dlopen_self=$enable_dlopen_self
20484
20485 # Whether dlopen of statically linked programs is supported.
20486 dlopen_self_static=$enable_dlopen_self_static
20487
20488 # Commands to strip libraries.
20489 old_striplib=$lt_old_striplib
20490 striplib=$lt_striplib
20491
20492
20493 # The linker used to build libraries.
20494 LD=$lt_LD
20495
20496 # How to create reloadable object files.
20497 reload_flag=$lt_reload_flag
20498 reload_cmds=$lt_reload_cmds
20499
20500 # Commands used to build an old-style archive.
20501 old_archive_cmds=$lt_old_archive_cmds
20502
20503 # A language specific compiler.
20504 CC=$lt_compiler
20505
20506 # Is the compiler the GNU compiler?
20507 with_gcc=$GCC
20508
20509 # Compiler flag to turn off builtin functions.
20510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20511
20512 # Additional compiler flags for building library objects.
20513 pic_flag=$lt_lt_prog_compiler_pic
20514
20515 # How to pass a linker flag through the compiler.
20516 wl=$lt_lt_prog_compiler_wl
20517
20518 # Compiler flag to prevent dynamic linking.
20519 link_static_flag=$lt_lt_prog_compiler_static
20520
20521 # Does compiler simultaneously support -c and -o options?
20522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20523
20524 # Whether or not to add -lc for building shared libraries.
20525 build_libtool_need_lc=$archive_cmds_need_lc
20526
20527 # Whether or not to disallow shared libs when runtime libs are static.
20528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20529
20530 # Compiler flag to allow reflexive dlopens.
20531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20532
20533 # Compiler flag to generate shared objects directly from archives.
20534 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20535
20536 # Whether the compiler copes with passing no objects directly.
20537 compiler_needs_object=$lt_compiler_needs_object
20538
20539 # Create an old-style archive from a shared archive.
20540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20541
20542 # Create a temporary old-style archive to link instead of a shared archive.
20543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20544
20545 # Commands used to build a shared archive.
20546 archive_cmds=$lt_archive_cmds
20547 archive_expsym_cmds=$lt_archive_expsym_cmds
20548
20549 # Commands used to build a loadable module if different from building
20550 # a shared archive.
20551 module_cmds=$lt_module_cmds
20552 module_expsym_cmds=$lt_module_expsym_cmds
20553
20554 # Whether we are building with GNU ld or not.
20555 with_gnu_ld=$lt_with_gnu_ld
20556
20557 # Flag that allows shared libraries with undefined symbols to be built.
20558 allow_undefined_flag=$lt_allow_undefined_flag
20559
20560 # Flag that enforces no undefined symbols.
20561 no_undefined_flag=$lt_no_undefined_flag
20562
20563 # Flag to hardcode \$libdir into a binary during linking.
20564 # This must work even if \$libdir does not exist
20565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20566
20567 # Whether we need a single "-rpath" flag with a separated argument.
20568 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20569
20570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20571 # DIR into the resulting binary.
20572 hardcode_direct=$hardcode_direct
20573
20574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20575 # DIR into the resulting binary and the resulting library dependency is
20576 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20577 # library is relocated.
20578 hardcode_direct_absolute=$hardcode_direct_absolute
20579
20580 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20581 # into the resulting binary.
20582 hardcode_minus_L=$hardcode_minus_L
20583
20584 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20585 # into the resulting binary.
20586 hardcode_shlibpath_var=$hardcode_shlibpath_var
20587
20588 # Set to "yes" if building a shared library automatically hardcodes DIR
20589 # into the library and all subsequent libraries and executables linked
20590 # against it.
20591 hardcode_automatic=$hardcode_automatic
20592
20593 # Set to yes if linker adds runtime paths of dependent libraries
20594 # to runtime path list.
20595 inherit_rpath=$inherit_rpath
20596
20597 # Whether libtool must link a program against all its dependency libraries.
20598 link_all_deplibs=$link_all_deplibs
20599
20600 # Set to "yes" if exported symbols are required.
20601 always_export_symbols=$always_export_symbols
20602
20603 # The commands to list exported symbols.
20604 export_symbols_cmds=$lt_export_symbols_cmds
20605
20606 # Symbols that should not be listed in the preloaded symbols.
20607 exclude_expsyms=$lt_exclude_expsyms
20608
20609 # Symbols that must always be exported.
20610 include_expsyms=$lt_include_expsyms
20611
20612 # Commands necessary for linking programs (against libraries) with templates.
20613 prelink_cmds=$lt_prelink_cmds
20614
20615 # Commands necessary for finishing linking programs.
20616 postlink_cmds=$lt_postlink_cmds
20617
20618 # Specify filename containing input files.
20619 file_list_spec=$lt_file_list_spec
20620
20621 # How to hardcode a shared library path into an executable.
20622 hardcode_action=$hardcode_action
20623
20624 # ### END LIBTOOL CONFIG
20625
20626 _LT_EOF
20627
20628 case $host_os in
20629 aix3*)
20630 cat <<\_LT_EOF >> "$cfgfile"
20631 # AIX sometimes has problems with the GCC collect2 program. For some
20632 # reason, if we set the COLLECT_NAMES environment variable, the problems
20633 # vanish in a puff of smoke.
20634 if test "X${COLLECT_NAMES+set}" != Xset; then
20635 COLLECT_NAMES=
20636 export COLLECT_NAMES
20637 fi
20638 _LT_EOF
20639 ;;
20640 esac
20641
20642
20643 ltmain="$ac_aux_dir/ltmain.sh"
20644
20645
20646 # We use sed instead of cat because bash on DJGPP gets confused if
20647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20648 # text mode, it properly converts lines to CR/LF. This bash problem
20649 # is reportedly fixed, but why not run on old versions too?
20650 sed '$q' "$ltmain" >> "$cfgfile" \
20651 || (rm -f "$cfgfile"; exit 1)
20652
20653 if test x"$xsi_shell" = xyes; then
20654 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20655 func_dirname ()\
20656 {\
20657 \ case ${1} in\
20658 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20659 \ * ) func_dirname_result="${3}" ;;\
20660 \ esac\
20661 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20662 && mv -f "$cfgfile.tmp" "$cfgfile" \
20663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20664 test 0 -eq $? || _lt_function_replace_fail=:
20665
20666
20667 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20668 func_basename ()\
20669 {\
20670 \ func_basename_result="${1##*/}"\
20671 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20672 && mv -f "$cfgfile.tmp" "$cfgfile" \
20673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20674 test 0 -eq $? || _lt_function_replace_fail=:
20675
20676
20677 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20678 func_dirname_and_basename ()\
20679 {\
20680 \ case ${1} in\
20681 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20682 \ * ) func_dirname_result="${3}" ;;\
20683 \ esac\
20684 \ func_basename_result="${1##*/}"\
20685 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20686 && mv -f "$cfgfile.tmp" "$cfgfile" \
20687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20688 test 0 -eq $? || _lt_function_replace_fail=:
20689
20690
20691 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20692 func_stripname ()\
20693 {\
20694 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20695 \ # positional parameters, so assign one to ordinary parameter first.\
20696 \ func_stripname_result=${3}\
20697 \ func_stripname_result=${func_stripname_result#"${1}"}\
20698 \ func_stripname_result=${func_stripname_result%"${2}"}\
20699 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20700 && mv -f "$cfgfile.tmp" "$cfgfile" \
20701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20702 test 0 -eq $? || _lt_function_replace_fail=:
20703
20704
20705 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20706 func_split_long_opt ()\
20707 {\
20708 \ func_split_long_opt_name=${1%%=*}\
20709 \ func_split_long_opt_arg=${1#*=}\
20710 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20711 && mv -f "$cfgfile.tmp" "$cfgfile" \
20712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20713 test 0 -eq $? || _lt_function_replace_fail=:
20714
20715
20716 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20717 func_split_short_opt ()\
20718 {\
20719 \ func_split_short_opt_arg=${1#??}\
20720 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20721 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20722 && mv -f "$cfgfile.tmp" "$cfgfile" \
20723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20724 test 0 -eq $? || _lt_function_replace_fail=:
20725
20726
20727 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20728 func_lo2o ()\
20729 {\
20730 \ case ${1} in\
20731 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20732 \ *) func_lo2o_result=${1} ;;\
20733 \ esac\
20734 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20735 && mv -f "$cfgfile.tmp" "$cfgfile" \
20736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20737 test 0 -eq $? || _lt_function_replace_fail=:
20738
20739
20740 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20741 func_xform ()\
20742 {\
20743 func_xform_result=${1%.*}.lo\
20744 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20745 && mv -f "$cfgfile.tmp" "$cfgfile" \
20746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20747 test 0 -eq $? || _lt_function_replace_fail=:
20748
20749
20750 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20751 func_arith ()\
20752 {\
20753 func_arith_result=$(( $* ))\
20754 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20755 && mv -f "$cfgfile.tmp" "$cfgfile" \
20756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20757 test 0 -eq $? || _lt_function_replace_fail=:
20758
20759
20760 sed -e '/^func_len ()$/,/^} # func_len /c\
20761 func_len ()\
20762 {\
20763 func_len_result=${#1}\
20764 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20765 && mv -f "$cfgfile.tmp" "$cfgfile" \
20766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767 test 0 -eq $? || _lt_function_replace_fail=:
20768
20769 fi
20770
20771 if test x"$lt_shell_append" = xyes; then
20772 sed -e '/^func_append ()$/,/^} # func_append /c\
20773 func_append ()\
20774 {\
20775 eval "${1}+=\\${2}"\
20776 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20777 && mv -f "$cfgfile.tmp" "$cfgfile" \
20778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20779 test 0 -eq $? || _lt_function_replace_fail=:
20780
20781
20782 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20783 func_append_quoted ()\
20784 {\
20785 \ func_quote_for_eval "${2}"\
20786 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20787 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20788 && mv -f "$cfgfile.tmp" "$cfgfile" \
20789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20790 test 0 -eq $? || _lt_function_replace_fail=:
20791
20792
20793 # Save a `func_append' function call where possible by direct use of '+='
20794 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20795 && mv -f "$cfgfile.tmp" "$cfgfile" \
20796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20797 test 0 -eq $? || _lt_function_replace_fail=:
20798 else
20799 # Save a `func_append' function call even when '+=' is not available
20800 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20801 && mv -f "$cfgfile.tmp" "$cfgfile" \
20802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20803 test 0 -eq $? || _lt_function_replace_fail=:
20804 fi
20805
20806 if test x"$_lt_function_replace_fail" = x":"; then
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20808 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20809 fi
20810
20811
20812 mv -f "$cfgfile" "$ofile" ||
20813 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20814 chmod +x "$ofile"
20815
20816 ;;
20817
20818 esac
20819 done # for ac_tag
20820
20821
20822 as_fn_exit 0
20823 _ACEOF
20824 ac_clean_files=$ac_clean_files_save
20825
20826 test $ac_write_fail = 0 ||
20827 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20828
20829
20830 # configure is writing to config.log, and then calls config.status.
20831 # config.status does its own redirection, appending to config.log.
20832 # Unfortunately, on DOS this fails, as config.log is still kept open
20833 # by configure, so config.status won't be able to write to it; its
20834 # output is simply discarded. So we exec the FD to /dev/null,
20835 # effectively closing config.log, so it can be properly (re)opened and
20836 # appended to by config.status. When coming back to configure, we
20837 # need to make the FD available again.
20838 if test "$no_create" != yes; then
20839 ac_cs_success=:
20840 ac_config_status_args=
20841 test "$silent" = yes &&
20842 ac_config_status_args="$ac_config_status_args --quiet"
20843 exec 5>/dev/null
20844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20845 exec 5>>config.log
20846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20847 # would make configure fail if this is the last instruction.
20848 $ac_cs_success || as_fn_exit 1
20849 fi
20850 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20852 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20853 fi
20854
20855