configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-tga 1.2.2.
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-tga'
573 PACKAGE_TARNAME='xf86-video-tga'
574 PACKAGE_VERSION='1.2.2'
575 PACKAGE_STRING='xf86-video-tga 1.2.2'
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 XAA_FALSE
623 XAA_TRUE
624 XSERVER_LIBPCIACCESS_FALSE
625 XSERVER_LIBPCIACCESS_TRUE
626 PCIACCESS_LIBS
627 PCIACCESS_CFLAGS
628 HAVE_XEXTPROTO_71_FALSE
629 HAVE_XEXTPROTO_71_TRUE
630 XEXT_LIBS
631 XEXT_CFLAGS
632 XORG_LIBS
633 XORG_CFLAGS
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
639 MANIFEST_TOOL
640 RANLIB
641 ac_ct_AR
642 AR
643 DLLTOOL
644 OBJDUMP
645 LN_S
646 NM
647 ac_ct_DUMPBIN
648 DUMPBIN
649 LD
650 FGREP
651 LIBTOOL
652 AM_BACKSLASH
653 AM_DEFAULT_VERBOSITY
654 AM_DEFAULT_V
655 AM_V
656 MAN_SUBSTS
657 XORG_MAN_PAGE
658 ADMIN_MAN_DIR
659 DRIVER_MAN_DIR
660 MISC_MAN_DIR
661 FILE_MAN_DIR
662 LIB_MAN_DIR
663 APP_MAN_DIR
664 ADMIN_MAN_SUFFIX
665 DRIVER_MAN_SUFFIX
666 MISC_MAN_SUFFIX
667 FILE_MAN_SUFFIX
668 LIB_MAN_SUFFIX
669 APP_MAN_SUFFIX
670 SED
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 INSTALL_CMD
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CHANGELOG_CMD
684 STRICT_CFLAGS
685 CWARNFLAGS
686 BASE_CFLAGS
687 EGREP
688 GREP
689 CPP
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_maintainer_mode
775 enable_dependency_tracking
776 enable_selective_werror
777 enable_strict_compilation
778 enable_silent_rules
779 enable_static
780 enable_shared
781 with_pic
782 enable_fast_install
783 with_gnu_ld
784 with_sysroot
785 enable_libtool_lock
786 with_xorg_module_dir
787 enable_xaa
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CPP
798 PKG_CONFIG
799 PKG_CONFIG_PATH
800 PKG_CONFIG_LIBDIR
801 XORG_CFLAGS
802 XORG_LIBS
803 XEXT_CFLAGS
804 XEXT_LIBS
805 PCIACCESS_CFLAGS
806 PCIACCESS_LIBS'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used" >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314 else
1315 ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures xf86-video-tga 1.2.2 to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-tga]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of xf86-video-tga 1.2.2:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
1429 --disable-dependency-tracking speeds up one-time build
1430 --enable-dependency-tracking do not reject slow dependency extractors
1431 --disable-selective-werror
1432 Turn off selective compiler errors. (default:
1433 enabled)
1434 --enable-strict-compilation
1435 Enable all warnings from compiler and make them
1436 errors (default: disabled)
1437 --enable-silent-rules less verbose build output (undo: `make V=1')
1438 --disable-silent-rules verbose build output (undo: `make V=0')
1439 --enable-static[=PKGS] build static libraries [default=no]
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1445 [default=auto]
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot=DIR Search for dependent libraries within DIR
1454 (or the compiler's sysroot if not specified).
1455 --with-xorg-module-dir=DIR
1456 Default xorg module directory
1457 [[default=$libdir/xorg/modules]]
1458
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CPP C preprocessor
1468 PKG_CONFIG path to pkg-config utility
1469 PKG_CONFIG_PATH
1470 directories to add to pkg-config's search path
1471 PKG_CONFIG_LIBDIR
1472 path overriding pkg-config's built-in search path
1473 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1474 XORG_LIBS linker flags for XORG, overriding pkg-config
1475 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1476 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1477 PCIACCESS_CFLAGS
1478 C compiler flags for PCIACCESS, overriding pkg-config
1479 PCIACCESS_LIBS
1480 linker flags for PCIACCESS, overriding pkg-config
1481
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1484
1485 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1486 _ACEOF
1487 ac_status=$?
1488 fi
1489
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1497
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *)
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1513
1514 case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1543 fi
1544
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547 cat <<\_ACEOF
1548 xf86-video-tga configure 1.2.2
1549 generated by GNU Autoconf 2.68
1550
1551 Copyright (C) 2010 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555 exit
1556 fi
1557
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1561
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594 fi
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598 } # ac_fn_c_try_compile
1599
1600 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1601 # ---------------------------------------------
1602 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1603 # accordingly.
1604 ac_fn_c_check_decl ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 as_decl_name=`echo $2|sed 's/ *(.*//'`
1608 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1610 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1613 else
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 $4
1617 int
1618 main ()
1619 {
1620 #ifndef $as_decl_name
1621 #ifdef __cplusplus
1622 (void) $as_decl_use;
1623 #else
1624 (void) $as_decl_name;
1625 #endif
1626 #endif
1627
1628 ;
1629 return 0;
1630 }
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633 eval "$3=yes"
1634 else
1635 eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_check_decl
1645
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_cpp ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_cpp
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=$ac_status
1718 fi
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_link ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 $as_test_x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_link
1801
1802 # ac_fn_c_check_func LINENO FUNC VAR
1803 # ----------------------------------
1804 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1805 ac_fn_c_check_func ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817 #define $2 innocuous_$2
1818
1819 /* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1823
1824 #ifdef __STDC__
1825 # include <limits.h>
1826 #else
1827 # include <assert.h>
1828 #endif
1829
1830 #undef $2
1831
1832 /* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1835 #ifdef __cplusplus
1836 extern "C"
1837 #endif
1838 char $2 ();
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined __stub_$2 || defined __stub___$2
1843 choke me
1844 #endif
1845
1846 int
1847 main ()
1848 {
1849 return $2 ();
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_link "$LINENO"; then :
1855 eval "$3=yes"
1856 else
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_func
1868
1869 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1870 # -------------------------------------------------------
1871 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1872 # the include files in INCLUDES and setting the cache variable VAR
1873 # accordingly.
1874 ac_fn_c_check_header_mongrel ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if eval \${$3+:} false; then :
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 else
1887 # Is the header compilable?
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1889 $as_echo_n "checking $2 usability... " >&6; }
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $4
1893 #include <$2>
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 ac_header_compiler=yes
1897 else
1898 ac_header_compiler=no
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1902 $as_echo "$ac_header_compiler" >&6; }
1903
1904 # Is the header present?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1906 $as_echo_n "checking $2 presence... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_cpp "$LINENO"; then :
1912 ac_header_preproc=yes
1913 else
1914 ac_header_preproc=no
1915 fi
1916 rm -f conftest.err conftest.i conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1918 $as_echo "$ac_header_preproc" >&6; }
1919
1920 # So? What about this header?
1921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1922 yes:no: )
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1924 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927 ;;
1928 no:yes:* )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1930 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1932 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1934 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1936 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1938 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 ( $as_echo "## ---------------------------------------------------------------------- ##
1940 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1941 ## ---------------------------------------------------------------------- ##"
1942 ) | sed "s/^/$as_me: WARNING: /" >&2
1943 ;;
1944 esac
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 eval "$3=\$ac_header_compiler"
1951 fi
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 fi
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_check_header_mongrel
1959 cat >config.log <<_ACEOF
1960 This file contains any messages produced by compilers while
1961 running configure, to aid debugging if configure makes a mistake.
1962
1963 It was created by xf86-video-tga $as_me 1.2.2, which was
1964 generated by GNU Autoconf 2.68. Invocation command line was
1965
1966 $ $0 $@
1967
1968 _ACEOF
1969 exec 5>>config.log
1970 {
1971 cat <<_ASUNAME
1972 ## --------- ##
1973 ## Platform. ##
1974 ## --------- ##
1975
1976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981
1982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1984
1985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1988 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1992
1993 _ASUNAME
1994
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 $as_echo "PATH: $as_dir"
2001 done
2002 IFS=$as_save_IFS
2003
2004 } >&5
2005
2006 cat >&5 <<_ACEOF
2007
2008
2009 ## ----------- ##
2010 ## Core tests. ##
2011 ## ----------- ##
2012
2013 _ACEOF
2014
2015
2016 # Keep a trace of the command line.
2017 # Strip out --no-create and --no-recursion so they do not pile up.
2018 # Strip out --silent because we don't want to record it for future runs.
2019 # Also quote any args containing shell meta-characters.
2020 # Make two passes to allow for proper duplicate-argument suppression.
2021 ac_configure_args=
2022 ac_configure_args0=
2023 ac_configure_args1=
2024 ac_must_keep_next=false
2025 for ac_pass in 1 2
2026 do
2027 for ac_arg
2028 do
2029 case $ac_arg in
2030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032 | -silent | --silent | --silen | --sile | --sil)
2033 continue ;;
2034 *\'*)
2035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2036 esac
2037 case $ac_pass in
2038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2039 2)
2040 as_fn_append ac_configure_args1 " '$ac_arg'"
2041 if test $ac_must_keep_next = true; then
2042 ac_must_keep_next=false # Got value, back to normal.
2043 else
2044 case $ac_arg in
2045 *=* | --config-cache | -C | -disable-* | --disable-* \
2046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2048 | -with-* | --with-* | -without-* | --without-* | --x)
2049 case "$ac_configure_args0 " in
2050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051 esac
2052 ;;
2053 -* ) ac_must_keep_next=true ;;
2054 esac
2055 fi
2056 as_fn_append ac_configure_args " '$ac_arg'"
2057 ;;
2058 esac
2059 done
2060 done
2061 { ac_configure_args0=; unset ac_configure_args0;}
2062 { ac_configure_args1=; unset ac_configure_args1;}
2063
2064 # When interrupted or exit'd, cleanup temporary files, and complete
2065 # config.log. We remove comments because anyway the quotes in there
2066 # would cause problems or look ugly.
2067 # WARNING: Use '\'' to represent an apostrophe within the trap.
2068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2069 trap 'exit_status=$?
2070 # Save into config.log some information that might help in debugging.
2071 {
2072 echo
2073
2074 $as_echo "## ---------------- ##
2075 ## Cache variables. ##
2076 ## ---------------- ##"
2077 echo
2078 # The following way of writing the cache mishandles newlines in values,
2079 (
2080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in #(
2083 *${as_nl}*)
2084 case $ac_var in #(
2085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2087 esac
2088 case $ac_var in #(
2089 _ | IFS | as_nl) ;; #(
2090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2091 *) { eval $ac_var=; unset $ac_var;} ;;
2092 esac ;;
2093 esac
2094 done
2095 (set) 2>&1 |
2096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2097 *${as_nl}ac_space=\ *)
2098 sed -n \
2099 "s/'\''/'\''\\\\'\'''\''/g;
2100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2101 ;; #(
2102 *)
2103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 ;;
2105 esac |
2106 sort
2107 )
2108 echo
2109
2110 $as_echo "## ----------------- ##
2111 ## Output variables. ##
2112 ## ----------------- ##"
2113 echo
2114 for ac_var in $ac_subst_vars
2115 do
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2123
2124 if test -n "$ac_subst_files"; then
2125 $as_echo "## ------------------- ##
2126 ## File substitutions. ##
2127 ## ------------------- ##"
2128 echo
2129 for ac_var in $ac_subst_files
2130 do
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2138 fi
2139
2140 if test -s confdefs.h; then
2141 $as_echo "## ----------- ##
2142 ## confdefs.h. ##
2143 ## ----------- ##"
2144 echo
2145 cat confdefs.h
2146 echo
2147 fi
2148 test "$ac_signal" != 0 &&
2149 $as_echo "$as_me: caught signal $ac_signal"
2150 $as_echo "$as_me: exit $exit_status"
2151 } >&5
2152 rm -f core *.core core.conftest.* &&
2153 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2154 exit $exit_status
2155 ' 0
2156 for ac_signal in 1 2 13 15; do
2157 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2158 done
2159 ac_signal=0
2160
2161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2162 rm -f -r conftest* confdefs.h
2163
2164 $as_echo "/* confdefs.h */" > confdefs.h
2165
2166 # Predefined preprocessor variables.
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_NAME "$PACKAGE_NAME"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_STRING "$PACKAGE_STRING"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_URL "$PACKAGE_URL"
2190 _ACEOF
2191
2192
2193 # Let the site file select an alternate cache file if it wants to.
2194 # Prefer an explicitly selected file to automatically selected ones.
2195 ac_site_file1=NONE
2196 ac_site_file2=NONE
2197 if test -n "$CONFIG_SITE"; then
2198 # We do not want a PATH search for config.site.
2199 case $CONFIG_SITE in #((
2200 -*) ac_site_file1=./$CONFIG_SITE;;
2201 */*) ac_site_file1=$CONFIG_SITE;;
2202 *) ac_site_file1=./$CONFIG_SITE;;
2203 esac
2204 elif test "x$prefix" != xNONE; then
2205 ac_site_file1=$prefix/share/config.site
2206 ac_site_file2=$prefix/etc/config.site
2207 else
2208 ac_site_file1=$ac_default_prefix/share/config.site
2209 ac_site_file2=$ac_default_prefix/etc/config.site
2210 fi
2211 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2212 do
2213 test "x$ac_site_file" = xNONE && continue
2214 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2216 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2217 sed 's/^/| /' "$ac_site_file" >&5
2218 . "$ac_site_file" \
2219 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 as_fn_error $? "failed to load site script $ac_site_file
2222 See \`config.log' for more details" "$LINENO" 5; }
2223 fi
2224 done
2225
2226 if test -r "$cache_file"; then
2227 # Some versions of bash will fail to source /dev/null (special files
2228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2231 $as_echo "$as_me: loading cache $cache_file" >&6;}
2232 case $cache_file in
2233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2234 *) . "./$cache_file";;
2235 esac
2236 fi
2237 else
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2239 $as_echo "$as_me: creating cache $cache_file" >&6;}
2240 >$cache_file
2241 fi
2242
2243 # Check that the precious variables saved in the cache have kept the same
2244 # value.
2245 ac_cache_corrupted=false
2246 for ac_var in $ac_precious_vars; do
2247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2248 eval ac_new_set=\$ac_env_${ac_var}_set
2249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2250 eval ac_new_val=\$ac_env_${ac_var}_value
2251 case $ac_old_set,$ac_new_set in
2252 set,)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2256 ,set)
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2259 ac_cache_corrupted=: ;;
2260 ,);;
2261 *)
2262 if test "x$ac_old_val" != "x$ac_new_val"; then
2263 # differences in whitespace do not lead to failure.
2264 ac_old_val_w=`echo x $ac_old_val`
2265 ac_new_val_w=`echo x $ac_new_val`
2266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2269 ac_cache_corrupted=:
2270 else
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2273 eval $ac_var=\$ac_old_val
2274 fi
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2276 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2278 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2279 fi;;
2280 esac
2281 # Pass precious variables to config.status.
2282 if test "$ac_new_set" = set; then
2283 case $ac_new_val in
2284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2285 *) ac_arg=$ac_var=$ac_new_val ;;
2286 esac
2287 case " $ac_configure_args " in
2288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2290 esac
2291 fi
2292 done
2293 if $ac_cache_corrupted; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2298 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 fi
2300 ## -------------------- ##
2301 ## Main body of script. ##
2302 ## -------------------- ##
2303
2304 ac_ext=c
2305 ac_cpp='$CPP $CPPFLAGS'
2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
2310
2311
2312 ac_config_headers="$ac_config_headers config.h"
2313
2314 ac_aux_dir=
2315 for ac_dir in . "$srcdir"/.; do
2316 if test -f "$ac_dir/install-sh"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/install-sh -c"
2319 break
2320 elif test -f "$ac_dir/install.sh"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/install.sh -c"
2323 break
2324 elif test -f "$ac_dir/shtool"; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/shtool install -c"
2327 break
2328 fi
2329 done
2330 if test -z "$ac_aux_dir"; then
2331 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2332 fi
2333
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341
2342
2343
2344 # Initialize Automake
2345 am__api_version='1.11'
2346
2347 # Find a good install program. We prefer a C program (faster),
2348 # so one script is as good as another. But avoid the broken or
2349 # incompatible versions:
2350 # SysV /etc/install, /usr/sbin/install
2351 # SunOS /usr/etc/install
2352 # IRIX /sbin/install
2353 # AIX /bin/install
2354 # AmigaOS /C/install, which installs bootblocks on floppy discs
2355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2358 # OS/2's system install, which has a completely different semantic
2359 # ./install, which can be erroneously created by make from ./install.sh.
2360 # Reject install programs that cannot install multiple files.
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2362 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2363 if test -z "$INSTALL"; then
2364 if ${ac_cv_path_install+:} false; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 # Account for people who put trailing slashes in PATH elements.
2373 case $as_dir/ in #((
2374 ./ | .// | /[cC]/* | \
2375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2376 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2377 /usr/ucb/* ) ;;
2378 *)
2379 # OSF1 and SCO ODT 3.0 have their own names for install.
2380 # Don't use installbsd from OSF since it installs stuff as root
2381 # by default.
2382 for ac_prog in ginstall scoinst install; do
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2385 if test $ac_prog = install &&
2386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387 # AIX install. It has an incompatible calling convention.
2388 :
2389 elif test $ac_prog = install &&
2390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391 # program-specific install script used by HP pwplus--don't use.
2392 :
2393 else
2394 rm -rf conftest.one conftest.two conftest.dir
2395 echo one > conftest.one
2396 echo two > conftest.two
2397 mkdir conftest.dir
2398 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2399 test -s conftest.one && test -s conftest.two &&
2400 test -s conftest.dir/conftest.one &&
2401 test -s conftest.dir/conftest.two
2402 then
2403 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2404 break 3
2405 fi
2406 fi
2407 fi
2408 done
2409 done
2410 ;;
2411 esac
2412
2413 done
2414 IFS=$as_save_IFS
2415
2416 rm -rf conftest.one conftest.two conftest.dir
2417
2418 fi
2419 if test "${ac_cv_path_install+set}" = set; then
2420 INSTALL=$ac_cv_path_install
2421 else
2422 # As a last resort, use the slow shell script. Don't cache a
2423 # value for INSTALL within a source directory, because that will
2424 # break other packages using the cache if that directory is
2425 # removed, or if the value is a relative name.
2426 INSTALL=$ac_install_sh
2427 fi
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2430 $as_echo "$INSTALL" >&6; }
2431
2432 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2433 # It thinks the first close brace ends the variable substitution.
2434 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2435
2436 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2437
2438 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2441 $as_echo_n "checking whether build environment is sane... " >&6; }
2442 # Just in case
2443 sleep 1
2444 echo timestamp > conftest.file
2445 # Reject unsafe characters in $srcdir or the absolute working directory
2446 # name. Accept space and tab only in the latter.
2447 am_lf='
2448 '
2449 case `pwd` in
2450 *[\\\"\#\$\&\'\`$am_lf]*)
2451 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2452 esac
2453 case $srcdir in
2454 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2455 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2456 esac
2457
2458 # Do `set' in a subshell so we don't clobber the current shell's
2459 # arguments. Must try -L first in case configure is actually a
2460 # symlink; some systems play weird games with the mod time of symlinks
2461 # (eg FreeBSD returns the mod time of the symlink's containing
2462 # directory).
2463 if (
2464 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2465 if test "$*" = "X"; then
2466 # -L didn't work.
2467 set X `ls -t "$srcdir/configure" conftest.file`
2468 fi
2469 rm -f conftest.file
2470 if test "$*" != "X $srcdir/configure conftest.file" \
2471 && test "$*" != "X conftest.file $srcdir/configure"; then
2472
2473 # If neither matched, then we have a broken ls. This can happen
2474 # if, for instance, CONFIG_SHELL is bash and it inherits a
2475 # broken ls alias from the environment. This has actually
2476 # happened. Such a system could not be considered "sane".
2477 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2478 alias in your environment" "$LINENO" 5
2479 fi
2480
2481 test "$2" = conftest.file
2482 )
2483 then
2484 # Ok.
2485 :
2486 else
2487 as_fn_error $? "newly created file is older than distributed files!
2488 Check your system clock" "$LINENO" 5
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2491 $as_echo "yes" >&6; }
2492 test "$program_prefix" != NONE &&
2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s,x,x', remove it if useless.
2499 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501
2502 # expand $ac_aux_dir to an absolute path
2503 am_aux_dir=`cd $ac_aux_dir && pwd`
2504
2505 if test x"${MISSING+set}" != xset; then
2506 case $am_aux_dir in
2507 *\ * | *\ *)
2508 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2509 *)
2510 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2511 esac
2512 fi
2513 # Use eval to expand $SHELL
2514 if eval "$MISSING --run true"; then
2515 am_missing_run="$MISSING --run "
2516 else
2517 am_missing_run=
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2519 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2520 fi
2521
2522 if test x"${install_sh}" != xset; then
2523 case $am_aux_dir in
2524 *\ * | *\ *)
2525 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2526 *)
2527 install_sh="\${SHELL} $am_aux_dir/install-sh"
2528 esac
2529 fi
2530
2531 # Installed binaries are usually stripped using `strip' when the user
2532 # run `make install-strip'. However `strip' might not be the right
2533 # tool to use in cross-compilation environments, therefore Automake
2534 # will honor the `STRIP' environment variable to overrule this program.
2535 if test "$cross_compiling" != no; then
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}strip; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_STRIP+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$STRIP"; then
2545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 STRIP=$ac_cv_prog_STRIP
2565 if test -n "$STRIP"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2567 $as_echo "$STRIP" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573
2574 fi
2575 if test -z "$ac_cv_prog_STRIP"; then
2576 ac_ct_STRIP=$STRIP
2577 # Extract the first word of "strip", so it can be a program name with args.
2578 set dummy strip; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$ac_ct_STRIP"; then
2585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_STRIP="strip"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2605 if test -n "$ac_ct_STRIP"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2607 $as_echo "$ac_ct_STRIP" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613 if test "x$ac_ct_STRIP" = x; then
2614 STRIP=":"
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622 STRIP=$ac_ct_STRIP
2623 fi
2624 else
2625 STRIP="$ac_cv_prog_STRIP"
2626 fi
2627
2628 fi
2629 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2632 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2633 if test -z "$MKDIR_P"; then
2634 if ${ac_cv_path_mkdir+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_prog in mkdir gmkdir; do
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2645 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2646 'mkdir (GNU coreutils) '* | \
2647 'mkdir (coreutils) '* | \
2648 'mkdir (fileutils) '4.1*)
2649 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2650 break 3;;
2651 esac
2652 done
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658
2659 test -d ./--version && rmdir ./--version
2660 if test "${ac_cv_path_mkdir+set}" = set; then
2661 MKDIR_P="$ac_cv_path_mkdir -p"
2662 else
2663 # As a last resort, use the slow shell script. Don't cache a
2664 # value for MKDIR_P within a source directory, because that will
2665 # break other packages using the cache if that directory is
2666 # removed, or if the value is a relative name.
2667 MKDIR_P="$ac_install_sh -d"
2668 fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2671 $as_echo "$MKDIR_P" >&6; }
2672
2673 mkdir_p="$MKDIR_P"
2674 case $mkdir_p in
2675 [\\/$]* | ?:[\\/]*) ;;
2676 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2677 esac
2678
2679 for ac_prog in gawk mawk nawk awk
2680 do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_AWK+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$AWK"; then
2689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_AWK="$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 AWK=$ac_cv_prog_AWK
2709 if test -n "$AWK"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2711 $as_echo "$AWK" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718 test -n "$AWK" && break
2719 done
2720
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2722 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2723 set x ${MAKE-make}
2724 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2725 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 cat >conftest.make <<\_ACEOF
2729 SHELL = /bin/sh
2730 all:
2731 @echo '@@@%%%=$(MAKE)=@@@%%%'
2732 _ACEOF
2733 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2734 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2735 *@@@%%%=?*=@@@%%%*)
2736 eval ac_cv_prog_make_${ac_make}_set=yes;;
2737 *)
2738 eval ac_cv_prog_make_${ac_make}_set=no;;
2739 esac
2740 rm -f conftest.make
2741 fi
2742 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2744 $as_echo "yes" >&6; }
2745 SET_MAKE=
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 SET_MAKE="MAKE=${MAKE-make}"
2750 fi
2751
2752 rm -rf .tst 2>/dev/null
2753 mkdir .tst 2>/dev/null
2754 if test -d .tst; then
2755 am__leading_dot=.
2756 else
2757 am__leading_dot=_
2758 fi
2759 rmdir .tst 2>/dev/null
2760
2761 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2762 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2763 # is not polluted with repeated "-I."
2764 am__isrc=' -I$(srcdir)'
2765 # test to see if srcdir already configured
2766 if test -f $srcdir/config.status; then
2767 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2768 fi
2769 fi
2770
2771 # test whether we have cygpath
2772 if test -z "$CYGPATH_W"; then
2773 if (cygpath --version) >/dev/null 2>/dev/null; then
2774 CYGPATH_W='cygpath -w'
2775 else
2776 CYGPATH_W=echo
2777 fi
2778 fi
2779
2780
2781 # Define the identity of the package.
2782 PACKAGE='xf86-video-tga'
2783 VERSION='1.2.2'
2784
2785
2786 cat >>confdefs.h <<_ACEOF
2787 #define PACKAGE "$PACKAGE"
2788 _ACEOF
2789
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define VERSION "$VERSION"
2793 _ACEOF
2794
2795 # Some tools Automake needs.
2796
2797 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2798
2799
2800 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2801
2802
2803 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2804
2805
2806 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2807
2808
2809 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2810
2811 # We need awk for the "check" target. The system "awk" is bad on
2812 # some platforms.
2813 # Always define AMTAR for backward compatibility. Yes, it's still used
2814 # in the wild :-( We should find a proper way to deprecate it ...
2815 AMTAR='$${TAR-tar}'
2816
2817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2818
2819
2820
2821
2822
2823
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2825 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2826 # Check whether --enable-maintainer-mode was given.
2827 if test "${enable_maintainer_mode+set}" = set; then :
2828 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2829 else
2830 USE_MAINTAINER_MODE=no
2831 fi
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2834 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2835 if test $USE_MAINTAINER_MODE = yes; then
2836 MAINTAINER_MODE_TRUE=
2837 MAINTAINER_MODE_FALSE='#'
2838 else
2839 MAINTAINER_MODE_TRUE='#'
2840 MAINTAINER_MODE_FALSE=
2841 fi
2842
2843 MAINT=$MAINTAINER_MODE_TRUE
2844
2845
2846
2847 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859 DEPDIR="${am__leading_dot}deps"
2860
2861 ac_config_commands="$ac_config_commands depfiles"
2862
2863
2864 am_make=${MAKE-make}
2865 cat > confinc << 'END'
2866 am__doit:
2867 @echo this is the am__doit target
2868 .PHONY: am__doit
2869 END
2870 # If we don't find an include directive, just comment out the code.
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2872 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2873 am__include="#"
2874 am__quote=
2875 _am_result=none
2876 # First try GNU make style include.
2877 echo "include confinc" > confmf
2878 # Ignore all kinds of additional output from `make'.
2879 case `$am_make -s -f confmf 2> /dev/null` in #(
2880 *the\ am__doit\ target*)
2881 am__include=include
2882 am__quote=
2883 _am_result=GNU
2884 ;;
2885 esac
2886 # Now try BSD make style include.
2887 if test "$am__include" = "#"; then
2888 echo '.include "confinc"' > confmf
2889 case `$am_make -s -f confmf 2> /dev/null` in #(
2890 *the\ am__doit\ target*)
2891 am__include=.include
2892 am__quote="\""
2893 _am_result=BSD
2894 ;;
2895 esac
2896 fi
2897
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2900 $as_echo "$_am_result" >&6; }
2901 rm -f confinc confmf
2902
2903 # Check whether --enable-dependency-tracking was given.
2904 if test "${enable_dependency_tracking+set}" = set; then :
2905 enableval=$enable_dependency_tracking;
2906 fi
2907
2908 if test "x$enable_dependency_tracking" != xno; then
2909 am_depcomp="$ac_aux_dir/depcomp"
2910 AMDEPBACKSLASH='\'
2911 am__nodep='_no'
2912 fi
2913 if test "x$enable_dependency_tracking" != xno; then
2914 AMDEP_TRUE=
2915 AMDEP_FALSE='#'
2916 else
2917 AMDEP_TRUE='#'
2918 AMDEP_FALSE=
2919 fi
2920
2921
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$ac_cv_prog_CC"; then
2967 ac_ct_CC=$CC
2968 # Extract the first word of "gcc", so it can be a program name with args.
2969 set dummy gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_CC="gcc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004 if test "x$ac_ct_CC" = x; then
3005 CC=""
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013 CC=$ac_ct_CC
3014 fi
3015 else
3016 CC="$ac_cv_prog_CC"
3017 fi
3018
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}cc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_CC="${ac_tool_prefix}cc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 fi
3059 fi
3060 if test -z "$CC"; then
3061 # Extract the first word of "cc", so it can be a program name with args.
3062 set dummy cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 ac_prog_rejected=no
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3080 ac_prog_rejected=yes
3081 continue
3082 fi
3083 ac_cv_prog_CC="cc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3090
3091 if test $ac_prog_rejected = yes; then
3092 # We found a bogon in the path, so make sure we never use it.
3093 set dummy $ac_cv_prog_CC
3094 shift
3095 if test $# != 0; then
3096 # We chose a different compiler from the bogus one.
3097 # However, it has the same basename, so the bogon will be chosen
3098 # first if we set CC to just the basename; use the full file name.
3099 shift
3100 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3101 fi
3102 fi
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115 fi
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 for ac_prog in cl.exe
3119 do
3120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 test -n "$CC" && break
3158 done
3159 fi
3160 if test -z "$CC"; then
3161 ac_ct_CC=$CC
3162 for ac_prog in cl.exe
3163 do
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_ac_ct_CC="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 test -n "$ac_ct_CC" && break
3202 done
3203
3204 if test "x$ac_ct_CC" = x; then
3205 CC=""
3206 else
3207 case $cross_compiling:$ac_tool_warned in
3208 yes:)
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213 CC=$ac_ct_CC
3214 fi
3215 fi
3216
3217 fi
3218
3219
3220 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error $? "no acceptable C compiler found in \$PATH
3223 See \`config.log' for more details" "$LINENO" 5; }
3224
3225 # Provide some information about the compiler.
3226 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3227 set X $ac_compile
3228 ac_compiler=$2
3229 for ac_option in --version -v -V -qversion; do
3230 { { ac_try="$ac_compiler $ac_option >&5"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3238 ac_status=$?
3239 if test -s conftest.err; then
3240 sed '10a\
3241 ... rest of stderr output deleted ...
3242 10q' conftest.err >conftest.er1
3243 cat conftest.er1 >&5
3244 fi
3245 rm -f conftest.er1 conftest.err
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }
3248 done
3249
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 ac_clean_files_save=$ac_clean_files
3262 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3263 # Try to create an executable without -o first, disregard a.out.
3264 # It will help us diagnose broken compilers, and finding out an intuition
3265 # of exeext.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3267 $as_echo_n "checking whether the C compiler works... " >&6; }
3268 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3269
3270 # The possible output files:
3271 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3272
3273 ac_rmfiles=
3274 for ac_file in $ac_files
3275 do
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3279 esac
3280 done
3281 rm -f $ac_rmfiles
3282
3283 if { { ac_try="$ac_link_default"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_link_default") 2>&5
3291 ac_status=$?
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }; then :
3294 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3295 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3296 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3297 # so that the user can short-circuit this test for compilers unknown to
3298 # Autoconf.
3299 for ac_file in $ac_files ''
3300 do
3301 test -f "$ac_file" || continue
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3304 ;;
3305 [ab].out )
3306 # We found the default executable, but exeext='' is most
3307 # certainly right.
3308 break;;
3309 *.* )
3310 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311 then :; else
3312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 fi
3314 # We set ac_cv_exeext here because the later test for it is not
3315 # safe: cross compilers may not add the suffix if given an `-o'
3316 # argument, so we may need to know it at that point already.
3317 # Even if this section looks crufty: it has the advantage of
3318 # actually working.
3319 break;;
3320 * )
3321 break;;
3322 esac
3323 done
3324 test "$ac_cv_exeext" = no && ac_cv_exeext=
3325
3326 else
3327 ac_file=''
3328 fi
3329 if test -z "$ac_file"; then :
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error 77 "C compiler cannot create executables
3338 See \`config.log' for more details" "$LINENO" 5; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3344 $as_echo_n "checking for C compiler default output file name... " >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3346 $as_echo "$ac_file" >&6; }
3347 ac_exeext=$ac_cv_exeext
3348
3349 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3350 ac_clean_files=$ac_clean_files_save
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3352 $as_echo_n "checking for suffix of executables... " >&6; }
3353 if { { ac_try="$ac_link"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_link") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; then :
3364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3366 # work properly (i.e., refer to `conftest.exe'), while it won't with
3367 # `rm'.
3368 for ac_file in conftest.exe conftest conftest.*; do
3369 test -f "$ac_file" || continue
3370 case $ac_file in
3371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373 break;;
3374 * ) break;;
3375 esac
3376 done
3377 else
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 fi
3383 rm -f conftest conftest$ac_cv_exeext
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3385 $as_echo "$ac_cv_exeext" >&6; }
3386
3387 rm -f conftest.$ac_ext
3388 EXEEXT=$ac_cv_exeext
3389 ac_exeext=$EXEEXT
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392 #include <stdio.h>
3393 int
3394 main ()
3395 {
3396 FILE *f = fopen ("conftest.out", "w");
3397 return ferror (f) || fclose (f) != 0;
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 ac_clean_files="$ac_clean_files conftest.out"
3404 # Check that the compiler produces executables we can run. If not, either
3405 # the compiler is broken, or we cross compile.
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3407 $as_echo_n "checking whether we are cross compiling... " >&6; }
3408 if test "$cross_compiling" != yes; then
3409 { { ac_try="$ac_link"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3420 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; }; then
3431 cross_compiling=no
3432 else
3433 if test "$cross_compiling" = maybe; then
3434 cross_compiling=yes
3435 else
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot run C compiled programs.
3439 If you meant to cross compile, use \`--host'.
3440 See \`config.log' for more details" "$LINENO" 5; }
3441 fi
3442 fi
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3445 $as_echo "$cross_compiling" >&6; }
3446
3447 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3450 $as_echo_n "checking for suffix of object files... " >&6; }
3451 if ${ac_cv_objext+:} false; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3456
3457 int
3458 main ()
3459 {
3460
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.o conftest.obj
3466 if { { ac_try="$ac_compile"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_compile") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3482 break;;
3483 esac
3484 done
3485 else
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details" "$LINENO" 5; }
3493 fi
3494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3497 $as_echo "$ac_cv_objext" >&6; }
3498 OBJEXT=$ac_cv_objext
3499 ac_objext=$OBJEXT
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3502 if ${ac_cv_c_compiler_gnu+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main ()
3510 {
3511 #ifndef __GNUC__
3512 choke me
3513 #endif
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_compiler_gnu=yes
3521 else
3522 ac_compiler_gnu=no
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3526
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3530 if test $ac_compiler_gnu = yes; then
3531 GCC=yes
3532 else
3533 GCC=
3534 fi
3535 ac_test_CFLAGS=${CFLAGS+set}
3536 ac_save_CFLAGS=$CFLAGS
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3539 if ${ac_cv_prog_cc_g+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 ac_save_c_werror_flag=$ac_c_werror_flag
3543 ac_c_werror_flag=yes
3544 ac_cv_prog_cc_g=no
3545 CFLAGS="-g"
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548
3549 int
3550 main ()
3551 {
3552
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_g=yes
3559 else
3560 CFLAGS=""
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main ()
3566 {
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573
3574 else
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3576 CFLAGS="-g"
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_prog_cc_g=yes
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3599 $as_echo "$ac_cv_prog_cc_g" >&6; }
3600 if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3604 CFLAGS="-g -O2"
3605 else
3606 CFLAGS="-g"
3607 fi
3608 else
3609 if test "$GCC" = yes; then
3610 CFLAGS="-O2"
3611 else
3612 CFLAGS=
3613 fi
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3617 if ${ac_cv_prog_cc_c89+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 ac_cv_prog_cc_c89=no
3621 ac_save_CC=$CC
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <stdarg.h>
3625 #include <stdio.h>
3626 #include <sys/types.h>
3627 #include <sys/stat.h>
3628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3629 struct buf { int x; };
3630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3631 static char *e (p, i)
3632 char **p;
3633 int i;
3634 {
3635 return p[i];
3636 }
3637 static char *f (char * (*g) (char **, int), char **p, ...)
3638 {
3639 char *s;
3640 va_list v;
3641 va_start (v,p);
3642 s = g (p, va_arg (v,int));
3643 va_end (v);
3644 return s;
3645 }
3646
3647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3648 function prototypes and stuff, but not '\xHH' hex character constants.
3649 These don't provoke an error unfortunately, instead are silently treated
3650 as 'x'. The following induces an error, until -std is added to get
3651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3652 array size at least. It's necessary to write '\x00'==0 to get something
3653 that's true only with -std. */
3654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3655
3656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3657 inside strings and character constants. */
3658 #define FOO(x) 'x'
3659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3660
3661 int test (int i, double x);
3662 struct s1 {int (*f) (int a);};
3663 struct s2 {int (*f) (double a);};
3664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 int argc;
3666 char **argv;
3667 int
3668 main ()
3669 {
3670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3677 do
3678 CC="$ac_save_CC $ac_arg"
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_c89=$ac_arg
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext
3683 test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 done
3685 rm -f conftest.$ac_ext
3686 CC=$ac_save_CC
3687
3688 fi
3689 # AC_CACHE_VAL
3690 case "x$ac_cv_prog_cc_c89" in
3691 x)
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3693 $as_echo "none needed" >&6; } ;;
3694 xno)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3696 $as_echo "unsupported" >&6; } ;;
3697 *)
3698 CC="$CC $ac_cv_prog_cc_c89"
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3700 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3701 esac
3702 if test "x$ac_cv_prog_cc_c89" != xno; then :
3703
3704 fi
3705
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712 depcc="$CC" am_compiler_list=
3713
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3715 $as_echo_n "checking dependency style of $depcc... " >&6; }
3716 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3720 # We make a subdir and do the tests there. Otherwise we can end up
3721 # making bogus files that we don't know about and never remove. For
3722 # instance it was reported that on HP-UX the gcc test will end up
3723 # making a dummy file named `D' -- because `-MD' means `put the output
3724 # in D'.
3725 rm -rf conftest.dir
3726 mkdir conftest.dir
3727 # Copy depcomp to subdir because otherwise we won't find it if we're
3728 # using a relative directory.
3729 cp "$am_depcomp" conftest.dir
3730 cd conftest.dir
3731 # We will build objects and dependencies in a subdirectory because
3732 # it helps to detect inapplicable dependency modes. For instance
3733 # both Tru64's cc and ICC support -MD to output dependencies as a
3734 # side effect of compilation, but ICC will put the dependencies in
3735 # the current directory while Tru64 will put them in the object
3736 # directory.
3737 mkdir sub
3738
3739 am_cv_CC_dependencies_compiler_type=none
3740 if test "$am_compiler_list" = ""; then
3741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742 fi
3743 am__universal=false
3744 case " $depcc " in #(
3745 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746 esac
3747
3748 for depmode in $am_compiler_list; do
3749 # Setup a source with many dependencies, because some compilers
3750 # like to wrap large dependency lists on column 80 (with \), and
3751 # we should not choose a depcomp mode which is confused by this.
3752 #
3753 # We need to recreate these files for each test, as the compiler may
3754 # overwrite some of them when testing with obscure command lines.
3755 # This happens at least with the AIX C compiler.
3756 : > sub/conftest.c
3757 for i in 1 2 3 4 5 6; do
3758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3760 # Solaris 8's {/usr,}/bin/sh.
3761 touch sub/conftst$i.h
3762 done
3763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3766 # mode. It turns out that the SunPro C++ compiler does not properly
3767 # handle `-M -o', and we need to detect this. Also, some Intel
3768 # versions had trouble with output in subdirs
3769 am__obj=sub/conftest.${OBJEXT-o}
3770 am__minus_obj="-o $am__obj"
3771 case $depmode in
3772 gcc)
3773 # This depmode causes a compiler race in universal mode.
3774 test "$am__universal" = false || continue
3775 ;;
3776 nosideeffect)
3777 # after this tag, mechanisms are not by side-effect, so they'll
3778 # only be used when explicitly requested
3779 if test "x$enable_dependency_tracking" = xyes; then
3780 continue
3781 else
3782 break
3783 fi
3784 ;;
3785 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3786 # This compiler won't grok `-c -o', but also, the minuso test has
3787 # not run yet. These depmodes are late enough in the game, and
3788 # so weak that their functioning should not be impacted.
3789 am__obj=conftest.${OBJEXT-o}
3790 am__minus_obj=
3791 ;;
3792 none) break ;;
3793 esac
3794 if depmode=$depmode \
3795 source=sub/conftest.c object=$am__obj \
3796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798 >/dev/null 2>conftest.err &&
3799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803 # icc doesn't choke on unknown options, it will just issue warnings
3804 # or remarks (even with -Werror). So we grep stderr for any message
3805 # that says an option was ignored or not supported.
3806 # When given -MP, icc 7.0 and 7.1 complain thusly:
3807 # icc: Command line warning: ignoring option '-M'; no argument required
3808 # The diagnosis changed in icc 8.0:
3809 # icc: Command line remark: option '-MP' not supported
3810 if (grep 'ignoring option' conftest.err ||
3811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812 am_cv_CC_dependencies_compiler_type=$depmode
3813 break
3814 fi
3815 fi
3816 done
3817
3818 cd ..
3819 rm -rf conftest.dir
3820 else
3821 am_cv_CC_dependencies_compiler_type=none
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829 if
3830 test "x$enable_dependency_tracking" != xno \
3831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832 am__fastdepCC_TRUE=
3833 am__fastdepCC_FALSE='#'
3834 else
3835 am__fastdepCC_TRUE='#'
3836 am__fastdepCC_FALSE=
3837 fi
3838
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3841 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3842 if ${ac_cv_prog_cc_c99+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 ac_cv_prog_cc_c99=no
3846 ac_save_CC=$CC
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <stdarg.h>
3850 #include <stdbool.h>
3851 #include <stdlib.h>
3852 #include <wchar.h>
3853 #include <stdio.h>
3854
3855 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3856 #define debug(...) fprintf (stderr, __VA_ARGS__)
3857 #define showlist(...) puts (#__VA_ARGS__)
3858 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3859 static void
3860 test_varargs_macros (void)
3861 {
3862 int x = 1234;
3863 int y = 5678;
3864 debug ("Flag");
3865 debug ("X = %d\n", x);
3866 showlist (The first, second, and third items.);
3867 report (x>y, "x is %d but y is %d", x, y);
3868 }
3869
3870 // Check long long types.
3871 #define BIG64 18446744073709551615ull
3872 #define BIG32 4294967295ul
3873 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3874 #if !BIG_OK
3875 your preprocessor is broken;
3876 #endif
3877 #if BIG_OK
3878 #else
3879 your preprocessor is broken;
3880 #endif
3881 static long long int bignum = -9223372036854775807LL;
3882 static unsigned long long int ubignum = BIG64;
3883
3884 struct incomplete_array
3885 {
3886 int datasize;
3887 double data[];
3888 };
3889
3890 struct named_init {
3891 int number;
3892 const wchar_t *name;
3893 double average;
3894 };
3895
3896 typedef const char *ccp;
3897
3898 static inline int
3899 test_restrict (ccp restrict text)
3900 {
3901 // See if C++-style comments work.
3902 // Iterate through items via the restricted pointer.
3903 // Also check for declarations in for loops.
3904 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3905 continue;
3906 return 0;
3907 }
3908
3909 // Check varargs and va_copy.
3910 static void
3911 test_varargs (const char *format, ...)
3912 {
3913 va_list args;
3914 va_start (args, format);
3915 va_list args_copy;
3916 va_copy (args_copy, args);
3917
3918 const char *str;
3919 int number;
3920 float fnumber;
3921
3922 while (*format)
3923 {
3924 switch (*format++)
3925 {
3926 case 's': // string
3927 str = va_arg (args_copy, const char *);
3928 break;
3929 case 'd': // int
3930 number = va_arg (args_copy, int);
3931 break;
3932 case 'f': // float
3933 fnumber = va_arg (args_copy, double);
3934 break;
3935 default:
3936 break;
3937 }
3938 }
3939 va_end (args_copy);
3940 va_end (args);
3941 }
3942
3943 int
3944 main ()
3945 {
3946
3947 // Check bool.
3948 _Bool success = false;
3949
3950 // Check restrict.
3951 if (test_restrict ("String literal") == 0)
3952 success = true;
3953 char *restrict newvar = "Another string";
3954
3955 // Check varargs.
3956 test_varargs ("s, d' f .", "string", 65, 34.234);
3957 test_varargs_macros ();
3958
3959 // Check flexible array members.
3960 struct incomplete_array *ia =
3961 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3962 ia->datasize = 10;
3963 for (int i = 0; i < ia->datasize; ++i)
3964 ia->data[i] = i * 1.234;
3965
3966 // Check named initializers.
3967 struct named_init ni = {
3968 .number = 34,
3969 .name = L"Test wide string",
3970 .average = 543.34343,
3971 };
3972
3973 ni.number = 58;
3974
3975 int dynamic_array[ni.number];
3976 dynamic_array[ni.number - 1] = 543;
3977
3978 // work around unused variable warnings
3979 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3980 || dynamic_array[ni.number - 1] != 543);
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3987 do
3988 CC="$ac_save_CC $ac_arg"
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_cv_prog_cc_c99=$ac_arg
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext
3993 test "x$ac_cv_prog_cc_c99" != "xno" && break
3994 done
3995 rm -f conftest.$ac_ext
3996 CC=$ac_save_CC
3997
3998 fi
3999 # AC_CACHE_VAL
4000 case "x$ac_cv_prog_cc_c99" in
4001 x)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4004 xno)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4007 *)
4008 CC="$CC $ac_cv_prog_cc_c99"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4010 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4011 esac
4012 if test "x$ac_cv_prog_cc_c99" != xno; then :
4013
4014 fi
4015
4016
4017
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4024 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4025 # On Suns, sometimes $CPP names a directory.
4026 if test -n "$CPP" && test -d "$CPP"; then
4027 CPP=
4028 fi
4029 if test -z "$CPP"; then
4030 if ${ac_cv_prog_CPP+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 # Double quotes because CPP needs to be expanded
4034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035 do
4036 ac_preproc_ok=false
4037 for ac_c_preproc_warn_flag in '' yes
4038 do
4039 # Use a header file that comes with gcc, so configuring glibc
4040 # with a fresh cross-compiler works.
4041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042 # <limits.h> exists even on freestanding compilers.
4043 # On the NeXT, cc -E runs the code through the compiler's parser,
4044 # not just through cpp. "Syntax error" is here to catch this case.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #ifdef __STDC__
4048 # include <limits.h>
4049 #else
4050 # include <assert.h>
4051 #endif
4052 Syntax error
4053 _ACEOF
4054 if ac_fn_c_try_cpp "$LINENO"; then :
4055
4056 else
4057 # Broken: fails on valid input.
4058 continue
4059 fi
4060 rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <ac_nonexistent.h>
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4069 # Broken: success on invalid input.
4070 continue
4071 else
4072 # Passes both tests.
4073 ac_preproc_ok=:
4074 break
4075 fi
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078 done
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.i conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then :
4082 break
4083 fi
4084
4085 done
4086 ac_cv_prog_CPP=$CPP
4087
4088 fi
4089 CPP=$ac_cv_prog_CPP
4090 else
4091 ac_cv_prog_CPP=$CPP
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4094 $as_echo "$CPP" >&6; }
4095 ac_preproc_ok=false
4096 for ac_c_preproc_warn_flag in '' yes
4097 do
4098 # Use a header file that comes with gcc, so configuring glibc
4099 # with a fresh cross-compiler works.
4100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101 # <limits.h> exists even on freestanding compilers.
4102 # On the NeXT, cc -E runs the code through the compiler's parser,
4103 # not just through cpp. "Syntax error" is here to catch this case.
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #ifdef __STDC__
4107 # include <limits.h>
4108 #else
4109 # include <assert.h>
4110 #endif
4111 Syntax error
4112 _ACEOF
4113 if ac_fn_c_try_cpp "$LINENO"; then :
4114
4115 else
4116 # Broken: fails on valid input.
4117 continue
4118 fi
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121 # OK, works on sane cases. Now check whether nonexistent headers
4122 # can be detected and how.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <ac_nonexistent.h>
4126 _ACEOF
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 # Passes both tests.
4132 ac_preproc_ok=:
4133 break
4134 fi
4135 rm -f conftest.err conftest.i conftest.$ac_ext
4136
4137 done
4138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139 rm -f conftest.i conftest.err conftest.$ac_ext
4140 if $ac_preproc_ok; then :
4141
4142 else
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4146 See \`config.log' for more details" "$LINENO" 5; }
4147 fi
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4157 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158 if ${ac_cv_path_GREP+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -z "$GREP"; then
4162 ac_path_GREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166 do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in grep ggrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4173 # Check for GNU ac_path_GREP and select it if it is found.
4174 # Check for GNU $ac_path_GREP
4175 case `"$ac_path_GREP" --version 2>&1` in
4176 *GNU*)
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4178 *)
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'GREP' >> "conftest.nl"
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 as_fn_arith $ac_count + 1 && ac_count=$as_val
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_GREP="$ac_path_GREP"
4193 ac_path_GREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 esac
4200
4201 $ac_path_GREP_found && break 3
4202 done
4203 done
4204 done
4205 IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_GREP"; then
4207 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4208 fi
4209 else
4210 ac_cv_path_GREP=$GREP
4211 fi
4212
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4215 $as_echo "$ac_cv_path_GREP" >&6; }
4216 GREP="$ac_cv_path_GREP"
4217
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4220 $as_echo_n "checking for egrep... " >&6; }
4221 if ${ac_cv_path_EGREP+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4225 then ac_cv_path_EGREP="$GREP -E"
4226 else
4227 if test -z "$EGREP"; then
4228 ac_path_EGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in egrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4239 # Check for GNU ac_path_EGREP and select it if it is found.
4240 # Check for GNU $ac_path_EGREP
4241 case `"$ac_path_EGREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4244 *)
4245 ac_count=0
4246 $as_echo_n 0123456789 >"conftest.in"
4247 while :
4248 do
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'EGREP' >> "conftest.nl"
4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_EGREP="$ac_path_EGREP"
4259 ac_path_EGREP_max=$ac_count
4260 fi
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4266
4267 $ac_path_EGREP_found && break 3
4268 done
4269 done
4270 done
4271 IFS=$as_save_IFS
4272 if test -z "$ac_cv_path_EGREP"; then
4273 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4274 fi
4275 else
4276 ac_cv_path_EGREP=$EGREP
4277 fi
4278
4279 fi
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4282 $as_echo "$ac_cv_path_EGREP" >&6; }
4283 EGREP="$ac_cv_path_EGREP"
4284
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4287 $as_echo_n "checking for ANSI C header files... " >&6; }
4288 if ${ac_cv_header_stdc+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <stdlib.h>
4294 #include <stdarg.h>
4295 #include <string.h>
4296 #include <float.h>
4297
4298 int
4299 main ()
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_header_stdc=yes
4308 else
4309 ac_cv_header_stdc=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312
4313 if test $ac_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <string.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then :
4322
4323 else
4324 ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdlib.h>
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "free" >/dev/null 2>&1; then :
4339
4340 else
4341 ac_cv_header_stdc=no
4342 fi
4343 rm -f conftest*
4344
4345 fi
4346
4347 if test $ac_cv_header_stdc = yes; then
4348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349 if test "$cross_compiling" = yes; then :
4350 :
4351 else
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 #include <ctype.h>
4355 #include <stdlib.h>
4356 #if ((' ' & 0x0FF) == 0x020)
4357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4359 #else
4360 # define ISLOWER(c) \
4361 (('a' <= (c) && (c) <= 'i') \
4362 || ('j' <= (c) && (c) <= 'r') \
4363 || ('s' <= (c) && (c) <= 'z'))
4364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4365 #endif
4366
4367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368 int
4369 main ()
4370 {
4371 int i;
4372 for (i = 0; i < 256; i++)
4373 if (XOR (islower (i), ISLOWER (i))
4374 || toupper (i) != TOUPPER (i))
4375 return 2;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_run "$LINENO"; then :
4380
4381 else
4382 ac_cv_header_stdc=no
4383 fi
4384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4385 conftest.$ac_objext conftest.beam conftest.$ac_ext
4386 fi
4387
4388 fi
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4391 $as_echo "$ac_cv_header_stdc" >&6; }
4392 if test $ac_cv_header_stdc = yes; then
4393
4394 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4395
4396 fi
4397
4398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400 inttypes.h stdint.h unistd.h
4401 do :
4402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4404 "
4405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4406 cat >>confdefs.h <<_ACEOF
4407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408 _ACEOF
4409
4410 fi
4411
4412 done
4413
4414
4415
4416
4417
4418
4419 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4420 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4421 CLANGCC="yes"
4422 else
4423 CLANGCC="no"
4424 fi
4425
4426 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4427 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4428 INTELCC="yes"
4429 else
4430 INTELCC="no"
4431 fi
4432
4433 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4434 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4435 SUNCC="yes"
4436 else
4437 SUNCC="no"
4438 fi
4439
4440
4441
4442
4443
4444
4445
4446
4447 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4448 if test -n "$ac_tool_prefix"; then
4449 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4450 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 case $PKG_CONFIG in
4457 [\\/]* | ?:[\\/]*)
4458 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4459 ;;
4460 *)
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 ;;
4477 esac
4478 fi
4479 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4480 if test -n "$PKG_CONFIG"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4482 $as_echo "$PKG_CONFIG" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488
4489 fi
4490 if test -z "$ac_cv_path_PKG_CONFIG"; then
4491 ac_pt_PKG_CONFIG=$PKG_CONFIG
4492 # Extract the first word of "pkg-config", so it can be a program name with args.
4493 set dummy pkg-config; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 case $ac_pt_PKG_CONFIG in
4500 [\\/]* | ?:[\\/]*)
4501 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4502 ;;
4503 *)
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519 ;;
4520 esac
4521 fi
4522 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4523 if test -n "$ac_pt_PKG_CONFIG"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4525 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531 if test "x$ac_pt_PKG_CONFIG" = x; then
4532 PKG_CONFIG=""
4533 else
4534 case $cross_compiling:$ac_tool_warned in
4535 yes:)
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538 ac_tool_warned=yes ;;
4539 esac
4540 PKG_CONFIG=$ac_pt_PKG_CONFIG
4541 fi
4542 else
4543 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4544 fi
4545
4546 fi
4547 if test -n "$PKG_CONFIG"; then
4548 _pkg_min_version=0.9.0
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4550 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4551 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 PKG_CONFIG=""
4558 fi
4559 fi
4560 # Make sure we can run config.sub.
4561 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4562 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4565 $as_echo_n "checking build system type... " >&6; }
4566 if ${ac_cv_build+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_build_alias=$build_alias
4570 test "x$ac_build_alias" = x &&
4571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4572 test "x$ac_build_alias" = x &&
4573 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4574 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4576
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4579 $as_echo "$ac_cv_build" >&6; }
4580 case $ac_cv_build in
4581 *-*-*) ;;
4582 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4583 esac
4584 build=$ac_cv_build
4585 ac_save_IFS=$IFS; IFS='-'
4586 set x $ac_cv_build
4587 shift
4588 build_cpu=$1
4589 build_vendor=$2
4590 shift; shift
4591 # Remember, the first character of IFS is used to create $*,
4592 # except with old shells:
4593 build_os=$*
4594 IFS=$ac_save_IFS
4595 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4599 $as_echo_n "checking host system type... " >&6; }
4600 if ${ac_cv_host+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test "x$host_alias" = x; then
4604 ac_cv_host=$ac_cv_build
4605 else
4606 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4608 fi
4609
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4612 $as_echo "$ac_cv_host" >&6; }
4613 case $ac_cv_host in
4614 *-*-*) ;;
4615 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4616 esac
4617 host=$ac_cv_host
4618 ac_save_IFS=$IFS; IFS='-'
4619 set x $ac_cv_host
4620 shift
4621 host_cpu=$1
4622 host_vendor=$2
4623 shift; shift
4624 # Remember, the first character of IFS is used to create $*,
4625 # except with old shells:
4626 host_os=$*
4627 IFS=$ac_save_IFS
4628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4632 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4633 if ${ac_cv_path_SED+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4637 for ac_i in 1 2 3 4 5 6 7; do
4638 ac_script="$ac_script$as_nl$ac_script"
4639 done
4640 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4641 { ac_script=; unset ac_script;}
4642 if test -z "$SED"; then
4643 ac_path_SED_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_prog in sed gsed; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4654 # Check for GNU ac_path_SED and select it if it is found.
4655 # Check for GNU $ac_path_SED
4656 case `"$ac_path_SED" --version 2>&1` in
4657 *GNU*)
4658 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4659 *)
4660 ac_count=0
4661 $as_echo_n 0123456789 >"conftest.in"
4662 while :
4663 do
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo '' >> "conftest.nl"
4668 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_SED_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_SED="$ac_path_SED"
4674 ac_path_SED_max=$ac_count
4675 fi
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4678 done
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 esac
4681
4682 $ac_path_SED_found && break 3
4683 done
4684 done
4685 done
4686 IFS=$as_save_IFS
4687 if test -z "$ac_cv_path_SED"; then
4688 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4689 fi
4690 else
4691 ac_cv_path_SED=$SED
4692 fi
4693
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4696 $as_echo "$ac_cv_path_SED" >&6; }
4697 SED="$ac_cv_path_SED"
4698 rm -f conftest.sed
4699
4700
4701
4702
4703
4704
4705 # Check whether --enable-selective-werror was given.
4706 if test "${enable_selective_werror+set}" = set; then :
4707 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4708 else
4709 SELECTIVE_WERROR=yes
4710 fi
4711
4712
4713
4714
4715
4716 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4717 if test "x$SUNCC" = "xyes"; then
4718 BASE_CFLAGS="-v"
4719 else
4720 BASE_CFLAGS=""
4721 fi
4722
4723 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 xorg_testset_save_CFLAGS="$CFLAGS"
4738
4739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 int i;
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 xorg_cv_cc_flag_unknown_warning_option=yes
4752 else
4753 xorg_cv_cc_flag_unknown_warning_option=no
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4760 CFLAGS="$xorg_testset_save_CFLAGS"
4761 fi
4762
4763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766 fi
4767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 int i;
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 xorg_cv_cc_flag_unused_command_line_argument=yes
4779 else
4780 xorg_cv_cc_flag_unused_command_line_argument=no
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4787 CFLAGS="$xorg_testset_save_CFLAGS"
4788 fi
4789
4790 found="no"
4791
4792 if test $found = "no" ; then
4793 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795 fi
4796
4797 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4799 fi
4800
4801 CFLAGS="$CFLAGS -Wall"
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4804 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4805 cacheid=xorg_cv_cc_flag__Wall
4806 if eval \${$cacheid+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 int i;
4812 int
4813 main ()
4814 {
4815
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_link "$LINENO"; then :
4821 eval $cacheid=yes
4822 else
4823 eval $cacheid=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 fi
4828
4829
4830 CFLAGS="$xorg_testset_save_CFLAGS"
4831
4832 eval supported=\$$cacheid
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4834 $as_echo "$supported" >&6; }
4835 if test "$supported" = "yes" ; then
4836 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4837 found="yes"
4838 fi
4839 fi
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855 xorg_testset_save_CFLAGS="$CFLAGS"
4856
4857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 int i;
4867 _ACEOF
4868 if ac_fn_c_try_compile "$LINENO"; then :
4869 xorg_cv_cc_flag_unknown_warning_option=yes
4870 else
4871 xorg_cv_cc_flag_unknown_warning_option=no
4872 fi
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4878 CFLAGS="$xorg_testset_save_CFLAGS"
4879 fi
4880
4881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884 fi
4885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 int i;
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 xorg_cv_cc_flag_unused_command_line_argument=yes
4897 else
4898 xorg_cv_cc_flag_unused_command_line_argument=no
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4905 CFLAGS="$xorg_testset_save_CFLAGS"
4906 fi
4907
4908 found="no"
4909
4910 if test $found = "no" ; then
4911 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4913 fi
4914
4915 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917 fi
4918
4919 CFLAGS="$CFLAGS -Wpointer-arith"
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4922 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4923 cacheid=xorg_cv_cc_flag__Wpointer_arith
4924 if eval \${$cacheid+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 int i;
4930 int
4931 main ()
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_link "$LINENO"; then :
4939 eval $cacheid=yes
4940 else
4941 eval $cacheid=no
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext \
4944 conftest$ac_exeext conftest.$ac_ext
4945 fi
4946
4947
4948 CFLAGS="$xorg_testset_save_CFLAGS"
4949
4950 eval supported=\$$cacheid
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4952 $as_echo "$supported" >&6; }
4953 if test "$supported" = "yes" ; then
4954 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4955 found="yes"
4956 fi
4957 fi
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 xorg_testset_save_CFLAGS="$CFLAGS"
4974
4975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 int i;
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 xorg_cv_cc_flag_unknown_warning_option=yes
4988 else
4989 xorg_cv_cc_flag_unknown_warning_option=no
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4996 CFLAGS="$xorg_testset_save_CFLAGS"
4997 fi
4998
4999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002 fi
5003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 int i;
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 xorg_cv_cc_flag_unused_command_line_argument=yes
5015 else
5016 xorg_cv_cc_flag_unused_command_line_argument=no
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5023 CFLAGS="$xorg_testset_save_CFLAGS"
5024 fi
5025
5026 found="no"
5027
5028 if test $found = "no" ; then
5029 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031 fi
5032
5033 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035 fi
5036
5037 CFLAGS="$CFLAGS -Wmissing-declarations"
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5040 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5041 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5042 if eval \${$cacheid+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 int i;
5048 int
5049 main ()
5050 {
5051
5052 ;
5053 return 0;
5054 }
5055 _ACEOF
5056 if ac_fn_c_try_link "$LINENO"; then :
5057 eval $cacheid=yes
5058 else
5059 eval $cacheid=no
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext conftest.$ac_ext
5063 fi
5064
5065
5066 CFLAGS="$xorg_testset_save_CFLAGS"
5067
5068 eval supported=\$$cacheid
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5070 $as_echo "$supported" >&6; }
5071 if test "$supported" = "yes" ; then
5072 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5073 found="yes"
5074 fi
5075 fi
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 xorg_testset_save_CFLAGS="$CFLAGS"
5092
5093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 xorg_cv_cc_flag_unknown_warning_option=yes
5106 else
5107 xorg_cv_cc_flag_unknown_warning_option=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5114 CFLAGS="$xorg_testset_save_CFLAGS"
5115 fi
5116
5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120 fi
5121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 int i;
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 xorg_cv_cc_flag_unused_command_line_argument=yes
5133 else
5134 xorg_cv_cc_flag_unused_command_line_argument=no
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5141 CFLAGS="$xorg_testset_save_CFLAGS"
5142 fi
5143
5144 found="no"
5145
5146 if test $found = "no" ; then
5147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149 fi
5150
5151 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153 fi
5154
5155 CFLAGS="$CFLAGS -Wformat=2"
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5158 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5159 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5160 if eval \${$cacheid+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 int i;
5166 int
5167 main ()
5168 {
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_link "$LINENO"; then :
5175 eval $cacheid=yes
5176 else
5177 eval $cacheid=no
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5181 fi
5182
5183
5184 CFLAGS="$xorg_testset_save_CFLAGS"
5185
5186 eval supported=\$$cacheid
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5188 $as_echo "$supported" >&6; }
5189 if test "$supported" = "yes" ; then
5190 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5191 found="yes"
5192 fi
5193 fi
5194
5195 if test $found = "no" ; then
5196 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198 fi
5199
5200 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202 fi
5203
5204 CFLAGS="$CFLAGS -Wformat"
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5207 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5208 cacheid=xorg_cv_cc_flag__Wformat
5209 if eval \${$cacheid+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 int i;
5215 int
5216 main ()
5217 {
5218
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_link "$LINENO"; then :
5224 eval $cacheid=yes
5225 else
5226 eval $cacheid=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5230 fi
5231
5232
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235 eval supported=\$$cacheid
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237 $as_echo "$supported" >&6; }
5238 if test "$supported" = "yes" ; then
5239 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5240 found="yes"
5241 fi
5242 fi
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 xorg_testset_save_CFLAGS="$CFLAGS"
5261
5262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5265 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5266 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 int i;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 xorg_cv_cc_flag_unknown_warning_option=yes
5275 else
5276 xorg_cv_cc_flag_unknown_warning_option=no
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283 CFLAGS="$xorg_testset_save_CFLAGS"
5284 fi
5285
5286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289 fi
5290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 int i;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 xorg_cv_cc_flag_unused_command_line_argument=yes
5302 else
5303 xorg_cv_cc_flag_unused_command_line_argument=no
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5308 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5310 CFLAGS="$xorg_testset_save_CFLAGS"
5311 fi
5312
5313 found="no"
5314
5315 if test $found = "no" ; then
5316 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318 fi
5319
5320 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322 fi
5323
5324 CFLAGS="$CFLAGS -Wstrict-prototypes"
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5327 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5328 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5329 if eval \${$cacheid+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 int i;
5335 int
5336 main ()
5337 {
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_link "$LINENO"; then :
5344 eval $cacheid=yes
5345 else
5346 eval $cacheid=no
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext \
5349 conftest$ac_exeext conftest.$ac_ext
5350 fi
5351
5352
5353 CFLAGS="$xorg_testset_save_CFLAGS"
5354
5355 eval supported=\$$cacheid
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5357 $as_echo "$supported" >&6; }
5358 if test "$supported" = "yes" ; then
5359 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5360 found="yes"
5361 fi
5362 fi
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 xorg_testset_save_CFLAGS="$CFLAGS"
5379
5380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5383 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5384 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 int i;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 xorg_cv_cc_flag_unknown_warning_option=yes
5393 else
5394 xorg_cv_cc_flag_unknown_warning_option=no
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401 CFLAGS="$xorg_testset_save_CFLAGS"
5402 fi
5403
5404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407 fi
5408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 int i;
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419 xorg_cv_cc_flag_unused_command_line_argument=yes
5420 else
5421 xorg_cv_cc_flag_unused_command_line_argument=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5426 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5428 CFLAGS="$xorg_testset_save_CFLAGS"
5429 fi
5430
5431 found="no"
5432
5433 if test $found = "no" ; then
5434 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436 fi
5437
5438 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440 fi
5441
5442 CFLAGS="$CFLAGS -Wmissing-prototypes"
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5445 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5446 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5447 if eval \${$cacheid+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 int i;
5453 int
5454 main ()
5455 {
5456
5457 ;
5458 return 0;
5459 }
5460 _ACEOF
5461 if ac_fn_c_try_link "$LINENO"; then :
5462 eval $cacheid=yes
5463 else
5464 eval $cacheid=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468 fi
5469
5470
5471 CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473 eval supported=\$$cacheid
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475 $as_echo "$supported" >&6; }
5476 if test "$supported" = "yes" ; then
5477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5478 found="yes"
5479 fi
5480 fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 int i;
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 xorg_cv_cc_flag_unknown_warning_option=yes
5511 else
5512 xorg_cv_cc_flag_unknown_warning_option=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5519 CFLAGS="$xorg_testset_save_CFLAGS"
5520 fi
5521
5522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525 fi
5526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 int i;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 xorg_cv_cc_flag_unused_command_line_argument=yes
5538 else
5539 xorg_cv_cc_flag_unused_command_line_argument=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546 CFLAGS="$xorg_testset_save_CFLAGS"
5547 fi
5548
5549 found="no"
5550
5551 if test $found = "no" ; then
5552 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554 fi
5555
5556 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558 fi
5559
5560 CFLAGS="$CFLAGS -Wnested-externs"
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5563 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5564 cacheid=xorg_cv_cc_flag__Wnested_externs
5565 if eval \${$cacheid+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 int
5572 main ()
5573 {
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_link "$LINENO"; then :
5580 eval $cacheid=yes
5581 else
5582 eval $cacheid=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 fi
5587
5588
5589 CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591 eval supported=\$$cacheid
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593 $as_echo "$supported" >&6; }
5594 if test "$supported" = "yes" ; then
5595 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5596 found="yes"
5597 fi
5598 fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 int i;
5626 _ACEOF
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628 xorg_cv_cc_flag_unknown_warning_option=yes
5629 else
5630 xorg_cv_cc_flag_unknown_warning_option=no
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637 CFLAGS="$xorg_testset_save_CFLAGS"
5638 fi
5639
5640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643 fi
5644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 int i;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 xorg_cv_cc_flag_unused_command_line_argument=yes
5656 else
5657 xorg_cv_cc_flag_unused_command_line_argument=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665 fi
5666
5667 found="no"
5668
5669 if test $found = "no" ; then
5670 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672 fi
5673
5674 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676 fi
5677
5678 CFLAGS="$CFLAGS -Wbad-function-cast"
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5681 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5682 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5683 if eval \${$cacheid+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 int i;
5689 int
5690 main ()
5691 {
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_link "$LINENO"; then :
5698 eval $cacheid=yes
5699 else
5700 eval $cacheid=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704 fi
5705
5706
5707 CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709 eval supported=\$$cacheid
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711 $as_echo "$supported" >&6; }
5712 if test "$supported" = "yes" ; then
5713 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5714 found="yes"
5715 fi
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 xorg_testset_save_CFLAGS="$CFLAGS"
5733
5734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5737 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5738 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 int i;
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 xorg_cv_cc_flag_unknown_warning_option=yes
5747 else
5748 xorg_cv_cc_flag_unknown_warning_option=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5753 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5755 CFLAGS="$xorg_testset_save_CFLAGS"
5756 fi
5757
5758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761 fi
5762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5764 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5765 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 int i;
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 xorg_cv_cc_flag_unused_command_line_argument=yes
5774 else
5775 xorg_cv_cc_flag_unused_command_line_argument=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5780 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5782 CFLAGS="$xorg_testset_save_CFLAGS"
5783 fi
5784
5785 found="no"
5786
5787 if test $found = "no" ; then
5788 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790 fi
5791
5792 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794 fi
5795
5796 CFLAGS="$CFLAGS -Wold-style-definition"
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5799 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5800 cacheid=xorg_cv_cc_flag__Wold_style_definition
5801 if eval \${$cacheid+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 int i;
5807 int
5808 main ()
5809 {
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"; then :
5816 eval $cacheid=yes
5817 else
5818 eval $cacheid=no
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 fi
5823
5824
5825 CFLAGS="$xorg_testset_save_CFLAGS"
5826
5827 eval supported=\$$cacheid
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5829 $as_echo "$supported" >&6; }
5830 if test "$supported" = "yes" ; then
5831 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5832 found="yes"
5833 fi
5834 fi
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850 xorg_testset_save_CFLAGS="$CFLAGS"
5851
5852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 int i;
5862 _ACEOF
5863 if ac_fn_c_try_compile "$LINENO"; then :
5864 xorg_cv_cc_flag_unknown_warning_option=yes
5865 else
5866 xorg_cv_cc_flag_unknown_warning_option=no
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 fi
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5873 CFLAGS="$xorg_testset_save_CFLAGS"
5874 fi
5875
5876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5879 fi
5880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 int i;
5889 _ACEOF
5890 if ac_fn_c_try_compile "$LINENO"; then :
5891 xorg_cv_cc_flag_unused_command_line_argument=yes
5892 else
5893 xorg_cv_cc_flag_unused_command_line_argument=no
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5900 CFLAGS="$xorg_testset_save_CFLAGS"
5901 fi
5902
5903 found="no"
5904
5905 if test $found = "no" ; then
5906 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908 fi
5909
5910 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912 fi
5913
5914 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5917 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5918 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5919 if eval \${$cacheid+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 int i;
5925 int
5926 main ()
5927 {
5928
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 if ac_fn_c_try_link "$LINENO"; then :
5934 eval $cacheid=yes
5935 else
5936 eval $cacheid=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext \
5939 conftest$ac_exeext conftest.$ac_ext
5940 fi
5941
5942
5943 CFLAGS="$xorg_testset_save_CFLAGS"
5944
5945 eval supported=\$$cacheid
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5947 $as_echo "$supported" >&6; }
5948 if test "$supported" = "yes" ; then
5949 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5950 found="yes"
5951 fi
5952 fi
5953
5954
5955
5956
5957
5958 # This chunk adds additional warnings that could catch undesired effects.
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 xorg_testset_save_CFLAGS="$CFLAGS"
5973
5974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5978 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 int i;
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 xorg_cv_cc_flag_unknown_warning_option=yes
5987 else
5988 xorg_cv_cc_flag_unknown_warning_option=no
5989 fi
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5995 CFLAGS="$xorg_testset_save_CFLAGS"
5996 fi
5997
5998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001 fi
6002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 int i;
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 xorg_cv_cc_flag_unused_command_line_argument=yes
6014 else
6015 xorg_cv_cc_flag_unused_command_line_argument=no
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6022 CFLAGS="$xorg_testset_save_CFLAGS"
6023 fi
6024
6025 found="no"
6026
6027 if test $found = "no" ; then
6028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030 fi
6031
6032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6034 fi
6035
6036 CFLAGS="$CFLAGS -Wunused"
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6039 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6040 cacheid=xorg_cv_cc_flag__Wunused
6041 if eval \${$cacheid+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 int i;
6047 int
6048 main ()
6049 {
6050
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"; then :
6056 eval $cacheid=yes
6057 else
6058 eval $cacheid=no
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 fi
6063
6064
6065 CFLAGS="$xorg_testset_save_CFLAGS"
6066
6067 eval supported=\$$cacheid
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6069 $as_echo "$supported" >&6; }
6070 if test "$supported" = "yes" ; then
6071 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6072 found="yes"
6073 fi
6074 fi
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 xorg_testset_save_CFLAGS="$CFLAGS"
6091
6092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6096 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 int i;
6102 _ACEOF
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104 xorg_cv_cc_flag_unknown_warning_option=yes
6105 else
6106 xorg_cv_cc_flag_unknown_warning_option=no
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 fi
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6113 CFLAGS="$xorg_testset_save_CFLAGS"
6114 fi
6115
6116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6119 fi
6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 int i;
6129 _ACEOF
6130 if ac_fn_c_try_compile "$LINENO"; then :
6131 xorg_cv_cc_flag_unused_command_line_argument=yes
6132 else
6133 xorg_cv_cc_flag_unused_command_line_argument=no
6134 fi
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 fi
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6140 CFLAGS="$xorg_testset_save_CFLAGS"
6141 fi
6142
6143 found="no"
6144
6145 if test $found = "no" ; then
6146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148 fi
6149
6150 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6152 fi
6153
6154 CFLAGS="$CFLAGS -Wuninitialized"
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6157 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6158 cacheid=xorg_cv_cc_flag__Wuninitialized
6159 if eval \${$cacheid+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 int i;
6165 int
6166 main ()
6167 {
6168
6169 ;
6170 return 0;
6171 }
6172 _ACEOF
6173 if ac_fn_c_try_link "$LINENO"; then :
6174 eval $cacheid=yes
6175 else
6176 eval $cacheid=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6180 fi
6181
6182
6183 CFLAGS="$xorg_testset_save_CFLAGS"
6184
6185 eval supported=\$$cacheid
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6187 $as_echo "$supported" >&6; }
6188 if test "$supported" = "yes" ; then
6189 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6190 found="yes"
6191 fi
6192 fi
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 xorg_testset_save_CFLAGS="$CFLAGS"
6209
6210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 int i;
6220 _ACEOF
6221 if ac_fn_c_try_compile "$LINENO"; then :
6222 xorg_cv_cc_flag_unknown_warning_option=yes
6223 else
6224 xorg_cv_cc_flag_unknown_warning_option=no
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6231 CFLAGS="$xorg_testset_save_CFLAGS"
6232 fi
6233
6234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237 fi
6238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 int i;
6247 _ACEOF
6248 if ac_fn_c_try_compile "$LINENO"; then :
6249 xorg_cv_cc_flag_unused_command_line_argument=yes
6250 else
6251 xorg_cv_cc_flag_unused_command_line_argument=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6259 fi
6260
6261 found="no"
6262
6263 if test $found = "no" ; then
6264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266 fi
6267
6268 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6270 fi
6271
6272 CFLAGS="$CFLAGS -Wshadow"
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6275 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6276 cacheid=xorg_cv_cc_flag__Wshadow
6277 if eval \${$cacheid+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 int i;
6283 int
6284 main ()
6285 {
6286
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_link "$LINENO"; then :
6292 eval $cacheid=yes
6293 else
6294 eval $cacheid=no
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6298 fi
6299
6300
6301 CFLAGS="$xorg_testset_save_CFLAGS"
6302
6303 eval supported=\$$cacheid
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6305 $as_echo "$supported" >&6; }
6306 if test "$supported" = "yes" ; then
6307 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6308 found="yes"
6309 fi
6310 fi
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326 xorg_testset_save_CFLAGS="$CFLAGS"
6327
6328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 int i;
6338 _ACEOF
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340 xorg_cv_cc_flag_unknown_warning_option=yes
6341 else
6342 xorg_cv_cc_flag_unknown_warning_option=no
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345 fi
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6349 CFLAGS="$xorg_testset_save_CFLAGS"
6350 fi
6351
6352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355 fi
6356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 int i;
6365 _ACEOF
6366 if ac_fn_c_try_compile "$LINENO"; then :
6367 xorg_cv_cc_flag_unused_command_line_argument=yes
6368 else
6369 xorg_cv_cc_flag_unused_command_line_argument=no
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6376 CFLAGS="$xorg_testset_save_CFLAGS"
6377 fi
6378
6379 found="no"
6380
6381 if test $found = "no" ; then
6382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384 fi
6385
6386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388 fi
6389
6390 CFLAGS="$CFLAGS -Wcast-qual"
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6393 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6394 cacheid=xorg_cv_cc_flag__Wcast_qual
6395 if eval \${$cacheid+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 int i;
6401 int
6402 main ()
6403 {
6404
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 if ac_fn_c_try_link "$LINENO"; then :
6410 eval $cacheid=yes
6411 else
6412 eval $cacheid=no
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext \
6415 conftest$ac_exeext conftest.$ac_ext
6416 fi
6417
6418
6419 CFLAGS="$xorg_testset_save_CFLAGS"
6420
6421 eval supported=\$$cacheid
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6423 $as_echo "$supported" >&6; }
6424 if test "$supported" = "yes" ; then
6425 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6426 found="yes"
6427 fi
6428 fi
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 xorg_testset_save_CFLAGS="$CFLAGS"
6445
6446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 int i;
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 xorg_cv_cc_flag_unknown_warning_option=yes
6459 else
6460 xorg_cv_cc_flag_unknown_warning_option=no
6461 fi
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6467 CFLAGS="$xorg_testset_save_CFLAGS"
6468 fi
6469
6470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6473 fi
6474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 int i;
6483 _ACEOF
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 xorg_cv_cc_flag_unused_command_line_argument=yes
6486 else
6487 xorg_cv_cc_flag_unused_command_line_argument=no
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 fi
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6494 CFLAGS="$xorg_testset_save_CFLAGS"
6495 fi
6496
6497 found="no"
6498
6499 if test $found = "no" ; then
6500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502 fi
6503
6504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6506 fi
6507
6508 CFLAGS="$CFLAGS -Wmissing-noreturn"
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6511 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6512 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6513 if eval \${$cacheid+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6518 int i;
6519 int
6520 main ()
6521 {
6522
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 if ac_fn_c_try_link "$LINENO"; then :
6528 eval $cacheid=yes
6529 else
6530 eval $cacheid=no
6531 fi
6532 rm -f core conftest.err conftest.$ac_objext \
6533 conftest$ac_exeext conftest.$ac_ext
6534 fi
6535
6536
6537 CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539 eval supported=\$$cacheid
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541 $as_echo "$supported" >&6; }
6542 if test "$supported" = "yes" ; then
6543 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6544 found="yes"
6545 fi
6546 fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 int i;
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 xorg_cv_cc_flag_unknown_warning_option=yes
6577 else
6578 xorg_cv_cc_flag_unknown_warning_option=no
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 fi
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6585 CFLAGS="$xorg_testset_save_CFLAGS"
6586 fi
6587
6588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591 fi
6592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 int i;
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 xorg_cv_cc_flag_unused_command_line_argument=yes
6604 else
6605 xorg_cv_cc_flag_unused_command_line_argument=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6612 CFLAGS="$xorg_testset_save_CFLAGS"
6613 fi
6614
6615 found="no"
6616
6617 if test $found = "no" ; then
6618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6620 fi
6621
6622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6624 fi
6625
6626 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6627
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6629 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6630 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6631 if eval \${$cacheid+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636 int i;
6637 int
6638 main ()
6639 {
6640
6641 ;
6642 return 0;
6643 }
6644 _ACEOF
6645 if ac_fn_c_try_link "$LINENO"; then :
6646 eval $cacheid=yes
6647 else
6648 eval $cacheid=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6652 fi
6653
6654
6655 CFLAGS="$xorg_testset_save_CFLAGS"
6656
6657 eval supported=\$$cacheid
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6659 $as_echo "$supported" >&6; }
6660 if test "$supported" = "yes" ; then
6661 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6662 found="yes"
6663 fi
6664 fi
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 xorg_testset_save_CFLAGS="$CFLAGS"
6681
6682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691 int i;
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 xorg_cv_cc_flag_unknown_warning_option=yes
6695 else
6696 xorg_cv_cc_flag_unknown_warning_option=no
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6703 CFLAGS="$xorg_testset_save_CFLAGS"
6704 fi
6705
6706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6709 fi
6710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 int i;
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"; then :
6721 xorg_cv_cc_flag_unused_command_line_argument=yes
6722 else
6723 xorg_cv_cc_flag_unused_command_line_argument=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6730 CFLAGS="$xorg_testset_save_CFLAGS"
6731 fi
6732
6733 found="no"
6734
6735 if test $found = "no" ; then
6736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6738 fi
6739
6740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742 fi
6743
6744 CFLAGS="$CFLAGS -Wredundant-decls"
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6747 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6748 cacheid=xorg_cv_cc_flag__Wredundant_decls
6749 if eval \${$cacheid+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 int i;
6755 int
6756 main ()
6757 {
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_link "$LINENO"; then :
6764 eval $cacheid=yes
6765 else
6766 eval $cacheid=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext \
6769 conftest$ac_exeext conftest.$ac_ext
6770 fi
6771
6772
6773 CFLAGS="$xorg_testset_save_CFLAGS"
6774
6775 eval supported=\$$cacheid
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6777 $as_echo "$supported" >&6; }
6778 if test "$supported" = "yes" ; then
6779 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6780 found="yes"
6781 fi
6782 fi
6783
6784
6785
6786 # These are currently disabled because they are noisy. They will be enabled
6787 # in the future once the codebase is sufficiently modernized to silence
6788 # them. For now, I don't want them to drown out the other warnings.
6789 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6790 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6791 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6792
6793 # Turn some warnings into errors, so we don't accidently get successful builds
6794 # when there are problems that should be fixed.
6795
6796 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810 xorg_testset_save_CFLAGS="$CFLAGS"
6811
6812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6815 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6816 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821 int i;
6822 _ACEOF
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824 xorg_cv_cc_flag_unknown_warning_option=yes
6825 else
6826 xorg_cv_cc_flag_unknown_warning_option=no
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6831 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6833 CFLAGS="$xorg_testset_save_CFLAGS"
6834 fi
6835
6836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839 fi
6840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6842 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6843 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 int i;
6849 _ACEOF
6850 if ac_fn_c_try_compile "$LINENO"; then :
6851 xorg_cv_cc_flag_unused_command_line_argument=yes
6852 else
6853 xorg_cv_cc_flag_unused_command_line_argument=no
6854 fi
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 fi
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6858 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6860 CFLAGS="$xorg_testset_save_CFLAGS"
6861 fi
6862
6863 found="no"
6864
6865 if test $found = "no" ; then
6866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6868 fi
6869
6870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6872 fi
6873
6874 CFLAGS="$CFLAGS -Werror=implicit"
6875
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6877 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6878 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6879 if eval \${$cacheid+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 int i;
6885 int
6886 main ()
6887 {
6888
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"; then :
6894 eval $cacheid=yes
6895 else
6896 eval $cacheid=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6900 fi
6901
6902
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904
6905 eval supported=\$$cacheid
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6907 $as_echo "$supported" >&6; }
6908 if test "$supported" = "yes" ; then
6909 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6910 found="yes"
6911 fi
6912 fi
6913
6914 if test $found = "no" ; then
6915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917 fi
6918
6919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921 fi
6922
6923 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6924
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6926 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6927 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6928 if eval \${$cacheid+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 int
6935 main ()
6936 {
6937
6938 ;
6939 return 0;
6940 }
6941 _ACEOF
6942 if ac_fn_c_try_link "$LINENO"; then :
6943 eval $cacheid=yes
6944 else
6945 eval $cacheid=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
6949 fi
6950
6951
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954 eval supported=\$$cacheid
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956 $as_echo "$supported" >&6; }
6957 if test "$supported" = "yes" ; then
6958 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6959 found="yes"
6960 fi
6961 fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977 xorg_testset_save_CFLAGS="$CFLAGS"
6978
6979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 int i;
6989 _ACEOF
6990 if ac_fn_c_try_compile "$LINENO"; then :
6991 xorg_cv_cc_flag_unknown_warning_option=yes
6992 else
6993 xorg_cv_cc_flag_unknown_warning_option=no
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 fi
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7000 CFLAGS="$xorg_testset_save_CFLAGS"
7001 fi
7002
7003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006 fi
7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 int i;
7016 _ACEOF
7017 if ac_fn_c_try_compile "$LINENO"; then :
7018 xorg_cv_cc_flag_unused_command_line_argument=yes
7019 else
7020 xorg_cv_cc_flag_unused_command_line_argument=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 fi
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7027 CFLAGS="$xorg_testset_save_CFLAGS"
7028 fi
7029
7030 found="no"
7031
7032 if test $found = "no" ; then
7033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7035 fi
7036
7037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039 fi
7040
7041 CFLAGS="$CFLAGS -Werror=nonnull"
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7044 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7045 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7046 if eval \${$cacheid+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 int i;
7052 int
7053 main ()
7054 {
7055
7056 ;
7057 return 0;
7058 }
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061 eval $cacheid=yes
7062 else
7063 eval $cacheid=no
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7067 fi
7068
7069
7070 CFLAGS="$xorg_testset_save_CFLAGS"
7071
7072 eval supported=\$$cacheid
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7074 $as_echo "$supported" >&6; }
7075 if test "$supported" = "yes" ; then
7076 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7077 found="yes"
7078 fi
7079 fi
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095 xorg_testset_save_CFLAGS="$CFLAGS"
7096
7097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7101 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 int i;
7107 _ACEOF
7108 if ac_fn_c_try_compile "$LINENO"; then :
7109 xorg_cv_cc_flag_unknown_warning_option=yes
7110 else
7111 xorg_cv_cc_flag_unknown_warning_option=no
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7116 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7118 CFLAGS="$xorg_testset_save_CFLAGS"
7119 fi
7120
7121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7124 fi
7125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7127 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7128 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 int i;
7134 _ACEOF
7135 if ac_fn_c_try_compile "$LINENO"; then :
7136 xorg_cv_cc_flag_unused_command_line_argument=yes
7137 else
7138 xorg_cv_cc_flag_unused_command_line_argument=no
7139 fi
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7143 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7145 CFLAGS="$xorg_testset_save_CFLAGS"
7146 fi
7147
7148 found="no"
7149
7150 if test $found = "no" ; then
7151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7153 fi
7154
7155 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157 fi
7158
7159 CFLAGS="$CFLAGS -Werror=init-self"
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7162 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7163 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7164 if eval \${$cacheid+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 int i;
7170 int
7171 main ()
7172 {
7173
7174 ;
7175 return 0;
7176 }
7177 _ACEOF
7178 if ac_fn_c_try_link "$LINENO"; then :
7179 eval $cacheid=yes
7180 else
7181 eval $cacheid=no
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 fi
7186
7187
7188 CFLAGS="$xorg_testset_save_CFLAGS"
7189
7190 eval supported=\$$cacheid
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7192 $as_echo "$supported" >&6; }
7193 if test "$supported" = "yes" ; then
7194 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7195 found="yes"
7196 fi
7197 fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213 xorg_testset_save_CFLAGS="$CFLAGS"
7214
7215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7218 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7219 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 int i;
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 xorg_cv_cc_flag_unknown_warning_option=yes
7228 else
7229 xorg_cv_cc_flag_unknown_warning_option=no
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 fi
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7234 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7236 CFLAGS="$xorg_testset_save_CFLAGS"
7237 fi
7238
7239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242 fi
7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7245 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7246 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 int i;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"; then :
7254 xorg_cv_cc_flag_unused_command_line_argument=yes
7255 else
7256 xorg_cv_cc_flag_unused_command_line_argument=no
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7261 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7263 CFLAGS="$xorg_testset_save_CFLAGS"
7264 fi
7265
7266 found="no"
7267
7268 if test $found = "no" ; then
7269 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271 fi
7272
7273 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275 fi
7276
7277 CFLAGS="$CFLAGS -Werror=main"
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7280 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7281 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7282 if eval \${$cacheid+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 int i;
7288 int
7289 main ()
7290 {
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_link "$LINENO"; then :
7297 eval $cacheid=yes
7298 else
7299 eval $cacheid=no
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
7303 fi
7304
7305
7306 CFLAGS="$xorg_testset_save_CFLAGS"
7307
7308 eval supported=\$$cacheid
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7310 $as_echo "$supported" >&6; }
7311 if test "$supported" = "yes" ; then
7312 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7313 found="yes"
7314 fi
7315 fi
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 xorg_testset_save_CFLAGS="$CFLAGS"
7332
7333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7336 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7337 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 int i;
7343 _ACEOF
7344 if ac_fn_c_try_compile "$LINENO"; then :
7345 xorg_cv_cc_flag_unknown_warning_option=yes
7346 else
7347 xorg_cv_cc_flag_unknown_warning_option=no
7348 fi
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7352 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7354 CFLAGS="$xorg_testset_save_CFLAGS"
7355 fi
7356
7357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360 fi
7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7364 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369 int i;
7370 _ACEOF
7371 if ac_fn_c_try_compile "$LINENO"; then :
7372 xorg_cv_cc_flag_unused_command_line_argument=yes
7373 else
7374 xorg_cv_cc_flag_unused_command_line_argument=no
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 fi
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7379 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7381 CFLAGS="$xorg_testset_save_CFLAGS"
7382 fi
7383
7384 found="no"
7385
7386 if test $found = "no" ; then
7387 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389 fi
7390
7391 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393 fi
7394
7395 CFLAGS="$CFLAGS -Werror=missing-braces"
7396
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7398 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7399 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7400 if eval \${$cacheid+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 int i;
7406 int
7407 main ()
7408 {
7409
7410 ;
7411 return 0;
7412 }
7413 _ACEOF
7414 if ac_fn_c_try_link "$LINENO"; then :
7415 eval $cacheid=yes
7416 else
7417 eval $cacheid=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421 fi
7422
7423
7424 CFLAGS="$xorg_testset_save_CFLAGS"
7425
7426 eval supported=\$$cacheid
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7428 $as_echo "$supported" >&6; }
7429 if test "$supported" = "yes" ; then
7430 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7431 found="yes"
7432 fi
7433 fi
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 xorg_testset_save_CFLAGS="$CFLAGS"
7450
7451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7454 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7455 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 int i;
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463 xorg_cv_cc_flag_unknown_warning_option=yes
7464 else
7465 xorg_cv_cc_flag_unknown_warning_option=no
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7470 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7472 CFLAGS="$xorg_testset_save_CFLAGS"
7473 fi
7474
7475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7478 fi
7479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7481 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7482 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 int i;
7488 _ACEOF
7489 if ac_fn_c_try_compile "$LINENO"; then :
7490 xorg_cv_cc_flag_unused_command_line_argument=yes
7491 else
7492 xorg_cv_cc_flag_unused_command_line_argument=no
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7497 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7499 CFLAGS="$xorg_testset_save_CFLAGS"
7500 fi
7501
7502 found="no"
7503
7504 if test $found = "no" ; then
7505 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7507 fi
7508
7509 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511 fi
7512
7513 CFLAGS="$CFLAGS -Werror=sequence-point"
7514
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7516 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7517 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7518 if eval \${$cacheid+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 int i;
7524 int
7525 main ()
7526 {
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7533 eval $cacheid=yes
7534 else
7535 eval $cacheid=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 fi
7540
7541
7542 CFLAGS="$xorg_testset_save_CFLAGS"
7543
7544 eval supported=\$$cacheid
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7546 $as_echo "$supported" >&6; }
7547 if test "$supported" = "yes" ; then
7548 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7549 found="yes"
7550 fi
7551 fi
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567 xorg_testset_save_CFLAGS="$CFLAGS"
7568
7569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7572 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7573 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 int i;
7579 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"; then :
7581 xorg_cv_cc_flag_unknown_warning_option=yes
7582 else
7583 xorg_cv_cc_flag_unknown_warning_option=no
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7588 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7590 CFLAGS="$xorg_testset_save_CFLAGS"
7591 fi
7592
7593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7596 fi
7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7599 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7600 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 int i;
7606 _ACEOF
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608 xorg_cv_cc_flag_unused_command_line_argument=yes
7609 else
7610 xorg_cv_cc_flag_unused_command_line_argument=no
7611 fi
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7615 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7617 CFLAGS="$xorg_testset_save_CFLAGS"
7618 fi
7619
7620 found="no"
7621
7622 if test $found = "no" ; then
7623 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625 fi
7626
7627 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7629 fi
7630
7631 CFLAGS="$CFLAGS -Werror=return-type"
7632
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7634 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7635 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7636 if eval \${$cacheid+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 int i;
7642 int
7643 main ()
7644 {
7645
7646 ;
7647 return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_link "$LINENO"; then :
7651 eval $cacheid=yes
7652 else
7653 eval $cacheid=no
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext \
7656 conftest$ac_exeext conftest.$ac_ext
7657 fi
7658
7659
7660 CFLAGS="$xorg_testset_save_CFLAGS"
7661
7662 eval supported=\$$cacheid
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7664 $as_echo "$supported" >&6; }
7665 if test "$supported" = "yes" ; then
7666 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7667 found="yes"
7668 fi
7669 fi
7670
7671 if test $found = "no" ; then
7672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674 fi
7675
7676 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 fi
7679
7680 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7683 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7684 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7685 if eval \${$cacheid+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 int
7692 main ()
7693 {
7694
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"; then :
7700 eval $cacheid=yes
7701 else
7702 eval $cacheid=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7706 fi
7707
7708
7709 CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711 eval supported=\$$cacheid
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713 $as_echo "$supported" >&6; }
7714 if test "$supported" = "yes" ; then
7715 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7716 found="yes"
7717 fi
7718 fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 xorg_testset_save_CFLAGS="$CFLAGS"
7735
7736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7739 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7740 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 int i;
7746 _ACEOF
7747 if ac_fn_c_try_compile "$LINENO"; then :
7748 xorg_cv_cc_flag_unknown_warning_option=yes
7749 else
7750 xorg_cv_cc_flag_unknown_warning_option=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7755 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7757 CFLAGS="$xorg_testset_save_CFLAGS"
7758 fi
7759
7760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763 fi
7764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7766 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7767 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 int i;
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 xorg_cv_cc_flag_unused_command_line_argument=yes
7776 else
7777 xorg_cv_cc_flag_unused_command_line_argument=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7782 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7784 CFLAGS="$xorg_testset_save_CFLAGS"
7785 fi
7786
7787 found="no"
7788
7789 if test $found = "no" ; then
7790 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792 fi
7793
7794 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796 fi
7797
7798 CFLAGS="$CFLAGS -Werror=trigraphs"
7799
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7801 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7802 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7803 if eval \${$cacheid+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 int i;
7809 int
7810 main ()
7811 {
7812
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818 eval $cacheid=yes
7819 else
7820 eval $cacheid=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 fi
7825
7826
7827 CFLAGS="$xorg_testset_save_CFLAGS"
7828
7829 eval supported=\$$cacheid
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7831 $as_echo "$supported" >&6; }
7832 if test "$supported" = "yes" ; then
7833 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7834 found="yes"
7835 fi
7836 fi
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852 xorg_testset_save_CFLAGS="$CFLAGS"
7853
7854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 int i;
7864 _ACEOF
7865 if ac_fn_c_try_compile "$LINENO"; then :
7866 xorg_cv_cc_flag_unknown_warning_option=yes
7867 else
7868 xorg_cv_cc_flag_unknown_warning_option=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7875 CFLAGS="$xorg_testset_save_CFLAGS"
7876 fi
7877
7878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881 fi
7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 int i;
7891 _ACEOF
7892 if ac_fn_c_try_compile "$LINENO"; then :
7893 xorg_cv_cc_flag_unused_command_line_argument=yes
7894 else
7895 xorg_cv_cc_flag_unused_command_line_argument=no
7896 fi
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7902 CFLAGS="$xorg_testset_save_CFLAGS"
7903 fi
7904
7905 found="no"
7906
7907 if test $found = "no" ; then
7908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7910 fi
7911
7912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7914 fi
7915
7916 CFLAGS="$CFLAGS -Werror=array-bounds"
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7919 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7920 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7921 if eval \${$cacheid+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 int i;
7927 int
7928 main ()
7929 {
7930
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 eval $cacheid=yes
7937 else
7938 eval $cacheid=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 fi
7943
7944
7945 CFLAGS="$xorg_testset_save_CFLAGS"
7946
7947 eval supported=\$$cacheid
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7949 $as_echo "$supported" >&6; }
7950 if test "$supported" = "yes" ; then
7951 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7952 found="yes"
7953 fi
7954 fi
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 xorg_testset_save_CFLAGS="$CFLAGS"
7971
7972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 int i;
7982 _ACEOF
7983 if ac_fn_c_try_compile "$LINENO"; then :
7984 xorg_cv_cc_flag_unknown_warning_option=yes
7985 else
7986 xorg_cv_cc_flag_unknown_warning_option=no
7987 fi
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7993 CFLAGS="$xorg_testset_save_CFLAGS"
7994 fi
7995
7996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7999 fi
8000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 int i;
8009 _ACEOF
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011 xorg_cv_cc_flag_unused_command_line_argument=yes
8012 else
8013 xorg_cv_cc_flag_unused_command_line_argument=no
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8020 CFLAGS="$xorg_testset_save_CFLAGS"
8021 fi
8022
8023 found="no"
8024
8025 if test $found = "no" ; then
8026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028 fi
8029
8030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8032 fi
8033
8034 CFLAGS="$CFLAGS -Werror=write-strings"
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8037 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8038 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8039 if eval \${$cacheid+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 int i;
8045 int
8046 main ()
8047 {
8048
8049 ;
8050 return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_link "$LINENO"; then :
8054 eval $cacheid=yes
8055 else
8056 eval $cacheid=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8060 fi
8061
8062
8063 CFLAGS="$xorg_testset_save_CFLAGS"
8064
8065 eval supported=\$$cacheid
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8067 $as_echo "$supported" >&6; }
8068 if test "$supported" = "yes" ; then
8069 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8070 found="yes"
8071 fi
8072 fi
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 xorg_testset_save_CFLAGS="$CFLAGS"
8089
8090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 int i;
8100 _ACEOF
8101 if ac_fn_c_try_compile "$LINENO"; then :
8102 xorg_cv_cc_flag_unknown_warning_option=yes
8103 else
8104 xorg_cv_cc_flag_unknown_warning_option=no
8105 fi
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8111 CFLAGS="$xorg_testset_save_CFLAGS"
8112 fi
8113
8114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8117 fi
8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 int i;
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 xorg_cv_cc_flag_unused_command_line_argument=yes
8130 else
8131 xorg_cv_cc_flag_unused_command_line_argument=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 fi
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8138 CFLAGS="$xorg_testset_save_CFLAGS"
8139 fi
8140
8141 found="no"
8142
8143 if test $found = "no" ; then
8144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146 fi
8147
8148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8150 fi
8151
8152 CFLAGS="$CFLAGS -Werror=address"
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8155 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8156 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8157 if eval \${$cacheid+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 int
8164 main ()
8165 {
8166
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_link "$LINENO"; then :
8172 eval $cacheid=yes
8173 else
8174 eval $cacheid=no
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8178 fi
8179
8180
8181 CFLAGS="$xorg_testset_save_CFLAGS"
8182
8183 eval supported=\$$cacheid
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8185 $as_echo "$supported" >&6; }
8186 if test "$supported" = "yes" ; then
8187 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8188 found="yes"
8189 fi
8190 fi
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206 xorg_testset_save_CFLAGS="$CFLAGS"
8207
8208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 int i;
8218 _ACEOF
8219 if ac_fn_c_try_compile "$LINENO"; then :
8220 xorg_cv_cc_flag_unknown_warning_option=yes
8221 else
8222 xorg_cv_cc_flag_unknown_warning_option=no
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8229 CFLAGS="$xorg_testset_save_CFLAGS"
8230 fi
8231
8232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8235 fi
8236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 int i;
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247 xorg_cv_cc_flag_unused_command_line_argument=yes
8248 else
8249 xorg_cv_cc_flag_unused_command_line_argument=no
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8256 CFLAGS="$xorg_testset_save_CFLAGS"
8257 fi
8258
8259 found="no"
8260
8261 if test $found = "no" ; then
8262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8264 fi
8265
8266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8268 fi
8269
8270 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8271
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8273 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8274 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8275 if eval \${$cacheid+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 int i;
8281 int
8282 main ()
8283 {
8284
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_link "$LINENO"; then :
8290 eval $cacheid=yes
8291 else
8292 eval $cacheid=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296 fi
8297
8298
8299 CFLAGS="$xorg_testset_save_CFLAGS"
8300
8301 eval supported=\$$cacheid
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8303 $as_echo "$supported" >&6; }
8304 if test "$supported" = "yes" ; then
8305 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8306 found="yes"
8307 fi
8308 fi
8309
8310 if test $found = "no" ; then
8311 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313 fi
8314
8315 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317 fi
8318
8319 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8320
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8322 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8323 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8324 if eval \${$cacheid+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 int i;
8330 int
8331 main ()
8332 {
8333
8334 ;
8335 return 0;
8336 }
8337 _ACEOF
8338 if ac_fn_c_try_link "$LINENO"; then :
8339 eval $cacheid=yes
8340 else
8341 eval $cacheid=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345 fi
8346
8347
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349
8350 eval supported=\$$cacheid
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8352 $as_echo "$supported" >&6; }
8353 if test "$supported" = "yes" ; then
8354 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8355 found="yes"
8356 fi
8357 fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 xorg_testset_save_CFLAGS="$CFLAGS"
8374
8375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 int i;
8385 _ACEOF
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387 xorg_cv_cc_flag_unknown_warning_option=yes
8388 else
8389 xorg_cv_cc_flag_unknown_warning_option=no
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8396 CFLAGS="$xorg_testset_save_CFLAGS"
8397 fi
8398
8399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8402 fi
8403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 int i;
8412 _ACEOF
8413 if ac_fn_c_try_compile "$LINENO"; then :
8414 xorg_cv_cc_flag_unused_command_line_argument=yes
8415 else
8416 xorg_cv_cc_flag_unused_command_line_argument=no
8417 fi
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8423 CFLAGS="$xorg_testset_save_CFLAGS"
8424 fi
8425
8426 found="no"
8427
8428 if test $found = "no" ; then
8429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8431 fi
8432
8433 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435 fi
8436
8437 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8438
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8440 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8441 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8442 if eval \${$cacheid+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 int i;
8448 int
8449 main ()
8450 {
8451
8452 ;
8453 return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"; then :
8457 eval $cacheid=yes
8458 else
8459 eval $cacheid=no
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463 fi
8464
8465
8466 CFLAGS="$xorg_testset_save_CFLAGS"
8467
8468 eval supported=\$$cacheid
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8470 $as_echo "$supported" >&6; }
8471 if test "$supported" = "yes" ; then
8472 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8473 found="yes"
8474 fi
8475 fi
8476
8477 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8478 else
8479 { $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
8480 $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;}
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 xorg_testset_save_CFLAGS="$CFLAGS"
8495
8496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8499 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8500 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 int i;
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 xorg_cv_cc_flag_unknown_warning_option=yes
8509 else
8510 xorg_cv_cc_flag_unknown_warning_option=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517 CFLAGS="$xorg_testset_save_CFLAGS"
8518 fi
8519
8520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523 fi
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 int i;
8533 _ACEOF
8534 if ac_fn_c_try_compile "$LINENO"; then :
8535 xorg_cv_cc_flag_unused_command_line_argument=yes
8536 else
8537 xorg_cv_cc_flag_unused_command_line_argument=no
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8542 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8544 CFLAGS="$xorg_testset_save_CFLAGS"
8545 fi
8546
8547 found="no"
8548
8549 if test $found = "no" ; then
8550 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552 fi
8553
8554 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556 fi
8557
8558 CFLAGS="$CFLAGS -Wimplicit"
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8561 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8562 cacheid=xorg_cv_cc_flag__Wimplicit
8563 if eval \${$cacheid+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 int i;
8569 int
8570 main ()
8571 {
8572
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_link "$LINENO"; then :
8578 eval $cacheid=yes
8579 else
8580 eval $cacheid=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 fi
8585
8586
8587 CFLAGS="$xorg_testset_save_CFLAGS"
8588
8589 eval supported=\$$cacheid
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8591 $as_echo "$supported" >&6; }
8592 if test "$supported" = "yes" ; then
8593 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8594 found="yes"
8595 fi
8596 fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 xorg_testset_save_CFLAGS="$CFLAGS"
8613
8614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 int i;
8624 _ACEOF
8625 if ac_fn_c_try_compile "$LINENO"; then :
8626 xorg_cv_cc_flag_unknown_warning_option=yes
8627 else
8628 xorg_cv_cc_flag_unknown_warning_option=no
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 fi
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8635 CFLAGS="$xorg_testset_save_CFLAGS"
8636 fi
8637
8638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641 fi
8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 int i;
8651 _ACEOF
8652 if ac_fn_c_try_compile "$LINENO"; then :
8653 xorg_cv_cc_flag_unused_command_line_argument=yes
8654 else
8655 xorg_cv_cc_flag_unused_command_line_argument=no
8656 fi
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8662 CFLAGS="$xorg_testset_save_CFLAGS"
8663 fi
8664
8665 found="no"
8666
8667 if test $found = "no" ; then
8668 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8670 fi
8671
8672 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8674 fi
8675
8676 CFLAGS="$CFLAGS -Wnonnull"
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8679 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8680 cacheid=xorg_cv_cc_flag__Wnonnull
8681 if eval \${$cacheid+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 int i;
8687 int
8688 main ()
8689 {
8690
8691 ;
8692 return 0;
8693 }
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"; then :
8696 eval $cacheid=yes
8697 else
8698 eval $cacheid=no
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8702 fi
8703
8704
8705 CFLAGS="$xorg_testset_save_CFLAGS"
8706
8707 eval supported=\$$cacheid
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8709 $as_echo "$supported" >&6; }
8710 if test "$supported" = "yes" ; then
8711 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8712 found="yes"
8713 fi
8714 fi
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730 xorg_testset_save_CFLAGS="$CFLAGS"
8731
8732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 int i;
8742 _ACEOF
8743 if ac_fn_c_try_compile "$LINENO"; then :
8744 xorg_cv_cc_flag_unknown_warning_option=yes
8745 else
8746 xorg_cv_cc_flag_unknown_warning_option=no
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8753 CFLAGS="$xorg_testset_save_CFLAGS"
8754 fi
8755
8756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759 fi
8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 int i;
8769 _ACEOF
8770 if ac_fn_c_try_compile "$LINENO"; then :
8771 xorg_cv_cc_flag_unused_command_line_argument=yes
8772 else
8773 xorg_cv_cc_flag_unused_command_line_argument=no
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 fi
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8780 CFLAGS="$xorg_testset_save_CFLAGS"
8781 fi
8782
8783 found="no"
8784
8785 if test $found = "no" ; then
8786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8788 fi
8789
8790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8792 fi
8793
8794 CFLAGS="$CFLAGS -Winit-self"
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8797 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8798 cacheid=xorg_cv_cc_flag__Winit_self
8799 if eval \${$cacheid+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 int i;
8805 int
8806 main ()
8807 {
8808
8809 ;
8810 return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_link "$LINENO"; then :
8814 eval $cacheid=yes
8815 else
8816 eval $cacheid=no
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext \
8819 conftest$ac_exeext conftest.$ac_ext
8820 fi
8821
8822
8823 CFLAGS="$xorg_testset_save_CFLAGS"
8824
8825 eval supported=\$$cacheid
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8827 $as_echo "$supported" >&6; }
8828 if test "$supported" = "yes" ; then
8829 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8830 found="yes"
8831 fi
8832 fi
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 xorg_testset_save_CFLAGS="$CFLAGS"
8849
8850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 int i;
8860 _ACEOF
8861 if ac_fn_c_try_compile "$LINENO"; then :
8862 xorg_cv_cc_flag_unknown_warning_option=yes
8863 else
8864 xorg_cv_cc_flag_unknown_warning_option=no
8865 fi
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8871 CFLAGS="$xorg_testset_save_CFLAGS"
8872 fi
8873
8874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8877 fi
8878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 int i;
8887 _ACEOF
8888 if ac_fn_c_try_compile "$LINENO"; then :
8889 xorg_cv_cc_flag_unused_command_line_argument=yes
8890 else
8891 xorg_cv_cc_flag_unused_command_line_argument=no
8892 fi
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8898 CFLAGS="$xorg_testset_save_CFLAGS"
8899 fi
8900
8901 found="no"
8902
8903 if test $found = "no" ; then
8904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8906 fi
8907
8908 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8910 fi
8911
8912 CFLAGS="$CFLAGS -Wmain"
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8915 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8916 cacheid=xorg_cv_cc_flag__Wmain
8917 if eval \${$cacheid+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 int i;
8923 int
8924 main ()
8925 {
8926
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_link "$LINENO"; then :
8932 eval $cacheid=yes
8933 else
8934 eval $cacheid=no
8935 fi
8936 rm -f core conftest.err conftest.$ac_objext \
8937 conftest$ac_exeext conftest.$ac_ext
8938 fi
8939
8940
8941 CFLAGS="$xorg_testset_save_CFLAGS"
8942
8943 eval supported=\$$cacheid
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8945 $as_echo "$supported" >&6; }
8946 if test "$supported" = "yes" ; then
8947 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8948 found="yes"
8949 fi
8950 fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966 xorg_testset_save_CFLAGS="$CFLAGS"
8967
8968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 int i;
8978 _ACEOF
8979 if ac_fn_c_try_compile "$LINENO"; then :
8980 xorg_cv_cc_flag_unknown_warning_option=yes
8981 else
8982 xorg_cv_cc_flag_unknown_warning_option=no
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8989 CFLAGS="$xorg_testset_save_CFLAGS"
8990 fi
8991
8992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995 fi
8996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 int i;
9005 _ACEOF
9006 if ac_fn_c_try_compile "$LINENO"; then :
9007 xorg_cv_cc_flag_unused_command_line_argument=yes
9008 else
9009 xorg_cv_cc_flag_unused_command_line_argument=no
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016 CFLAGS="$xorg_testset_save_CFLAGS"
9017 fi
9018
9019 found="no"
9020
9021 if test $found = "no" ; then
9022 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024 fi
9025
9026 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028 fi
9029
9030 CFLAGS="$CFLAGS -Wmissing-braces"
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9033 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9034 cacheid=xorg_cv_cc_flag__Wmissing_braces
9035 if eval \${$cacheid+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 int i;
9041 int
9042 main ()
9043 {
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 eval $cacheid=yes
9051 else
9052 eval $cacheid=no
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 fi
9057
9058
9059 CFLAGS="$xorg_testset_save_CFLAGS"
9060
9061 eval supported=\$$cacheid
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9063 $as_echo "$supported" >&6; }
9064 if test "$supported" = "yes" ; then
9065 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9066 found="yes"
9067 fi
9068 fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084 xorg_testset_save_CFLAGS="$CFLAGS"
9085
9086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 int i;
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 xorg_cv_cc_flag_unknown_warning_option=yes
9099 else
9100 xorg_cv_cc_flag_unknown_warning_option=no
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9107 CFLAGS="$xorg_testset_save_CFLAGS"
9108 fi
9109
9110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9113 fi
9114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122 int i;
9123 _ACEOF
9124 if ac_fn_c_try_compile "$LINENO"; then :
9125 xorg_cv_cc_flag_unused_command_line_argument=yes
9126 else
9127 xorg_cv_cc_flag_unused_command_line_argument=no
9128 fi
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134 CFLAGS="$xorg_testset_save_CFLAGS"
9135 fi
9136
9137 found="no"
9138
9139 if test $found = "no" ; then
9140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142 fi
9143
9144 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146 fi
9147
9148 CFLAGS="$CFLAGS -Wsequence-point"
9149
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9151 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9152 cacheid=xorg_cv_cc_flag__Wsequence_point
9153 if eval \${$cacheid+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 int i;
9159 int
9160 main ()
9161 {
9162
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"; then :
9168 eval $cacheid=yes
9169 else
9170 eval $cacheid=no
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 fi
9175
9176
9177 CFLAGS="$xorg_testset_save_CFLAGS"
9178
9179 eval supported=\$$cacheid
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9181 $as_echo "$supported" >&6; }
9182 if test "$supported" = "yes" ; then
9183 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9184 found="yes"
9185 fi
9186 fi
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202 xorg_testset_save_CFLAGS="$CFLAGS"
9203
9204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 int i;
9214 _ACEOF
9215 if ac_fn_c_try_compile "$LINENO"; then :
9216 xorg_cv_cc_flag_unknown_warning_option=yes
9217 else
9218 xorg_cv_cc_flag_unknown_warning_option=no
9219 fi
9220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9225 CFLAGS="$xorg_testset_save_CFLAGS"
9226 fi
9227
9228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231 fi
9232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int i;
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243 xorg_cv_cc_flag_unused_command_line_argument=yes
9244 else
9245 xorg_cv_cc_flag_unused_command_line_argument=no
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9252 CFLAGS="$xorg_testset_save_CFLAGS"
9253 fi
9254
9255 found="no"
9256
9257 if test $found = "no" ; then
9258 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9260 fi
9261
9262 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264 fi
9265
9266 CFLAGS="$CFLAGS -Wreturn-type"
9267
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9269 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9270 cacheid=xorg_cv_cc_flag__Wreturn_type
9271 if eval \${$cacheid+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 int i;
9277 int
9278 main ()
9279 {
9280
9281 ;
9282 return 0;
9283 }
9284 _ACEOF
9285 if ac_fn_c_try_link "$LINENO"; then :
9286 eval $cacheid=yes
9287 else
9288 eval $cacheid=no
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 fi
9293
9294
9295 CFLAGS="$xorg_testset_save_CFLAGS"
9296
9297 eval supported=\$$cacheid
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9299 $as_echo "$supported" >&6; }
9300 if test "$supported" = "yes" ; then
9301 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9302 found="yes"
9303 fi
9304 fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320 xorg_testset_save_CFLAGS="$CFLAGS"
9321
9322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 int i;
9332 _ACEOF
9333 if ac_fn_c_try_compile "$LINENO"; then :
9334 xorg_cv_cc_flag_unknown_warning_option=yes
9335 else
9336 xorg_cv_cc_flag_unknown_warning_option=no
9337 fi
9338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9343 CFLAGS="$xorg_testset_save_CFLAGS"
9344 fi
9345
9346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9349 fi
9350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 int i;
9359 _ACEOF
9360 if ac_fn_c_try_compile "$LINENO"; then :
9361 xorg_cv_cc_flag_unused_command_line_argument=yes
9362 else
9363 xorg_cv_cc_flag_unused_command_line_argument=no
9364 fi
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 fi
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9370 CFLAGS="$xorg_testset_save_CFLAGS"
9371 fi
9372
9373 found="no"
9374
9375 if test $found = "no" ; then
9376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378 fi
9379
9380 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382 fi
9383
9384 CFLAGS="$CFLAGS -Wtrigraphs"
9385
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9387 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9388 cacheid=xorg_cv_cc_flag__Wtrigraphs
9389 if eval \${$cacheid+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 int i;
9395 int
9396 main ()
9397 {
9398
9399 ;
9400 return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"; then :
9404 eval $cacheid=yes
9405 else
9406 eval $cacheid=no
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 fi
9411
9412
9413 CFLAGS="$xorg_testset_save_CFLAGS"
9414
9415 eval supported=\$$cacheid
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9417 $as_echo "$supported" >&6; }
9418 if test "$supported" = "yes" ; then
9419 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9420 found="yes"
9421 fi
9422 fi
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438 xorg_testset_save_CFLAGS="$CFLAGS"
9439
9440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 int i;
9450 _ACEOF
9451 if ac_fn_c_try_compile "$LINENO"; then :
9452 xorg_cv_cc_flag_unknown_warning_option=yes
9453 else
9454 xorg_cv_cc_flag_unknown_warning_option=no
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457 fi
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9461 CFLAGS="$xorg_testset_save_CFLAGS"
9462 fi
9463
9464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467 fi
9468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 int i;
9477 _ACEOF
9478 if ac_fn_c_try_compile "$LINENO"; then :
9479 xorg_cv_cc_flag_unused_command_line_argument=yes
9480 else
9481 xorg_cv_cc_flag_unused_command_line_argument=no
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484 fi
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9488 CFLAGS="$xorg_testset_save_CFLAGS"
9489 fi
9490
9491 found="no"
9492
9493 if test $found = "no" ; then
9494 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496 fi
9497
9498 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500 fi
9501
9502 CFLAGS="$CFLAGS -Warray-bounds"
9503
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9505 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9506 cacheid=xorg_cv_cc_flag__Warray_bounds
9507 if eval \${$cacheid+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 int i;
9513 int
9514 main ()
9515 {
9516
9517 ;
9518 return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_link "$LINENO"; then :
9522 eval $cacheid=yes
9523 else
9524 eval $cacheid=no
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 fi
9529
9530
9531 CFLAGS="$xorg_testset_save_CFLAGS"
9532
9533 eval supported=\$$cacheid
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9535 $as_echo "$supported" >&6; }
9536 if test "$supported" = "yes" ; then
9537 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9538 found="yes"
9539 fi
9540 fi
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556 xorg_testset_save_CFLAGS="$CFLAGS"
9557
9558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567 int i;
9568 _ACEOF
9569 if ac_fn_c_try_compile "$LINENO"; then :
9570 xorg_cv_cc_flag_unknown_warning_option=yes
9571 else
9572 xorg_cv_cc_flag_unknown_warning_option=no
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9579 CFLAGS="$xorg_testset_save_CFLAGS"
9580 fi
9581
9582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585 fi
9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 int i;
9595 _ACEOF
9596 if ac_fn_c_try_compile "$LINENO"; then :
9597 xorg_cv_cc_flag_unused_command_line_argument=yes
9598 else
9599 xorg_cv_cc_flag_unused_command_line_argument=no
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 fi
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9606 CFLAGS="$xorg_testset_save_CFLAGS"
9607 fi
9608
9609 found="no"
9610
9611 if test $found = "no" ; then
9612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614 fi
9615
9616 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618 fi
9619
9620 CFLAGS="$CFLAGS -Wwrite-strings"
9621
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9623 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9624 cacheid=xorg_cv_cc_flag__Wwrite_strings
9625 if eval \${$cacheid+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 int i;
9631 int
9632 main ()
9633 {
9634
9635 ;
9636 return 0;
9637 }
9638 _ACEOF
9639 if ac_fn_c_try_link "$LINENO"; then :
9640 eval $cacheid=yes
9641 else
9642 eval $cacheid=no
9643 fi
9644 rm -f core conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646 fi
9647
9648
9649 CFLAGS="$xorg_testset_save_CFLAGS"
9650
9651 eval supported=\$$cacheid
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9653 $as_echo "$supported" >&6; }
9654 if test "$supported" = "yes" ; then
9655 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9656 found="yes"
9657 fi
9658 fi
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674 xorg_testset_save_CFLAGS="$CFLAGS"
9675
9676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 int i;
9686 _ACEOF
9687 if ac_fn_c_try_compile "$LINENO"; then :
9688 xorg_cv_cc_flag_unknown_warning_option=yes
9689 else
9690 xorg_cv_cc_flag_unknown_warning_option=no
9691 fi
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9697 CFLAGS="$xorg_testset_save_CFLAGS"
9698 fi
9699
9700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703 fi
9704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 int i;
9713 _ACEOF
9714 if ac_fn_c_try_compile "$LINENO"; then :
9715 xorg_cv_cc_flag_unused_command_line_argument=yes
9716 else
9717 xorg_cv_cc_flag_unused_command_line_argument=no
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9724 CFLAGS="$xorg_testset_save_CFLAGS"
9725 fi
9726
9727 found="no"
9728
9729 if test $found = "no" ; then
9730 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9732 fi
9733
9734 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736 fi
9737
9738 CFLAGS="$CFLAGS -Waddress"
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9741 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9742 cacheid=xorg_cv_cc_flag__Waddress
9743 if eval \${$cacheid+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 int i;
9749 int
9750 main ()
9751 {
9752
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 eval $cacheid=yes
9759 else
9760 eval $cacheid=no
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 fi
9765
9766
9767 CFLAGS="$xorg_testset_save_CFLAGS"
9768
9769 eval supported=\$$cacheid
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9771 $as_echo "$supported" >&6; }
9772 if test "$supported" = "yes" ; then
9773 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9774 found="yes"
9775 fi
9776 fi
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792 xorg_testset_save_CFLAGS="$CFLAGS"
9793
9794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 int i;
9804 _ACEOF
9805 if ac_fn_c_try_compile "$LINENO"; then :
9806 xorg_cv_cc_flag_unknown_warning_option=yes
9807 else
9808 xorg_cv_cc_flag_unknown_warning_option=no
9809 fi
9810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9815 CFLAGS="$xorg_testset_save_CFLAGS"
9816 fi
9817
9818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9821 fi
9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830 int i;
9831 _ACEOF
9832 if ac_fn_c_try_compile "$LINENO"; then :
9833 xorg_cv_cc_flag_unused_command_line_argument=yes
9834 else
9835 xorg_cv_cc_flag_unused_command_line_argument=no
9836 fi
9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9842 CFLAGS="$xorg_testset_save_CFLAGS"
9843 fi
9844
9845 found="no"
9846
9847 if test $found = "no" ; then
9848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9850 fi
9851
9852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854 fi
9855
9856 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9857
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9859 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9860 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9861 if eval \${$cacheid+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9866 int i;
9867 int
9868 main ()
9869 {
9870
9871 ;
9872 return 0;
9873 }
9874 _ACEOF
9875 if ac_fn_c_try_link "$LINENO"; then :
9876 eval $cacheid=yes
9877 else
9878 eval $cacheid=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 fi
9883
9884
9885 CFLAGS="$xorg_testset_save_CFLAGS"
9886
9887 eval supported=\$$cacheid
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9889 $as_echo "$supported" >&6; }
9890 if test "$supported" = "yes" ; then
9891 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9892 found="yes"
9893 fi
9894 fi
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910 xorg_testset_save_CFLAGS="$CFLAGS"
9911
9912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 int i;
9922 _ACEOF
9923 if ac_fn_c_try_compile "$LINENO"; then :
9924 xorg_cv_cc_flag_unknown_warning_option=yes
9925 else
9926 xorg_cv_cc_flag_unknown_warning_option=no
9927 fi
9928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 fi
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9933 CFLAGS="$xorg_testset_save_CFLAGS"
9934 fi
9935
9936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939 fi
9940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 int i;
9949 _ACEOF
9950 if ac_fn_c_try_compile "$LINENO"; then :
9951 xorg_cv_cc_flag_unused_command_line_argument=yes
9952 else
9953 xorg_cv_cc_flag_unused_command_line_argument=no
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 fi
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9960 CFLAGS="$xorg_testset_save_CFLAGS"
9961 fi
9962
9963 found="no"
9964
9965 if test $found = "no" ; then
9966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9968 fi
9969
9970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972 fi
9973
9974 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9975
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9977 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9978 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9979 if eval \${$cacheid+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984 int i;
9985 int
9986 main ()
9987 {
9988
9989 ;
9990 return 0;
9991 }
9992 _ACEOF
9993 if ac_fn_c_try_link "$LINENO"; then :
9994 eval $cacheid=yes
9995 else
9996 eval $cacheid=no
9997 fi
9998 rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 fi
10001
10002
10003 CFLAGS="$xorg_testset_save_CFLAGS"
10004
10005 eval supported=\$$cacheid
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10007 $as_echo "$supported" >&6; }
10008 if test "$supported" = "yes" ; then
10009 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10010 found="yes"
10011 fi
10012 fi
10013
10014
10015 fi
10016
10017
10018
10019
10020
10021
10022
10023 CWARNFLAGS="$BASE_CFLAGS"
10024 if test "x$GCC" = xyes ; then
10025 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10026 fi
10027
10028
10029
10030
10031
10032
10033
10034
10035 # Check whether --enable-strict-compilation was given.
10036 if test "${enable_strict_compilation+set}" = set; then :
10037 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10038 else
10039 STRICT_COMPILE=no
10040 fi
10041
10042
10043
10044
10045
10046
10047 STRICT_CFLAGS=""
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061 xorg_testset_save_CFLAGS="$CFLAGS"
10062
10063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10066 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10067 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 int i;
10073 _ACEOF
10074 if ac_fn_c_try_compile "$LINENO"; then :
10075 xorg_cv_cc_flag_unknown_warning_option=yes
10076 else
10077 xorg_cv_cc_flag_unknown_warning_option=no
10078 fi
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10082 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10084 CFLAGS="$xorg_testset_save_CFLAGS"
10085 fi
10086
10087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090 fi
10091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10093 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10094 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10099 int i;
10100 _ACEOF
10101 if ac_fn_c_try_compile "$LINENO"; then :
10102 xorg_cv_cc_flag_unused_command_line_argument=yes
10103 else
10104 xorg_cv_cc_flag_unused_command_line_argument=no
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10107 fi
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10109 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10111 CFLAGS="$xorg_testset_save_CFLAGS"
10112 fi
10113
10114 found="no"
10115
10116 if test $found = "no" ; then
10117 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10119 fi
10120
10121 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10123 fi
10124
10125 CFLAGS="$CFLAGS -pedantic"
10126
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10128 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10129 cacheid=xorg_cv_cc_flag__pedantic
10130 if eval \${$cacheid+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 int i;
10136 int
10137 main ()
10138 {
10139
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145 eval $cacheid=yes
10146 else
10147 eval $cacheid=no
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 fi
10152
10153
10154 CFLAGS="$xorg_testset_save_CFLAGS"
10155
10156 eval supported=\$$cacheid
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10158 $as_echo "$supported" >&6; }
10159 if test "$supported" = "yes" ; then
10160 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10161 found="yes"
10162 fi
10163 fi
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179 xorg_testset_save_CFLAGS="$CFLAGS"
10180
10181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10184 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10185 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190 int i;
10191 _ACEOF
10192 if ac_fn_c_try_compile "$LINENO"; then :
10193 xorg_cv_cc_flag_unknown_warning_option=yes
10194 else
10195 xorg_cv_cc_flag_unknown_warning_option=no
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 fi
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10200 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10202 CFLAGS="$xorg_testset_save_CFLAGS"
10203 fi
10204
10205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10208 fi
10209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10211 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10212 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10217 int i;
10218 _ACEOF
10219 if ac_fn_c_try_compile "$LINENO"; then :
10220 xorg_cv_cc_flag_unused_command_line_argument=yes
10221 else
10222 xorg_cv_cc_flag_unused_command_line_argument=no
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10227 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10229 CFLAGS="$xorg_testset_save_CFLAGS"
10230 fi
10231
10232 found="no"
10233
10234 if test $found = "no" ; then
10235 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10237 fi
10238
10239 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10241 fi
10242
10243 CFLAGS="$CFLAGS -Werror"
10244
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10246 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10247 cacheid=xorg_cv_cc_flag__Werror
10248 if eval \${$cacheid+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 int i;
10254 int
10255 main ()
10256 {
10257
10258 ;
10259 return 0;
10260 }
10261 _ACEOF
10262 if ac_fn_c_try_link "$LINENO"; then :
10263 eval $cacheid=yes
10264 else
10265 eval $cacheid=no
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 fi
10270
10271
10272 CFLAGS="$xorg_testset_save_CFLAGS"
10273
10274 eval supported=\$$cacheid
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10276 $as_echo "$supported" >&6; }
10277 if test "$supported" = "yes" ; then
10278 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10279 found="yes"
10280 fi
10281 fi
10282
10283 if test $found = "no" ; then
10284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286 fi
10287
10288 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290 fi
10291
10292 CFLAGS="$CFLAGS -errwarn"
10293
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10295 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10296 cacheid=xorg_cv_cc_flag__errwarn
10297 if eval \${$cacheid+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 int i;
10303 int
10304 main ()
10305 {
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 eval $cacheid=yes
10313 else
10314 eval $cacheid=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319
10320
10321 CFLAGS="$xorg_testset_save_CFLAGS"
10322
10323 eval supported=\$$cacheid
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10325 $as_echo "$supported" >&6; }
10326 if test "$supported" = "yes" ; then
10327 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10328 found="yes"
10329 fi
10330 fi
10331
10332
10333
10334 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10335 # activate it with -Werror, so we add it here explicitly.
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349 xorg_testset_save_CFLAGS="$CFLAGS"
10350
10351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10354 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10355 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360 int i;
10361 _ACEOF
10362 if ac_fn_c_try_compile "$LINENO"; then :
10363 xorg_cv_cc_flag_unknown_warning_option=yes
10364 else
10365 xorg_cv_cc_flag_unknown_warning_option=no
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10370 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10372 CFLAGS="$xorg_testset_save_CFLAGS"
10373 fi
10374
10375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378 fi
10379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10381 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10382 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int i;
10388 _ACEOF
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390 xorg_cv_cc_flag_unused_command_line_argument=yes
10391 else
10392 xorg_cv_cc_flag_unused_command_line_argument=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10397 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10399 CFLAGS="$xorg_testset_save_CFLAGS"
10400 fi
10401
10402 found="no"
10403
10404 if test $found = "no" ; then
10405 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10407 fi
10408
10409 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411 fi
10412
10413 CFLAGS="$CFLAGS -Werror=attributes"
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10416 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10417 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10418 if eval \${$cacheid+:} false; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 int i;
10424 int
10425 main ()
10426 {
10427
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10433 eval $cacheid=yes
10434 else
10435 eval $cacheid=no
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 fi
10440
10441
10442 CFLAGS="$xorg_testset_save_CFLAGS"
10443
10444 eval supported=\$$cacheid
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10446 $as_echo "$supported" >&6; }
10447 if test "$supported" = "yes" ; then
10448 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10449 found="yes"
10450 fi
10451 fi
10452
10453
10454
10455 if test "x$STRICT_COMPILE" = "xyes"; then
10456 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10457 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10458 fi
10459
10460
10461
10462
10463
10464
10465 cat >>confdefs.h <<_ACEOF
10466 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10467 _ACEOF
10468
10469 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10470 if test "x$PVM" = "x"; then
10471 PVM="0"
10472 fi
10473
10474 cat >>confdefs.h <<_ACEOF
10475 #define PACKAGE_VERSION_MINOR $PVM
10476 _ACEOF
10477
10478 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10479 if test "x$PVP" = "x"; then
10480 PVP="0"
10481 fi
10482
10483 cat >>confdefs.h <<_ACEOF
10484 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10485 _ACEOF
10486
10487
10488
10489 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10490 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10491 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10492 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10493
10494
10495
10496
10497 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10498 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10499 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10500 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10501 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10502
10503
10504
10505
10506
10507
10508 if test x$APP_MAN_SUFFIX = x ; then
10509 APP_MAN_SUFFIX=1
10510 fi
10511 if test x$APP_MAN_DIR = x ; then
10512 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10513 fi
10514
10515 if test x$LIB_MAN_SUFFIX = x ; then
10516 LIB_MAN_SUFFIX=3
10517 fi
10518 if test x$LIB_MAN_DIR = x ; then
10519 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10520 fi
10521
10522 if test x$FILE_MAN_SUFFIX = x ; then
10523 case $host_os in
10524 solaris*) FILE_MAN_SUFFIX=4 ;;
10525 *) FILE_MAN_SUFFIX=5 ;;
10526 esac
10527 fi
10528 if test x$FILE_MAN_DIR = x ; then
10529 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10530 fi
10531
10532 if test x$MISC_MAN_SUFFIX = x ; then
10533 case $host_os in
10534 solaris*) MISC_MAN_SUFFIX=5 ;;
10535 *) MISC_MAN_SUFFIX=7 ;;
10536 esac
10537 fi
10538 if test x$MISC_MAN_DIR = x ; then
10539 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10540 fi
10541
10542 if test x$DRIVER_MAN_SUFFIX = x ; then
10543 case $host_os in
10544 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10545 *) DRIVER_MAN_SUFFIX=4 ;;
10546 esac
10547 fi
10548 if test x$DRIVER_MAN_DIR = x ; then
10549 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10550 fi
10551
10552 if test x$ADMIN_MAN_SUFFIX = x ; then
10553 case $host_os in
10554 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10555 *) ADMIN_MAN_SUFFIX=8 ;;
10556 esac
10557 fi
10558 if test x$ADMIN_MAN_DIR = x ; then
10559 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10560 fi
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576 XORG_MAN_PAGE="X Version 11"
10577
10578 MAN_SUBSTS="\
10579 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10580 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10581 -e 's|__xservername__|Xorg|g' \
10582 -e 's|__xconfigfile__|xorg.conf|g' \
10583 -e 's|__projectroot__|\$(prefix)|g' \
10584 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10585 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10586 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10587 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10588 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10589 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10590 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10591
10592
10593
10594 # Check whether --enable-silent-rules was given.
10595 if test "${enable_silent_rules+set}" = set; then :
10596 enableval=$enable_silent_rules;
10597 fi
10598
10599 case $enable_silent_rules in
10600 yes) AM_DEFAULT_VERBOSITY=0;;
10601 no) AM_DEFAULT_VERBOSITY=1;;
10602 *) AM_DEFAULT_VERBOSITY=0;;
10603 esac
10604 am_make=${MAKE-make}
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10606 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10607 if ${am_cv_make_support_nested_variables+:} false; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 if $as_echo 'TRUE=$(BAR$(V))
10611 BAR0=false
10612 BAR1=true
10613 V=1
10614 am__doit:
10615 @$(TRUE)
10616 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10617 am_cv_make_support_nested_variables=yes
10618 else
10619 am_cv_make_support_nested_variables=no
10620 fi
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10623 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10624 if test $am_cv_make_support_nested_variables = yes; then
10625 AM_V='$(V)'
10626 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10627 else
10628 AM_V=$AM_DEFAULT_VERBOSITY
10629 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10630 fi
10631 AM_BACKSLASH='\'
10632
10633
10634
10635 # Initialize libtool
10636 # Check whether --enable-static was given.
10637 if test "${enable_static+set}" = set; then :
10638 enableval=$enable_static; p=${PACKAGE-default}
10639 case $enableval in
10640 yes) enable_static=yes ;;
10641 no) enable_static=no ;;
10642 *)
10643 enable_static=no
10644 # Look at the argument we got. We use all the common list separators.
10645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10646 for pkg in $enableval; do
10647 IFS="$lt_save_ifs"
10648 if test "X$pkg" = "X$p"; then
10649 enable_static=yes
10650 fi
10651 done
10652 IFS="$lt_save_ifs"
10653 ;;
10654 esac
10655 else
10656 enable_static=no
10657 fi
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667 case `pwd` in
10668 *\ * | *\ *)
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10670 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10671 esac
10672
10673
10674
10675 macro_version='2.4.2'
10676 macro_revision='1.3337'
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690 ltmain="$ac_aux_dir/ltmain.sh"
10691
10692 # Backslashify metacharacters that are still active within
10693 # double-quoted strings.
10694 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10695
10696 # Same as above, but do not quote variable references.
10697 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10698
10699 # Sed substitution to delay expansion of an escaped shell variable in a
10700 # double_quote_subst'ed string.
10701 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10702
10703 # Sed substitution to delay expansion of an escaped single quote.
10704 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10705
10706 # Sed substitution to avoid accidental globbing in evaled expressions
10707 no_glob_subst='s/\*/\\\*/g'
10708
10709 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10710 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10711 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10712
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10714 $as_echo_n "checking how to print strings... " >&6; }
10715 # Test print first, because it will be a builtin if present.
10716 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10717 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10718 ECHO='print -r --'
10719 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10720 ECHO='printf %s\n'
10721 else
10722 # Use this function as a fallback that always works.
10723 func_fallback_echo ()
10724 {
10725 eval 'cat <<_LTECHO_EOF
10726 $1
10727 _LTECHO_EOF'
10728 }
10729 ECHO='func_fallback_echo'
10730 fi
10731
10732 # func_echo_all arg...
10733 # Invoke $ECHO with all args, space-separated.
10734 func_echo_all ()
10735 {
10736 $ECHO ""
10737 }
10738
10739 case "$ECHO" in
10740 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10741 $as_echo "printf" >&6; } ;;
10742 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10743 $as_echo "print -r" >&6; } ;;
10744 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10745 $as_echo "cat" >&6; } ;;
10746 esac
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10762 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10763 if ${ac_cv_path_SED+:} false; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10767 for ac_i in 1 2 3 4 5 6 7; do
10768 ac_script="$ac_script$as_nl$ac_script"
10769 done
10770 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10771 { ac_script=; unset ac_script;}
10772 if test -z "$SED"; then
10773 ac_path_SED_found=false
10774 # Loop through the user's path and test for each of PROGNAME-LIST
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10777 do
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_prog in sed gsed; do
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10783 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10784 # Check for GNU ac_path_SED and select it if it is found.
10785 # Check for GNU $ac_path_SED
10786 case `"$ac_path_SED" --version 2>&1` in
10787 *GNU*)
10788 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10789 *)
10790 ac_count=0
10791 $as_echo_n 0123456789 >"conftest.in"
10792 while :
10793 do
10794 cat "conftest.in" "conftest.in" >"conftest.tmp"
10795 mv "conftest.tmp" "conftest.in"
10796 cp "conftest.in" "conftest.nl"
10797 $as_echo '' >> "conftest.nl"
10798 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10800 as_fn_arith $ac_count + 1 && ac_count=$as_val
10801 if test $ac_count -gt ${ac_path_SED_max-0}; then
10802 # Best one so far, save it but keep looking for a better one
10803 ac_cv_path_SED="$ac_path_SED"
10804 ac_path_SED_max=$ac_count
10805 fi
10806 # 10*(2^10) chars as input seems more than enough
10807 test $ac_count -gt 10 && break
10808 done
10809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10810 esac
10811
10812 $ac_path_SED_found && break 3
10813 done
10814 done
10815 done
10816 IFS=$as_save_IFS
10817 if test -z "$ac_cv_path_SED"; then
10818 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10819 fi
10820 else
10821 ac_cv_path_SED=$SED
10822 fi
10823
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10826 $as_echo "$ac_cv_path_SED" >&6; }
10827 SED="$ac_cv_path_SED"
10828 rm -f conftest.sed
10829
10830 test -z "$SED" && SED=sed
10831 Xsed="$SED -e 1s/^X//"
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10844 $as_echo_n "checking for fgrep... " >&6; }
10845 if ${ac_cv_path_FGREP+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10849 then ac_cv_path_FGREP="$GREP -F"
10850 else
10851 if test -z "$FGREP"; then
10852 ac_path_FGREP_found=false
10853 # Loop through the user's path and test for each of PROGNAME-LIST
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10856 do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_prog in fgrep; do
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10862 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10863 # Check for GNU ac_path_FGREP and select it if it is found.
10864 # Check for GNU $ac_path_FGREP
10865 case `"$ac_path_FGREP" --version 2>&1` in
10866 *GNU*)
10867 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10868 *)
10869 ac_count=0
10870 $as_echo_n 0123456789 >"conftest.in"
10871 while :
10872 do
10873 cat "conftest.in" "conftest.in" >"conftest.tmp"
10874 mv "conftest.tmp" "conftest.in"
10875 cp "conftest.in" "conftest.nl"
10876 $as_echo 'FGREP' >> "conftest.nl"
10877 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10879 as_fn_arith $ac_count + 1 && ac_count=$as_val
10880 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10881 # Best one so far, save it but keep looking for a better one
10882 ac_cv_path_FGREP="$ac_path_FGREP"
10883 ac_path_FGREP_max=$ac_count
10884 fi
10885 # 10*(2^10) chars as input seems more than enough
10886 test $ac_count -gt 10 && break
10887 done
10888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10889 esac
10890
10891 $ac_path_FGREP_found && break 3
10892 done
10893 done
10894 done
10895 IFS=$as_save_IFS
10896 if test -z "$ac_cv_path_FGREP"; then
10897 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10898 fi
10899 else
10900 ac_cv_path_FGREP=$FGREP
10901 fi
10902
10903 fi
10904 fi
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10906 $as_echo "$ac_cv_path_FGREP" >&6; }
10907 FGREP="$ac_cv_path_FGREP"
10908
10909
10910 test -z "$GREP" && GREP=grep
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 # Check whether --with-gnu-ld was given.
10931 if test "${with_gnu_ld+set}" = set; then :
10932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10933 else
10934 with_gnu_ld=no
10935 fi
10936
10937 ac_prog=ld
10938 if test "$GCC" = yes; then
10939 # Check if gcc -print-prog-name=ld gives a path.
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10941 $as_echo_n "checking for ld used by $CC... " >&6; }
10942 case $host in
10943 *-*-mingw*)
10944 # gcc leaves a trailing carriage return which upsets mingw
10945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10946 *)
10947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10948 esac
10949 case $ac_prog in
10950 # Accept absolute paths.
10951 [\\/]* | ?:[\\/]*)
10952 re_direlt='/[^/][^/]*/\.\./'
10953 # Canonicalize the pathname of ld
10954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10957 done
10958 test -z "$LD" && LD="$ac_prog"
10959 ;;
10960 "")
10961 # If it fails, then pretend we aren't using GCC.
10962 ac_prog=ld
10963 ;;
10964 *)
10965 # If it is relative, then search for the first ld in PATH.
10966 with_gnu_ld=unknown
10967 ;;
10968 esac
10969 elif test "$with_gnu_ld" = yes; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10971 $as_echo_n "checking for GNU ld... " >&6; }
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10974 $as_echo_n "checking for non-GNU ld... " >&6; }
10975 fi
10976 if ${lt_cv_path_LD+:} false; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 if test -z "$LD"; then
10980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10981 for ac_dir in $PATH; do
10982 IFS="$lt_save_ifs"
10983 test -z "$ac_dir" && ac_dir=.
10984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10985 lt_cv_path_LD="$ac_dir/$ac_prog"
10986 # Check to see if the program is GNU ld. I'd rather use --version,
10987 # but apparently some variants of GNU ld only accept -v.
10988 # Break only if it was the GNU/non-GNU ld that we prefer.
10989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10990 *GNU* | *'with BFD'*)
10991 test "$with_gnu_ld" != no && break
10992 ;;
10993 *)
10994 test "$with_gnu_ld" != yes && break
10995 ;;
10996 esac
10997 fi
10998 done
10999 IFS="$lt_save_ifs"
11000 else
11001 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11002 fi
11003 fi
11004
11005 LD="$lt_cv_path_LD"
11006 if test -n "$LD"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11008 $as_echo "$LD" >&6; }
11009 else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11012 fi
11013 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11015 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11016 if ${lt_cv_prog_gnu_ld+:} false; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11020 case `$LD -v 2>&1 </dev/null` in
11021 *GNU* | *'with BFD'*)
11022 lt_cv_prog_gnu_ld=yes
11023 ;;
11024 *)
11025 lt_cv_prog_gnu_ld=no
11026 ;;
11027 esac
11028 fi
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11030 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11031 with_gnu_ld=$lt_cv_prog_gnu_ld
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11042 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11043 if ${lt_cv_path_NM+:} false; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 if test -n "$NM"; then
11047 # Let the user override the test.
11048 lt_cv_path_NM="$NM"
11049 else
11050 lt_nm_to_check="${ac_tool_prefix}nm"
11051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11052 lt_nm_to_check="$lt_nm_to_check nm"
11053 fi
11054 for lt_tmp_nm in $lt_nm_to_check; do
11055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11057 IFS="$lt_save_ifs"
11058 test -z "$ac_dir" && ac_dir=.
11059 tmp_nm="$ac_dir/$lt_tmp_nm"
11060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11061 # Check to see if the nm accepts a BSD-compat flag.
11062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11063 # nm: unknown option "B" ignored
11064 # Tru64's nm complains that /dev/null is an invalid object file
11065 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11066 */dev/null* | *'Invalid file or object type'*)
11067 lt_cv_path_NM="$tmp_nm -B"
11068 break
11069 ;;
11070 *)
11071 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11072 */dev/null*)
11073 lt_cv_path_NM="$tmp_nm -p"
11074 break
11075 ;;
11076 *)
11077 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11078 continue # so that we can try to find one that supports BSD flags
11079 ;;
11080 esac
11081 ;;
11082 esac
11083 fi
11084 done
11085 IFS="$lt_save_ifs"
11086 done
11087 : ${lt_cv_path_NM=no}
11088 fi
11089 fi
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11091 $as_echo "$lt_cv_path_NM" >&6; }
11092 if test "$lt_cv_path_NM" != "no"; then
11093 NM="$lt_cv_path_NM"
11094 else
11095 # Didn't find any BSD compatible name lister, look for dumpbin.
11096 if test -n "$DUMPBIN"; then :
11097 # Let the user override the test.
11098 else
11099 if test -n "$ac_tool_prefix"; then
11100 for ac_prog in dumpbin "link -dump"
11101 do
11102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105 $as_echo_n "checking for $ac_word... " >&6; }
11106 if ${ac_cv_prog_DUMPBIN+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 if test -n "$DUMPBIN"; then
11110 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11111 else
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $PATH
11114 do
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11122 fi
11123 done
11124 done
11125 IFS=$as_save_IFS
11126
11127 fi
11128 fi
11129 DUMPBIN=$ac_cv_prog_DUMPBIN
11130 if test -n "$DUMPBIN"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11132 $as_echo "$DUMPBIN" >&6; }
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11136 fi
11137
11138
11139 test -n "$DUMPBIN" && break
11140 done
11141 fi
11142 if test -z "$DUMPBIN"; then
11143 ac_ct_DUMPBIN=$DUMPBIN
11144 for ac_prog in dumpbin "link -dump"
11145 do
11146 # Extract the first word of "$ac_prog", so it can be a program name with args.
11147 set dummy $ac_prog; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 if test -n "$ac_ct_DUMPBIN"; then
11154 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11155 else
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11158 do
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11166 fi
11167 done
11168 done
11169 IFS=$as_save_IFS
11170
11171 fi
11172 fi
11173 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11174 if test -n "$ac_ct_DUMPBIN"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11176 $as_echo "$ac_ct_DUMPBIN" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 fi
11181
11182
11183 test -n "$ac_ct_DUMPBIN" && break
11184 done
11185
11186 if test "x$ac_ct_DUMPBIN" = x; then
11187 DUMPBIN=":"
11188 else
11189 case $cross_compiling:$ac_tool_warned in
11190 yes:)
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11193 ac_tool_warned=yes ;;
11194 esac
11195 DUMPBIN=$ac_ct_DUMPBIN
11196 fi
11197 fi
11198
11199 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11200 *COFF*)
11201 DUMPBIN="$DUMPBIN -symbols"
11202 ;;
11203 *)
11204 DUMPBIN=:
11205 ;;
11206 esac
11207 fi
11208
11209 if test "$DUMPBIN" != ":"; then
11210 NM="$DUMPBIN"
11211 fi
11212 fi
11213 test -z "$NM" && NM=nm
11214
11215
11216
11217
11218
11219
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11221 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11222 if ${lt_cv_nm_interface+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 lt_cv_nm_interface="BSD nm"
11226 echo "int some_variable = 0;" > conftest.$ac_ext
11227 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11228 (eval "$ac_compile" 2>conftest.err)
11229 cat conftest.err >&5
11230 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11231 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11232 cat conftest.err >&5
11233 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11234 cat conftest.out >&5
11235 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11236 lt_cv_nm_interface="MS dumpbin"
11237 fi
11238 rm -f conftest*
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11241 $as_echo "$lt_cv_nm_interface" >&6; }
11242
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11244 $as_echo_n "checking whether ln -s works... " >&6; }
11245 LN_S=$as_ln_s
11246 if test "$LN_S" = "ln -s"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248 $as_echo "yes" >&6; }
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11251 $as_echo "no, using $LN_S" >&6; }
11252 fi
11253
11254 # find the maximum length of command line arguments
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11256 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11257 if ${lt_cv_sys_max_cmd_len+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 i=0
11261 teststring="ABCD"
11262
11263 case $build_os in
11264 msdosdjgpp*)
11265 # On DJGPP, this test can blow up pretty badly due to problems in libc
11266 # (any single argument exceeding 2000 bytes causes a buffer overrun
11267 # during glob expansion). Even if it were fixed, the result of this
11268 # check would be larger than it should be.
11269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11270 ;;
11271
11272 gnu*)
11273 # Under GNU Hurd, this test is not required because there is
11274 # no limit to the length of command line arguments.
11275 # Libtool will interpret -1 as no limit whatsoever
11276 lt_cv_sys_max_cmd_len=-1;
11277 ;;
11278
11279 cygwin* | mingw* | cegcc*)
11280 # On Win9x/ME, this test blows up -- it succeeds, but takes
11281 # about 5 minutes as the teststring grows exponentially.
11282 # Worse, since 9x/ME are not pre-emptively multitasking,
11283 # you end up with a "frozen" computer, even though with patience
11284 # the test eventually succeeds (with a max line length of 256k).
11285 # Instead, let's just punt: use the minimum linelength reported by
11286 # all of the supported platforms: 8192 (on NT/2K/XP).
11287 lt_cv_sys_max_cmd_len=8192;
11288 ;;
11289
11290 mint*)
11291 # On MiNT this can take a long time and run out of memory.
11292 lt_cv_sys_max_cmd_len=8192;
11293 ;;
11294
11295 amigaos*)
11296 # On AmigaOS with pdksh, this test takes hours, literally.
11297 # So we just punt and use a minimum line length of 8192.
11298 lt_cv_sys_max_cmd_len=8192;
11299 ;;
11300
11301 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11302 # This has been around since 386BSD, at least. Likely further.
11303 if test -x /sbin/sysctl; then
11304 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11305 elif test -x /usr/sbin/sysctl; then
11306 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11307 else
11308 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11309 fi
11310 # And add a safety zone
11311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11313 ;;
11314
11315 interix*)
11316 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11317 lt_cv_sys_max_cmd_len=196608
11318 ;;
11319
11320 os2*)
11321 # The test takes a long time on OS/2.
11322 lt_cv_sys_max_cmd_len=8192
11323 ;;
11324
11325 osf*)
11326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11328 # nice to cause kernel panics so lets avoid the loop below.
11329 # First set a reasonable default.
11330 lt_cv_sys_max_cmd_len=16384
11331 #
11332 if test -x /sbin/sysconfig; then
11333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11335 esac
11336 fi
11337 ;;
11338 sco3.2v5*)
11339 lt_cv_sys_max_cmd_len=102400
11340 ;;
11341 sysv5* | sco5v6* | sysv4.2uw2*)
11342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11343 if test -n "$kargmax"; then
11344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11345 else
11346 lt_cv_sys_max_cmd_len=32768
11347 fi
11348 ;;
11349 *)
11350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11351 if test -n "$lt_cv_sys_max_cmd_len"; then
11352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11354 else
11355 # Make teststring a little bigger before we do anything with it.
11356 # a 1K string should be a reasonable start.
11357 for i in 1 2 3 4 5 6 7 8 ; do
11358 teststring=$teststring$teststring
11359 done
11360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11361 # If test is not a shell built-in, we'll probably end up computing a
11362 # maximum length that is only half of the actual maximum length, but
11363 # we can't tell.
11364 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11365 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11366 test $i != 17 # 1/2 MB should be enough
11367 do
11368 i=`expr $i + 1`
11369 teststring=$teststring$teststring
11370 done
11371 # Only check the string length outside the loop.
11372 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11373 teststring=
11374 # Add a significant safety factor because C++ compilers can tack on
11375 # massive amounts of additional arguments before passing them to the
11376 # linker. It appears as though 1/2 is a usable value.
11377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11378 fi
11379 ;;
11380 esac
11381
11382 fi
11383
11384 if test -n $lt_cv_sys_max_cmd_len ; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11386 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11389 $as_echo "none" >&6; }
11390 fi
11391 max_cmd_len=$lt_cv_sys_max_cmd_len
11392
11393
11394
11395
11396
11397
11398 : ${CP="cp -f"}
11399 : ${MV="mv -f"}
11400 : ${RM="rm -f"}
11401
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11403 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11404 # Try some XSI features
11405 xsi_shell=no
11406 ( _lt_dummy="a/b/c"
11407 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11408 = c,a/b,b/c, \
11409 && eval 'test $(( 1 + 1 )) -eq 2 \
11410 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11411 && xsi_shell=yes
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11413 $as_echo "$xsi_shell" >&6; }
11414
11415
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11417 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11418 lt_shell_append=no
11419 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11420 >/dev/null 2>&1 \
11421 && lt_shell_append=yes
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11423 $as_echo "$lt_shell_append" >&6; }
11424
11425
11426 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11427 lt_unset=unset
11428 else
11429 lt_unset=false
11430 fi
11431
11432
11433
11434
11435
11436 # test EBCDIC or ASCII
11437 case `echo X|tr X '\101'` in
11438 A) # ASCII based system
11439 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11440 lt_SP2NL='tr \040 \012'
11441 lt_NL2SP='tr \015\012 \040\040'
11442 ;;
11443 *) # EBCDIC based system
11444 lt_SP2NL='tr \100 \n'
11445 lt_NL2SP='tr \r\n \100\100'
11446 ;;
11447 esac
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11458 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11459 if ${lt_cv_to_host_file_cmd+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 case $host in
11463 *-*-mingw* )
11464 case $build in
11465 *-*-mingw* ) # actually msys
11466 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11467 ;;
11468 *-*-cygwin* )
11469 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11470 ;;
11471 * ) # otherwise, assume *nix
11472 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11473 ;;
11474 esac
11475 ;;
11476 *-*-cygwin* )
11477 case $build in
11478 *-*-mingw* ) # actually msys
11479 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11480 ;;
11481 *-*-cygwin* )
11482 lt_cv_to_host_file_cmd=func_convert_file_noop
11483 ;;
11484 * ) # otherwise, assume *nix
11485 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11486 ;;
11487 esac
11488 ;;
11489 * ) # unhandled hosts (and "normal" native builds)
11490 lt_cv_to_host_file_cmd=func_convert_file_noop
11491 ;;
11492 esac
11493
11494 fi
11495
11496 to_host_file_cmd=$lt_cv_to_host_file_cmd
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11498 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11499
11500
11501
11502
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11505 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11506 if ${lt_cv_to_tool_file_cmd+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 #assume ordinary cross tools, or native build.
11510 lt_cv_to_tool_file_cmd=func_convert_file_noop
11511 case $host in
11512 *-*-mingw* )
11513 case $build in
11514 *-*-mingw* ) # actually msys
11515 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11516 ;;
11517 esac
11518 ;;
11519 esac
11520
11521 fi
11522
11523 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11525 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11526
11527
11528
11529
11530
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11532 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11533 if ${lt_cv_ld_reload_flag+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 lt_cv_ld_reload_flag='-r'
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11539 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11540 reload_flag=$lt_cv_ld_reload_flag
11541 case $reload_flag in
11542 "" | " "*) ;;
11543 *) reload_flag=" $reload_flag" ;;
11544 esac
11545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11546 case $host_os in
11547 cygwin* | mingw* | pw32* | cegcc*)
11548 if test "$GCC" != yes; then
11549 reload_cmds=false
11550 fi
11551 ;;
11552 darwin*)
11553 if test "$GCC" = yes; then
11554 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11555 else
11556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11557 fi
11558 ;;
11559 esac
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569 if test -n "$ac_tool_prefix"; then
11570 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11571 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if ${ac_cv_prog_OBJDUMP+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 if test -n "$OBJDUMP"; then
11578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11579 else
11580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11582 do
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
11585 for ac_exec_ext in '' $ac_executable_extensions; do
11586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11587 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589 break 2
11590 fi
11591 done
11592 done
11593 IFS=$as_save_IFS
11594
11595 fi
11596 fi
11597 OBJDUMP=$ac_cv_prog_OBJDUMP
11598 if test -n "$OBJDUMP"; then
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11600 $as_echo "$OBJDUMP" >&6; }
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 fi
11605
11606
11607 fi
11608 if test -z "$ac_cv_prog_OBJDUMP"; then
11609 ac_ct_OBJDUMP=$OBJDUMP
11610 # Extract the first word of "objdump", so it can be a program name with args.
11611 set dummy objdump; ac_word=$2
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 $as_echo_n "checking for $ac_word... " >&6; }
11614 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 if test -n "$ac_ct_OBJDUMP"; then
11618 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11619 else
11620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 for as_dir in $PATH
11622 do
11623 IFS=$as_save_IFS
11624 test -z "$as_dir" && as_dir=.
11625 for ac_exec_ext in '' $ac_executable_extensions; do
11626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11627 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 break 2
11630 fi
11631 done
11632 done
11633 IFS=$as_save_IFS
11634
11635 fi
11636 fi
11637 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11638 if test -n "$ac_ct_OBJDUMP"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11640 $as_echo "$ac_ct_OBJDUMP" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11644 fi
11645
11646 if test "x$ac_ct_OBJDUMP" = x; then
11647 OBJDUMP="false"
11648 else
11649 case $cross_compiling:$ac_tool_warned in
11650 yes:)
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11653 ac_tool_warned=yes ;;
11654 esac
11655 OBJDUMP=$ac_ct_OBJDUMP
11656 fi
11657 else
11658 OBJDUMP="$ac_cv_prog_OBJDUMP"
11659 fi
11660
11661 test -z "$OBJDUMP" && OBJDUMP=objdump
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11672 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11673 if ${lt_cv_deplibs_check_method+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 lt_cv_file_magic_cmd='$MAGIC_CMD'
11677 lt_cv_file_magic_test_file=
11678 lt_cv_deplibs_check_method='unknown'
11679 # Need to set the preceding variable on all platforms that support
11680 # interlibrary dependencies.
11681 # 'none' -- dependencies not supported.
11682 # `unknown' -- same as none, but documents that we really don't know.
11683 # 'pass_all' -- all dependencies passed with no checks.
11684 # 'test_compile' -- check by making test program.
11685 # 'file_magic [[regex]]' -- check by looking for files in library path
11686 # which responds to the $file_magic_cmd with a given extended regex.
11687 # If you have `file' or equivalent on your system and you're not sure
11688 # whether `pass_all' will *always* work, you probably want this one.
11689
11690 case $host_os in
11691 aix[4-9]*)
11692 lt_cv_deplibs_check_method=pass_all
11693 ;;
11694
11695 beos*)
11696 lt_cv_deplibs_check_method=pass_all
11697 ;;
11698
11699 bsdi[45]*)
11700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11701 lt_cv_file_magic_cmd='/usr/bin/file -L'
11702 lt_cv_file_magic_test_file=/shlib/libc.so
11703 ;;
11704
11705 cygwin*)
11706 # func_win32_libid is a shell function defined in ltmain.sh
11707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11708 lt_cv_file_magic_cmd='func_win32_libid'
11709 ;;
11710
11711 mingw* | pw32*)
11712 # Base MSYS/MinGW do not provide the 'file' command needed by
11713 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11714 # unless we find 'file', for example because we are cross-compiling.
11715 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11716 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11718 lt_cv_file_magic_cmd='func_win32_libid'
11719 else
11720 # Keep this pattern in sync with the one in func_win32_libid.
11721 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11722 lt_cv_file_magic_cmd='$OBJDUMP -f'
11723 fi
11724 ;;
11725
11726 cegcc*)
11727 # use the weaker test based on 'objdump'. See mingw*.
11728 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11729 lt_cv_file_magic_cmd='$OBJDUMP -f'
11730 ;;
11731
11732 darwin* | rhapsody*)
11733 lt_cv_deplibs_check_method=pass_all
11734 ;;
11735
11736 freebsd* | dragonfly*)
11737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11738 case $host_cpu in
11739 i*86 )
11740 # Not sure whether the presence of OpenBSD here was a mistake.
11741 # Let's accept both of them until this is cleared up.
11742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11743 lt_cv_file_magic_cmd=/usr/bin/file
11744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11745 ;;
11746 esac
11747 else
11748 lt_cv_deplibs_check_method=pass_all
11749 fi
11750 ;;
11751
11752 gnu*)
11753 lt_cv_deplibs_check_method=pass_all
11754 ;;
11755
11756 haiku*)
11757 lt_cv_deplibs_check_method=pass_all
11758 ;;
11759
11760 hpux10.20* | hpux11*)
11761 lt_cv_file_magic_cmd=/usr/bin/file
11762 case $host_cpu in
11763 ia64*)
11764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11765 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11766 ;;
11767 hppa*64*)
11768 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]'
11769 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11770 ;;
11771 *)
11772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11773 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11774 ;;
11775 esac
11776 ;;
11777
11778 interix[3-9]*)
11779 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11781 ;;
11782
11783 irix5* | irix6* | nonstopux*)
11784 case $LD in
11785 *-32|*"-32 ") libmagic=32-bit;;
11786 *-n32|*"-n32 ") libmagic=N32;;
11787 *-64|*"-64 ") libmagic=64-bit;;
11788 *) libmagic=never-match;;
11789 esac
11790 lt_cv_deplibs_check_method=pass_all
11791 ;;
11792
11793 # This must be glibc/ELF.
11794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11795 lt_cv_deplibs_check_method=pass_all
11796 ;;
11797
11798 netbsd*)
11799 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11801 else
11802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11803 fi
11804 ;;
11805
11806 newos6*)
11807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11808 lt_cv_file_magic_cmd=/usr/bin/file
11809 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11810 ;;
11811
11812 *nto* | *qnx*)
11813 lt_cv_deplibs_check_method=pass_all
11814 ;;
11815
11816 openbsd*)
11817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11819 else
11820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11821 fi
11822 ;;
11823
11824 osf3* | osf4* | osf5*)
11825 lt_cv_deplibs_check_method=pass_all
11826 ;;
11827
11828 rdos*)
11829 lt_cv_deplibs_check_method=pass_all
11830 ;;
11831
11832 solaris*)
11833 lt_cv_deplibs_check_method=pass_all
11834 ;;
11835
11836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11837 lt_cv_deplibs_check_method=pass_all
11838 ;;
11839
11840 sysv4 | sysv4.3*)
11841 case $host_vendor in
11842 motorola)
11843 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]'
11844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11845 ;;
11846 ncr)
11847 lt_cv_deplibs_check_method=pass_all
11848 ;;
11849 sequent)
11850 lt_cv_file_magic_cmd='/bin/file'
11851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11852 ;;
11853 sni)
11854 lt_cv_file_magic_cmd='/bin/file'
11855 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11856 lt_cv_file_magic_test_file=/lib/libc.so
11857 ;;
11858 siemens)
11859 lt_cv_deplibs_check_method=pass_all
11860 ;;
11861 pc)
11862 lt_cv_deplibs_check_method=pass_all
11863 ;;
11864 esac
11865 ;;
11866
11867 tpf*)
11868 lt_cv_deplibs_check_method=pass_all
11869 ;;
11870 esac
11871
11872 fi
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11874 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11875
11876 file_magic_glob=
11877 want_nocaseglob=no
11878 if test "$build" = "$host"; then
11879 case $host_os in
11880 mingw* | pw32*)
11881 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11882 want_nocaseglob=yes
11883 else
11884 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11885 fi
11886 ;;
11887 esac
11888 fi
11889
11890 file_magic_cmd=$lt_cv_file_magic_cmd
11891 deplibs_check_method=$lt_cv_deplibs_check_method
11892 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915 if test -n "$ac_tool_prefix"; then
11916 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11917 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_prog_DLLTOOL+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 if test -n "$DLLTOOL"; then
11924 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11925 else
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH
11928 do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11933 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11936 fi
11937 done
11938 done
11939 IFS=$as_save_IFS
11940
11941 fi
11942 fi
11943 DLLTOOL=$ac_cv_prog_DLLTOOL
11944 if test -n "$DLLTOOL"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11946 $as_echo "$DLLTOOL" >&6; }
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952
11953 fi
11954 if test -z "$ac_cv_prog_DLLTOOL"; then
11955 ac_ct_DLLTOOL=$DLLTOOL
11956 # Extract the first word of "dlltool", so it can be a program name with args.
11957 set dummy dlltool; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 if test -n "$ac_ct_DLLTOOL"; then
11964 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11965 else
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977 done
11978 done
11979 IFS=$as_save_IFS
11980
11981 fi
11982 fi
11983 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11984 if test -n "$ac_ct_DLLTOOL"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11986 $as_echo "$ac_ct_DLLTOOL" >&6; }
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11990 fi
11991
11992 if test "x$ac_ct_DLLTOOL" = x; then
11993 DLLTOOL="false"
11994 else
11995 case $cross_compiling:$ac_tool_warned in
11996 yes:)
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11999 ac_tool_warned=yes ;;
12000 esac
12001 DLLTOOL=$ac_ct_DLLTOOL
12002 fi
12003 else
12004 DLLTOOL="$ac_cv_prog_DLLTOOL"
12005 fi
12006
12007 test -z "$DLLTOOL" && DLLTOOL=dlltool
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12019 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12020 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 lt_cv_sharedlib_from_linklib_cmd='unknown'
12024
12025 case $host_os in
12026 cygwin* | mingw* | pw32* | cegcc*)
12027 # two different shell functions defined in ltmain.sh
12028 # decide which to use based on capabilities of $DLLTOOL
12029 case `$DLLTOOL --help 2>&1` in
12030 *--identify-strict*)
12031 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12032 ;;
12033 *)
12034 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12035 ;;
12036 esac
12037 ;;
12038 *)
12039 # fallback: assume linklib IS sharedlib
12040 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12041 ;;
12042 esac
12043
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12046 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12047 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12048 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12049
12050
12051
12052
12053
12054
12055
12056 if test -n "$ac_tool_prefix"; then
12057 for ac_prog in ar
12058 do
12059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_prog_AR+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 if test -n "$AR"; then
12067 ac_cv_prog_AR="$AR" # Let the user override the test.
12068 else
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12071 do
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 break 2
12079 fi
12080 done
12081 done
12082 IFS=$as_save_IFS
12083
12084 fi
12085 fi
12086 AR=$ac_cv_prog_AR
12087 if test -n "$AR"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12089 $as_echo "$AR" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12093 fi
12094
12095
12096 test -n "$AR" && break
12097 done
12098 fi
12099 if test -z "$AR"; then
12100 ac_ct_AR=$AR
12101 for ac_prog in ar
12102 do
12103 # Extract the first word of "$ac_prog", so it can be a program name with args.
12104 set dummy $ac_prog; ac_word=$2
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106 $as_echo_n "checking for $ac_word... " >&6; }
12107 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 if test -n "$ac_ct_AR"; then
12111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12112 else
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120 ac_cv_prog_ac_ct_AR="$ac_prog"
12121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122 break 2
12123 fi
12124 done
12125 done
12126 IFS=$as_save_IFS
12127
12128 fi
12129 fi
12130 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12131 if test -n "$ac_ct_AR"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12133 $as_echo "$ac_ct_AR" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137 fi
12138
12139
12140 test -n "$ac_ct_AR" && break
12141 done
12142
12143 if test "x$ac_ct_AR" = x; then
12144 AR="false"
12145 else
12146 case $cross_compiling:$ac_tool_warned in
12147 yes:)
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12150 ac_tool_warned=yes ;;
12151 esac
12152 AR=$ac_ct_AR
12153 fi
12154 fi
12155
12156 : ${AR=ar}
12157 : ${AR_FLAGS=cru}
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12170 $as_echo_n "checking for archiver @FILE support... " >&6; }
12171 if ${lt_cv_ar_at_file+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 lt_cv_ar_at_file=no
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177
12178 int
12179 main ()
12180 {
12181
12182 ;
12183 return 0;
12184 }
12185 _ACEOF
12186 if ac_fn_c_try_compile "$LINENO"; then :
12187 echo conftest.$ac_objext > conftest.lst
12188 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12190 (eval $lt_ar_try) 2>&5
12191 ac_status=$?
12192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193 test $ac_status = 0; }
12194 if test "$ac_status" -eq 0; then
12195 # Ensure the archiver fails upon bogus file names.
12196 rm -f conftest.$ac_objext libconftest.a
12197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12198 (eval $lt_ar_try) 2>&5
12199 ac_status=$?
12200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12201 test $ac_status = 0; }
12202 if test "$ac_status" -ne 0; then
12203 lt_cv_ar_at_file=@
12204 fi
12205 fi
12206 rm -f conftest.* libconftest.a
12207
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12213 $as_echo "$lt_cv_ar_at_file" >&6; }
12214
12215 if test "x$lt_cv_ar_at_file" = xno; then
12216 archiver_list_spec=
12217 else
12218 archiver_list_spec=$lt_cv_ar_at_file
12219 fi
12220
12221
12222
12223
12224
12225
12226
12227 if test -n "$ac_tool_prefix"; then
12228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12229 set dummy ${ac_tool_prefix}strip; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if ${ac_cv_prog_STRIP+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 if test -n "$STRIP"; then
12236 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12248 fi
12249 done
12250 done
12251 IFS=$as_save_IFS
12252
12253 fi
12254 fi
12255 STRIP=$ac_cv_prog_STRIP
12256 if test -n "$STRIP"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12258 $as_echo "$STRIP" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263
12264
12265 fi
12266 if test -z "$ac_cv_prog_STRIP"; then
12267 ac_ct_STRIP=$STRIP
12268 # Extract the first word of "strip", so it can be a program name with args.
12269 set dummy strip; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 if test -n "$ac_ct_STRIP"; then
12276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12277 else
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12280 do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12285 ac_cv_prog_ac_ct_STRIP="strip"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12288 fi
12289 done
12290 done
12291 IFS=$as_save_IFS
12292
12293 fi
12294 fi
12295 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12296 if test -n "$ac_ct_STRIP"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12298 $as_echo "$ac_ct_STRIP" >&6; }
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12302 fi
12303
12304 if test "x$ac_ct_STRIP" = x; then
12305 STRIP=":"
12306 else
12307 case $cross_compiling:$ac_tool_warned in
12308 yes:)
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12311 ac_tool_warned=yes ;;
12312 esac
12313 STRIP=$ac_ct_STRIP
12314 fi
12315 else
12316 STRIP="$ac_cv_prog_STRIP"
12317 fi
12318
12319 test -z "$STRIP" && STRIP=:
12320
12321
12322
12323
12324
12325
12326 if test -n "$ac_tool_prefix"; then
12327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12328 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_prog_RANLIB+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 if test -n "$RANLIB"; then
12335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12339 do
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346 break 2
12347 fi
12348 done
12349 done
12350 IFS=$as_save_IFS
12351
12352 fi
12353 fi
12354 RANLIB=$ac_cv_prog_RANLIB
12355 if test -n "$RANLIB"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12357 $as_echo "$RANLIB" >&6; }
12358 else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363
12364 fi
12365 if test -z "$ac_cv_prog_RANLIB"; then
12366 ac_ct_RANLIB=$RANLIB
12367 # Extract the first word of "ranlib", so it can be a program name with args.
12368 set dummy ranlib; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 if test -n "$ac_ct_RANLIB"; then
12375 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12376 else
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12379 do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_prog_ac_ct_RANLIB="ranlib"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12387 fi
12388 done
12389 done
12390 IFS=$as_save_IFS
12391
12392 fi
12393 fi
12394 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12395 if test -n "$ac_ct_RANLIB"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12397 $as_echo "$ac_ct_RANLIB" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12401 fi
12402
12403 if test "x$ac_ct_RANLIB" = x; then
12404 RANLIB=":"
12405 else
12406 case $cross_compiling:$ac_tool_warned in
12407 yes:)
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12410 ac_tool_warned=yes ;;
12411 esac
12412 RANLIB=$ac_ct_RANLIB
12413 fi
12414 else
12415 RANLIB="$ac_cv_prog_RANLIB"
12416 fi
12417
12418 test -z "$RANLIB" && RANLIB=:
12419
12420
12421
12422
12423
12424
12425 # Determine commands to create old-style static archives.
12426 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12427 old_postinstall_cmds='chmod 644 $oldlib'
12428 old_postuninstall_cmds=
12429
12430 if test -n "$RANLIB"; then
12431 case $host_os in
12432 openbsd*)
12433 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12434 ;;
12435 *)
12436 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12437 ;;
12438 esac
12439 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12440 fi
12441
12442 case $host_os in
12443 darwin*)
12444 lock_old_archive_extraction=yes ;;
12445 *)
12446 lock_old_archive_extraction=no ;;
12447 esac
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487 # If no C compiler was specified, use CC.
12488 LTCC=${LTCC-"$CC"}
12489
12490 # If no C compiler flags were specified, use CFLAGS.
12491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12492
12493 # Allow CC to be a program name with arguments.
12494 compiler=$CC
12495
12496
12497 # Check for command to grab the raw symbol name followed by C symbol from nm.
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12499 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12500 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503
12504 # These are sane defaults that work on at least a few old systems.
12505 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12506
12507 # Character class describing NM global symbol codes.
12508 symcode='[BCDEGRST]'
12509
12510 # Regexp to match symbols that can be accessed directly from C.
12511 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12512
12513 # Define system-specific variables.
12514 case $host_os in
12515 aix*)
12516 symcode='[BCDT]'
12517 ;;
12518 cygwin* | mingw* | pw32* | cegcc*)
12519 symcode='[ABCDGISTW]'
12520 ;;
12521 hpux*)
12522 if test "$host_cpu" = ia64; then
12523 symcode='[ABCDEGRST]'
12524 fi
12525 ;;
12526 irix* | nonstopux*)
12527 symcode='[BCDEGRST]'
12528 ;;
12529 osf*)
12530 symcode='[BCDEGQRST]'
12531 ;;
12532 solaris*)
12533 symcode='[BDRT]'
12534 ;;
12535 sco3.2v5*)
12536 symcode='[DT]'
12537 ;;
12538 sysv4.2uw2*)
12539 symcode='[DT]'
12540 ;;
12541 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12542 symcode='[ABDT]'
12543 ;;
12544 sysv4)
12545 symcode='[DFNSTU]'
12546 ;;
12547 esac
12548
12549 # If we're using GNU nm, then use its standard symbol codes.
12550 case `$NM -V 2>&1` in
12551 *GNU* | *'with BFD'*)
12552 symcode='[ABCDGIRSTW]' ;;
12553 esac
12554
12555 # Transform an extracted symbol line into a proper C declaration.
12556 # Some systems (esp. on ia64) link data and code symbols differently,
12557 # so use this general approach.
12558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12559
12560 # Transform an extracted symbol line into symbol name and symbol address
12561 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12562 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'"
12563
12564 # Handle CRLF in mingw tool chain
12565 opt_cr=
12566 case $build_os in
12567 mingw*)
12568 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12569 ;;
12570 esac
12571
12572 # Try without a prefix underscore, then with it.
12573 for ac_symprfx in "" "_"; do
12574
12575 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12576 symxfrm="\\1 $ac_symprfx\\2 \\2"
12577
12578 # Write the raw and C identifiers.
12579 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12580 # Fake it for dumpbin and say T for any non-static function
12581 # and D for any global variable.
12582 # Also find C++ and __fastcall symbols from MSVC++,
12583 # which start with @ or ?.
12584 lt_cv_sys_global_symbol_pipe="$AWK '"\
12585 " {last_section=section; section=\$ 3};"\
12586 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12587 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12588 " \$ 0!~/External *\|/{next};"\
12589 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12590 " {if(hide[section]) next};"\
12591 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12592 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12593 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12594 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12595 " ' prfx=^$ac_symprfx"
12596 else
12597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12598 fi
12599 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12600
12601 # Check to see that the pipe works correctly.
12602 pipe_works=no
12603
12604 rm -f conftest*
12605 cat > conftest.$ac_ext <<_LT_EOF
12606 #ifdef __cplusplus
12607 extern "C" {
12608 #endif
12609 char nm_test_var;
12610 void nm_test_func(void);
12611 void nm_test_func(void){}
12612 #ifdef __cplusplus
12613 }
12614 #endif
12615 int main(){nm_test_var='a';nm_test_func();return(0);}
12616 _LT_EOF
12617
12618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12619 (eval $ac_compile) 2>&5
12620 ac_status=$?
12621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12622 test $ac_status = 0; }; then
12623 # Now try to grab the symbols.
12624 nlist=conftest.nm
12625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12626 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12627 ac_status=$?
12628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629 test $ac_status = 0; } && test -s "$nlist"; then
12630 # Try sorting and uniquifying the output.
12631 if sort "$nlist" | uniq > "$nlist"T; then
12632 mv -f "$nlist"T "$nlist"
12633 else
12634 rm -f "$nlist"T
12635 fi
12636
12637 # Make sure that we snagged all the symbols we need.
12638 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12639 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12640 cat <<_LT_EOF > conftest.$ac_ext
12641 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12642 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12643 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12644 relocations are performed -- see ld's documentation on pseudo-relocs. */
12645 # define LT_DLSYM_CONST
12646 #elif defined(__osf__)
12647 /* This system does not cope well with relocations in const data. */
12648 # define LT_DLSYM_CONST
12649 #else
12650 # define LT_DLSYM_CONST const
12651 #endif
12652
12653 #ifdef __cplusplus
12654 extern "C" {
12655 #endif
12656
12657 _LT_EOF
12658 # Now generate the symbol file.
12659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12660
12661 cat <<_LT_EOF >> conftest.$ac_ext
12662
12663 /* The mapping between symbol names and symbols. */
12664 LT_DLSYM_CONST struct {
12665 const char *name;
12666 void *address;
12667 }
12668 lt__PROGRAM__LTX_preloaded_symbols[] =
12669 {
12670 { "@PROGRAM@", (void *) 0 },
12671 _LT_EOF
12672 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12673 cat <<\_LT_EOF >> conftest.$ac_ext
12674 {0, (void *) 0}
12675 };
12676
12677 /* This works around a problem in FreeBSD linker */
12678 #ifdef FREEBSD_WORKAROUND
12679 static const void *lt_preloaded_setup() {
12680 return lt__PROGRAM__LTX_preloaded_symbols;
12681 }
12682 #endif
12683
12684 #ifdef __cplusplus
12685 }
12686 #endif
12687 _LT_EOF
12688 # Now try linking the two files.
12689 mv conftest.$ac_objext conftstm.$ac_objext
12690 lt_globsym_save_LIBS=$LIBS
12691 lt_globsym_save_CFLAGS=$CFLAGS
12692 LIBS="conftstm.$ac_objext"
12693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12695 (eval $ac_link) 2>&5
12696 ac_status=$?
12697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12699 pipe_works=yes
12700 fi
12701 LIBS=$lt_globsym_save_LIBS
12702 CFLAGS=$lt_globsym_save_CFLAGS
12703 else
12704 echo "cannot find nm_test_func in $nlist" >&5
12705 fi
12706 else
12707 echo "cannot find nm_test_var in $nlist" >&5
12708 fi
12709 else
12710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12711 fi
12712 else
12713 echo "$progname: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12715 fi
12716 rm -rf conftest* conftst*
12717
12718 # Do not use the global_symbol_pipe unless it works.
12719 if test "$pipe_works" = yes; then
12720 break
12721 else
12722 lt_cv_sys_global_symbol_pipe=
12723 fi
12724 done
12725
12726 fi
12727
12728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12729 lt_cv_sys_global_symbol_to_cdecl=
12730 fi
12731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12733 $as_echo "failed" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12736 $as_echo "ok" >&6; }
12737 fi
12738
12739 # Response file support.
12740 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12741 nm_file_list_spec='@'
12742 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12743 nm_file_list_spec='@'
12744 fi
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12773 $as_echo_n "checking for sysroot... " >&6; }
12774
12775 # Check whether --with-sysroot was given.
12776 if test "${with_sysroot+set}" = set; then :
12777 withval=$with_sysroot;
12778 else
12779 with_sysroot=no
12780 fi
12781
12782
12783 lt_sysroot=
12784 case ${with_sysroot} in #(
12785 yes)
12786 if test "$GCC" = yes; then
12787 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12788 fi
12789 ;; #(
12790 /*)
12791 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12792 ;; #(
12793 no|'')
12794 ;; #(
12795 *)
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12797 $as_echo "${with_sysroot}" >&6; }
12798 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12799 ;;
12800 esac
12801
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12803 $as_echo "${lt_sysroot:-no}" >&6; }
12804
12805
12806
12807
12808
12809 # Check whether --enable-libtool-lock was given.
12810 if test "${enable_libtool_lock+set}" = set; then :
12811 enableval=$enable_libtool_lock;
12812 fi
12813
12814 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12815
12816 # Some flags need to be propagated to the compiler or linker for good
12817 # libtool support.
12818 case $host in
12819 ia64-*-hpux*)
12820 # Find out which ABI we are using.
12821 echo 'int i;' > conftest.$ac_ext
12822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12823 (eval $ac_compile) 2>&5
12824 ac_status=$?
12825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12826 test $ac_status = 0; }; then
12827 case `/usr/bin/file conftest.$ac_objext` in
12828 *ELF-32*)
12829 HPUX_IA64_MODE="32"
12830 ;;
12831 *ELF-64*)
12832 HPUX_IA64_MODE="64"
12833 ;;
12834 esac
12835 fi
12836 rm -rf conftest*
12837 ;;
12838 *-*-irix6*)
12839 # Find out which ABI we are using.
12840 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12842 (eval $ac_compile) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; }; then
12846 if test "$lt_cv_prog_gnu_ld" = yes; then
12847 case `/usr/bin/file conftest.$ac_objext` in
12848 *32-bit*)
12849 LD="${LD-ld} -melf32bsmip"
12850 ;;
12851 *N32*)
12852 LD="${LD-ld} -melf32bmipn32"
12853 ;;
12854 *64-bit*)
12855 LD="${LD-ld} -melf64bmip"
12856 ;;
12857 esac
12858 else
12859 case `/usr/bin/file conftest.$ac_objext` in
12860 *32-bit*)
12861 LD="${LD-ld} -32"
12862 ;;
12863 *N32*)
12864 LD="${LD-ld} -n32"
12865 ;;
12866 *64-bit*)
12867 LD="${LD-ld} -64"
12868 ;;
12869 esac
12870 fi
12871 fi
12872 rm -rf conftest*
12873 ;;
12874
12875 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12876 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12877 # Find out which ABI we are using.
12878 echo 'int i;' > conftest.$ac_ext
12879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12880 (eval $ac_compile) 2>&5
12881 ac_status=$?
12882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12883 test $ac_status = 0; }; then
12884 case `/usr/bin/file conftest.o` in
12885 *32-bit*)
12886 case $host in
12887 x86_64-*kfreebsd*-gnu)
12888 LD="${LD-ld} -m elf_i386_fbsd"
12889 ;;
12890 x86_64-*linux*)
12891 LD="${LD-ld} -m elf_i386"
12892 ;;
12893 ppc64-*linux*|powerpc64-*linux*)
12894 LD="${LD-ld} -m elf32ppclinux"
12895 ;;
12896 s390x-*linux*)
12897 LD="${LD-ld} -m elf_s390"
12898 ;;
12899 sparc64-*linux*)
12900 LD="${LD-ld} -m elf32_sparc"
12901 ;;
12902 esac
12903 ;;
12904 *64-bit*)
12905 case $host in
12906 x86_64-*kfreebsd*-gnu)
12907 LD="${LD-ld} -m elf_x86_64_fbsd"
12908 ;;
12909 x86_64-*linux*)
12910 LD="${LD-ld} -m elf_x86_64"
12911 ;;
12912 ppc*-*linux*|powerpc*-*linux*)
12913 LD="${LD-ld} -m elf64ppc"
12914 ;;
12915 s390*-*linux*|s390*-*tpf*)
12916 LD="${LD-ld} -m elf64_s390"
12917 ;;
12918 sparc*-*linux*)
12919 LD="${LD-ld} -m elf64_sparc"
12920 ;;
12921 esac
12922 ;;
12923 esac
12924 fi
12925 rm -rf conftest*
12926 ;;
12927
12928 *-*-sco3.2v5*)
12929 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12930 SAVE_CFLAGS="$CFLAGS"
12931 CFLAGS="$CFLAGS -belf"
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12933 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12934 if ${lt_cv_cc_needs_belf+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 ac_ext=c
12938 ac_cpp='$CPP $CPPFLAGS'
12939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12942
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945
12946 int
12947 main ()
12948 {
12949
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_c_try_link "$LINENO"; then :
12955 lt_cv_cc_needs_belf=yes
12956 else
12957 lt_cv_cc_needs_belf=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 ac_ext=c
12962 ac_cpp='$CPP $CPPFLAGS'
12963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12966
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12969 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12972 CFLAGS="$SAVE_CFLAGS"
12973 fi
12974 ;;
12975 *-*solaris*)
12976 # Find out which ABI we are using.
12977 echo 'int i;' > conftest.$ac_ext
12978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12979 (eval $ac_compile) 2>&5
12980 ac_status=$?
12981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982 test $ac_status = 0; }; then
12983 case `/usr/bin/file conftest.o` in
12984 *64-bit*)
12985 case $lt_cv_prog_gnu_ld in
12986 yes*)
12987 case $host in
12988 i?86-*-solaris*)
12989 LD="${LD-ld} -m elf_x86_64"
12990 ;;
12991 sparc*-*-solaris*)
12992 LD="${LD-ld} -m elf64_sparc"
12993 ;;
12994 esac
12995 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12996 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12997 LD="${LD-ld}_sol2"
12998 fi
12999 ;;
13000 *)
13001 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13002 LD="${LD-ld} -64"
13003 fi
13004 ;;
13005 esac
13006 ;;
13007 esac
13008 fi
13009 rm -rf conftest*
13010 ;;
13011 esac
13012
13013 need_locks="$enable_libtool_lock"
13014
13015 if test -n "$ac_tool_prefix"; then
13016 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13017 set dummy ${ac_tool_prefix}mt; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 if test -n "$MANIFEST_TOOL"; then
13024 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13025 else
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13028 do
13029 IFS=$as_save_IFS
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 break 2
13036 fi
13037 done
13038 done
13039 IFS=$as_save_IFS
13040
13041 fi
13042 fi
13043 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13044 if test -n "$MANIFEST_TOOL"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13046 $as_echo "$MANIFEST_TOOL" >&6; }
13047 else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049 $as_echo "no" >&6; }
13050 fi
13051
13052
13053 fi
13054 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13055 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13056 # Extract the first word of "mt", so it can be a program name with args.
13057 set dummy mt; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059 $as_echo_n "checking for $ac_word... " >&6; }
13060 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 if test -n "$ac_ct_MANIFEST_TOOL"; then
13064 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13065 else
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13073 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075 break 2
13076 fi
13077 done
13078 done
13079 IFS=$as_save_IFS
13080
13081 fi
13082 fi
13083 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13084 if test -n "$ac_ct_MANIFEST_TOOL"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13086 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091
13092 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13093 MANIFEST_TOOL=":"
13094 else
13095 case $cross_compiling:$ac_tool_warned in
13096 yes:)
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13099 ac_tool_warned=yes ;;
13100 esac
13101 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13102 fi
13103 else
13104 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13105 fi
13106
13107 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13109 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13110 if ${lt_cv_path_mainfest_tool+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 lt_cv_path_mainfest_tool=no
13114 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13115 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13116 cat conftest.err >&5
13117 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13118 lt_cv_path_mainfest_tool=yes
13119 fi
13120 rm -f conftest*
13121 fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13123 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13124 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13125 MANIFEST_TOOL=:
13126 fi
13127
13128
13129
13130
13131
13132
13133 case $host_os in
13134 rhapsody* | darwin*)
13135 if test -n "$ac_tool_prefix"; then
13136 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13137 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 if test -n "$DSYMUTIL"; then
13144 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13156 fi
13157 done
13158 done
13159 IFS=$as_save_IFS
13160
13161 fi
13162 fi
13163 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13164 if test -n "$DSYMUTIL"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13166 $as_echo "$DSYMUTIL" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170 fi
13171
13172
13173 fi
13174 if test -z "$ac_cv_prog_DSYMUTIL"; then
13175 ac_ct_DSYMUTIL=$DSYMUTIL
13176 # Extract the first word of "dsymutil", so it can be a program name with args.
13177 set dummy dsymutil; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 if test -n "$ac_ct_DSYMUTIL"; then
13184 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13185 else
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13188 do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13193 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13196 fi
13197 done
13198 done
13199 IFS=$as_save_IFS
13200
13201 fi
13202 fi
13203 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13204 if test -n "$ac_ct_DSYMUTIL"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13206 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13210 fi
13211
13212 if test "x$ac_ct_DSYMUTIL" = x; then
13213 DSYMUTIL=":"
13214 else
13215 case $cross_compiling:$ac_tool_warned in
13216 yes:)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13219 ac_tool_warned=yes ;;
13220 esac
13221 DSYMUTIL=$ac_ct_DSYMUTIL
13222 fi
13223 else
13224 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13225 fi
13226
13227 if test -n "$ac_tool_prefix"; then
13228 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13229 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if ${ac_cv_prog_NMEDIT+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test -n "$NMEDIT"; then
13236 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13240 do
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13248 fi
13249 done
13250 done
13251 IFS=$as_save_IFS
13252
13253 fi
13254 fi
13255 NMEDIT=$ac_cv_prog_NMEDIT
13256 if test -n "$NMEDIT"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13258 $as_echo "$NMEDIT" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13262 fi
13263
13264
13265 fi
13266 if test -z "$ac_cv_prog_NMEDIT"; then
13267 ac_ct_NMEDIT=$NMEDIT
13268 # Extract the first word of "nmedit", so it can be a program name with args.
13269 set dummy nmedit; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 if test -n "$ac_ct_NMEDIT"; then
13276 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13280 do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289 done
13290 done
13291 IFS=$as_save_IFS
13292
13293 fi
13294 fi
13295 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13296 if test -n "$ac_ct_NMEDIT"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13298 $as_echo "$ac_ct_NMEDIT" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303
13304 if test "x$ac_ct_NMEDIT" = x; then
13305 NMEDIT=":"
13306 else
13307 case $cross_compiling:$ac_tool_warned in
13308 yes:)
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13311 ac_tool_warned=yes ;;
13312 esac
13313 NMEDIT=$ac_ct_NMEDIT
13314 fi
13315 else
13316 NMEDIT="$ac_cv_prog_NMEDIT"
13317 fi
13318
13319 if test -n "$ac_tool_prefix"; then
13320 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13321 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13323 $as_echo_n "checking for $ac_word... " >&6; }
13324 if ${ac_cv_prog_LIPO+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 if test -n "$LIPO"; then
13328 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13329 else
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13332 do
13333 IFS=$as_save_IFS
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13339 break 2
13340 fi
13341 done
13342 done
13343 IFS=$as_save_IFS
13344
13345 fi
13346 fi
13347 LIPO=$ac_cv_prog_LIPO
13348 if test -n "$LIPO"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13350 $as_echo "$LIPO" >&6; }
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354 fi
13355
13356
13357 fi
13358 if test -z "$ac_cv_prog_LIPO"; then
13359 ac_ct_LIPO=$LIPO
13360 # Extract the first word of "lipo", so it can be a program name with args.
13361 set dummy lipo; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13365 $as_echo_n "(cached) " >&6
13366 else
13367 if test -n "$ac_ct_LIPO"; then
13368 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13369 else
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377 ac_cv_prog_ac_ct_LIPO="lipo"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13380 fi
13381 done
13382 done
13383 IFS=$as_save_IFS
13384
13385 fi
13386 fi
13387 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13388 if test -n "$ac_ct_LIPO"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13390 $as_echo "$ac_ct_LIPO" >&6; }
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13394 fi
13395
13396 if test "x$ac_ct_LIPO" = x; then
13397 LIPO=":"
13398 else
13399 case $cross_compiling:$ac_tool_warned in
13400 yes:)
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13403 ac_tool_warned=yes ;;
13404 esac
13405 LIPO=$ac_ct_LIPO
13406 fi
13407 else
13408 LIPO="$ac_cv_prog_LIPO"
13409 fi
13410
13411 if test -n "$ac_tool_prefix"; then
13412 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13413 set dummy ${ac_tool_prefix}otool; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if ${ac_cv_prog_OTOOL+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 if test -n "$OTOOL"; then
13420 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13421 else
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13424 do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13432 fi
13433 done
13434 done
13435 IFS=$as_save_IFS
13436
13437 fi
13438 fi
13439 OTOOL=$ac_cv_prog_OTOOL
13440 if test -n "$OTOOL"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13442 $as_echo "$OTOOL" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13446 fi
13447
13448
13449 fi
13450 if test -z "$ac_cv_prog_OTOOL"; then
13451 ac_ct_OTOOL=$OTOOL
13452 # Extract the first word of "otool", so it can be a program name with args.
13453 set dummy otool; ac_word=$2
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13455 $as_echo_n "checking for $ac_word... " >&6; }
13456 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 if test -n "$ac_ct_OTOOL"; then
13460 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13461 else
13462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13463 for as_dir in $PATH
13464 do
13465 IFS=$as_save_IFS
13466 test -z "$as_dir" && as_dir=.
13467 for ac_exec_ext in '' $ac_executable_extensions; do
13468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13469 ac_cv_prog_ac_ct_OTOOL="otool"
13470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13471 break 2
13472 fi
13473 done
13474 done
13475 IFS=$as_save_IFS
13476
13477 fi
13478 fi
13479 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13480 if test -n "$ac_ct_OTOOL"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13482 $as_echo "$ac_ct_OTOOL" >&6; }
13483 else
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13486 fi
13487
13488 if test "x$ac_ct_OTOOL" = x; then
13489 OTOOL=":"
13490 else
13491 case $cross_compiling:$ac_tool_warned in
13492 yes:)
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13495 ac_tool_warned=yes ;;
13496 esac
13497 OTOOL=$ac_ct_OTOOL
13498 fi
13499 else
13500 OTOOL="$ac_cv_prog_OTOOL"
13501 fi
13502
13503 if test -n "$ac_tool_prefix"; then
13504 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13505 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13507 $as_echo_n "checking for $ac_word... " >&6; }
13508 if ${ac_cv_prog_OTOOL64+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 if test -n "$OTOOL64"; then
13512 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13513 else
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13516 do
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13521 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13523 break 2
13524 fi
13525 done
13526 done
13527 IFS=$as_save_IFS
13528
13529 fi
13530 fi
13531 OTOOL64=$ac_cv_prog_OTOOL64
13532 if test -n "$OTOOL64"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13534 $as_echo "$OTOOL64" >&6; }
13535 else
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13537 $as_echo "no" >&6; }
13538 fi
13539
13540
13541 fi
13542 if test -z "$ac_cv_prog_OTOOL64"; then
13543 ac_ct_OTOOL64=$OTOOL64
13544 # Extract the first word of "otool64", so it can be a program name with args.
13545 set dummy otool64; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$ac_ct_OTOOL64"; then
13552 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13556 do
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13561 ac_cv_prog_ac_ct_OTOOL64="otool64"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13564 fi
13565 done
13566 done
13567 IFS=$as_save_IFS
13568
13569 fi
13570 fi
13571 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13572 if test -n "$ac_ct_OTOOL64"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13574 $as_echo "$ac_ct_OTOOL64" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13578 fi
13579
13580 if test "x$ac_ct_OTOOL64" = x; then
13581 OTOOL64=":"
13582 else
13583 case $cross_compiling:$ac_tool_warned in
13584 yes:)
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13587 ac_tool_warned=yes ;;
13588 esac
13589 OTOOL64=$ac_ct_OTOOL64
13590 fi
13591 else
13592 OTOOL64="$ac_cv_prog_OTOOL64"
13593 fi
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13622 $as_echo_n "checking for -single_module linker flag... " >&6; }
13623 if ${lt_cv_apple_cc_single_mod+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 lt_cv_apple_cc_single_mod=no
13627 if test -z "${LT_MULTI_MODULE}"; then
13628 # By default we will add the -single_module flag. You can override
13629 # by either setting the environment variable LT_MULTI_MODULE
13630 # non-empty at configure time, or by adding -multi_module to the
13631 # link flags.
13632 rm -rf libconftest.dylib*
13633 echo "int foo(void){return 1;}" > conftest.c
13634 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13635 -dynamiclib -Wl,-single_module conftest.c" >&5
13636 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13637 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13638 _lt_result=$?
13639 # If there is a non-empty error log, and "single_module"
13640 # appears in it, assume the flag caused a linker warning
13641 if test -s conftest.err && $GREP single_module conftest.err; then
13642 cat conftest.err >&5
13643 # Otherwise, if the output was created with a 0 exit code from
13644 # the compiler, it worked.
13645 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13646 lt_cv_apple_cc_single_mod=yes
13647 else
13648 cat conftest.err >&5
13649 fi
13650 rm -rf libconftest.dylib*
13651 rm -f conftest.*
13652 fi
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13655 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13658 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13659 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 lt_cv_ld_exported_symbols_list=no
13663 save_LDFLAGS=$LDFLAGS
13664 echo "_main" > conftest.sym
13665 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13668
13669 int
13670 main ()
13671 {
13672
13673 ;
13674 return 0;
13675 }
13676 _ACEOF
13677 if ac_fn_c_try_link "$LINENO"; then :
13678 lt_cv_ld_exported_symbols_list=yes
13679 else
13680 lt_cv_ld_exported_symbols_list=no
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext \
13683 conftest$ac_exeext conftest.$ac_ext
13684 LDFLAGS="$save_LDFLAGS"
13685
13686 fi
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13688 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13689
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13691 $as_echo_n "checking for -force_load linker flag... " >&6; }
13692 if ${lt_cv_ld_force_load+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 lt_cv_ld_force_load=no
13696 cat > conftest.c << _LT_EOF
13697 int forced_loaded() { return 2;}
13698 _LT_EOF
13699 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13700 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13701 echo "$AR cru libconftest.a conftest.o" >&5
13702 $AR cru libconftest.a conftest.o 2>&5
13703 echo "$RANLIB libconftest.a" >&5
13704 $RANLIB libconftest.a 2>&5
13705 cat > conftest.c << _LT_EOF
13706 int main() { return 0;}
13707 _LT_EOF
13708 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13709 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13710 _lt_result=$?
13711 if test -s conftest.err && $GREP force_load conftest.err; then
13712 cat conftest.err >&5
13713 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13714 lt_cv_ld_force_load=yes
13715 else
13716 cat conftest.err >&5
13717 fi
13718 rm -f conftest.err libconftest.a conftest conftest.c
13719 rm -rf conftest.dSYM
13720
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13723 $as_echo "$lt_cv_ld_force_load" >&6; }
13724 case $host_os in
13725 rhapsody* | darwin1.[012])
13726 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13727 darwin1.*)
13728 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13729 darwin*) # darwin 5.x on
13730 # if running on 10.5 or later, the deployment target defaults
13731 # to the OS version, if on x86, and 10.4, the deployment
13732 # target defaults to 10.4. Don't you love it?
13733 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13734 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13735 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13736 10.[012]*)
13737 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13738 10.*)
13739 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13740 esac
13741 ;;
13742 esac
13743 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13744 _lt_dar_single_mod='$single_module'
13745 fi
13746 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13747 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13748 else
13749 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13750 fi
13751 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13752 _lt_dsymutil='~$DSYMUTIL $lib || :'
13753 else
13754 _lt_dsymutil=
13755 fi
13756 ;;
13757 esac
13758
13759 for ac_header in dlfcn.h
13760 do :
13761 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13762 "
13763 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_DLFCN_H 1
13766 _ACEOF
13767
13768 fi
13769
13770 done
13771
13772
13773
13774
13775
13776 # Set options
13777
13778
13779
13780 enable_dlopen=no
13781
13782
13783 enable_win32_dll=no
13784
13785
13786 # Check whether --enable-shared was given.
13787 if test "${enable_shared+set}" = set; then :
13788 enableval=$enable_shared; p=${PACKAGE-default}
13789 case $enableval in
13790 yes) enable_shared=yes ;;
13791 no) enable_shared=no ;;
13792 *)
13793 enable_shared=no
13794 # Look at the argument we got. We use all the common list separators.
13795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13796 for pkg in $enableval; do
13797 IFS="$lt_save_ifs"
13798 if test "X$pkg" = "X$p"; then
13799 enable_shared=yes
13800 fi
13801 done
13802 IFS="$lt_save_ifs"
13803 ;;
13804 esac
13805 else
13806 enable_shared=yes
13807 fi
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819 # Check whether --with-pic was given.
13820 if test "${with_pic+set}" = set; then :
13821 withval=$with_pic; lt_p=${PACKAGE-default}
13822 case $withval in
13823 yes|no) pic_mode=$withval ;;
13824 *)
13825 pic_mode=default
13826 # Look at the argument we got. We use all the common list separators.
13827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13828 for lt_pkg in $withval; do
13829 IFS="$lt_save_ifs"
13830 if test "X$lt_pkg" = "X$lt_p"; then
13831 pic_mode=yes
13832 fi
13833 done
13834 IFS="$lt_save_ifs"
13835 ;;
13836 esac
13837 else
13838 pic_mode=default
13839 fi
13840
13841
13842 test -z "$pic_mode" && pic_mode=default
13843
13844
13845
13846
13847
13848
13849
13850 # Check whether --enable-fast-install was given.
13851 if test "${enable_fast_install+set}" = set; then :
13852 enableval=$enable_fast_install; p=${PACKAGE-default}
13853 case $enableval in
13854 yes) enable_fast_install=yes ;;
13855 no) enable_fast_install=no ;;
13856 *)
13857 enable_fast_install=no
13858 # Look at the argument we got. We use all the common list separators.
13859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13860 for pkg in $enableval; do
13861 IFS="$lt_save_ifs"
13862 if test "X$pkg" = "X$p"; then
13863 enable_fast_install=yes
13864 fi
13865 done
13866 IFS="$lt_save_ifs"
13867 ;;
13868 esac
13869 else
13870 enable_fast_install=yes
13871 fi
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883 # This can be used to rebuild libtool when needed
13884 LIBTOOL_DEPS="$ltmain"
13885
13886 # Always use our own libtool.
13887 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918 test -z "$LN_S" && LN_S="ln -s"
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933 if test -n "${ZSH_VERSION+set}" ; then
13934 setopt NO_GLOB_SUBST
13935 fi
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13938 $as_echo_n "checking for objdir... " >&6; }
13939 if ${lt_cv_objdir+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 rm -f .libs 2>/dev/null
13943 mkdir .libs 2>/dev/null
13944 if test -d .libs; then
13945 lt_cv_objdir=.libs
13946 else
13947 # MS-DOS does not allow filenames that begin with a dot.
13948 lt_cv_objdir=_libs
13949 fi
13950 rmdir .libs 2>/dev/null
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13953 $as_echo "$lt_cv_objdir" >&6; }
13954 objdir=$lt_cv_objdir
13955
13956
13957
13958
13959
13960 cat >>confdefs.h <<_ACEOF
13961 #define LT_OBJDIR "$lt_cv_objdir/"
13962 _ACEOF
13963
13964
13965
13966
13967 case $host_os in
13968 aix3*)
13969 # AIX sometimes has problems with the GCC collect2 program. For some
13970 # reason, if we set the COLLECT_NAMES environment variable, the problems
13971 # vanish in a puff of smoke.
13972 if test "X${COLLECT_NAMES+set}" != Xset; then
13973 COLLECT_NAMES=
13974 export COLLECT_NAMES
13975 fi
13976 ;;
13977 esac
13978
13979 # Global variables:
13980 ofile=libtool
13981 can_build_shared=yes
13982
13983 # All known linkers require a `.a' archive for static linking (except MSVC,
13984 # which needs '.lib').
13985 libext=a
13986
13987 with_gnu_ld="$lt_cv_prog_gnu_ld"
13988
13989 old_CC="$CC"
13990 old_CFLAGS="$CFLAGS"
13991
13992 # Set sane defaults for various variables
13993 test -z "$CC" && CC=cc
13994 test -z "$LTCC" && LTCC=$CC
13995 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13996 test -z "$LD" && LD=ld
13997 test -z "$ac_objext" && ac_objext=o
13998
13999 for cc_temp in $compiler""; do
14000 case $cc_temp in
14001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14003 \-*) ;;
14004 *) break;;
14005 esac
14006 done
14007 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14008
14009
14010 # Only perform the check for file, if the check method requires it
14011 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14012 case $deplibs_check_method in
14013 file_magic*)
14014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14016 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14017 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14018 $as_echo_n "(cached) " >&6
14019 else
14020 case $MAGIC_CMD in
14021 [\\/*] | ?:[\\/]*)
14022 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14023 ;;
14024 *)
14025 lt_save_MAGIC_CMD="$MAGIC_CMD"
14026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14027 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14028 for ac_dir in $ac_dummy; do
14029 IFS="$lt_save_ifs"
14030 test -z "$ac_dir" && ac_dir=.
14031 if test -f $ac_dir/${ac_tool_prefix}file; then
14032 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14033 if test -n "$file_magic_test_file"; then
14034 case $deplibs_check_method in
14035 "file_magic "*)
14036 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14038 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14039 $EGREP "$file_magic_regex" > /dev/null; then
14040 :
14041 else
14042 cat <<_LT_EOF 1>&2
14043
14044 *** Warning: the command libtool uses to detect shared libraries,
14045 *** $file_magic_cmd, produces output that libtool cannot recognize.
14046 *** The result is that libtool may fail to recognize shared libraries
14047 *** as such. This will affect the creation of libtool libraries that
14048 *** depend on shared libraries, but programs linked with such libtool
14049 *** libraries will work regardless of this problem. Nevertheless, you
14050 *** may want to report the problem to your system manager and/or to
14051 *** bug-libtool@gnu.org
14052
14053 _LT_EOF
14054 fi ;;
14055 esac
14056 fi
14057 break
14058 fi
14059 done
14060 IFS="$lt_save_ifs"
14061 MAGIC_CMD="$lt_save_MAGIC_CMD"
14062 ;;
14063 esac
14064 fi
14065
14066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14067 if test -n "$MAGIC_CMD"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14069 $as_echo "$MAGIC_CMD" >&6; }
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 fi
14074
14075
14076
14077
14078
14079 if test -z "$lt_cv_path_MAGIC_CMD"; then
14080 if test -n "$ac_tool_prefix"; then
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14082 $as_echo_n "checking for file... " >&6; }
14083 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 case $MAGIC_CMD in
14087 [\\/*] | ?:[\\/]*)
14088 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14089 ;;
14090 *)
14091 lt_save_MAGIC_CMD="$MAGIC_CMD"
14092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14094 for ac_dir in $ac_dummy; do
14095 IFS="$lt_save_ifs"
14096 test -z "$ac_dir" && ac_dir=.
14097 if test -f $ac_dir/file; then
14098 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14099 if test -n "$file_magic_test_file"; then
14100 case $deplibs_check_method in
14101 "file_magic "*)
14102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14105 $EGREP "$file_magic_regex" > /dev/null; then
14106 :
14107 else
14108 cat <<_LT_EOF 1>&2
14109
14110 *** Warning: the command libtool uses to detect shared libraries,
14111 *** $file_magic_cmd, produces output that libtool cannot recognize.
14112 *** The result is that libtool may fail to recognize shared libraries
14113 *** as such. This will affect the creation of libtool libraries that
14114 *** depend on shared libraries, but programs linked with such libtool
14115 *** libraries will work regardless of this problem. Nevertheless, you
14116 *** may want to report the problem to your system manager and/or to
14117 *** bug-libtool@gnu.org
14118
14119 _LT_EOF
14120 fi ;;
14121 esac
14122 fi
14123 break
14124 fi
14125 done
14126 IFS="$lt_save_ifs"
14127 MAGIC_CMD="$lt_save_MAGIC_CMD"
14128 ;;
14129 esac
14130 fi
14131
14132 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14133 if test -n "$MAGIC_CMD"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14135 $as_echo "$MAGIC_CMD" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139 fi
14140
14141
14142 else
14143 MAGIC_CMD=:
14144 fi
14145 fi
14146
14147 fi
14148 ;;
14149 esac
14150
14151 # Use C for the default configuration in the libtool script
14152
14153 lt_save_CC="$CC"
14154 ac_ext=c
14155 ac_cpp='$CPP $CPPFLAGS'
14156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14159
14160
14161 # Source file extension for C test sources.
14162 ac_ext=c
14163
14164 # Object file extension for compiled C test sources.
14165 objext=o
14166 objext=$objext
14167
14168 # Code to be used in simple compile tests
14169 lt_simple_compile_test_code="int some_variable = 0;"
14170
14171 # Code to be used in simple link tests
14172 lt_simple_link_test_code='int main(){return(0);}'
14173
14174
14175
14176
14177
14178
14179
14180 # If no C compiler was specified, use CC.
14181 LTCC=${LTCC-"$CC"}
14182
14183 # If no C compiler flags were specified, use CFLAGS.
14184 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14185
14186 # Allow CC to be a program name with arguments.
14187 compiler=$CC
14188
14189 # Save the default compiler, since it gets overwritten when the other
14190 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14191 compiler_DEFAULT=$CC
14192
14193 # save warnings/boilerplate of simple test code
14194 ac_outfile=conftest.$ac_objext
14195 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14197 _lt_compiler_boilerplate=`cat conftest.err`
14198 $RM conftest*
14199
14200 ac_outfile=conftest.$ac_objext
14201 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14203 _lt_linker_boilerplate=`cat conftest.err`
14204 $RM -r conftest*
14205
14206
14207 if test -n "$compiler"; then
14208
14209 lt_prog_compiler_no_builtin_flag=
14210
14211 if test "$GCC" = yes; then
14212 case $cc_basename in
14213 nvcc*)
14214 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14215 *)
14216 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14217 esac
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14220 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14221 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 lt_cv_prog_compiler_rtti_exceptions=no
14225 ac_outfile=conftest.$ac_objext
14226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227 lt_compiler_flag="-fno-rtti -fno-exceptions"
14228 # Insert the option either (1) after the last *FLAGS variable, or
14229 # (2) before a word containing "conftest.", or (3) at the end.
14230 # Note that $ac_compile itself does not contain backslashes and begins
14231 # with a dollar sign (not a hyphen), so the echo should work correctly.
14232 # The option is referenced via a variable to avoid confusing sed.
14233 lt_compile=`echo "$ac_compile" | $SED \
14234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14236 -e 's:$: $lt_compiler_flag:'`
14237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14238 (eval "$lt_compile" 2>conftest.err)
14239 ac_status=$?
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 if (exit $ac_status) && test -s "$ac_outfile"; then
14243 # The compiler can only warn and ignore the option if not recognized
14244 # So say no if there are warnings other than the usual output.
14245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14248 lt_cv_prog_compiler_rtti_exceptions=yes
14249 fi
14250 fi
14251 $RM conftest*
14252
14253 fi
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14255 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14256
14257 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14259 else
14260 :
14261 fi
14262
14263 fi
14264
14265
14266
14267
14268
14269
14270 lt_prog_compiler_wl=
14271 lt_prog_compiler_pic=
14272 lt_prog_compiler_static=
14273
14274
14275 if test "$GCC" = yes; then
14276 lt_prog_compiler_wl='-Wl,'
14277 lt_prog_compiler_static='-static'
14278
14279 case $host_os in
14280 aix*)
14281 # All AIX code is PIC.
14282 if test "$host_cpu" = ia64; then
14283 # AIX 5 now supports IA64 processor
14284 lt_prog_compiler_static='-Bstatic'
14285 fi
14286 ;;
14287
14288 amigaos*)
14289 case $host_cpu in
14290 powerpc)
14291 # see comment about AmigaOS4 .so support
14292 lt_prog_compiler_pic='-fPIC'
14293 ;;
14294 m68k)
14295 # FIXME: we need at least 68020 code to build shared libraries, but
14296 # adding the `-m68020' flag to GCC prevents building anything better,
14297 # like `-m68040'.
14298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14299 ;;
14300 esac
14301 ;;
14302
14303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14304 # PIC is the default for these OSes.
14305 ;;
14306
14307 mingw* | cygwin* | pw32* | os2* | cegcc*)
14308 # This hack is so that the source file can tell whether it is being
14309 # built for inclusion in a dll (and should export symbols for example).
14310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14311 # (--disable-auto-import) libraries
14312 lt_prog_compiler_pic='-DDLL_EXPORT'
14313 ;;
14314
14315 darwin* | rhapsody*)
14316 # PIC is the default on this platform
14317 # Common symbols not allowed in MH_DYLIB files
14318 lt_prog_compiler_pic='-fno-common'
14319 ;;
14320
14321 haiku*)
14322 # PIC is the default for Haiku.
14323 # The "-static" flag exists, but is broken.
14324 lt_prog_compiler_static=
14325 ;;
14326
14327 hpux*)
14328 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14329 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14330 # sets the default TLS model and affects inlining.
14331 case $host_cpu in
14332 hppa*64*)
14333 # +Z the default
14334 ;;
14335 *)
14336 lt_prog_compiler_pic='-fPIC'
14337 ;;
14338 esac
14339 ;;
14340
14341 interix[3-9]*)
14342 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14343 # Instead, we relocate shared libraries at runtime.
14344 ;;
14345
14346 msdosdjgpp*)
14347 # Just because we use GCC doesn't mean we suddenly get shared libraries
14348 # on systems that don't support them.
14349 lt_prog_compiler_can_build_shared=no
14350 enable_shared=no
14351 ;;
14352
14353 *nto* | *qnx*)
14354 # QNX uses GNU C++, but need to define -shared option too, otherwise
14355 # it will coredump.
14356 lt_prog_compiler_pic='-fPIC -shared'
14357 ;;
14358
14359 sysv4*MP*)
14360 if test -d /usr/nec; then
14361 lt_prog_compiler_pic=-Kconform_pic
14362 fi
14363 ;;
14364
14365 *)
14366 lt_prog_compiler_pic='-fPIC'
14367 ;;
14368 esac
14369
14370 case $cc_basename in
14371 nvcc*) # Cuda Compiler Driver 2.2
14372 lt_prog_compiler_wl='-Xlinker '
14373 if test -n "$lt_prog_compiler_pic"; then
14374 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14375 fi
14376 ;;
14377 esac
14378 else
14379 # PORTME Check for flag to pass linker flags through the system compiler.
14380 case $host_os in
14381 aix*)
14382 lt_prog_compiler_wl='-Wl,'
14383 if test "$host_cpu" = ia64; then
14384 # AIX 5 now supports IA64 processor
14385 lt_prog_compiler_static='-Bstatic'
14386 else
14387 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14388 fi
14389 ;;
14390
14391 mingw* | cygwin* | pw32* | os2* | cegcc*)
14392 # This hack is so that the source file can tell whether it is being
14393 # built for inclusion in a dll (and should export symbols for example).
14394 lt_prog_compiler_pic='-DDLL_EXPORT'
14395 ;;
14396
14397 hpux9* | hpux10* | hpux11*)
14398 lt_prog_compiler_wl='-Wl,'
14399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14400 # not for PA HP-UX.
14401 case $host_cpu in
14402 hppa*64*|ia64*)
14403 # +Z the default
14404 ;;
14405 *)
14406 lt_prog_compiler_pic='+Z'
14407 ;;
14408 esac
14409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14410 lt_prog_compiler_static='${wl}-a ${wl}archive'
14411 ;;
14412
14413 irix5* | irix6* | nonstopux*)
14414 lt_prog_compiler_wl='-Wl,'
14415 # PIC (with -KPIC) is the default.
14416 lt_prog_compiler_static='-non_shared'
14417 ;;
14418
14419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14420 case $cc_basename in
14421 # old Intel for x86_64 which still supported -KPIC.
14422 ecc*)
14423 lt_prog_compiler_wl='-Wl,'
14424 lt_prog_compiler_pic='-KPIC'
14425 lt_prog_compiler_static='-static'
14426 ;;
14427 # icc used to be incompatible with GCC.
14428 # ICC 10 doesn't accept -KPIC any more.
14429 icc* | ifort*)
14430 lt_prog_compiler_wl='-Wl,'
14431 lt_prog_compiler_pic='-fPIC'
14432 lt_prog_compiler_static='-static'
14433 ;;
14434 # Lahey Fortran 8.1.
14435 lf95*)
14436 lt_prog_compiler_wl='-Wl,'
14437 lt_prog_compiler_pic='--shared'
14438 lt_prog_compiler_static='--static'
14439 ;;
14440 nagfor*)
14441 # NAG Fortran compiler
14442 lt_prog_compiler_wl='-Wl,-Wl,,'
14443 lt_prog_compiler_pic='-PIC'
14444 lt_prog_compiler_static='-Bstatic'
14445 ;;
14446 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14447 # Portland Group compilers (*not* the Pentium gcc compiler,
14448 # which looks to be a dead project)
14449 lt_prog_compiler_wl='-Wl,'
14450 lt_prog_compiler_pic='-fpic'
14451 lt_prog_compiler_static='-Bstatic'
14452 ;;
14453 ccc*)
14454 lt_prog_compiler_wl='-Wl,'
14455 # All Alpha code is PIC.
14456 lt_prog_compiler_static='-non_shared'
14457 ;;
14458 xl* | bgxl* | bgf* | mpixl*)
14459 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-qpic'
14462 lt_prog_compiler_static='-qstaticlink'
14463 ;;
14464 *)
14465 case `$CC -V 2>&1 | sed 5q` in
14466 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14467 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14468 lt_prog_compiler_pic='-KPIC'
14469 lt_prog_compiler_static='-Bstatic'
14470 lt_prog_compiler_wl=''
14471 ;;
14472 *Sun\ F* | *Sun*Fortran*)
14473 lt_prog_compiler_pic='-KPIC'
14474 lt_prog_compiler_static='-Bstatic'
14475 lt_prog_compiler_wl='-Qoption ld '
14476 ;;
14477 *Sun\ C*)
14478 # Sun C 5.9
14479 lt_prog_compiler_pic='-KPIC'
14480 lt_prog_compiler_static='-Bstatic'
14481 lt_prog_compiler_wl='-Wl,'
14482 ;;
14483 *Intel*\ [CF]*Compiler*)
14484 lt_prog_compiler_wl='-Wl,'
14485 lt_prog_compiler_pic='-fPIC'
14486 lt_prog_compiler_static='-static'
14487 ;;
14488 *Portland\ Group*)
14489 lt_prog_compiler_wl='-Wl,'
14490 lt_prog_compiler_pic='-fpic'
14491 lt_prog_compiler_static='-Bstatic'
14492 ;;
14493 esac
14494 ;;
14495 esac
14496 ;;
14497
14498 newsos6)
14499 lt_prog_compiler_pic='-KPIC'
14500 lt_prog_compiler_static='-Bstatic'
14501 ;;
14502
14503 *nto* | *qnx*)
14504 # QNX uses GNU C++, but need to define -shared option too, otherwise
14505 # it will coredump.
14506 lt_prog_compiler_pic='-fPIC -shared'
14507 ;;
14508
14509 osf3* | osf4* | osf5*)
14510 lt_prog_compiler_wl='-Wl,'
14511 # All OSF/1 code is PIC.
14512 lt_prog_compiler_static='-non_shared'
14513 ;;
14514
14515 rdos*)
14516 lt_prog_compiler_static='-non_shared'
14517 ;;
14518
14519 solaris*)
14520 lt_prog_compiler_pic='-KPIC'
14521 lt_prog_compiler_static='-Bstatic'
14522 case $cc_basename in
14523 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14524 lt_prog_compiler_wl='-Qoption ld ';;
14525 *)
14526 lt_prog_compiler_wl='-Wl,';;
14527 esac
14528 ;;
14529
14530 sunos4*)
14531 lt_prog_compiler_wl='-Qoption ld '
14532 lt_prog_compiler_pic='-PIC'
14533 lt_prog_compiler_static='-Bstatic'
14534 ;;
14535
14536 sysv4 | sysv4.2uw2* | sysv4.3*)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_pic='-KPIC'
14539 lt_prog_compiler_static='-Bstatic'
14540 ;;
14541
14542 sysv4*MP*)
14543 if test -d /usr/nec ;then
14544 lt_prog_compiler_pic='-Kconform_pic'
14545 lt_prog_compiler_static='-Bstatic'
14546 fi
14547 ;;
14548
14549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14550 lt_prog_compiler_wl='-Wl,'
14551 lt_prog_compiler_pic='-KPIC'
14552 lt_prog_compiler_static='-Bstatic'
14553 ;;
14554
14555 unicos*)
14556 lt_prog_compiler_wl='-Wl,'
14557 lt_prog_compiler_can_build_shared=no
14558 ;;
14559
14560 uts4*)
14561 lt_prog_compiler_pic='-pic'
14562 lt_prog_compiler_static='-Bstatic'
14563 ;;
14564
14565 *)
14566 lt_prog_compiler_can_build_shared=no
14567 ;;
14568 esac
14569 fi
14570
14571 case $host_os in
14572 # For platforms which do not support PIC, -DPIC is meaningless:
14573 *djgpp*)
14574 lt_prog_compiler_pic=
14575 ;;
14576 *)
14577 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14578 ;;
14579 esac
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14582 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14583 if ${lt_cv_prog_compiler_pic+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14587 fi
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14589 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14590 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14591
14592 #
14593 # Check to make sure the PIC flag actually works.
14594 #
14595 if test -n "$lt_prog_compiler_pic"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14597 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14598 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 lt_cv_prog_compiler_pic_works=no
14602 ac_outfile=conftest.$ac_objext
14603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14604 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14605 # Insert the option either (1) after the last *FLAGS variable, or
14606 # (2) before a word containing "conftest.", or (3) at the end.
14607 # Note that $ac_compile itself does not contain backslashes and begins
14608 # with a dollar sign (not a hyphen), so the echo should work correctly.
14609 # The option is referenced via a variable to avoid confusing sed.
14610 lt_compile=`echo "$ac_compile" | $SED \
14611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14613 -e 's:$: $lt_compiler_flag:'`
14614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14615 (eval "$lt_compile" 2>conftest.err)
14616 ac_status=$?
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 if (exit $ac_status) && test -s "$ac_outfile"; then
14620 # The compiler can only warn and ignore the option if not recognized
14621 # So say no if there are warnings other than the usual output.
14622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14625 lt_cv_prog_compiler_pic_works=yes
14626 fi
14627 fi
14628 $RM conftest*
14629
14630 fi
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14632 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14633
14634 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14635 case $lt_prog_compiler_pic in
14636 "" | " "*) ;;
14637 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14638 esac
14639 else
14640 lt_prog_compiler_pic=
14641 lt_prog_compiler_can_build_shared=no
14642 fi
14643
14644 fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656 #
14657 # Check to make sure the static flag actually works.
14658 #
14659 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14661 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14662 if ${lt_cv_prog_compiler_static_works+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 lt_cv_prog_compiler_static_works=no
14666 save_LDFLAGS="$LDFLAGS"
14667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14668 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14670 # The linker can only warn and ignore the option if not recognized
14671 # So say no if there are warnings
14672 if test -s conftest.err; then
14673 # Append any errors to the config.log.
14674 cat conftest.err 1>&5
14675 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14677 if diff conftest.exp conftest.er2 >/dev/null; then
14678 lt_cv_prog_compiler_static_works=yes
14679 fi
14680 else
14681 lt_cv_prog_compiler_static_works=yes
14682 fi
14683 fi
14684 $RM -r conftest*
14685 LDFLAGS="$save_LDFLAGS"
14686
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14689 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14690
14691 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14692 :
14693 else
14694 lt_prog_compiler_static=
14695 fi
14696
14697
14698
14699
14700
14701
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14704 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14705 if ${lt_cv_prog_compiler_c_o+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 lt_cv_prog_compiler_c_o=no
14709 $RM -r conftest 2>/dev/null
14710 mkdir conftest
14711 cd conftest
14712 mkdir out
14713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14714
14715 lt_compiler_flag="-o out/conftest2.$ac_objext"
14716 # Insert the option either (1) after the last *FLAGS variable, or
14717 # (2) before a word containing "conftest.", or (3) at the end.
14718 # Note that $ac_compile itself does not contain backslashes and begins
14719 # with a dollar sign (not a hyphen), so the echo should work correctly.
14720 lt_compile=`echo "$ac_compile" | $SED \
14721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14723 -e 's:$: $lt_compiler_flag:'`
14724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14725 (eval "$lt_compile" 2>out/conftest.err)
14726 ac_status=$?
14727 cat out/conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14730 then
14731 # The compiler can only warn and ignore the option if not recognized
14732 # So say no if there are warnings
14733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14736 lt_cv_prog_compiler_c_o=yes
14737 fi
14738 fi
14739 chmod u+w . 2>&5
14740 $RM conftest*
14741 # SGI C++ compiler will create directory out/ii_files/ for
14742 # template instantiation
14743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14744 $RM out/* && rmdir out
14745 cd ..
14746 $RM -r conftest
14747 $RM conftest*
14748
14749 fi
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14751 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14752
14753
14754
14755
14756
14757
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14760 if ${lt_cv_prog_compiler_c_o+:} false; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 lt_cv_prog_compiler_c_o=no
14764 $RM -r conftest 2>/dev/null
14765 mkdir conftest
14766 cd conftest
14767 mkdir out
14768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14769
14770 lt_compiler_flag="-o out/conftest2.$ac_objext"
14771 # Insert the option either (1) after the last *FLAGS variable, or
14772 # (2) before a word containing "conftest.", or (3) at the end.
14773 # Note that $ac_compile itself does not contain backslashes and begins
14774 # with a dollar sign (not a hyphen), so the echo should work correctly.
14775 lt_compile=`echo "$ac_compile" | $SED \
14776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778 -e 's:$: $lt_compiler_flag:'`
14779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14780 (eval "$lt_compile" 2>out/conftest.err)
14781 ac_status=$?
14782 cat out/conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14785 then
14786 # The compiler can only warn and ignore the option if not recognized
14787 # So say no if there are warnings
14788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791 lt_cv_prog_compiler_c_o=yes
14792 fi
14793 fi
14794 chmod u+w . 2>&5
14795 $RM conftest*
14796 # SGI C++ compiler will create directory out/ii_files/ for
14797 # template instantiation
14798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14799 $RM out/* && rmdir out
14800 cd ..
14801 $RM -r conftest
14802 $RM conftest*
14803
14804 fi
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14806 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14807
14808
14809
14810
14811 hard_links="nottested"
14812 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14813 # do not overwrite the value of need_locks provided by the user
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14815 $as_echo_n "checking if we can lock with hard links... " >&6; }
14816 hard_links=yes
14817 $RM conftest*
14818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819 touch conftest.a
14820 ln conftest.a conftest.b 2>&5 || hard_links=no
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14823 $as_echo "$hard_links" >&6; }
14824 if test "$hard_links" = no; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14827 need_locks=warn
14828 fi
14829 else
14830 need_locks=no
14831 fi
14832
14833
14834
14835
14836
14837
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14840
14841 runpath_var=
14842 allow_undefined_flag=
14843 always_export_symbols=no
14844 archive_cmds=
14845 archive_expsym_cmds=
14846 compiler_needs_object=no
14847 enable_shared_with_static_runtimes=no
14848 export_dynamic_flag_spec=
14849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14850 hardcode_automatic=no
14851 hardcode_direct=no
14852 hardcode_direct_absolute=no
14853 hardcode_libdir_flag_spec=
14854 hardcode_libdir_separator=
14855 hardcode_minus_L=no
14856 hardcode_shlibpath_var=unsupported
14857 inherit_rpath=no
14858 link_all_deplibs=unknown
14859 module_cmds=
14860 module_expsym_cmds=
14861 old_archive_from_new_cmds=
14862 old_archive_from_expsyms_cmds=
14863 thread_safe_flag_spec=
14864 whole_archive_flag_spec=
14865 # include_expsyms should be a list of space-separated symbols to be *always*
14866 # included in the symbol list
14867 include_expsyms=
14868 # exclude_expsyms can be an extended regexp of symbols to exclude
14869 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14871 # as well as any symbol that contains `d'.
14872 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14874 # platforms (ab)use it in PIC code, but their linkers get confused if
14875 # the symbol is explicitly referenced. Since portable code cannot
14876 # rely on this symbol name, it's probably fine to never include it in
14877 # preloaded symbol tables.
14878 # Exclude shared library initialization/finalization symbols.
14879 extract_expsyms_cmds=
14880
14881 case $host_os in
14882 cygwin* | mingw* | pw32* | cegcc*)
14883 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14884 # When not using gcc, we currently assume that we are using
14885 # Microsoft Visual C++.
14886 if test "$GCC" != yes; then
14887 with_gnu_ld=no
14888 fi
14889 ;;
14890 interix*)
14891 # we just hope/assume this is gcc and not c89 (= MSVC++)
14892 with_gnu_ld=yes
14893 ;;
14894 openbsd*)
14895 with_gnu_ld=no
14896 ;;
14897 esac
14898
14899 ld_shlibs=yes
14900
14901 # On some targets, GNU ld is compatible enough with the native linker
14902 # that we're better off using the native interface for both.
14903 lt_use_gnu_ld_interface=no
14904 if test "$with_gnu_ld" = yes; then
14905 case $host_os in
14906 aix*)
14907 # The AIX port of GNU ld has always aspired to compatibility
14908 # with the native linker. However, as the warning in the GNU ld
14909 # block says, versions before 2.19.5* couldn't really create working
14910 # shared libraries, regardless of the interface used.
14911 case `$LD -v 2>&1` in
14912 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14913 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14914 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14915 *)
14916 lt_use_gnu_ld_interface=yes
14917 ;;
14918 esac
14919 ;;
14920 *)
14921 lt_use_gnu_ld_interface=yes
14922 ;;
14923 esac
14924 fi
14925
14926 if test "$lt_use_gnu_ld_interface" = yes; then
14927 # If archive_cmds runs LD, not CC, wlarc should be empty
14928 wlarc='${wl}'
14929
14930 # Set some defaults for GNU ld with shared library support. These
14931 # are reset later if shared libraries are not supported. Putting them
14932 # here allows them to be overridden if necessary.
14933 runpath_var=LD_RUN_PATH
14934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14935 export_dynamic_flag_spec='${wl}--export-dynamic'
14936 # ancient GNU ld didn't support --whole-archive et. al.
14937 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14938 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14939 else
14940 whole_archive_flag_spec=
14941 fi
14942 supports_anon_versioning=no
14943 case `$LD -v 2>&1` in
14944 *GNU\ gold*) supports_anon_versioning=yes ;;
14945 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14946 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14947 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14948 *\ 2.11.*) ;; # other 2.11 versions
14949 *) supports_anon_versioning=yes ;;
14950 esac
14951
14952 # See if GNU ld supports shared libraries.
14953 case $host_os in
14954 aix[3-9]*)
14955 # On AIX/PPC, the GNU linker is very broken
14956 if test "$host_cpu" != ia64; then
14957 ld_shlibs=no
14958 cat <<_LT_EOF 1>&2
14959
14960 *** Warning: the GNU linker, at least up to release 2.19, is reported
14961 *** to be unable to reliably create shared libraries on AIX.
14962 *** Therefore, libtool is disabling shared libraries support. If you
14963 *** really care for shared libraries, you may want to install binutils
14964 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14965 *** You will then need to restart the configuration process.
14966
14967 _LT_EOF
14968 fi
14969 ;;
14970
14971 amigaos*)
14972 case $host_cpu in
14973 powerpc)
14974 # see comment about AmigaOS4 .so support
14975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14976 archive_expsym_cmds=''
14977 ;;
14978 m68k)
14979 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)'
14980 hardcode_libdir_flag_spec='-L$libdir'
14981 hardcode_minus_L=yes
14982 ;;
14983 esac
14984 ;;
14985
14986 beos*)
14987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14988 allow_undefined_flag=unsupported
14989 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14990 # support --undefined. This deserves some investigation. FIXME
14991 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14992 else
14993 ld_shlibs=no
14994 fi
14995 ;;
14996
14997 cygwin* | mingw* | pw32* | cegcc*)
14998 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14999 # as there is no search path for DLLs.
15000 hardcode_libdir_flag_spec='-L$libdir'
15001 export_dynamic_flag_spec='${wl}--export-all-symbols'
15002 allow_undefined_flag=unsupported
15003 always_export_symbols=no
15004 enable_shared_with_static_runtimes=yes
15005 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'
15006 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15007
15008 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15010 # If the export-symbols file already is a .def file (1st line
15011 # is EXPORTS), use it as is; otherwise, prepend...
15012 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15013 cp $export_symbols $output_objdir/$soname.def;
15014 else
15015 echo EXPORTS > $output_objdir/$soname.def;
15016 cat $export_symbols >> $output_objdir/$soname.def;
15017 fi~
15018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15019 else
15020 ld_shlibs=no
15021 fi
15022 ;;
15023
15024 haiku*)
15025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026 link_all_deplibs=yes
15027 ;;
15028
15029 interix[3-9]*)
15030 hardcode_direct=no
15031 hardcode_shlibpath_var=no
15032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15033 export_dynamic_flag_spec='${wl}-E'
15034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15035 # Instead, shared libraries are loaded at an image base (0x10000000 by
15036 # default) and relocated if they conflict, which is a slow very memory
15037 # consuming and fragmenting process. To avoid this, we pick a random,
15038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15041 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'
15042 ;;
15043
15044 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15045 tmp_diet=no
15046 if test "$host_os" = linux-dietlibc; then
15047 case $cc_basename in
15048 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15049 esac
15050 fi
15051 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15052 && test "$tmp_diet" = no
15053 then
15054 tmp_addflag=' $pic_flag'
15055 tmp_sharedflag='-shared'
15056 case $cc_basename,$host_cpu in
15057 pgcc*) # Portland Group C compiler
15058 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15059 tmp_addflag=' $pic_flag'
15060 ;;
15061 pgf77* | pgf90* | pgf95* | pgfortran*)
15062 # Portland Group f77 and f90 compilers
15063 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'
15064 tmp_addflag=' $pic_flag -Mnomain' ;;
15065 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15066 tmp_addflag=' -i_dynamic' ;;
15067 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15068 tmp_addflag=' -i_dynamic -nofor_main' ;;
15069 ifc* | ifort*) # Intel Fortran compiler
15070 tmp_addflag=' -nofor_main' ;;
15071 lf95*) # Lahey Fortran 8.1
15072 whole_archive_flag_spec=
15073 tmp_sharedflag='--shared' ;;
15074 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15075 tmp_sharedflag='-qmkshrobj'
15076 tmp_addflag= ;;
15077 nvcc*) # Cuda Compiler Driver 2.2
15078 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'
15079 compiler_needs_object=yes
15080 ;;
15081 esac
15082 case `$CC -V 2>&1 | sed 5q` in
15083 *Sun\ C*) # Sun C 5.9
15084 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'
15085 compiler_needs_object=yes
15086 tmp_sharedflag='-G' ;;
15087 *Sun\ F*) # Sun Fortran 8.3
15088 tmp_sharedflag='-G' ;;
15089 esac
15090 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091
15092 if test "x$supports_anon_versioning" = xyes; then
15093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15095 echo "local: *; };" >> $output_objdir/$libname.ver~
15096 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15097 fi
15098
15099 case $cc_basename in
15100 xlf* | bgf* | bgxlf* | mpixlf*)
15101 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15102 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15104 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15105 if test "x$supports_anon_versioning" = xyes; then
15106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15108 echo "local: *; };" >> $output_objdir/$libname.ver~
15109 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15110 fi
15111 ;;
15112 esac
15113 else
15114 ld_shlibs=no
15115 fi
15116 ;;
15117
15118 netbsd*)
15119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15120 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15121 wlarc=
15122 else
15123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125 fi
15126 ;;
15127
15128 solaris*)
15129 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15130 ld_shlibs=no
15131 cat <<_LT_EOF 1>&2
15132
15133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134 *** create shared libraries on Solaris systems. Therefore, libtool
15135 *** is disabling shared libraries support. We urge you to upgrade GNU
15136 *** binutils to release 2.9.1 or newer. Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15139
15140 _LT_EOF
15141 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144 else
15145 ld_shlibs=no
15146 fi
15147 ;;
15148
15149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150 case `$LD -v 2>&1` in
15151 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15152 ld_shlibs=no
15153 cat <<_LT_EOF 1>&2
15154
15155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156 *** reliably create shared libraries on SCO systems. Therefore, libtool
15157 *** is disabling shared libraries support. We urge you to upgrade GNU
15158 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15161
15162 _LT_EOF
15163 ;;
15164 *)
15165 # For security reasons, it is highly recommended that you always
15166 # use absolute paths for naming shared libraries, and exclude the
15167 # DT_RUNPATH tag from executables and libraries. But doing so
15168 # requires that you compile everything twice, which is a pain.
15169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173 else
15174 ld_shlibs=no
15175 fi
15176 ;;
15177 esac
15178 ;;
15179
15180 sunos4*)
15181 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15182 wlarc=
15183 hardcode_direct=yes
15184 hardcode_shlibpath_var=no
15185 ;;
15186
15187 *)
15188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191 else
15192 ld_shlibs=no
15193 fi
15194 ;;
15195 esac
15196
15197 if test "$ld_shlibs" = no; then
15198 runpath_var=
15199 hardcode_libdir_flag_spec=
15200 export_dynamic_flag_spec=
15201 whole_archive_flag_spec=
15202 fi
15203 else
15204 # PORTME fill in a description of your system's linker (not GNU ld)
15205 case $host_os in
15206 aix3*)
15207 allow_undefined_flag=unsupported
15208 always_export_symbols=yes
15209 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'
15210 # Note: this linker hardcodes the directories in LIBPATH if there
15211 # are no directories specified by -L.
15212 hardcode_minus_L=yes
15213 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15214 # Neither direct hardcoding nor static linking is supported with a
15215 # broken collect2.
15216 hardcode_direct=unsupported
15217 fi
15218 ;;
15219
15220 aix[4-9]*)
15221 if test "$host_cpu" = ia64; then
15222 # On IA64, the linker does run time linking by default, so we don't
15223 # have to do anything special.
15224 aix_use_runtimelinking=no
15225 exp_sym_flag='-Bexport'
15226 no_entry_flag=""
15227 else
15228 # If we're using GNU nm, then we don't want the "-C" option.
15229 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15230 # Also, AIX nm treats weak defined symbols like other global
15231 # defined symbols, whereas GNU nm marks them as "W".
15232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15233 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'
15234 else
15235 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'
15236 fi
15237 aix_use_runtimelinking=no
15238
15239 # Test if we are trying to use run time linking or normal
15240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15241 # need to do runtime linking.
15242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15243 for ld_flag in $LDFLAGS; do
15244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15245 aix_use_runtimelinking=yes
15246 break
15247 fi
15248 done
15249 ;;
15250 esac
15251
15252 exp_sym_flag='-bexport'
15253 no_entry_flag='-bnoentry'
15254 fi
15255
15256 # When large executables or shared objects are built, AIX ld can
15257 # have problems creating the table of contents. If linking a library
15258 # or program results in "error TOC overflow" add -mminimal-toc to
15259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15261
15262 archive_cmds=''
15263 hardcode_direct=yes
15264 hardcode_direct_absolute=yes
15265 hardcode_libdir_separator=':'
15266 link_all_deplibs=yes
15267 file_list_spec='${wl}-f,'
15268
15269 if test "$GCC" = yes; then
15270 case $host_os in aix4.[012]|aix4.[012].*)
15271 # We only want to do this on AIX 4.2 and lower, the check
15272 # below for broken collect2 doesn't work under 4.3+
15273 collect2name=`${CC} -print-prog-name=collect2`
15274 if test -f "$collect2name" &&
15275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15276 then
15277 # We have reworked collect2
15278 :
15279 else
15280 # We have old collect2
15281 hardcode_direct=unsupported
15282 # It fails to find uninstalled libraries when the uninstalled
15283 # path is not listed in the libpath. Setting hardcode_minus_L
15284 # to unsupported forces relinking
15285 hardcode_minus_L=yes
15286 hardcode_libdir_flag_spec='-L$libdir'
15287 hardcode_libdir_separator=
15288 fi
15289 ;;
15290 esac
15291 shared_flag='-shared'
15292 if test "$aix_use_runtimelinking" = yes; then
15293 shared_flag="$shared_flag "'${wl}-G'
15294 fi
15295 else
15296 # not using gcc
15297 if test "$host_cpu" = ia64; then
15298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15299 # chokes on -Wl,-G. The following line is correct:
15300 shared_flag='-G'
15301 else
15302 if test "$aix_use_runtimelinking" = yes; then
15303 shared_flag='${wl}-G'
15304 else
15305 shared_flag='${wl}-bM:SRE'
15306 fi
15307 fi
15308 fi
15309
15310 export_dynamic_flag_spec='${wl}-bexpall'
15311 # It seems that -bexpall does not export symbols beginning with
15312 # underscore (_), so it is better to generate a list of symbols to export.
15313 always_export_symbols=yes
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # Warning - without using the other runtime loading flags (-brtl),
15316 # -berok will link without error, but may produce a broken library.
15317 allow_undefined_flag='-berok'
15318 # Determine the default libpath from the value encoded in an
15319 # empty executable.
15320 if test "${lt_cv_aix_libpath+set}" = set; then
15321 aix_libpath=$lt_cv_aix_libpath
15322 else
15323 if ${lt_cv_aix_libpath_+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328
15329 int
15330 main ()
15331 {
15332
15333 ;
15334 return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338
15339 lt_aix_libpath_sed='
15340 /Import File Strings/,/^$/ {
15341 /^0/ {
15342 s/^0 *\([^ ]*\) *$/\1/
15343 p
15344 }
15345 }'
15346 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347 # Check for a 64-bit object if we didn't find anything.
15348 if test -z "$lt_cv_aix_libpath_"; then
15349 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15350 fi
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$lt_cv_aix_libpath_"; then
15355 lt_cv_aix_libpath_="/usr/lib:/lib"
15356 fi
15357
15358 fi
15359
15360 aix_libpath=$lt_cv_aix_libpath_
15361 fi
15362
15363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15364 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"
15365 else
15366 if test "$host_cpu" = ia64; then
15367 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15368 allow_undefined_flag="-z nodefs"
15369 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"
15370 else
15371 # Determine the default libpath from the value encoded in an
15372 # empty executable.
15373 if test "${lt_cv_aix_libpath+set}" = set; then
15374 aix_libpath=$lt_cv_aix_libpath
15375 else
15376 if ${lt_cv_aix_libpath_+:} false; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381
15382 int
15383 main ()
15384 {
15385
15386 ;
15387 return 0;
15388 }
15389 _ACEOF
15390 if ac_fn_c_try_link "$LINENO"; then :
15391
15392 lt_aix_libpath_sed='
15393 /Import File Strings/,/^$/ {
15394 /^0/ {
15395 s/^0 *\([^ ]*\) *$/\1/
15396 p
15397 }
15398 }'
15399 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15400 # Check for a 64-bit object if we didn't find anything.
15401 if test -z "$lt_cv_aix_libpath_"; then
15402 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15403 fi
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15407 if test -z "$lt_cv_aix_libpath_"; then
15408 lt_cv_aix_libpath_="/usr/lib:/lib"
15409 fi
15410
15411 fi
15412
15413 aix_libpath=$lt_cv_aix_libpath_
15414 fi
15415
15416 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15417 # Warning - without using the other run time loading flags,
15418 # -berok will link without error, but may produce a broken library.
15419 no_undefined_flag=' ${wl}-bernotok'
15420 allow_undefined_flag=' ${wl}-berok'
15421 if test "$with_gnu_ld" = yes; then
15422 # We only use this code for GNU lds that support --whole-archive.
15423 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15424 else
15425 # Exported symbols can be pulled into shared objects from archives
15426 whole_archive_flag_spec='$convenience'
15427 fi
15428 archive_cmds_need_lc=yes
15429 # This is similar to how AIX traditionally builds its shared libraries.
15430 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'
15431 fi
15432 fi
15433 ;;
15434
15435 amigaos*)
15436 case $host_cpu in
15437 powerpc)
15438 # see comment about AmigaOS4 .so support
15439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440 archive_expsym_cmds=''
15441 ;;
15442 m68k)
15443 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)'
15444 hardcode_libdir_flag_spec='-L$libdir'
15445 hardcode_minus_L=yes
15446 ;;
15447 esac
15448 ;;
15449
15450 bsdi[45]*)
15451 export_dynamic_flag_spec=-rdynamic
15452 ;;
15453
15454 cygwin* | mingw* | pw32* | cegcc*)
15455 # When not using gcc, we currently assume that we are using
15456 # Microsoft Visual C++.
15457 # hardcode_libdir_flag_spec is actually meaningless, as there is
15458 # no search path for DLLs.
15459 case $cc_basename in
15460 cl*)
15461 # Native MSVC
15462 hardcode_libdir_flag_spec=' '
15463 allow_undefined_flag=unsupported
15464 always_export_symbols=yes
15465 file_list_spec='@'
15466 # Tell ltmain to make .lib files, not .a files.
15467 libext=lib
15468 # Tell ltmain to make .dll files, not .so files.
15469 shrext_cmds=".dll"
15470 # FIXME: Setting linknames here is a bad hack.
15471 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15472 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15474 else
15475 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15476 fi~
15477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15478 linknames='
15479 # The linker will not automatically build a static lib if we build a DLL.
15480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15481 enable_shared_with_static_runtimes=yes
15482 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15484 # Don't use ranlib
15485 old_postinstall_cmds='chmod 644 $oldlib'
15486 postlink_cmds='lt_outputfile="@OUTPUT@"~
15487 lt_tool_outputfile="@TOOL_OUTPUT@"~
15488 case $lt_outputfile in
15489 *.exe|*.EXE) ;;
15490 *)
15491 lt_outputfile="$lt_outputfile.exe"
15492 lt_tool_outputfile="$lt_tool_outputfile.exe"
15493 ;;
15494 esac~
15495 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15497 $RM "$lt_outputfile.manifest";
15498 fi'
15499 ;;
15500 *)
15501 # Assume MSVC wrapper
15502 hardcode_libdir_flag_spec=' '
15503 allow_undefined_flag=unsupported
15504 # Tell ltmain to make .lib files, not .a files.
15505 libext=lib
15506 # Tell ltmain to make .dll files, not .so files.
15507 shrext_cmds=".dll"
15508 # FIXME: Setting linknames here is a bad hack.
15509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15510 # The linker will automatically build a .lib file if we build a DLL.
15511 old_archive_from_new_cmds='true'
15512 # FIXME: Should let the user specify the lib program.
15513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15514 enable_shared_with_static_runtimes=yes
15515 ;;
15516 esac
15517 ;;
15518
15519 darwin* | rhapsody*)
15520
15521
15522 archive_cmds_need_lc=no
15523 hardcode_direct=no
15524 hardcode_automatic=yes
15525 hardcode_shlibpath_var=unsupported
15526 if test "$lt_cv_ld_force_load" = "yes"; then
15527 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\"`'
15528
15529 else
15530 whole_archive_flag_spec=''
15531 fi
15532 link_all_deplibs=yes
15533 allow_undefined_flag="$_lt_dar_allow_undefined"
15534 case $cc_basename in
15535 ifort*) _lt_dar_can_shared=yes ;;
15536 *) _lt_dar_can_shared=$GCC ;;
15537 esac
15538 if test "$_lt_dar_can_shared" = "yes"; then
15539 output_verbose_link_cmd=func_echo_all
15540 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15541 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15542 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}"
15543 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}"
15544
15545 else
15546 ld_shlibs=no
15547 fi
15548
15549 ;;
15550
15551 dgux*)
15552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_libdir_flag_spec='-L$libdir'
15554 hardcode_shlibpath_var=no
15555 ;;
15556
15557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15558 # support. Future versions do this automatically, but an explicit c++rt0.o
15559 # does not break anything, and helps significantly (at the cost of a little
15560 # extra space).
15561 freebsd2.2*)
15562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15563 hardcode_libdir_flag_spec='-R$libdir'
15564 hardcode_direct=yes
15565 hardcode_shlibpath_var=no
15566 ;;
15567
15568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15569 freebsd2.*)
15570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_direct=yes
15572 hardcode_minus_L=yes
15573 hardcode_shlibpath_var=no
15574 ;;
15575
15576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15577 freebsd* | dragonfly*)
15578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15579 hardcode_libdir_flag_spec='-R$libdir'
15580 hardcode_direct=yes
15581 hardcode_shlibpath_var=no
15582 ;;
15583
15584 hpux9*)
15585 if test "$GCC" = yes; then
15586 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'
15587 else
15588 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'
15589 fi
15590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15591 hardcode_libdir_separator=:
15592 hardcode_direct=yes
15593
15594 # hardcode_minus_L: Not really in the search PATH,
15595 # but as the default location of the library.
15596 hardcode_minus_L=yes
15597 export_dynamic_flag_spec='${wl}-E'
15598 ;;
15599
15600 hpux10*)
15601 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15602 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15603 else
15604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15605 fi
15606 if test "$with_gnu_ld" = no; then
15607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15608 hardcode_libdir_separator=:
15609 hardcode_direct=yes
15610 hardcode_direct_absolute=yes
15611 export_dynamic_flag_spec='${wl}-E'
15612 # hardcode_minus_L: Not really in the search PATH,
15613 # but as the default location of the library.
15614 hardcode_minus_L=yes
15615 fi
15616 ;;
15617
15618 hpux11*)
15619 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15620 case $host_cpu in
15621 hppa*64*)
15622 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623 ;;
15624 ia64*)
15625 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15626 ;;
15627 *)
15628 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15629 ;;
15630 esac
15631 else
15632 case $host_cpu in
15633 hppa*64*)
15634 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635 ;;
15636 ia64*)
15637 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15638 ;;
15639 *)
15640
15641 # Older versions of the 11.00 compiler do not understand -b yet
15642 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15644 $as_echo_n "checking if $CC understands -b... " >&6; }
15645 if ${lt_cv_prog_compiler__b+:} false; then :
15646 $as_echo_n "(cached) " >&6
15647 else
15648 lt_cv_prog_compiler__b=no
15649 save_LDFLAGS="$LDFLAGS"
15650 LDFLAGS="$LDFLAGS -b"
15651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15653 # The linker can only warn and ignore the option if not recognized
15654 # So say no if there are warnings
15655 if test -s conftest.err; then
15656 # Append any errors to the config.log.
15657 cat conftest.err 1>&5
15658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15660 if diff conftest.exp conftest.er2 >/dev/null; then
15661 lt_cv_prog_compiler__b=yes
15662 fi
15663 else
15664 lt_cv_prog_compiler__b=yes
15665 fi
15666 fi
15667 $RM -r conftest*
15668 LDFLAGS="$save_LDFLAGS"
15669
15670 fi
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15672 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15673
15674 if test x"$lt_cv_prog_compiler__b" = xyes; then
15675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15676 else
15677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15678 fi
15679
15680 ;;
15681 esac
15682 fi
15683 if test "$with_gnu_ld" = no; then
15684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15685 hardcode_libdir_separator=:
15686
15687 case $host_cpu in
15688 hppa*64*|ia64*)
15689 hardcode_direct=no
15690 hardcode_shlibpath_var=no
15691 ;;
15692 *)
15693 hardcode_direct=yes
15694 hardcode_direct_absolute=yes
15695 export_dynamic_flag_spec='${wl}-E'
15696
15697 # hardcode_minus_L: Not really in the search PATH,
15698 # but as the default location of the library.
15699 hardcode_minus_L=yes
15700 ;;
15701 esac
15702 fi
15703 ;;
15704
15705 irix5* | irix6* | nonstopux*)
15706 if test "$GCC" = yes; then
15707 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'
15708 # Try to use the -exported_symbol ld option, if it does not
15709 # work, assume that -exports_file does not work either and
15710 # implicitly export all symbols.
15711 # This should be the same for all languages, so no per-tag cache variable.
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15713 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15714 if ${lt_cv_irix_exported_symbol+:} false; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15717 save_LDFLAGS="$LDFLAGS"
15718 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int foo (void) { return 0; }
15722 _ACEOF
15723 if ac_fn_c_try_link "$LINENO"; then :
15724 lt_cv_irix_exported_symbol=yes
15725 else
15726 lt_cv_irix_exported_symbol=no
15727 fi
15728 rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 LDFLAGS="$save_LDFLAGS"
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15733 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15734 if test "$lt_cv_irix_exported_symbol" = yes; then
15735 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'
15736 fi
15737 else
15738 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'
15739 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'
15740 fi
15741 archive_cmds_need_lc='no'
15742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15743 hardcode_libdir_separator=:
15744 inherit_rpath=yes
15745 link_all_deplibs=yes
15746 ;;
15747
15748 netbsd*)
15749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15751 else
15752 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15753 fi
15754 hardcode_libdir_flag_spec='-R$libdir'
15755 hardcode_direct=yes
15756 hardcode_shlibpath_var=no
15757 ;;
15758
15759 newsos6)
15760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_direct=yes
15762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator=:
15764 hardcode_shlibpath_var=no
15765 ;;
15766
15767 *nto* | *qnx*)
15768 ;;
15769
15770 openbsd*)
15771 if test -f /usr/libexec/ld.so; then
15772 hardcode_direct=yes
15773 hardcode_shlibpath_var=no
15774 hardcode_direct_absolute=yes
15775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15779 export_dynamic_flag_spec='${wl}-E'
15780 else
15781 case $host_os in
15782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_libdir_flag_spec='-R$libdir'
15785 ;;
15786 *)
15787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15789 ;;
15790 esac
15791 fi
15792 else
15793 ld_shlibs=no
15794 fi
15795 ;;
15796
15797 os2*)
15798 hardcode_libdir_flag_spec='-L$libdir'
15799 hardcode_minus_L=yes
15800 allow_undefined_flag=unsupported
15801 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'
15802 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15803 ;;
15804
15805 osf3*)
15806 if test "$GCC" = yes; then
15807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15808 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'
15809 else
15810 allow_undefined_flag=' -expect_unresolved \*'
15811 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'
15812 fi
15813 archive_cmds_need_lc='no'
15814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815 hardcode_libdir_separator=:
15816 ;;
15817
15818 osf4* | osf5*) # as osf3* with the addition of -msym flag
15819 if test "$GCC" = yes; then
15820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15821 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'
15822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15823 else
15824 allow_undefined_flag=' -expect_unresolved \*'
15825 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'
15826 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~
15827 $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'
15828
15829 # Both c and cxx compiler support -rpath directly
15830 hardcode_libdir_flag_spec='-rpath $libdir'
15831 fi
15832 archive_cmds_need_lc='no'
15833 hardcode_libdir_separator=:
15834 ;;
15835
15836 solaris*)
15837 no_undefined_flag=' -z defs'
15838 if test "$GCC" = yes; then
15839 wlarc='${wl}'
15840 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15842 $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'
15843 else
15844 case `$CC -V 2>&1` in
15845 *"Compilers 5.0"*)
15846 wlarc=''
15847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15850 ;;
15851 *)
15852 wlarc='${wl}'
15853 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15855 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15856 ;;
15857 esac
15858 fi
15859 hardcode_libdir_flag_spec='-R$libdir'
15860 hardcode_shlibpath_var=no
15861 case $host_os in
15862 solaris2.[0-5] | solaris2.[0-5].*) ;;
15863 *)
15864 # The compiler driver will combine and reorder linker options,
15865 # but understands `-z linker_flag'. GCC discards it without `$wl',
15866 # but is careful enough not to reorder.
15867 # Supported since Solaris 2.6 (maybe 2.5.1?)
15868 if test "$GCC" = yes; then
15869 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15870 else
15871 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15872 fi
15873 ;;
15874 esac
15875 link_all_deplibs=yes
15876 ;;
15877
15878 sunos4*)
15879 if test "x$host_vendor" = xsequent; then
15880 # Use $CC to link under sequent, because it throws in some extra .o
15881 # files that make .init and .fini sections work.
15882 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15883 else
15884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15885 fi
15886 hardcode_libdir_flag_spec='-L$libdir'
15887 hardcode_direct=yes
15888 hardcode_minus_L=yes
15889 hardcode_shlibpath_var=no
15890 ;;
15891
15892 sysv4)
15893 case $host_vendor in
15894 sni)
15895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896 hardcode_direct=yes # is this really true???
15897 ;;
15898 siemens)
15899 ## LD is ld it makes a PLAMLIB
15900 ## CC just makes a GrossModule.
15901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15902 reload_cmds='$CC -r -o $output$reload_objs'
15903 hardcode_direct=no
15904 ;;
15905 motorola)
15906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15908 ;;
15909 esac
15910 runpath_var='LD_RUN_PATH'
15911 hardcode_shlibpath_var=no
15912 ;;
15913
15914 sysv4.3*)
15915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916 hardcode_shlibpath_var=no
15917 export_dynamic_flag_spec='-Bexport'
15918 ;;
15919
15920 sysv4*MP*)
15921 if test -d /usr/nec; then
15922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_shlibpath_var=no
15924 runpath_var=LD_RUN_PATH
15925 hardcode_runpath_var=yes
15926 ld_shlibs=yes
15927 fi
15928 ;;
15929
15930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15931 no_undefined_flag='${wl}-z,text'
15932 archive_cmds_need_lc=no
15933 hardcode_shlibpath_var=no
15934 runpath_var='LD_RUN_PATH'
15935
15936 if test "$GCC" = yes; then
15937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15939 else
15940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942 fi
15943 ;;
15944
15945 sysv5* | sco3.2v5* | sco5v6*)
15946 # Note: We can NOT use -z defs as we might desire, because we do not
15947 # link with -lc, and that would cause any symbols used from libc to
15948 # always be unresolved, which means just about no library would
15949 # ever link correctly. If we're not using GNU ld we use -z text
15950 # though, which does catch some bad symbols but isn't as heavy-handed
15951 # as -z defs.
15952 no_undefined_flag='${wl}-z,text'
15953 allow_undefined_flag='${wl}-z,nodefs'
15954 archive_cmds_need_lc=no
15955 hardcode_shlibpath_var=no
15956 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15957 hardcode_libdir_separator=':'
15958 link_all_deplibs=yes
15959 export_dynamic_flag_spec='${wl}-Bexport'
15960 runpath_var='LD_RUN_PATH'
15961
15962 if test "$GCC" = yes; then
15963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965 else
15966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15968 fi
15969 ;;
15970
15971 uts4*)
15972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973 hardcode_libdir_flag_spec='-L$libdir'
15974 hardcode_shlibpath_var=no
15975 ;;
15976
15977 *)
15978 ld_shlibs=no
15979 ;;
15980 esac
15981
15982 if test x$host_vendor = xsni; then
15983 case $host in
15984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15985 export_dynamic_flag_spec='${wl}-Blargedynsym'
15986 ;;
15987 esac
15988 fi
15989 fi
15990
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15992 $as_echo "$ld_shlibs" >&6; }
15993 test "$ld_shlibs" = no && can_build_shared=no
15994
15995 with_gnu_ld=$with_gnu_ld
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011 #
16012 # Do we need to explicitly link libc?
16013 #
16014 case "x$archive_cmds_need_lc" in
16015 x|xyes)
16016 # Assume -lc should be added
16017 archive_cmds_need_lc=yes
16018
16019 if test "$enable_shared" = yes && test "$GCC" = yes; then
16020 case $archive_cmds in
16021 *'~'*)
16022 # FIXME: we may have to deal with multi-command sequences.
16023 ;;
16024 '$CC '*)
16025 # Test whether the compiler implicitly links with -lc since on some
16026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16027 # to ld, don't add -lc before -lgcc.
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16029 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16030 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16031 $as_echo_n "(cached) " >&6
16032 else
16033 $RM conftest*
16034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035
16036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16037 (eval $ac_compile) 2>&5
16038 ac_status=$?
16039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040 test $ac_status = 0; } 2>conftest.err; then
16041 soname=conftest
16042 lib=conftest
16043 libobjs=conftest.$ac_objext
16044 deplibs=
16045 wl=$lt_prog_compiler_wl
16046 pic_flag=$lt_prog_compiler_pic
16047 compiler_flags=-v
16048 linker_flags=-v
16049 verstring=
16050 output_objdir=.
16051 libname=conftest
16052 lt_save_allow_undefined_flag=$allow_undefined_flag
16053 allow_undefined_flag=
16054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16055 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16056 ac_status=$?
16057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16058 test $ac_status = 0; }
16059 then
16060 lt_cv_archive_cmds_need_lc=no
16061 else
16062 lt_cv_archive_cmds_need_lc=yes
16063 fi
16064 allow_undefined_flag=$lt_save_allow_undefined_flag
16065 else
16066 cat conftest.err 1>&5
16067 fi
16068 $RM conftest*
16069
16070 fi
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16072 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16073 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16074 ;;
16075 esac
16076 fi
16077 ;;
16078 esac
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16232 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16233
16234 if test "$GCC" = yes; then
16235 case $host_os in
16236 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16237 *) lt_awk_arg="/^libraries:/" ;;
16238 esac
16239 case $host_os in
16240 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16241 *) lt_sed_strip_eq="s,=/,/,g" ;;
16242 esac
16243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16244 case $lt_search_path_spec in
16245 *\;*)
16246 # if the path contains ";" then we assume it to be the separator
16247 # otherwise default to the standard path separator (i.e. ":") - it is
16248 # assumed that no part of a normal pathname contains ";" but that should
16249 # okay in the real world where ";" in dirpaths is itself problematic.
16250 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16251 ;;
16252 *)
16253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16254 ;;
16255 esac
16256 # Ok, now we have the path, separated by spaces, we can step through it
16257 # and add multilib dir if necessary.
16258 lt_tmp_lt_search_path_spec=
16259 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260 for lt_sys_path in $lt_search_path_spec; do
16261 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16263 else
16264 test -d "$lt_sys_path" && \
16265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16266 fi
16267 done
16268 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16269 BEGIN {RS=" "; FS="/|\n";} {
16270 lt_foo="";
16271 lt_count=0;
16272 for (lt_i = NF; lt_i > 0; lt_i--) {
16273 if ($lt_i != "" && $lt_i != ".") {
16274 if ($lt_i == "..") {
16275 lt_count++;
16276 } else {
16277 if (lt_count == 0) {
16278 lt_foo="/" $lt_i lt_foo;
16279 } else {
16280 lt_count--;
16281 }
16282 }
16283 }
16284 }
16285 if (lt_foo != "") { lt_freq[lt_foo]++; }
16286 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16287 }'`
16288 # AWK program above erroneously prepends '/' to C:/dos/paths
16289 # for these hosts.
16290 case $host_os in
16291 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16292 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16293 esac
16294 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16295 else
16296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16297 fi
16298 library_names_spec=
16299 libname_spec='lib$name'
16300 soname_spec=
16301 shrext_cmds=".so"
16302 postinstall_cmds=
16303 postuninstall_cmds=
16304 finish_cmds=
16305 finish_eval=
16306 shlibpath_var=
16307 shlibpath_overrides_runpath=unknown
16308 version_type=none
16309 dynamic_linker="$host_os ld.so"
16310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16311 need_lib_prefix=unknown
16312 hardcode_into_libs=no
16313
16314 # when you set need_version to no, make sure it does not cause -set_version
16315 # flags to be left without arguments
16316 need_version=unknown
16317
16318 case $host_os in
16319 aix3*)
16320 version_type=linux # correct to gnu/linux during the next big refactor
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16322 shlibpath_var=LIBPATH
16323
16324 # AIX 3 has no versioning support, so we append a major version to the name.
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 ;;
16327
16328 aix[4-9]*)
16329 version_type=linux # correct to gnu/linux during the next big refactor
16330 need_lib_prefix=no
16331 need_version=no
16332 hardcode_into_libs=yes
16333 if test "$host_cpu" = ia64; then
16334 # AIX 5 supports IA64
16335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 else
16338 # With GCC up to 2.95.x, collect2 would create an import file
16339 # for dependence libraries. The import file would start with
16340 # the line `#! .'. This would cause the generated library to
16341 # depend on `.', always an invalid library. This was fixed in
16342 # development snapshots of GCC prior to 3.0.
16343 case $host_os in
16344 aix4 | aix4.[01] | aix4.[01].*)
16345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16346 echo ' yes '
16347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16348 :
16349 else
16350 can_build_shared=no
16351 fi
16352 ;;
16353 esac
16354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16355 # soname into executable. Probably we can add versioning support to
16356 # collect2, so additional links can be useful in future.
16357 if test "$aix_use_runtimelinking" = yes; then
16358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16359 # instead of lib<name>.a to let people know that these are not
16360 # typical AIX shared libraries.
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 else
16363 # We preserve .a as extension for shared libraries through AIX4.2
16364 # and later when we are not doing run time linking.
16365 library_names_spec='${libname}${release}.a $libname.a'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 fi
16368 shlibpath_var=LIBPATH
16369 fi
16370 ;;
16371
16372 amigaos*)
16373 case $host_cpu in
16374 powerpc)
16375 # Since July 2007 AmigaOS4 officially supports .so libraries.
16376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 ;;
16379 m68k)
16380 library_names_spec='$libname.ixlibrary $libname.a'
16381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16382 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'
16383 ;;
16384 esac
16385 ;;
16386
16387 beos*)
16388 library_names_spec='${libname}${shared_ext}'
16389 dynamic_linker="$host_os ld.so"
16390 shlibpath_var=LIBRARY_PATH
16391 ;;
16392
16393 bsdi[45]*)
16394 version_type=linux # correct to gnu/linux during the next big refactor
16395 need_version=no
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16402 # the default ld.so.conf also contains /usr/contrib/lib and
16403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16404 # libtool to hard-code these into programs
16405 ;;
16406
16407 cygwin* | mingw* | pw32* | cegcc*)
16408 version_type=windows
16409 shrext_cmds=".dll"
16410 need_version=no
16411 need_lib_prefix=no
16412
16413 case $GCC,$cc_basename in
16414 yes,*)
16415 # gcc
16416 library_names_spec='$libname.dll.a'
16417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16418 postinstall_cmds='base_file=`basename \${file}`~
16419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16420 dldir=$destdir/`dirname \$dlpath`~
16421 test -d \$dldir || mkdir -p \$dldir~
16422 $install_prog $dir/$dlname \$dldir/$dlname~
16423 chmod a+x \$dldir/$dlname~
16424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16426 fi'
16427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16428 dlpath=$dir/\$dldll~
16429 $RM \$dlpath'
16430 shlibpath_overrides_runpath=yes
16431
16432 case $host_os in
16433 cygwin*)
16434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436
16437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16438 ;;
16439 mingw* | cegcc*)
16440 # MinGW DLLs use traditional 'lib' prefix
16441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16442 ;;
16443 pw32*)
16444 # pw32 DLLs use 'pw' prefix rather than 'lib'
16445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16446 ;;
16447 esac
16448 dynamic_linker='Win32 ld.exe'
16449 ;;
16450
16451 *,cl*)
16452 # Native MSVC
16453 libname_spec='$name'
16454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455 library_names_spec='${libname}.dll.lib'
16456
16457 case $build_os in
16458 mingw*)
16459 sys_lib_search_path_spec=
16460 lt_save_ifs=$IFS
16461 IFS=';'
16462 for lt_path in $LIB
16463 do
16464 IFS=$lt_save_ifs
16465 # Let DOS variable expansion print the short 8.3 style file name.
16466 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16467 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16468 done
16469 IFS=$lt_save_ifs
16470 # Convert to MSYS style.
16471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16472 ;;
16473 cygwin*)
16474 # Convert to unix form, then to dos form, then back to unix form
16475 # but this time dos style (no spaces!) so that the unix form looks
16476 # like /cygdrive/c/PROGRA~1:/cygdr...
16477 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16478 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16479 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16480 ;;
16481 *)
16482 sys_lib_search_path_spec="$LIB"
16483 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH.
16485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486 else
16487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16488 fi
16489 # FIXME: find the short name or the path components, as spaces are
16490 # common. (e.g. "Program Files" -> "PROGRA~1")
16491 ;;
16492 esac
16493
16494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495 postinstall_cmds='base_file=`basename \${file}`~
16496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497 dldir=$destdir/`dirname \$dlpath`~
16498 test -d \$dldir || mkdir -p \$dldir~
16499 $install_prog $dir/$dlname \$dldir/$dlname'
16500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16501 dlpath=$dir/\$dldll~
16502 $RM \$dlpath'
16503 shlibpath_overrides_runpath=yes
16504 dynamic_linker='Win32 link.exe'
16505 ;;
16506
16507 *)
16508 # Assume MSVC wrapper
16509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16510 dynamic_linker='Win32 ld.exe'
16511 ;;
16512 esac
16513 # FIXME: first we should search . and the directory the executable is in
16514 shlibpath_var=PATH
16515 ;;
16516
16517 darwin* | rhapsody*)
16518 dynamic_linker="$host_os dyld"
16519 version_type=darwin
16520 need_lib_prefix=no
16521 need_version=no
16522 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16523 soname_spec='${libname}${release}${major}$shared_ext'
16524 shlibpath_overrides_runpath=yes
16525 shlibpath_var=DYLD_LIBRARY_PATH
16526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16527
16528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16530 ;;
16531
16532 dgux*)
16533 version_type=linux # correct to gnu/linux during the next big refactor
16534 need_lib_prefix=no
16535 need_version=no
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 ;;
16540
16541 freebsd* | dragonfly*)
16542 # DragonFly does not have aout. When/if they implement a new
16543 # versioning mechanism, adjust this.
16544 if test -x /usr/bin/objformat; then
16545 objformat=`/usr/bin/objformat`
16546 else
16547 case $host_os in
16548 freebsd[23].*) objformat=aout ;;
16549 *) objformat=elf ;;
16550 esac
16551 fi
16552 version_type=freebsd-$objformat
16553 case $version_type in
16554 freebsd-elf*)
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556 need_version=no
16557 need_lib_prefix=no
16558 ;;
16559 freebsd-*)
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16561 need_version=yes
16562 ;;
16563 esac
16564 shlibpath_var=LD_LIBRARY_PATH
16565 case $host_os in
16566 freebsd2.*)
16567 shlibpath_overrides_runpath=yes
16568 ;;
16569 freebsd3.[01]* | freebsdelf3.[01]*)
16570 shlibpath_overrides_runpath=yes
16571 hardcode_into_libs=yes
16572 ;;
16573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16575 shlibpath_overrides_runpath=no
16576 hardcode_into_libs=yes
16577 ;;
16578 *) # from 4.6 on, and DragonFly
16579 shlibpath_overrides_runpath=yes
16580 hardcode_into_libs=yes
16581 ;;
16582 esac
16583 ;;
16584
16585 gnu*)
16586 version_type=linux # correct to gnu/linux during the next big refactor
16587 need_lib_prefix=no
16588 need_version=no
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16590 soname_spec='${libname}${release}${shared_ext}$major'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath=no
16593 hardcode_into_libs=yes
16594 ;;
16595
16596 haiku*)
16597 version_type=linux # correct to gnu/linux during the next big refactor
16598 need_lib_prefix=no
16599 need_version=no
16600 dynamic_linker="$host_os runtime_loader"
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 shlibpath_var=LIBRARY_PATH
16604 shlibpath_overrides_runpath=yes
16605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16606 hardcode_into_libs=yes
16607 ;;
16608
16609 hpux9* | hpux10* | hpux11*)
16610 # Give a soname corresponding to the major version so that dld.sl refuses to
16611 # link against other versions.
16612 version_type=sunos
16613 need_lib_prefix=no
16614 need_version=no
16615 case $host_cpu in
16616 ia64*)
16617 shrext_cmds='.so'
16618 hardcode_into_libs=yes
16619 dynamic_linker="$host_os dld.so"
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 if test "X$HPUX_IA64_MODE" = X32; then
16625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16626 else
16627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16628 fi
16629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16630 ;;
16631 hppa*64*)
16632 shrext_cmds='.sl'
16633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641 ;;
16642 *)
16643 shrext_cmds='.sl'
16644 dynamic_linker="$host_os dld.sl"
16645 shlibpath_var=SHLIB_PATH
16646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 ;;
16650 esac
16651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16652 postinstall_cmds='chmod 555 $lib'
16653 # or fails outright, so override atomically:
16654 install_override_mode=555
16655 ;;
16656
16657 interix[3-9]*)
16658 version_type=linux # correct to gnu/linux during the next big refactor
16659 need_lib_prefix=no
16660 need_version=no
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=no
16666 hardcode_into_libs=yes
16667 ;;
16668
16669 irix5* | irix6* | nonstopux*)
16670 case $host_os in
16671 nonstopux*) version_type=nonstopux ;;
16672 *)
16673 if test "$lt_cv_prog_gnu_ld" = yes; then
16674 version_type=linux # correct to gnu/linux during the next big refactor
16675 else
16676 version_type=irix
16677 fi ;;
16678 esac
16679 need_lib_prefix=no
16680 need_version=no
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16683 case $host_os in
16684 irix5* | nonstopux*)
16685 libsuff= shlibsuff=
16686 ;;
16687 *)
16688 case $LD in # libtool.m4 will add one of these switches to LD
16689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16690 libsuff= shlibsuff= libmagic=32-bit;;
16691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16692 libsuff=32 shlibsuff=N32 libmagic=N32;;
16693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16695 *) libsuff= shlibsuff= libmagic=never-match;;
16696 esac
16697 ;;
16698 esac
16699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16700 shlibpath_overrides_runpath=no
16701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16703 hardcode_into_libs=yes
16704 ;;
16705
16706 # No shared lib support for Linux oldld, aout, or coff.
16707 linux*oldld* | linux*aout* | linux*coff*)
16708 dynamic_linker=no
16709 ;;
16710
16711 # This must be glibc/ELF.
16712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16713 version_type=linux # correct to gnu/linux during the next big refactor
16714 need_lib_prefix=no
16715 need_version=no
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=no
16721
16722 # Some binutils ld are patched to set DT_RUNPATH
16723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16724 $as_echo_n "(cached) " >&6
16725 else
16726 lt_cv_shlibpath_overrides_runpath=no
16727 save_LDFLAGS=$LDFLAGS
16728 save_libdir=$libdir
16729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733
16734 int
16735 main ()
16736 {
16737
16738 ;
16739 return 0;
16740 }
16741 _ACEOF
16742 if ac_fn_c_try_link "$LINENO"; then :
16743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16744 lt_cv_shlibpath_overrides_runpath=yes
16745 fi
16746 fi
16747 rm -f core conftest.err conftest.$ac_objext \
16748 conftest$ac_exeext conftest.$ac_ext
16749 LDFLAGS=$save_LDFLAGS
16750 libdir=$save_libdir
16751
16752 fi
16753
16754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16755
16756 # This implies no fast_install, which is unacceptable.
16757 # Some rework will be needed to allow for fast_install
16758 # before this can be enabled.
16759 hardcode_into_libs=yes
16760
16761 # Add ABI-specific directories to the system library path.
16762 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16763
16764 # Append ld.so.conf contents to the search path
16765 if test -f /etc/ld.so.conf; then
16766 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' ' '`
16767 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16768
16769 fi
16770
16771 # We used to test for /lib/ld.so.1 and disable shared libraries on
16772 # powerpc, because MkLinux only supported shared libraries with the
16773 # GNU dynamic linker. Since this was broken with cross compilers,
16774 # most powerpc-linux boxes support dynamic linking these days and
16775 # people can always --disable-shared, the test was removed, and we
16776 # assume the GNU/Linux dynamic linker is in use.
16777 dynamic_linker='GNU/Linux ld.so'
16778 ;;
16779
16780 netbsd*)
16781 version_type=sunos
16782 need_lib_prefix=no
16783 need_version=no
16784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16787 dynamic_linker='NetBSD (a.out) ld.so'
16788 else
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 dynamic_linker='NetBSD ld.elf_so'
16792 fi
16793 shlibpath_var=LD_LIBRARY_PATH
16794 shlibpath_overrides_runpath=yes
16795 hardcode_into_libs=yes
16796 ;;
16797
16798 newsos6)
16799 version_type=linux # correct to gnu/linux during the next big refactor
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 shlibpath_overrides_runpath=yes
16803 ;;
16804
16805 *nto* | *qnx*)
16806 version_type=qnx
16807 need_lib_prefix=no
16808 need_version=no
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810 soname_spec='${libname}${release}${shared_ext}$major'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath=no
16813 hardcode_into_libs=yes
16814 dynamic_linker='ldqnx.so'
16815 ;;
16816
16817 openbsd*)
16818 version_type=sunos
16819 sys_lib_dlsearch_path_spec="/usr/lib"
16820 need_lib_prefix=no
16821 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16822 case $host_os in
16823 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16824 *) need_version=no ;;
16825 esac
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16830 case $host_os in
16831 openbsd2.[89] | openbsd2.[89].*)
16832 shlibpath_overrides_runpath=no
16833 ;;
16834 *)
16835 shlibpath_overrides_runpath=yes
16836 ;;
16837 esac
16838 else
16839 shlibpath_overrides_runpath=yes
16840 fi
16841 ;;
16842
16843 os2*)
16844 libname_spec='$name'
16845 shrext_cmds=".dll"
16846 need_lib_prefix=no
16847 library_names_spec='$libname${shared_ext} $libname.a'
16848 dynamic_linker='OS/2 ld.exe'
16849 shlibpath_var=LIBPATH
16850 ;;
16851
16852 osf3* | osf4* | osf5*)
16853 version_type=osf
16854 need_lib_prefix=no
16855 need_version=no
16856 soname_spec='${libname}${release}${shared_ext}$major'
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16861 ;;
16862
16863 rdos*)
16864 dynamic_linker=no
16865 ;;
16866
16867 solaris*)
16868 version_type=linux # correct to gnu/linux during the next big refactor
16869 need_lib_prefix=no
16870 need_version=no
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 shlibpath_overrides_runpath=yes
16875 hardcode_into_libs=yes
16876 # ldd complains unless libraries are executable
16877 postinstall_cmds='chmod +x $lib'
16878 ;;
16879
16880 sunos4*)
16881 version_type=sunos
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 shlibpath_overrides_runpath=yes
16886 if test "$with_gnu_ld" = yes; then
16887 need_lib_prefix=no
16888 fi
16889 need_version=yes
16890 ;;
16891
16892 sysv4 | sysv4.3*)
16893 version_type=linux # correct to gnu/linux during the next big refactor
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 case $host_vendor in
16898 sni)
16899 shlibpath_overrides_runpath=no
16900 need_lib_prefix=no
16901 runpath_var=LD_RUN_PATH
16902 ;;
16903 siemens)
16904 need_lib_prefix=no
16905 ;;
16906 motorola)
16907 need_lib_prefix=no
16908 need_version=no
16909 shlibpath_overrides_runpath=no
16910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16911 ;;
16912 esac
16913 ;;
16914
16915 sysv4*MP*)
16916 if test -d /usr/nec ;then
16917 version_type=linux # correct to gnu/linux during the next big refactor
16918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16919 soname_spec='$libname${shared_ext}.$major'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 fi
16922 ;;
16923
16924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16925 version_type=freebsd-elf
16926 need_lib_prefix=no
16927 need_version=no
16928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16929 soname_spec='${libname}${release}${shared_ext}$major'
16930 shlibpath_var=LD_LIBRARY_PATH
16931 shlibpath_overrides_runpath=yes
16932 hardcode_into_libs=yes
16933 if test "$with_gnu_ld" = yes; then
16934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16935 else
16936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16937 case $host_os in
16938 sco3.2v5*)
16939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16940 ;;
16941 esac
16942 fi
16943 sys_lib_dlsearch_path_spec='/usr/lib'
16944 ;;
16945
16946 tpf*)
16947 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16948 version_type=linux # correct to gnu/linux during the next big refactor
16949 need_lib_prefix=no
16950 need_version=no
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 shlibpath_overrides_runpath=no
16954 hardcode_into_libs=yes
16955 ;;
16956
16957 uts4*)
16958 version_type=linux # correct to gnu/linux during the next big refactor
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 ;;
16963
16964 *)
16965 dynamic_linker=no
16966 ;;
16967 esac
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16969 $as_echo "$dynamic_linker" >&6; }
16970 test "$dynamic_linker" = no && can_build_shared=no
16971
16972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16973 if test "$GCC" = yes; then
16974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16975 fi
16976
16977 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16978 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16979 fi
16980 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16981 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16982 fi
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17077 hardcode_action=
17078 if test -n "$hardcode_libdir_flag_spec" ||
17079 test -n "$runpath_var" ||
17080 test "X$hardcode_automatic" = "Xyes" ; then
17081
17082 # We can hardcode non-existent directories.
17083 if test "$hardcode_direct" != no &&
17084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17085 # have to relink, otherwise we might link with an installed library
17086 # when we should be linking with a yet-to-be-installed one
17087 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17088 test "$hardcode_minus_L" != no; then
17089 # Linking always hardcodes the temporary library directory.
17090 hardcode_action=relink
17091 else
17092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17093 hardcode_action=immediate
17094 fi
17095 else
17096 # We cannot hardcode anything, or else we can only hardcode existing
17097 # directories.
17098 hardcode_action=unsupported
17099 fi
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17101 $as_echo "$hardcode_action" >&6; }
17102
17103 if test "$hardcode_action" = relink ||
17104 test "$inherit_rpath" = yes; then
17105 # Fast installation is not supported
17106 enable_fast_install=no
17107 elif test "$shlibpath_overrides_runpath" = yes ||
17108 test "$enable_shared" = no; then
17109 # Fast installation is not necessary
17110 enable_fast_install=needless
17111 fi
17112
17113
17114
17115
17116
17117
17118 if test "x$enable_dlopen" != xyes; then
17119 enable_dlopen=unknown
17120 enable_dlopen_self=unknown
17121 enable_dlopen_self_static=unknown
17122 else
17123 lt_cv_dlopen=no
17124 lt_cv_dlopen_libs=
17125
17126 case $host_os in
17127 beos*)
17128 lt_cv_dlopen="load_add_on"
17129 lt_cv_dlopen_libs=
17130 lt_cv_dlopen_self=yes
17131 ;;
17132
17133 mingw* | pw32* | cegcc*)
17134 lt_cv_dlopen="LoadLibrary"
17135 lt_cv_dlopen_libs=
17136 ;;
17137
17138 cygwin*)
17139 lt_cv_dlopen="dlopen"
17140 lt_cv_dlopen_libs=
17141 ;;
17142
17143 darwin*)
17144 # if libdl is installed we need to link against it
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17146 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17147 if ${ac_cv_lib_dl_dlopen+:} false; then :
17148 $as_echo_n "(cached) " >&6
17149 else
17150 ac_check_lib_save_LIBS=$LIBS
17151 LIBS="-ldl $LIBS"
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17154
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17158 #ifdef __cplusplus
17159 extern "C"
17160 #endif
17161 char dlopen ();
17162 int
17163 main ()
17164 {
17165 return dlopen ();
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_c_try_link "$LINENO"; then :
17171 ac_cv_lib_dl_dlopen=yes
17172 else
17173 ac_cv_lib_dl_dlopen=no
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17177 LIBS=$ac_check_lib_save_LIBS
17178 fi
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17181 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17183 else
17184
17185 lt_cv_dlopen="dyld"
17186 lt_cv_dlopen_libs=
17187 lt_cv_dlopen_self=yes
17188
17189 fi
17190
17191 ;;
17192
17193 *)
17194 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17195 if test "x$ac_cv_func_shl_load" = xyes; then :
17196 lt_cv_dlopen="shl_load"
17197 else
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17199 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17200 if ${ac_cv_lib_dld_shl_load+:} false; then :
17201 $as_echo_n "(cached) " >&6
17202 else
17203 ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-ldld $LIBS"
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 char shl_load ();
17215 int
17216 main ()
17217 {
17218 return shl_load ();
17219 ;
17220 return 0;
17221 }
17222 _ACEOF
17223 if ac_fn_c_try_link "$LINENO"; then :
17224 ac_cv_lib_dld_shl_load=yes
17225 else
17226 ac_cv_lib_dld_shl_load=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17231 fi
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17233 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17234 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17235 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17236 else
17237 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17238 if test "x$ac_cv_func_dlopen" = xyes; then :
17239 lt_cv_dlopen="dlopen"
17240 else
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17242 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17243 if ${ac_cv_lib_dl_dlopen+:} false; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17246 ac_check_lib_save_LIBS=$LIBS
17247 LIBS="-ldl $LIBS"
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17250
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char dlopen ();
17258 int
17259 main ()
17260 {
17261 return dlopen ();
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 ac_cv_lib_dl_dlopen=yes
17268 else
17269 ac_cv_lib_dl_dlopen=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17274 fi
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17276 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17277 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17279 else
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17281 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17282 if ${ac_cv_lib_svld_dlopen+:} false; then :
17283 $as_echo_n "(cached) " >&6
17284 else
17285 ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-lsvld $LIBS"
17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h. */
17289
17290 /* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17293 #ifdef __cplusplus
17294 extern "C"
17295 #endif
17296 char dlopen ();
17297 int
17298 main ()
17299 {
17300 return dlopen ();
17301 ;
17302 return 0;
17303 }
17304 _ACEOF
17305 if ac_fn_c_try_link "$LINENO"; then :
17306 ac_cv_lib_svld_dlopen=yes
17307 else
17308 ac_cv_lib_svld_dlopen=no
17309 fi
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312 LIBS=$ac_check_lib_save_LIBS
17313 fi
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17315 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17316 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17318 else
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17320 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17321 if ${ac_cv_lib_dld_dld_link+:} false; then :
17322 $as_echo_n "(cached) " >&6
17323 else
17324 ac_check_lib_save_LIBS=$LIBS
17325 LIBS="-ldld $LIBS"
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328
17329 /* Override any GCC internal prototype to avoid an error.
17330 Use char because int might match the return type of a GCC
17331 builtin and then its argument prototype would still apply. */
17332 #ifdef __cplusplus
17333 extern "C"
17334 #endif
17335 char dld_link ();
17336 int
17337 main ()
17338 {
17339 return dld_link ();
17340 ;
17341 return 0;
17342 }
17343 _ACEOF
17344 if ac_fn_c_try_link "$LINENO"; then :
17345 ac_cv_lib_dld_dld_link=yes
17346 else
17347 ac_cv_lib_dld_dld_link=no
17348 fi
17349 rm -f core conftest.err conftest.$ac_objext \
17350 conftest$ac_exeext conftest.$ac_ext
17351 LIBS=$ac_check_lib_save_LIBS
17352 fi
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17354 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17355 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17356 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17357 fi
17358
17359
17360 fi
17361
17362
17363 fi
17364
17365
17366 fi
17367
17368
17369 fi
17370
17371
17372 fi
17373
17374 ;;
17375 esac
17376
17377 if test "x$lt_cv_dlopen" != xno; then
17378 enable_dlopen=yes
17379 else
17380 enable_dlopen=no
17381 fi
17382
17383 case $lt_cv_dlopen in
17384 dlopen)
17385 save_CPPFLAGS="$CPPFLAGS"
17386 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17387
17388 save_LDFLAGS="$LDFLAGS"
17389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17390
17391 save_LIBS="$LIBS"
17392 LIBS="$lt_cv_dlopen_libs $LIBS"
17393
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17395 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17396 if ${lt_cv_dlopen_self+:} false; then :
17397 $as_echo_n "(cached) " >&6
17398 else
17399 if test "$cross_compiling" = yes; then :
17400 lt_cv_dlopen_self=cross
17401 else
17402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17403 lt_status=$lt_dlunknown
17404 cat > conftest.$ac_ext <<_LT_EOF
17405 #line $LINENO "configure"
17406 #include "confdefs.h"
17407
17408 #if HAVE_DLFCN_H
17409 #include <dlfcn.h>
17410 #endif
17411
17412 #include <stdio.h>
17413
17414 #ifdef RTLD_GLOBAL
17415 # define LT_DLGLOBAL RTLD_GLOBAL
17416 #else
17417 # ifdef DL_GLOBAL
17418 # define LT_DLGLOBAL DL_GLOBAL
17419 # else
17420 # define LT_DLGLOBAL 0
17421 # endif
17422 #endif
17423
17424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17425 find out it does not work in some platform. */
17426 #ifndef LT_DLLAZY_OR_NOW
17427 # ifdef RTLD_LAZY
17428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17429 # else
17430 # ifdef DL_LAZY
17431 # define LT_DLLAZY_OR_NOW DL_LAZY
17432 # else
17433 # ifdef RTLD_NOW
17434 # define LT_DLLAZY_OR_NOW RTLD_NOW
17435 # else
17436 # ifdef DL_NOW
17437 # define LT_DLLAZY_OR_NOW DL_NOW
17438 # else
17439 # define LT_DLLAZY_OR_NOW 0
17440 # endif
17441 # endif
17442 # endif
17443 # endif
17444 #endif
17445
17446 /* When -fvisbility=hidden is used, assume the code has been annotated
17447 correspondingly for the symbols needed. */
17448 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17449 int fnord () __attribute__((visibility("default")));
17450 #endif
17451
17452 int fnord () { return 42; }
17453 int main ()
17454 {
17455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17456 int status = $lt_dlunknown;
17457
17458 if (self)
17459 {
17460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17461 else
17462 {
17463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17464 else puts (dlerror ());
17465 }
17466 /* dlclose (self); */
17467 }
17468 else
17469 puts (dlerror ());
17470
17471 return status;
17472 }
17473 _LT_EOF
17474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17475 (eval $ac_link) 2>&5
17476 ac_status=$?
17477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17478 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17479 (./conftest; exit; ) >&5 2>/dev/null
17480 lt_status=$?
17481 case x$lt_status in
17482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17484 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17485 esac
17486 else :
17487 # compilation failed
17488 lt_cv_dlopen_self=no
17489 fi
17490 fi
17491 rm -fr conftest*
17492
17493
17494 fi
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17496 $as_echo "$lt_cv_dlopen_self" >&6; }
17497
17498 if test "x$lt_cv_dlopen_self" = xyes; then
17499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17501 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17502 if ${lt_cv_dlopen_self_static+:} false; then :
17503 $as_echo_n "(cached) " >&6
17504 else
17505 if test "$cross_compiling" = yes; then :
17506 lt_cv_dlopen_self_static=cross
17507 else
17508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17509 lt_status=$lt_dlunknown
17510 cat > conftest.$ac_ext <<_LT_EOF
17511 #line $LINENO "configure"
17512 #include "confdefs.h"
17513
17514 #if HAVE_DLFCN_H
17515 #include <dlfcn.h>
17516 #endif
17517
17518 #include <stdio.h>
17519
17520 #ifdef RTLD_GLOBAL
17521 # define LT_DLGLOBAL RTLD_GLOBAL
17522 #else
17523 # ifdef DL_GLOBAL
17524 # define LT_DLGLOBAL DL_GLOBAL
17525 # else
17526 # define LT_DLGLOBAL 0
17527 # endif
17528 #endif
17529
17530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17531 find out it does not work in some platform. */
17532 #ifndef LT_DLLAZY_OR_NOW
17533 # ifdef RTLD_LAZY
17534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17535 # else
17536 # ifdef DL_LAZY
17537 # define LT_DLLAZY_OR_NOW DL_LAZY
17538 # else
17539 # ifdef RTLD_NOW
17540 # define LT_DLLAZY_OR_NOW RTLD_NOW
17541 # else
17542 # ifdef DL_NOW
17543 # define LT_DLLAZY_OR_NOW DL_NOW
17544 # else
17545 # define LT_DLLAZY_OR_NOW 0
17546 # endif
17547 # endif
17548 # endif
17549 # endif
17550 #endif
17551
17552 /* When -fvisbility=hidden is used, assume the code has been annotated
17553 correspondingly for the symbols needed. */
17554 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17555 int fnord () __attribute__((visibility("default")));
17556 #endif
17557
17558 int fnord () { return 42; }
17559 int main ()
17560 {
17561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17562 int status = $lt_dlunknown;
17563
17564 if (self)
17565 {
17566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17567 else
17568 {
17569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17570 else puts (dlerror ());
17571 }
17572 /* dlclose (self); */
17573 }
17574 else
17575 puts (dlerror ());
17576
17577 return status;
17578 }
17579 _LT_EOF
17580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17581 (eval $ac_link) 2>&5
17582 ac_status=$?
17583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17585 (./conftest; exit; ) >&5 2>/dev/null
17586 lt_status=$?
17587 case x$lt_status in
17588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17591 esac
17592 else :
17593 # compilation failed
17594 lt_cv_dlopen_self_static=no
17595 fi
17596 fi
17597 rm -fr conftest*
17598
17599
17600 fi
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17602 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17603 fi
17604
17605 CPPFLAGS="$save_CPPFLAGS"
17606 LDFLAGS="$save_LDFLAGS"
17607 LIBS="$save_LIBS"
17608 ;;
17609 esac
17610
17611 case $lt_cv_dlopen_self in
17612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17613 *) enable_dlopen_self=unknown ;;
17614 esac
17615
17616 case $lt_cv_dlopen_self_static in
17617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17618 *) enable_dlopen_self_static=unknown ;;
17619 esac
17620 fi
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638 striplib=
17639 old_striplib=
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17641 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17642 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17646 $as_echo "yes" >&6; }
17647 else
17648 # FIXME - insert some real tests, host_os isn't really good enough
17649 case $host_os in
17650 darwin*)
17651 if test -n "$STRIP" ; then
17652 striplib="$STRIP -x"
17653 old_striplib="$STRIP -S"
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17655 $as_echo "yes" >&6; }
17656 else
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17658 $as_echo "no" >&6; }
17659 fi
17660 ;;
17661 *)
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17663 $as_echo "no" >&6; }
17664 ;;
17665 esac
17666 fi
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679 # Report which library types will actually be built
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17683 $as_echo "$can_build_shared" >&6; }
17684
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17686 $as_echo_n "checking whether to build shared libraries... " >&6; }
17687 test "$can_build_shared" = "no" && enable_shared=no
17688
17689 # On AIX, shared libraries and static libraries use the same namespace, and
17690 # are all built from PIC.
17691 case $host_os in
17692 aix3*)
17693 test "$enable_shared" = yes && enable_static=no
17694 if test -n "$RANLIB"; then
17695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17696 postinstall_cmds='$RANLIB $lib'
17697 fi
17698 ;;
17699
17700 aix[4-9]*)
17701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17702 test "$enable_shared" = yes && enable_static=no
17703 fi
17704 ;;
17705 esac
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17707 $as_echo "$enable_shared" >&6; }
17708
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17710 $as_echo_n "checking whether to build static libraries... " >&6; }
17711 # Make sure either enable_shared or enable_static is yes.
17712 test "$enable_shared" = yes || enable_static=yes
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17714 $as_echo "$enable_static" >&6; }
17715
17716
17717
17718
17719 fi
17720 ac_ext=c
17721 ac_cpp='$CPP $CPPFLAGS'
17722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17725
17726 CC="$lt_save_CC"
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742 ac_config_commands="$ac_config_commands libtool"
17743
17744
17745
17746
17747 # Only expand once:
17748
17749
17750
17751
17752
17753 # Define a configure option for an alternate module directory
17754
17755 # Check whether --with-xorg-module-dir was given.
17756 if test "${with_xorg_module_dir+set}" = set; then :
17757 withval=$with_xorg_module_dir; moduledir="$withval"
17758 else
17759 moduledir="$libdir/xorg/modules"
17760 fi
17761
17762
17763 # Store the list of server defined optional extensions in REQUIRED_MODULES
17764
17765
17766 SAVE_CFLAGS="$CFLAGS"
17767 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770
17771 #include "xorg-server.h"
17772 #if !defined RANDR
17773 #error RANDR not defined
17774 #endif
17775
17776 int
17777 main ()
17778 {
17779
17780 ;
17781 return 0;
17782 }
17783 _ACEOF
17784 if ac_fn_c_try_compile "$LINENO"; then :
17785 _EXT_CHECK=yes
17786 else
17787 _EXT_CHECK=no
17788 fi
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17790 CFLAGS="$SAVE_CFLAGS"
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17792 $as_echo_n "checking if RANDR is defined... " >&6; }
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17794 $as_echo "$_EXT_CHECK" >&6; }
17795 if test "$_EXT_CHECK" != no; then
17796 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17797 fi
17798
17799
17800
17801 SAVE_CFLAGS="$CFLAGS"
17802 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17805
17806 #include "xorg-server.h"
17807 #if !defined RENDER
17808 #error RENDER not defined
17809 #endif
17810
17811 int
17812 main ()
17813 {
17814
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 if ac_fn_c_try_compile "$LINENO"; then :
17820 _EXT_CHECK=yes
17821 else
17822 _EXT_CHECK=no
17823 fi
17824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17825 CFLAGS="$SAVE_CFLAGS"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17827 $as_echo_n "checking if RENDER is defined... " >&6; }
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17829 $as_echo "$_EXT_CHECK" >&6; }
17830 if test "$_EXT_CHECK" != no; then
17831 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17832 fi
17833
17834
17835
17836 SAVE_CFLAGS="$CFLAGS"
17837 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17840
17841 #include "xorg-server.h"
17842 #if !defined XV
17843 #error XV not defined
17844 #endif
17845
17846 int
17847 main ()
17848 {
17849
17850 ;
17851 return 0;
17852 }
17853 _ACEOF
17854 if ac_fn_c_try_compile "$LINENO"; then :
17855 _EXT_CHECK=yes
17856 else
17857 _EXT_CHECK=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 CFLAGS="$SAVE_CFLAGS"
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17862 $as_echo_n "checking if XV is defined... " >&6; }
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17864 $as_echo "$_EXT_CHECK" >&6; }
17865 if test "$_EXT_CHECK" != no; then
17866 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17867 fi
17868
17869
17870
17871 SAVE_CFLAGS="$CFLAGS"
17872 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875
17876 #include "xorg-server.h"
17877 #if !defined DPMSExtension
17878 #error DPMSExtension not defined
17879 #endif
17880
17881 int
17882 main ()
17883 {
17884
17885 ;
17886 return 0;
17887 }
17888 _ACEOF
17889 if ac_fn_c_try_compile "$LINENO"; then :
17890 _EXT_CHECK=yes
17891 else
17892 _EXT_CHECK=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 CFLAGS="$SAVE_CFLAGS"
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17897 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17899 $as_echo "$_EXT_CHECK" >&6; }
17900 if test "$_EXT_CHECK" != no; then
17901 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17902 fi
17903
17904
17905
17906 SAVE_CFLAGS="$CFLAGS"
17907 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910
17911 #include "xorg-server.h"
17912 #if !defined XFreeXDGA
17913 #error XFreeXDGA not defined
17914 #endif
17915
17916 int
17917 main ()
17918 {
17919
17920 ;
17921 return 0;
17922 }
17923 _ACEOF
17924 if ac_fn_c_try_compile "$LINENO"; then :
17925 _EXT_CHECK=yes
17926 else
17927 _EXT_CHECK=no
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930 CFLAGS="$SAVE_CFLAGS"
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
17932 $as_echo_n "checking if XFreeXDGA is defined... " >&6; }
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17934 $as_echo "$_EXT_CHECK" >&6; }
17935 if test "$_EXT_CHECK" != no; then
17936 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto >= 2.1"
17937 fi
17938
17939
17940 # Obtain compiler/linker options for the driver dependencies
17941
17942 pkg_failed=no
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17944 $as_echo_n "checking for XORG... " >&6; }
17945
17946 if test -n "$XORG_CFLAGS"; then
17947 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
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.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17951 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 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_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17956 else
17957 pkg_failed=yes
17958 fi
17959 else
17960 pkg_failed=untried
17961 fi
17962 if test -n "$XORG_LIBS"; then
17963 pkg_cv_XORG_LIBS="$XORG_LIBS"
17964 elif test -n "$PKG_CONFIG"; then
17965 if test -n "$PKG_CONFIG" && \
17966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17967 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17968 ac_status=$?
17969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970 test $ac_status = 0; }; then
17971 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17972 else
17973 pkg_failed=yes
17974 fi
17975 else
17976 pkg_failed=untried
17977 fi
17978
17979
17980
17981 if test $pkg_failed = yes; then
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17983 $as_echo "no" >&6; }
17984
17985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17986 _pkg_short_errors_supported=yes
17987 else
17988 _pkg_short_errors_supported=no
17989 fi
17990 if test $_pkg_short_errors_supported = yes; then
17991 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17992 else
17993 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17994 fi
17995 # Put the nasty error message in config.log where it belongs
17996 echo "$XORG_PKG_ERRORS" >&5
17997
17998 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17999
18000 $XORG_PKG_ERRORS
18001
18002 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18003 installed software in a non-standard prefix.
18004
18005 Alternatively, you may set the environment variables XORG_CFLAGS
18006 and XORG_LIBS to avoid the need to call pkg-config.
18007 See the pkg-config man page for more details." "$LINENO" 5
18008
18009 elif test $pkg_failed = untried; then
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18011 $as_echo "no" >&6; }
18012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18014 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18015 is in your PATH or set the PKG_CONFIG environment variable to the full
18016 path to pkg-config.
18017
18018 Alternatively, you may set the environment variables XORG_CFLAGS
18019 and XORG_LIBS to avoid the need to call pkg-config.
18020 See the pkg-config man page for more details.
18021
18022 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18023 See \`config.log' for more details" "$LINENO" 5; }
18024
18025 else
18026 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18027 XORG_LIBS=$pkg_cv_XORG_LIBS
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18029 $as_echo "yes" >&6; }
18030
18031 fi
18032
18033 pkg_failed=no
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18035 $as_echo_n "checking for XEXT... " >&6; }
18036
18037 if test -n "$XEXT_CFLAGS"; then
18038 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
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_CFLAGS=`$PKG_CONFIG --cflags "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 if test -n "$XEXT_LIBS"; then
18054 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18055 elif test -n "$PKG_CONFIG"; then
18056 if test -n "$PKG_CONFIG" && \
18057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18058 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18059 ac_status=$?
18060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18061 test $ac_status = 0; }; then
18062 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18063 else
18064 pkg_failed=yes
18065 fi
18066 else
18067 pkg_failed=untried
18068 fi
18069
18070
18071
18072 if test $pkg_failed = yes; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18074 $as_echo "no" >&6; }
18075
18076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18077 _pkg_short_errors_supported=yes
18078 else
18079 _pkg_short_errors_supported=no
18080 fi
18081 if test $_pkg_short_errors_supported = yes; then
18082 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
18083 else
18084 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
18085 fi
18086 # Put the nasty error message in config.log where it belongs
18087 echo "$XEXT_PKG_ERRORS" >&5
18088
18089 HAVE_XEXTPROTO_71="no"
18090 elif test $pkg_failed = untried; then
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18092 $as_echo "no" >&6; }
18093 HAVE_XEXTPROTO_71="no"
18094 else
18095 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18096 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18098 $as_echo "yes" >&6; }
18099 HAVE_XEXTPROTO_71="yes";
18100 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18101
18102 fi
18103 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18104 HAVE_XEXTPROTO_71_TRUE=
18105 HAVE_XEXTPROTO_71_FALSE='#'
18106 else
18107 HAVE_XEXTPROTO_71_TRUE='#'
18108 HAVE_XEXTPROTO_71_FALSE=
18109 fi
18110
18111
18112 # Checks for libraries.
18113 SAVE_CPPFLAGS="$CPPFLAGS"
18114 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18115 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18116 "
18117 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18118 XSERVER_LIBPCIACCESS=yes
18119 else
18120 XSERVER_LIBPCIACCESS=no
18121 fi
18122
18123 ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18124 if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18125
18126 $as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18127
18128 fi
18129
18130
18131 ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18132 if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18133
18134 $as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18135
18136 fi
18137
18138
18139 CPPFLAGS="$SAVE_CPPFLAGS"
18140
18141 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18142
18143 pkg_failed=no
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18145 $as_echo_n "checking for PCIACCESS... " >&6; }
18146
18147 if test -n "$PCIACCESS_CFLAGS"; then
18148 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18149 elif test -n "$PKG_CONFIG"; then
18150 if test -n "$PKG_CONFIG" && \
18151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18152 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18153 ac_status=$?
18154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18155 test $ac_status = 0; }; then
18156 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18157 else
18158 pkg_failed=yes
18159 fi
18160 else
18161 pkg_failed=untried
18162 fi
18163 if test -n "$PCIACCESS_LIBS"; then
18164 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18165 elif test -n "$PKG_CONFIG"; then
18166 if test -n "$PKG_CONFIG" && \
18167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18168 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18169 ac_status=$?
18170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18171 test $ac_status = 0; }; then
18172 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18173 else
18174 pkg_failed=yes
18175 fi
18176 else
18177 pkg_failed=untried
18178 fi
18179
18180
18181
18182 if test $pkg_failed = yes; then
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18184 $as_echo "no" >&6; }
18185
18186 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18187 _pkg_short_errors_supported=yes
18188 else
18189 _pkg_short_errors_supported=no
18190 fi
18191 if test $_pkg_short_errors_supported = yes; then
18192 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18193 else
18194 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18195 fi
18196 # Put the nasty error message in config.log where it belongs
18197 echo "$PCIACCESS_PKG_ERRORS" >&5
18198
18199 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18200
18201 $PCIACCESS_PKG_ERRORS
18202
18203 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18204 installed software in a non-standard prefix.
18205
18206 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18207 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18208 See the pkg-config man page for more details." "$LINENO" 5
18209
18210 elif test $pkg_failed = untried; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18212 $as_echo "no" >&6; }
18213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18215 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18216 is in your PATH or set the PKG_CONFIG environment variable to the full
18217 path to pkg-config.
18218
18219 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18220 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18221 See the pkg-config man page for more details.
18222
18223 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18224 See \`config.log' for more details" "$LINENO" 5; }
18225
18226 else
18227 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18228 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18231
18232 fi
18233 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18234 fi
18235 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18236 XSERVER_LIBPCIACCESS_TRUE=
18237 XSERVER_LIBPCIACCESS_FALSE='#'
18238 else
18239 XSERVER_LIBPCIACCESS_TRUE='#'
18240 XSERVER_LIBPCIACCESS_FALSE=
18241 fi
18242
18243
18244 # Check whether --enable-xaa was given.
18245 if test "${enable_xaa+set}" = set; then :
18246 enableval=$enable_xaa; XAA="$enableval"
18247 else
18248 XAA=auto
18249 fi
18250
18251 if test "x$XAA" != xno; then
18252 save_CFLAGS=$CFLAGS
18253 save_CPPFLAGS=$CPPFLAGS
18254 CFLAGS=$XORG_CFLAGS
18255 CPPFLAGS="$XORG_CFLAGS"
18256 for ac_header in xaa.h
18257 do :
18258 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18259 if test "x$ac_cv_header_xaa_h" = xyes; then :
18260 cat >>confdefs.h <<_ACEOF
18261 #define HAVE_XAA_H 1
18262 _ACEOF
18263 XAA=yes
18264 else
18265 XAA=no
18266 fi
18267
18268 done
18269
18270 CFLAGS=$save_CFLAGS
18271 CPPFLAGS=$save_CPPFLAGS
18272 fi
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18274 $as_echo_n "checking whether to include XAA support... " >&6; }
18275 if test "x$XAA" = xyes; then
18276 XAA_TRUE=
18277 XAA_FALSE='#'
18278 else
18279 XAA_TRUE='#'
18280 XAA_FALSE=
18281 fi
18282
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18284 $as_echo "$XAA" >&6; }
18285
18286
18287
18288 DRIVER_NAME=tga
18289
18290
18291 ac_config_files="$ac_config_files Makefile src/Makefile"
18292
18293 cat >confcache <<\_ACEOF
18294 # This file is a shell script that caches the results of configure
18295 # tests run on this system so they can be shared between configure
18296 # scripts and configure runs, see configure's option --config-cache.
18297 # It is not useful on other systems. If it contains results you don't
18298 # want to keep, you may remove or edit it.
18299 #
18300 # config.status only pays attention to the cache file if you give it
18301 # the --recheck option to rerun configure.
18302 #
18303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18305 # following values.
18306
18307 _ACEOF
18308
18309 # The following way of writing the cache mishandles newlines in values,
18310 # but we know of no workaround that is simple, portable, and efficient.
18311 # So, we kill variables containing newlines.
18312 # Ultrix sh set writes to stderr and can't be redirected directly,
18313 # and sets the high bit in the cache file unless we assign to the vars.
18314 (
18315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18316 eval ac_val=\$$ac_var
18317 case $ac_val in #(
18318 *${as_nl}*)
18319 case $ac_var in #(
18320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18322 esac
18323 case $ac_var in #(
18324 _ | IFS | as_nl) ;; #(
18325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18326 *) { eval $ac_var=; unset $ac_var;} ;;
18327 esac ;;
18328 esac
18329 done
18330
18331 (set) 2>&1 |
18332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18333 *${as_nl}ac_space=\ *)
18334 # `set' does not quote correctly, so add quotes: double-quote
18335 # substitution turns \\\\ into \\, and sed turns \\ into \.
18336 sed -n \
18337 "s/'/'\\\\''/g;
18338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18339 ;; #(
18340 *)
18341 # `set' quotes correctly as required by POSIX, so do not add quotes.
18342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18343 ;;
18344 esac |
18345 sort
18346 ) |
18347 sed '
18348 /^ac_cv_env_/b end
18349 t clear
18350 :clear
18351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18352 t end
18353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18354 :end' >>confcache
18355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18356 if test -w "$cache_file"; then
18357 if test "x$cache_file" != "x/dev/null"; then
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18359 $as_echo "$as_me: updating cache $cache_file" >&6;}
18360 if test ! -f "$cache_file" || test -h "$cache_file"; then
18361 cat confcache >"$cache_file"
18362 else
18363 case $cache_file in #(
18364 */* | ?:*)
18365 mv -f confcache "$cache_file"$$ &&
18366 mv -f "$cache_file"$$ "$cache_file" ;; #(
18367 *)
18368 mv -f confcache "$cache_file" ;;
18369 esac
18370 fi
18371 fi
18372 else
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18374 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18375 fi
18376 fi
18377 rm -f confcache
18378
18379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18380 # Let make expand exec_prefix.
18381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18382
18383 DEFS=-DHAVE_CONFIG_H
18384
18385 ac_libobjs=
18386 ac_ltlibobjs=
18387 U=
18388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18389 # 1. Remove the extension, and $U if already installed.
18390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18391 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18393 # will be set to the directory where LIBOBJS objects are built.
18394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18396 done
18397 LIBOBJS=$ac_libobjs
18398
18399 LTLIBOBJS=$ac_ltlibobjs
18400
18401
18402 if test -n "$EXEEXT"; then
18403 am__EXEEXT_TRUE=
18404 am__EXEEXT_FALSE='#'
18405 else
18406 am__EXEEXT_TRUE='#'
18407 am__EXEEXT_FALSE=
18408 fi
18409
18410 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18411 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18413 fi
18414 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18415 as_fn_error $? "conditional \"AMDEP\" was never defined.
18416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18417 fi
18418 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18419 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18421 fi
18422 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18423 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18425 fi
18426 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18427 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18429 fi
18430 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18431 as_fn_error $? "conditional \"XAA\" was never defined.
18432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18433 fi
18434
18435 : "${CONFIG_STATUS=./config.status}"
18436 ac_write_fail=0
18437 ac_clean_files_save=$ac_clean_files
18438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18440 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18441 as_write_fail=0
18442 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18443 #! $SHELL
18444 # Generated by $as_me.
18445 # Run this file to recreate the current configuration.
18446 # Compiler output produced by configure, useful for debugging
18447 # configure, is in config.log if it exists.
18448
18449 debug=false
18450 ac_cs_recheck=false
18451 ac_cs_silent=false
18452
18453 SHELL=\${CONFIG_SHELL-$SHELL}
18454 export SHELL
18455 _ASEOF
18456 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18457 ## -------------------- ##
18458 ## M4sh Initialization. ##
18459 ## -------------------- ##
18460
18461 # Be more Bourne compatible
18462 DUALCASE=1; export DUALCASE # for MKS sh
18463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18464 emulate sh
18465 NULLCMD=:
18466 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18467 # is contrary to our usage. Disable this feature.
18468 alias -g '${1+"$@"}'='"$@"'
18469 setopt NO_GLOB_SUBST
18470 else
18471 case `(set -o) 2>/dev/null` in #(
18472 *posix*) :
18473 set -o posix ;; #(
18474 *) :
18475 ;;
18476 esac
18477 fi
18478
18479
18480 as_nl='
18481 '
18482 export as_nl
18483 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18484 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18486 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18487 # Prefer a ksh shell builtin over an external printf program on Solaris,
18488 # but without wasting forks for bash or zsh.
18489 if test -z "$BASH_VERSION$ZSH_VERSION" \
18490 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18491 as_echo='print -r --'
18492 as_echo_n='print -rn --'
18493 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18494 as_echo='printf %s\n'
18495 as_echo_n='printf %s'
18496 else
18497 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18498 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18499 as_echo_n='/usr/ucb/echo -n'
18500 else
18501 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18502 as_echo_n_body='eval
18503 arg=$1;
18504 case $arg in #(
18505 *"$as_nl"*)
18506 expr "X$arg" : "X\\(.*\\)$as_nl";
18507 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18508 esac;
18509 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18510 '
18511 export as_echo_n_body
18512 as_echo_n='sh -c $as_echo_n_body as_echo'
18513 fi
18514 export as_echo_body
18515 as_echo='sh -c $as_echo_body as_echo'
18516 fi
18517
18518 # The user is always right.
18519 if test "${PATH_SEPARATOR+set}" != set; then
18520 PATH_SEPARATOR=:
18521 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18522 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18523 PATH_SEPARATOR=';'
18524 }
18525 fi
18526
18527
18528 # IFS
18529 # We need space, tab and new line, in precisely that order. Quoting is
18530 # there to prevent editors from complaining about space-tab.
18531 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18532 # splitting by setting IFS to empty value.)
18533 IFS=" "" $as_nl"
18534
18535 # Find who we are. Look in the path if we contain no directory separator.
18536 as_myself=
18537 case $0 in #((
18538 *[\\/]* ) as_myself=$0 ;;
18539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18541 do
18542 IFS=$as_save_IFS
18543 test -z "$as_dir" && as_dir=.
18544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18545 done
18546 IFS=$as_save_IFS
18547
18548 ;;
18549 esac
18550 # We did not find ourselves, most probably we were run as `sh COMMAND'
18551 # in which case we are not to be found in the path.
18552 if test "x$as_myself" = x; then
18553 as_myself=$0
18554 fi
18555 if test ! -f "$as_myself"; then
18556 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18557 exit 1
18558 fi
18559
18560 # Unset variables that we do not need and which cause bugs (e.g. in
18561 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18562 # suppresses any "Segmentation fault" message there. '((' could
18563 # trigger a bug in pdksh 5.2.14.
18564 for as_var in BASH_ENV ENV MAIL MAILPATH
18565 do eval test x\${$as_var+set} = xset \
18566 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18567 done
18568 PS1='$ '
18569 PS2='> '
18570 PS4='+ '
18571
18572 # NLS nuisances.
18573 LC_ALL=C
18574 export LC_ALL
18575 LANGUAGE=C
18576 export LANGUAGE
18577
18578 # CDPATH.
18579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18580
18581
18582 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18583 # ----------------------------------------
18584 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18585 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18586 # script with STATUS, using 1 if that was 0.
18587 as_fn_error ()
18588 {
18589 as_status=$1; test $as_status -eq 0 && as_status=1
18590 if test "$4"; then
18591 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18592 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18593 fi
18594 $as_echo "$as_me: error: $2" >&2
18595 as_fn_exit $as_status
18596 } # as_fn_error
18597
18598
18599 # as_fn_set_status STATUS
18600 # -----------------------
18601 # Set $? to STATUS, without forking.
18602 as_fn_set_status ()
18603 {
18604 return $1
18605 } # as_fn_set_status
18606
18607 # as_fn_exit STATUS
18608 # -----------------
18609 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18610 as_fn_exit ()
18611 {
18612 set +e
18613 as_fn_set_status $1
18614 exit $1
18615 } # as_fn_exit
18616
18617 # as_fn_unset VAR
18618 # ---------------
18619 # Portably unset VAR.
18620 as_fn_unset ()
18621 {
18622 { eval $1=; unset $1;}
18623 }
18624 as_unset=as_fn_unset
18625 # as_fn_append VAR VALUE
18626 # ----------------------
18627 # Append the text in VALUE to the end of the definition contained in VAR. Take
18628 # advantage of any shell optimizations that allow amortized linear growth over
18629 # repeated appends, instead of the typical quadratic growth present in naive
18630 # implementations.
18631 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18632 eval 'as_fn_append ()
18633 {
18634 eval $1+=\$2
18635 }'
18636 else
18637 as_fn_append ()
18638 {
18639 eval $1=\$$1\$2
18640 }
18641 fi # as_fn_append
18642
18643 # as_fn_arith ARG...
18644 # ------------------
18645 # Perform arithmetic evaluation on the ARGs, and store the result in the
18646 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18647 # must be portable across $(()) and expr.
18648 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18649 eval 'as_fn_arith ()
18650 {
18651 as_val=$(( $* ))
18652 }'
18653 else
18654 as_fn_arith ()
18655 {
18656 as_val=`expr "$@" || test $? -eq 1`
18657 }
18658 fi # as_fn_arith
18659
18660
18661 if expr a : '\(a\)' >/dev/null 2>&1 &&
18662 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18663 as_expr=expr
18664 else
18665 as_expr=false
18666 fi
18667
18668 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18669 as_basename=basename
18670 else
18671 as_basename=false
18672 fi
18673
18674 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18675 as_dirname=dirname
18676 else
18677 as_dirname=false
18678 fi
18679
18680 as_me=`$as_basename -- "$0" ||
18681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18682 X"$0" : 'X\(//\)$' \| \
18683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18684 $as_echo X/"$0" |
18685 sed '/^.*\/\([^/][^/]*\)\/*$/{
18686 s//\1/
18687 q
18688 }
18689 /^X\/\(\/\/\)$/{
18690 s//\1/
18691 q
18692 }
18693 /^X\/\(\/\).*/{
18694 s//\1/
18695 q
18696 }
18697 s/.*/./; q'`
18698
18699 # Avoid depending upon Character Ranges.
18700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18703 as_cr_digits='0123456789'
18704 as_cr_alnum=$as_cr_Letters$as_cr_digits
18705
18706 ECHO_C= ECHO_N= ECHO_T=
18707 case `echo -n x` in #(((((
18708 -n*)
18709 case `echo 'xy\c'` in
18710 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18711 xy) ECHO_C='\c';;
18712 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18713 ECHO_T=' ';;
18714 esac;;
18715 *)
18716 ECHO_N='-n';;
18717 esac
18718
18719 rm -f conf$$ conf$$.exe conf$$.file
18720 if test -d conf$$.dir; then
18721 rm -f conf$$.dir/conf$$.file
18722 else
18723 rm -f conf$$.dir
18724 mkdir conf$$.dir 2>/dev/null
18725 fi
18726 if (echo >conf$$.file) 2>/dev/null; then
18727 if ln -s conf$$.file conf$$ 2>/dev/null; then
18728 as_ln_s='ln -s'
18729 # ... but there are two gotchas:
18730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18732 # In both cases, we have to default to `cp -p'.
18733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18734 as_ln_s='cp -p'
18735 elif ln conf$$.file conf$$ 2>/dev/null; then
18736 as_ln_s=ln
18737 else
18738 as_ln_s='cp -p'
18739 fi
18740 else
18741 as_ln_s='cp -p'
18742 fi
18743 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18744 rmdir conf$$.dir 2>/dev/null
18745
18746
18747 # as_fn_mkdir_p
18748 # -------------
18749 # Create "$as_dir" as a directory, including parents if necessary.
18750 as_fn_mkdir_p ()
18751 {
18752
18753 case $as_dir in #(
18754 -*) as_dir=./$as_dir;;
18755 esac
18756 test -d "$as_dir" || eval $as_mkdir_p || {
18757 as_dirs=
18758 while :; do
18759 case $as_dir in #(
18760 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18761 *) as_qdir=$as_dir;;
18762 esac
18763 as_dirs="'$as_qdir' $as_dirs"
18764 as_dir=`$as_dirname -- "$as_dir" ||
18765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18766 X"$as_dir" : 'X\(//\)[^/]' \| \
18767 X"$as_dir" : 'X\(//\)$' \| \
18768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18769 $as_echo X"$as_dir" |
18770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18771 s//\1/
18772 q
18773 }
18774 /^X\(\/\/\)[^/].*/{
18775 s//\1/
18776 q
18777 }
18778 /^X\(\/\/\)$/{
18779 s//\1/
18780 q
18781 }
18782 /^X\(\/\).*/{
18783 s//\1/
18784 q
18785 }
18786 s/.*/./; q'`
18787 test -d "$as_dir" && break
18788 done
18789 test -z "$as_dirs" || eval "mkdir $as_dirs"
18790 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18791
18792
18793 } # as_fn_mkdir_p
18794 if mkdir -p . 2>/dev/null; then
18795 as_mkdir_p='mkdir -p "$as_dir"'
18796 else
18797 test -d ./-p && rmdir ./-p
18798 as_mkdir_p=false
18799 fi
18800
18801 if test -x / >/dev/null 2>&1; then
18802 as_test_x='test -x'
18803 else
18804 if ls -dL / >/dev/null 2>&1; then
18805 as_ls_L_option=L
18806 else
18807 as_ls_L_option=
18808 fi
18809 as_test_x='
18810 eval sh -c '\''
18811 if test -d "$1"; then
18812 test -d "$1/.";
18813 else
18814 case $1 in #(
18815 -*)set "./$1";;
18816 esac;
18817 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18818 ???[sx]*):;;*)false;;esac;fi
18819 '\'' sh
18820 '
18821 fi
18822 as_executable_p=$as_test_x
18823
18824 # Sed expression to map a string onto a valid CPP name.
18825 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18826
18827 # Sed expression to map a string onto a valid variable name.
18828 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18829
18830
18831 exec 6>&1
18832 ## ----------------------------------- ##
18833 ## Main body of $CONFIG_STATUS script. ##
18834 ## ----------------------------------- ##
18835 _ASEOF
18836 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18837
18838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18839 # Save the log message, to keep $0 and so on meaningful, and to
18840 # report actual input values of CONFIG_FILES etc. instead of their
18841 # values after options handling.
18842 ac_log="
18843 This file was extended by xf86-video-tga $as_me 1.2.2, which was
18844 generated by GNU Autoconf 2.68. Invocation command line was
18845
18846 CONFIG_FILES = $CONFIG_FILES
18847 CONFIG_HEADERS = $CONFIG_HEADERS
18848 CONFIG_LINKS = $CONFIG_LINKS
18849 CONFIG_COMMANDS = $CONFIG_COMMANDS
18850 $ $0 $@
18851
18852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18853 "
18854
18855 _ACEOF
18856
18857 case $ac_config_files in *"
18858 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18859 esac
18860
18861 case $ac_config_headers in *"
18862 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18863 esac
18864
18865
18866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18867 # Files that config.status was made for.
18868 config_files="$ac_config_files"
18869 config_headers="$ac_config_headers"
18870 config_commands="$ac_config_commands"
18871
18872 _ACEOF
18873
18874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18875 ac_cs_usage="\
18876 \`$as_me' instantiates files and other configuration actions
18877 from templates according to the current configuration. Unless the files
18878 and actions are specified as TAGs, all are instantiated by default.
18879
18880 Usage: $0 [OPTION]... [TAG]...
18881
18882 -h, --help print this help, then exit
18883 -V, --version print version number and configuration settings, then exit
18884 --config print configuration, then exit
18885 -q, --quiet, --silent
18886 do not print progress messages
18887 -d, --debug don't remove temporary files
18888 --recheck update $as_me by reconfiguring in the same conditions
18889 --file=FILE[:TEMPLATE]
18890 instantiate the configuration file FILE
18891 --header=FILE[:TEMPLATE]
18892 instantiate the configuration header FILE
18893
18894 Configuration files:
18895 $config_files
18896
18897 Configuration headers:
18898 $config_headers
18899
18900 Configuration commands:
18901 $config_commands
18902
18903 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18904
18905 _ACEOF
18906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18907 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18908 ac_cs_version="\\
18909 xf86-video-tga config.status 1.2.2
18910 configured by $0, generated by GNU Autoconf 2.68,
18911 with options \\"\$ac_cs_config\\"
18912
18913 Copyright (C) 2010 Free Software Foundation, Inc.
18914 This config.status script is free software; the Free Software Foundation
18915 gives unlimited permission to copy, distribute and modify it."
18916
18917 ac_pwd='$ac_pwd'
18918 srcdir='$srcdir'
18919 INSTALL='$INSTALL'
18920 MKDIR_P='$MKDIR_P'
18921 AWK='$AWK'
18922 test -n "\$AWK" || AWK=awk
18923 _ACEOF
18924
18925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18926 # The default lists apply if the user does not specify any file.
18927 ac_need_defaults=:
18928 while test $# != 0
18929 do
18930 case $1 in
18931 --*=?*)
18932 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18933 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18934 ac_shift=:
18935 ;;
18936 --*=)
18937 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18938 ac_optarg=
18939 ac_shift=:
18940 ;;
18941 *)
18942 ac_option=$1
18943 ac_optarg=$2
18944 ac_shift=shift
18945 ;;
18946 esac
18947
18948 case $ac_option in
18949 # Handling of the options.
18950 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18951 ac_cs_recheck=: ;;
18952 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18953 $as_echo "$ac_cs_version"; exit ;;
18954 --config | --confi | --conf | --con | --co | --c )
18955 $as_echo "$ac_cs_config"; exit ;;
18956 --debug | --debu | --deb | --de | --d | -d )
18957 debug=: ;;
18958 --file | --fil | --fi | --f )
18959 $ac_shift
18960 case $ac_optarg in
18961 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18962 '') as_fn_error $? "missing file argument" ;;
18963 esac
18964 as_fn_append CONFIG_FILES " '$ac_optarg'"
18965 ac_need_defaults=false;;
18966 --header | --heade | --head | --hea )
18967 $ac_shift
18968 case $ac_optarg in
18969 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18970 esac
18971 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18972 ac_need_defaults=false;;
18973 --he | --h)
18974 # Conflict between --help and --header
18975 as_fn_error $? "ambiguous option: \`$1'
18976 Try \`$0 --help' for more information.";;
18977 --help | --hel | -h )
18978 $as_echo "$ac_cs_usage"; exit ;;
18979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18981 ac_cs_silent=: ;;
18982
18983 # This is an error.
18984 -*) as_fn_error $? "unrecognized option: \`$1'
18985 Try \`$0 --help' for more information." ;;
18986
18987 *) as_fn_append ac_config_targets " $1"
18988 ac_need_defaults=false ;;
18989
18990 esac
18991 shift
18992 done
18993
18994 ac_configure_extra_args=
18995
18996 if $ac_cs_silent; then
18997 exec 6>/dev/null
18998 ac_configure_extra_args="$ac_configure_extra_args --silent"
18999 fi
19000
19001 _ACEOF
19002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19003 if \$ac_cs_recheck; then
19004 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19005 shift
19006 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19007 CONFIG_SHELL='$SHELL'
19008 export CONFIG_SHELL
19009 exec "\$@"
19010 fi
19011
19012 _ACEOF
19013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014 exec 5>>config.log
19015 {
19016 echo
19017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19018 ## Running $as_me. ##
19019 _ASBOX
19020 $as_echo "$ac_log"
19021 } >&5
19022
19023 _ACEOF
19024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19025 #
19026 # INIT-COMMANDS
19027 #
19028 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19029
19030
19031 # The HP-UX ksh and POSIX shell print the target directory to stdout
19032 # if CDPATH is set.
19033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19034
19035 sed_quote_subst='$sed_quote_subst'
19036 double_quote_subst='$double_quote_subst'
19037 delay_variable_subst='$delay_variable_subst'
19038 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19039 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19040 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19041 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19042 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19043 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19044 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19045 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19046 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19047 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19048 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19049 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19050 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19051 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19052 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19053 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19054 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19055 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19056 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19057 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19058 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19059 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19060 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19061 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19062 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19063 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19064 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19065 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19066 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19067 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19068 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19069 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19070 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19071 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19072 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19073 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19074 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19075 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19076 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19077 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19078 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19079 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19080 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19081 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19082 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19083 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19084 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19085 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19086 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19087 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19088 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19089 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19090 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19091 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19092 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19093 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19094 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"`'
19095 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19096 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19097 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19098 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19099 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19100 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19101 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19102 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19103 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19104 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19105 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19106 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19107 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19108 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19109 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19110 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19111 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19112 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19113 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19114 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19115 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19116 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19117 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19118 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19119 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19120 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19121 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19122 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19123 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19124 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19125 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19126 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19127 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19128 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19129 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19130 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19131 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19132 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19133 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19134 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19135 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19136 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19137 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19138 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19139 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19140 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19141 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19142 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19143 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19144 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19145 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19146 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19147 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19148 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19149 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19150 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19151 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19152 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19153 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19154 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19155 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19156 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19157 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19158 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19159 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19160 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19161 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19162 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19163 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19164 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19165 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19166 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19167 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19168
19169 LTCC='$LTCC'
19170 LTCFLAGS='$LTCFLAGS'
19171 compiler='$compiler_DEFAULT'
19172
19173 # A function that is used when there is no print builtin or printf.
19174 func_fallback_echo ()
19175 {
19176 eval 'cat <<_LTECHO_EOF
19177 \$1
19178 _LTECHO_EOF'
19179 }
19180
19181 # Quote evaled strings.
19182 for var in SHELL \
19183 ECHO \
19184 PATH_SEPARATOR \
19185 SED \
19186 GREP \
19187 EGREP \
19188 FGREP \
19189 LD \
19190 NM \
19191 LN_S \
19192 lt_SP2NL \
19193 lt_NL2SP \
19194 reload_flag \
19195 OBJDUMP \
19196 deplibs_check_method \
19197 file_magic_cmd \
19198 file_magic_glob \
19199 want_nocaseglob \
19200 DLLTOOL \
19201 sharedlib_from_linklib_cmd \
19202 AR \
19203 AR_FLAGS \
19204 archiver_list_spec \
19205 STRIP \
19206 RANLIB \
19207 CC \
19208 CFLAGS \
19209 compiler \
19210 lt_cv_sys_global_symbol_pipe \
19211 lt_cv_sys_global_symbol_to_cdecl \
19212 lt_cv_sys_global_symbol_to_c_name_address \
19213 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19214 nm_file_list_spec \
19215 lt_prog_compiler_no_builtin_flag \
19216 lt_prog_compiler_pic \
19217 lt_prog_compiler_wl \
19218 lt_prog_compiler_static \
19219 lt_cv_prog_compiler_c_o \
19220 need_locks \
19221 MANIFEST_TOOL \
19222 DSYMUTIL \
19223 NMEDIT \
19224 LIPO \
19225 OTOOL \
19226 OTOOL64 \
19227 shrext_cmds \
19228 export_dynamic_flag_spec \
19229 whole_archive_flag_spec \
19230 compiler_needs_object \
19231 with_gnu_ld \
19232 allow_undefined_flag \
19233 no_undefined_flag \
19234 hardcode_libdir_flag_spec \
19235 hardcode_libdir_separator \
19236 exclude_expsyms \
19237 include_expsyms \
19238 file_list_spec \
19239 variables_saved_for_relink \
19240 libname_spec \
19241 library_names_spec \
19242 soname_spec \
19243 install_override_mode \
19244 finish_eval \
19245 old_striplib \
19246 striplib; do
19247 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19248 *[\\\\\\\`\\"\\\$]*)
19249 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19250 ;;
19251 *)
19252 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19253 ;;
19254 esac
19255 done
19256
19257 # Double-quote double-evaled strings.
19258 for var in reload_cmds \
19259 old_postinstall_cmds \
19260 old_postuninstall_cmds \
19261 old_archive_cmds \
19262 extract_expsyms_cmds \
19263 old_archive_from_new_cmds \
19264 old_archive_from_expsyms_cmds \
19265 archive_cmds \
19266 archive_expsym_cmds \
19267 module_cmds \
19268 module_expsym_cmds \
19269 export_symbols_cmds \
19270 prelink_cmds \
19271 postlink_cmds \
19272 postinstall_cmds \
19273 postuninstall_cmds \
19274 finish_cmds \
19275 sys_lib_search_path_spec \
19276 sys_lib_dlsearch_path_spec; do
19277 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19278 *[\\\\\\\`\\"\\\$]*)
19279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19280 ;;
19281 *)
19282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19283 ;;
19284 esac
19285 done
19286
19287 ac_aux_dir='$ac_aux_dir'
19288 xsi_shell='$xsi_shell'
19289 lt_shell_append='$lt_shell_append'
19290
19291 # See if we are running on zsh, and set the options which allow our
19292 # commands through without removal of \ escapes INIT.
19293 if test -n "\${ZSH_VERSION+set}" ; then
19294 setopt NO_GLOB_SUBST
19295 fi
19296
19297
19298 PACKAGE='$PACKAGE'
19299 VERSION='$VERSION'
19300 TIMESTAMP='$TIMESTAMP'
19301 RM='$RM'
19302 ofile='$ofile'
19303
19304
19305
19306
19307 _ACEOF
19308
19309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19310
19311 # Handling of arguments.
19312 for ac_config_target in $ac_config_targets
19313 do
19314 case $ac_config_target in
19315 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19316 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19317 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19318 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19319 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19320
19321 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19322 esac
19323 done
19324
19325
19326 # If the user did not use the arguments to specify the items to instantiate,
19327 # then the envvar interface is used. Set only those that are not.
19328 # We use the long form for the default assignment because of an extremely
19329 # bizarre bug on SunOS 4.1.3.
19330 if $ac_need_defaults; then
19331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19334 fi
19335
19336 # Have a temporary directory for convenience. Make it in the build tree
19337 # simply because there is no reason against having it here, and in addition,
19338 # creating and moving files from /tmp can sometimes cause problems.
19339 # Hook for its removal unless debugging.
19340 # Note that there is a small window in which the directory will not be cleaned:
19341 # after its creation but before its name has been assigned to `$tmp'.
19342 $debug ||
19343 {
19344 tmp= ac_tmp=
19345 trap 'exit_status=$?
19346 : "${ac_tmp:=$tmp}"
19347 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19348 ' 0
19349 trap 'as_fn_exit 1' 1 2 13 15
19350 }
19351 # Create a (secure) tmp directory for tmp files.
19352
19353 {
19354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19355 test -d "$tmp"
19356 } ||
19357 {
19358 tmp=./conf$$-$RANDOM
19359 (umask 077 && mkdir "$tmp")
19360 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19361 ac_tmp=$tmp
19362
19363 # Set up the scripts for CONFIG_FILES section.
19364 # No need to generate them if there are no CONFIG_FILES.
19365 # This happens for instance with `./config.status config.h'.
19366 if test -n "$CONFIG_FILES"; then
19367
19368
19369 ac_cr=`echo X | tr X '\015'`
19370 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19371 # But we know of no other shell where ac_cr would be empty at this
19372 # point, so we can use a bashism as a fallback.
19373 if test "x$ac_cr" = x; then
19374 eval ac_cr=\$\'\\r\'
19375 fi
19376 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19377 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19378 ac_cs_awk_cr='\\r'
19379 else
19380 ac_cs_awk_cr=$ac_cr
19381 fi
19382
19383 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19384 _ACEOF
19385
19386
19387 {
19388 echo "cat >conf$$subs.awk <<_ACEOF" &&
19389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19390 echo "_ACEOF"
19391 } >conf$$subs.sh ||
19392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19394 ac_delim='%!_!# '
19395 for ac_last_try in false false false false false :; do
19396 . ./conf$$subs.sh ||
19397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19398
19399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19400 if test $ac_delim_n = $ac_delim_num; then
19401 break
19402 elif $ac_last_try; then
19403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19404 else
19405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19406 fi
19407 done
19408 rm -f conf$$subs.sh
19409
19410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19411 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19412 _ACEOF
19413 sed -n '
19414 h
19415 s/^/S["/; s/!.*/"]=/
19416 p
19417 g
19418 s/^[^!]*!//
19419 :repl
19420 t repl
19421 s/'"$ac_delim"'$//
19422 t delim
19423 :nl
19424 h
19425 s/\(.\{148\}\)..*/\1/
19426 t more1
19427 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19428 p
19429 n
19430 b repl
19431 :more1
19432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19433 p
19434 g
19435 s/.\{148\}//
19436 t nl
19437 :delim
19438 h
19439 s/\(.\{148\}\)..*/\1/
19440 t more2
19441 s/["\\]/\\&/g; s/^/"/; s/$/"/
19442 p
19443 b
19444 :more2
19445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19446 p
19447 g
19448 s/.\{148\}//
19449 t delim
19450 ' <conf$$subs.awk | sed '
19451 /^[^""]/{
19452 N
19453 s/\n//
19454 }
19455 ' >>$CONFIG_STATUS || ac_write_fail=1
19456 rm -f conf$$subs.awk
19457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19458 _ACAWK
19459 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19460 for (key in S) S_is_set[key] = 1
19461 FS = ""
19462
19463 }
19464 {
19465 line = $ 0
19466 nfields = split(line, field, "@")
19467 substed = 0
19468 len = length(field[1])
19469 for (i = 2; i < nfields; i++) {
19470 key = field[i]
19471 keylen = length(key)
19472 if (S_is_set[key]) {
19473 value = S[key]
19474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19475 len += length(value) + length(field[++i])
19476 substed = 1
19477 } else
19478 len += 1 + keylen
19479 }
19480
19481 print line
19482 }
19483
19484 _ACAWK
19485 _ACEOF
19486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19487 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19488 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19489 else
19490 cat
19491 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19492 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19493 _ACEOF
19494
19495 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19496 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19497 # trailing colons and then remove the whole line if VPATH becomes empty
19498 # (actually we leave an empty line to preserve line numbers).
19499 if test "x$srcdir" = x.; then
19500 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19501 h
19502 s///
19503 s/^/:/
19504 s/[ ]*$/:/
19505 s/:\$(srcdir):/:/g
19506 s/:\${srcdir}:/:/g
19507 s/:@srcdir@:/:/g
19508 s/^:*//
19509 s/:*$//
19510 x
19511 s/\(=[ ]*\).*/\1/
19512 G
19513 s/\n//
19514 s/^[^=]*=[ ]*$//
19515 }'
19516 fi
19517
19518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19519 fi # test -n "$CONFIG_FILES"
19520
19521 # Set up the scripts for CONFIG_HEADERS section.
19522 # No need to generate them if there are no CONFIG_HEADERS.
19523 # This happens for instance with `./config.status Makefile'.
19524 if test -n "$CONFIG_HEADERS"; then
19525 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19526 BEGIN {
19527 _ACEOF
19528
19529 # Transform confdefs.h into an awk script `defines.awk', embedded as
19530 # here-document in config.status, that substitutes the proper values into
19531 # config.h.in to produce config.h.
19532
19533 # Create a delimiter string that does not exist in confdefs.h, to ease
19534 # handling of long lines.
19535 ac_delim='%!_!# '
19536 for ac_last_try in false false :; do
19537 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19538 if test -z "$ac_tt"; then
19539 break
19540 elif $ac_last_try; then
19541 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19542 else
19543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19544 fi
19545 done
19546
19547 # For the awk script, D is an array of macro values keyed by name,
19548 # likewise P contains macro parameters if any. Preserve backslash
19549 # newline sequences.
19550
19551 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19552 sed -n '
19553 s/.\{148\}/&'"$ac_delim"'/g
19554 t rset
19555 :rset
19556 s/^[ ]*#[ ]*define[ ][ ]*/ /
19557 t def
19558 d
19559 :def
19560 s/\\$//
19561 t bsnl
19562 s/["\\]/\\&/g
19563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19564 D["\1"]=" \3"/p
19565 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19566 d
19567 :bsnl
19568 s/["\\]/\\&/g
19569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19570 D["\1"]=" \3\\\\\\n"\\/p
19571 t cont
19572 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19573 t cont
19574 d
19575 :cont
19576 n
19577 s/.\{148\}/&'"$ac_delim"'/g
19578 t clear
19579 :clear
19580 s/\\$//
19581 t bsnlc
19582 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19583 d
19584 :bsnlc
19585 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19586 b cont
19587 ' <confdefs.h | sed '
19588 s/'"$ac_delim"'/"\\\
19589 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19590
19591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19592 for (key in D) D_is_set[key] = 1
19593 FS = ""
19594 }
19595 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19596 line = \$ 0
19597 split(line, arg, " ")
19598 if (arg[1] == "#") {
19599 defundef = arg[2]
19600 mac1 = arg[3]
19601 } else {
19602 defundef = substr(arg[1], 2)
19603 mac1 = arg[2]
19604 }
19605 split(mac1, mac2, "(") #)
19606 macro = mac2[1]
19607 prefix = substr(line, 1, index(line, defundef) - 1)
19608 if (D_is_set[macro]) {
19609 # Preserve the white space surrounding the "#".
19610 print prefix "define", macro P[macro] D[macro]
19611 next
19612 } else {
19613 # Replace #undef with comments. This is necessary, for example,
19614 # in the case of _POSIX_SOURCE, which is predefined and required
19615 # on some systems where configure will not decide to define it.
19616 if (defundef == "undef") {
19617 print "/*", prefix defundef, macro, "*/"
19618 next
19619 }
19620 }
19621 }
19622 { print }
19623 _ACAWK
19624 _ACEOF
19625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19626 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19627 fi # test -n "$CONFIG_HEADERS"
19628
19629
19630 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19631 shift
19632 for ac_tag
19633 do
19634 case $ac_tag in
19635 :[FHLC]) ac_mode=$ac_tag; continue;;
19636 esac
19637 case $ac_mode$ac_tag in
19638 :[FHL]*:*);;
19639 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19640 :[FH]-) ac_tag=-:-;;
19641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19642 esac
19643 ac_save_IFS=$IFS
19644 IFS=:
19645 set x $ac_tag
19646 IFS=$ac_save_IFS
19647 shift
19648 ac_file=$1
19649 shift
19650
19651 case $ac_mode in
19652 :L) ac_source=$1;;
19653 :[FH])
19654 ac_file_inputs=
19655 for ac_f
19656 do
19657 case $ac_f in
19658 -) ac_f="$ac_tmp/stdin";;
19659 *) # Look for the file first in the build tree, then in the source tree
19660 # (if the path is not absolute). The absolute path cannot be DOS-style,
19661 # because $ac_f cannot contain `:'.
19662 test -f "$ac_f" ||
19663 case $ac_f in
19664 [\\/$]*) false;;
19665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19666 esac ||
19667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19668 esac
19669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19670 as_fn_append ac_file_inputs " '$ac_f'"
19671 done
19672
19673 # Let's still pretend it is `configure' which instantiates (i.e., don't
19674 # use $as_me), people would be surprised to read:
19675 # /* config.h. Generated by config.status. */
19676 configure_input='Generated from '`
19677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19678 `' by configure.'
19679 if test x"$ac_file" != x-; then
19680 configure_input="$ac_file. $configure_input"
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19682 $as_echo "$as_me: creating $ac_file" >&6;}
19683 fi
19684 # Neutralize special characters interpreted by sed in replacement strings.
19685 case $configure_input in #(
19686 *\&* | *\|* | *\\* )
19687 ac_sed_conf_input=`$as_echo "$configure_input" |
19688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19689 *) ac_sed_conf_input=$configure_input;;
19690 esac
19691
19692 case $ac_tag in
19693 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19695 esac
19696 ;;
19697 esac
19698
19699 ac_dir=`$as_dirname -- "$ac_file" ||
19700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19701 X"$ac_file" : 'X\(//\)[^/]' \| \
19702 X"$ac_file" : 'X\(//\)$' \| \
19703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19704 $as_echo X"$ac_file" |
19705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19706 s//\1/
19707 q
19708 }
19709 /^X\(\/\/\)[^/].*/{
19710 s//\1/
19711 q
19712 }
19713 /^X\(\/\/\)$/{
19714 s//\1/
19715 q
19716 }
19717 /^X\(\/\).*/{
19718 s//\1/
19719 q
19720 }
19721 s/.*/./; q'`
19722 as_dir="$ac_dir"; as_fn_mkdir_p
19723 ac_builddir=.
19724
19725 case "$ac_dir" in
19726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19727 *)
19728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19729 # A ".." for each directory in $ac_dir_suffix.
19730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19731 case $ac_top_builddir_sub in
19732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19734 esac ;;
19735 esac
19736 ac_abs_top_builddir=$ac_pwd
19737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19738 # for backward compatibility:
19739 ac_top_builddir=$ac_top_build_prefix
19740
19741 case $srcdir in
19742 .) # We are building in place.
19743 ac_srcdir=.
19744 ac_top_srcdir=$ac_top_builddir_sub
19745 ac_abs_top_srcdir=$ac_pwd ;;
19746 [\\/]* | ?:[\\/]* ) # Absolute name.
19747 ac_srcdir=$srcdir$ac_dir_suffix;
19748 ac_top_srcdir=$srcdir
19749 ac_abs_top_srcdir=$srcdir ;;
19750 *) # Relative name.
19751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19752 ac_top_srcdir=$ac_top_build_prefix$srcdir
19753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19754 esac
19755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19756
19757
19758 case $ac_mode in
19759 :F)
19760 #
19761 # CONFIG_FILE
19762 #
19763
19764 case $INSTALL in
19765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19767 esac
19768 ac_MKDIR_P=$MKDIR_P
19769 case $MKDIR_P in
19770 [\\/$]* | ?:[\\/]* ) ;;
19771 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19772 esac
19773 _ACEOF
19774
19775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19776 # If the template does not know about datarootdir, expand it.
19777 # FIXME: This hack should be removed a few years after 2.60.
19778 ac_datarootdir_hack=; ac_datarootdir_seen=
19779 ac_sed_dataroot='
19780 /datarootdir/ {
19781 p
19782 q
19783 }
19784 /@datadir@/p
19785 /@docdir@/p
19786 /@infodir@/p
19787 /@localedir@/p
19788 /@mandir@/p'
19789 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19790 *datarootdir*) ac_datarootdir_seen=yes;;
19791 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19793 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19794 _ACEOF
19795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19796 ac_datarootdir_hack='
19797 s&@datadir@&$datadir&g
19798 s&@docdir@&$docdir&g
19799 s&@infodir@&$infodir&g
19800 s&@localedir@&$localedir&g
19801 s&@mandir@&$mandir&g
19802 s&\\\${datarootdir}&$datarootdir&g' ;;
19803 esac
19804 _ACEOF
19805
19806 # Neutralize VPATH when `$srcdir' = `.'.
19807 # Shell code in configure.ac might set extrasub.
19808 # FIXME: do we really want to maintain this feature?
19809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19810 ac_sed_extra="$ac_vpsub
19811 $extrasub
19812 _ACEOF
19813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19814 :t
19815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19816 s|@configure_input@|$ac_sed_conf_input|;t t
19817 s&@top_builddir@&$ac_top_builddir_sub&;t t
19818 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19819 s&@srcdir@&$ac_srcdir&;t t
19820 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19821 s&@top_srcdir@&$ac_top_srcdir&;t t
19822 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19823 s&@builddir@&$ac_builddir&;t t
19824 s&@abs_builddir@&$ac_abs_builddir&;t t
19825 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19826 s&@INSTALL@&$ac_INSTALL&;t t
19827 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19828 $ac_datarootdir_hack
19829 "
19830 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19831 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19832
19833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19834 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19836 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19838 which seems to be undefined. Please make sure it is defined" >&5
19839 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19840 which seems to be undefined. Please make sure it is defined" >&2;}
19841
19842 rm -f "$ac_tmp/stdin"
19843 case $ac_file in
19844 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19845 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19846 esac \
19847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19848 ;;
19849 :H)
19850 #
19851 # CONFIG_HEADER
19852 #
19853 if test x"$ac_file" != x-; then
19854 {
19855 $as_echo "/* $configure_input */" \
19856 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19857 } >"$ac_tmp/config.h" \
19858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19859 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19861 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19862 else
19863 rm -f "$ac_file"
19864 mv "$ac_tmp/config.h" "$ac_file" \
19865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19866 fi
19867 else
19868 $as_echo "/* $configure_input */" \
19869 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19870 || as_fn_error $? "could not create -" "$LINENO" 5
19871 fi
19872 # Compute "$ac_file"'s index in $config_headers.
19873 _am_arg="$ac_file"
19874 _am_stamp_count=1
19875 for _am_header in $config_headers :; do
19876 case $_am_header in
19877 $_am_arg | $_am_arg:* )
19878 break ;;
19879 * )
19880 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19881 esac
19882 done
19883 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19884 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19885 X"$_am_arg" : 'X\(//\)[^/]' \| \
19886 X"$_am_arg" : 'X\(//\)$' \| \
19887 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19888 $as_echo X"$_am_arg" |
19889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19890 s//\1/
19891 q
19892 }
19893 /^X\(\/\/\)[^/].*/{
19894 s//\1/
19895 q
19896 }
19897 /^X\(\/\/\)$/{
19898 s//\1/
19899 q
19900 }
19901 /^X\(\/\).*/{
19902 s//\1/
19903 q
19904 }
19905 s/.*/./; q'`/stamp-h$_am_stamp_count
19906 ;;
19907
19908 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19909 $as_echo "$as_me: executing $ac_file commands" >&6;}
19910 ;;
19911 esac
19912
19913
19914 case $ac_file$ac_mode in
19915 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19916 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19917 # are listed without --file. Let's play safe and only enable the eval
19918 # if we detect the quoting.
19919 case $CONFIG_FILES in
19920 *\'*) eval set x "$CONFIG_FILES" ;;
19921 *) set x $CONFIG_FILES ;;
19922 esac
19923 shift
19924 for mf
19925 do
19926 # Strip MF so we end up with the name of the file.
19927 mf=`echo "$mf" | sed -e 's/:.*$//'`
19928 # Check whether this is an Automake generated Makefile or not.
19929 # We used to match only the files named `Makefile.in', but
19930 # some people rename them; so instead we look at the file content.
19931 # Grep'ing the first line is not enough: some people post-process
19932 # each Makefile.in and add a new line on top of each file to say so.
19933 # Grep'ing the whole file is not good either: AIX grep has a line
19934 # limit of 2048, but all sed's we know have understand at least 4000.
19935 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19936 dirpart=`$as_dirname -- "$mf" ||
19937 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19938 X"$mf" : 'X\(//\)[^/]' \| \
19939 X"$mf" : 'X\(//\)$' \| \
19940 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19941 $as_echo X"$mf" |
19942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19943 s//\1/
19944 q
19945 }
19946 /^X\(\/\/\)[^/].*/{
19947 s//\1/
19948 q
19949 }
19950 /^X\(\/\/\)$/{
19951 s//\1/
19952 q
19953 }
19954 /^X\(\/\).*/{
19955 s//\1/
19956 q
19957 }
19958 s/.*/./; q'`
19959 else
19960 continue
19961 fi
19962 # Extract the definition of DEPDIR, am__include, and am__quote
19963 # from the Makefile without running `make'.
19964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19965 test -z "$DEPDIR" && continue
19966 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19967 test -z "am__include" && continue
19968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19969 # When using ansi2knr, U may be empty or an underscore; expand it
19970 U=`sed -n 's/^U = //p' < "$mf"`
19971 # Find all dependency output files, they are included files with
19972 # $(DEPDIR) in their names. We invoke sed twice because it is the
19973 # simplest approach to changing $(DEPDIR) to its actual value in the
19974 # expansion.
19975 for file in `sed -n "
19976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19978 # Make sure the directory exists.
19979 test -f "$dirpart/$file" && continue
19980 fdir=`$as_dirname -- "$file" ||
19981 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19982 X"$file" : 'X\(//\)[^/]' \| \
19983 X"$file" : 'X\(//\)$' \| \
19984 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19985 $as_echo X"$file" |
19986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19987 s//\1/
19988 q
19989 }
19990 /^X\(\/\/\)[^/].*/{
19991 s//\1/
19992 q
19993 }
19994 /^X\(\/\/\)$/{
19995 s//\1/
19996 q
19997 }
19998 /^X\(\/\).*/{
19999 s//\1/
20000 q
20001 }
20002 s/.*/./; q'`
20003 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20004 # echo "creating $dirpart/$file"
20005 echo '# dummy' > "$dirpart/$file"
20006 done
20007 done
20008 }
20009 ;;
20010 "libtool":C)
20011
20012 # See if we are running on zsh, and set the options which allow our
20013 # commands through without removal of \ escapes.
20014 if test -n "${ZSH_VERSION+set}" ; then
20015 setopt NO_GLOB_SUBST
20016 fi
20017
20018 cfgfile="${ofile}T"
20019 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20020 $RM "$cfgfile"
20021
20022 cat <<_LT_EOF >> "$cfgfile"
20023 #! $SHELL
20024
20025 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20026 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20028 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20029 #
20030 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20031 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20032 # Foundation, Inc.
20033 # Written by Gordon Matzigkeit, 1996
20034 #
20035 # This file is part of GNU Libtool.
20036 #
20037 # GNU Libtool is free software; you can redistribute it and/or
20038 # modify it under the terms of the GNU General Public License as
20039 # published by the Free Software Foundation; either version 2 of
20040 # the License, or (at your option) any later version.
20041 #
20042 # As a special exception to the GNU General Public License,
20043 # if you distribute this file as part of a program or library that
20044 # is built using GNU Libtool, you may include this file under the
20045 # same distribution terms that you use for the rest of that program.
20046 #
20047 # GNU Libtool is distributed in the hope that it will be useful,
20048 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20049 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20050 # GNU General Public License for more details.
20051 #
20052 # You should have received a copy of the GNU General Public License
20053 # along with GNU Libtool; see the file COPYING. If not, a copy
20054 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20055 # obtained by writing to the Free Software Foundation, Inc.,
20056 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20057
20058
20059 # The names of the tagged configurations supported by this script.
20060 available_tags=""
20061
20062 # ### BEGIN LIBTOOL CONFIG
20063
20064 # Whether or not to build static libraries.
20065 build_old_libs=$enable_static
20066
20067 # Which release of libtool.m4 was used?
20068 macro_version=$macro_version
20069 macro_revision=$macro_revision
20070
20071 # Whether or not to build shared libraries.
20072 build_libtool_libs=$enable_shared
20073
20074 # What type of objects to build.
20075 pic_mode=$pic_mode
20076
20077 # Whether or not to optimize for fast installation.
20078 fast_install=$enable_fast_install
20079
20080 # Shell to use when invoking shell scripts.
20081 SHELL=$lt_SHELL
20082
20083 # An echo program that protects backslashes.
20084 ECHO=$lt_ECHO
20085
20086 # The PATH separator for the build system.
20087 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20088
20089 # The host system.
20090 host_alias=$host_alias
20091 host=$host
20092 host_os=$host_os
20093
20094 # The build system.
20095 build_alias=$build_alias
20096 build=$build
20097 build_os=$build_os
20098
20099 # A sed program that does not truncate output.
20100 SED=$lt_SED
20101
20102 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20103 Xsed="\$SED -e 1s/^X//"
20104
20105 # A grep program that handles long lines.
20106 GREP=$lt_GREP
20107
20108 # An ERE matcher.
20109 EGREP=$lt_EGREP
20110
20111 # A literal string matcher.
20112 FGREP=$lt_FGREP
20113
20114 # A BSD- or MS-compatible name lister.
20115 NM=$lt_NM
20116
20117 # Whether we need soft or hard links.
20118 LN_S=$lt_LN_S
20119
20120 # What is the maximum length of a command?
20121 max_cmd_len=$max_cmd_len
20122
20123 # Object file suffix (normally "o").
20124 objext=$ac_objext
20125
20126 # Executable file suffix (normally "").
20127 exeext=$exeext
20128
20129 # whether the shell understands "unset".
20130 lt_unset=$lt_unset
20131
20132 # turn spaces into newlines.
20133 SP2NL=$lt_lt_SP2NL
20134
20135 # turn newlines into spaces.
20136 NL2SP=$lt_lt_NL2SP
20137
20138 # convert \$build file names to \$host format.
20139 to_host_file_cmd=$lt_cv_to_host_file_cmd
20140
20141 # convert \$build files to toolchain format.
20142 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20143
20144 # An object symbol dumper.
20145 OBJDUMP=$lt_OBJDUMP
20146
20147 # Method to check whether dependent libraries are shared objects.
20148 deplibs_check_method=$lt_deplibs_check_method
20149
20150 # Command to use when deplibs_check_method = "file_magic".
20151 file_magic_cmd=$lt_file_magic_cmd
20152
20153 # How to find potential files when deplibs_check_method = "file_magic".
20154 file_magic_glob=$lt_file_magic_glob
20155
20156 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20157 want_nocaseglob=$lt_want_nocaseglob
20158
20159 # DLL creation program.
20160 DLLTOOL=$lt_DLLTOOL
20161
20162 # Command to associate shared and link libraries.
20163 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20164
20165 # The archiver.
20166 AR=$lt_AR
20167
20168 # Flags to create an archive.
20169 AR_FLAGS=$lt_AR_FLAGS
20170
20171 # How to feed a file listing to the archiver.
20172 archiver_list_spec=$lt_archiver_list_spec
20173
20174 # A symbol stripping program.
20175 STRIP=$lt_STRIP
20176
20177 # Commands used to install an old-style archive.
20178 RANLIB=$lt_RANLIB
20179 old_postinstall_cmds=$lt_old_postinstall_cmds
20180 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20181
20182 # Whether to use a lock for old archive extraction.
20183 lock_old_archive_extraction=$lock_old_archive_extraction
20184
20185 # A C compiler.
20186 LTCC=$lt_CC
20187
20188 # LTCC compiler flags.
20189 LTCFLAGS=$lt_CFLAGS
20190
20191 # Take the output of nm and produce a listing of raw symbols and C names.
20192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20193
20194 # Transform the output of nm in a proper C declaration.
20195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20196
20197 # Transform the output of nm in a C name address pair.
20198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20199
20200 # Transform the output of nm in a C name address pair when lib prefix is needed.
20201 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20202
20203 # Specify filename containing input files for \$NM.
20204 nm_file_list_spec=$lt_nm_file_list_spec
20205
20206 # The root where to search for dependent libraries,and in which our libraries should be installed.
20207 lt_sysroot=$lt_sysroot
20208
20209 # The name of the directory that contains temporary libtool files.
20210 objdir=$objdir
20211
20212 # Used to examine libraries when file_magic_cmd begins with "file".
20213 MAGIC_CMD=$MAGIC_CMD
20214
20215 # Must we lock files when doing compilation?
20216 need_locks=$lt_need_locks
20217
20218 # Manifest tool.
20219 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20220
20221 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20222 DSYMUTIL=$lt_DSYMUTIL
20223
20224 # Tool to change global to local symbols on Mac OS X.
20225 NMEDIT=$lt_NMEDIT
20226
20227 # Tool to manipulate fat objects and archives on Mac OS X.
20228 LIPO=$lt_LIPO
20229
20230 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20231 OTOOL=$lt_OTOOL
20232
20233 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20234 OTOOL64=$lt_OTOOL64
20235
20236 # Old archive suffix (normally "a").
20237 libext=$libext
20238
20239 # Shared library suffix (normally ".so").
20240 shrext_cmds=$lt_shrext_cmds
20241
20242 # The commands to extract the exported symbol list from a shared archive.
20243 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20244
20245 # Variables whose values should be saved in libtool wrapper scripts and
20246 # restored at link time.
20247 variables_saved_for_relink=$lt_variables_saved_for_relink
20248
20249 # Do we need the "lib" prefix for modules?
20250 need_lib_prefix=$need_lib_prefix
20251
20252 # Do we need a version for libraries?
20253 need_version=$need_version
20254
20255 # Library versioning type.
20256 version_type=$version_type
20257
20258 # Shared library runtime path variable.
20259 runpath_var=$runpath_var
20260
20261 # Shared library path variable.
20262 shlibpath_var=$shlibpath_var
20263
20264 # Is shlibpath searched before the hard-coded library search path?
20265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20266
20267 # Format of library name prefix.
20268 libname_spec=$lt_libname_spec
20269
20270 # List of archive names. First name is the real one, the rest are links.
20271 # The last name is the one that the linker finds with -lNAME
20272 library_names_spec=$lt_library_names_spec
20273
20274 # The coded name of the library, if different from the real name.
20275 soname_spec=$lt_soname_spec
20276
20277 # Permission mode override for installation of shared libraries.
20278 install_override_mode=$lt_install_override_mode
20279
20280 # Command to use after installation of a shared archive.
20281 postinstall_cmds=$lt_postinstall_cmds
20282
20283 # Command to use after uninstallation of a shared archive.
20284 postuninstall_cmds=$lt_postuninstall_cmds
20285
20286 # Commands used to finish a libtool library installation in a directory.
20287 finish_cmds=$lt_finish_cmds
20288
20289 # As "finish_cmds", except a single script fragment to be evaled but
20290 # not shown.
20291 finish_eval=$lt_finish_eval
20292
20293 # Whether we should hardcode library paths into libraries.
20294 hardcode_into_libs=$hardcode_into_libs
20295
20296 # Compile-time system search path for libraries.
20297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20298
20299 # Run-time system search path for libraries.
20300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20301
20302 # Whether dlopen is supported.
20303 dlopen_support=$enable_dlopen
20304
20305 # Whether dlopen of programs is supported.
20306 dlopen_self=$enable_dlopen_self
20307
20308 # Whether dlopen of statically linked programs is supported.
20309 dlopen_self_static=$enable_dlopen_self_static
20310
20311 # Commands to strip libraries.
20312 old_striplib=$lt_old_striplib
20313 striplib=$lt_striplib
20314
20315
20316 # The linker used to build libraries.
20317 LD=$lt_LD
20318
20319 # How to create reloadable object files.
20320 reload_flag=$lt_reload_flag
20321 reload_cmds=$lt_reload_cmds
20322
20323 # Commands used to build an old-style archive.
20324 old_archive_cmds=$lt_old_archive_cmds
20325
20326 # A language specific compiler.
20327 CC=$lt_compiler
20328
20329 # Is the compiler the GNU compiler?
20330 with_gcc=$GCC
20331
20332 # Compiler flag to turn off builtin functions.
20333 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20334
20335 # Additional compiler flags for building library objects.
20336 pic_flag=$lt_lt_prog_compiler_pic
20337
20338 # How to pass a linker flag through the compiler.
20339 wl=$lt_lt_prog_compiler_wl
20340
20341 # Compiler flag to prevent dynamic linking.
20342 link_static_flag=$lt_lt_prog_compiler_static
20343
20344 # Does compiler simultaneously support -c and -o options?
20345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20346
20347 # Whether or not to add -lc for building shared libraries.
20348 build_libtool_need_lc=$archive_cmds_need_lc
20349
20350 # Whether or not to disallow shared libs when runtime libs are static.
20351 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20352
20353 # Compiler flag to allow reflexive dlopens.
20354 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20355
20356 # Compiler flag to generate shared objects directly from archives.
20357 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20358
20359 # Whether the compiler copes with passing no objects directly.
20360 compiler_needs_object=$lt_compiler_needs_object
20361
20362 # Create an old-style archive from a shared archive.
20363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20364
20365 # Create a temporary old-style archive to link instead of a shared archive.
20366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20367
20368 # Commands used to build a shared archive.
20369 archive_cmds=$lt_archive_cmds
20370 archive_expsym_cmds=$lt_archive_expsym_cmds
20371
20372 # Commands used to build a loadable module if different from building
20373 # a shared archive.
20374 module_cmds=$lt_module_cmds
20375 module_expsym_cmds=$lt_module_expsym_cmds
20376
20377 # Whether we are building with GNU ld or not.
20378 with_gnu_ld=$lt_with_gnu_ld
20379
20380 # Flag that allows shared libraries with undefined symbols to be built.
20381 allow_undefined_flag=$lt_allow_undefined_flag
20382
20383 # Flag that enforces no undefined symbols.
20384 no_undefined_flag=$lt_no_undefined_flag
20385
20386 # Flag to hardcode \$libdir into a binary during linking.
20387 # This must work even if \$libdir does not exist
20388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20389
20390 # Whether we need a single "-rpath" flag with a separated argument.
20391 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20392
20393 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20394 # DIR into the resulting binary.
20395 hardcode_direct=$hardcode_direct
20396
20397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20398 # DIR into the resulting binary and the resulting library dependency is
20399 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20400 # library is relocated.
20401 hardcode_direct_absolute=$hardcode_direct_absolute
20402
20403 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20404 # into the resulting binary.
20405 hardcode_minus_L=$hardcode_minus_L
20406
20407 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20408 # into the resulting binary.
20409 hardcode_shlibpath_var=$hardcode_shlibpath_var
20410
20411 # Set to "yes" if building a shared library automatically hardcodes DIR
20412 # into the library and all subsequent libraries and executables linked
20413 # against it.
20414 hardcode_automatic=$hardcode_automatic
20415
20416 # Set to yes if linker adds runtime paths of dependent libraries
20417 # to runtime path list.
20418 inherit_rpath=$inherit_rpath
20419
20420 # Whether libtool must link a program against all its dependency libraries.
20421 link_all_deplibs=$link_all_deplibs
20422
20423 # Set to "yes" if exported symbols are required.
20424 always_export_symbols=$always_export_symbols
20425
20426 # The commands to list exported symbols.
20427 export_symbols_cmds=$lt_export_symbols_cmds
20428
20429 # Symbols that should not be listed in the preloaded symbols.
20430 exclude_expsyms=$lt_exclude_expsyms
20431
20432 # Symbols that must always be exported.
20433 include_expsyms=$lt_include_expsyms
20434
20435 # Commands necessary for linking programs (against libraries) with templates.
20436 prelink_cmds=$lt_prelink_cmds
20437
20438 # Commands necessary for finishing linking programs.
20439 postlink_cmds=$lt_postlink_cmds
20440
20441 # Specify filename containing input files.
20442 file_list_spec=$lt_file_list_spec
20443
20444 # How to hardcode a shared library path into an executable.
20445 hardcode_action=$hardcode_action
20446
20447 # ### END LIBTOOL CONFIG
20448
20449 _LT_EOF
20450
20451 case $host_os in
20452 aix3*)
20453 cat <<\_LT_EOF >> "$cfgfile"
20454 # AIX sometimes has problems with the GCC collect2 program. For some
20455 # reason, if we set the COLLECT_NAMES environment variable, the problems
20456 # vanish in a puff of smoke.
20457 if test "X${COLLECT_NAMES+set}" != Xset; then
20458 COLLECT_NAMES=
20459 export COLLECT_NAMES
20460 fi
20461 _LT_EOF
20462 ;;
20463 esac
20464
20465
20466 ltmain="$ac_aux_dir/ltmain.sh"
20467
20468
20469 # We use sed instead of cat because bash on DJGPP gets confused if
20470 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20471 # text mode, it properly converts lines to CR/LF. This bash problem
20472 # is reportedly fixed, but why not run on old versions too?
20473 sed '$q' "$ltmain" >> "$cfgfile" \
20474 || (rm -f "$cfgfile"; exit 1)
20475
20476 if test x"$xsi_shell" = xyes; then
20477 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20478 func_dirname ()\
20479 {\
20480 \ case ${1} in\
20481 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20482 \ * ) func_dirname_result="${3}" ;;\
20483 \ esac\
20484 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20485 && mv -f "$cfgfile.tmp" "$cfgfile" \
20486 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20487 test 0 -eq $? || _lt_function_replace_fail=:
20488
20489
20490 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20491 func_basename ()\
20492 {\
20493 \ func_basename_result="${1##*/}"\
20494 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20495 && mv -f "$cfgfile.tmp" "$cfgfile" \
20496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20497 test 0 -eq $? || _lt_function_replace_fail=:
20498
20499
20500 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20501 func_dirname_and_basename ()\
20502 {\
20503 \ case ${1} in\
20504 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20505 \ * ) func_dirname_result="${3}" ;;\
20506 \ esac\
20507 \ func_basename_result="${1##*/}"\
20508 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20509 && mv -f "$cfgfile.tmp" "$cfgfile" \
20510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20511 test 0 -eq $? || _lt_function_replace_fail=:
20512
20513
20514 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20515 func_stripname ()\
20516 {\
20517 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20518 \ # positional parameters, so assign one to ordinary parameter first.\
20519 \ func_stripname_result=${3}\
20520 \ func_stripname_result=${func_stripname_result#"${1}"}\
20521 \ func_stripname_result=${func_stripname_result%"${2}"}\
20522 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20523 && mv -f "$cfgfile.tmp" "$cfgfile" \
20524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20525 test 0 -eq $? || _lt_function_replace_fail=:
20526
20527
20528 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20529 func_split_long_opt ()\
20530 {\
20531 \ func_split_long_opt_name=${1%%=*}\
20532 \ func_split_long_opt_arg=${1#*=}\
20533 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20534 && mv -f "$cfgfile.tmp" "$cfgfile" \
20535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20536 test 0 -eq $? || _lt_function_replace_fail=:
20537
20538
20539 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20540 func_split_short_opt ()\
20541 {\
20542 \ func_split_short_opt_arg=${1#??}\
20543 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20544 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20545 && mv -f "$cfgfile.tmp" "$cfgfile" \
20546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20547 test 0 -eq $? || _lt_function_replace_fail=:
20548
20549
20550 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20551 func_lo2o ()\
20552 {\
20553 \ case ${1} in\
20554 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20555 \ *) func_lo2o_result=${1} ;;\
20556 \ esac\
20557 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20558 && mv -f "$cfgfile.tmp" "$cfgfile" \
20559 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20560 test 0 -eq $? || _lt_function_replace_fail=:
20561
20562
20563 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20564 func_xform ()\
20565 {\
20566 func_xform_result=${1%.*}.lo\
20567 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20568 && mv -f "$cfgfile.tmp" "$cfgfile" \
20569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20570 test 0 -eq $? || _lt_function_replace_fail=:
20571
20572
20573 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20574 func_arith ()\
20575 {\
20576 func_arith_result=$(( $* ))\
20577 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20578 && mv -f "$cfgfile.tmp" "$cfgfile" \
20579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20580 test 0 -eq $? || _lt_function_replace_fail=:
20581
20582
20583 sed -e '/^func_len ()$/,/^} # func_len /c\
20584 func_len ()\
20585 {\
20586 func_len_result=${#1}\
20587 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20588 && mv -f "$cfgfile.tmp" "$cfgfile" \
20589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20590 test 0 -eq $? || _lt_function_replace_fail=:
20591
20592 fi
20593
20594 if test x"$lt_shell_append" = xyes; then
20595 sed -e '/^func_append ()$/,/^} # func_append /c\
20596 func_append ()\
20597 {\
20598 eval "${1}+=\\${2}"\
20599 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20600 && mv -f "$cfgfile.tmp" "$cfgfile" \
20601 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20602 test 0 -eq $? || _lt_function_replace_fail=:
20603
20604
20605 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20606 func_append_quoted ()\
20607 {\
20608 \ func_quote_for_eval "${2}"\
20609 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20610 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20611 && mv -f "$cfgfile.tmp" "$cfgfile" \
20612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20613 test 0 -eq $? || _lt_function_replace_fail=:
20614
20615
20616 # Save a `func_append' function call where possible by direct use of '+='
20617 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20618 && mv -f "$cfgfile.tmp" "$cfgfile" \
20619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20620 test 0 -eq $? || _lt_function_replace_fail=:
20621 else
20622 # Save a `func_append' function call even when '+=' is not available
20623 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20624 && mv -f "$cfgfile.tmp" "$cfgfile" \
20625 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20626 test 0 -eq $? || _lt_function_replace_fail=:
20627 fi
20628
20629 if test x"$_lt_function_replace_fail" = x":"; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20631 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20632 fi
20633
20634
20635 mv -f "$cfgfile" "$ofile" ||
20636 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20637 chmod +x "$ofile"
20638
20639 ;;
20640
20641 esac
20642 done # for ac_tag
20643
20644
20645 as_fn_exit 0
20646 _ACEOF
20647 ac_clean_files=$ac_clean_files_save
20648
20649 test $ac_write_fail = 0 ||
20650 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20651
20652
20653 # configure is writing to config.log, and then calls config.status.
20654 # config.status does its own redirection, appending to config.log.
20655 # Unfortunately, on DOS this fails, as config.log is still kept open
20656 # by configure, so config.status won't be able to write to it; its
20657 # output is simply discarded. So we exec the FD to /dev/null,
20658 # effectively closing config.log, so it can be properly (re)opened and
20659 # appended to by config.status. When coming back to configure, we
20660 # need to make the FD available again.
20661 if test "$no_create" != yes; then
20662 ac_cs_success=:
20663 ac_config_status_args=
20664 test "$silent" = yes &&
20665 ac_config_status_args="$ac_config_status_args --quiet"
20666 exec 5>/dev/null
20667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20668 exec 5>>config.log
20669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20670 # would make configure fail if this is the last instruction.
20671 $ac_cs_success || as_fn_exit 1
20672 fi
20673 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20675 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20676 fi
20677
20678