configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-neomagic 1.2.7.
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-neomagic'
573 PACKAGE_TARNAME='xf86-video-neomagic'
574 PACKAGE_VERSION='1.2.7'
575 PACKAGE_STRING='xf86-video-neomagic 1.2.7'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 moduledir
622 XSERVER_LIBPCIACCESS_FALSE
623 XSERVER_LIBPCIACCESS_TRUE
624 PCIACCESS_LIBS
625 PCIACCESS_CFLAGS
626 XAA_FALSE
627 XAA_TRUE
628 XORG_LIBS
629 XORG_CFLAGS
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 MANIFEST_TOOL
636 RANLIB
637 ac_ct_AR
638 AR
639 DLLTOOL
640 OBJDUMP
641 LN_S
642 NM
643 ac_ct_DUMPBIN
644 DUMPBIN
645 LD
646 FGREP
647 LIBTOOL
648 AM_BACKSLASH
649 AM_DEFAULT_VERBOSITY
650 AM_DEFAULT_V
651 AM_V
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 INSTALL_CMD
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CHANGELOG_CMD
680 STRICT_CFLAGS
681 CWARNFLAGS
682 BASE_CFLAGS
683 EGREP
684 GREP
685 CPP
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_maintainer_mode
771 enable_dependency_tracking
772 enable_selective_werror
773 enable_strict_compilation
774 enable_silent_rules
775 enable_static
776 enable_shared
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 with_xorg_module_dir
783 enable_xaa
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CPP
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR
797 XORG_CFLAGS
798 XORG_LIBS
799 PCIACCESS_CFLAGS
800 PCIACCESS_LIBS'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 ;;
1207
1208 esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229 do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257 If a cross compiler is detected then cross compile mode will be used" >&2
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308 else
1309 ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures xf86-video-neomagic 1.2.7 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root
1392 [DATAROOTDIR/doc/xf86-video-neomagic]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1398
1399 cat <<\_ACEOF
1400
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of xf86-video-neomagic 1.2.7:";;
1415 esac
1416 cat <<\_ACEOF
1417
1418 Optional Features:
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-maintainer-mode enable make rules and dependencies not useful
1423 (and sometimes confusing) to the casual installer
1424 --disable-dependency-tracking speeds up one-time build
1425 --enable-dependency-tracking do not reject slow dependency extractors
1426 --disable-selective-werror
1427 Turn off selective compiler errors. (default:
1428 enabled)
1429 --enable-strict-compilation
1430 Enable all warnings from compiler and make them
1431 errors (default: disabled)
1432 --enable-silent-rules less verbose build output (undo: `make V=1')
1433 --disable-silent-rules verbose build output (undo: `make V=0')
1434 --enable-static[=PKGS] build static libraries [default=no]
1435 --enable-shared[=PKGS] build shared libraries [default=yes]
1436 --enable-fast-install[=PKGS]
1437 optimize for fast installation [default=yes]
1438 --disable-libtool-lock avoid locking (might break parallel builds)
1439 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1440 [default=auto]
1441
1442 Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1446 both]
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-sysroot=DIR Search for dependent libraries within DIR
1449 (or the compiler's sysroot if not specified).
1450 --with-xorg-module-dir=DIR
1451 Default xorg module directory
1452 [[default=$libdir/xorg/modules]]
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 PKG_CONFIG path to pkg-config utility
1464 PKG_CONFIG_PATH
1465 directories to add to pkg-config's search path
1466 PKG_CONFIG_LIBDIR
1467 path overriding pkg-config's built-in search path
1468 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1469 XORG_LIBS linker flags for XORG, overriding pkg-config
1470 PCIACCESS_CFLAGS
1471 C compiler flags for PCIACCESS, overriding pkg-config
1472 PCIACCESS_LIBS
1473 linker flags for PCIACCESS, overriding pkg-config
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 xf86-video-neomagic configure 1.2.7
1542 generated by GNU Autoconf 2.68
1543
1544 Copyright (C) 2010 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1594 # ---------------------------------------------
1595 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1596 # accordingly.
1597 ac_fn_c_check_decl ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 as_decl_name=`echo $2|sed 's/ *(.*//'`
1601 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1603 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1604 if eval \${$3+:} false; then :
1605 $as_echo_n "(cached) " >&6
1606 else
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1609 $4
1610 int
1611 main ()
1612 {
1613 #ifndef $as_decl_name
1614 #ifdef __cplusplus
1615 (void) $as_decl_use;
1616 #else
1617 (void) $as_decl_name;
1618 #endif
1619 #endif
1620
1621 ;
1622 return 0;
1623 }
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 eval "$3=yes"
1627 else
1628 eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 fi
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637 } # ac_fn_c_check_decl
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=$ac_status
1711 fi
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"; then :
1736 eval "$3=yes"
1737 else
1738 eval "$3=no"
1739 fi
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 fi
1742 eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747 } # ac_fn_c_check_header_compile
1748
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_link ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784 fi
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_link
1794
1795 # ac_fn_c_check_func LINENO FUNC VAR
1796 # ----------------------------------
1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1798 ac_fn_c_check_func ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1810 #define $2 innocuous_$2
1811
1812 /* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $2 (); below.
1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815 <limits.h> exists even on freestanding compilers. */
1816
1817 #ifdef __STDC__
1818 # include <limits.h>
1819 #else
1820 # include <assert.h>
1821 #endif
1822
1823 #undef $2
1824
1825 /* Override any GCC internal prototype to avoid an error.
1826 Use char because int might match the return type of a GCC
1827 builtin and then its argument prototype would still apply. */
1828 #ifdef __cplusplus
1829 extern "C"
1830 #endif
1831 char $2 ();
1832 /* The GNU C library defines this for functions which it implements
1833 to always fail with ENOSYS. Some functions are actually named
1834 something starting with __ and the normal name is an alias. */
1835 #if defined __stub_$2 || defined __stub___$2
1836 choke me
1837 #endif
1838
1839 int
1840 main ()
1841 {
1842 return $2 ();
1843 ;
1844 return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_c_try_link "$LINENO"; then :
1848 eval "$3=yes"
1849 else
1850 eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext \
1853 conftest$ac_exeext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_func
1861
1862 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1865 # the include files in INCLUDES and setting the cache variable VAR
1866 # accordingly.
1867 ac_fn_c_check_header_mongrel ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if eval \${$3+:} false; then :
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 else
1880 # Is the header compilable?
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1882 $as_echo_n "checking $2 usability... " >&6; }
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $4
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889 ac_header_compiler=yes
1890 else
1891 ac_header_compiler=no
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1895 $as_echo "$ac_header_compiler" >&6; }
1896
1897 # Is the header present?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1899 $as_echo_n "checking $2 presence... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 #include <$2>
1903 _ACEOF
1904 if ac_fn_c_try_cpp "$LINENO"; then :
1905 ac_header_preproc=yes
1906 else
1907 ac_header_preproc=no
1908 fi
1909 rm -f conftest.err conftest.i conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1911 $as_echo "$ac_header_preproc" >&6; }
1912
1913 # So? What about this header?
1914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1915 yes:no: )
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1917 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 ;;
1921 no:yes:* )
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1923 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1925 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1927 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1929 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 ( $as_echo "## ---------------------------------------------------------------------- ##
1933 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1934 ## ---------------------------------------------------------------------- ##"
1935 ) | sed "s/^/$as_me: WARNING: /" >&2
1936 ;;
1937 esac
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 eval "$3=\$ac_header_compiler"
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 fi
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_header_mongrel
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1955
1956 It was created by xf86-video-neomagic $as_me 1.2.7, which was
1957 generated by GNU Autoconf 2.68. Invocation command line was
1958
1959 $ $0 $@
1960
1961 _ACEOF
1962 exec 5>>config.log
1963 {
1964 cat <<_ASUNAME
1965 ## --------- ##
1966 ## Platform. ##
1967 ## --------- ##
1968
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1977
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1985
1986 _ASUNAME
1987
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 $as_echo "PATH: $as_dir"
1994 done
1995 IFS=$as_save_IFS
1996
1997 } >&5
1998
1999 cat >&5 <<_ACEOF
2000
2001
2002 ## ----------- ##
2003 ## Core tests. ##
2004 ## ----------- ##
2005
2006 _ACEOF
2007
2008
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2014 ac_configure_args=
2015 ac_configure_args0=
2016 ac_configure_args1=
2017 ac_must_keep_next=false
2018 for ac_pass in 1 2
2019 do
2020 for ac_arg
2021 do
2022 case $ac_arg in
2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025 | -silent | --silent | --silen | --sile | --sil)
2026 continue ;;
2027 *\'*)
2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029 esac
2030 case $ac_pass in
2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2032 2)
2033 as_fn_append ac_configure_args1 " '$ac_arg'"
2034 if test $ac_must_keep_next = true; then
2035 ac_must_keep_next=false # Got value, back to normal.
2036 else
2037 case $ac_arg in
2038 *=* | --config-cache | -C | -disable-* | --disable-* \
2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041 | -with-* | --with-* | -without-* | --without-* | --x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044 esac
2045 ;;
2046 -* ) ac_must_keep_next=true ;;
2047 esac
2048 fi
2049 as_fn_append ac_configure_args " '$ac_arg'"
2050 ;;
2051 esac
2052 done
2053 done
2054 { ac_configure_args0=; unset ac_configure_args0;}
2055 { ac_configure_args1=; unset ac_configure_args1;}
2056
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log. We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2064 {
2065 echo
2066
2067 $as_echo "## ---------------- ##
2068 ## Cache variables. ##
2069 ## ---------------- ##"
2070 echo
2071 # The following way of writing the cache mishandles newlines in values,
2072 (
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in #(
2076 *${as_nl}*)
2077 case $ac_var in #(
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080 esac
2081 case $ac_var in #(
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2085 esac ;;
2086 esac
2087 done
2088 (set) 2>&1 |
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
2091 sed -n \
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094 ;; #(
2095 *)
2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2097 ;;
2098 esac |
2099 sort
2100 )
2101 echo
2102
2103 $as_echo "## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##"
2106 echo
2107 for ac_var in $ac_subst_vars
2108 do
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2116
2117 if test -n "$ac_subst_files"; then
2118 $as_echo "## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##"
2121 echo
2122 for ac_var in $ac_subst_files
2123 do
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2131 fi
2132
2133 if test -s confdefs.h; then
2134 $as_echo "## ----------- ##
2135 ## confdefs.h. ##
2136 ## ----------- ##"
2137 echo
2138 cat confdefs.h
2139 echo
2140 fi
2141 test "$ac_signal" != 0 &&
2142 $as_echo "$as_me: caught signal $ac_signal"
2143 $as_echo "$as_me: exit $exit_status"
2144 } >&5
2145 rm -f core *.core core.conftest.* &&
2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2147 exit $exit_status
2148 ' 0
2149 for ac_signal in 1 2 13 15; do
2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2151 done
2152 ac_signal=0
2153
2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2155 rm -f -r conftest* confdefs.h
2156
2157 $as_echo "/* confdefs.h */" > confdefs.h
2158
2159 # Predefined preprocessor variables.
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_NAME "$PACKAGE_NAME"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_STRING "$PACKAGE_STRING"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_URL "$PACKAGE_URL"
2183 _ACEOF
2184
2185
2186 # Let the site file select an alternate cache file if it wants to.
2187 # Prefer an explicitly selected file to automatically selected ones.
2188 ac_site_file1=NONE
2189 ac_site_file2=NONE
2190 if test -n "$CONFIG_SITE"; then
2191 # We do not want a PATH search for config.site.
2192 case $CONFIG_SITE in #((
2193 -*) ac_site_file1=./$CONFIG_SITE;;
2194 */*) ac_site_file1=$CONFIG_SITE;;
2195 *) ac_site_file1=./$CONFIG_SITE;;
2196 esac
2197 elif test "x$prefix" != xNONE; then
2198 ac_site_file1=$prefix/share/config.site
2199 ac_site_file2=$prefix/etc/config.site
2200 else
2201 ac_site_file1=$ac_default_prefix/share/config.site
2202 ac_site_file2=$ac_default_prefix/etc/config.site
2203 fi
2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205 do
2206 test "x$ac_site_file" = xNONE && continue
2207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2211 . "$ac_site_file" \
2212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2216 fi
2217 done
2218
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225 case $cache_file in
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2228 esac
2229 fi
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233 >$cache_file
2234 fi
2235
2236 # Check that the precious variables saved in the cache have kept the same
2237 # value.
2238 ac_cache_corrupted=false
2239 for ac_var in $ac_precious_vars; do
2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241 eval ac_new_set=\$ac_env_${ac_var}_set
2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243 eval ac_new_val=\$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2245 set,)
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted=: ;;
2249 ,set)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,);;
2254 *)
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w=`echo x $ac_old_val`
2258 ac_new_val_w=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted=:
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\$ac_old_val
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2272 fi;;
2273 esac
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2276 case $ac_new_val in
2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg=$ac_var=$ac_new_val ;;
2279 esac
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283 esac
2284 fi
2285 done
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 fi
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2296
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
2303
2304
2305 ac_config_headers="$ac_config_headers config.h"
2306
2307 ac_aux_dir=
2308 for ac_dir in . "$srcdir"/.; do
2309 if test -f "$ac_dir/install-sh"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/install-sh -c"
2312 break
2313 elif test -f "$ac_dir/install.sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install.sh -c"
2316 break
2317 elif test -f "$ac_dir/shtool"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/shtool install -c"
2320 break
2321 fi
2322 done
2323 if test -z "$ac_aux_dir"; then
2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2325 fi
2326
2327 # These three variables are undocumented and unsupported,
2328 # and are intended to be withdrawn in a future Autoconf release.
2329 # They can cause serious problems if a builder's source tree is in a directory
2330 # whose full name contains unusual characters.
2331 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2332 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2333 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2334
2335
2336
2337 # Initialize Automake
2338 am__api_version='1.11'
2339
2340 # Find a good install program. We prefer a C program (faster),
2341 # so one script is as good as another. But avoid the broken or
2342 # incompatible versions:
2343 # SysV /etc/install, /usr/sbin/install
2344 # SunOS /usr/etc/install
2345 # IRIX /sbin/install
2346 # AIX /bin/install
2347 # AmigaOS /C/install, which installs bootblocks on floppy discs
2348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2351 # OS/2's system install, which has a completely different semantic
2352 # ./install, which can be erroneously created by make from ./install.sh.
2353 # Reject install programs that cannot install multiple files.
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2355 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2356 if test -z "$INSTALL"; then
2357 if ${ac_cv_path_install+:} false; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 # Account for people who put trailing slashes in PATH elements.
2366 case $as_dir/ in #((
2367 ./ | .// | /[cC]/* | \
2368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2369 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2370 /usr/ucb/* ) ;;
2371 *)
2372 # OSF1 and SCO ODT 3.0 have their own names for install.
2373 # Don't use installbsd from OSF since it installs stuff as root
2374 # by default.
2375 for ac_prog in ginstall scoinst install; do
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2378 if test $ac_prog = install &&
2379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380 # AIX install. It has an incompatible calling convention.
2381 :
2382 elif test $ac_prog = install &&
2383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384 # program-specific install script used by HP pwplus--don't use.
2385 :
2386 else
2387 rm -rf conftest.one conftest.two conftest.dir
2388 echo one > conftest.one
2389 echo two > conftest.two
2390 mkdir conftest.dir
2391 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2392 test -s conftest.one && test -s conftest.two &&
2393 test -s conftest.dir/conftest.one &&
2394 test -s conftest.dir/conftest.two
2395 then
2396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397 break 3
2398 fi
2399 fi
2400 fi
2401 done
2402 done
2403 ;;
2404 esac
2405
2406 done
2407 IFS=$as_save_IFS
2408
2409 rm -rf conftest.one conftest.two conftest.dir
2410
2411 fi
2412 if test "${ac_cv_path_install+set}" = set; then
2413 INSTALL=$ac_cv_path_install
2414 else
2415 # As a last resort, use the slow shell script. Don't cache a
2416 # value for INSTALL within a source directory, because that will
2417 # break other packages using the cache if that directory is
2418 # removed, or if the value is a relative name.
2419 INSTALL=$ac_install_sh
2420 fi
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2423 $as_echo "$INSTALL" >&6; }
2424
2425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2426 # It thinks the first close brace ends the variable substitution.
2427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2428
2429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2430
2431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2432
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2434 $as_echo_n "checking whether build environment is sane... " >&6; }
2435 # Just in case
2436 sleep 1
2437 echo timestamp > conftest.file
2438 # Reject unsafe characters in $srcdir or the absolute working directory
2439 # name. Accept space and tab only in the latter.
2440 am_lf='
2441 '
2442 case `pwd` in
2443 *[\\\"\#\$\&\'\`$am_lf]*)
2444 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2445 esac
2446 case $srcdir in
2447 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2448 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2449 esac
2450
2451 # Do `set' in a subshell so we don't clobber the current shell's
2452 # arguments. Must try -L first in case configure is actually a
2453 # symlink; some systems play weird games with the mod time of symlinks
2454 # (eg FreeBSD returns the mod time of the symlink's containing
2455 # directory).
2456 if (
2457 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2458 if test "$*" = "X"; then
2459 # -L didn't work.
2460 set X `ls -t "$srcdir/configure" conftest.file`
2461 fi
2462 rm -f conftest.file
2463 if test "$*" != "X $srcdir/configure conftest.file" \
2464 && test "$*" != "X conftest.file $srcdir/configure"; then
2465
2466 # If neither matched, then we have a broken ls. This can happen
2467 # if, for instance, CONFIG_SHELL is bash and it inherits a
2468 # broken ls alias from the environment. This has actually
2469 # happened. Such a system could not be considered "sane".
2470 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2471 alias in your environment" "$LINENO" 5
2472 fi
2473
2474 test "$2" = conftest.file
2475 )
2476 then
2477 # Ok.
2478 :
2479 else
2480 as_fn_error $? "newly created file is older than distributed files!
2481 Check your system clock" "$LINENO" 5
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2485 test "$program_prefix" != NONE &&
2486 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.
2491 # By default was `s,x,x', remove it if useless.
2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2494
2495 # expand $ac_aux_dir to an absolute path
2496 am_aux_dir=`cd $ac_aux_dir && pwd`
2497
2498 if test x"${MISSING+set}" != xset; then
2499 case $am_aux_dir in
2500 *\ * | *\ *)
2501 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2502 *)
2503 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2504 esac
2505 fi
2506 # Use eval to expand $SHELL
2507 if eval "$MISSING --run true"; then
2508 am_missing_run="$MISSING --run "
2509 else
2510 am_missing_run=
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2512 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2513 fi
2514
2515 if test x"${install_sh}" != xset; then
2516 case $am_aux_dir in
2517 *\ * | *\ *)
2518 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2519 *)
2520 install_sh="\${SHELL} $am_aux_dir/install-sh"
2521 esac
2522 fi
2523
2524 # Installed binaries are usually stripped using `strip' when the user
2525 # run `make install-strip'. However `strip' might not be the right
2526 # tool to use in cross-compilation environments, therefore Automake
2527 # will honor the `STRIP' environment variable to overrule this program.
2528 if test "$cross_compiling" != no; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_STRIP+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$STRIP"; then
2538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 STRIP=$ac_cv_prog_STRIP
2558 if test -n "$STRIP"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560 $as_echo "$STRIP" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566
2567 fi
2568 if test -z "$ac_cv_prog_STRIP"; then
2569 ac_ct_STRIP=$STRIP
2570 # Extract the first word of "strip", so it can be a program name with args.
2571 set dummy strip; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$ac_ct_STRIP"; then
2578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_STRIP="strip"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598 if test -n "$ac_ct_STRIP"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600 $as_echo "$ac_ct_STRIP" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606 if test "x$ac_ct_STRIP" = x; then
2607 STRIP=":"
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 STRIP=$ac_ct_STRIP
2616 fi
2617 else
2618 STRIP="$ac_cv_prog_STRIP"
2619 fi
2620
2621 fi
2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626 if test -z "$MKDIR_P"; then
2627 if ${ac_cv_path_mkdir+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_prog in mkdir gmkdir; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2638 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639 'mkdir (GNU coreutils) '* | \
2640 'mkdir (coreutils) '* | \
2641 'mkdir (fileutils) '4.1*)
2642 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643 break 3;;
2644 esac
2645 done
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651
2652 test -d ./--version && rmdir ./--version
2653 if test "${ac_cv_path_mkdir+set}" = set; then
2654 MKDIR_P="$ac_cv_path_mkdir -p"
2655 else
2656 # As a last resort, use the slow shell script. Don't cache a
2657 # value for MKDIR_P within a source directory, because that will
2658 # break other packages using the cache if that directory is
2659 # removed, or if the value is a relative name.
2660 MKDIR_P="$ac_install_sh -d"
2661 fi
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664 $as_echo "$MKDIR_P" >&6; }
2665
2666 mkdir_p="$MKDIR_P"
2667 case $mkdir_p in
2668 [\\/$]* | ?:[\\/]*) ;;
2669 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2670 esac
2671
2672 for ac_prog in gawk mawk nawk awk
2673 do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_AWK+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 test -n "$AWK" && break
2712 done
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2716 set x ${MAKE-make}
2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2718 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 SHELL = /bin/sh
2723 all:
2724 @echo '@@@%%%=$(MAKE)=@@@%%%'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2728 *@@@%%%=?*=@@@%%%*)
2729 eval ac_cv_prog_make_${ac_make}_set=yes;;
2730 *)
2731 eval ac_cv_prog_make_${ac_make}_set=no;;
2732 esac
2733 rm -f conftest.make
2734 fi
2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738 SET_MAKE=
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 SET_MAKE="MAKE=${MAKE-make}"
2743 fi
2744
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748 am__leading_dot=.
2749 else
2750 am__leading_dot=_
2751 fi
2752 rmdir .tst 2>/dev/null
2753
2754 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2756 # is not polluted with repeated "-I."
2757 am__isrc=' -I$(srcdir)'
2758 # test to see if srcdir already configured
2759 if test -f $srcdir/config.status; then
2760 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761 fi
2762 fi
2763
2764 # test whether we have cygpath
2765 if test -z "$CYGPATH_W"; then
2766 if (cygpath --version) >/dev/null 2>/dev/null; then
2767 CYGPATH_W='cygpath -w'
2768 else
2769 CYGPATH_W=echo
2770 fi
2771 fi
2772
2773
2774 # Define the identity of the package.
2775 PACKAGE='xf86-video-neomagic'
2776 VERSION='1.2.7'
2777
2778
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE "$PACKAGE"
2781 _ACEOF
2782
2783
2784 cat >>confdefs.h <<_ACEOF
2785 #define VERSION "$VERSION"
2786 _ACEOF
2787
2788 # Some tools Automake needs.
2789
2790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791
2792
2793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794
2795
2796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797
2798
2799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800
2801
2802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803
2804 # We need awk for the "check" target. The system "awk" is bad on
2805 # some platforms.
2806 # Always define AMTAR for backward compatibility. Yes, it's still used
2807 # in the wild :-( We should find a proper way to deprecate it ...
2808 AMTAR='$${TAR-tar}'
2809
2810 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2811
2812
2813
2814
2815
2816
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2818 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2819 # Check whether --enable-maintainer-mode was given.
2820 if test "${enable_maintainer_mode+set}" = set; then :
2821 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2822 else
2823 USE_MAINTAINER_MODE=no
2824 fi
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2827 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2828 if test $USE_MAINTAINER_MODE = yes; then
2829 MAINTAINER_MODE_TRUE=
2830 MAINTAINER_MODE_FALSE='#'
2831 else
2832 MAINTAINER_MODE_TRUE='#'
2833 MAINTAINER_MODE_FALSE=
2834 fi
2835
2836 MAINT=$MAINTAINER_MODE_TRUE
2837
2838
2839
2840 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852 DEPDIR="${am__leading_dot}deps"
2853
2854 ac_config_commands="$ac_config_commands depfiles"
2855
2856
2857 am_make=${MAKE-make}
2858 cat > confinc << 'END'
2859 am__doit:
2860 @echo this is the am__doit target
2861 .PHONY: am__doit
2862 END
2863 # If we don't find an include directive, just comment out the code.
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2865 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2866 am__include="#"
2867 am__quote=
2868 _am_result=none
2869 # First try GNU make style include.
2870 echo "include confinc" > confmf
2871 # Ignore all kinds of additional output from `make'.
2872 case `$am_make -s -f confmf 2> /dev/null` in #(
2873 *the\ am__doit\ target*)
2874 am__include=include
2875 am__quote=
2876 _am_result=GNU
2877 ;;
2878 esac
2879 # Now try BSD make style include.
2880 if test "$am__include" = "#"; then
2881 echo '.include "confinc"' > confmf
2882 case `$am_make -s -f confmf 2> /dev/null` in #(
2883 *the\ am__doit\ target*)
2884 am__include=.include
2885 am__quote="\""
2886 _am_result=BSD
2887 ;;
2888 esac
2889 fi
2890
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2893 $as_echo "$_am_result" >&6; }
2894 rm -f confinc confmf
2895
2896 # Check whether --enable-dependency-tracking was given.
2897 if test "${enable_dependency_tracking+set}" = set; then :
2898 enableval=$enable_dependency_tracking;
2899 fi
2900
2901 if test "x$enable_dependency_tracking" != xno; then
2902 am_depcomp="$ac_aux_dir/depcomp"
2903 AMDEPBACKSLASH='\'
2904 am__nodep='_no'
2905 fi
2906 if test "x$enable_dependency_tracking" != xno; then
2907 AMDEP_TRUE=
2908 AMDEP_FALSE='#'
2909 else
2910 AMDEP_TRUE='#'
2911 AMDEP_FALSE=
2912 fi
2913
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$ac_cv_prog_CC"; then
2960 ac_ct_CC=$CC
2961 # Extract the first word of "gcc", so it can be a program name with args.
2962 set dummy gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_ac_ct_CC="gcc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997 if test "x$ac_ct_CC" = x; then
2998 CC=""
2999 else
3000 case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CC=$ac_ct_CC
3007 fi
3008 else
3009 CC="$ac_cv_prog_CC"
3010 fi
3011
3012 if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC="${ac_tool_prefix}cc"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 fi
3052 fi
3053 if test -z "$CC"; then
3054 # Extract the first word of "cc", so it can be a program name with args.
3055 set dummy cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 ac_prog_rejected=no
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3073 ac_prog_rejected=yes
3074 continue
3075 fi
3076 ac_cv_prog_CC="cc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 if test $ac_prog_rejected = yes; then
3085 # We found a bogon in the path, so make sure we never use it.
3086 set dummy $ac_cv_prog_CC
3087 shift
3088 if test $# != 0; then
3089 # We chose a different compiler from the bogus one.
3090 # However, it has the same basename, so the bogon will be chosen
3091 # first if we set CC to just the basename; use the full file name.
3092 shift
3093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3094 fi
3095 fi
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
3111 for ac_prog in cl.exe
3112 do
3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134 done
3135 done
3136 IFS=$as_save_IFS
3137
3138 fi
3139 fi
3140 CC=$ac_cv_prog_CC
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 fi
3148
3149
3150 test -n "$CC" && break
3151 done
3152 fi
3153 if test -z "$CC"; then
3154 ac_ct_CC=$CC
3155 for ac_prog in cl.exe
3156 do
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_CC"; then
3165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_CC="$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3187 $as_echo "$ac_ct_CC" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194 test -n "$ac_ct_CC" && break
3195 done
3196
3197 if test "x$ac_ct_CC" = x; then
3198 CC=""
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206 CC=$ac_ct_CC
3207 fi
3208 fi
3209
3210 fi
3211
3212
3213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "no acceptable C compiler found in \$PATH
3216 See \`config.log' for more details" "$LINENO" 5; }
3217
3218 # Provide some information about the compiler.
3219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3220 set X $ac_compile
3221 ac_compiler=$2
3222 for ac_option in --version -v -V -qversion; do
3223 { { ac_try="$ac_compiler $ac_option >&5"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3231 ac_status=$?
3232 if test -s conftest.err; then
3233 sed '10a\
3234 ... rest of stderr output deleted ...
3235 10q' conftest.err >conftest.er1
3236 cat conftest.er1 >&5
3237 fi
3238 rm -f conftest.er1 conftest.err
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }
3241 done
3242
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3245
3246 int
3247 main ()
3248 {
3249
3250 ;
3251 return 0;
3252 }
3253 _ACEOF
3254 ac_clean_files_save=$ac_clean_files
3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3256 # Try to create an executable without -o first, disregard a.out.
3257 # It will help us diagnose broken compilers, and finding out an intuition
3258 # of exeext.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3260 $as_echo_n "checking whether the C compiler works... " >&6; }
3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3262
3263 # The possible output files:
3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3265
3266 ac_rmfiles=
3267 for ac_file in $ac_files
3268 do
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272 esac
3273 done
3274 rm -f $ac_rmfiles
3275
3276 if { { ac_try="$ac_link_default"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_link_default") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3290 # so that the user can short-circuit this test for compilers unknown to
3291 # Autoconf.
3292 for ac_file in $ac_files ''
3293 do
3294 test -f "$ac_file" || continue
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3297 ;;
3298 [ab].out )
3299 # We found the default executable, but exeext='' is most
3300 # certainly right.
3301 break;;
3302 *.* )
3303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3304 then :; else
3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 fi
3307 # We set ac_cv_exeext here because the later test for it is not
3308 # safe: cross compilers may not add the suffix if given an `-o'
3309 # argument, so we may need to know it at that point already.
3310 # Even if this section looks crufty: it has the advantage of
3311 # actually working.
3312 break;;
3313 * )
3314 break;;
3315 esac
3316 done
3317 test "$ac_cv_exeext" = no && ac_cv_exeext=
3318
3319 else
3320 ac_file=''
3321 fi
3322 if test -z "$ac_file"; then :
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 $as_echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error 77 "C compiler cannot create executables
3331 See \`config.log' for more details" "$LINENO" 5; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3335 fi
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3337 $as_echo_n "checking for C compiler default output file name... " >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339 $as_echo "$ac_file" >&6; }
3340 ac_exeext=$ac_cv_exeext
3341
3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3345 $as_echo_n "checking for suffix of executables... " >&6; }
3346 if { { ac_try="$ac_link"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_link") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
3357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3359 # work properly (i.e., refer to `conftest.exe'), while it won't with
3360 # `rm'.
3361 for ac_file in conftest.exe conftest conftest.*; do
3362 test -f "$ac_file" || continue
3363 case $ac_file in
3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 break;;
3367 * ) break;;
3368 esac
3369 done
3370 else
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 rm -f conftest conftest$ac_cv_exeext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3378 $as_echo "$ac_cv_exeext" >&6; }
3379
3380 rm -f conftest.$ac_ext
3381 EXEEXT=$ac_cv_exeext
3382 ac_exeext=$EXEEXT
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385 #include <stdio.h>
3386 int
3387 main ()
3388 {
3389 FILE *f = fopen ("conftest.out", "w");
3390 return ferror (f) || fclose (f) != 0;
3391
3392 ;
3393 return 0;
3394 }
3395 _ACEOF
3396 ac_clean_files="$ac_clean_files conftest.out"
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 if test "$cross_compiling" != yes; then
3402 { { ac_try="$ac_link"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 if { ac_try='./conftest$ac_cv_exeext'
3414 { { case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_try") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; }; then
3424 cross_compiling=no
3425 else
3426 if test "$cross_compiling" = maybe; then
3427 cross_compiling=yes
3428 else
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot run C compiled programs.
3432 If you meant to cross compile, use \`--host'.
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 fi
3435 fi
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3439
3440 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if ${ac_cv_objext+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449
3450 int
3451 main ()
3452 {
3453
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; then :
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 fi
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if ${ac_cv_c_compiler_gnu+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505 choke me
3506 #endif
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_compiler_gnu=yes
3514 else
3515 ac_compiler_gnu=no
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524 GCC=yes
3525 else
3526 GCC=
3527 fi
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if ${ac_cv_prog_cc_g+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 ac_save_c_werror_flag=$ac_c_werror_flag
3536 ac_c_werror_flag=yes
3537 ac_cv_prog_cc_g=no
3538 CFLAGS="-g"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541
3542 int
3543 main ()
3544 {
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_g=yes
3552 else
3553 CFLAGS=""
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556
3557 int
3558 main ()
3559 {
3560
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566
3567 else
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3569 CFLAGS="-g"
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_g=yes
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594 CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596 if test "$GCC" = yes; then
3597 CFLAGS="-g -O2"
3598 else
3599 CFLAGS="-g"
3600 fi
3601 else
3602 if test "$GCC" = yes; then
3603 CFLAGS="-O2"
3604 else
3605 CFLAGS=
3606 fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if ${ac_cv_prog_cc_c89+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3625 char **p;
3626 int i;
3627 {
3628 return p[i];
3629 }
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3631 {
3632 char *s;
3633 va_list v;
3634 va_start (v,p);
3635 s = g (p, va_arg (v,int));
3636 va_end (v);
3637 return s;
3638 }
3639
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3641 function prototypes and stuff, but not '\xHH' hex character constants.
3642 These don't provoke an error unfortunately, instead are silently treated
3643 as 'x'. The following induces an error, until -std is added to get
3644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3645 array size at least. It's necessary to write '\x00'==0 to get something
3646 that's true only with -std. */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650 inside strings and character constants. */
3651 #define FOO(x) 'x'
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658 int argc;
3659 char **argv;
3660 int
3661 main ()
3662 {
3663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 do
3671 CC="$ac_save_CC $ac_arg"
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_cv_prog_cc_c89=$ac_arg
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext
3676 test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3680
3681 fi
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3684 x)
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3687 xno)
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3690 *)
3691 CC="$CC $ac_cv_prog_cc_c89"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3695 if test "x$ac_cv_prog_cc_c89" != xno; then :
3696
3697 fi
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705 depcc="$CC" am_compiler_list=
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3708 $as_echo_n "checking dependency style of $depcc... " >&6; }
3709 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3713 # We make a subdir and do the tests there. Otherwise we can end up
3714 # making bogus files that we don't know about and never remove. For
3715 # instance it was reported that on HP-UX the gcc test will end up
3716 # making a dummy file named `D' -- because `-MD' means `put the output
3717 # in D'.
3718 rm -rf conftest.dir
3719 mkdir conftest.dir
3720 # Copy depcomp to subdir because otherwise we won't find it if we're
3721 # using a relative directory.
3722 cp "$am_depcomp" conftest.dir
3723 cd conftest.dir
3724 # We will build objects and dependencies in a subdirectory because
3725 # it helps to detect inapplicable dependency modes. For instance
3726 # both Tru64's cc and ICC support -MD to output dependencies as a
3727 # side effect of compilation, but ICC will put the dependencies in
3728 # the current directory while Tru64 will put them in the object
3729 # directory.
3730 mkdir sub
3731
3732 am_cv_CC_dependencies_compiler_type=none
3733 if test "$am_compiler_list" = ""; then
3734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3735 fi
3736 am__universal=false
3737 case " $depcc " in #(
3738 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3739 esac
3740
3741 for depmode in $am_compiler_list; do
3742 # Setup a source with many dependencies, because some compilers
3743 # like to wrap large dependency lists on column 80 (with \), and
3744 # we should not choose a depcomp mode which is confused by this.
3745 #
3746 # We need to recreate these files for each test, as the compiler may
3747 # overwrite some of them when testing with obscure command lines.
3748 # This happens at least with the AIX C compiler.
3749 : > sub/conftest.c
3750 for i in 1 2 3 4 5 6; do
3751 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3752 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3753 # Solaris 8's {/usr,}/bin/sh.
3754 touch sub/conftst$i.h
3755 done
3756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3757
3758 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3759 # mode. It turns out that the SunPro C++ compiler does not properly
3760 # handle `-M -o', and we need to detect this. Also, some Intel
3761 # versions had trouble with output in subdirs
3762 am__obj=sub/conftest.${OBJEXT-o}
3763 am__minus_obj="-o $am__obj"
3764 case $depmode in
3765 gcc)
3766 # This depmode causes a compiler race in universal mode.
3767 test "$am__universal" = false || continue
3768 ;;
3769 nosideeffect)
3770 # after this tag, mechanisms are not by side-effect, so they'll
3771 # only be used when explicitly requested
3772 if test "x$enable_dependency_tracking" = xyes; then
3773 continue
3774 else
3775 break
3776 fi
3777 ;;
3778 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3779 # This compiler won't grok `-c -o', but also, the minuso test has
3780 # not run yet. These depmodes are late enough in the game, and
3781 # so weak that their functioning should not be impacted.
3782 am__obj=conftest.${OBJEXT-o}
3783 am__minus_obj=
3784 ;;
3785 none) break ;;
3786 esac
3787 if depmode=$depmode \
3788 source=sub/conftest.c object=$am__obj \
3789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3790 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3791 >/dev/null 2>conftest.err &&
3792 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3794 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3796 # icc doesn't choke on unknown options, it will just issue warnings
3797 # or remarks (even with -Werror). So we grep stderr for any message
3798 # that says an option was ignored or not supported.
3799 # When given -MP, icc 7.0 and 7.1 complain thusly:
3800 # icc: Command line warning: ignoring option '-M'; no argument required
3801 # The diagnosis changed in icc 8.0:
3802 # icc: Command line remark: option '-MP' not supported
3803 if (grep 'ignoring option' conftest.err ||
3804 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3805 am_cv_CC_dependencies_compiler_type=$depmode
3806 break
3807 fi
3808 fi
3809 done
3810
3811 cd ..
3812 rm -rf conftest.dir
3813 else
3814 am_cv_CC_dependencies_compiler_type=none
3815 fi
3816
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3819 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3821
3822 if
3823 test "x$enable_dependency_tracking" != xno \
3824 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3825 am__fastdepCC_TRUE=
3826 am__fastdepCC_FALSE='#'
3827 else
3828 am__fastdepCC_TRUE='#'
3829 am__fastdepCC_FALSE=
3830 fi
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3835 if ${ac_cv_prog_cc_c99+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c99=no
3839 ac_save_CC=$CC
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdarg.h>
3843 #include <stdbool.h>
3844 #include <stdlib.h>
3845 #include <wchar.h>
3846 #include <stdio.h>
3847
3848 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3849 #define debug(...) fprintf (stderr, __VA_ARGS__)
3850 #define showlist(...) puts (#__VA_ARGS__)
3851 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3852 static void
3853 test_varargs_macros (void)
3854 {
3855 int x = 1234;
3856 int y = 5678;
3857 debug ("Flag");
3858 debug ("X = %d\n", x);
3859 showlist (The first, second, and third items.);
3860 report (x>y, "x is %d but y is %d", x, y);
3861 }
3862
3863 // Check long long types.
3864 #define BIG64 18446744073709551615ull
3865 #define BIG32 4294967295ul
3866 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3867 #if !BIG_OK
3868 your preprocessor is broken;
3869 #endif
3870 #if BIG_OK
3871 #else
3872 your preprocessor is broken;
3873 #endif
3874 static long long int bignum = -9223372036854775807LL;
3875 static unsigned long long int ubignum = BIG64;
3876
3877 struct incomplete_array
3878 {
3879 int datasize;
3880 double data[];
3881 };
3882
3883 struct named_init {
3884 int number;
3885 const wchar_t *name;
3886 double average;
3887 };
3888
3889 typedef const char *ccp;
3890
3891 static inline int
3892 test_restrict (ccp restrict text)
3893 {
3894 // See if C++-style comments work.
3895 // Iterate through items via the restricted pointer.
3896 // Also check for declarations in for loops.
3897 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3898 continue;
3899 return 0;
3900 }
3901
3902 // Check varargs and va_copy.
3903 static void
3904 test_varargs (const char *format, ...)
3905 {
3906 va_list args;
3907 va_start (args, format);
3908 va_list args_copy;
3909 va_copy (args_copy, args);
3910
3911 const char *str;
3912 int number;
3913 float fnumber;
3914
3915 while (*format)
3916 {
3917 switch (*format++)
3918 {
3919 case 's': // string
3920 str = va_arg (args_copy, const char *);
3921 break;
3922 case 'd': // int
3923 number = va_arg (args_copy, int);
3924 break;
3925 case 'f': // float
3926 fnumber = va_arg (args_copy, double);
3927 break;
3928 default:
3929 break;
3930 }
3931 }
3932 va_end (args_copy);
3933 va_end (args);
3934 }
3935
3936 int
3937 main ()
3938 {
3939
3940 // Check bool.
3941 _Bool success = false;
3942
3943 // Check restrict.
3944 if (test_restrict ("String literal") == 0)
3945 success = true;
3946 char *restrict newvar = "Another string";
3947
3948 // Check varargs.
3949 test_varargs ("s, d' f .", "string", 65, 34.234);
3950 test_varargs_macros ();
3951
3952 // Check flexible array members.
3953 struct incomplete_array *ia =
3954 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3955 ia->datasize = 10;
3956 for (int i = 0; i < ia->datasize; ++i)
3957 ia->data[i] = i * 1.234;
3958
3959 // Check named initializers.
3960 struct named_init ni = {
3961 .number = 34,
3962 .name = L"Test wide string",
3963 .average = 543.34343,
3964 };
3965
3966 ni.number = 58;
3967
3968 int dynamic_array[ni.number];
3969 dynamic_array[ni.number - 1] = 543;
3970
3971 // work around unused variable warnings
3972 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3973 || dynamic_array[ni.number - 1] != 543);
3974
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3980 do
3981 CC="$ac_save_CC $ac_arg"
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_cv_prog_cc_c99=$ac_arg
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext
3986 test "x$ac_cv_prog_cc_c99" != "xno" && break
3987 done
3988 rm -f conftest.$ac_ext
3989 CC=$ac_save_CC
3990
3991 fi
3992 # AC_CACHE_VAL
3993 case "x$ac_cv_prog_cc_c99" in
3994 x)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3996 $as_echo "none needed" >&6; } ;;
3997 xno)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3999 $as_echo "unsupported" >&6; } ;;
4000 *)
4001 CC="$CC $ac_cv_prog_cc_c99"
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4003 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4004 esac
4005 if test "x$ac_cv_prog_cc_c99" != xno; then :
4006
4007 fi
4008
4009
4010
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4018 # On Suns, sometimes $CPP names a directory.
4019 if test -n "$CPP" && test -d "$CPP"; then
4020 CPP=
4021 fi
4022 if test -z "$CPP"; then
4023 if ${ac_cv_prog_CPP+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 # Double quotes because CPP needs to be expanded
4027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4028 do
4029 ac_preproc_ok=false
4030 for ac_c_preproc_warn_flag in '' yes
4031 do
4032 # Use a header file that comes with gcc, so configuring glibc
4033 # with a fresh cross-compiler works.
4034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4035 # <limits.h> exists even on freestanding compilers.
4036 # On the NeXT, cc -E runs the code through the compiler's parser,
4037 # not just through cpp. "Syntax error" is here to catch this case.
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045 Syntax error
4046 _ACEOF
4047 if ac_fn_c_try_cpp "$LINENO"; then :
4048
4049 else
4050 # Broken: fails on valid input.
4051 continue
4052 fi
4053 rm -f conftest.err conftest.i conftest.$ac_ext
4054
4055 # OK, works on sane cases. Now check whether nonexistent headers
4056 # can be detected and how.
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #include <ac_nonexistent.h>
4060 _ACEOF
4061 if ac_fn_c_try_cpp "$LINENO"; then :
4062 # Broken: success on invalid input.
4063 continue
4064 else
4065 # Passes both tests.
4066 ac_preproc_ok=:
4067 break
4068 fi
4069 rm -f conftest.err conftest.i conftest.$ac_ext
4070
4071 done
4072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4073 rm -f conftest.i conftest.err conftest.$ac_ext
4074 if $ac_preproc_ok; then :
4075 break
4076 fi
4077
4078 done
4079 ac_cv_prog_CPP=$CPP
4080
4081 fi
4082 CPP=$ac_cv_prog_CPP
4083 else
4084 ac_cv_prog_CPP=$CPP
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4087 $as_echo "$CPP" >&6; }
4088 ac_preproc_ok=false
4089 for ac_c_preproc_warn_flag in '' yes
4090 do
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #ifdef __STDC__
4100 # include <limits.h>
4101 #else
4102 # include <assert.h>
4103 #endif
4104 Syntax error
4105 _ACEOF
4106 if ac_fn_c_try_cpp "$LINENO"; then :
4107
4108 else
4109 # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.i conftest.$ac_ext
4113
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #include <ac_nonexistent.h>
4119 _ACEOF
4120 if ac_fn_c_try_cpp "$LINENO"; then :
4121 # Broken: success on invalid input.
4122 continue
4123 else
4124 # Passes both tests.
4125 ac_preproc_ok=:
4126 break
4127 fi
4128 rm -f conftest.err conftest.i conftest.$ac_ext
4129
4130 done
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.i conftest.err conftest.$ac_ext
4133 if $ac_preproc_ok; then :
4134
4135 else
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4139 See \`config.log' for more details" "$LINENO" 5; }
4140 fi
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4151 if ${ac_cv_path_GREP+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test -z "$GREP"; then
4155 ac_path_GREP_found=false
4156 # Loop through the user's path and test for each of PROGNAME-LIST
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_prog in grep ggrep; do
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4165 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4166 # Check for GNU ac_path_GREP and select it if it is found.
4167 # Check for GNU $ac_path_GREP
4168 case `"$ac_path_GREP" --version 2>&1` in
4169 *GNU*)
4170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4171 *)
4172 ac_count=0
4173 $as_echo_n 0123456789 >"conftest.in"
4174 while :
4175 do
4176 cat "conftest.in" "conftest.in" >"conftest.tmp"
4177 mv "conftest.tmp" "conftest.in"
4178 cp "conftest.in" "conftest.nl"
4179 $as_echo 'GREP' >> "conftest.nl"
4180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4182 as_fn_arith $ac_count + 1 && ac_count=$as_val
4183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4184 # Best one so far, save it but keep looking for a better one
4185 ac_cv_path_GREP="$ac_path_GREP"
4186 ac_path_GREP_max=$ac_count
4187 fi
4188 # 10*(2^10) chars as input seems more than enough
4189 test $ac_count -gt 10 && break
4190 done
4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192 esac
4193
4194 $ac_path_GREP_found && break 3
4195 done
4196 done
4197 done
4198 IFS=$as_save_IFS
4199 if test -z "$ac_cv_path_GREP"; then
4200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201 fi
4202 else
4203 ac_cv_path_GREP=$GREP
4204 fi
4205
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4208 $as_echo "$ac_cv_path_GREP" >&6; }
4209 GREP="$ac_cv_path_GREP"
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4213 $as_echo_n "checking for egrep... " >&6; }
4214 if ${ac_cv_path_EGREP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4218 then ac_cv_path_EGREP="$GREP -E"
4219 else
4220 if test -z "$EGREP"; then
4221 ac_path_EGREP_found=false
4222 # Loop through the user's path and test for each of PROGNAME-LIST
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_prog in egrep; do
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4231 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4232 # Check for GNU ac_path_EGREP and select it if it is found.
4233 # Check for GNU $ac_path_EGREP
4234 case `"$ac_path_EGREP" --version 2>&1` in
4235 *GNU*)
4236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4237 *)
4238 ac_count=0
4239 $as_echo_n 0123456789 >"conftest.in"
4240 while :
4241 do
4242 cat "conftest.in" "conftest.in" >"conftest.tmp"
4243 mv "conftest.tmp" "conftest.in"
4244 cp "conftest.in" "conftest.nl"
4245 $as_echo 'EGREP' >> "conftest.nl"
4246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248 as_fn_arith $ac_count + 1 && ac_count=$as_val
4249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4250 # Best one so far, save it but keep looking for a better one
4251 ac_cv_path_EGREP="$ac_path_EGREP"
4252 ac_path_EGREP_max=$ac_count
4253 fi
4254 # 10*(2^10) chars as input seems more than enough
4255 test $ac_count -gt 10 && break
4256 done
4257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258 esac
4259
4260 $ac_path_EGREP_found && break 3
4261 done
4262 done
4263 done
4264 IFS=$as_save_IFS
4265 if test -z "$ac_cv_path_EGREP"; then
4266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267 fi
4268 else
4269 ac_cv_path_EGREP=$EGREP
4270 fi
4271
4272 fi
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4275 $as_echo "$ac_cv_path_EGREP" >&6; }
4276 EGREP="$ac_cv_path_EGREP"
4277
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4280 $as_echo_n "checking for ANSI C header files... " >&6; }
4281 if ${ac_cv_header_stdc+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <stdlib.h>
4287 #include <stdarg.h>
4288 #include <string.h>
4289 #include <float.h>
4290
4291 int
4292 main ()
4293 {
4294
4295 ;
4296 return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300 ac_cv_header_stdc=yes
4301 else
4302 ac_cv_header_stdc=no
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305
4306 if test $ac_cv_header_stdc = yes; then
4307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310 #include <string.h>
4311
4312 _ACEOF
4313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314 $EGREP "memchr" >/dev/null 2>&1; then :
4315
4316 else
4317 ac_cv_header_stdc=no
4318 fi
4319 rm -f conftest*
4320
4321 fi
4322
4323 if test $ac_cv_header_stdc = yes; then
4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <stdlib.h>
4328
4329 _ACEOF
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331 $EGREP "free" >/dev/null 2>&1; then :
4332
4333 else
4334 ac_cv_header_stdc=no
4335 fi
4336 rm -f conftest*
4337
4338 fi
4339
4340 if test $ac_cv_header_stdc = yes; then
4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342 if test "$cross_compiling" = yes; then :
4343 :
4344 else
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ctype.h>
4348 #include <stdlib.h>
4349 #if ((' ' & 0x0FF) == 0x020)
4350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352 #else
4353 # define ISLOWER(c) \
4354 (('a' <= (c) && (c) <= 'i') \
4355 || ('j' <= (c) && (c) <= 'r') \
4356 || ('s' <= (c) && (c) <= 'z'))
4357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4358 #endif
4359
4360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361 int
4362 main ()
4363 {
4364 int i;
4365 for (i = 0; i < 256; i++)
4366 if (XOR (islower (i), ISLOWER (i))
4367 || toupper (i) != TOUPPER (i))
4368 return 2;
4369 return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_c_try_run "$LINENO"; then :
4373
4374 else
4375 ac_cv_header_stdc=no
4376 fi
4377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4378 conftest.$ac_objext conftest.beam conftest.$ac_ext
4379 fi
4380
4381 fi
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4384 $as_echo "$ac_cv_header_stdc" >&6; }
4385 if test $ac_cv_header_stdc = yes; then
4386
4387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4388
4389 fi
4390
4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4393 inttypes.h stdint.h unistd.h
4394 do :
4395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4397 "
4398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4399 cat >>confdefs.h <<_ACEOF
4400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401 _ACEOF
4402
4403 fi
4404
4405 done
4406
4407
4408
4409
4410
4411
4412 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4413 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4414 CLANGCC="yes"
4415 else
4416 CLANGCC="no"
4417 fi
4418
4419 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4420 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4421 INTELCC="yes"
4422 else
4423 INTELCC="no"
4424 fi
4425
4426 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4427 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4428 SUNCC="yes"
4429 else
4430 SUNCC="no"
4431 fi
4432
4433
4434
4435
4436
4437
4438
4439
4440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4441 if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 case $PKG_CONFIG in
4450 [\\/]* | ?:[\\/]*)
4451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4452 ;;
4453 *)
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4456 do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465 done
4466 done
4467 IFS=$as_save_IFS
4468
4469 ;;
4470 esac
4471 fi
4472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4473 if test -n "$PKG_CONFIG"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4475 $as_echo "$PKG_CONFIG" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482 fi
4483 if test -z "$ac_cv_path_PKG_CONFIG"; then
4484 ac_pt_PKG_CONFIG=$PKG_CONFIG
4485 # Extract the first word of "pkg-config", so it can be a program name with args.
4486 set dummy pkg-config; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 case $ac_pt_PKG_CONFIG in
4493 [\\/]* | ?:[\\/]*)
4494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4495 ;;
4496 *)
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 ;;
4513 esac
4514 fi
4515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4516 if test -n "$ac_pt_PKG_CONFIG"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4518 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523
4524 if test "x$ac_pt_PKG_CONFIG" = x; then
4525 PKG_CONFIG=""
4526 else
4527 case $cross_compiling:$ac_tool_warned in
4528 yes:)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4532 esac
4533 PKG_CONFIG=$ac_pt_PKG_CONFIG
4534 fi
4535 else
4536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4537 fi
4538
4539 fi
4540 if test -n "$PKG_CONFIG"; then
4541 _pkg_min_version=0.9.0
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4543 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4546 $as_echo "yes" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 PKG_CONFIG=""
4551 fi
4552 fi
4553 # Make sure we can run config.sub.
4554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4555 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4558 $as_echo_n "checking build system type... " >&6; }
4559 if ${ac_cv_build+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 ac_build_alias=$build_alias
4563 test "x$ac_build_alias" = x &&
4564 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4565 test "x$ac_build_alias" = x &&
4566 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4572 $as_echo "$ac_cv_build" >&6; }
4573 case $ac_cv_build in
4574 *-*-*) ;;
4575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4576 esac
4577 build=$ac_cv_build
4578 ac_save_IFS=$IFS; IFS='-'
4579 set x $ac_cv_build
4580 shift
4581 build_cpu=$1
4582 build_vendor=$2
4583 shift; shift
4584 # Remember, the first character of IFS is used to create $*,
4585 # except with old shells:
4586 build_os=$*
4587 IFS=$ac_save_IFS
4588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4589
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4592 $as_echo_n "checking host system type... " >&6; }
4593 if ${ac_cv_host+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test "x$host_alias" = x; then
4597 ac_cv_host=$ac_cv_build
4598 else
4599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4601 fi
4602
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4605 $as_echo "$ac_cv_host" >&6; }
4606 case $ac_cv_host in
4607 *-*-*) ;;
4608 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4609 esac
4610 host=$ac_cv_host
4611 ac_save_IFS=$IFS; IFS='-'
4612 set x $ac_cv_host
4613 shift
4614 host_cpu=$1
4615 host_vendor=$2
4616 shift; shift
4617 # Remember, the first character of IFS is used to create $*,
4618 # except with old shells:
4619 host_os=$*
4620 IFS=$ac_save_IFS
4621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4626 if ${ac_cv_path_SED+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4630 for ac_i in 1 2 3 4 5 6 7; do
4631 ac_script="$ac_script$as_nl$ac_script"
4632 done
4633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4634 { ac_script=; unset ac_script;}
4635 if test -z "$SED"; then
4636 ac_path_SED_found=false
4637 # Loop through the user's path and test for each of PROGNAME-LIST
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_prog in sed gsed; do
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4646 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4647 # Check for GNU ac_path_SED and select it if it is found.
4648 # Check for GNU $ac_path_SED
4649 case `"$ac_path_SED" --version 2>&1` in
4650 *GNU*)
4651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4652 *)
4653 ac_count=0
4654 $as_echo_n 0123456789 >"conftest.in"
4655 while :
4656 do
4657 cat "conftest.in" "conftest.in" >"conftest.tmp"
4658 mv "conftest.tmp" "conftest.in"
4659 cp "conftest.in" "conftest.nl"
4660 $as_echo '' >> "conftest.nl"
4661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663 as_fn_arith $ac_count + 1 && ac_count=$as_val
4664 if test $ac_count -gt ${ac_path_SED_max-0}; then
4665 # Best one so far, save it but keep looking for a better one
4666 ac_cv_path_SED="$ac_path_SED"
4667 ac_path_SED_max=$ac_count
4668 fi
4669 # 10*(2^10) chars as input seems more than enough
4670 test $ac_count -gt 10 && break
4671 done
4672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4673 esac
4674
4675 $ac_path_SED_found && break 3
4676 done
4677 done
4678 done
4679 IFS=$as_save_IFS
4680 if test -z "$ac_cv_path_SED"; then
4681 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4682 fi
4683 else
4684 ac_cv_path_SED=$SED
4685 fi
4686
4687 fi
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4689 $as_echo "$ac_cv_path_SED" >&6; }
4690 SED="$ac_cv_path_SED"
4691 rm -f conftest.sed
4692
4693
4694
4695
4696
4697
4698 # Check whether --enable-selective-werror was given.
4699 if test "${enable_selective_werror+set}" = set; then :
4700 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4701 else
4702 SELECTIVE_WERROR=yes
4703 fi
4704
4705
4706
4707
4708
4709 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4710 if test "x$SUNCC" = "xyes"; then
4711 BASE_CFLAGS="-v"
4712 else
4713 BASE_CFLAGS=""
4714 fi
4715
4716 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730 xorg_testset_save_CFLAGS="$CFLAGS"
4731
4732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 int i;
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 xorg_cv_cc_flag_unknown_warning_option=yes
4745 else
4746 xorg_cv_cc_flag_unknown_warning_option=no
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4753 CFLAGS="$xorg_testset_save_CFLAGS"
4754 fi
4755
4756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4759 fi
4760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 int i;
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 xorg_cv_cc_flag_unused_command_line_argument=yes
4772 else
4773 xorg_cv_cc_flag_unused_command_line_argument=no
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4780 CFLAGS="$xorg_testset_save_CFLAGS"
4781 fi
4782
4783 found="no"
4784
4785 if test $found = "no" ; then
4786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4788 fi
4789
4790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4792 fi
4793
4794 CFLAGS="$CFLAGS -Wall"
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4797 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4798 cacheid=xorg_cv_cc_flag__Wall
4799 if eval \${$cacheid+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 int i;
4805 int
4806 main ()
4807 {
4808
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_c_try_link "$LINENO"; then :
4814 eval $cacheid=yes
4815 else
4816 eval $cacheid=no
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext \
4819 conftest$ac_exeext conftest.$ac_ext
4820 fi
4821
4822
4823 CFLAGS="$xorg_testset_save_CFLAGS"
4824
4825 eval supported=\$$cacheid
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4827 $as_echo "$supported" >&6; }
4828 if test "$supported" = "yes" ; then
4829 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4830 found="yes"
4831 fi
4832 fi
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848 xorg_testset_save_CFLAGS="$CFLAGS"
4849
4850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 int i;
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862 xorg_cv_cc_flag_unknown_warning_option=yes
4863 else
4864 xorg_cv_cc_flag_unknown_warning_option=no
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4871 CFLAGS="$xorg_testset_save_CFLAGS"
4872 fi
4873
4874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877 fi
4878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 int i;
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 xorg_cv_cc_flag_unused_command_line_argument=yes
4890 else
4891 xorg_cv_cc_flag_unused_command_line_argument=no
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4898 CFLAGS="$xorg_testset_save_CFLAGS"
4899 fi
4900
4901 found="no"
4902
4903 if test $found = "no" ; then
4904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906 fi
4907
4908 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4910 fi
4911
4912 CFLAGS="$CFLAGS -Wpointer-arith"
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4915 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4916 cacheid=xorg_cv_cc_flag__Wpointer_arith
4917 if eval \${$cacheid+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 int i;
4923 int
4924 main ()
4925 {
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 if ac_fn_c_try_link "$LINENO"; then :
4932 eval $cacheid=yes
4933 else
4934 eval $cacheid=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext \
4937 conftest$ac_exeext conftest.$ac_ext
4938 fi
4939
4940
4941 CFLAGS="$xorg_testset_save_CFLAGS"
4942
4943 eval supported=\$$cacheid
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4945 $as_echo "$supported" >&6; }
4946 if test "$supported" = "yes" ; then
4947 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4948 found="yes"
4949 fi
4950 fi
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966 xorg_testset_save_CFLAGS="$CFLAGS"
4967
4968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 int i;
4978 _ACEOF
4979 if ac_fn_c_try_compile "$LINENO"; then :
4980 xorg_cv_cc_flag_unknown_warning_option=yes
4981 else
4982 xorg_cv_cc_flag_unknown_warning_option=no
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4989 CFLAGS="$xorg_testset_save_CFLAGS"
4990 fi
4991
4992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995 fi
4996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 int i;
5005 _ACEOF
5006 if ac_fn_c_try_compile "$LINENO"; then :
5007 xorg_cv_cc_flag_unused_command_line_argument=yes
5008 else
5009 xorg_cv_cc_flag_unused_command_line_argument=no
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5016 CFLAGS="$xorg_testset_save_CFLAGS"
5017 fi
5018
5019 found="no"
5020
5021 if test $found = "no" ; then
5022 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024 fi
5025
5026 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5028 fi
5029
5030 CFLAGS="$CFLAGS -Wmissing-declarations"
5031
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5033 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5034 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5035 if eval \${$cacheid+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 int i;
5041 int
5042 main ()
5043 {
5044
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 if ac_fn_c_try_link "$LINENO"; then :
5050 eval $cacheid=yes
5051 else
5052 eval $cacheid=no
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext \
5055 conftest$ac_exeext conftest.$ac_ext
5056 fi
5057
5058
5059 CFLAGS="$xorg_testset_save_CFLAGS"
5060
5061 eval supported=\$$cacheid
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5063 $as_echo "$supported" >&6; }
5064 if test "$supported" = "yes" ; then
5065 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5066 found="yes"
5067 fi
5068 fi
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084 xorg_testset_save_CFLAGS="$CFLAGS"
5085
5086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 int i;
5096 _ACEOF
5097 if ac_fn_c_try_compile "$LINENO"; then :
5098 xorg_cv_cc_flag_unknown_warning_option=yes
5099 else
5100 xorg_cv_cc_flag_unknown_warning_option=no
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5108 fi
5109
5110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5113 fi
5114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 int i;
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125 xorg_cv_cc_flag_unused_command_line_argument=yes
5126 else
5127 xorg_cv_cc_flag_unused_command_line_argument=no
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5134 CFLAGS="$xorg_testset_save_CFLAGS"
5135 fi
5136
5137 found="no"
5138
5139 if test $found = "no" ; then
5140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142 fi
5143
5144 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5146 fi
5147
5148 CFLAGS="$CFLAGS -Wformat=2"
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5151 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5152 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5153 if eval \${$cacheid+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158 int i;
5159 int
5160 main ()
5161 {
5162
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_link "$LINENO"; then :
5168 eval $cacheid=yes
5169 else
5170 eval $cacheid=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext \
5173 conftest$ac_exeext conftest.$ac_ext
5174 fi
5175
5176
5177 CFLAGS="$xorg_testset_save_CFLAGS"
5178
5179 eval supported=\$$cacheid
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5181 $as_echo "$supported" >&6; }
5182 if test "$supported" = "yes" ; then
5183 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5184 found="yes"
5185 fi
5186 fi
5187
5188 if test $found = "no" ; then
5189 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5191 fi
5192
5193 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5195 fi
5196
5197 CFLAGS="$CFLAGS -Wformat"
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5200 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5201 cacheid=xorg_cv_cc_flag__Wformat
5202 if eval \${$cacheid+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 int i;
5208 int
5209 main ()
5210 {
5211
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 if ac_fn_c_try_link "$LINENO"; then :
5217 eval $cacheid=yes
5218 else
5219 eval $cacheid=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext \
5222 conftest$ac_exeext conftest.$ac_ext
5223 fi
5224
5225
5226 CFLAGS="$xorg_testset_save_CFLAGS"
5227
5228 eval supported=\$$cacheid
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5230 $as_echo "$supported" >&6; }
5231 if test "$supported" = "yes" ; then
5232 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5233 found="yes"
5234 fi
5235 fi
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 xorg_testset_save_CFLAGS="$CFLAGS"
5254
5255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5258 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5259 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 int i;
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267 xorg_cv_cc_flag_unknown_warning_option=yes
5268 else
5269 xorg_cv_cc_flag_unknown_warning_option=no
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5274 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5276 CFLAGS="$xorg_testset_save_CFLAGS"
5277 fi
5278
5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5282 fi
5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5285 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5286 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 int i;
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294 xorg_cv_cc_flag_unused_command_line_argument=yes
5295 else
5296 xorg_cv_cc_flag_unused_command_line_argument=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5301 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5303 CFLAGS="$xorg_testset_save_CFLAGS"
5304 fi
5305
5306 found="no"
5307
5308 if test $found = "no" ; then
5309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311 fi
5312
5313 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315 fi
5316
5317 CFLAGS="$CFLAGS -Wstrict-prototypes"
5318
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5320 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5321 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5322 if eval \${$cacheid+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 int i;
5328 int
5329 main ()
5330 {
5331
5332 ;
5333 return 0;
5334 }
5335 _ACEOF
5336 if ac_fn_c_try_link "$LINENO"; then :
5337 eval $cacheid=yes
5338 else
5339 eval $cacheid=no
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext \
5342 conftest$ac_exeext conftest.$ac_ext
5343 fi
5344
5345
5346 CFLAGS="$xorg_testset_save_CFLAGS"
5347
5348 eval supported=\$$cacheid
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5350 $as_echo "$supported" >&6; }
5351 if test "$supported" = "yes" ; then
5352 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5353 found="yes"
5354 fi
5355 fi
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371 xorg_testset_save_CFLAGS="$CFLAGS"
5372
5373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5376 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5377 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382 int i;
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 xorg_cv_cc_flag_unknown_warning_option=yes
5386 else
5387 xorg_cv_cc_flag_unknown_warning_option=no
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5392 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5394 CFLAGS="$xorg_testset_save_CFLAGS"
5395 fi
5396
5397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400 fi
5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5403 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5404 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 int i;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 xorg_cv_cc_flag_unused_command_line_argument=yes
5413 else
5414 xorg_cv_cc_flag_unused_command_line_argument=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5419 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5421 CFLAGS="$xorg_testset_save_CFLAGS"
5422 fi
5423
5424 found="no"
5425
5426 if test $found = "no" ; then
5427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429 fi
5430
5431 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433 fi
5434
5435 CFLAGS="$CFLAGS -Wmissing-prototypes"
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5438 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5439 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5440 if eval \${$cacheid+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 int i;
5446 int
5447 main ()
5448 {
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_link "$LINENO"; then :
5455 eval $cacheid=yes
5456 else
5457 eval $cacheid=no
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext \
5460 conftest$ac_exeext conftest.$ac_ext
5461 fi
5462
5463
5464 CFLAGS="$xorg_testset_save_CFLAGS"
5465
5466 eval supported=\$$cacheid
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5468 $as_echo "$supported" >&6; }
5469 if test "$supported" = "yes" ; then
5470 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5471 found="yes"
5472 fi
5473 fi
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 xorg_testset_save_CFLAGS="$CFLAGS"
5490
5491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 int i;
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"; then :
5503 xorg_cv_cc_flag_unknown_warning_option=yes
5504 else
5505 xorg_cv_cc_flag_unknown_warning_option=no
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5512 CFLAGS="$xorg_testset_save_CFLAGS"
5513 fi
5514
5515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518 fi
5519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 int i;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 xorg_cv_cc_flag_unused_command_line_argument=yes
5531 else
5532 xorg_cv_cc_flag_unused_command_line_argument=no
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 fi
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5539 CFLAGS="$xorg_testset_save_CFLAGS"
5540 fi
5541
5542 found="no"
5543
5544 if test $found = "no" ; then
5545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 fi
5548
5549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551 fi
5552
5553 CFLAGS="$CFLAGS -Wnested-externs"
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5556 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5557 cacheid=xorg_cv_cc_flag__Wnested_externs
5558 if eval \${$cacheid+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 int i;
5564 int
5565 main ()
5566 {
5567
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 if ac_fn_c_try_link "$LINENO"; then :
5573 eval $cacheid=yes
5574 else
5575 eval $cacheid=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext \
5578 conftest$ac_exeext conftest.$ac_ext
5579 fi
5580
5581
5582 CFLAGS="$xorg_testset_save_CFLAGS"
5583
5584 eval supported=\$$cacheid
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5586 $as_echo "$supported" >&6; }
5587 if test "$supported" = "yes" ; then
5588 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5589 found="yes"
5590 fi
5591 fi
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 xorg_testset_save_CFLAGS="$CFLAGS"
5608
5609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 int i;
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 xorg_cv_cc_flag_unknown_warning_option=yes
5622 else
5623 xorg_cv_cc_flag_unknown_warning_option=no
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5630 CFLAGS="$xorg_testset_save_CFLAGS"
5631 fi
5632
5633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636 fi
5637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 int i;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 xorg_cv_cc_flag_unused_command_line_argument=yes
5649 else
5650 xorg_cv_cc_flag_unused_command_line_argument=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5657 CFLAGS="$xorg_testset_save_CFLAGS"
5658 fi
5659
5660 found="no"
5661
5662 if test $found = "no" ; then
5663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665 fi
5666
5667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5669 fi
5670
5671 CFLAGS="$CFLAGS -Wbad-function-cast"
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5674 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5675 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5676 if eval \${$cacheid+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 int i;
5682 int
5683 main ()
5684 {
5685
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 if ac_fn_c_try_link "$LINENO"; then :
5691 eval $cacheid=yes
5692 else
5693 eval $cacheid=no
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext \
5696 conftest$ac_exeext conftest.$ac_ext
5697 fi
5698
5699
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701
5702 eval supported=\$$cacheid
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5704 $as_echo "$supported" >&6; }
5705 if test "$supported" = "yes" ; then
5706 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5707 found="yes"
5708 fi
5709 fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 int i;
5737 _ACEOF
5738 if ac_fn_c_try_compile "$LINENO"; then :
5739 xorg_cv_cc_flag_unknown_warning_option=yes
5740 else
5741 xorg_cv_cc_flag_unknown_warning_option=no
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5748 CFLAGS="$xorg_testset_save_CFLAGS"
5749 fi
5750
5751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754 fi
5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 int i;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 xorg_cv_cc_flag_unused_command_line_argument=yes
5767 else
5768 xorg_cv_cc_flag_unused_command_line_argument=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5776 fi
5777
5778 found="no"
5779
5780 if test $found = "no" ; then
5781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783 fi
5784
5785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787 fi
5788
5789 CFLAGS="$CFLAGS -Wold-style-definition"
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5792 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5793 cacheid=xorg_cv_cc_flag__Wold_style_definition
5794 if eval \${$cacheid+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 int i;
5800 int
5801 main ()
5802 {
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_c_try_link "$LINENO"; then :
5809 eval $cacheid=yes
5810 else
5811 eval $cacheid=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
5815 fi
5816
5817
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820 eval supported=\$$cacheid
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822 $as_echo "$supported" >&6; }
5823 if test "$supported" = "yes" ; then
5824 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5825 found="yes"
5826 fi
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 xorg_testset_save_CFLAGS="$CFLAGS"
5844
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 int i;
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then :
5857 xorg_cv_cc_flag_unknown_warning_option=yes
5858 else
5859 xorg_cv_cc_flag_unknown_warning_option=no
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5866 CFLAGS="$xorg_testset_save_CFLAGS"
5867 fi
5868
5869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 fi
5873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 int i;
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884 xorg_cv_cc_flag_unused_command_line_argument=yes
5885 else
5886 xorg_cv_cc_flag_unused_command_line_argument=no
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5893 CFLAGS="$xorg_testset_save_CFLAGS"
5894 fi
5895
5896 found="no"
5897
5898 if test $found = "no" ; then
5899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5901 fi
5902
5903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905 fi
5906
5907 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5910 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5911 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5912 if eval \${$cacheid+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 int i;
5918 int
5919 main ()
5920 {
5921
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 if ac_fn_c_try_link "$LINENO"; then :
5927 eval $cacheid=yes
5928 else
5929 eval $cacheid=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 fi
5934
5935
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937
5938 eval supported=\$$cacheid
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5940 $as_echo "$supported" >&6; }
5941 if test "$supported" = "yes" ; then
5942 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5943 found="yes"
5944 fi
5945 fi
5946
5947
5948
5949
5950
5951 # This chunk adds additional warnings that could catch undesired effects.
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 xorg_testset_save_CFLAGS="$CFLAGS"
5966
5967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 int i;
5977 _ACEOF
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979 xorg_cv_cc_flag_unknown_warning_option=yes
5980 else
5981 xorg_cv_cc_flag_unknown_warning_option=no
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5988 CFLAGS="$xorg_testset_save_CFLAGS"
5989 fi
5990
5991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994 fi
5995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 int i;
6004 _ACEOF
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 xorg_cv_cc_flag_unused_command_line_argument=yes
6007 else
6008 xorg_cv_cc_flag_unused_command_line_argument=no
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6015 CFLAGS="$xorg_testset_save_CFLAGS"
6016 fi
6017
6018 found="no"
6019
6020 if test $found = "no" ; then
6021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6023 fi
6024
6025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6027 fi
6028
6029 CFLAGS="$CFLAGS -Wunused"
6030
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6032 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6033 cacheid=xorg_cv_cc_flag__Wunused
6034 if eval \${$cacheid+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 int i;
6040 int
6041 main ()
6042 {
6043
6044 ;
6045 return 0;
6046 }
6047 _ACEOF
6048 if ac_fn_c_try_link "$LINENO"; then :
6049 eval $cacheid=yes
6050 else
6051 eval $cacheid=no
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext \
6054 conftest$ac_exeext conftest.$ac_ext
6055 fi
6056
6057
6058 CFLAGS="$xorg_testset_save_CFLAGS"
6059
6060 eval supported=\$$cacheid
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6062 $as_echo "$supported" >&6; }
6063 if test "$supported" = "yes" ; then
6064 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6065 found="yes"
6066 fi
6067 fi
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083 xorg_testset_save_CFLAGS="$CFLAGS"
6084
6085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 int i;
6095 _ACEOF
6096 if ac_fn_c_try_compile "$LINENO"; then :
6097 xorg_cv_cc_flag_unknown_warning_option=yes
6098 else
6099 xorg_cv_cc_flag_unknown_warning_option=no
6100 fi
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6106 CFLAGS="$xorg_testset_save_CFLAGS"
6107 fi
6108
6109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112 fi
6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121 int i;
6122 _ACEOF
6123 if ac_fn_c_try_compile "$LINENO"; then :
6124 xorg_cv_cc_flag_unused_command_line_argument=yes
6125 else
6126 xorg_cv_cc_flag_unused_command_line_argument=no
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6133 CFLAGS="$xorg_testset_save_CFLAGS"
6134 fi
6135
6136 found="no"
6137
6138 if test $found = "no" ; then
6139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141 fi
6142
6143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6145 fi
6146
6147 CFLAGS="$CFLAGS -Wuninitialized"
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6150 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6151 cacheid=xorg_cv_cc_flag__Wuninitialized
6152 if eval \${$cacheid+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 int i;
6158 int
6159 main ()
6160 {
6161
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 if ac_fn_c_try_link "$LINENO"; then :
6167 eval $cacheid=yes
6168 else
6169 eval $cacheid=no
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext \
6172 conftest$ac_exeext conftest.$ac_ext
6173 fi
6174
6175
6176 CFLAGS="$xorg_testset_save_CFLAGS"
6177
6178 eval supported=\$$cacheid
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6180 $as_echo "$supported" >&6; }
6181 if test "$supported" = "yes" ; then
6182 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6183 found="yes"
6184 fi
6185 fi
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 xorg_testset_save_CFLAGS="$CFLAGS"
6202
6203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 int i;
6213 _ACEOF
6214 if ac_fn_c_try_compile "$LINENO"; then :
6215 xorg_cv_cc_flag_unknown_warning_option=yes
6216 else
6217 xorg_cv_cc_flag_unknown_warning_option=no
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6224 CFLAGS="$xorg_testset_save_CFLAGS"
6225 fi
6226
6227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6230 fi
6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 int i;
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242 xorg_cv_cc_flag_unused_command_line_argument=yes
6243 else
6244 xorg_cv_cc_flag_unused_command_line_argument=no
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6251 CFLAGS="$xorg_testset_save_CFLAGS"
6252 fi
6253
6254 found="no"
6255
6256 if test $found = "no" ; then
6257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6259 fi
6260
6261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6263 fi
6264
6265 CFLAGS="$CFLAGS -Wshadow"
6266
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6268 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6269 cacheid=xorg_cv_cc_flag__Wshadow
6270 if eval \${$cacheid+:} false; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 int i;
6276 int
6277 main ()
6278 {
6279
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_c_try_link "$LINENO"; then :
6285 eval $cacheid=yes
6286 else
6287 eval $cacheid=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
6291 fi
6292
6293
6294 CFLAGS="$xorg_testset_save_CFLAGS"
6295
6296 eval supported=\$$cacheid
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6298 $as_echo "$supported" >&6; }
6299 if test "$supported" = "yes" ; then
6300 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6301 found="yes"
6302 fi
6303 fi
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319 xorg_testset_save_CFLAGS="$CFLAGS"
6320
6321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 int i;
6331 _ACEOF
6332 if ac_fn_c_try_compile "$LINENO"; then :
6333 xorg_cv_cc_flag_unknown_warning_option=yes
6334 else
6335 xorg_cv_cc_flag_unknown_warning_option=no
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6342 CFLAGS="$xorg_testset_save_CFLAGS"
6343 fi
6344
6345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348 fi
6349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 int i;
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360 xorg_cv_cc_flag_unused_command_line_argument=yes
6361 else
6362 xorg_cv_cc_flag_unused_command_line_argument=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6370 fi
6371
6372 found="no"
6373
6374 if test $found = "no" ; then
6375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377 fi
6378
6379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6381 fi
6382
6383 CFLAGS="$CFLAGS -Wcast-qual"
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6386 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6387 cacheid=xorg_cv_cc_flag__Wcast_qual
6388 if eval \${$cacheid+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 int i;
6394 int
6395 main ()
6396 {
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_c_try_link "$LINENO"; then :
6403 eval $cacheid=yes
6404 else
6405 eval $cacheid=no
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext \
6408 conftest$ac_exeext conftest.$ac_ext
6409 fi
6410
6411
6412 CFLAGS="$xorg_testset_save_CFLAGS"
6413
6414 eval supported=\$$cacheid
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6416 $as_echo "$supported" >&6; }
6417 if test "$supported" = "yes" ; then
6418 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6419 found="yes"
6420 fi
6421 fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 xorg_testset_save_CFLAGS="$CFLAGS"
6438
6439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448 int i;
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451 xorg_cv_cc_flag_unknown_warning_option=yes
6452 else
6453 xorg_cv_cc_flag_unknown_warning_option=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 fi
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6460 CFLAGS="$xorg_testset_save_CFLAGS"
6461 fi
6462
6463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6466 fi
6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 int i;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 xorg_cv_cc_flag_unused_command_line_argument=yes
6479 else
6480 xorg_cv_cc_flag_unused_command_line_argument=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 fi
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6488 fi
6489
6490 found="no"
6491
6492 if test $found = "no" ; then
6493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495 fi
6496
6497 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499 fi
6500
6501 CFLAGS="$CFLAGS -Wmissing-noreturn"
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6504 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6505 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6506 if eval \${$cacheid+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 int i;
6512 int
6513 main ()
6514 {
6515
6516 ;
6517 return 0;
6518 }
6519 _ACEOF
6520 if ac_fn_c_try_link "$LINENO"; then :
6521 eval $cacheid=yes
6522 else
6523 eval $cacheid=no
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext \
6526 conftest$ac_exeext conftest.$ac_ext
6527 fi
6528
6529
6530 CFLAGS="$xorg_testset_save_CFLAGS"
6531
6532 eval supported=\$$cacheid
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6534 $as_echo "$supported" >&6; }
6535 if test "$supported" = "yes" ; then
6536 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6537 found="yes"
6538 fi
6539 fi
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 xorg_testset_save_CFLAGS="$CFLAGS"
6556
6557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 int i;
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 xorg_cv_cc_flag_unknown_warning_option=yes
6570 else
6571 xorg_cv_cc_flag_unknown_warning_option=no
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6578 CFLAGS="$xorg_testset_save_CFLAGS"
6579 fi
6580
6581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584 fi
6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 int i;
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 xorg_cv_cc_flag_unused_command_line_argument=yes
6597 else
6598 xorg_cv_cc_flag_unused_command_line_argument=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6606 fi
6607
6608 found="no"
6609
6610 if test $found = "no" ; then
6611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613 fi
6614
6615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6617 fi
6618
6619 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6620
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6622 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6623 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6624 if eval \${$cacheid+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629 int i;
6630 int
6631 main ()
6632 {
6633
6634 ;
6635 return 0;
6636 }
6637 _ACEOF
6638 if ac_fn_c_try_link "$LINENO"; then :
6639 eval $cacheid=yes
6640 else
6641 eval $cacheid=no
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6645 fi
6646
6647
6648 CFLAGS="$xorg_testset_save_CFLAGS"
6649
6650 eval supported=\$$cacheid
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6652 $as_echo "$supported" >&6; }
6653 if test "$supported" = "yes" ; then
6654 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6655 found="yes"
6656 fi
6657 fi
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673 xorg_testset_save_CFLAGS="$CFLAGS"
6674
6675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int i;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 xorg_cv_cc_flag_unknown_warning_option=yes
6688 else
6689 xorg_cv_cc_flag_unknown_warning_option=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6697 fi
6698
6699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702 fi
6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 int i;
6712 _ACEOF
6713 if ac_fn_c_try_compile "$LINENO"; then :
6714 xorg_cv_cc_flag_unused_command_line_argument=yes
6715 else
6716 xorg_cv_cc_flag_unused_command_line_argument=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6723 CFLAGS="$xorg_testset_save_CFLAGS"
6724 fi
6725
6726 found="no"
6727
6728 if test $found = "no" ; then
6729 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6731 fi
6732
6733 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6735 fi
6736
6737 CFLAGS="$CFLAGS -Wredundant-decls"
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6740 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6741 cacheid=xorg_cv_cc_flag__Wredundant_decls
6742 if eval \${$cacheid+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 int i;
6748 int
6749 main ()
6750 {
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_link "$LINENO"; then :
6757 eval $cacheid=yes
6758 else
6759 eval $cacheid=no
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext \
6762 conftest$ac_exeext conftest.$ac_ext
6763 fi
6764
6765
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768 eval supported=\$$cacheid
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770 $as_echo "$supported" >&6; }
6771 if test "$supported" = "yes" ; then
6772 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6773 found="yes"
6774 fi
6775 fi
6776
6777
6778
6779 # These are currently disabled because they are noisy. They will be enabled
6780 # in the future once the codebase is sufficiently modernized to silence
6781 # them. For now, I don't want them to drown out the other warnings.
6782 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6783 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6784 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6785
6786 # Turn some warnings into errors, so we don't accidently get successful builds
6787 # when there are problems that should be fixed.
6788
6789 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803 xorg_testset_save_CFLAGS="$CFLAGS"
6804
6805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 int i;
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 xorg_cv_cc_flag_unknown_warning_option=yes
6818 else
6819 xorg_cv_cc_flag_unknown_warning_option=no
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6826 CFLAGS="$xorg_testset_save_CFLAGS"
6827 fi
6828
6829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832 fi
6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 int i;
6842 _ACEOF
6843 if ac_fn_c_try_compile "$LINENO"; then :
6844 xorg_cv_cc_flag_unused_command_line_argument=yes
6845 else
6846 xorg_cv_cc_flag_unused_command_line_argument=no
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 fi
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6853 CFLAGS="$xorg_testset_save_CFLAGS"
6854 fi
6855
6856 found="no"
6857
6858 if test $found = "no" ; then
6859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861 fi
6862
6863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6865 fi
6866
6867 CFLAGS="$CFLAGS -Werror=implicit"
6868
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6870 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6871 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6872 if eval \${$cacheid+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 int i;
6878 int
6879 main ()
6880 {
6881
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_link "$LINENO"; then :
6887 eval $cacheid=yes
6888 else
6889 eval $cacheid=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext \
6892 conftest$ac_exeext conftest.$ac_ext
6893 fi
6894
6895
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897
6898 eval supported=\$$cacheid
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6900 $as_echo "$supported" >&6; }
6901 if test "$supported" = "yes" ; then
6902 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6903 found="yes"
6904 fi
6905 fi
6906
6907 if test $found = "no" ; then
6908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910 fi
6911
6912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6914 fi
6915
6916 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6917
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6919 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6920 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6921 if eval \${$cacheid+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926 int i;
6927 int
6928 main ()
6929 {
6930
6931 ;
6932 return 0;
6933 }
6934 _ACEOF
6935 if ac_fn_c_try_link "$LINENO"; then :
6936 eval $cacheid=yes
6937 else
6938 eval $cacheid=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6942 fi
6943
6944
6945 CFLAGS="$xorg_testset_save_CFLAGS"
6946
6947 eval supported=\$$cacheid
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6949 $as_echo "$supported" >&6; }
6950 if test "$supported" = "yes" ; then
6951 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6952 found="yes"
6953 fi
6954 fi
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 xorg_testset_save_CFLAGS="$CFLAGS"
6971
6972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981 int i;
6982 _ACEOF
6983 if ac_fn_c_try_compile "$LINENO"; then :
6984 xorg_cv_cc_flag_unknown_warning_option=yes
6985 else
6986 xorg_cv_cc_flag_unknown_warning_option=no
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6993 CFLAGS="$xorg_testset_save_CFLAGS"
6994 fi
6995
6996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999 fi
7000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 int i;
7009 _ACEOF
7010 if ac_fn_c_try_compile "$LINENO"; then :
7011 xorg_cv_cc_flag_unused_command_line_argument=yes
7012 else
7013 xorg_cv_cc_flag_unused_command_line_argument=no
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 fi
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7021 fi
7022
7023 found="no"
7024
7025 if test $found = "no" ; then
7026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7028 fi
7029
7030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7032 fi
7033
7034 CFLAGS="$CFLAGS -Werror=nonnull"
7035
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7037 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7038 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7039 if eval \${$cacheid+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 int i;
7045 int
7046 main ()
7047 {
7048
7049 ;
7050 return 0;
7051 }
7052 _ACEOF
7053 if ac_fn_c_try_link "$LINENO"; then :
7054 eval $cacheid=yes
7055 else
7056 eval $cacheid=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext \
7059 conftest$ac_exeext conftest.$ac_ext
7060 fi
7061
7062
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7064
7065 eval supported=\$$cacheid
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7067 $as_echo "$supported" >&6; }
7068 if test "$supported" = "yes" ; then
7069 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7070 found="yes"
7071 fi
7072 fi
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088 xorg_testset_save_CFLAGS="$CFLAGS"
7089
7090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 int i;
7100 _ACEOF
7101 if ac_fn_c_try_compile "$LINENO"; then :
7102 xorg_cv_cc_flag_unknown_warning_option=yes
7103 else
7104 xorg_cv_cc_flag_unknown_warning_option=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111 CFLAGS="$xorg_testset_save_CFLAGS"
7112 fi
7113
7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7126 int i;
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 xorg_cv_cc_flag_unused_command_line_argument=yes
7130 else
7131 xorg_cv_cc_flag_unused_command_line_argument=no
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7139 fi
7140
7141 found="no"
7142
7143 if test $found = "no" ; then
7144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7146 fi
7147
7148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7150 fi
7151
7152 CFLAGS="$CFLAGS -Werror=init-self"
7153
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7155 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7156 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7157 if eval \${$cacheid+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 int i;
7163 int
7164 main ()
7165 {
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 if ac_fn_c_try_link "$LINENO"; then :
7172 eval $cacheid=yes
7173 else
7174 eval $cacheid=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 fi
7179
7180
7181 CFLAGS="$xorg_testset_save_CFLAGS"
7182
7183 eval supported=\$$cacheid
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7185 $as_echo "$supported" >&6; }
7186 if test "$supported" = "yes" ; then
7187 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7188 found="yes"
7189 fi
7190 fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 xorg_testset_save_CFLAGS="$CFLAGS"
7207
7208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 int i;
7218 _ACEOF
7219 if ac_fn_c_try_compile "$LINENO"; then :
7220 xorg_cv_cc_flag_unknown_warning_option=yes
7221 else
7222 xorg_cv_cc_flag_unknown_warning_option=no
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7229 CFLAGS="$xorg_testset_save_CFLAGS"
7230 fi
7231
7232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7235 fi
7236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 int i;
7245 _ACEOF
7246 if ac_fn_c_try_compile "$LINENO"; then :
7247 xorg_cv_cc_flag_unused_command_line_argument=yes
7248 else
7249 xorg_cv_cc_flag_unused_command_line_argument=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7257 fi
7258
7259 found="no"
7260
7261 if test $found = "no" ; then
7262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264 fi
7265
7266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268 fi
7269
7270 CFLAGS="$CFLAGS -Werror=main"
7271
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7273 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7274 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7275 if eval \${$cacheid+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 int i;
7281 int
7282 main ()
7283 {
7284
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_link "$LINENO"; then :
7290 eval $cacheid=yes
7291 else
7292 eval $cacheid=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext \
7295 conftest$ac_exeext conftest.$ac_ext
7296 fi
7297
7298
7299 CFLAGS="$xorg_testset_save_CFLAGS"
7300
7301 eval supported=\$$cacheid
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7303 $as_echo "$supported" >&6; }
7304 if test "$supported" = "yes" ; then
7305 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7306 found="yes"
7307 fi
7308 fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324 xorg_testset_save_CFLAGS="$CFLAGS"
7325
7326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 int i;
7336 _ACEOF
7337 if ac_fn_c_try_compile "$LINENO"; then :
7338 xorg_cv_cc_flag_unknown_warning_option=yes
7339 else
7340 xorg_cv_cc_flag_unknown_warning_option=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7347 CFLAGS="$xorg_testset_save_CFLAGS"
7348 fi
7349
7350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7353 fi
7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 int i;
7363 _ACEOF
7364 if ac_fn_c_try_compile "$LINENO"; then :
7365 xorg_cv_cc_flag_unused_command_line_argument=yes
7366 else
7367 xorg_cv_cc_flag_unused_command_line_argument=no
7368 fi
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 fi
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7374 CFLAGS="$xorg_testset_save_CFLAGS"
7375 fi
7376
7377 found="no"
7378
7379 if test $found = "no" ; then
7380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382 fi
7383
7384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7386 fi
7387
7388 CFLAGS="$CFLAGS -Werror=missing-braces"
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7391 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7392 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7393 if eval \${$cacheid+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 int i;
7399 int
7400 main ()
7401 {
7402
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 if ac_fn_c_try_link "$LINENO"; then :
7408 eval $cacheid=yes
7409 else
7410 eval $cacheid=no
7411 fi
7412 rm -f core conftest.err conftest.$ac_objext \
7413 conftest$ac_exeext conftest.$ac_ext
7414 fi
7415
7416
7417 CFLAGS="$xorg_testset_save_CFLAGS"
7418
7419 eval supported=\$$cacheid
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7421 $as_echo "$supported" >&6; }
7422 if test "$supported" = "yes" ; then
7423 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7424 found="yes"
7425 fi
7426 fi
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442 xorg_testset_save_CFLAGS="$CFLAGS"
7443
7444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 int i;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 xorg_cv_cc_flag_unknown_warning_option=yes
7457 else
7458 xorg_cv_cc_flag_unknown_warning_option=no
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7465 CFLAGS="$xorg_testset_save_CFLAGS"
7466 fi
7467
7468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7471 fi
7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 int i;
7481 _ACEOF
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483 xorg_cv_cc_flag_unused_command_line_argument=yes
7484 else
7485 xorg_cv_cc_flag_unused_command_line_argument=no
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7493 fi
7494
7495 found="no"
7496
7497 if test $found = "no" ; then
7498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500 fi
7501
7502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7504 fi
7505
7506 CFLAGS="$CFLAGS -Werror=sequence-point"
7507
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7509 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7510 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7511 if eval \${$cacheid+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516 int i;
7517 int
7518 main ()
7519 {
7520
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 if ac_fn_c_try_link "$LINENO"; then :
7526 eval $cacheid=yes
7527 else
7528 eval $cacheid=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532 fi
7533
7534
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536
7537 eval supported=\$$cacheid
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7539 $as_echo "$supported" >&6; }
7540 if test "$supported" = "yes" ; then
7541 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7542 found="yes"
7543 fi
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 xorg_testset_save_CFLAGS="$CFLAGS"
7561
7562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 int i;
7572 _ACEOF
7573 if ac_fn_c_try_compile "$LINENO"; then :
7574 xorg_cv_cc_flag_unknown_warning_option=yes
7575 else
7576 xorg_cv_cc_flag_unknown_warning_option=no
7577 fi
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7583 CFLAGS="$xorg_testset_save_CFLAGS"
7584 fi
7585
7586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589 fi
7590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 int i;
7599 _ACEOF
7600 if ac_fn_c_try_compile "$LINENO"; then :
7601 xorg_cv_cc_flag_unused_command_line_argument=yes
7602 else
7603 xorg_cv_cc_flag_unused_command_line_argument=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 fi
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611 fi
7612
7613 found="no"
7614
7615 if test $found = "no" ; then
7616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618 fi
7619
7620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622 fi
7623
7624 CFLAGS="$CFLAGS -Werror=return-type"
7625
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7627 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7628 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7629 if eval \${$cacheid+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634 int i;
7635 int
7636 main ()
7637 {
7638
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 eval $cacheid=yes
7645 else
7646 eval $cacheid=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 fi
7651
7652
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655 eval supported=\$$cacheid
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657 $as_echo "$supported" >&6; }
7658 if test "$supported" = "yes" ; then
7659 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7660 found="yes"
7661 fi
7662 fi
7663
7664 if test $found = "no" ; then
7665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7667 fi
7668
7669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7671 fi
7672
7673 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7674
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7676 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7677 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7678 if eval \${$cacheid+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 int i;
7684 int
7685 main ()
7686 {
7687
7688 ;
7689 return 0;
7690 }
7691 _ACEOF
7692 if ac_fn_c_try_link "$LINENO"; then :
7693 eval $cacheid=yes
7694 else
7695 eval $cacheid=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7699 fi
7700
7701
7702 CFLAGS="$xorg_testset_save_CFLAGS"
7703
7704 eval supported=\$$cacheid
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7706 $as_echo "$supported" >&6; }
7707 if test "$supported" = "yes" ; then
7708 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7709 found="yes"
7710 fi
7711 fi
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727 xorg_testset_save_CFLAGS="$CFLAGS"
7728
7729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 int i;
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741 xorg_cv_cc_flag_unknown_warning_option=yes
7742 else
7743 xorg_cv_cc_flag_unknown_warning_option=no
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7750 CFLAGS="$xorg_testset_save_CFLAGS"
7751 fi
7752
7753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756 fi
7757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 int i;
7766 _ACEOF
7767 if ac_fn_c_try_compile "$LINENO"; then :
7768 xorg_cv_cc_flag_unused_command_line_argument=yes
7769 else
7770 xorg_cv_cc_flag_unused_command_line_argument=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 fi
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7777 CFLAGS="$xorg_testset_save_CFLAGS"
7778 fi
7779
7780 found="no"
7781
7782 if test $found = "no" ; then
7783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7785 fi
7786
7787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7789 fi
7790
7791 CFLAGS="$CFLAGS -Werror=trigraphs"
7792
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7794 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7795 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7796 if eval \${$cacheid+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801 int i;
7802 int
7803 main ()
7804 {
7805
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_link "$LINENO"; then :
7811 eval $cacheid=yes
7812 else
7813 eval $cacheid=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7817 fi
7818
7819
7820 CFLAGS="$xorg_testset_save_CFLAGS"
7821
7822 eval supported=\$$cacheid
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7824 $as_echo "$supported" >&6; }
7825 if test "$supported" = "yes" ; then
7826 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7827 found="yes"
7828 fi
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 xorg_testset_save_CFLAGS="$CFLAGS"
7846
7847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 int i;
7857 _ACEOF
7858 if ac_fn_c_try_compile "$LINENO"; then :
7859 xorg_cv_cc_flag_unknown_warning_option=yes
7860 else
7861 xorg_cv_cc_flag_unknown_warning_option=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7868 CFLAGS="$xorg_testset_save_CFLAGS"
7869 fi
7870
7871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7874 fi
7875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 int i;
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 xorg_cv_cc_flag_unused_command_line_argument=yes
7887 else
7888 xorg_cv_cc_flag_unused_command_line_argument=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7896 fi
7897
7898 found="no"
7899
7900 if test $found = "no" ; then
7901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903 fi
7904
7905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7907 fi
7908
7909 CFLAGS="$CFLAGS -Werror=array-bounds"
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7912 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7913 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7914 if eval \${$cacheid+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 int i;
7920 int
7921 main ()
7922 {
7923
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 if ac_fn_c_try_link "$LINENO"; then :
7929 eval $cacheid=yes
7930 else
7931 eval $cacheid=no
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 fi
7936
7937
7938 CFLAGS="$xorg_testset_save_CFLAGS"
7939
7940 eval supported=\$$cacheid
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7942 $as_echo "$supported" >&6; }
7943 if test "$supported" = "yes" ; then
7944 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7945 found="yes"
7946 fi
7947 fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963 xorg_testset_save_CFLAGS="$CFLAGS"
7964
7965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 int i;
7975 _ACEOF
7976 if ac_fn_c_try_compile "$LINENO"; then :
7977 xorg_cv_cc_flag_unknown_warning_option=yes
7978 else
7979 xorg_cv_cc_flag_unknown_warning_option=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7986 CFLAGS="$xorg_testset_save_CFLAGS"
7987 fi
7988
7989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7992 fi
7993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 int i;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004 xorg_cv_cc_flag_unused_command_line_argument=yes
8005 else
8006 xorg_cv_cc_flag_unused_command_line_argument=no
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8013 CFLAGS="$xorg_testset_save_CFLAGS"
8014 fi
8015
8016 found="no"
8017
8018 if test $found = "no" ; then
8019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 fi
8022
8023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8025 fi
8026
8027 CFLAGS="$CFLAGS -Werror=write-strings"
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8030 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8031 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8032 if eval \${$cacheid+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 int i;
8038 int
8039 main ()
8040 {
8041
8042 ;
8043 return 0;
8044 }
8045 _ACEOF
8046 if ac_fn_c_try_link "$LINENO"; then :
8047 eval $cacheid=yes
8048 else
8049 eval $cacheid=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 fi
8054
8055
8056 CFLAGS="$xorg_testset_save_CFLAGS"
8057
8058 eval supported=\$$cacheid
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8060 $as_echo "$supported" >&6; }
8061 if test "$supported" = "yes" ; then
8062 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8063 found="yes"
8064 fi
8065 fi
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081 xorg_testset_save_CFLAGS="$CFLAGS"
8082
8083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 int i;
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 xorg_cv_cc_flag_unknown_warning_option=yes
8096 else
8097 xorg_cv_cc_flag_unknown_warning_option=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8104 CFLAGS="$xorg_testset_save_CFLAGS"
8105 fi
8106
8107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110 fi
8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 int i;
8120 _ACEOF
8121 if ac_fn_c_try_compile "$LINENO"; then :
8122 xorg_cv_cc_flag_unused_command_line_argument=yes
8123 else
8124 xorg_cv_cc_flag_unused_command_line_argument=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132 fi
8133
8134 found="no"
8135
8136 if test $found = "no" ; then
8137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 fi
8140
8141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8143 fi
8144
8145 CFLAGS="$CFLAGS -Werror=address"
8146
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8148 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8149 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8150 if eval \${$cacheid+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155 int i;
8156 int
8157 main ()
8158 {
8159
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 if ac_fn_c_try_link "$LINENO"; then :
8165 eval $cacheid=yes
8166 else
8167 eval $cacheid=no
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 fi
8172
8173
8174 CFLAGS="$xorg_testset_save_CFLAGS"
8175
8176 eval supported=\$$cacheid
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8178 $as_echo "$supported" >&6; }
8179 if test "$supported" = "yes" ; then
8180 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8181 found="yes"
8182 fi
8183 fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199 xorg_testset_save_CFLAGS="$CFLAGS"
8200
8201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8210 int i;
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 xorg_cv_cc_flag_unknown_warning_option=yes
8214 else
8215 xorg_cv_cc_flag_unknown_warning_option=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8220 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8222 CFLAGS="$xorg_testset_save_CFLAGS"
8223 fi
8224
8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228 fi
8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8231 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8232 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 int i;
8238 _ACEOF
8239 if ac_fn_c_try_compile "$LINENO"; then :
8240 xorg_cv_cc_flag_unused_command_line_argument=yes
8241 else
8242 xorg_cv_cc_flag_unused_command_line_argument=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8247 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8249 CFLAGS="$xorg_testset_save_CFLAGS"
8250 fi
8251
8252 found="no"
8253
8254 if test $found = "no" ; then
8255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257 fi
8258
8259 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261 fi
8262
8263 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8264
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8266 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8267 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8268 if eval \${$cacheid+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 int i;
8274 int
8275 main ()
8276 {
8277
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 eval $cacheid=yes
8284 else
8285 eval $cacheid=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 fi
8290
8291
8292 CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294 eval supported=\$$cacheid
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296 $as_echo "$supported" >&6; }
8297 if test "$supported" = "yes" ; then
8298 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8299 found="yes"
8300 fi
8301 fi
8302
8303 if test $found = "no" ; then
8304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306 fi
8307
8308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310 fi
8311
8312 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8313
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8315 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8316 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8317 if eval \${$cacheid+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 int i;
8323 int
8324 main ()
8325 {
8326
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"; then :
8332 eval $cacheid=yes
8333 else
8334 eval $cacheid=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext \
8337 conftest$ac_exeext conftest.$ac_ext
8338 fi
8339
8340
8341 CFLAGS="$xorg_testset_save_CFLAGS"
8342
8343 eval supported=\$$cacheid
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8345 $as_echo "$supported" >&6; }
8346 if test "$supported" = "yes" ; then
8347 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8348 found="yes"
8349 fi
8350 fi
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366 xorg_testset_save_CFLAGS="$CFLAGS"
8367
8368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 int i;
8378 _ACEOF
8379 if ac_fn_c_try_compile "$LINENO"; then :
8380 xorg_cv_cc_flag_unknown_warning_option=yes
8381 else
8382 xorg_cv_cc_flag_unknown_warning_option=no
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8389 CFLAGS="$xorg_testset_save_CFLAGS"
8390 fi
8391
8392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8395 fi
8396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 int i;
8405 _ACEOF
8406 if ac_fn_c_try_compile "$LINENO"; then :
8407 xorg_cv_cc_flag_unused_command_line_argument=yes
8408 else
8409 xorg_cv_cc_flag_unused_command_line_argument=no
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 fi
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8416 CFLAGS="$xorg_testset_save_CFLAGS"
8417 fi
8418
8419 found="no"
8420
8421 if test $found = "no" ; then
8422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424 fi
8425
8426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428 fi
8429
8430 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8431
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8433 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8434 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8435 if eval \${$cacheid+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 int i;
8441 int
8442 main ()
8443 {
8444
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_link "$LINENO"; then :
8450 eval $cacheid=yes
8451 else
8452 eval $cacheid=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 fi
8457
8458
8459 CFLAGS="$xorg_testset_save_CFLAGS"
8460
8461 eval supported=\$$cacheid
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8463 $as_echo "$supported" >&6; }
8464 if test "$supported" = "yes" ; then
8465 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8466 found="yes"
8467 fi
8468 fi
8469
8470 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8471 else
8472 { $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
8473 $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;}
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 xorg_testset_save_CFLAGS="$CFLAGS"
8488
8489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 int i;
8499 _ACEOF
8500 if ac_fn_c_try_compile "$LINENO"; then :
8501 xorg_cv_cc_flag_unknown_warning_option=yes
8502 else
8503 xorg_cv_cc_flag_unknown_warning_option=no
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8510 CFLAGS="$xorg_testset_save_CFLAGS"
8511 fi
8512
8513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516 fi
8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 int i;
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528 xorg_cv_cc_flag_unused_command_line_argument=yes
8529 else
8530 xorg_cv_cc_flag_unused_command_line_argument=no
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8537 CFLAGS="$xorg_testset_save_CFLAGS"
8538 fi
8539
8540 found="no"
8541
8542 if test $found = "no" ; then
8543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8545 fi
8546
8547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8549 fi
8550
8551 CFLAGS="$CFLAGS -Wimplicit"
8552
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8554 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8555 cacheid=xorg_cv_cc_flag__Wimplicit
8556 if eval \${$cacheid+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 int i;
8562 int
8563 main ()
8564 {
8565
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571 eval $cacheid=yes
8572 else
8573 eval $cacheid=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 fi
8578
8579
8580 CFLAGS="$xorg_testset_save_CFLAGS"
8581
8582 eval supported=\$$cacheid
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8584 $as_echo "$supported" >&6; }
8585 if test "$supported" = "yes" ; then
8586 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8587 found="yes"
8588 fi
8589 fi
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605 xorg_testset_save_CFLAGS="$CFLAGS"
8606
8607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 int i;
8617 _ACEOF
8618 if ac_fn_c_try_compile "$LINENO"; then :
8619 xorg_cv_cc_flag_unknown_warning_option=yes
8620 else
8621 xorg_cv_cc_flag_unknown_warning_option=no
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8628 CFLAGS="$xorg_testset_save_CFLAGS"
8629 fi
8630
8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634 fi
8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 int i;
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 xorg_cv_cc_flag_unused_command_line_argument=yes
8647 else
8648 xorg_cv_cc_flag_unused_command_line_argument=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8656 fi
8657
8658 found="no"
8659
8660 if test $found = "no" ; then
8661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663 fi
8664
8665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8667 fi
8668
8669 CFLAGS="$CFLAGS -Wnonnull"
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8672 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8673 cacheid=xorg_cv_cc_flag__Wnonnull
8674 if eval \${$cacheid+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 int i;
8680 int
8681 main ()
8682 {
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"; then :
8689 eval $cacheid=yes
8690 else
8691 eval $cacheid=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695 fi
8696
8697
8698 CFLAGS="$xorg_testset_save_CFLAGS"
8699
8700 eval supported=\$$cacheid
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8702 $as_echo "$supported" >&6; }
8703 if test "$supported" = "yes" ; then
8704 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8705 found="yes"
8706 fi
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723 xorg_testset_save_CFLAGS="$CFLAGS"
8724
8725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734 int i;
8735 _ACEOF
8736 if ac_fn_c_try_compile "$LINENO"; then :
8737 xorg_cv_cc_flag_unknown_warning_option=yes
8738 else
8739 xorg_cv_cc_flag_unknown_warning_option=no
8740 fi
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 fi
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8746 CFLAGS="$xorg_testset_save_CFLAGS"
8747 fi
8748
8749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752 fi
8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 int i;
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764 xorg_cv_cc_flag_unused_command_line_argument=yes
8765 else
8766 xorg_cv_cc_flag_unused_command_line_argument=no
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8773 CFLAGS="$xorg_testset_save_CFLAGS"
8774 fi
8775
8776 found="no"
8777
8778 if test $found = "no" ; then
8779 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781 fi
8782
8783 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8785 fi
8786
8787 CFLAGS="$CFLAGS -Winit-self"
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8790 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8791 cacheid=xorg_cv_cc_flag__Winit_self
8792 if eval \${$cacheid+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797 int i;
8798 int
8799 main ()
8800 {
8801
8802 ;
8803 return 0;
8804 }
8805 _ACEOF
8806 if ac_fn_c_try_link "$LINENO"; then :
8807 eval $cacheid=yes
8808 else
8809 eval $cacheid=no
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext \
8812 conftest$ac_exeext conftest.$ac_ext
8813 fi
8814
8815
8816 CFLAGS="$xorg_testset_save_CFLAGS"
8817
8818 eval supported=\$$cacheid
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8820 $as_echo "$supported" >&6; }
8821 if test "$supported" = "yes" ; then
8822 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8823 found="yes"
8824 fi
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841 xorg_testset_save_CFLAGS="$CFLAGS"
8842
8843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 int i;
8853 _ACEOF
8854 if ac_fn_c_try_compile "$LINENO"; then :
8855 xorg_cv_cc_flag_unknown_warning_option=yes
8856 else
8857 xorg_cv_cc_flag_unknown_warning_option=no
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8864 CFLAGS="$xorg_testset_save_CFLAGS"
8865 fi
8866
8867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870 fi
8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879 int i;
8880 _ACEOF
8881 if ac_fn_c_try_compile "$LINENO"; then :
8882 xorg_cv_cc_flag_unused_command_line_argument=yes
8883 else
8884 xorg_cv_cc_flag_unused_command_line_argument=no
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8891 CFLAGS="$xorg_testset_save_CFLAGS"
8892 fi
8893
8894 found="no"
8895
8896 if test $found = "no" ; then
8897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899 fi
8900
8901 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903 fi
8904
8905 CFLAGS="$CFLAGS -Wmain"
8906
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8908 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8909 cacheid=xorg_cv_cc_flag__Wmain
8910 if eval \${$cacheid+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 int i;
8916 int
8917 main ()
8918 {
8919
8920 ;
8921 return 0;
8922 }
8923 _ACEOF
8924 if ac_fn_c_try_link "$LINENO"; then :
8925 eval $cacheid=yes
8926 else
8927 eval $cacheid=no
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 fi
8932
8933
8934 CFLAGS="$xorg_testset_save_CFLAGS"
8935
8936 eval supported=\$$cacheid
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938 $as_echo "$supported" >&6; }
8939 if test "$supported" = "yes" ; then
8940 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8941 found="yes"
8942 fi
8943 fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 xorg_testset_save_CFLAGS="$CFLAGS"
8960
8961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 int i;
8971 _ACEOF
8972 if ac_fn_c_try_compile "$LINENO"; then :
8973 xorg_cv_cc_flag_unknown_warning_option=yes
8974 else
8975 xorg_cv_cc_flag_unknown_warning_option=no
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8982 CFLAGS="$xorg_testset_save_CFLAGS"
8983 fi
8984
8985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8988 fi
8989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 int i;
8998 _ACEOF
8999 if ac_fn_c_try_compile "$LINENO"; then :
9000 xorg_cv_cc_flag_unused_command_line_argument=yes
9001 else
9002 xorg_cv_cc_flag_unused_command_line_argument=no
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9009 CFLAGS="$xorg_testset_save_CFLAGS"
9010 fi
9011
9012 found="no"
9013
9014 if test $found = "no" ; then
9015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017 fi
9018
9019 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9021 fi
9022
9023 CFLAGS="$CFLAGS -Wmissing-braces"
9024
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9026 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9027 cacheid=xorg_cv_cc_flag__Wmissing_braces
9028 if eval \${$cacheid+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 int i;
9034 int
9035 main ()
9036 {
9037
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 eval $cacheid=yes
9044 else
9045 eval $cacheid=no
9046 fi
9047 rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049 fi
9050
9051
9052 CFLAGS="$xorg_testset_save_CFLAGS"
9053
9054 eval supported=\$$cacheid
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9056 $as_echo "$supported" >&6; }
9057 if test "$supported" = "yes" ; then
9058 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9059 found="yes"
9060 fi
9061 fi
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077 xorg_testset_save_CFLAGS="$CFLAGS"
9078
9079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 int i;
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"; then :
9091 xorg_cv_cc_flag_unknown_warning_option=yes
9092 else
9093 xorg_cv_cc_flag_unknown_warning_option=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9100 CFLAGS="$xorg_testset_save_CFLAGS"
9101 fi
9102
9103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106 fi
9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 int i;
9116 _ACEOF
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118 xorg_cv_cc_flag_unused_command_line_argument=yes
9119 else
9120 xorg_cv_cc_flag_unused_command_line_argument=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9128 fi
9129
9130 found="no"
9131
9132 if test $found = "no" ; then
9133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135 fi
9136
9137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9139 fi
9140
9141 CFLAGS="$CFLAGS -Wsequence-point"
9142
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9144 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9145 cacheid=xorg_cv_cc_flag__Wsequence_point
9146 if eval \${$cacheid+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 int i;
9152 int
9153 main ()
9154 {
9155
9156 ;
9157 return 0;
9158 }
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 eval $cacheid=yes
9162 else
9163 eval $cacheid=no
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167 fi
9168
9169
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9171
9172 eval supported=\$$cacheid
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174 $as_echo "$supported" >&6; }
9175 if test "$supported" = "yes" ; then
9176 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9177 found="yes"
9178 fi
9179 fi
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195 xorg_testset_save_CFLAGS="$CFLAGS"
9196
9197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 int i;
9207 _ACEOF
9208 if ac_fn_c_try_compile "$LINENO"; then :
9209 xorg_cv_cc_flag_unknown_warning_option=yes
9210 else
9211 xorg_cv_cc_flag_unknown_warning_option=no
9212 fi
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9218 CFLAGS="$xorg_testset_save_CFLAGS"
9219 fi
9220
9221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224 fi
9225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 int i;
9234 _ACEOF
9235 if ac_fn_c_try_compile "$LINENO"; then :
9236 xorg_cv_cc_flag_unused_command_line_argument=yes
9237 else
9238 xorg_cv_cc_flag_unused_command_line_argument=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9245 CFLAGS="$xorg_testset_save_CFLAGS"
9246 fi
9247
9248 found="no"
9249
9250 if test $found = "no" ; then
9251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253 fi
9254
9255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9257 fi
9258
9259 CFLAGS="$CFLAGS -Wreturn-type"
9260
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9262 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9263 cacheid=xorg_cv_cc_flag__Wreturn_type
9264 if eval \${$cacheid+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 int i;
9270 int
9271 main ()
9272 {
9273
9274 ;
9275 return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_c_try_link "$LINENO"; then :
9279 eval $cacheid=yes
9280 else
9281 eval $cacheid=no
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 fi
9286
9287
9288 CFLAGS="$xorg_testset_save_CFLAGS"
9289
9290 eval supported=\$$cacheid
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9292 $as_echo "$supported" >&6; }
9293 if test "$supported" = "yes" ; then
9294 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9295 found="yes"
9296 fi
9297 fi
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313 xorg_testset_save_CFLAGS="$CFLAGS"
9314
9315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 int i;
9325 _ACEOF
9326 if ac_fn_c_try_compile "$LINENO"; then :
9327 xorg_cv_cc_flag_unknown_warning_option=yes
9328 else
9329 xorg_cv_cc_flag_unknown_warning_option=no
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9336 CFLAGS="$xorg_testset_save_CFLAGS"
9337 fi
9338
9339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342 fi
9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9351 int i;
9352 _ACEOF
9353 if ac_fn_c_try_compile "$LINENO"; then :
9354 xorg_cv_cc_flag_unused_command_line_argument=yes
9355 else
9356 xorg_cv_cc_flag_unused_command_line_argument=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9364 fi
9365
9366 found="no"
9367
9368 if test $found = "no" ; then
9369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371 fi
9372
9373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9375 fi
9376
9377 CFLAGS="$CFLAGS -Wtrigraphs"
9378
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9380 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9381 cacheid=xorg_cv_cc_flag__Wtrigraphs
9382 if eval \${$cacheid+:} false; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 int i;
9388 int
9389 main ()
9390 {
9391
9392 ;
9393 return 0;
9394 }
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397 eval $cacheid=yes
9398 else
9399 eval $cacheid=no
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 fi
9404
9405
9406 CFLAGS="$xorg_testset_save_CFLAGS"
9407
9408 eval supported=\$$cacheid
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9410 $as_echo "$supported" >&6; }
9411 if test "$supported" = "yes" ; then
9412 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9413 found="yes"
9414 fi
9415 fi
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431 xorg_testset_save_CFLAGS="$CFLAGS"
9432
9433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442 int i;
9443 _ACEOF
9444 if ac_fn_c_try_compile "$LINENO"; then :
9445 xorg_cv_cc_flag_unknown_warning_option=yes
9446 else
9447 xorg_cv_cc_flag_unknown_warning_option=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9454 CFLAGS="$xorg_testset_save_CFLAGS"
9455 fi
9456
9457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460 fi
9461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469 int i;
9470 _ACEOF
9471 if ac_fn_c_try_compile "$LINENO"; then :
9472 xorg_cv_cc_flag_unused_command_line_argument=yes
9473 else
9474 xorg_cv_cc_flag_unused_command_line_argument=no
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477 fi
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9482 fi
9483
9484 found="no"
9485
9486 if test $found = "no" ; then
9487 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489 fi
9490
9491 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9493 fi
9494
9495 CFLAGS="$CFLAGS -Warray-bounds"
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9498 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9499 cacheid=xorg_cv_cc_flag__Warray_bounds
9500 if eval \${$cacheid+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 int i;
9506 int
9507 main ()
9508 {
9509
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 if ac_fn_c_try_link "$LINENO"; then :
9515 eval $cacheid=yes
9516 else
9517 eval $cacheid=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 fi
9522
9523
9524 CFLAGS="$xorg_testset_save_CFLAGS"
9525
9526 eval supported=\$$cacheid
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9528 $as_echo "$supported" >&6; }
9529 if test "$supported" = "yes" ; then
9530 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9531 found="yes"
9532 fi
9533 fi
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549 xorg_testset_save_CFLAGS="$CFLAGS"
9550
9551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 int i;
9561 _ACEOF
9562 if ac_fn_c_try_compile "$LINENO"; then :
9563 xorg_cv_cc_flag_unknown_warning_option=yes
9564 else
9565 xorg_cv_cc_flag_unknown_warning_option=no
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 fi
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9572 CFLAGS="$xorg_testset_save_CFLAGS"
9573 fi
9574
9575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578 fi
9579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587 int i;
9588 _ACEOF
9589 if ac_fn_c_try_compile "$LINENO"; then :
9590 xorg_cv_cc_flag_unused_command_line_argument=yes
9591 else
9592 xorg_cv_cc_flag_unused_command_line_argument=no
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9600 fi
9601
9602 found="no"
9603
9604 if test $found = "no" ; then
9605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9607 fi
9608
9609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9611 fi
9612
9613 CFLAGS="$CFLAGS -Wwrite-strings"
9614
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9616 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9617 cacheid=xorg_cv_cc_flag__Wwrite_strings
9618 if eval \${$cacheid+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 int i;
9624 int
9625 main ()
9626 {
9627
9628 ;
9629 return 0;
9630 }
9631 _ACEOF
9632 if ac_fn_c_try_link "$LINENO"; then :
9633 eval $cacheid=yes
9634 else
9635 eval $cacheid=no
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9639 fi
9640
9641
9642 CFLAGS="$xorg_testset_save_CFLAGS"
9643
9644 eval supported=\$$cacheid
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9646 $as_echo "$supported" >&6; }
9647 if test "$supported" = "yes" ; then
9648 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9649 found="yes"
9650 fi
9651 fi
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667 xorg_testset_save_CFLAGS="$CFLAGS"
9668
9669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 int i;
9679 _ACEOF
9680 if ac_fn_c_try_compile "$LINENO"; then :
9681 xorg_cv_cc_flag_unknown_warning_option=yes
9682 else
9683 xorg_cv_cc_flag_unknown_warning_option=no
9684 fi
9685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9690 CFLAGS="$xorg_testset_save_CFLAGS"
9691 fi
9692
9693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696 fi
9697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 int i;
9706 _ACEOF
9707 if ac_fn_c_try_compile "$LINENO"; then :
9708 xorg_cv_cc_flag_unused_command_line_argument=yes
9709 else
9710 xorg_cv_cc_flag_unused_command_line_argument=no
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9718 fi
9719
9720 found="no"
9721
9722 if test $found = "no" ; then
9723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9725 fi
9726
9727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9729 fi
9730
9731 CFLAGS="$CFLAGS -Waddress"
9732
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9734 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9735 cacheid=xorg_cv_cc_flag__Waddress
9736 if eval \${$cacheid+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 int i;
9742 int
9743 main ()
9744 {
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_c_try_link "$LINENO"; then :
9751 eval $cacheid=yes
9752 else
9753 eval $cacheid=no
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 fi
9758
9759
9760 CFLAGS="$xorg_testset_save_CFLAGS"
9761
9762 eval supported=\$$cacheid
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9764 $as_echo "$supported" >&6; }
9765 if test "$supported" = "yes" ; then
9766 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9767 found="yes"
9768 fi
9769 fi
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785 xorg_testset_save_CFLAGS="$CFLAGS"
9786
9787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9790 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9791 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796 int i;
9797 _ACEOF
9798 if ac_fn_c_try_compile "$LINENO"; then :
9799 xorg_cv_cc_flag_unknown_warning_option=yes
9800 else
9801 xorg_cv_cc_flag_unknown_warning_option=no
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9806 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9808 CFLAGS="$xorg_testset_save_CFLAGS"
9809 fi
9810
9811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814 fi
9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9817 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9818 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 int i;
9824 _ACEOF
9825 if ac_fn_c_try_compile "$LINENO"; then :
9826 xorg_cv_cc_flag_unused_command_line_argument=yes
9827 else
9828 xorg_cv_cc_flag_unused_command_line_argument=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9833 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9835 CFLAGS="$xorg_testset_save_CFLAGS"
9836 fi
9837
9838 found="no"
9839
9840 if test $found = "no" ; then
9841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843 fi
9844
9845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9847 fi
9848
9849 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9850
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9852 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9853 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9854 if eval \${$cacheid+:} false; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9859 int i;
9860 int
9861 main ()
9862 {
9863
9864 ;
9865 return 0;
9866 }
9867 _ACEOF
9868 if ac_fn_c_try_link "$LINENO"; then :
9869 eval $cacheid=yes
9870 else
9871 eval $cacheid=no
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 fi
9876
9877
9878 CFLAGS="$xorg_testset_save_CFLAGS"
9879
9880 eval supported=\$$cacheid
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9882 $as_echo "$supported" >&6; }
9883 if test "$supported" = "yes" ; then
9884 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9885 found="yes"
9886 fi
9887 fi
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903 xorg_testset_save_CFLAGS="$CFLAGS"
9904
9905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9908 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9909 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9910 $as_echo_n "(cached) " >&6
9911 else
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 int i;
9915 _ACEOF
9916 if ac_fn_c_try_compile "$LINENO"; then :
9917 xorg_cv_cc_flag_unknown_warning_option=yes
9918 else
9919 xorg_cv_cc_flag_unknown_warning_option=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9924 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9926 CFLAGS="$xorg_testset_save_CFLAGS"
9927 fi
9928
9929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9932 fi
9933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9935 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9936 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 int i;
9942 _ACEOF
9943 if ac_fn_c_try_compile "$LINENO"; then :
9944 xorg_cv_cc_flag_unused_command_line_argument=yes
9945 else
9946 xorg_cv_cc_flag_unused_command_line_argument=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9951 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9953 CFLAGS="$xorg_testset_save_CFLAGS"
9954 fi
9955
9956 found="no"
9957
9958 if test $found = "no" ; then
9959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961 fi
9962
9963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9965 fi
9966
9967 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9968
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9970 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9971 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9972 if eval \${$cacheid+:} false; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9977 int i;
9978 int
9979 main ()
9980 {
9981
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 if ac_fn_c_try_link "$LINENO"; then :
9987 eval $cacheid=yes
9988 else
9989 eval $cacheid=no
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 fi
9994
9995
9996 CFLAGS="$xorg_testset_save_CFLAGS"
9997
9998 eval supported=\$$cacheid
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10000 $as_echo "$supported" >&6; }
10001 if test "$supported" = "yes" ; then
10002 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10003 found="yes"
10004 fi
10005 fi
10006
10007
10008 fi
10009
10010
10011
10012
10013
10014
10015
10016 CWARNFLAGS="$BASE_CFLAGS"
10017 if test "x$GCC" = xyes ; then
10018 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10019 fi
10020
10021
10022
10023
10024
10025
10026
10027
10028 # Check whether --enable-strict-compilation was given.
10029 if test "${enable_strict_compilation+set}" = set; then :
10030 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10031 else
10032 STRICT_COMPILE=no
10033 fi
10034
10035
10036
10037
10038
10039
10040 STRICT_CFLAGS=""
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054 xorg_testset_save_CFLAGS="$CFLAGS"
10055
10056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10059 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10060 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065 int i;
10066 _ACEOF
10067 if ac_fn_c_try_compile "$LINENO"; then :
10068 xorg_cv_cc_flag_unknown_warning_option=yes
10069 else
10070 xorg_cv_cc_flag_unknown_warning_option=no
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 fi
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10075 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10077 CFLAGS="$xorg_testset_save_CFLAGS"
10078 fi
10079
10080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10083 fi
10084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10086 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10087 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10092 int i;
10093 _ACEOF
10094 if ac_fn_c_try_compile "$LINENO"; then :
10095 xorg_cv_cc_flag_unused_command_line_argument=yes
10096 else
10097 xorg_cv_cc_flag_unused_command_line_argument=no
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 fi
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10102 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10104 CFLAGS="$xorg_testset_save_CFLAGS"
10105 fi
10106
10107 found="no"
10108
10109 if test $found = "no" ; then
10110 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10112 fi
10113
10114 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10116 fi
10117
10118 CFLAGS="$CFLAGS -pedantic"
10119
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10121 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10122 cacheid=xorg_cv_cc_flag__pedantic
10123 if eval \${$cacheid+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int i;
10129 int
10130 main ()
10131 {
10132
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"; then :
10138 eval $cacheid=yes
10139 else
10140 eval $cacheid=no
10141 fi
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 fi
10145
10146
10147 CFLAGS="$xorg_testset_save_CFLAGS"
10148
10149 eval supported=\$$cacheid
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10151 $as_echo "$supported" >&6; }
10152 if test "$supported" = "yes" ; then
10153 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10154 found="yes"
10155 fi
10156 fi
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172 xorg_testset_save_CFLAGS="$CFLAGS"
10173
10174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10177 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10178 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10183 int i;
10184 _ACEOF
10185 if ac_fn_c_try_compile "$LINENO"; then :
10186 xorg_cv_cc_flag_unknown_warning_option=yes
10187 else
10188 xorg_cv_cc_flag_unknown_warning_option=no
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191 fi
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10193 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10195 CFLAGS="$xorg_testset_save_CFLAGS"
10196 fi
10197
10198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201 fi
10202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10204 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10205 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10210 int i;
10211 _ACEOF
10212 if ac_fn_c_try_compile "$LINENO"; then :
10213 xorg_cv_cc_flag_unused_command_line_argument=yes
10214 else
10215 xorg_cv_cc_flag_unused_command_line_argument=no
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10220 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10222 CFLAGS="$xorg_testset_save_CFLAGS"
10223 fi
10224
10225 found="no"
10226
10227 if test $found = "no" ; then
10228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10230 fi
10231
10232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10234 fi
10235
10236 CFLAGS="$CFLAGS -Werror"
10237
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10239 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10240 cacheid=xorg_cv_cc_flag__Werror
10241 if eval \${$cacheid+:} false; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246 int i;
10247 int
10248 main ()
10249 {
10250
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 eval $cacheid=yes
10257 else
10258 eval $cacheid=no
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 fi
10263
10264
10265 CFLAGS="$xorg_testset_save_CFLAGS"
10266
10267 eval supported=\$$cacheid
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10269 $as_echo "$supported" >&6; }
10270 if test "$supported" = "yes" ; then
10271 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10272 found="yes"
10273 fi
10274 fi
10275
10276 if test $found = "no" ; then
10277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10279 fi
10280
10281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10283 fi
10284
10285 CFLAGS="$CFLAGS -errwarn"
10286
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10288 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10289 cacheid=xorg_cv_cc_flag__errwarn
10290 if eval \${$cacheid+:} false; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295 int i;
10296 int
10297 main ()
10298 {
10299
10300 ;
10301 return 0;
10302 }
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 eval $cacheid=yes
10306 else
10307 eval $cacheid=no
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 fi
10312
10313
10314 CFLAGS="$xorg_testset_save_CFLAGS"
10315
10316 eval supported=\$$cacheid
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10318 $as_echo "$supported" >&6; }
10319 if test "$supported" = "yes" ; then
10320 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10321 found="yes"
10322 fi
10323 fi
10324
10325
10326
10327 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10328 # activate it with -Werror, so we add it here explicitly.
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342 xorg_testset_save_CFLAGS="$CFLAGS"
10343
10344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10347 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10348 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 int i;
10354 _ACEOF
10355 if ac_fn_c_try_compile "$LINENO"; then :
10356 xorg_cv_cc_flag_unknown_warning_option=yes
10357 else
10358 xorg_cv_cc_flag_unknown_warning_option=no
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10361 fi
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10363 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10365 CFLAGS="$xorg_testset_save_CFLAGS"
10366 fi
10367
10368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10371 fi
10372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10374 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10375 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 int i;
10381 _ACEOF
10382 if ac_fn_c_try_compile "$LINENO"; then :
10383 xorg_cv_cc_flag_unused_command_line_argument=yes
10384 else
10385 xorg_cv_cc_flag_unused_command_line_argument=no
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10390 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10392 CFLAGS="$xorg_testset_save_CFLAGS"
10393 fi
10394
10395 found="no"
10396
10397 if test $found = "no" ; then
10398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400 fi
10401
10402 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10404 fi
10405
10406 CFLAGS="$CFLAGS -Werror=attributes"
10407
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10409 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10410 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10411 if eval \${$cacheid+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 int i;
10417 int
10418 main ()
10419 {
10420
10421 ;
10422 return 0;
10423 }
10424 _ACEOF
10425 if ac_fn_c_try_link "$LINENO"; then :
10426 eval $cacheid=yes
10427 else
10428 eval $cacheid=no
10429 fi
10430 rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10432 fi
10433
10434
10435 CFLAGS="$xorg_testset_save_CFLAGS"
10436
10437 eval supported=\$$cacheid
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10439 $as_echo "$supported" >&6; }
10440 if test "$supported" = "yes" ; then
10441 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10442 found="yes"
10443 fi
10444 fi
10445
10446
10447
10448 if test "x$STRICT_COMPILE" = "xyes"; then
10449 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10450 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10451 fi
10452
10453
10454
10455
10456
10457
10458 cat >>confdefs.h <<_ACEOF
10459 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10460 _ACEOF
10461
10462 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10463 if test "x$PVM" = "x"; then
10464 PVM="0"
10465 fi
10466
10467 cat >>confdefs.h <<_ACEOF
10468 #define PACKAGE_VERSION_MINOR $PVM
10469 _ACEOF
10470
10471 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10472 if test "x$PVP" = "x"; then
10473 PVP="0"
10474 fi
10475
10476 cat >>confdefs.h <<_ACEOF
10477 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10478 _ACEOF
10479
10480
10481
10482 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10483 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10484 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10485 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10486
10487
10488
10489
10490 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10491 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10492 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10493 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10494 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10495
10496
10497
10498
10499
10500
10501 if test x$APP_MAN_SUFFIX = x ; then
10502 APP_MAN_SUFFIX=1
10503 fi
10504 if test x$APP_MAN_DIR = x ; then
10505 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10506 fi
10507
10508 if test x$LIB_MAN_SUFFIX = x ; then
10509 LIB_MAN_SUFFIX=3
10510 fi
10511 if test x$LIB_MAN_DIR = x ; then
10512 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10513 fi
10514
10515 if test x$FILE_MAN_SUFFIX = x ; then
10516 case $host_os in
10517 solaris*) FILE_MAN_SUFFIX=4 ;;
10518 *) FILE_MAN_SUFFIX=5 ;;
10519 esac
10520 fi
10521 if test x$FILE_MAN_DIR = x ; then
10522 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10523 fi
10524
10525 if test x$MISC_MAN_SUFFIX = x ; then
10526 case $host_os in
10527 solaris*) MISC_MAN_SUFFIX=5 ;;
10528 *) MISC_MAN_SUFFIX=7 ;;
10529 esac
10530 fi
10531 if test x$MISC_MAN_DIR = x ; then
10532 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10533 fi
10534
10535 if test x$DRIVER_MAN_SUFFIX = x ; then
10536 case $host_os in
10537 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10538 *) DRIVER_MAN_SUFFIX=4 ;;
10539 esac
10540 fi
10541 if test x$DRIVER_MAN_DIR = x ; then
10542 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10543 fi
10544
10545 if test x$ADMIN_MAN_SUFFIX = x ; then
10546 case $host_os in
10547 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10548 *) ADMIN_MAN_SUFFIX=8 ;;
10549 esac
10550 fi
10551 if test x$ADMIN_MAN_DIR = x ; then
10552 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10553 fi
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 XORG_MAN_PAGE="X Version 11"
10570
10571 MAN_SUBSTS="\
10572 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10573 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10574 -e 's|__xservername__|Xorg|g' \
10575 -e 's|__xconfigfile__|xorg.conf|g' \
10576 -e 's|__projectroot__|\$(prefix)|g' \
10577 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10578 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10579 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10580 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10581 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10582 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10583 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10584
10585
10586
10587 # Check whether --enable-silent-rules was given.
10588 if test "${enable_silent_rules+set}" = set; then :
10589 enableval=$enable_silent_rules;
10590 fi
10591
10592 case $enable_silent_rules in
10593 yes) AM_DEFAULT_VERBOSITY=0;;
10594 no) AM_DEFAULT_VERBOSITY=1;;
10595 *) AM_DEFAULT_VERBOSITY=0;;
10596 esac
10597 am_make=${MAKE-make}
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10599 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10600 if ${am_cv_make_support_nested_variables+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 if $as_echo 'TRUE=$(BAR$(V))
10604 BAR0=false
10605 BAR1=true
10606 V=1
10607 am__doit:
10608 @$(TRUE)
10609 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10610 am_cv_make_support_nested_variables=yes
10611 else
10612 am_cv_make_support_nested_variables=no
10613 fi
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10616 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10617 if test $am_cv_make_support_nested_variables = yes; then
10618 AM_V='$(V)'
10619 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10620 else
10621 AM_V=$AM_DEFAULT_VERBOSITY
10622 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10623 fi
10624 AM_BACKSLASH='\'
10625
10626
10627
10628 # Initialize libtool
10629 # Check whether --enable-static was given.
10630 if test "${enable_static+set}" = set; then :
10631 enableval=$enable_static; p=${PACKAGE-default}
10632 case $enableval in
10633 yes) enable_static=yes ;;
10634 no) enable_static=no ;;
10635 *)
10636 enable_static=no
10637 # Look at the argument we got. We use all the common list separators.
10638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10639 for pkg in $enableval; do
10640 IFS="$lt_save_ifs"
10641 if test "X$pkg" = "X$p"; then
10642 enable_static=yes
10643 fi
10644 done
10645 IFS="$lt_save_ifs"
10646 ;;
10647 esac
10648 else
10649 enable_static=no
10650 fi
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660 case `pwd` in
10661 *\ * | *\ *)
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10663 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10664 esac
10665
10666
10667
10668 macro_version='2.4.2'
10669 macro_revision='1.3337'
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 ltmain="$ac_aux_dir/ltmain.sh"
10684
10685 # Backslashify metacharacters that are still active within
10686 # double-quoted strings.
10687 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10688
10689 # Same as above, but do not quote variable references.
10690 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10691
10692 # Sed substitution to delay expansion of an escaped shell variable in a
10693 # double_quote_subst'ed string.
10694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10695
10696 # Sed substitution to delay expansion of an escaped single quote.
10697 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10698
10699 # Sed substitution to avoid accidental globbing in evaled expressions
10700 no_glob_subst='s/\*/\\\*/g'
10701
10702 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10703 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10705
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10707 $as_echo_n "checking how to print strings... " >&6; }
10708 # Test print first, because it will be a builtin if present.
10709 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10710 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10711 ECHO='print -r --'
10712 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10713 ECHO='printf %s\n'
10714 else
10715 # Use this function as a fallback that always works.
10716 func_fallback_echo ()
10717 {
10718 eval 'cat <<_LTECHO_EOF
10719 $1
10720 _LTECHO_EOF'
10721 }
10722 ECHO='func_fallback_echo'
10723 fi
10724
10725 # func_echo_all arg...
10726 # Invoke $ECHO with all args, space-separated.
10727 func_echo_all ()
10728 {
10729 $ECHO ""
10730 }
10731
10732 case "$ECHO" in
10733 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10734 $as_echo "printf" >&6; } ;;
10735 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10736 $as_echo "print -r" >&6; } ;;
10737 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10738 $as_echo "cat" >&6; } ;;
10739 esac
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10755 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10756 if ${ac_cv_path_SED+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10760 for ac_i in 1 2 3 4 5 6 7; do
10761 ac_script="$ac_script$as_nl$ac_script"
10762 done
10763 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10764 { ac_script=; unset ac_script;}
10765 if test -z "$SED"; then
10766 ac_path_SED_found=false
10767 # Loop through the user's path and test for each of PROGNAME-LIST
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10770 do
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_prog in sed gsed; do
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10776 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10777 # Check for GNU ac_path_SED and select it if it is found.
10778 # Check for GNU $ac_path_SED
10779 case `"$ac_path_SED" --version 2>&1` in
10780 *GNU*)
10781 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10782 *)
10783 ac_count=0
10784 $as_echo_n 0123456789 >"conftest.in"
10785 while :
10786 do
10787 cat "conftest.in" "conftest.in" >"conftest.tmp"
10788 mv "conftest.tmp" "conftest.in"
10789 cp "conftest.in" "conftest.nl"
10790 $as_echo '' >> "conftest.nl"
10791 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10793 as_fn_arith $ac_count + 1 && ac_count=$as_val
10794 if test $ac_count -gt ${ac_path_SED_max-0}; then
10795 # Best one so far, save it but keep looking for a better one
10796 ac_cv_path_SED="$ac_path_SED"
10797 ac_path_SED_max=$ac_count
10798 fi
10799 # 10*(2^10) chars as input seems more than enough
10800 test $ac_count -gt 10 && break
10801 done
10802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10803 esac
10804
10805 $ac_path_SED_found && break 3
10806 done
10807 done
10808 done
10809 IFS=$as_save_IFS
10810 if test -z "$ac_cv_path_SED"; then
10811 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10812 fi
10813 else
10814 ac_cv_path_SED=$SED
10815 fi
10816
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10819 $as_echo "$ac_cv_path_SED" >&6; }
10820 SED="$ac_cv_path_SED"
10821 rm -f conftest.sed
10822
10823 test -z "$SED" && SED=sed
10824 Xsed="$SED -e 1s/^X//"
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10837 $as_echo_n "checking for fgrep... " >&6; }
10838 if ${ac_cv_path_FGREP+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10842 then ac_cv_path_FGREP="$GREP -F"
10843 else
10844 if test -z "$FGREP"; then
10845 ac_path_FGREP_found=false
10846 # Loop through the user's path and test for each of PROGNAME-LIST
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10849 do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_prog in fgrep; do
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10855 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10856 # Check for GNU ac_path_FGREP and select it if it is found.
10857 # Check for GNU $ac_path_FGREP
10858 case `"$ac_path_FGREP" --version 2>&1` in
10859 *GNU*)
10860 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10861 *)
10862 ac_count=0
10863 $as_echo_n 0123456789 >"conftest.in"
10864 while :
10865 do
10866 cat "conftest.in" "conftest.in" >"conftest.tmp"
10867 mv "conftest.tmp" "conftest.in"
10868 cp "conftest.in" "conftest.nl"
10869 $as_echo 'FGREP' >> "conftest.nl"
10870 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10872 as_fn_arith $ac_count + 1 && ac_count=$as_val
10873 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10874 # Best one so far, save it but keep looking for a better one
10875 ac_cv_path_FGREP="$ac_path_FGREP"
10876 ac_path_FGREP_max=$ac_count
10877 fi
10878 # 10*(2^10) chars as input seems more than enough
10879 test $ac_count -gt 10 && break
10880 done
10881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10882 esac
10883
10884 $ac_path_FGREP_found && break 3
10885 done
10886 done
10887 done
10888 IFS=$as_save_IFS
10889 if test -z "$ac_cv_path_FGREP"; then
10890 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10891 fi
10892 else
10893 ac_cv_path_FGREP=$FGREP
10894 fi
10895
10896 fi
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10899 $as_echo "$ac_cv_path_FGREP" >&6; }
10900 FGREP="$ac_cv_path_FGREP"
10901
10902
10903 test -z "$GREP" && GREP=grep
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923 # Check whether --with-gnu-ld was given.
10924 if test "${with_gnu_ld+set}" = set; then :
10925 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10926 else
10927 with_gnu_ld=no
10928 fi
10929
10930 ac_prog=ld
10931 if test "$GCC" = yes; then
10932 # Check if gcc -print-prog-name=ld gives a path.
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10934 $as_echo_n "checking for ld used by $CC... " >&6; }
10935 case $host in
10936 *-*-mingw*)
10937 # gcc leaves a trailing carriage return which upsets mingw
10938 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10939 *)
10940 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10941 esac
10942 case $ac_prog in
10943 # Accept absolute paths.
10944 [\\/]* | ?:[\\/]*)
10945 re_direlt='/[^/][^/]*/\.\./'
10946 # Canonicalize the pathname of ld
10947 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10948 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10949 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10950 done
10951 test -z "$LD" && LD="$ac_prog"
10952 ;;
10953 "")
10954 # If it fails, then pretend we aren't using GCC.
10955 ac_prog=ld
10956 ;;
10957 *)
10958 # If it is relative, then search for the first ld in PATH.
10959 with_gnu_ld=unknown
10960 ;;
10961 esac
10962 elif test "$with_gnu_ld" = yes; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10964 $as_echo_n "checking for GNU ld... " >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10967 $as_echo_n "checking for non-GNU ld... " >&6; }
10968 fi
10969 if ${lt_cv_path_LD+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 if test -z "$LD"; then
10973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10974 for ac_dir in $PATH; do
10975 IFS="$lt_save_ifs"
10976 test -z "$ac_dir" && ac_dir=.
10977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10978 lt_cv_path_LD="$ac_dir/$ac_prog"
10979 # Check to see if the program is GNU ld. I'd rather use --version,
10980 # but apparently some variants of GNU ld only accept -v.
10981 # Break only if it was the GNU/non-GNU ld that we prefer.
10982 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10983 *GNU* | *'with BFD'*)
10984 test "$with_gnu_ld" != no && break
10985 ;;
10986 *)
10987 test "$with_gnu_ld" != yes && break
10988 ;;
10989 esac
10990 fi
10991 done
10992 IFS="$lt_save_ifs"
10993 else
10994 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10995 fi
10996 fi
10997
10998 LD="$lt_cv_path_LD"
10999 if test -n "$LD"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11001 $as_echo "$LD" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11008 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11009 if ${lt_cv_prog_gnu_ld+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11013 case `$LD -v 2>&1 </dev/null` in
11014 *GNU* | *'with BFD'*)
11015 lt_cv_prog_gnu_ld=yes
11016 ;;
11017 *)
11018 lt_cv_prog_gnu_ld=no
11019 ;;
11020 esac
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11023 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11024 with_gnu_ld=$lt_cv_prog_gnu_ld
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11035 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11036 if ${lt_cv_path_NM+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 if test -n "$NM"; then
11040 # Let the user override the test.
11041 lt_cv_path_NM="$NM"
11042 else
11043 lt_nm_to_check="${ac_tool_prefix}nm"
11044 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11045 lt_nm_to_check="$lt_nm_to_check nm"
11046 fi
11047 for lt_tmp_nm in $lt_nm_to_check; do
11048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11049 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11050 IFS="$lt_save_ifs"
11051 test -z "$ac_dir" && ac_dir=.
11052 tmp_nm="$ac_dir/$lt_tmp_nm"
11053 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11054 # Check to see if the nm accepts a BSD-compat flag.
11055 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11056 # nm: unknown option "B" ignored
11057 # Tru64's nm complains that /dev/null is an invalid object file
11058 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11059 */dev/null* | *'Invalid file or object type'*)
11060 lt_cv_path_NM="$tmp_nm -B"
11061 break
11062 ;;
11063 *)
11064 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11065 */dev/null*)
11066 lt_cv_path_NM="$tmp_nm -p"
11067 break
11068 ;;
11069 *)
11070 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11071 continue # so that we can try to find one that supports BSD flags
11072 ;;
11073 esac
11074 ;;
11075 esac
11076 fi
11077 done
11078 IFS="$lt_save_ifs"
11079 done
11080 : ${lt_cv_path_NM=no}
11081 fi
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11084 $as_echo "$lt_cv_path_NM" >&6; }
11085 if test "$lt_cv_path_NM" != "no"; then
11086 NM="$lt_cv_path_NM"
11087 else
11088 # Didn't find any BSD compatible name lister, look for dumpbin.
11089 if test -n "$DUMPBIN"; then :
11090 # Let the user override the test.
11091 else
11092 if test -n "$ac_tool_prefix"; then
11093 for ac_prog in dumpbin "link -dump"
11094 do
11095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if ${ac_cv_prog_DUMPBIN+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 if test -n "$DUMPBIN"; then
11103 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11104 else
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116 done
11117 done
11118 IFS=$as_save_IFS
11119
11120 fi
11121 fi
11122 DUMPBIN=$ac_cv_prog_DUMPBIN
11123 if test -n "$DUMPBIN"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11125 $as_echo "$DUMPBIN" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11129 fi
11130
11131
11132 test -n "$DUMPBIN" && break
11133 done
11134 fi
11135 if test -z "$DUMPBIN"; then
11136 ac_ct_DUMPBIN=$DUMPBIN
11137 for ac_prog in dumpbin "link -dump"
11138 do
11139 # Extract the first word of "$ac_prog", so it can be a program name with args.
11140 set dummy $ac_prog; ac_word=$2
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142 $as_echo_n "checking for $ac_word... " >&6; }
11143 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 if test -n "$ac_ct_DUMPBIN"; then
11147 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11148 else
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150 for as_dir in $PATH
11151 do
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11156 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11159 fi
11160 done
11161 done
11162 IFS=$as_save_IFS
11163
11164 fi
11165 fi
11166 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11167 if test -n "$ac_ct_DUMPBIN"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11169 $as_echo "$ac_ct_DUMPBIN" >&6; }
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11173 fi
11174
11175
11176 test -n "$ac_ct_DUMPBIN" && break
11177 done
11178
11179 if test "x$ac_ct_DUMPBIN" = x; then
11180 DUMPBIN=":"
11181 else
11182 case $cross_compiling:$ac_tool_warned in
11183 yes:)
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11186 ac_tool_warned=yes ;;
11187 esac
11188 DUMPBIN=$ac_ct_DUMPBIN
11189 fi
11190 fi
11191
11192 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11193 *COFF*)
11194 DUMPBIN="$DUMPBIN -symbols"
11195 ;;
11196 *)
11197 DUMPBIN=:
11198 ;;
11199 esac
11200 fi
11201
11202 if test "$DUMPBIN" != ":"; then
11203 NM="$DUMPBIN"
11204 fi
11205 fi
11206 test -z "$NM" && NM=nm
11207
11208
11209
11210
11211
11212
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11214 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11215 if ${lt_cv_nm_interface+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 lt_cv_nm_interface="BSD nm"
11219 echo "int some_variable = 0;" > conftest.$ac_ext
11220 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11221 (eval "$ac_compile" 2>conftest.err)
11222 cat conftest.err >&5
11223 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11224 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11225 cat conftest.err >&5
11226 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11227 cat conftest.out >&5
11228 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11229 lt_cv_nm_interface="MS dumpbin"
11230 fi
11231 rm -f conftest*
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11234 $as_echo "$lt_cv_nm_interface" >&6; }
11235
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11237 $as_echo_n "checking whether ln -s works... " >&6; }
11238 LN_S=$as_ln_s
11239 if test "$LN_S" = "ln -s"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11242 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11244 $as_echo "no, using $LN_S" >&6; }
11245 fi
11246
11247 # find the maximum length of command line arguments
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11249 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11250 if ${lt_cv_sys_max_cmd_len+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 i=0
11254 teststring="ABCD"
11255
11256 case $build_os in
11257 msdosdjgpp*)
11258 # On DJGPP, this test can blow up pretty badly due to problems in libc
11259 # (any single argument exceeding 2000 bytes causes a buffer overrun
11260 # during glob expansion). Even if it were fixed, the result of this
11261 # check would be larger than it should be.
11262 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11263 ;;
11264
11265 gnu*)
11266 # Under GNU Hurd, this test is not required because there is
11267 # no limit to the length of command line arguments.
11268 # Libtool will interpret -1 as no limit whatsoever
11269 lt_cv_sys_max_cmd_len=-1;
11270 ;;
11271
11272 cygwin* | mingw* | cegcc*)
11273 # On Win9x/ME, this test blows up -- it succeeds, but takes
11274 # about 5 minutes as the teststring grows exponentially.
11275 # Worse, since 9x/ME are not pre-emptively multitasking,
11276 # you end up with a "frozen" computer, even though with patience
11277 # the test eventually succeeds (with a max line length of 256k).
11278 # Instead, let's just punt: use the minimum linelength reported by
11279 # all of the supported platforms: 8192 (on NT/2K/XP).
11280 lt_cv_sys_max_cmd_len=8192;
11281 ;;
11282
11283 mint*)
11284 # On MiNT this can take a long time and run out of memory.
11285 lt_cv_sys_max_cmd_len=8192;
11286 ;;
11287
11288 amigaos*)
11289 # On AmigaOS with pdksh, this test takes hours, literally.
11290 # So we just punt and use a minimum line length of 8192.
11291 lt_cv_sys_max_cmd_len=8192;
11292 ;;
11293
11294 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11295 # This has been around since 386BSD, at least. Likely further.
11296 if test -x /sbin/sysctl; then
11297 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11298 elif test -x /usr/sbin/sysctl; then
11299 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11300 else
11301 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11302 fi
11303 # And add a safety zone
11304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11306 ;;
11307
11308 interix*)
11309 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11310 lt_cv_sys_max_cmd_len=196608
11311 ;;
11312
11313 os2*)
11314 # The test takes a long time on OS/2.
11315 lt_cv_sys_max_cmd_len=8192
11316 ;;
11317
11318 osf*)
11319 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11320 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11321 # nice to cause kernel panics so lets avoid the loop below.
11322 # First set a reasonable default.
11323 lt_cv_sys_max_cmd_len=16384
11324 #
11325 if test -x /sbin/sysconfig; then
11326 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11327 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11328 esac
11329 fi
11330 ;;
11331 sco3.2v5*)
11332 lt_cv_sys_max_cmd_len=102400
11333 ;;
11334 sysv5* | sco5v6* | sysv4.2uw2*)
11335 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11336 if test -n "$kargmax"; then
11337 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11338 else
11339 lt_cv_sys_max_cmd_len=32768
11340 fi
11341 ;;
11342 *)
11343 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11344 if test -n "$lt_cv_sys_max_cmd_len"; then
11345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11347 else
11348 # Make teststring a little bigger before we do anything with it.
11349 # a 1K string should be a reasonable start.
11350 for i in 1 2 3 4 5 6 7 8 ; do
11351 teststring=$teststring$teststring
11352 done
11353 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11354 # If test is not a shell built-in, we'll probably end up computing a
11355 # maximum length that is only half of the actual maximum length, but
11356 # we can't tell.
11357 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11358 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11359 test $i != 17 # 1/2 MB should be enough
11360 do
11361 i=`expr $i + 1`
11362 teststring=$teststring$teststring
11363 done
11364 # Only check the string length outside the loop.
11365 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11366 teststring=
11367 # Add a significant safety factor because C++ compilers can tack on
11368 # massive amounts of additional arguments before passing them to the
11369 # linker. It appears as though 1/2 is a usable value.
11370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11371 fi
11372 ;;
11373 esac
11374
11375 fi
11376
11377 if test -n $lt_cv_sys_max_cmd_len ; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11379 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11382 $as_echo "none" >&6; }
11383 fi
11384 max_cmd_len=$lt_cv_sys_max_cmd_len
11385
11386
11387
11388
11389
11390
11391 : ${CP="cp -f"}
11392 : ${MV="mv -f"}
11393 : ${RM="rm -f"}
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11396 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11397 # Try some XSI features
11398 xsi_shell=no
11399 ( _lt_dummy="a/b/c"
11400 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11401 = c,a/b,b/c, \
11402 && eval 'test $(( 1 + 1 )) -eq 2 \
11403 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11404 && xsi_shell=yes
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11406 $as_echo "$xsi_shell" >&6; }
11407
11408
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11410 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11411 lt_shell_append=no
11412 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11413 >/dev/null 2>&1 \
11414 && lt_shell_append=yes
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11416 $as_echo "$lt_shell_append" >&6; }
11417
11418
11419 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11420 lt_unset=unset
11421 else
11422 lt_unset=false
11423 fi
11424
11425
11426
11427
11428
11429 # test EBCDIC or ASCII
11430 case `echo X|tr X '\101'` in
11431 A) # ASCII based system
11432 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11433 lt_SP2NL='tr \040 \012'
11434 lt_NL2SP='tr \015\012 \040\040'
11435 ;;
11436 *) # EBCDIC based system
11437 lt_SP2NL='tr \100 \n'
11438 lt_NL2SP='tr \r\n \100\100'
11439 ;;
11440 esac
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11451 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11452 if ${lt_cv_to_host_file_cmd+:} false; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 case $host in
11456 *-*-mingw* )
11457 case $build in
11458 *-*-mingw* ) # actually msys
11459 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11460 ;;
11461 *-*-cygwin* )
11462 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11463 ;;
11464 * ) # otherwise, assume *nix
11465 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11466 ;;
11467 esac
11468 ;;
11469 *-*-cygwin* )
11470 case $build in
11471 *-*-mingw* ) # actually msys
11472 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11473 ;;
11474 *-*-cygwin* )
11475 lt_cv_to_host_file_cmd=func_convert_file_noop
11476 ;;
11477 * ) # otherwise, assume *nix
11478 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11479 ;;
11480 esac
11481 ;;
11482 * ) # unhandled hosts (and "normal" native builds)
11483 lt_cv_to_host_file_cmd=func_convert_file_noop
11484 ;;
11485 esac
11486
11487 fi
11488
11489 to_host_file_cmd=$lt_cv_to_host_file_cmd
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11491 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11492
11493
11494
11495
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11498 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11499 if ${lt_cv_to_tool_file_cmd+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 #assume ordinary cross tools, or native build.
11503 lt_cv_to_tool_file_cmd=func_convert_file_noop
11504 case $host in
11505 *-*-mingw* )
11506 case $build in
11507 *-*-mingw* ) # actually msys
11508 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11509 ;;
11510 esac
11511 ;;
11512 esac
11513
11514 fi
11515
11516 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11518 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11519
11520
11521
11522
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11525 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11526 if ${lt_cv_ld_reload_flag+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 lt_cv_ld_reload_flag='-r'
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11532 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11533 reload_flag=$lt_cv_ld_reload_flag
11534 case $reload_flag in
11535 "" | " "*) ;;
11536 *) reload_flag=" $reload_flag" ;;
11537 esac
11538 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11539 case $host_os in
11540 cygwin* | mingw* | pw32* | cegcc*)
11541 if test "$GCC" != yes; then
11542 reload_cmds=false
11543 fi
11544 ;;
11545 darwin*)
11546 if test "$GCC" = yes; then
11547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11548 else
11549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11550 fi
11551 ;;
11552 esac
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562 if test -n "$ac_tool_prefix"; then
11563 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11564 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if ${ac_cv_prog_OBJDUMP+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 if test -n "$OBJDUMP"; then
11571 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11572 else
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11575 do
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11580 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 break 2
11583 fi
11584 done
11585 done
11586 IFS=$as_save_IFS
11587
11588 fi
11589 fi
11590 OBJDUMP=$ac_cv_prog_OBJDUMP
11591 if test -n "$OBJDUMP"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11593 $as_echo "$OBJDUMP" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597 fi
11598
11599
11600 fi
11601 if test -z "$ac_cv_prog_OBJDUMP"; then
11602 ac_ct_OBJDUMP=$OBJDUMP
11603 # Extract the first word of "objdump", so it can be a program name with args.
11604 set dummy objdump; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 if test -n "$ac_ct_OBJDUMP"; then
11611 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11612 else
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11615 do
11616 IFS=$as_save_IFS
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11620 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622 break 2
11623 fi
11624 done
11625 done
11626 IFS=$as_save_IFS
11627
11628 fi
11629 fi
11630 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11631 if test -n "$ac_ct_OBJDUMP"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11633 $as_echo "$ac_ct_OBJDUMP" >&6; }
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11637 fi
11638
11639 if test "x$ac_ct_OBJDUMP" = x; then
11640 OBJDUMP="false"
11641 else
11642 case $cross_compiling:$ac_tool_warned in
11643 yes:)
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11646 ac_tool_warned=yes ;;
11647 esac
11648 OBJDUMP=$ac_ct_OBJDUMP
11649 fi
11650 else
11651 OBJDUMP="$ac_cv_prog_OBJDUMP"
11652 fi
11653
11654 test -z "$OBJDUMP" && OBJDUMP=objdump
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11665 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11666 if ${lt_cv_deplibs_check_method+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 lt_cv_file_magic_cmd='$MAGIC_CMD'
11670 lt_cv_file_magic_test_file=
11671 lt_cv_deplibs_check_method='unknown'
11672 # Need to set the preceding variable on all platforms that support
11673 # interlibrary dependencies.
11674 # 'none' -- dependencies not supported.
11675 # `unknown' -- same as none, but documents that we really don't know.
11676 # 'pass_all' -- all dependencies passed with no checks.
11677 # 'test_compile' -- check by making test program.
11678 # 'file_magic [[regex]]' -- check by looking for files in library path
11679 # which responds to the $file_magic_cmd with a given extended regex.
11680 # If you have `file' or equivalent on your system and you're not sure
11681 # whether `pass_all' will *always* work, you probably want this one.
11682
11683 case $host_os in
11684 aix[4-9]*)
11685 lt_cv_deplibs_check_method=pass_all
11686 ;;
11687
11688 beos*)
11689 lt_cv_deplibs_check_method=pass_all
11690 ;;
11691
11692 bsdi[45]*)
11693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11694 lt_cv_file_magic_cmd='/usr/bin/file -L'
11695 lt_cv_file_magic_test_file=/shlib/libc.so
11696 ;;
11697
11698 cygwin*)
11699 # func_win32_libid is a shell function defined in ltmain.sh
11700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11701 lt_cv_file_magic_cmd='func_win32_libid'
11702 ;;
11703
11704 mingw* | pw32*)
11705 # Base MSYS/MinGW do not provide the 'file' command needed by
11706 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11707 # unless we find 'file', for example because we are cross-compiling.
11708 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11709 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11711 lt_cv_file_magic_cmd='func_win32_libid'
11712 else
11713 # Keep this pattern in sync with the one in func_win32_libid.
11714 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11715 lt_cv_file_magic_cmd='$OBJDUMP -f'
11716 fi
11717 ;;
11718
11719 cegcc*)
11720 # use the weaker test based on 'objdump'. See mingw*.
11721 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11722 lt_cv_file_magic_cmd='$OBJDUMP -f'
11723 ;;
11724
11725 darwin* | rhapsody*)
11726 lt_cv_deplibs_check_method=pass_all
11727 ;;
11728
11729 freebsd* | dragonfly*)
11730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11731 case $host_cpu in
11732 i*86 )
11733 # Not sure whether the presence of OpenBSD here was a mistake.
11734 # Let's accept both of them until this is cleared up.
11735 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11736 lt_cv_file_magic_cmd=/usr/bin/file
11737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11738 ;;
11739 esac
11740 else
11741 lt_cv_deplibs_check_method=pass_all
11742 fi
11743 ;;
11744
11745 gnu*)
11746 lt_cv_deplibs_check_method=pass_all
11747 ;;
11748
11749 haiku*)
11750 lt_cv_deplibs_check_method=pass_all
11751 ;;
11752
11753 hpux10.20* | hpux11*)
11754 lt_cv_file_magic_cmd=/usr/bin/file
11755 case $host_cpu in
11756 ia64*)
11757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11758 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11759 ;;
11760 hppa*64*)
11761 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]'
11762 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11763 ;;
11764 *)
11765 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11766 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11767 ;;
11768 esac
11769 ;;
11770
11771 interix[3-9]*)
11772 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11774 ;;
11775
11776 irix5* | irix6* | nonstopux*)
11777 case $LD in
11778 *-32|*"-32 ") libmagic=32-bit;;
11779 *-n32|*"-n32 ") libmagic=N32;;
11780 *-64|*"-64 ") libmagic=64-bit;;
11781 *) libmagic=never-match;;
11782 esac
11783 lt_cv_deplibs_check_method=pass_all
11784 ;;
11785
11786 # This must be glibc/ELF.
11787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11788 lt_cv_deplibs_check_method=pass_all
11789 ;;
11790
11791 netbsd*)
11792 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11794 else
11795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11796 fi
11797 ;;
11798
11799 newos6*)
11800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11801 lt_cv_file_magic_cmd=/usr/bin/file
11802 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11803 ;;
11804
11805 *nto* | *qnx*)
11806 lt_cv_deplibs_check_method=pass_all
11807 ;;
11808
11809 openbsd*)
11810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11812 else
11813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11814 fi
11815 ;;
11816
11817 osf3* | osf4* | osf5*)
11818 lt_cv_deplibs_check_method=pass_all
11819 ;;
11820
11821 rdos*)
11822 lt_cv_deplibs_check_method=pass_all
11823 ;;
11824
11825 solaris*)
11826 lt_cv_deplibs_check_method=pass_all
11827 ;;
11828
11829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11830 lt_cv_deplibs_check_method=pass_all
11831 ;;
11832
11833 sysv4 | sysv4.3*)
11834 case $host_vendor in
11835 motorola)
11836 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]'
11837 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11838 ;;
11839 ncr)
11840 lt_cv_deplibs_check_method=pass_all
11841 ;;
11842 sequent)
11843 lt_cv_file_magic_cmd='/bin/file'
11844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11845 ;;
11846 sni)
11847 lt_cv_file_magic_cmd='/bin/file'
11848 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11849 lt_cv_file_magic_test_file=/lib/libc.so
11850 ;;
11851 siemens)
11852 lt_cv_deplibs_check_method=pass_all
11853 ;;
11854 pc)
11855 lt_cv_deplibs_check_method=pass_all
11856 ;;
11857 esac
11858 ;;
11859
11860 tpf*)
11861 lt_cv_deplibs_check_method=pass_all
11862 ;;
11863 esac
11864
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11867 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11868
11869 file_magic_glob=
11870 want_nocaseglob=no
11871 if test "$build" = "$host"; then
11872 case $host_os in
11873 mingw* | pw32*)
11874 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11875 want_nocaseglob=yes
11876 else
11877 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11878 fi
11879 ;;
11880 esac
11881 fi
11882
11883 file_magic_cmd=$lt_cv_file_magic_cmd
11884 deplibs_check_method=$lt_cv_deplibs_check_method
11885 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908 if test -n "$ac_tool_prefix"; then
11909 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11910 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_prog_DLLTOOL+:} false; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 if test -n "$DLLTOOL"; then
11917 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11918 else
11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920 for as_dir in $PATH
11921 do
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11926 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11929 fi
11930 done
11931 done
11932 IFS=$as_save_IFS
11933
11934 fi
11935 fi
11936 DLLTOOL=$ac_cv_prog_DLLTOOL
11937 if test -n "$DLLTOOL"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11939 $as_echo "$DLLTOOL" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 fi
11944
11945
11946 fi
11947 if test -z "$ac_cv_prog_DLLTOOL"; then
11948 ac_ct_DLLTOOL=$DLLTOOL
11949 # Extract the first word of "dlltool", so it can be a program name with args.
11950 set dummy dlltool; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 if test -n "$ac_ct_DLLTOOL"; then
11957 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11966 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 break 2
11969 fi
11970 done
11971 done
11972 IFS=$as_save_IFS
11973
11974 fi
11975 fi
11976 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11977 if test -n "$ac_ct_DLLTOOL"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11979 $as_echo "$ac_ct_DLLTOOL" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 fi
11984
11985 if test "x$ac_ct_DLLTOOL" = x; then
11986 DLLTOOL="false"
11987 else
11988 case $cross_compiling:$ac_tool_warned in
11989 yes:)
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11992 ac_tool_warned=yes ;;
11993 esac
11994 DLLTOOL=$ac_ct_DLLTOOL
11995 fi
11996 else
11997 DLLTOOL="$ac_cv_prog_DLLTOOL"
11998 fi
11999
12000 test -z "$DLLTOOL" && DLLTOOL=dlltool
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12012 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12013 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 lt_cv_sharedlib_from_linklib_cmd='unknown'
12017
12018 case $host_os in
12019 cygwin* | mingw* | pw32* | cegcc*)
12020 # two different shell functions defined in ltmain.sh
12021 # decide which to use based on capabilities of $DLLTOOL
12022 case `$DLLTOOL --help 2>&1` in
12023 *--identify-strict*)
12024 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12025 ;;
12026 *)
12027 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12028 ;;
12029 esac
12030 ;;
12031 *)
12032 # fallback: assume linklib IS sharedlib
12033 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12034 ;;
12035 esac
12036
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12039 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12040 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12041 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12042
12043
12044
12045
12046
12047
12048
12049 if test -n "$ac_tool_prefix"; then
12050 for ac_prog in ar
12051 do
12052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if ${ac_cv_prog_AR+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 if test -n "$AR"; then
12060 ac_cv_prog_AR="$AR" # Let the user override the test.
12061 else
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12064 do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12069 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12072 fi
12073 done
12074 done
12075 IFS=$as_save_IFS
12076
12077 fi
12078 fi
12079 AR=$ac_cv_prog_AR
12080 if test -n "$AR"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12082 $as_echo "$AR" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 fi
12087
12088
12089 test -n "$AR" && break
12090 done
12091 fi
12092 if test -z "$AR"; then
12093 ac_ct_AR=$AR
12094 for ac_prog in ar
12095 do
12096 # Extract the first word of "$ac_prog", so it can be a program name with args.
12097 set dummy $ac_prog; ac_word=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 if test -n "$ac_ct_AR"; then
12104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12105 else
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12108 do
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12113 ac_cv_prog_ac_ct_AR="$ac_prog"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12116 fi
12117 done
12118 done
12119 IFS=$as_save_IFS
12120
12121 fi
12122 fi
12123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12124 if test -n "$ac_ct_AR"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12126 $as_echo "$ac_ct_AR" >&6; }
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12130 fi
12131
12132
12133 test -n "$ac_ct_AR" && break
12134 done
12135
12136 if test "x$ac_ct_AR" = x; then
12137 AR="false"
12138 else
12139 case $cross_compiling:$ac_tool_warned in
12140 yes:)
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12143 ac_tool_warned=yes ;;
12144 esac
12145 AR=$ac_ct_AR
12146 fi
12147 fi
12148
12149 : ${AR=ar}
12150 : ${AR_FLAGS=cru}
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12163 $as_echo_n "checking for archiver @FILE support... " >&6; }
12164 if ${lt_cv_ar_at_file+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 lt_cv_ar_at_file=no
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170
12171 int
12172 main ()
12173 {
12174
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_compile "$LINENO"; then :
12180 echo conftest.$ac_objext > conftest.lst
12181 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12183 (eval $lt_ar_try) 2>&5
12184 ac_status=$?
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; }
12187 if test "$ac_status" -eq 0; then
12188 # Ensure the archiver fails upon bogus file names.
12189 rm -f conftest.$ac_objext libconftest.a
12190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12191 (eval $lt_ar_try) 2>&5
12192 ac_status=$?
12193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12194 test $ac_status = 0; }
12195 if test "$ac_status" -ne 0; then
12196 lt_cv_ar_at_file=@
12197 fi
12198 fi
12199 rm -f conftest.* libconftest.a
12200
12201 fi
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12206 $as_echo "$lt_cv_ar_at_file" >&6; }
12207
12208 if test "x$lt_cv_ar_at_file" = xno; then
12209 archiver_list_spec=
12210 else
12211 archiver_list_spec=$lt_cv_ar_at_file
12212 fi
12213
12214
12215
12216
12217
12218
12219
12220 if test -n "$ac_tool_prefix"; then
12221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12222 set dummy ${ac_tool_prefix}strip; ac_word=$2
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224 $as_echo_n "checking for $ac_word... " >&6; }
12225 if ${ac_cv_prog_STRIP+:} false; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 if test -n "$STRIP"; then
12229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12230 else
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $PATH
12233 do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242 done
12243 done
12244 IFS=$as_save_IFS
12245
12246 fi
12247 fi
12248 STRIP=$ac_cv_prog_STRIP
12249 if test -n "$STRIP"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12251 $as_echo "$STRIP" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256
12257
12258 fi
12259 if test -z "$ac_cv_prog_STRIP"; then
12260 ac_ct_STRIP=$STRIP
12261 # Extract the first word of "strip", so it can be a program name with args.
12262 set dummy strip; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 if test -n "$ac_ct_STRIP"; then
12269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12270 else
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12278 ac_cv_prog_ac_ct_STRIP="strip"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282 done
12283 done
12284 IFS=$as_save_IFS
12285
12286 fi
12287 fi
12288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12289 if test -n "$ac_ct_STRIP"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12291 $as_echo "$ac_ct_STRIP" >&6; }
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12295 fi
12296
12297 if test "x$ac_ct_STRIP" = x; then
12298 STRIP=":"
12299 else
12300 case $cross_compiling:$ac_tool_warned in
12301 yes:)
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12304 ac_tool_warned=yes ;;
12305 esac
12306 STRIP=$ac_ct_STRIP
12307 fi
12308 else
12309 STRIP="$ac_cv_prog_STRIP"
12310 fi
12311
12312 test -z "$STRIP" && STRIP=:
12313
12314
12315
12316
12317
12318
12319 if test -n "$ac_tool_prefix"; then
12320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if ${ac_cv_prog_RANLIB+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 if test -n "$RANLIB"; then
12328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12329 else
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12332 do
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 break 2
12340 fi
12341 done
12342 done
12343 IFS=$as_save_IFS
12344
12345 fi
12346 fi
12347 RANLIB=$ac_cv_prog_RANLIB
12348 if test -n "$RANLIB"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12350 $as_echo "$RANLIB" >&6; }
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12354 fi
12355
12356
12357 fi
12358 if test -z "$ac_cv_prog_RANLIB"; then
12359 ac_ct_RANLIB=$RANLIB
12360 # Extract the first word of "ranlib", so it can be a program name with args.
12361 set dummy ranlib; ac_word=$2
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363 $as_echo_n "checking for $ac_word... " >&6; }
12364 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 if test -n "$ac_ct_RANLIB"; then
12368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12369 else
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12372 do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377 ac_cv_prog_ac_ct_RANLIB="ranlib"
12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379 break 2
12380 fi
12381 done
12382 done
12383 IFS=$as_save_IFS
12384
12385 fi
12386 fi
12387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12388 if test -n "$ac_ct_RANLIB"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12390 $as_echo "$ac_ct_RANLIB" >&6; }
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395
12396 if test "x$ac_ct_RANLIB" = x; then
12397 RANLIB=":"
12398 else
12399 case $cross_compiling:$ac_tool_warned in
12400 yes:)
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12403 ac_tool_warned=yes ;;
12404 esac
12405 RANLIB=$ac_ct_RANLIB
12406 fi
12407 else
12408 RANLIB="$ac_cv_prog_RANLIB"
12409 fi
12410
12411 test -z "$RANLIB" && RANLIB=:
12412
12413
12414
12415
12416
12417
12418 # Determine commands to create old-style static archives.
12419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12420 old_postinstall_cmds='chmod 644 $oldlib'
12421 old_postuninstall_cmds=
12422
12423 if test -n "$RANLIB"; then
12424 case $host_os in
12425 openbsd*)
12426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12427 ;;
12428 *)
12429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12430 ;;
12431 esac
12432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12433 fi
12434
12435 case $host_os in
12436 darwin*)
12437 lock_old_archive_extraction=yes ;;
12438 *)
12439 lock_old_archive_extraction=no ;;
12440 esac
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480 # If no C compiler was specified, use CC.
12481 LTCC=${LTCC-"$CC"}
12482
12483 # If no C compiler flags were specified, use CFLAGS.
12484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12485
12486 # Allow CC to be a program name with arguments.
12487 compiler=$CC
12488
12489
12490 # Check for command to grab the raw symbol name followed by C symbol from nm.
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12492 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12493 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496
12497 # These are sane defaults that work on at least a few old systems.
12498 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12499
12500 # Character class describing NM global symbol codes.
12501 symcode='[BCDEGRST]'
12502
12503 # Regexp to match symbols that can be accessed directly from C.
12504 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12505
12506 # Define system-specific variables.
12507 case $host_os in
12508 aix*)
12509 symcode='[BCDT]'
12510 ;;
12511 cygwin* | mingw* | pw32* | cegcc*)
12512 symcode='[ABCDGISTW]'
12513 ;;
12514 hpux*)
12515 if test "$host_cpu" = ia64; then
12516 symcode='[ABCDEGRST]'
12517 fi
12518 ;;
12519 irix* | nonstopux*)
12520 symcode='[BCDEGRST]'
12521 ;;
12522 osf*)
12523 symcode='[BCDEGQRST]'
12524 ;;
12525 solaris*)
12526 symcode='[BDRT]'
12527 ;;
12528 sco3.2v5*)
12529 symcode='[DT]'
12530 ;;
12531 sysv4.2uw2*)
12532 symcode='[DT]'
12533 ;;
12534 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12535 symcode='[ABDT]'
12536 ;;
12537 sysv4)
12538 symcode='[DFNSTU]'
12539 ;;
12540 esac
12541
12542 # If we're using GNU nm, then use its standard symbol codes.
12543 case `$NM -V 2>&1` in
12544 *GNU* | *'with BFD'*)
12545 symcode='[ABCDGIRSTW]' ;;
12546 esac
12547
12548 # Transform an extracted symbol line into a proper C declaration.
12549 # Some systems (esp. on ia64) link data and code symbols differently,
12550 # so use this general approach.
12551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12552
12553 # Transform an extracted symbol line into symbol name and symbol address
12554 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12555 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'"
12556
12557 # Handle CRLF in mingw tool chain
12558 opt_cr=
12559 case $build_os in
12560 mingw*)
12561 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12562 ;;
12563 esac
12564
12565 # Try without a prefix underscore, then with it.
12566 for ac_symprfx in "" "_"; do
12567
12568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12569 symxfrm="\\1 $ac_symprfx\\2 \\2"
12570
12571 # Write the raw and C identifiers.
12572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12573 # Fake it for dumpbin and say T for any non-static function
12574 # and D for any global variable.
12575 # Also find C++ and __fastcall symbols from MSVC++,
12576 # which start with @ or ?.
12577 lt_cv_sys_global_symbol_pipe="$AWK '"\
12578 " {last_section=section; section=\$ 3};"\
12579 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12580 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12581 " \$ 0!~/External *\|/{next};"\
12582 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12583 " {if(hide[section]) next};"\
12584 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12585 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12586 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12587 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12588 " ' prfx=^$ac_symprfx"
12589 else
12590 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12591 fi
12592 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12593
12594 # Check to see that the pipe works correctly.
12595 pipe_works=no
12596
12597 rm -f conftest*
12598 cat > conftest.$ac_ext <<_LT_EOF
12599 #ifdef __cplusplus
12600 extern "C" {
12601 #endif
12602 char nm_test_var;
12603 void nm_test_func(void);
12604 void nm_test_func(void){}
12605 #ifdef __cplusplus
12606 }
12607 #endif
12608 int main(){nm_test_var='a';nm_test_func();return(0);}
12609 _LT_EOF
12610
12611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12612 (eval $ac_compile) 2>&5
12613 ac_status=$?
12614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615 test $ac_status = 0; }; then
12616 # Now try to grab the symbols.
12617 nlist=conftest.nm
12618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12619 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12620 ac_status=$?
12621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12622 test $ac_status = 0; } && test -s "$nlist"; then
12623 # Try sorting and uniquifying the output.
12624 if sort "$nlist" | uniq > "$nlist"T; then
12625 mv -f "$nlist"T "$nlist"
12626 else
12627 rm -f "$nlist"T
12628 fi
12629
12630 # Make sure that we snagged all the symbols we need.
12631 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12632 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12633 cat <<_LT_EOF > conftest.$ac_ext
12634 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12635 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12636 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12637 relocations are performed -- see ld's documentation on pseudo-relocs. */
12638 # define LT_DLSYM_CONST
12639 #elif defined(__osf__)
12640 /* This system does not cope well with relocations in const data. */
12641 # define LT_DLSYM_CONST
12642 #else
12643 # define LT_DLSYM_CONST const
12644 #endif
12645
12646 #ifdef __cplusplus
12647 extern "C" {
12648 #endif
12649
12650 _LT_EOF
12651 # Now generate the symbol file.
12652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12653
12654 cat <<_LT_EOF >> conftest.$ac_ext
12655
12656 /* The mapping between symbol names and symbols. */
12657 LT_DLSYM_CONST struct {
12658 const char *name;
12659 void *address;
12660 }
12661 lt__PROGRAM__LTX_preloaded_symbols[] =
12662 {
12663 { "@PROGRAM@", (void *) 0 },
12664 _LT_EOF
12665 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12666 cat <<\_LT_EOF >> conftest.$ac_ext
12667 {0, (void *) 0}
12668 };
12669
12670 /* This works around a problem in FreeBSD linker */
12671 #ifdef FREEBSD_WORKAROUND
12672 static const void *lt_preloaded_setup() {
12673 return lt__PROGRAM__LTX_preloaded_symbols;
12674 }
12675 #endif
12676
12677 #ifdef __cplusplus
12678 }
12679 #endif
12680 _LT_EOF
12681 # Now try linking the two files.
12682 mv conftest.$ac_objext conftstm.$ac_objext
12683 lt_globsym_save_LIBS=$LIBS
12684 lt_globsym_save_CFLAGS=$CFLAGS
12685 LIBS="conftstm.$ac_objext"
12686 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12688 (eval $ac_link) 2>&5
12689 ac_status=$?
12690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12691 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12692 pipe_works=yes
12693 fi
12694 LIBS=$lt_globsym_save_LIBS
12695 CFLAGS=$lt_globsym_save_CFLAGS
12696 else
12697 echo "cannot find nm_test_func in $nlist" >&5
12698 fi
12699 else
12700 echo "cannot find nm_test_var in $nlist" >&5
12701 fi
12702 else
12703 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12704 fi
12705 else
12706 echo "$progname: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12708 fi
12709 rm -rf conftest* conftst*
12710
12711 # Do not use the global_symbol_pipe unless it works.
12712 if test "$pipe_works" = yes; then
12713 break
12714 else
12715 lt_cv_sys_global_symbol_pipe=
12716 fi
12717 done
12718
12719 fi
12720
12721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12722 lt_cv_sys_global_symbol_to_cdecl=
12723 fi
12724 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12726 $as_echo "failed" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12729 $as_echo "ok" >&6; }
12730 fi
12731
12732 # Response file support.
12733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12734 nm_file_list_spec='@'
12735 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12736 nm_file_list_spec='@'
12737 fi
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12766 $as_echo_n "checking for sysroot... " >&6; }
12767
12768 # Check whether --with-sysroot was given.
12769 if test "${with_sysroot+set}" = set; then :
12770 withval=$with_sysroot;
12771 else
12772 with_sysroot=no
12773 fi
12774
12775
12776 lt_sysroot=
12777 case ${with_sysroot} in #(
12778 yes)
12779 if test "$GCC" = yes; then
12780 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12781 fi
12782 ;; #(
12783 /*)
12784 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12785 ;; #(
12786 no|'')
12787 ;; #(
12788 *)
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12790 $as_echo "${with_sysroot}" >&6; }
12791 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12792 ;;
12793 esac
12794
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12796 $as_echo "${lt_sysroot:-no}" >&6; }
12797
12798
12799
12800
12801
12802 # Check whether --enable-libtool-lock was given.
12803 if test "${enable_libtool_lock+set}" = set; then :
12804 enableval=$enable_libtool_lock;
12805 fi
12806
12807 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12808
12809 # Some flags need to be propagated to the compiler or linker for good
12810 # libtool support.
12811 case $host in
12812 ia64-*-hpux*)
12813 # Find out which ABI we are using.
12814 echo 'int i;' > conftest.$ac_ext
12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12816 (eval $ac_compile) 2>&5
12817 ac_status=$?
12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819 test $ac_status = 0; }; then
12820 case `/usr/bin/file conftest.$ac_objext` in
12821 *ELF-32*)
12822 HPUX_IA64_MODE="32"
12823 ;;
12824 *ELF-64*)
12825 HPUX_IA64_MODE="64"
12826 ;;
12827 esac
12828 fi
12829 rm -rf conftest*
12830 ;;
12831 *-*-irix6*)
12832 # Find out which ABI we are using.
12833 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12835 (eval $ac_compile) 2>&5
12836 ac_status=$?
12837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12838 test $ac_status = 0; }; then
12839 if test "$lt_cv_prog_gnu_ld" = yes; then
12840 case `/usr/bin/file conftest.$ac_objext` in
12841 *32-bit*)
12842 LD="${LD-ld} -melf32bsmip"
12843 ;;
12844 *N32*)
12845 LD="${LD-ld} -melf32bmipn32"
12846 ;;
12847 *64-bit*)
12848 LD="${LD-ld} -melf64bmip"
12849 ;;
12850 esac
12851 else
12852 case `/usr/bin/file conftest.$ac_objext` in
12853 *32-bit*)
12854 LD="${LD-ld} -32"
12855 ;;
12856 *N32*)
12857 LD="${LD-ld} -n32"
12858 ;;
12859 *64-bit*)
12860 LD="${LD-ld} -64"
12861 ;;
12862 esac
12863 fi
12864 fi
12865 rm -rf conftest*
12866 ;;
12867
12868 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12869 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12870 # Find out which ABI we are using.
12871 echo 'int i;' > conftest.$ac_ext
12872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12873 (eval $ac_compile) 2>&5
12874 ac_status=$?
12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876 test $ac_status = 0; }; then
12877 case `/usr/bin/file conftest.o` in
12878 *32-bit*)
12879 case $host in
12880 x86_64-*kfreebsd*-gnu)
12881 LD="${LD-ld} -m elf_i386_fbsd"
12882 ;;
12883 x86_64-*linux*)
12884 LD="${LD-ld} -m elf_i386"
12885 ;;
12886 ppc64-*linux*|powerpc64-*linux*)
12887 LD="${LD-ld} -m elf32ppclinux"
12888 ;;
12889 s390x-*linux*)
12890 LD="${LD-ld} -m elf_s390"
12891 ;;
12892 sparc64-*linux*)
12893 LD="${LD-ld} -m elf32_sparc"
12894 ;;
12895 esac
12896 ;;
12897 *64-bit*)
12898 case $host in
12899 x86_64-*kfreebsd*-gnu)
12900 LD="${LD-ld} -m elf_x86_64_fbsd"
12901 ;;
12902 x86_64-*linux*)
12903 LD="${LD-ld} -m elf_x86_64"
12904 ;;
12905 ppc*-*linux*|powerpc*-*linux*)
12906 LD="${LD-ld} -m elf64ppc"
12907 ;;
12908 s390*-*linux*|s390*-*tpf*)
12909 LD="${LD-ld} -m elf64_s390"
12910 ;;
12911 sparc*-*linux*)
12912 LD="${LD-ld} -m elf64_sparc"
12913 ;;
12914 esac
12915 ;;
12916 esac
12917 fi
12918 rm -rf conftest*
12919 ;;
12920
12921 *-*-sco3.2v5*)
12922 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12923 SAVE_CFLAGS="$CFLAGS"
12924 CFLAGS="$CFLAGS -belf"
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12926 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12927 if ${lt_cv_cc_needs_belf+:} false; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930 ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938
12939 int
12940 main ()
12941 {
12942
12943 ;
12944 return 0;
12945 }
12946 _ACEOF
12947 if ac_fn_c_try_link "$LINENO"; then :
12948 lt_cv_cc_needs_belf=yes
12949 else
12950 lt_cv_cc_needs_belf=no
12951 fi
12952 rm -f core conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 ac_ext=c
12955 ac_cpp='$CPP $CPPFLAGS'
12956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12959
12960 fi
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12962 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12963 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12964 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12965 CFLAGS="$SAVE_CFLAGS"
12966 fi
12967 ;;
12968 *-*solaris*)
12969 # Find out which ABI we are using.
12970 echo 'int i;' > conftest.$ac_ext
12971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12972 (eval $ac_compile) 2>&5
12973 ac_status=$?
12974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12975 test $ac_status = 0; }; then
12976 case `/usr/bin/file conftest.o` in
12977 *64-bit*)
12978 case $lt_cv_prog_gnu_ld in
12979 yes*)
12980 case $host in
12981 i?86-*-solaris*)
12982 LD="${LD-ld} -m elf_x86_64"
12983 ;;
12984 sparc*-*-solaris*)
12985 LD="${LD-ld} -m elf64_sparc"
12986 ;;
12987 esac
12988 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12989 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12990 LD="${LD-ld}_sol2"
12991 fi
12992 ;;
12993 *)
12994 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12995 LD="${LD-ld} -64"
12996 fi
12997 ;;
12998 esac
12999 ;;
13000 esac
13001 fi
13002 rm -rf conftest*
13003 ;;
13004 esac
13005
13006 need_locks="$enable_libtool_lock"
13007
13008 if test -n "$ac_tool_prefix"; then
13009 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13010 set dummy ${ac_tool_prefix}mt; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 if test -n "$MANIFEST_TOOL"; then
13017 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13018 else
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13021 do
13022 IFS=$as_save_IFS
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13026 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028 break 2
13029 fi
13030 done
13031 done
13032 IFS=$as_save_IFS
13033
13034 fi
13035 fi
13036 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13037 if test -n "$MANIFEST_TOOL"; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13039 $as_echo "$MANIFEST_TOOL" >&6; }
13040 else
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13043 fi
13044
13045
13046 fi
13047 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13048 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13049 # Extract the first word of "mt", so it can be a program name with args.
13050 set dummy mt; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 if test -n "$ac_ct_MANIFEST_TOOL"; then
13057 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13058 else
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13061 do
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13066 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13069 fi
13070 done
13071 done
13072 IFS=$as_save_IFS
13073
13074 fi
13075 fi
13076 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13077 if test -n "$ac_ct_MANIFEST_TOOL"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13079 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13083 fi
13084
13085 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13086 MANIFEST_TOOL=":"
13087 else
13088 case $cross_compiling:$ac_tool_warned in
13089 yes:)
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13092 ac_tool_warned=yes ;;
13093 esac
13094 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13095 fi
13096 else
13097 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13098 fi
13099
13100 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13102 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13103 if ${lt_cv_path_mainfest_tool+:} false; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 lt_cv_path_mainfest_tool=no
13107 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13108 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13109 cat conftest.err >&5
13110 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13111 lt_cv_path_mainfest_tool=yes
13112 fi
13113 rm -f conftest*
13114 fi
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13116 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13117 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13118 MANIFEST_TOOL=:
13119 fi
13120
13121
13122
13123
13124
13125
13126 case $host_os in
13127 rhapsody* | darwin*)
13128 if test -n "$ac_tool_prefix"; then
13129 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13130 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if test -n "$DSYMUTIL"; then
13137 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150 done
13151 done
13152 IFS=$as_save_IFS
13153
13154 fi
13155 fi
13156 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13157 if test -n "$DSYMUTIL"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13159 $as_echo "$DSYMUTIL" >&6; }
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163 fi
13164
13165
13166 fi
13167 if test -z "$ac_cv_prog_DSYMUTIL"; then
13168 ac_ct_DSYMUTIL=$DSYMUTIL
13169 # Extract the first word of "dsymutil", so it can be a program name with args.
13170 set dummy dsymutil; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 if test -n "$ac_ct_DSYMUTIL"; then
13177 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13189 fi
13190 done
13191 done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13197 if test -n "$ac_ct_DSYMUTIL"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13199 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205 if test "x$ac_ct_DSYMUTIL" = x; then
13206 DSYMUTIL=":"
13207 else
13208 case $cross_compiling:$ac_tool_warned in
13209 yes:)
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13212 ac_tool_warned=yes ;;
13213 esac
13214 DSYMUTIL=$ac_ct_DSYMUTIL
13215 fi
13216 else
13217 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13218 fi
13219
13220 if test -n "$ac_tool_prefix"; then
13221 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13222 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224 $as_echo_n "checking for $ac_word... " >&6; }
13225 if ${ac_cv_prog_NMEDIT+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227 else
13228 if test -n "$NMEDIT"; then
13229 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13230 else
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13233 do
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242 done
13243 done
13244 IFS=$as_save_IFS
13245
13246 fi
13247 fi
13248 NMEDIT=$ac_cv_prog_NMEDIT
13249 if test -n "$NMEDIT"; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13251 $as_echo "$NMEDIT" >&6; }
13252 else
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13255 fi
13256
13257
13258 fi
13259 if test -z "$ac_cv_prog_NMEDIT"; then
13260 ac_ct_NMEDIT=$NMEDIT
13261 # Extract the first word of "nmedit", so it can be a program name with args.
13262 set dummy nmedit; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 if test -n "$ac_ct_NMEDIT"; then
13269 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282 done
13283 done
13284 IFS=$as_save_IFS
13285
13286 fi
13287 fi
13288 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13289 if test -n "$ac_ct_NMEDIT"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13291 $as_echo "$ac_ct_NMEDIT" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297 if test "x$ac_ct_NMEDIT" = x; then
13298 NMEDIT=":"
13299 else
13300 case $cross_compiling:$ac_tool_warned in
13301 yes:)
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13304 ac_tool_warned=yes ;;
13305 esac
13306 NMEDIT=$ac_ct_NMEDIT
13307 fi
13308 else
13309 NMEDIT="$ac_cv_prog_NMEDIT"
13310 fi
13311
13312 if test -n "$ac_tool_prefix"; then
13313 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13314 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if ${ac_cv_prog_LIPO+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 if test -n "$LIPO"; then
13321 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13330 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 break 2
13333 fi
13334 done
13335 done
13336 IFS=$as_save_IFS
13337
13338 fi
13339 fi
13340 LIPO=$ac_cv_prog_LIPO
13341 if test -n "$LIPO"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13343 $as_echo "$LIPO" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 fi
13348
13349
13350 fi
13351 if test -z "$ac_cv_prog_LIPO"; then
13352 ac_ct_LIPO=$LIPO
13353 # Extract the first word of "lipo", so it can be a program name with args.
13354 set dummy lipo; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 if test -n "$ac_ct_LIPO"; then
13361 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13362 else
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13365 do
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370 ac_cv_prog_ac_ct_LIPO="lipo"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13373 fi
13374 done
13375 done
13376 IFS=$as_save_IFS
13377
13378 fi
13379 fi
13380 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13381 if test -n "$ac_ct_LIPO"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13383 $as_echo "$ac_ct_LIPO" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387 fi
13388
13389 if test "x$ac_ct_LIPO" = x; then
13390 LIPO=":"
13391 else
13392 case $cross_compiling:$ac_tool_warned in
13393 yes:)
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13396 ac_tool_warned=yes ;;
13397 esac
13398 LIPO=$ac_ct_LIPO
13399 fi
13400 else
13401 LIPO="$ac_cv_prog_LIPO"
13402 fi
13403
13404 if test -n "$ac_tool_prefix"; then
13405 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13406 set dummy ${ac_tool_prefix}otool; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if ${ac_cv_prog_OTOOL+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 if test -n "$OTOOL"; then
13413 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13414 else
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13417 do
13418 IFS=$as_save_IFS
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424 break 2
13425 fi
13426 done
13427 done
13428 IFS=$as_save_IFS
13429
13430 fi
13431 fi
13432 OTOOL=$ac_cv_prog_OTOOL
13433 if test -n "$OTOOL"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13435 $as_echo "$OTOOL" >&6; }
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13439 fi
13440
13441
13442 fi
13443 if test -z "$ac_cv_prog_OTOOL"; then
13444 ac_ct_OTOOL=$OTOOL
13445 # Extract the first word of "otool", so it can be a program name with args.
13446 set dummy otool; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448 $as_echo_n "checking for $ac_word... " >&6; }
13449 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 if test -n "$ac_ct_OTOOL"; then
13453 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13454 else
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13457 do
13458 IFS=$as_save_IFS
13459 test -z "$as_dir" && as_dir=.
13460 for ac_exec_ext in '' $ac_executable_extensions; do
13461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462 ac_cv_prog_ac_ct_OTOOL="otool"
13463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13464 break 2
13465 fi
13466 done
13467 done
13468 IFS=$as_save_IFS
13469
13470 fi
13471 fi
13472 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13473 if test -n "$ac_ct_OTOOL"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13475 $as_echo "$ac_ct_OTOOL" >&6; }
13476 else
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13479 fi
13480
13481 if test "x$ac_ct_OTOOL" = x; then
13482 OTOOL=":"
13483 else
13484 case $cross_compiling:$ac_tool_warned in
13485 yes:)
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13488 ac_tool_warned=yes ;;
13489 esac
13490 OTOOL=$ac_ct_OTOOL
13491 fi
13492 else
13493 OTOOL="$ac_cv_prog_OTOOL"
13494 fi
13495
13496 if test -n "$ac_tool_prefix"; then
13497 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13498 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if ${ac_cv_prog_OTOOL64+:} false; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 if test -n "$OTOOL64"; then
13505 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13506 else
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13509 do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13517 fi
13518 done
13519 done
13520 IFS=$as_save_IFS
13521
13522 fi
13523 fi
13524 OTOOL64=$ac_cv_prog_OTOOL64
13525 if test -n "$OTOOL64"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13527 $as_echo "$OTOOL64" >&6; }
13528 else
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531 fi
13532
13533
13534 fi
13535 if test -z "$ac_cv_prog_OTOOL64"; then
13536 ac_ct_OTOOL64=$OTOOL64
13537 # Extract the first word of "otool64", so it can be a program name with args.
13538 set dummy otool64; ac_word=$2
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544 if test -n "$ac_ct_OTOOL64"; then
13545 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13546 else
13547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13549 do
13550 IFS=$as_save_IFS
13551 test -z "$as_dir" && as_dir=.
13552 for ac_exec_ext in '' $ac_executable_extensions; do
13553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13554 ac_cv_prog_ac_ct_OTOOL64="otool64"
13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13556 break 2
13557 fi
13558 done
13559 done
13560 IFS=$as_save_IFS
13561
13562 fi
13563 fi
13564 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13565 if test -n "$ac_ct_OTOOL64"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13567 $as_echo "$ac_ct_OTOOL64" >&6; }
13568 else
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13571 fi
13572
13573 if test "x$ac_ct_OTOOL64" = x; then
13574 OTOOL64=":"
13575 else
13576 case $cross_compiling:$ac_tool_warned in
13577 yes:)
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13580 ac_tool_warned=yes ;;
13581 esac
13582 OTOOL64=$ac_ct_OTOOL64
13583 fi
13584 else
13585 OTOOL64="$ac_cv_prog_OTOOL64"
13586 fi
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13615 $as_echo_n "checking for -single_module linker flag... " >&6; }
13616 if ${lt_cv_apple_cc_single_mod+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 lt_cv_apple_cc_single_mod=no
13620 if test -z "${LT_MULTI_MODULE}"; then
13621 # By default we will add the -single_module flag. You can override
13622 # by either setting the environment variable LT_MULTI_MODULE
13623 # non-empty at configure time, or by adding -multi_module to the
13624 # link flags.
13625 rm -rf libconftest.dylib*
13626 echo "int foo(void){return 1;}" > conftest.c
13627 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13628 -dynamiclib -Wl,-single_module conftest.c" >&5
13629 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13630 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13631 _lt_result=$?
13632 # If there is a non-empty error log, and "single_module"
13633 # appears in it, assume the flag caused a linker warning
13634 if test -s conftest.err && $GREP single_module conftest.err; then
13635 cat conftest.err >&5
13636 # Otherwise, if the output was created with a 0 exit code from
13637 # the compiler, it worked.
13638 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13639 lt_cv_apple_cc_single_mod=yes
13640 else
13641 cat conftest.err >&5
13642 fi
13643 rm -rf libconftest.dylib*
13644 rm -f conftest.*
13645 fi
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13648 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13651 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13652 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 lt_cv_ld_exported_symbols_list=no
13656 save_LDFLAGS=$LDFLAGS
13657 echo "_main" > conftest.sym
13658 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661
13662 int
13663 main ()
13664 {
13665
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 lt_cv_ld_exported_symbols_list=yes
13672 else
13673 lt_cv_ld_exported_symbols_list=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LDFLAGS="$save_LDFLAGS"
13678
13679 fi
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13681 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13684 $as_echo_n "checking for -force_load linker flag... " >&6; }
13685 if ${lt_cv_ld_force_load+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 lt_cv_ld_force_load=no
13689 cat > conftest.c << _LT_EOF
13690 int forced_loaded() { return 2;}
13691 _LT_EOF
13692 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13693 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13694 echo "$AR cru libconftest.a conftest.o" >&5
13695 $AR cru libconftest.a conftest.o 2>&5
13696 echo "$RANLIB libconftest.a" >&5
13697 $RANLIB libconftest.a 2>&5
13698 cat > conftest.c << _LT_EOF
13699 int main() { return 0;}
13700 _LT_EOF
13701 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13702 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13703 _lt_result=$?
13704 if test -s conftest.err && $GREP force_load conftest.err; then
13705 cat conftest.err >&5
13706 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13707 lt_cv_ld_force_load=yes
13708 else
13709 cat conftest.err >&5
13710 fi
13711 rm -f conftest.err libconftest.a conftest conftest.c
13712 rm -rf conftest.dSYM
13713
13714 fi
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13716 $as_echo "$lt_cv_ld_force_load" >&6; }
13717 case $host_os in
13718 rhapsody* | darwin1.[012])
13719 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13720 darwin1.*)
13721 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13722 darwin*) # darwin 5.x on
13723 # if running on 10.5 or later, the deployment target defaults
13724 # to the OS version, if on x86, and 10.4, the deployment
13725 # target defaults to 10.4. Don't you love it?
13726 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13727 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13728 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13729 10.[012]*)
13730 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13731 10.*)
13732 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13733 esac
13734 ;;
13735 esac
13736 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13737 _lt_dar_single_mod='$single_module'
13738 fi
13739 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13740 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13741 else
13742 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13743 fi
13744 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13745 _lt_dsymutil='~$DSYMUTIL $lib || :'
13746 else
13747 _lt_dsymutil=
13748 fi
13749 ;;
13750 esac
13751
13752 for ac_header in dlfcn.h
13753 do :
13754 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13755 "
13756 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13757 cat >>confdefs.h <<_ACEOF
13758 #define HAVE_DLFCN_H 1
13759 _ACEOF
13760
13761 fi
13762
13763 done
13764
13765
13766
13767
13768
13769 # Set options
13770
13771
13772
13773 enable_dlopen=no
13774
13775
13776 enable_win32_dll=no
13777
13778
13779 # Check whether --enable-shared was given.
13780 if test "${enable_shared+set}" = set; then :
13781 enableval=$enable_shared; p=${PACKAGE-default}
13782 case $enableval in
13783 yes) enable_shared=yes ;;
13784 no) enable_shared=no ;;
13785 *)
13786 enable_shared=no
13787 # Look at the argument we got. We use all the common list separators.
13788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13789 for pkg in $enableval; do
13790 IFS="$lt_save_ifs"
13791 if test "X$pkg" = "X$p"; then
13792 enable_shared=yes
13793 fi
13794 done
13795 IFS="$lt_save_ifs"
13796 ;;
13797 esac
13798 else
13799 enable_shared=yes
13800 fi
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812 # Check whether --with-pic was given.
13813 if test "${with_pic+set}" = set; then :
13814 withval=$with_pic; lt_p=${PACKAGE-default}
13815 case $withval in
13816 yes|no) pic_mode=$withval ;;
13817 *)
13818 pic_mode=default
13819 # Look at the argument we got. We use all the common list separators.
13820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13821 for lt_pkg in $withval; do
13822 IFS="$lt_save_ifs"
13823 if test "X$lt_pkg" = "X$lt_p"; then
13824 pic_mode=yes
13825 fi
13826 done
13827 IFS="$lt_save_ifs"
13828 ;;
13829 esac
13830 else
13831 pic_mode=default
13832 fi
13833
13834
13835 test -z "$pic_mode" && pic_mode=default
13836
13837
13838
13839
13840
13841
13842
13843 # Check whether --enable-fast-install was given.
13844 if test "${enable_fast_install+set}" = set; then :
13845 enableval=$enable_fast_install; p=${PACKAGE-default}
13846 case $enableval in
13847 yes) enable_fast_install=yes ;;
13848 no) enable_fast_install=no ;;
13849 *)
13850 enable_fast_install=no
13851 # Look at the argument we got. We use all the common list separators.
13852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13853 for pkg in $enableval; do
13854 IFS="$lt_save_ifs"
13855 if test "X$pkg" = "X$p"; then
13856 enable_fast_install=yes
13857 fi
13858 done
13859 IFS="$lt_save_ifs"
13860 ;;
13861 esac
13862 else
13863 enable_fast_install=yes
13864 fi
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876 # This can be used to rebuild libtool when needed
13877 LIBTOOL_DEPS="$ltmain"
13878
13879 # Always use our own libtool.
13880 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911 test -z "$LN_S" && LN_S="ln -s"
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926 if test -n "${ZSH_VERSION+set}" ; then
13927 setopt NO_GLOB_SUBST
13928 fi
13929
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13931 $as_echo_n "checking for objdir... " >&6; }
13932 if ${lt_cv_objdir+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 rm -f .libs 2>/dev/null
13936 mkdir .libs 2>/dev/null
13937 if test -d .libs; then
13938 lt_cv_objdir=.libs
13939 else
13940 # MS-DOS does not allow filenames that begin with a dot.
13941 lt_cv_objdir=_libs
13942 fi
13943 rmdir .libs 2>/dev/null
13944 fi
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13946 $as_echo "$lt_cv_objdir" >&6; }
13947 objdir=$lt_cv_objdir
13948
13949
13950
13951
13952
13953 cat >>confdefs.h <<_ACEOF
13954 #define LT_OBJDIR "$lt_cv_objdir/"
13955 _ACEOF
13956
13957
13958
13959
13960 case $host_os in
13961 aix3*)
13962 # AIX sometimes has problems with the GCC collect2 program. For some
13963 # reason, if we set the COLLECT_NAMES environment variable, the problems
13964 # vanish in a puff of smoke.
13965 if test "X${COLLECT_NAMES+set}" != Xset; then
13966 COLLECT_NAMES=
13967 export COLLECT_NAMES
13968 fi
13969 ;;
13970 esac
13971
13972 # Global variables:
13973 ofile=libtool
13974 can_build_shared=yes
13975
13976 # All known linkers require a `.a' archive for static linking (except MSVC,
13977 # which needs '.lib').
13978 libext=a
13979
13980 with_gnu_ld="$lt_cv_prog_gnu_ld"
13981
13982 old_CC="$CC"
13983 old_CFLAGS="$CFLAGS"
13984
13985 # Set sane defaults for various variables
13986 test -z "$CC" && CC=cc
13987 test -z "$LTCC" && LTCC=$CC
13988 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13989 test -z "$LD" && LD=ld
13990 test -z "$ac_objext" && ac_objext=o
13991
13992 for cc_temp in $compiler""; do
13993 case $cc_temp in
13994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13996 \-*) ;;
13997 *) break;;
13998 esac
13999 done
14000 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14001
14002
14003 # Only perform the check for file, if the check method requires it
14004 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14005 case $deplibs_check_method in
14006 file_magic*)
14007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14009 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14010 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 case $MAGIC_CMD in
14014 [\\/*] | ?:[\\/]*)
14015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14016 ;;
14017 *)
14018 lt_save_MAGIC_CMD="$MAGIC_CMD"
14019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14021 for ac_dir in $ac_dummy; do
14022 IFS="$lt_save_ifs"
14023 test -z "$ac_dir" && ac_dir=.
14024 if test -f $ac_dir/${ac_tool_prefix}file; then
14025 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14026 if test -n "$file_magic_test_file"; then
14027 case $deplibs_check_method in
14028 "file_magic "*)
14029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14032 $EGREP "$file_magic_regex" > /dev/null; then
14033 :
14034 else
14035 cat <<_LT_EOF 1>&2
14036
14037 *** Warning: the command libtool uses to detect shared libraries,
14038 *** $file_magic_cmd, produces output that libtool cannot recognize.
14039 *** The result is that libtool may fail to recognize shared libraries
14040 *** as such. This will affect the creation of libtool libraries that
14041 *** depend on shared libraries, but programs linked with such libtool
14042 *** libraries will work regardless of this problem. Nevertheless, you
14043 *** may want to report the problem to your system manager and/or to
14044 *** bug-libtool@gnu.org
14045
14046 _LT_EOF
14047 fi ;;
14048 esac
14049 fi
14050 break
14051 fi
14052 done
14053 IFS="$lt_save_ifs"
14054 MAGIC_CMD="$lt_save_MAGIC_CMD"
14055 ;;
14056 esac
14057 fi
14058
14059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14060 if test -n "$MAGIC_CMD"; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14062 $as_echo "$MAGIC_CMD" >&6; }
14063 else
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14066 fi
14067
14068
14069
14070
14071
14072 if test -z "$lt_cv_path_MAGIC_CMD"; then
14073 if test -n "$ac_tool_prefix"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14075 $as_echo_n "checking for file... " >&6; }
14076 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 case $MAGIC_CMD in
14080 [\\/*] | ?:[\\/]*)
14081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14082 ;;
14083 *)
14084 lt_save_MAGIC_CMD="$MAGIC_CMD"
14085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14087 for ac_dir in $ac_dummy; do
14088 IFS="$lt_save_ifs"
14089 test -z "$ac_dir" && ac_dir=.
14090 if test -f $ac_dir/file; then
14091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14092 if test -n "$file_magic_test_file"; then
14093 case $deplibs_check_method in
14094 "file_magic "*)
14095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14098 $EGREP "$file_magic_regex" > /dev/null; then
14099 :
14100 else
14101 cat <<_LT_EOF 1>&2
14102
14103 *** Warning: the command libtool uses to detect shared libraries,
14104 *** $file_magic_cmd, produces output that libtool cannot recognize.
14105 *** The result is that libtool may fail to recognize shared libraries
14106 *** as such. This will affect the creation of libtool libraries that
14107 *** depend on shared libraries, but programs linked with such libtool
14108 *** libraries will work regardless of this problem. Nevertheless, you
14109 *** may want to report the problem to your system manager and/or to
14110 *** bug-libtool@gnu.org
14111
14112 _LT_EOF
14113 fi ;;
14114 esac
14115 fi
14116 break
14117 fi
14118 done
14119 IFS="$lt_save_ifs"
14120 MAGIC_CMD="$lt_save_MAGIC_CMD"
14121 ;;
14122 esac
14123 fi
14124
14125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14126 if test -n "$MAGIC_CMD"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14128 $as_echo "$MAGIC_CMD" >&6; }
14129 else
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14132 fi
14133
14134
14135 else
14136 MAGIC_CMD=:
14137 fi
14138 fi
14139
14140 fi
14141 ;;
14142 esac
14143
14144 # Use C for the default configuration in the libtool script
14145
14146 lt_save_CC="$CC"
14147 ac_ext=c
14148 ac_cpp='$CPP $CPPFLAGS'
14149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14152
14153
14154 # Source file extension for C test sources.
14155 ac_ext=c
14156
14157 # Object file extension for compiled C test sources.
14158 objext=o
14159 objext=$objext
14160
14161 # Code to be used in simple compile tests
14162 lt_simple_compile_test_code="int some_variable = 0;"
14163
14164 # Code to be used in simple link tests
14165 lt_simple_link_test_code='int main(){return(0);}'
14166
14167
14168
14169
14170
14171
14172
14173 # If no C compiler was specified, use CC.
14174 LTCC=${LTCC-"$CC"}
14175
14176 # If no C compiler flags were specified, use CFLAGS.
14177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14178
14179 # Allow CC to be a program name with arguments.
14180 compiler=$CC
14181
14182 # Save the default compiler, since it gets overwritten when the other
14183 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14184 compiler_DEFAULT=$CC
14185
14186 # save warnings/boilerplate of simple test code
14187 ac_outfile=conftest.$ac_objext
14188 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14189 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14190 _lt_compiler_boilerplate=`cat conftest.err`
14191 $RM conftest*
14192
14193 ac_outfile=conftest.$ac_objext
14194 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14195 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14196 _lt_linker_boilerplate=`cat conftest.err`
14197 $RM -r conftest*
14198
14199
14200 if test -n "$compiler"; then
14201
14202 lt_prog_compiler_no_builtin_flag=
14203
14204 if test "$GCC" = yes; then
14205 case $cc_basename in
14206 nvcc*)
14207 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14208 *)
14209 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14210 esac
14211
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14213 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14214 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216 else
14217 lt_cv_prog_compiler_rtti_exceptions=no
14218 ac_outfile=conftest.$ac_objext
14219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14220 lt_compiler_flag="-fno-rtti -fno-exceptions"
14221 # Insert the option either (1) after the last *FLAGS variable, or
14222 # (2) before a word containing "conftest.", or (3) at the end.
14223 # Note that $ac_compile itself does not contain backslashes and begins
14224 # with a dollar sign (not a hyphen), so the echo should work correctly.
14225 # The option is referenced via a variable to avoid confusing sed.
14226 lt_compile=`echo "$ac_compile" | $SED \
14227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14229 -e 's:$: $lt_compiler_flag:'`
14230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14231 (eval "$lt_compile" 2>conftest.err)
14232 ac_status=$?
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 if (exit $ac_status) && test -s "$ac_outfile"; then
14236 # The compiler can only warn and ignore the option if not recognized
14237 # So say no if there are warnings other than the usual output.
14238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14241 lt_cv_prog_compiler_rtti_exceptions=yes
14242 fi
14243 fi
14244 $RM conftest*
14245
14246 fi
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14248 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14249
14250 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14251 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14252 else
14253 :
14254 fi
14255
14256 fi
14257
14258
14259
14260
14261
14262
14263 lt_prog_compiler_wl=
14264 lt_prog_compiler_pic=
14265 lt_prog_compiler_static=
14266
14267
14268 if test "$GCC" = yes; then
14269 lt_prog_compiler_wl='-Wl,'
14270 lt_prog_compiler_static='-static'
14271
14272 case $host_os in
14273 aix*)
14274 # All AIX code is PIC.
14275 if test "$host_cpu" = ia64; then
14276 # AIX 5 now supports IA64 processor
14277 lt_prog_compiler_static='-Bstatic'
14278 fi
14279 ;;
14280
14281 amigaos*)
14282 case $host_cpu in
14283 powerpc)
14284 # see comment about AmigaOS4 .so support
14285 lt_prog_compiler_pic='-fPIC'
14286 ;;
14287 m68k)
14288 # FIXME: we need at least 68020 code to build shared libraries, but
14289 # adding the `-m68020' flag to GCC prevents building anything better,
14290 # like `-m68040'.
14291 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14292 ;;
14293 esac
14294 ;;
14295
14296 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14297 # PIC is the default for these OSes.
14298 ;;
14299
14300 mingw* | cygwin* | pw32* | os2* | cegcc*)
14301 # This hack is so that the source file can tell whether it is being
14302 # built for inclusion in a dll (and should export symbols for example).
14303 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14304 # (--disable-auto-import) libraries
14305 lt_prog_compiler_pic='-DDLL_EXPORT'
14306 ;;
14307
14308 darwin* | rhapsody*)
14309 # PIC is the default on this platform
14310 # Common symbols not allowed in MH_DYLIB files
14311 lt_prog_compiler_pic='-fno-common'
14312 ;;
14313
14314 haiku*)
14315 # PIC is the default for Haiku.
14316 # The "-static" flag exists, but is broken.
14317 lt_prog_compiler_static=
14318 ;;
14319
14320 hpux*)
14321 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14322 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14323 # sets the default TLS model and affects inlining.
14324 case $host_cpu in
14325 hppa*64*)
14326 # +Z the default
14327 ;;
14328 *)
14329 lt_prog_compiler_pic='-fPIC'
14330 ;;
14331 esac
14332 ;;
14333
14334 interix[3-9]*)
14335 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14336 # Instead, we relocate shared libraries at runtime.
14337 ;;
14338
14339 msdosdjgpp*)
14340 # Just because we use GCC doesn't mean we suddenly get shared libraries
14341 # on systems that don't support them.
14342 lt_prog_compiler_can_build_shared=no
14343 enable_shared=no
14344 ;;
14345
14346 *nto* | *qnx*)
14347 # QNX uses GNU C++, but need to define -shared option too, otherwise
14348 # it will coredump.
14349 lt_prog_compiler_pic='-fPIC -shared'
14350 ;;
14351
14352 sysv4*MP*)
14353 if test -d /usr/nec; then
14354 lt_prog_compiler_pic=-Kconform_pic
14355 fi
14356 ;;
14357
14358 *)
14359 lt_prog_compiler_pic='-fPIC'
14360 ;;
14361 esac
14362
14363 case $cc_basename in
14364 nvcc*) # Cuda Compiler Driver 2.2
14365 lt_prog_compiler_wl='-Xlinker '
14366 if test -n "$lt_prog_compiler_pic"; then
14367 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14368 fi
14369 ;;
14370 esac
14371 else
14372 # PORTME Check for flag to pass linker flags through the system compiler.
14373 case $host_os in
14374 aix*)
14375 lt_prog_compiler_wl='-Wl,'
14376 if test "$host_cpu" = ia64; then
14377 # AIX 5 now supports IA64 processor
14378 lt_prog_compiler_static='-Bstatic'
14379 else
14380 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14381 fi
14382 ;;
14383
14384 mingw* | cygwin* | pw32* | os2* | cegcc*)
14385 # This hack is so that the source file can tell whether it is being
14386 # built for inclusion in a dll (and should export symbols for example).
14387 lt_prog_compiler_pic='-DDLL_EXPORT'
14388 ;;
14389
14390 hpux9* | hpux10* | hpux11*)
14391 lt_prog_compiler_wl='-Wl,'
14392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14393 # not for PA HP-UX.
14394 case $host_cpu in
14395 hppa*64*|ia64*)
14396 # +Z the default
14397 ;;
14398 *)
14399 lt_prog_compiler_pic='+Z'
14400 ;;
14401 esac
14402 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14403 lt_prog_compiler_static='${wl}-a ${wl}archive'
14404 ;;
14405
14406 irix5* | irix6* | nonstopux*)
14407 lt_prog_compiler_wl='-Wl,'
14408 # PIC (with -KPIC) is the default.
14409 lt_prog_compiler_static='-non_shared'
14410 ;;
14411
14412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14413 case $cc_basename in
14414 # old Intel for x86_64 which still supported -KPIC.
14415 ecc*)
14416 lt_prog_compiler_wl='-Wl,'
14417 lt_prog_compiler_pic='-KPIC'
14418 lt_prog_compiler_static='-static'
14419 ;;
14420 # icc used to be incompatible with GCC.
14421 # ICC 10 doesn't accept -KPIC any more.
14422 icc* | ifort*)
14423 lt_prog_compiler_wl='-Wl,'
14424 lt_prog_compiler_pic='-fPIC'
14425 lt_prog_compiler_static='-static'
14426 ;;
14427 # Lahey Fortran 8.1.
14428 lf95*)
14429 lt_prog_compiler_wl='-Wl,'
14430 lt_prog_compiler_pic='--shared'
14431 lt_prog_compiler_static='--static'
14432 ;;
14433 nagfor*)
14434 # NAG Fortran compiler
14435 lt_prog_compiler_wl='-Wl,-Wl,,'
14436 lt_prog_compiler_pic='-PIC'
14437 lt_prog_compiler_static='-Bstatic'
14438 ;;
14439 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14440 # Portland Group compilers (*not* the Pentium gcc compiler,
14441 # which looks to be a dead project)
14442 lt_prog_compiler_wl='-Wl,'
14443 lt_prog_compiler_pic='-fpic'
14444 lt_prog_compiler_static='-Bstatic'
14445 ;;
14446 ccc*)
14447 lt_prog_compiler_wl='-Wl,'
14448 # All Alpha code is PIC.
14449 lt_prog_compiler_static='-non_shared'
14450 ;;
14451 xl* | bgxl* | bgf* | mpixl*)
14452 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14453 lt_prog_compiler_wl='-Wl,'
14454 lt_prog_compiler_pic='-qpic'
14455 lt_prog_compiler_static='-qstaticlink'
14456 ;;
14457 *)
14458 case `$CC -V 2>&1 | sed 5q` in
14459 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14460 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14461 lt_prog_compiler_pic='-KPIC'
14462 lt_prog_compiler_static='-Bstatic'
14463 lt_prog_compiler_wl=''
14464 ;;
14465 *Sun\ F* | *Sun*Fortran*)
14466 lt_prog_compiler_pic='-KPIC'
14467 lt_prog_compiler_static='-Bstatic'
14468 lt_prog_compiler_wl='-Qoption ld '
14469 ;;
14470 *Sun\ C*)
14471 # Sun C 5.9
14472 lt_prog_compiler_pic='-KPIC'
14473 lt_prog_compiler_static='-Bstatic'
14474 lt_prog_compiler_wl='-Wl,'
14475 ;;
14476 *Intel*\ [CF]*Compiler*)
14477 lt_prog_compiler_wl='-Wl,'
14478 lt_prog_compiler_pic='-fPIC'
14479 lt_prog_compiler_static='-static'
14480 ;;
14481 *Portland\ Group*)
14482 lt_prog_compiler_wl='-Wl,'
14483 lt_prog_compiler_pic='-fpic'
14484 lt_prog_compiler_static='-Bstatic'
14485 ;;
14486 esac
14487 ;;
14488 esac
14489 ;;
14490
14491 newsos6)
14492 lt_prog_compiler_pic='-KPIC'
14493 lt_prog_compiler_static='-Bstatic'
14494 ;;
14495
14496 *nto* | *qnx*)
14497 # QNX uses GNU C++, but need to define -shared option too, otherwise
14498 # it will coredump.
14499 lt_prog_compiler_pic='-fPIC -shared'
14500 ;;
14501
14502 osf3* | osf4* | osf5*)
14503 lt_prog_compiler_wl='-Wl,'
14504 # All OSF/1 code is PIC.
14505 lt_prog_compiler_static='-non_shared'
14506 ;;
14507
14508 rdos*)
14509 lt_prog_compiler_static='-non_shared'
14510 ;;
14511
14512 solaris*)
14513 lt_prog_compiler_pic='-KPIC'
14514 lt_prog_compiler_static='-Bstatic'
14515 case $cc_basename in
14516 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14517 lt_prog_compiler_wl='-Qoption ld ';;
14518 *)
14519 lt_prog_compiler_wl='-Wl,';;
14520 esac
14521 ;;
14522
14523 sunos4*)
14524 lt_prog_compiler_wl='-Qoption ld '
14525 lt_prog_compiler_pic='-PIC'
14526 lt_prog_compiler_static='-Bstatic'
14527 ;;
14528
14529 sysv4 | sysv4.2uw2* | sysv4.3*)
14530 lt_prog_compiler_wl='-Wl,'
14531 lt_prog_compiler_pic='-KPIC'
14532 lt_prog_compiler_static='-Bstatic'
14533 ;;
14534
14535 sysv4*MP*)
14536 if test -d /usr/nec ;then
14537 lt_prog_compiler_pic='-Kconform_pic'
14538 lt_prog_compiler_static='-Bstatic'
14539 fi
14540 ;;
14541
14542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14543 lt_prog_compiler_wl='-Wl,'
14544 lt_prog_compiler_pic='-KPIC'
14545 lt_prog_compiler_static='-Bstatic'
14546 ;;
14547
14548 unicos*)
14549 lt_prog_compiler_wl='-Wl,'
14550 lt_prog_compiler_can_build_shared=no
14551 ;;
14552
14553 uts4*)
14554 lt_prog_compiler_pic='-pic'
14555 lt_prog_compiler_static='-Bstatic'
14556 ;;
14557
14558 *)
14559 lt_prog_compiler_can_build_shared=no
14560 ;;
14561 esac
14562 fi
14563
14564 case $host_os in
14565 # For platforms which do not support PIC, -DPIC is meaningless:
14566 *djgpp*)
14567 lt_prog_compiler_pic=
14568 ;;
14569 *)
14570 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14571 ;;
14572 esac
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14575 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14576 if ${lt_cv_prog_compiler_pic+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14580 fi
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14582 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14583 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14584
14585 #
14586 # Check to make sure the PIC flag actually works.
14587 #
14588 if test -n "$lt_prog_compiler_pic"; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14590 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14591 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 lt_cv_prog_compiler_pic_works=no
14595 ac_outfile=conftest.$ac_objext
14596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14597 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14598 # Insert the option either (1) after the last *FLAGS variable, or
14599 # (2) before a word containing "conftest.", or (3) at the end.
14600 # Note that $ac_compile itself does not contain backslashes and begins
14601 # with a dollar sign (not a hyphen), so the echo should work correctly.
14602 # The option is referenced via a variable to avoid confusing sed.
14603 lt_compile=`echo "$ac_compile" | $SED \
14604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14606 -e 's:$: $lt_compiler_flag:'`
14607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14608 (eval "$lt_compile" 2>conftest.err)
14609 ac_status=$?
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 if (exit $ac_status) && test -s "$ac_outfile"; then
14613 # The compiler can only warn and ignore the option if not recognized
14614 # So say no if there are warnings other than the usual output.
14615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14618 lt_cv_prog_compiler_pic_works=yes
14619 fi
14620 fi
14621 $RM conftest*
14622
14623 fi
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14625 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14626
14627 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14628 case $lt_prog_compiler_pic in
14629 "" | " "*) ;;
14630 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14631 esac
14632 else
14633 lt_prog_compiler_pic=
14634 lt_prog_compiler_can_build_shared=no
14635 fi
14636
14637 fi
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649 #
14650 # Check to make sure the static flag actually works.
14651 #
14652 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14654 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14655 if ${lt_cv_prog_compiler_static_works+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 lt_cv_prog_compiler_static_works=no
14659 save_LDFLAGS="$LDFLAGS"
14660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14663 # The linker can only warn and ignore the option if not recognized
14664 # So say no if there are warnings
14665 if test -s conftest.err; then
14666 # Append any errors to the config.log.
14667 cat conftest.err 1>&5
14668 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14670 if diff conftest.exp conftest.er2 >/dev/null; then
14671 lt_cv_prog_compiler_static_works=yes
14672 fi
14673 else
14674 lt_cv_prog_compiler_static_works=yes
14675 fi
14676 fi
14677 $RM -r conftest*
14678 LDFLAGS="$save_LDFLAGS"
14679
14680 fi
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14682 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14683
14684 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14685 :
14686 else
14687 lt_prog_compiler_static=
14688 fi
14689
14690
14691
14692
14693
14694
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14697 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14698 if ${lt_cv_prog_compiler_c_o+:} false; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 lt_cv_prog_compiler_c_o=no
14702 $RM -r conftest 2>/dev/null
14703 mkdir conftest
14704 cd conftest
14705 mkdir out
14706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14707
14708 lt_compiler_flag="-o out/conftest2.$ac_objext"
14709 # Insert the option either (1) after the last *FLAGS variable, or
14710 # (2) before a word containing "conftest.", or (3) at the end.
14711 # Note that $ac_compile itself does not contain backslashes and begins
14712 # with a dollar sign (not a hyphen), so the echo should work correctly.
14713 lt_compile=`echo "$ac_compile" | $SED \
14714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14716 -e 's:$: $lt_compiler_flag:'`
14717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14718 (eval "$lt_compile" 2>out/conftest.err)
14719 ac_status=$?
14720 cat out/conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14723 then
14724 # The compiler can only warn and ignore the option if not recognized
14725 # So say no if there are warnings
14726 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14727 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14728 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14729 lt_cv_prog_compiler_c_o=yes
14730 fi
14731 fi
14732 chmod u+w . 2>&5
14733 $RM conftest*
14734 # SGI C++ compiler will create directory out/ii_files/ for
14735 # template instantiation
14736 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14737 $RM out/* && rmdir out
14738 cd ..
14739 $RM -r conftest
14740 $RM conftest*
14741
14742 fi
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14744 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14745
14746
14747
14748
14749
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14753 if ${lt_cv_prog_compiler_c_o+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 lt_cv_prog_compiler_c_o=no
14757 $RM -r conftest 2>/dev/null
14758 mkdir conftest
14759 cd conftest
14760 mkdir out
14761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14762
14763 lt_compiler_flag="-o out/conftest2.$ac_objext"
14764 # Insert the option either (1) after the last *FLAGS variable, or
14765 # (2) before a word containing "conftest.", or (3) at the end.
14766 # Note that $ac_compile itself does not contain backslashes and begins
14767 # with a dollar sign (not a hyphen), so the echo should work correctly.
14768 lt_compile=`echo "$ac_compile" | $SED \
14769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771 -e 's:$: $lt_compiler_flag:'`
14772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14773 (eval "$lt_compile" 2>out/conftest.err)
14774 ac_status=$?
14775 cat out/conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14778 then
14779 # The compiler can only warn and ignore the option if not recognized
14780 # So say no if there are warnings
14781 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14784 lt_cv_prog_compiler_c_o=yes
14785 fi
14786 fi
14787 chmod u+w . 2>&5
14788 $RM conftest*
14789 # SGI C++ compiler will create directory out/ii_files/ for
14790 # template instantiation
14791 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14792 $RM out/* && rmdir out
14793 cd ..
14794 $RM -r conftest
14795 $RM conftest*
14796
14797 fi
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14799 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14800
14801
14802
14803
14804 hard_links="nottested"
14805 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14806 # do not overwrite the value of need_locks provided by the user
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14808 $as_echo_n "checking if we can lock with hard links... " >&6; }
14809 hard_links=yes
14810 $RM conftest*
14811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14812 touch conftest.a
14813 ln conftest.a conftest.b 2>&5 || hard_links=no
14814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14816 $as_echo "$hard_links" >&6; }
14817 if test "$hard_links" = no; then
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14819 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14820 need_locks=warn
14821 fi
14822 else
14823 need_locks=no
14824 fi
14825
14826
14827
14828
14829
14830
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14832 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14833
14834 runpath_var=
14835 allow_undefined_flag=
14836 always_export_symbols=no
14837 archive_cmds=
14838 archive_expsym_cmds=
14839 compiler_needs_object=no
14840 enable_shared_with_static_runtimes=no
14841 export_dynamic_flag_spec=
14842 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14843 hardcode_automatic=no
14844 hardcode_direct=no
14845 hardcode_direct_absolute=no
14846 hardcode_libdir_flag_spec=
14847 hardcode_libdir_separator=
14848 hardcode_minus_L=no
14849 hardcode_shlibpath_var=unsupported
14850 inherit_rpath=no
14851 link_all_deplibs=unknown
14852 module_cmds=
14853 module_expsym_cmds=
14854 old_archive_from_new_cmds=
14855 old_archive_from_expsyms_cmds=
14856 thread_safe_flag_spec=
14857 whole_archive_flag_spec=
14858 # include_expsyms should be a list of space-separated symbols to be *always*
14859 # included in the symbol list
14860 include_expsyms=
14861 # exclude_expsyms can be an extended regexp of symbols to exclude
14862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14864 # as well as any symbol that contains `d'.
14865 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14867 # platforms (ab)use it in PIC code, but their linkers get confused if
14868 # the symbol is explicitly referenced. Since portable code cannot
14869 # rely on this symbol name, it's probably fine to never include it in
14870 # preloaded symbol tables.
14871 # Exclude shared library initialization/finalization symbols.
14872 extract_expsyms_cmds=
14873
14874 case $host_os in
14875 cygwin* | mingw* | pw32* | cegcc*)
14876 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14877 # When not using gcc, we currently assume that we are using
14878 # Microsoft Visual C++.
14879 if test "$GCC" != yes; then
14880 with_gnu_ld=no
14881 fi
14882 ;;
14883 interix*)
14884 # we just hope/assume this is gcc and not c89 (= MSVC++)
14885 with_gnu_ld=yes
14886 ;;
14887 openbsd*)
14888 with_gnu_ld=no
14889 ;;
14890 esac
14891
14892 ld_shlibs=yes
14893
14894 # On some targets, GNU ld is compatible enough with the native linker
14895 # that we're better off using the native interface for both.
14896 lt_use_gnu_ld_interface=no
14897 if test "$with_gnu_ld" = yes; then
14898 case $host_os in
14899 aix*)
14900 # The AIX port of GNU ld has always aspired to compatibility
14901 # with the native linker. However, as the warning in the GNU ld
14902 # block says, versions before 2.19.5* couldn't really create working
14903 # shared libraries, regardless of the interface used.
14904 case `$LD -v 2>&1` in
14905 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14906 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14907 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14908 *)
14909 lt_use_gnu_ld_interface=yes
14910 ;;
14911 esac
14912 ;;
14913 *)
14914 lt_use_gnu_ld_interface=yes
14915 ;;
14916 esac
14917 fi
14918
14919 if test "$lt_use_gnu_ld_interface" = yes; then
14920 # If archive_cmds runs LD, not CC, wlarc should be empty
14921 wlarc='${wl}'
14922
14923 # Set some defaults for GNU ld with shared library support. These
14924 # are reset later if shared libraries are not supported. Putting them
14925 # here allows them to be overridden if necessary.
14926 runpath_var=LD_RUN_PATH
14927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14928 export_dynamic_flag_spec='${wl}--export-dynamic'
14929 # ancient GNU ld didn't support --whole-archive et. al.
14930 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14931 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14932 else
14933 whole_archive_flag_spec=
14934 fi
14935 supports_anon_versioning=no
14936 case `$LD -v 2>&1` in
14937 *GNU\ gold*) supports_anon_versioning=yes ;;
14938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14941 *\ 2.11.*) ;; # other 2.11 versions
14942 *) supports_anon_versioning=yes ;;
14943 esac
14944
14945 # See if GNU ld supports shared libraries.
14946 case $host_os in
14947 aix[3-9]*)
14948 # On AIX/PPC, the GNU linker is very broken
14949 if test "$host_cpu" != ia64; then
14950 ld_shlibs=no
14951 cat <<_LT_EOF 1>&2
14952
14953 *** Warning: the GNU linker, at least up to release 2.19, is reported
14954 *** to be unable to reliably create shared libraries on AIX.
14955 *** Therefore, libtool is disabling shared libraries support. If you
14956 *** really care for shared libraries, you may want to install binutils
14957 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14958 *** You will then need to restart the configuration process.
14959
14960 _LT_EOF
14961 fi
14962 ;;
14963
14964 amigaos*)
14965 case $host_cpu in
14966 powerpc)
14967 # see comment about AmigaOS4 .so support
14968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969 archive_expsym_cmds=''
14970 ;;
14971 m68k)
14972 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)'
14973 hardcode_libdir_flag_spec='-L$libdir'
14974 hardcode_minus_L=yes
14975 ;;
14976 esac
14977 ;;
14978
14979 beos*)
14980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14981 allow_undefined_flag=unsupported
14982 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14983 # support --undefined. This deserves some investigation. FIXME
14984 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14985 else
14986 ld_shlibs=no
14987 fi
14988 ;;
14989
14990 cygwin* | mingw* | pw32* | cegcc*)
14991 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14992 # as there is no search path for DLLs.
14993 hardcode_libdir_flag_spec='-L$libdir'
14994 export_dynamic_flag_spec='${wl}--export-all-symbols'
14995 allow_undefined_flag=unsupported
14996 always_export_symbols=no
14997 enable_shared_with_static_runtimes=yes
14998 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'
14999 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15000
15001 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15003 # If the export-symbols file already is a .def file (1st line
15004 # is EXPORTS), use it as is; otherwise, prepend...
15005 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15006 cp $export_symbols $output_objdir/$soname.def;
15007 else
15008 echo EXPORTS > $output_objdir/$soname.def;
15009 cat $export_symbols >> $output_objdir/$soname.def;
15010 fi~
15011 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15012 else
15013 ld_shlibs=no
15014 fi
15015 ;;
15016
15017 haiku*)
15018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15019 link_all_deplibs=yes
15020 ;;
15021
15022 interix[3-9]*)
15023 hardcode_direct=no
15024 hardcode_shlibpath_var=no
15025 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15026 export_dynamic_flag_spec='${wl}-E'
15027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15028 # Instead, shared libraries are loaded at an image base (0x10000000 by
15029 # default) and relocated if they conflict, which is a slow very memory
15030 # consuming and fragmenting process. To avoid this, we pick a random,
15031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15032 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15034 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'
15035 ;;
15036
15037 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15038 tmp_diet=no
15039 if test "$host_os" = linux-dietlibc; then
15040 case $cc_basename in
15041 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15042 esac
15043 fi
15044 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15045 && test "$tmp_diet" = no
15046 then
15047 tmp_addflag=' $pic_flag'
15048 tmp_sharedflag='-shared'
15049 case $cc_basename,$host_cpu in
15050 pgcc*) # Portland Group C compiler
15051 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'
15052 tmp_addflag=' $pic_flag'
15053 ;;
15054 pgf77* | pgf90* | pgf95* | pgfortran*)
15055 # Portland Group f77 and f90 compilers
15056 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'
15057 tmp_addflag=' $pic_flag -Mnomain' ;;
15058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15059 tmp_addflag=' -i_dynamic' ;;
15060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15061 tmp_addflag=' -i_dynamic -nofor_main' ;;
15062 ifc* | ifort*) # Intel Fortran compiler
15063 tmp_addflag=' -nofor_main' ;;
15064 lf95*) # Lahey Fortran 8.1
15065 whole_archive_flag_spec=
15066 tmp_sharedflag='--shared' ;;
15067 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15068 tmp_sharedflag='-qmkshrobj'
15069 tmp_addflag= ;;
15070 nvcc*) # Cuda Compiler Driver 2.2
15071 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'
15072 compiler_needs_object=yes
15073 ;;
15074 esac
15075 case `$CC -V 2>&1 | sed 5q` in
15076 *Sun\ C*) # Sun C 5.9
15077 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'
15078 compiler_needs_object=yes
15079 tmp_sharedflag='-G' ;;
15080 *Sun\ F*) # Sun Fortran 8.3
15081 tmp_sharedflag='-G' ;;
15082 esac
15083 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15084
15085 if test "x$supports_anon_versioning" = xyes; then
15086 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15088 echo "local: *; };" >> $output_objdir/$libname.ver~
15089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15090 fi
15091
15092 case $cc_basename in
15093 xlf* | bgf* | bgxlf* | mpixlf*)
15094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15095 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15097 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15098 if test "x$supports_anon_versioning" = xyes; then
15099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15101 echo "local: *; };" >> $output_objdir/$libname.ver~
15102 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15103 fi
15104 ;;
15105 esac
15106 else
15107 ld_shlibs=no
15108 fi
15109 ;;
15110
15111 netbsd*)
15112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15113 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15114 wlarc=
15115 else
15116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15117 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15118 fi
15119 ;;
15120
15121 solaris*)
15122 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15123 ld_shlibs=no
15124 cat <<_LT_EOF 1>&2
15125
15126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15127 *** create shared libraries on Solaris systems. Therefore, libtool
15128 *** is disabling shared libraries support. We urge you to upgrade GNU
15129 *** binutils to release 2.9.1 or newer. Another option is to modify
15130 *** your PATH or compiler configuration so that the native linker is
15131 *** used, and then restart.
15132
15133 _LT_EOF
15134 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15136 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15137 else
15138 ld_shlibs=no
15139 fi
15140 ;;
15141
15142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15143 case `$LD -v 2>&1` in
15144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15145 ld_shlibs=no
15146 cat <<_LT_EOF 1>&2
15147
15148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15149 *** reliably create shared libraries on SCO systems. Therefore, libtool
15150 *** is disabling shared libraries support. We urge you to upgrade GNU
15151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15152 *** your PATH or compiler configuration so that the native linker is
15153 *** used, and then restart.
15154
15155 _LT_EOF
15156 ;;
15157 *)
15158 # For security reasons, it is highly recommended that you always
15159 # use absolute paths for naming shared libraries, and exclude the
15160 # DT_RUNPATH tag from executables and libraries. But doing so
15161 # requires that you compile everything twice, which is a pain.
15162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15166 else
15167 ld_shlibs=no
15168 fi
15169 ;;
15170 esac
15171 ;;
15172
15173 sunos4*)
15174 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15175 wlarc=
15176 hardcode_direct=yes
15177 hardcode_shlibpath_var=no
15178 ;;
15179
15180 *)
15181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184 else
15185 ld_shlibs=no
15186 fi
15187 ;;
15188 esac
15189
15190 if test "$ld_shlibs" = no; then
15191 runpath_var=
15192 hardcode_libdir_flag_spec=
15193 export_dynamic_flag_spec=
15194 whole_archive_flag_spec=
15195 fi
15196 else
15197 # PORTME fill in a description of your system's linker (not GNU ld)
15198 case $host_os in
15199 aix3*)
15200 allow_undefined_flag=unsupported
15201 always_export_symbols=yes
15202 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'
15203 # Note: this linker hardcodes the directories in LIBPATH if there
15204 # are no directories specified by -L.
15205 hardcode_minus_L=yes
15206 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15207 # Neither direct hardcoding nor static linking is supported with a
15208 # broken collect2.
15209 hardcode_direct=unsupported
15210 fi
15211 ;;
15212
15213 aix[4-9]*)
15214 if test "$host_cpu" = ia64; then
15215 # On IA64, the linker does run time linking by default, so we don't
15216 # have to do anything special.
15217 aix_use_runtimelinking=no
15218 exp_sym_flag='-Bexport'
15219 no_entry_flag=""
15220 else
15221 # If we're using GNU nm, then we don't want the "-C" option.
15222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15223 # Also, AIX nm treats weak defined symbols like other global
15224 # defined symbols, whereas GNU nm marks them as "W".
15225 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15226 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'
15227 else
15228 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'
15229 fi
15230 aix_use_runtimelinking=no
15231
15232 # Test if we are trying to use run time linking or normal
15233 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15234 # need to do runtime linking.
15235 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15236 for ld_flag in $LDFLAGS; do
15237 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15238 aix_use_runtimelinking=yes
15239 break
15240 fi
15241 done
15242 ;;
15243 esac
15244
15245 exp_sym_flag='-bexport'
15246 no_entry_flag='-bnoentry'
15247 fi
15248
15249 # When large executables or shared objects are built, AIX ld can
15250 # have problems creating the table of contents. If linking a library
15251 # or program results in "error TOC overflow" add -mminimal-toc to
15252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15254
15255 archive_cmds=''
15256 hardcode_direct=yes
15257 hardcode_direct_absolute=yes
15258 hardcode_libdir_separator=':'
15259 link_all_deplibs=yes
15260 file_list_spec='${wl}-f,'
15261
15262 if test "$GCC" = yes; then
15263 case $host_os in aix4.[012]|aix4.[012].*)
15264 # We only want to do this on AIX 4.2 and lower, the check
15265 # below for broken collect2 doesn't work under 4.3+
15266 collect2name=`${CC} -print-prog-name=collect2`
15267 if test -f "$collect2name" &&
15268 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15269 then
15270 # We have reworked collect2
15271 :
15272 else
15273 # We have old collect2
15274 hardcode_direct=unsupported
15275 # It fails to find uninstalled libraries when the uninstalled
15276 # path is not listed in the libpath. Setting hardcode_minus_L
15277 # to unsupported forces relinking
15278 hardcode_minus_L=yes
15279 hardcode_libdir_flag_spec='-L$libdir'
15280 hardcode_libdir_separator=
15281 fi
15282 ;;
15283 esac
15284 shared_flag='-shared'
15285 if test "$aix_use_runtimelinking" = yes; then
15286 shared_flag="$shared_flag "'${wl}-G'
15287 fi
15288 else
15289 # not using gcc
15290 if test "$host_cpu" = ia64; then
15291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15292 # chokes on -Wl,-G. The following line is correct:
15293 shared_flag='-G'
15294 else
15295 if test "$aix_use_runtimelinking" = yes; then
15296 shared_flag='${wl}-G'
15297 else
15298 shared_flag='${wl}-bM:SRE'
15299 fi
15300 fi
15301 fi
15302
15303 export_dynamic_flag_spec='${wl}-bexpall'
15304 # It seems that -bexpall does not export symbols beginning with
15305 # underscore (_), so it is better to generate a list of symbols to export.
15306 always_export_symbols=yes
15307 if test "$aix_use_runtimelinking" = yes; then
15308 # Warning - without using the other runtime loading flags (-brtl),
15309 # -berok will link without error, but may produce a broken library.
15310 allow_undefined_flag='-berok'
15311 # Determine the default libpath from the value encoded in an
15312 # empty executable.
15313 if test "${lt_cv_aix_libpath+set}" = set; then
15314 aix_libpath=$lt_cv_aix_libpath
15315 else
15316 if ${lt_cv_aix_libpath_+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321
15322 int
15323 main ()
15324 {
15325
15326 ;
15327 return 0;
15328 }
15329 _ACEOF
15330 if ac_fn_c_try_link "$LINENO"; then :
15331
15332 lt_aix_libpath_sed='
15333 /Import File Strings/,/^$/ {
15334 /^0/ {
15335 s/^0 *\([^ ]*\) *$/\1/
15336 p
15337 }
15338 }'
15339 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15340 # Check for a 64-bit object if we didn't find anything.
15341 if test -z "$lt_cv_aix_libpath_"; then
15342 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15343 fi
15344 fi
15345 rm -f core conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15347 if test -z "$lt_cv_aix_libpath_"; then
15348 lt_cv_aix_libpath_="/usr/lib:/lib"
15349 fi
15350
15351 fi
15352
15353 aix_libpath=$lt_cv_aix_libpath_
15354 fi
15355
15356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15357 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"
15358 else
15359 if test "$host_cpu" = ia64; then
15360 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15361 allow_undefined_flag="-z nodefs"
15362 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"
15363 else
15364 # Determine the default libpath from the value encoded in an
15365 # empty executable.
15366 if test "${lt_cv_aix_libpath+set}" = set; then
15367 aix_libpath=$lt_cv_aix_libpath
15368 else
15369 if ${lt_cv_aix_libpath_+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15374
15375 int
15376 main ()
15377 {
15378
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_link "$LINENO"; then :
15384
15385 lt_aix_libpath_sed='
15386 /Import File Strings/,/^$/ {
15387 /^0/ {
15388 s/^0 *\([^ ]*\) *$/\1/
15389 p
15390 }
15391 }'
15392 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393 # Check for a 64-bit object if we didn't find anything.
15394 if test -z "$lt_cv_aix_libpath_"; then
15395 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15396 fi
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$lt_cv_aix_libpath_"; then
15401 lt_cv_aix_libpath_="/usr/lib:/lib"
15402 fi
15403
15404 fi
15405
15406 aix_libpath=$lt_cv_aix_libpath_
15407 fi
15408
15409 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15410 # Warning - without using the other run time loading flags,
15411 # -berok will link without error, but may produce a broken library.
15412 no_undefined_flag=' ${wl}-bernotok'
15413 allow_undefined_flag=' ${wl}-berok'
15414 if test "$with_gnu_ld" = yes; then
15415 # We only use this code for GNU lds that support --whole-archive.
15416 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15417 else
15418 # Exported symbols can be pulled into shared objects from archives
15419 whole_archive_flag_spec='$convenience'
15420 fi
15421 archive_cmds_need_lc=yes
15422 # This is similar to how AIX traditionally builds its shared libraries.
15423 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'
15424 fi
15425 fi
15426 ;;
15427
15428 amigaos*)
15429 case $host_cpu in
15430 powerpc)
15431 # see comment about AmigaOS4 .so support
15432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15433 archive_expsym_cmds=''
15434 ;;
15435 m68k)
15436 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)'
15437 hardcode_libdir_flag_spec='-L$libdir'
15438 hardcode_minus_L=yes
15439 ;;
15440 esac
15441 ;;
15442
15443 bsdi[45]*)
15444 export_dynamic_flag_spec=-rdynamic
15445 ;;
15446
15447 cygwin* | mingw* | pw32* | cegcc*)
15448 # When not using gcc, we currently assume that we are using
15449 # Microsoft Visual C++.
15450 # hardcode_libdir_flag_spec is actually meaningless, as there is
15451 # no search path for DLLs.
15452 case $cc_basename in
15453 cl*)
15454 # Native MSVC
15455 hardcode_libdir_flag_spec=' '
15456 allow_undefined_flag=unsupported
15457 always_export_symbols=yes
15458 file_list_spec='@'
15459 # Tell ltmain to make .lib files, not .a files.
15460 libext=lib
15461 # Tell ltmain to make .dll files, not .so files.
15462 shrext_cmds=".dll"
15463 # FIXME: Setting linknames here is a bad hack.
15464 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15465 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15466 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15467 else
15468 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15469 fi~
15470 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15471 linknames='
15472 # The linker will not automatically build a static lib if we build a DLL.
15473 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15474 enable_shared_with_static_runtimes=yes
15475 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15476 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15477 # Don't use ranlib
15478 old_postinstall_cmds='chmod 644 $oldlib'
15479 postlink_cmds='lt_outputfile="@OUTPUT@"~
15480 lt_tool_outputfile="@TOOL_OUTPUT@"~
15481 case $lt_outputfile in
15482 *.exe|*.EXE) ;;
15483 *)
15484 lt_outputfile="$lt_outputfile.exe"
15485 lt_tool_outputfile="$lt_tool_outputfile.exe"
15486 ;;
15487 esac~
15488 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15489 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15490 $RM "$lt_outputfile.manifest";
15491 fi'
15492 ;;
15493 *)
15494 # Assume MSVC wrapper
15495 hardcode_libdir_flag_spec=' '
15496 allow_undefined_flag=unsupported
15497 # Tell ltmain to make .lib files, not .a files.
15498 libext=lib
15499 # Tell ltmain to make .dll files, not .so files.
15500 shrext_cmds=".dll"
15501 # FIXME: Setting linknames here is a bad hack.
15502 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15503 # The linker will automatically build a .lib file if we build a DLL.
15504 old_archive_from_new_cmds='true'
15505 # FIXME: Should let the user specify the lib program.
15506 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15507 enable_shared_with_static_runtimes=yes
15508 ;;
15509 esac
15510 ;;
15511
15512 darwin* | rhapsody*)
15513
15514
15515 archive_cmds_need_lc=no
15516 hardcode_direct=no
15517 hardcode_automatic=yes
15518 hardcode_shlibpath_var=unsupported
15519 if test "$lt_cv_ld_force_load" = "yes"; then
15520 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\"`'
15521
15522 else
15523 whole_archive_flag_spec=''
15524 fi
15525 link_all_deplibs=yes
15526 allow_undefined_flag="$_lt_dar_allow_undefined"
15527 case $cc_basename in
15528 ifort*) _lt_dar_can_shared=yes ;;
15529 *) _lt_dar_can_shared=$GCC ;;
15530 esac
15531 if test "$_lt_dar_can_shared" = "yes"; then
15532 output_verbose_link_cmd=func_echo_all
15533 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15534 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15535 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}"
15536 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}"
15537
15538 else
15539 ld_shlibs=no
15540 fi
15541
15542 ;;
15543
15544 dgux*)
15545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_libdir_flag_spec='-L$libdir'
15547 hardcode_shlibpath_var=no
15548 ;;
15549
15550 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15551 # support. Future versions do this automatically, but an explicit c++rt0.o
15552 # does not break anything, and helps significantly (at the cost of a little
15553 # extra space).
15554 freebsd2.2*)
15555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15556 hardcode_libdir_flag_spec='-R$libdir'
15557 hardcode_direct=yes
15558 hardcode_shlibpath_var=no
15559 ;;
15560
15561 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15562 freebsd2.*)
15563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_direct=yes
15565 hardcode_minus_L=yes
15566 hardcode_shlibpath_var=no
15567 ;;
15568
15569 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15570 freebsd* | dragonfly*)
15571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15572 hardcode_libdir_flag_spec='-R$libdir'
15573 hardcode_direct=yes
15574 hardcode_shlibpath_var=no
15575 ;;
15576
15577 hpux9*)
15578 if test "$GCC" = yes; then
15579 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'
15580 else
15581 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'
15582 fi
15583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15584 hardcode_libdir_separator=:
15585 hardcode_direct=yes
15586
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L=yes
15590 export_dynamic_flag_spec='${wl}-E'
15591 ;;
15592
15593 hpux10*)
15594 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15595 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15596 else
15597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15598 fi
15599 if test "$with_gnu_ld" = no; then
15600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15601 hardcode_libdir_separator=:
15602 hardcode_direct=yes
15603 hardcode_direct_absolute=yes
15604 export_dynamic_flag_spec='${wl}-E'
15605 # hardcode_minus_L: Not really in the search PATH,
15606 # but as the default location of the library.
15607 hardcode_minus_L=yes
15608 fi
15609 ;;
15610
15611 hpux11*)
15612 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15613 case $host_cpu in
15614 hppa*64*)
15615 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15616 ;;
15617 ia64*)
15618 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15619 ;;
15620 *)
15621 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15622 ;;
15623 esac
15624 else
15625 case $host_cpu in
15626 hppa*64*)
15627 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 ;;
15629 ia64*)
15630 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15631 ;;
15632 *)
15633
15634 # Older versions of the 11.00 compiler do not understand -b yet
15635 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15637 $as_echo_n "checking if $CC understands -b... " >&6; }
15638 if ${lt_cv_prog_compiler__b+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 lt_cv_prog_compiler__b=no
15642 save_LDFLAGS="$LDFLAGS"
15643 LDFLAGS="$LDFLAGS -b"
15644 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15646 # The linker can only warn and ignore the option if not recognized
15647 # So say no if there are warnings
15648 if test -s conftest.err; then
15649 # Append any errors to the config.log.
15650 cat conftest.err 1>&5
15651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15653 if diff conftest.exp conftest.er2 >/dev/null; then
15654 lt_cv_prog_compiler__b=yes
15655 fi
15656 else
15657 lt_cv_prog_compiler__b=yes
15658 fi
15659 fi
15660 $RM -r conftest*
15661 LDFLAGS="$save_LDFLAGS"
15662
15663 fi
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15665 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15666
15667 if test x"$lt_cv_prog_compiler__b" = xyes; then
15668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15669 else
15670 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15671 fi
15672
15673 ;;
15674 esac
15675 fi
15676 if test "$with_gnu_ld" = no; then
15677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15678 hardcode_libdir_separator=:
15679
15680 case $host_cpu in
15681 hppa*64*|ia64*)
15682 hardcode_direct=no
15683 hardcode_shlibpath_var=no
15684 ;;
15685 *)
15686 hardcode_direct=yes
15687 hardcode_direct_absolute=yes
15688 export_dynamic_flag_spec='${wl}-E'
15689
15690 # hardcode_minus_L: Not really in the search PATH,
15691 # but as the default location of the library.
15692 hardcode_minus_L=yes
15693 ;;
15694 esac
15695 fi
15696 ;;
15697
15698 irix5* | irix6* | nonstopux*)
15699 if test "$GCC" = yes; then
15700 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'
15701 # Try to use the -exported_symbol ld option, if it does not
15702 # work, assume that -exports_file does not work either and
15703 # implicitly export all symbols.
15704 # This should be the same for all languages, so no per-tag cache variable.
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15706 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15707 if ${lt_cv_irix_exported_symbol+:} false; then :
15708 $as_echo_n "(cached) " >&6
15709 else
15710 save_LDFLAGS="$LDFLAGS"
15711 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15714 int foo (void) { return 0; }
15715 _ACEOF
15716 if ac_fn_c_try_link "$LINENO"; then :
15717 lt_cv_irix_exported_symbol=yes
15718 else
15719 lt_cv_irix_exported_symbol=no
15720 fi
15721 rm -f core conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15723 LDFLAGS="$save_LDFLAGS"
15724 fi
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15726 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15727 if test "$lt_cv_irix_exported_symbol" = yes; then
15728 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'
15729 fi
15730 else
15731 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'
15732 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'
15733 fi
15734 archive_cmds_need_lc='no'
15735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15736 hardcode_libdir_separator=:
15737 inherit_rpath=yes
15738 link_all_deplibs=yes
15739 ;;
15740
15741 netbsd*)
15742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15744 else
15745 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15746 fi
15747 hardcode_libdir_flag_spec='-R$libdir'
15748 hardcode_direct=yes
15749 hardcode_shlibpath_var=no
15750 ;;
15751
15752 newsos6)
15753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_direct=yes
15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15756 hardcode_libdir_separator=:
15757 hardcode_shlibpath_var=no
15758 ;;
15759
15760 *nto* | *qnx*)
15761 ;;
15762
15763 openbsd*)
15764 if test -f /usr/libexec/ld.so; then
15765 hardcode_direct=yes
15766 hardcode_shlibpath_var=no
15767 hardcode_direct_absolute=yes
15768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15770 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15772 export_dynamic_flag_spec='${wl}-E'
15773 else
15774 case $host_os in
15775 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_libdir_flag_spec='-R$libdir'
15778 ;;
15779 *)
15780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15782 ;;
15783 esac
15784 fi
15785 else
15786 ld_shlibs=no
15787 fi
15788 ;;
15789
15790 os2*)
15791 hardcode_libdir_flag_spec='-L$libdir'
15792 hardcode_minus_L=yes
15793 allow_undefined_flag=unsupported
15794 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'
15795 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15796 ;;
15797
15798 osf3*)
15799 if test "$GCC" = yes; then
15800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15801 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'
15802 else
15803 allow_undefined_flag=' -expect_unresolved \*'
15804 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'
15805 fi
15806 archive_cmds_need_lc='no'
15807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15808 hardcode_libdir_separator=:
15809 ;;
15810
15811 osf4* | osf5*) # as osf3* with the addition of -msym flag
15812 if test "$GCC" = yes; then
15813 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15814 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'
15815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15816 else
15817 allow_undefined_flag=' -expect_unresolved \*'
15818 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'
15819 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~
15820 $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'
15821
15822 # Both c and cxx compiler support -rpath directly
15823 hardcode_libdir_flag_spec='-rpath $libdir'
15824 fi
15825 archive_cmds_need_lc='no'
15826 hardcode_libdir_separator=:
15827 ;;
15828
15829 solaris*)
15830 no_undefined_flag=' -z defs'
15831 if test "$GCC" = yes; then
15832 wlarc='${wl}'
15833 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15835 $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'
15836 else
15837 case `$CC -V 2>&1` in
15838 *"Compilers 5.0"*)
15839 wlarc=''
15840 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15843 ;;
15844 *)
15845 wlarc='${wl}'
15846 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15847 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15848 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15849 ;;
15850 esac
15851 fi
15852 hardcode_libdir_flag_spec='-R$libdir'
15853 hardcode_shlibpath_var=no
15854 case $host_os in
15855 solaris2.[0-5] | solaris2.[0-5].*) ;;
15856 *)
15857 # The compiler driver will combine and reorder linker options,
15858 # but understands `-z linker_flag'. GCC discards it without `$wl',
15859 # but is careful enough not to reorder.
15860 # Supported since Solaris 2.6 (maybe 2.5.1?)
15861 if test "$GCC" = yes; then
15862 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15863 else
15864 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15865 fi
15866 ;;
15867 esac
15868 link_all_deplibs=yes
15869 ;;
15870
15871 sunos4*)
15872 if test "x$host_vendor" = xsequent; then
15873 # Use $CC to link under sequent, because it throws in some extra .o
15874 # files that make .init and .fini sections work.
15875 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15876 else
15877 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15878 fi
15879 hardcode_libdir_flag_spec='-L$libdir'
15880 hardcode_direct=yes
15881 hardcode_minus_L=yes
15882 hardcode_shlibpath_var=no
15883 ;;
15884
15885 sysv4)
15886 case $host_vendor in
15887 sni)
15888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15889 hardcode_direct=yes # is this really true???
15890 ;;
15891 siemens)
15892 ## LD is ld it makes a PLAMLIB
15893 ## CC just makes a GrossModule.
15894 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15895 reload_cmds='$CC -r -o $output$reload_objs'
15896 hardcode_direct=no
15897 ;;
15898 motorola)
15899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15900 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15901 ;;
15902 esac
15903 runpath_var='LD_RUN_PATH'
15904 hardcode_shlibpath_var=no
15905 ;;
15906
15907 sysv4.3*)
15908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15909 hardcode_shlibpath_var=no
15910 export_dynamic_flag_spec='-Bexport'
15911 ;;
15912
15913 sysv4*MP*)
15914 if test -d /usr/nec; then
15915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916 hardcode_shlibpath_var=no
15917 runpath_var=LD_RUN_PATH
15918 hardcode_runpath_var=yes
15919 ld_shlibs=yes
15920 fi
15921 ;;
15922
15923 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15924 no_undefined_flag='${wl}-z,text'
15925 archive_cmds_need_lc=no
15926 hardcode_shlibpath_var=no
15927 runpath_var='LD_RUN_PATH'
15928
15929 if test "$GCC" = yes; then
15930 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15931 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932 else
15933 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15934 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 fi
15936 ;;
15937
15938 sysv5* | sco3.2v5* | sco5v6*)
15939 # Note: We can NOT use -z defs as we might desire, because we do not
15940 # link with -lc, and that would cause any symbols used from libc to
15941 # always be unresolved, which means just about no library would
15942 # ever link correctly. If we're not using GNU ld we use -z text
15943 # though, which does catch some bad symbols but isn't as heavy-handed
15944 # as -z defs.
15945 no_undefined_flag='${wl}-z,text'
15946 allow_undefined_flag='${wl}-z,nodefs'
15947 archive_cmds_need_lc=no
15948 hardcode_shlibpath_var=no
15949 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15950 hardcode_libdir_separator=':'
15951 link_all_deplibs=yes
15952 export_dynamic_flag_spec='${wl}-Bexport'
15953 runpath_var='LD_RUN_PATH'
15954
15955 if test "$GCC" = yes; then
15956 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958 else
15959 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15961 fi
15962 ;;
15963
15964 uts4*)
15965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15966 hardcode_libdir_flag_spec='-L$libdir'
15967 hardcode_shlibpath_var=no
15968 ;;
15969
15970 *)
15971 ld_shlibs=no
15972 ;;
15973 esac
15974
15975 if test x$host_vendor = xsni; then
15976 case $host in
15977 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15978 export_dynamic_flag_spec='${wl}-Blargedynsym'
15979 ;;
15980 esac
15981 fi
15982 fi
15983
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15985 $as_echo "$ld_shlibs" >&6; }
15986 test "$ld_shlibs" = no && can_build_shared=no
15987
15988 with_gnu_ld=$with_gnu_ld
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004 #
16005 # Do we need to explicitly link libc?
16006 #
16007 case "x$archive_cmds_need_lc" in
16008 x|xyes)
16009 # Assume -lc should be added
16010 archive_cmds_need_lc=yes
16011
16012 if test "$enable_shared" = yes && test "$GCC" = yes; then
16013 case $archive_cmds in
16014 *'~'*)
16015 # FIXME: we may have to deal with multi-command sequences.
16016 ;;
16017 '$CC '*)
16018 # Test whether the compiler implicitly links with -lc since on some
16019 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16020 # to ld, don't add -lc before -lgcc.
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16022 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16023 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 $RM conftest*
16027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16028
16029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16030 (eval $ac_compile) 2>&5
16031 ac_status=$?
16032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16033 test $ac_status = 0; } 2>conftest.err; then
16034 soname=conftest
16035 lib=conftest
16036 libobjs=conftest.$ac_objext
16037 deplibs=
16038 wl=$lt_prog_compiler_wl
16039 pic_flag=$lt_prog_compiler_pic
16040 compiler_flags=-v
16041 linker_flags=-v
16042 verstring=
16043 output_objdir=.
16044 libname=conftest
16045 lt_save_allow_undefined_flag=$allow_undefined_flag
16046 allow_undefined_flag=
16047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16048 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16049 ac_status=$?
16050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16051 test $ac_status = 0; }
16052 then
16053 lt_cv_archive_cmds_need_lc=no
16054 else
16055 lt_cv_archive_cmds_need_lc=yes
16056 fi
16057 allow_undefined_flag=$lt_save_allow_undefined_flag
16058 else
16059 cat conftest.err 1>&5
16060 fi
16061 $RM conftest*
16062
16063 fi
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16065 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16066 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16067 ;;
16068 esac
16069 fi
16070 ;;
16071 esac
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16225 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16226
16227 if test "$GCC" = yes; then
16228 case $host_os in
16229 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16230 *) lt_awk_arg="/^libraries:/" ;;
16231 esac
16232 case $host_os in
16233 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16234 *) lt_sed_strip_eq="s,=/,/,g" ;;
16235 esac
16236 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16237 case $lt_search_path_spec in
16238 *\;*)
16239 # if the path contains ";" then we assume it to be the separator
16240 # otherwise default to the standard path separator (i.e. ":") - it is
16241 # assumed that no part of a normal pathname contains ";" but that should
16242 # okay in the real world where ";" in dirpaths is itself problematic.
16243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16244 ;;
16245 *)
16246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16247 ;;
16248 esac
16249 # Ok, now we have the path, separated by spaces, we can step through it
16250 # and add multilib dir if necessary.
16251 lt_tmp_lt_search_path_spec=
16252 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16253 for lt_sys_path in $lt_search_path_spec; do
16254 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16256 else
16257 test -d "$lt_sys_path" && \
16258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16259 fi
16260 done
16261 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16262 BEGIN {RS=" "; FS="/|\n";} {
16263 lt_foo="";
16264 lt_count=0;
16265 for (lt_i = NF; lt_i > 0; lt_i--) {
16266 if ($lt_i != "" && $lt_i != ".") {
16267 if ($lt_i == "..") {
16268 lt_count++;
16269 } else {
16270 if (lt_count == 0) {
16271 lt_foo="/" $lt_i lt_foo;
16272 } else {
16273 lt_count--;
16274 }
16275 }
16276 }
16277 }
16278 if (lt_foo != "") { lt_freq[lt_foo]++; }
16279 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16280 }'`
16281 # AWK program above erroneously prepends '/' to C:/dos/paths
16282 # for these hosts.
16283 case $host_os in
16284 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16285 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16286 esac
16287 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16288 else
16289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16290 fi
16291 library_names_spec=
16292 libname_spec='lib$name'
16293 soname_spec=
16294 shrext_cmds=".so"
16295 postinstall_cmds=
16296 postuninstall_cmds=
16297 finish_cmds=
16298 finish_eval=
16299 shlibpath_var=
16300 shlibpath_overrides_runpath=unknown
16301 version_type=none
16302 dynamic_linker="$host_os ld.so"
16303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16304 need_lib_prefix=unknown
16305 hardcode_into_libs=no
16306
16307 # when you set need_version to no, make sure it does not cause -set_version
16308 # flags to be left without arguments
16309 need_version=unknown
16310
16311 case $host_os in
16312 aix3*)
16313 version_type=linux # correct to gnu/linux during the next big refactor
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16315 shlibpath_var=LIBPATH
16316
16317 # AIX 3 has no versioning support, so we append a major version to the name.
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 ;;
16320
16321 aix[4-9]*)
16322 version_type=linux # correct to gnu/linux during the next big refactor
16323 need_lib_prefix=no
16324 need_version=no
16325 hardcode_into_libs=yes
16326 if test "$host_cpu" = ia64; then
16327 # AIX 5 supports IA64
16328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 else
16331 # With GCC up to 2.95.x, collect2 would create an import file
16332 # for dependence libraries. The import file would start with
16333 # the line `#! .'. This would cause the generated library to
16334 # depend on `.', always an invalid library. This was fixed in
16335 # development snapshots of GCC prior to 3.0.
16336 case $host_os in
16337 aix4 | aix4.[01] | aix4.[01].*)
16338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16339 echo ' yes '
16340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16341 :
16342 else
16343 can_build_shared=no
16344 fi
16345 ;;
16346 esac
16347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16348 # soname into executable. Probably we can add versioning support to
16349 # collect2, so additional links can be useful in future.
16350 if test "$aix_use_runtimelinking" = yes; then
16351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16352 # instead of lib<name>.a to let people know that these are not
16353 # typical AIX shared libraries.
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 else
16356 # We preserve .a as extension for shared libraries through AIX4.2
16357 # and later when we are not doing run time linking.
16358 library_names_spec='${libname}${release}.a $libname.a'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 fi
16361 shlibpath_var=LIBPATH
16362 fi
16363 ;;
16364
16365 amigaos*)
16366 case $host_cpu in
16367 powerpc)
16368 # Since July 2007 AmigaOS4 officially supports .so libraries.
16369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16371 ;;
16372 m68k)
16373 library_names_spec='$libname.ixlibrary $libname.a'
16374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16375 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'
16376 ;;
16377 esac
16378 ;;
16379
16380 beos*)
16381 library_names_spec='${libname}${shared_ext}'
16382 dynamic_linker="$host_os ld.so"
16383 shlibpath_var=LIBRARY_PATH
16384 ;;
16385
16386 bsdi[45]*)
16387 version_type=linux # correct to gnu/linux during the next big refactor
16388 need_version=no
16389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390 soname_spec='${libname}${release}${shared_ext}$major'
16391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16395 # the default ld.so.conf also contains /usr/contrib/lib and
16396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16397 # libtool to hard-code these into programs
16398 ;;
16399
16400 cygwin* | mingw* | pw32* | cegcc*)
16401 version_type=windows
16402 shrext_cmds=".dll"
16403 need_version=no
16404 need_lib_prefix=no
16405
16406 case $GCC,$cc_basename in
16407 yes,*)
16408 # gcc
16409 library_names_spec='$libname.dll.a'
16410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16411 postinstall_cmds='base_file=`basename \${file}`~
16412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16413 dldir=$destdir/`dirname \$dlpath`~
16414 test -d \$dldir || mkdir -p \$dldir~
16415 $install_prog $dir/$dlname \$dldir/$dlname~
16416 chmod a+x \$dldir/$dlname~
16417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16419 fi'
16420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16421 dlpath=$dir/\$dldll~
16422 $RM \$dlpath'
16423 shlibpath_overrides_runpath=yes
16424
16425 case $host_os in
16426 cygwin*)
16427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16429
16430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16431 ;;
16432 mingw* | cegcc*)
16433 # MinGW DLLs use traditional 'lib' prefix
16434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16435 ;;
16436 pw32*)
16437 # pw32 DLLs use 'pw' prefix rather than 'lib'
16438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16439 ;;
16440 esac
16441 dynamic_linker='Win32 ld.exe'
16442 ;;
16443
16444 *,cl*)
16445 # Native MSVC
16446 libname_spec='$name'
16447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16448 library_names_spec='${libname}.dll.lib'
16449
16450 case $build_os in
16451 mingw*)
16452 sys_lib_search_path_spec=
16453 lt_save_ifs=$IFS
16454 IFS=';'
16455 for lt_path in $LIB
16456 do
16457 IFS=$lt_save_ifs
16458 # Let DOS variable expansion print the short 8.3 style file name.
16459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16461 done
16462 IFS=$lt_save_ifs
16463 # Convert to MSYS style.
16464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16465 ;;
16466 cygwin*)
16467 # Convert to unix form, then to dos form, then back to unix form
16468 # but this time dos style (no spaces!) so that the unix form looks
16469 # like /cygdrive/c/PROGRA~1:/cygdr...
16470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16473 ;;
16474 *)
16475 sys_lib_search_path_spec="$LIB"
16476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16477 # It is most probably a Windows format PATH.
16478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16479 else
16480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16481 fi
16482 # FIXME: find the short name or the path components, as spaces are
16483 # common. (e.g. "Program Files" -> "PROGRA~1")
16484 ;;
16485 esac
16486
16487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16488 postinstall_cmds='base_file=`basename \${file}`~
16489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16490 dldir=$destdir/`dirname \$dlpath`~
16491 test -d \$dldir || mkdir -p \$dldir~
16492 $install_prog $dir/$dlname \$dldir/$dlname'
16493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16494 dlpath=$dir/\$dldll~
16495 $RM \$dlpath'
16496 shlibpath_overrides_runpath=yes
16497 dynamic_linker='Win32 link.exe'
16498 ;;
16499
16500 *)
16501 # Assume MSVC wrapper
16502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16503 dynamic_linker='Win32 ld.exe'
16504 ;;
16505 esac
16506 # FIXME: first we should search . and the directory the executable is in
16507 shlibpath_var=PATH
16508 ;;
16509
16510 darwin* | rhapsody*)
16511 dynamic_linker="$host_os dyld"
16512 version_type=darwin
16513 need_lib_prefix=no
16514 need_version=no
16515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16516 soname_spec='${libname}${release}${major}$shared_ext'
16517 shlibpath_overrides_runpath=yes
16518 shlibpath_var=DYLD_LIBRARY_PATH
16519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16520
16521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16523 ;;
16524
16525 dgux*)
16526 version_type=linux # correct to gnu/linux during the next big refactor
16527 need_lib_prefix=no
16528 need_version=no
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 ;;
16533
16534 freebsd* | dragonfly*)
16535 # DragonFly does not have aout. When/if they implement a new
16536 # versioning mechanism, adjust this.
16537 if test -x /usr/bin/objformat; then
16538 objformat=`/usr/bin/objformat`
16539 else
16540 case $host_os in
16541 freebsd[23].*) objformat=aout ;;
16542 *) objformat=elf ;;
16543 esac
16544 fi
16545 version_type=freebsd-$objformat
16546 case $version_type in
16547 freebsd-elf*)
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16549 need_version=no
16550 need_lib_prefix=no
16551 ;;
16552 freebsd-*)
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16554 need_version=yes
16555 ;;
16556 esac
16557 shlibpath_var=LD_LIBRARY_PATH
16558 case $host_os in
16559 freebsd2.*)
16560 shlibpath_overrides_runpath=yes
16561 ;;
16562 freebsd3.[01]* | freebsdelf3.[01]*)
16563 shlibpath_overrides_runpath=yes
16564 hardcode_into_libs=yes
16565 ;;
16566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16568 shlibpath_overrides_runpath=no
16569 hardcode_into_libs=yes
16570 ;;
16571 *) # from 4.6 on, and DragonFly
16572 shlibpath_overrides_runpath=yes
16573 hardcode_into_libs=yes
16574 ;;
16575 esac
16576 ;;
16577
16578 gnu*)
16579 version_type=linux # correct to gnu/linux during the next big refactor
16580 need_lib_prefix=no
16581 need_version=no
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 shlibpath_var=LD_LIBRARY_PATH
16585 shlibpath_overrides_runpath=no
16586 hardcode_into_libs=yes
16587 ;;
16588
16589 haiku*)
16590 version_type=linux # correct to gnu/linux during the next big refactor
16591 need_lib_prefix=no
16592 need_version=no
16593 dynamic_linker="$host_os runtime_loader"
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 shlibpath_var=LIBRARY_PATH
16597 shlibpath_overrides_runpath=yes
16598 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16599 hardcode_into_libs=yes
16600 ;;
16601
16602 hpux9* | hpux10* | hpux11*)
16603 # Give a soname corresponding to the major version so that dld.sl refuses to
16604 # link against other versions.
16605 version_type=sunos
16606 need_lib_prefix=no
16607 need_version=no
16608 case $host_cpu in
16609 ia64*)
16610 shrext_cmds='.so'
16611 hardcode_into_libs=yes
16612 dynamic_linker="$host_os dld.so"
16613 shlibpath_var=LD_LIBRARY_PATH
16614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 if test "X$HPUX_IA64_MODE" = X32; then
16618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16619 else
16620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16621 fi
16622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16623 ;;
16624 hppa*64*)
16625 shrext_cmds='.sl'
16626 hardcode_into_libs=yes
16627 dynamic_linker="$host_os dld.sl"
16628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16634 ;;
16635 *)
16636 shrext_cmds='.sl'
16637 dynamic_linker="$host_os dld.sl"
16638 shlibpath_var=SHLIB_PATH
16639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 ;;
16643 esac
16644 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16645 postinstall_cmds='chmod 555 $lib'
16646 # or fails outright, so override atomically:
16647 install_override_mode=555
16648 ;;
16649
16650 interix[3-9]*)
16651 version_type=linux # correct to gnu/linux during the next big refactor
16652 need_lib_prefix=no
16653 need_version=no
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16657 shlibpath_var=LD_LIBRARY_PATH
16658 shlibpath_overrides_runpath=no
16659 hardcode_into_libs=yes
16660 ;;
16661
16662 irix5* | irix6* | nonstopux*)
16663 case $host_os in
16664 nonstopux*) version_type=nonstopux ;;
16665 *)
16666 if test "$lt_cv_prog_gnu_ld" = yes; then
16667 version_type=linux # correct to gnu/linux during the next big refactor
16668 else
16669 version_type=irix
16670 fi ;;
16671 esac
16672 need_lib_prefix=no
16673 need_version=no
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16676 case $host_os in
16677 irix5* | nonstopux*)
16678 libsuff= shlibsuff=
16679 ;;
16680 *)
16681 case $LD in # libtool.m4 will add one of these switches to LD
16682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16683 libsuff= shlibsuff= libmagic=32-bit;;
16684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16685 libsuff=32 shlibsuff=N32 libmagic=N32;;
16686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16687 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16688 *) libsuff= shlibsuff= libmagic=never-match;;
16689 esac
16690 ;;
16691 esac
16692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16693 shlibpath_overrides_runpath=no
16694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16696 hardcode_into_libs=yes
16697 ;;
16698
16699 # No shared lib support for Linux oldld, aout, or coff.
16700 linux*oldld* | linux*aout* | linux*coff*)
16701 dynamic_linker=no
16702 ;;
16703
16704 # This must be glibc/ELF.
16705 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16706 version_type=linux # correct to gnu/linux during the next big refactor
16707 need_lib_prefix=no
16708 need_version=no
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 soname_spec='${libname}${release}${shared_ext}$major'
16711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16712 shlibpath_var=LD_LIBRARY_PATH
16713 shlibpath_overrides_runpath=no
16714
16715 # Some binutils ld are patched to set DT_RUNPATH
16716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 lt_cv_shlibpath_overrides_runpath=no
16720 save_LDFLAGS=$LDFLAGS
16721 save_libdir=$libdir
16722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726
16727 int
16728 main ()
16729 {
16730
16731 ;
16732 return 0;
16733 }
16734 _ACEOF
16735 if ac_fn_c_try_link "$LINENO"; then :
16736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16737 lt_cv_shlibpath_overrides_runpath=yes
16738 fi
16739 fi
16740 rm -f core conftest.err conftest.$ac_objext \
16741 conftest$ac_exeext conftest.$ac_ext
16742 LDFLAGS=$save_LDFLAGS
16743 libdir=$save_libdir
16744
16745 fi
16746
16747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16748
16749 # This implies no fast_install, which is unacceptable.
16750 # Some rework will be needed to allow for fast_install
16751 # before this can be enabled.
16752 hardcode_into_libs=yes
16753
16754 # Add ABI-specific directories to the system library path.
16755 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16756
16757 # Append ld.so.conf contents to the search path
16758 if test -f /etc/ld.so.conf; then
16759 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' ' '`
16760 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16761
16762 fi
16763
16764 # We used to test for /lib/ld.so.1 and disable shared libraries on
16765 # powerpc, because MkLinux only supported shared libraries with the
16766 # GNU dynamic linker. Since this was broken with cross compilers,
16767 # most powerpc-linux boxes support dynamic linking these days and
16768 # people can always --disable-shared, the test was removed, and we
16769 # assume the GNU/Linux dynamic linker is in use.
16770 dynamic_linker='GNU/Linux ld.so'
16771 ;;
16772
16773 netbsd*)
16774 version_type=sunos
16775 need_lib_prefix=no
16776 need_version=no
16777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16780 dynamic_linker='NetBSD (a.out) ld.so'
16781 else
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16783 soname_spec='${libname}${release}${shared_ext}$major'
16784 dynamic_linker='NetBSD ld.elf_so'
16785 fi
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=yes
16788 hardcode_into_libs=yes
16789 ;;
16790
16791 newsos6)
16792 version_type=linux # correct to gnu/linux during the next big refactor
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 shlibpath_overrides_runpath=yes
16796 ;;
16797
16798 *nto* | *qnx*)
16799 version_type=qnx
16800 need_lib_prefix=no
16801 need_version=no
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=no
16806 hardcode_into_libs=yes
16807 dynamic_linker='ldqnx.so'
16808 ;;
16809
16810 openbsd*)
16811 version_type=sunos
16812 sys_lib_dlsearch_path_spec="/usr/lib"
16813 need_lib_prefix=no
16814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16815 case $host_os in
16816 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16817 *) need_version=no ;;
16818 esac
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16823 case $host_os in
16824 openbsd2.[89] | openbsd2.[89].*)
16825 shlibpath_overrides_runpath=no
16826 ;;
16827 *)
16828 shlibpath_overrides_runpath=yes
16829 ;;
16830 esac
16831 else
16832 shlibpath_overrides_runpath=yes
16833 fi
16834 ;;
16835
16836 os2*)
16837 libname_spec='$name'
16838 shrext_cmds=".dll"
16839 need_lib_prefix=no
16840 library_names_spec='$libname${shared_ext} $libname.a'
16841 dynamic_linker='OS/2 ld.exe'
16842 shlibpath_var=LIBPATH
16843 ;;
16844
16845 osf3* | osf4* | osf5*)
16846 version_type=osf
16847 need_lib_prefix=no
16848 need_version=no
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16854 ;;
16855
16856 rdos*)
16857 dynamic_linker=no
16858 ;;
16859
16860 solaris*)
16861 version_type=linux # correct to gnu/linux during the next big refactor
16862 need_lib_prefix=no
16863 need_version=no
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 shlibpath_overrides_runpath=yes
16868 hardcode_into_libs=yes
16869 # ldd complains unless libraries are executable
16870 postinstall_cmds='chmod +x $lib'
16871 ;;
16872
16873 sunos4*)
16874 version_type=sunos
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 shlibpath_overrides_runpath=yes
16879 if test "$with_gnu_ld" = yes; then
16880 need_lib_prefix=no
16881 fi
16882 need_version=yes
16883 ;;
16884
16885 sysv4 | sysv4.3*)
16886 version_type=linux # correct to gnu/linux during the next big refactor
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16888 soname_spec='${libname}${release}${shared_ext}$major'
16889 shlibpath_var=LD_LIBRARY_PATH
16890 case $host_vendor in
16891 sni)
16892 shlibpath_overrides_runpath=no
16893 need_lib_prefix=no
16894 runpath_var=LD_RUN_PATH
16895 ;;
16896 siemens)
16897 need_lib_prefix=no
16898 ;;
16899 motorola)
16900 need_lib_prefix=no
16901 need_version=no
16902 shlibpath_overrides_runpath=no
16903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16904 ;;
16905 esac
16906 ;;
16907
16908 sysv4*MP*)
16909 if test -d /usr/nec ;then
16910 version_type=linux # correct to gnu/linux during the next big refactor
16911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16912 soname_spec='$libname${shared_ext}.$major'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 fi
16915 ;;
16916
16917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16918 version_type=freebsd-elf
16919 need_lib_prefix=no
16920 need_version=no
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 shlibpath_overrides_runpath=yes
16925 hardcode_into_libs=yes
16926 if test "$with_gnu_ld" = yes; then
16927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16928 else
16929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16930 case $host_os in
16931 sco3.2v5*)
16932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16933 ;;
16934 esac
16935 fi
16936 sys_lib_dlsearch_path_spec='/usr/lib'
16937 ;;
16938
16939 tpf*)
16940 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16941 version_type=linux # correct to gnu/linux during the next big refactor
16942 need_lib_prefix=no
16943 need_version=no
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 shlibpath_overrides_runpath=no
16947 hardcode_into_libs=yes
16948 ;;
16949
16950 uts4*)
16951 version_type=linux # correct to gnu/linux during the next big refactor
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 shlibpath_var=LD_LIBRARY_PATH
16955 ;;
16956
16957 *)
16958 dynamic_linker=no
16959 ;;
16960 esac
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16962 $as_echo "$dynamic_linker" >&6; }
16963 test "$dynamic_linker" = no && can_build_shared=no
16964
16965 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16966 if test "$GCC" = yes; then
16967 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16968 fi
16969
16970 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16971 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16972 fi
16973 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16974 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16975 fi
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17069 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17070 hardcode_action=
17071 if test -n "$hardcode_libdir_flag_spec" ||
17072 test -n "$runpath_var" ||
17073 test "X$hardcode_automatic" = "Xyes" ; then
17074
17075 # We can hardcode non-existent directories.
17076 if test "$hardcode_direct" != no &&
17077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17078 # have to relink, otherwise we might link with an installed library
17079 # when we should be linking with a yet-to-be-installed one
17080 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17081 test "$hardcode_minus_L" != no; then
17082 # Linking always hardcodes the temporary library directory.
17083 hardcode_action=relink
17084 else
17085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17086 hardcode_action=immediate
17087 fi
17088 else
17089 # We cannot hardcode anything, or else we can only hardcode existing
17090 # directories.
17091 hardcode_action=unsupported
17092 fi
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17094 $as_echo "$hardcode_action" >&6; }
17095
17096 if test "$hardcode_action" = relink ||
17097 test "$inherit_rpath" = yes; then
17098 # Fast installation is not supported
17099 enable_fast_install=no
17100 elif test "$shlibpath_overrides_runpath" = yes ||
17101 test "$enable_shared" = no; then
17102 # Fast installation is not necessary
17103 enable_fast_install=needless
17104 fi
17105
17106
17107
17108
17109
17110
17111 if test "x$enable_dlopen" != xyes; then
17112 enable_dlopen=unknown
17113 enable_dlopen_self=unknown
17114 enable_dlopen_self_static=unknown
17115 else
17116 lt_cv_dlopen=no
17117 lt_cv_dlopen_libs=
17118
17119 case $host_os in
17120 beos*)
17121 lt_cv_dlopen="load_add_on"
17122 lt_cv_dlopen_libs=
17123 lt_cv_dlopen_self=yes
17124 ;;
17125
17126 mingw* | pw32* | cegcc*)
17127 lt_cv_dlopen="LoadLibrary"
17128 lt_cv_dlopen_libs=
17129 ;;
17130
17131 cygwin*)
17132 lt_cv_dlopen="dlopen"
17133 lt_cv_dlopen_libs=
17134 ;;
17135
17136 darwin*)
17137 # if libdl is installed we need to link against it
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17139 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17140 if ${ac_cv_lib_dl_dlopen+:} false; then :
17141 $as_echo_n "(cached) " >&6
17142 else
17143 ac_check_lib_save_LIBS=$LIBS
17144 LIBS="-ldl $LIBS"
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 char dlopen ();
17155 int
17156 main ()
17157 {
17158 return dlopen ();
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 ac_cv_lib_dl_dlopen=yes
17165 else
17166 ac_cv_lib_dl_dlopen=no
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17170 LIBS=$ac_check_lib_save_LIBS
17171 fi
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17173 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17174 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17176 else
17177
17178 lt_cv_dlopen="dyld"
17179 lt_cv_dlopen_libs=
17180 lt_cv_dlopen_self=yes
17181
17182 fi
17183
17184 ;;
17185
17186 *)
17187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17188 if test "x$ac_cv_func_shl_load" = xyes; then :
17189 lt_cv_dlopen="shl_load"
17190 else
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17192 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17193 if ${ac_cv_lib_dld_shl_load+:} false; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 ac_check_lib_save_LIBS=$LIBS
17197 LIBS="-ldld $LIBS"
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17200
17201 /* Override any GCC internal prototype to avoid an error.
17202 Use char because int might match the return type of a GCC
17203 builtin and then its argument prototype would still apply. */
17204 #ifdef __cplusplus
17205 extern "C"
17206 #endif
17207 char shl_load ();
17208 int
17209 main ()
17210 {
17211 return shl_load ();
17212 ;
17213 return 0;
17214 }
17215 _ACEOF
17216 if ac_fn_c_try_link "$LINENO"; then :
17217 ac_cv_lib_dld_shl_load=yes
17218 else
17219 ac_cv_lib_dld_shl_load=no
17220 fi
17221 rm -f core conftest.err conftest.$ac_objext \
17222 conftest$ac_exeext conftest.$ac_ext
17223 LIBS=$ac_check_lib_save_LIBS
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17226 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17227 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17228 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17229 else
17230 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17231 if test "x$ac_cv_func_dlopen" = xyes; then :
17232 lt_cv_dlopen="dlopen"
17233 else
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17235 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17236 if ${ac_cv_lib_dl_dlopen+:} false; then :
17237 $as_echo_n "(cached) " >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-ldl $LIBS"
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 char dlopen ();
17251 int
17252 main ()
17253 {
17254 return dlopen ();
17255 ;
17256 return 0;
17257 }
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 ac_cv_lib_dl_dlopen=yes
17261 else
17262 ac_cv_lib_dl_dlopen=no
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_check_lib_save_LIBS
17267 fi
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17269 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17270 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17272 else
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17274 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17275 if ${ac_cv_lib_svld_dlopen+:} false; then :
17276 $as_echo_n "(cached) " >&6
17277 else
17278 ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-lsvld $LIBS"
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17282
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char dlopen ();
17290 int
17291 main ()
17292 {
17293 return dlopen ();
17294 ;
17295 return 0;
17296 }
17297 _ACEOF
17298 if ac_fn_c_try_link "$LINENO"; then :
17299 ac_cv_lib_svld_dlopen=yes
17300 else
17301 ac_cv_lib_svld_dlopen=no
17302 fi
17303 rm -f core conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
17305 LIBS=$ac_check_lib_save_LIBS
17306 fi
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17308 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17309 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17311 else
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17313 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17314 if ${ac_cv_lib_dld_dld_link+:} false; then :
17315 $as_echo_n "(cached) " >&6
17316 else
17317 ac_check_lib_save_LIBS=$LIBS
17318 LIBS="-ldld $LIBS"
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17321
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 char dld_link ();
17329 int
17330 main ()
17331 {
17332 return dld_link ();
17333 ;
17334 return 0;
17335 }
17336 _ACEOF
17337 if ac_fn_c_try_link "$LINENO"; then :
17338 ac_cv_lib_dld_dld_link=yes
17339 else
17340 ac_cv_lib_dld_dld_link=no
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17345 fi
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17347 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17348 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17349 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17350 fi
17351
17352
17353 fi
17354
17355
17356 fi
17357
17358
17359 fi
17360
17361
17362 fi
17363
17364
17365 fi
17366
17367 ;;
17368 esac
17369
17370 if test "x$lt_cv_dlopen" != xno; then
17371 enable_dlopen=yes
17372 else
17373 enable_dlopen=no
17374 fi
17375
17376 case $lt_cv_dlopen in
17377 dlopen)
17378 save_CPPFLAGS="$CPPFLAGS"
17379 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17380
17381 save_LDFLAGS="$LDFLAGS"
17382 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17383
17384 save_LIBS="$LIBS"
17385 LIBS="$lt_cv_dlopen_libs $LIBS"
17386
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17388 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17389 if ${lt_cv_dlopen_self+:} false; then :
17390 $as_echo_n "(cached) " >&6
17391 else
17392 if test "$cross_compiling" = yes; then :
17393 lt_cv_dlopen_self=cross
17394 else
17395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17396 lt_status=$lt_dlunknown
17397 cat > conftest.$ac_ext <<_LT_EOF
17398 #line $LINENO "configure"
17399 #include "confdefs.h"
17400
17401 #if HAVE_DLFCN_H
17402 #include <dlfcn.h>
17403 #endif
17404
17405 #include <stdio.h>
17406
17407 #ifdef RTLD_GLOBAL
17408 # define LT_DLGLOBAL RTLD_GLOBAL
17409 #else
17410 # ifdef DL_GLOBAL
17411 # define LT_DLGLOBAL DL_GLOBAL
17412 # else
17413 # define LT_DLGLOBAL 0
17414 # endif
17415 #endif
17416
17417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17418 find out it does not work in some platform. */
17419 #ifndef LT_DLLAZY_OR_NOW
17420 # ifdef RTLD_LAZY
17421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17422 # else
17423 # ifdef DL_LAZY
17424 # define LT_DLLAZY_OR_NOW DL_LAZY
17425 # else
17426 # ifdef RTLD_NOW
17427 # define LT_DLLAZY_OR_NOW RTLD_NOW
17428 # else
17429 # ifdef DL_NOW
17430 # define LT_DLLAZY_OR_NOW DL_NOW
17431 # else
17432 # define LT_DLLAZY_OR_NOW 0
17433 # endif
17434 # endif
17435 # endif
17436 # endif
17437 #endif
17438
17439 /* When -fvisbility=hidden is used, assume the code has been annotated
17440 correspondingly for the symbols needed. */
17441 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17442 int fnord () __attribute__((visibility("default")));
17443 #endif
17444
17445 int fnord () { return 42; }
17446 int main ()
17447 {
17448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17449 int status = $lt_dlunknown;
17450
17451 if (self)
17452 {
17453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17454 else
17455 {
17456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17457 else puts (dlerror ());
17458 }
17459 /* dlclose (self); */
17460 }
17461 else
17462 puts (dlerror ());
17463
17464 return status;
17465 }
17466 _LT_EOF
17467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17468 (eval $ac_link) 2>&5
17469 ac_status=$?
17470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17472 (./conftest; exit; ) >&5 2>/dev/null
17473 lt_status=$?
17474 case x$lt_status in
17475 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17476 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17477 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17478 esac
17479 else :
17480 # compilation failed
17481 lt_cv_dlopen_self=no
17482 fi
17483 fi
17484 rm -fr conftest*
17485
17486
17487 fi
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17489 $as_echo "$lt_cv_dlopen_self" >&6; }
17490
17491 if test "x$lt_cv_dlopen_self" = xyes; then
17492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17494 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17495 if ${lt_cv_dlopen_self_static+:} false; then :
17496 $as_echo_n "(cached) " >&6
17497 else
17498 if test "$cross_compiling" = yes; then :
17499 lt_cv_dlopen_self_static=cross
17500 else
17501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17502 lt_status=$lt_dlunknown
17503 cat > conftest.$ac_ext <<_LT_EOF
17504 #line $LINENO "configure"
17505 #include "confdefs.h"
17506
17507 #if HAVE_DLFCN_H
17508 #include <dlfcn.h>
17509 #endif
17510
17511 #include <stdio.h>
17512
17513 #ifdef RTLD_GLOBAL
17514 # define LT_DLGLOBAL RTLD_GLOBAL
17515 #else
17516 # ifdef DL_GLOBAL
17517 # define LT_DLGLOBAL DL_GLOBAL
17518 # else
17519 # define LT_DLGLOBAL 0
17520 # endif
17521 #endif
17522
17523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17524 find out it does not work in some platform. */
17525 #ifndef LT_DLLAZY_OR_NOW
17526 # ifdef RTLD_LAZY
17527 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17528 # else
17529 # ifdef DL_LAZY
17530 # define LT_DLLAZY_OR_NOW DL_LAZY
17531 # else
17532 # ifdef RTLD_NOW
17533 # define LT_DLLAZY_OR_NOW RTLD_NOW
17534 # else
17535 # ifdef DL_NOW
17536 # define LT_DLLAZY_OR_NOW DL_NOW
17537 # else
17538 # define LT_DLLAZY_OR_NOW 0
17539 # endif
17540 # endif
17541 # endif
17542 # endif
17543 #endif
17544
17545 /* When -fvisbility=hidden is used, assume the code has been annotated
17546 correspondingly for the symbols needed. */
17547 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17548 int fnord () __attribute__((visibility("default")));
17549 #endif
17550
17551 int fnord () { return 42; }
17552 int main ()
17553 {
17554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17555 int status = $lt_dlunknown;
17556
17557 if (self)
17558 {
17559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17560 else
17561 {
17562 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17563 else puts (dlerror ());
17564 }
17565 /* dlclose (self); */
17566 }
17567 else
17568 puts (dlerror ());
17569
17570 return status;
17571 }
17572 _LT_EOF
17573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17574 (eval $ac_link) 2>&5
17575 ac_status=$?
17576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17577 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17578 (./conftest; exit; ) >&5 2>/dev/null
17579 lt_status=$?
17580 case x$lt_status in
17581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17583 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17584 esac
17585 else :
17586 # compilation failed
17587 lt_cv_dlopen_self_static=no
17588 fi
17589 fi
17590 rm -fr conftest*
17591
17592
17593 fi
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17595 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17596 fi
17597
17598 CPPFLAGS="$save_CPPFLAGS"
17599 LDFLAGS="$save_LDFLAGS"
17600 LIBS="$save_LIBS"
17601 ;;
17602 esac
17603
17604 case $lt_cv_dlopen_self in
17605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17606 *) enable_dlopen_self=unknown ;;
17607 esac
17608
17609 case $lt_cv_dlopen_self_static in
17610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17611 *) enable_dlopen_self_static=unknown ;;
17612 esac
17613 fi
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631 striplib=
17632 old_striplib=
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17634 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17635 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17637 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17639 $as_echo "yes" >&6; }
17640 else
17641 # FIXME - insert some real tests, host_os isn't really good enough
17642 case $host_os in
17643 darwin*)
17644 if test -n "$STRIP" ; then
17645 striplib="$STRIP -x"
17646 old_striplib="$STRIP -S"
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17648 $as_echo "yes" >&6; }
17649 else
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651 $as_echo "no" >&6; }
17652 fi
17653 ;;
17654 *)
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17656 $as_echo "no" >&6; }
17657 ;;
17658 esac
17659 fi
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672 # Report which library types will actually be built
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17674 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17676 $as_echo "$can_build_shared" >&6; }
17677
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17679 $as_echo_n "checking whether to build shared libraries... " >&6; }
17680 test "$can_build_shared" = "no" && enable_shared=no
17681
17682 # On AIX, shared libraries and static libraries use the same namespace, and
17683 # are all built from PIC.
17684 case $host_os in
17685 aix3*)
17686 test "$enable_shared" = yes && enable_static=no
17687 if test -n "$RANLIB"; then
17688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17689 postinstall_cmds='$RANLIB $lib'
17690 fi
17691 ;;
17692
17693 aix[4-9]*)
17694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17695 test "$enable_shared" = yes && enable_static=no
17696 fi
17697 ;;
17698 esac
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17700 $as_echo "$enable_shared" >&6; }
17701
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17703 $as_echo_n "checking whether to build static libraries... " >&6; }
17704 # Make sure either enable_shared or enable_static is yes.
17705 test "$enable_shared" = yes || enable_static=yes
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17707 $as_echo "$enable_static" >&6; }
17708
17709
17710
17711
17712 fi
17713 ac_ext=c
17714 ac_cpp='$CPP $CPPFLAGS'
17715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17718
17719 CC="$lt_save_CC"
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735 ac_config_commands="$ac_config_commands libtool"
17736
17737
17738
17739
17740 # Only expand once:
17741
17742
17743
17744
17745
17746 # Define a configure option for an alternate module directory
17747
17748 # Check whether --with-xorg-module-dir was given.
17749 if test "${with_xorg_module_dir+set}" = set; then :
17750 withval=$with_xorg_module_dir; moduledir="$withval"
17751 else
17752 moduledir="$libdir/xorg/modules"
17753 fi
17754
17755
17756
17757 # Store the list of server defined optional extensions in REQUIRED_MODULES
17758
17759
17760 SAVE_CFLAGS="$CFLAGS"
17761 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h. */
17764
17765 #include "xorg-server.h"
17766 #if !defined RANDR
17767 #error RANDR not defined
17768 #endif
17769
17770 int
17771 main ()
17772 {
17773
17774 ;
17775 return 0;
17776 }
17777 _ACEOF
17778 if ac_fn_c_try_compile "$LINENO"; then :
17779 _EXT_CHECK=yes
17780 else
17781 _EXT_CHECK=no
17782 fi
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784 CFLAGS="$SAVE_CFLAGS"
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17786 $as_echo_n "checking if RANDR is defined... " >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17788 $as_echo "$_EXT_CHECK" >&6; }
17789 if test "$_EXT_CHECK" != no; then
17790 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17791 fi
17792
17793
17794
17795 SAVE_CFLAGS="$CFLAGS"
17796 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799
17800 #include "xorg-server.h"
17801 #if !defined RENDER
17802 #error RENDER not defined
17803 #endif
17804
17805 int
17806 main ()
17807 {
17808
17809 ;
17810 return 0;
17811 }
17812 _ACEOF
17813 if ac_fn_c_try_compile "$LINENO"; then :
17814 _EXT_CHECK=yes
17815 else
17816 _EXT_CHECK=no
17817 fi
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 CFLAGS="$SAVE_CFLAGS"
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17821 $as_echo_n "checking if RENDER is defined... " >&6; }
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17823 $as_echo "$_EXT_CHECK" >&6; }
17824 if test "$_EXT_CHECK" != no; then
17825 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17826 fi
17827
17828
17829
17830 SAVE_CFLAGS="$CFLAGS"
17831 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834
17835 #include "xorg-server.h"
17836 #if !defined XV
17837 #error XV not defined
17838 #endif
17839
17840 int
17841 main ()
17842 {
17843
17844 ;
17845 return 0;
17846 }
17847 _ACEOF
17848 if ac_fn_c_try_compile "$LINENO"; then :
17849 _EXT_CHECK=yes
17850 else
17851 _EXT_CHECK=no
17852 fi
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854 CFLAGS="$SAVE_CFLAGS"
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17856 $as_echo_n "checking if XV is defined... " >&6; }
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17858 $as_echo "$_EXT_CHECK" >&6; }
17859 if test "$_EXT_CHECK" != no; then
17860 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17861 fi
17862
17863
17864
17865 SAVE_CFLAGS="$CFLAGS"
17866 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17869
17870 #include "xorg-server.h"
17871 #if !defined DPMSExtension
17872 #error DPMSExtension not defined
17873 #endif
17874
17875 int
17876 main ()
17877 {
17878
17879 ;
17880 return 0;
17881 }
17882 _ACEOF
17883 if ac_fn_c_try_compile "$LINENO"; then :
17884 _EXT_CHECK=yes
17885 else
17886 _EXT_CHECK=no
17887 fi
17888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17889 CFLAGS="$SAVE_CFLAGS"
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17891 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17893 $as_echo "$_EXT_CHECK" >&6; }
17894 if test "$_EXT_CHECK" != no; then
17895 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17896 fi
17897
17898
17899
17900 SAVE_CFLAGS="$CFLAGS"
17901 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17904
17905 #include "xorg-server.h"
17906 #if !defined XFreeXDGA
17907 #error XFreeXDGA not defined
17908 #endif
17909
17910 int
17911 main ()
17912 {
17913
17914 ;
17915 return 0;
17916 }
17917 _ACEOF
17918 if ac_fn_c_try_compile "$LINENO"; then :
17919 _EXT_CHECK=yes
17920 else
17921 _EXT_CHECK=no
17922 fi
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 CFLAGS="$SAVE_CFLAGS"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
17926 $as_echo_n "checking if XFreeXDGA is defined... " >&6; }
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17928 $as_echo "$_EXT_CHECK" >&6; }
17929 if test "$_EXT_CHECK" != no; then
17930 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
17931 fi
17932
17933
17934 # Obtain compiler/linker options for the driver dependencies
17935
17936 pkg_failed=no
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17938 $as_echo_n "checking for XORG... " >&6; }
17939
17940 if test -n "$XORG_CFLAGS"; then
17941 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17942 elif test -n "$PKG_CONFIG"; then
17943 if test -n "$PKG_CONFIG" && \
17944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17945 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17946 ac_status=$?
17947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17948 test $ac_status = 0; }; then
17949 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17950 else
17951 pkg_failed=yes
17952 fi
17953 else
17954 pkg_failed=untried
17955 fi
17956 if test -n "$XORG_LIBS"; then
17957 pkg_cv_XORG_LIBS="$XORG_LIBS"
17958 elif test -n "$PKG_CONFIG"; then
17959 if test -n "$PKG_CONFIG" && \
17960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17961 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17962 ac_status=$?
17963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17964 test $ac_status = 0; }; then
17965 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17966 else
17967 pkg_failed=yes
17968 fi
17969 else
17970 pkg_failed=untried
17971 fi
17972
17973
17974
17975 if test $pkg_failed = yes; then
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977 $as_echo "no" >&6; }
17978
17979 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17980 _pkg_short_errors_supported=yes
17981 else
17982 _pkg_short_errors_supported=no
17983 fi
17984 if test $_pkg_short_errors_supported = yes; then
17985 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17986 else
17987 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17988 fi
17989 # Put the nasty error message in config.log where it belongs
17990 echo "$XORG_PKG_ERRORS" >&5
17991
17992 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17993
17994 $XORG_PKG_ERRORS
17995
17996 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17997 installed software in a non-standard prefix.
17998
17999 Alternatively, you may set the environment variables XORG_CFLAGS
18000 and XORG_LIBS to avoid the need to call pkg-config.
18001 See the pkg-config man page for more details." "$LINENO" 5
18002
18003 elif test $pkg_failed = untried; then
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18008 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18009 is in your PATH or set the PKG_CONFIG environment variable to the full
18010 path to pkg-config.
18011
18012 Alternatively, you may set the environment variables XORG_CFLAGS
18013 and XORG_LIBS to avoid the need to call pkg-config.
18014 See the pkg-config man page for more details.
18015
18016 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18017 See \`config.log' for more details" "$LINENO" 5; }
18018
18019 else
18020 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18021 XORG_LIBS=$pkg_cv_XORG_LIBS
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18023 $as_echo "yes" >&6; }
18024
18025 fi
18026
18027 save_CFLAGS="$CFLAGS"
18028 CFLAGS="$XORG_CFLAGS"
18029 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18030 "
18031 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18032
18033 $as_echo "#define HAVE_ISA 1" >>confdefs.h
18034
18035 fi
18036
18037 CFLAGS="$save_CFLAGS"
18038
18039 # Checks for libraries.
18040 SAVE_CPPFLAGS="$CPPFLAGS"
18041 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18042 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18043 "
18044 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18045 XSERVER_LIBPCIACCESS=yes
18046 else
18047 XSERVER_LIBPCIACCESS=no
18048 fi
18049
18050 CPPFLAGS="$SAVE_CPPFLAGS"
18051
18052 # Check whether --enable-xaa was given.
18053 if test "${enable_xaa+set}" = set; then :
18054 enableval=$enable_xaa; XAA="$enableval"
18055 else
18056 XAA=auto
18057 fi
18058
18059 if test "x$XAA" != xno; then
18060 save_CFLAGS=$CFLAGS
18061 save_CPPFLAGS=$CPPFLAGS
18062 CFLAGS=$XORG_CFLAGS
18063 CPPFLAGS="$XORG_CFLAGS"
18064 for ac_header in xaa.h
18065 do :
18066 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18067 if test "x$ac_cv_header_xaa_h" = xyes; then :
18068 cat >>confdefs.h <<_ACEOF
18069 #define HAVE_XAA_H 1
18070 _ACEOF
18071 XAA=yes
18072 else
18073 XAA=no
18074 fi
18075
18076 done
18077
18078 CFLAGS=$save_CFLAGS
18079 CPPFLAGS=$save_CPPFLAGS
18080 fi
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18082 $as_echo_n "checking whether to include XAA support... " >&6; }
18083 if test "x$XAA" = xyes; then
18084 XAA_TRUE=
18085 XAA_FALSE='#'
18086 else
18087 XAA_TRUE='#'
18088 XAA_FALSE=
18089 fi
18090
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18092 $as_echo "$XAA" >&6; }
18093
18094 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18095
18096 pkg_failed=no
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18098 $as_echo_n "checking for PCIACCESS... " >&6; }
18099
18100 if test -n "$PCIACCESS_CFLAGS"; then
18101 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18102 elif test -n "$PKG_CONFIG"; then
18103 if test -n "$PKG_CONFIG" && \
18104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18105 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18106 ac_status=$?
18107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18108 test $ac_status = 0; }; then
18109 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18110 else
18111 pkg_failed=yes
18112 fi
18113 else
18114 pkg_failed=untried
18115 fi
18116 if test -n "$PCIACCESS_LIBS"; then
18117 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18118 elif test -n "$PKG_CONFIG"; then
18119 if test -n "$PKG_CONFIG" && \
18120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18121 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18122 ac_status=$?
18123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18124 test $ac_status = 0; }; then
18125 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18126 else
18127 pkg_failed=yes
18128 fi
18129 else
18130 pkg_failed=untried
18131 fi
18132
18133
18134
18135 if test $pkg_failed = yes; then
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18137 $as_echo "no" >&6; }
18138
18139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18140 _pkg_short_errors_supported=yes
18141 else
18142 _pkg_short_errors_supported=no
18143 fi
18144 if test $_pkg_short_errors_supported = yes; then
18145 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18146 else
18147 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18148 fi
18149 # Put the nasty error message in config.log where it belongs
18150 echo "$PCIACCESS_PKG_ERRORS" >&5
18151
18152 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18153
18154 $PCIACCESS_PKG_ERRORS
18155
18156 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18157 installed software in a non-standard prefix.
18158
18159 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18160 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18161 See the pkg-config man page for more details." "$LINENO" 5
18162
18163 elif test $pkg_failed = untried; then
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18165 $as_echo "no" >&6; }
18166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18168 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18169 is in your PATH or set the PKG_CONFIG environment variable to the full
18170 path to pkg-config.
18171
18172 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18173 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18174 See the pkg-config man page for more details.
18175
18176 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18177 See \`config.log' for more details" "$LINENO" 5; }
18178
18179 else
18180 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18181 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18183 $as_echo "yes" >&6; }
18184
18185 fi
18186 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18187 fi
18188 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18189 XSERVER_LIBPCIACCESS_TRUE=
18190 XSERVER_LIBPCIACCESS_FALSE='#'
18191 else
18192 XSERVER_LIBPCIACCESS_TRUE='#'
18193 XSERVER_LIBPCIACCESS_FALSE=
18194 fi
18195
18196
18197
18198
18199 DRIVER_NAME=neomagic
18200
18201
18202 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18203
18204 cat >confcache <<\_ACEOF
18205 # This file is a shell script that caches the results of configure
18206 # tests run on this system so they can be shared between configure
18207 # scripts and configure runs, see configure's option --config-cache.
18208 # It is not useful on other systems. If it contains results you don't
18209 # want to keep, you may remove or edit it.
18210 #
18211 # config.status only pays attention to the cache file if you give it
18212 # the --recheck option to rerun configure.
18213 #
18214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18216 # following values.
18217
18218 _ACEOF
18219
18220 # The following way of writing the cache mishandles newlines in values,
18221 # but we know of no workaround that is simple, portable, and efficient.
18222 # So, we kill variables containing newlines.
18223 # Ultrix sh set writes to stderr and can't be redirected directly,
18224 # and sets the high bit in the cache file unless we assign to the vars.
18225 (
18226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18227 eval ac_val=\$$ac_var
18228 case $ac_val in #(
18229 *${as_nl}*)
18230 case $ac_var in #(
18231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18233 esac
18234 case $ac_var in #(
18235 _ | IFS | as_nl) ;; #(
18236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18237 *) { eval $ac_var=; unset $ac_var;} ;;
18238 esac ;;
18239 esac
18240 done
18241
18242 (set) 2>&1 |
18243 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18244 *${as_nl}ac_space=\ *)
18245 # `set' does not quote correctly, so add quotes: double-quote
18246 # substitution turns \\\\ into \\, and sed turns \\ into \.
18247 sed -n \
18248 "s/'/'\\\\''/g;
18249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18250 ;; #(
18251 *)
18252 # `set' quotes correctly as required by POSIX, so do not add quotes.
18253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18254 ;;
18255 esac |
18256 sort
18257 ) |
18258 sed '
18259 /^ac_cv_env_/b end
18260 t clear
18261 :clear
18262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18263 t end
18264 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18265 :end' >>confcache
18266 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18267 if test -w "$cache_file"; then
18268 if test "x$cache_file" != "x/dev/null"; then
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18270 $as_echo "$as_me: updating cache $cache_file" >&6;}
18271 if test ! -f "$cache_file" || test -h "$cache_file"; then
18272 cat confcache >"$cache_file"
18273 else
18274 case $cache_file in #(
18275 */* | ?:*)
18276 mv -f confcache "$cache_file"$$ &&
18277 mv -f "$cache_file"$$ "$cache_file" ;; #(
18278 *)
18279 mv -f confcache "$cache_file" ;;
18280 esac
18281 fi
18282 fi
18283 else
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18285 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18286 fi
18287 fi
18288 rm -f confcache
18289
18290 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18291 # Let make expand exec_prefix.
18292 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18293
18294 DEFS=-DHAVE_CONFIG_H
18295
18296 ac_libobjs=
18297 ac_ltlibobjs=
18298 U=
18299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18300 # 1. Remove the extension, and $U if already installed.
18301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18302 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18304 # will be set to the directory where LIBOBJS objects are built.
18305 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18306 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18307 done
18308 LIBOBJS=$ac_libobjs
18309
18310 LTLIBOBJS=$ac_ltlibobjs
18311
18312
18313 if test -n "$EXEEXT"; then
18314 am__EXEEXT_TRUE=
18315 am__EXEEXT_FALSE='#'
18316 else
18317 am__EXEEXT_TRUE='#'
18318 am__EXEEXT_FALSE=
18319 fi
18320
18321 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18322 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18324 fi
18325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18326 as_fn_error $? "conditional \"AMDEP\" was never defined.
18327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18328 fi
18329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18330 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18332 fi
18333 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18334 as_fn_error $? "conditional \"XAA\" was never defined.
18335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18336 fi
18337 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18338 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18340 fi
18341
18342 : "${CONFIG_STATUS=./config.status}"
18343 ac_write_fail=0
18344 ac_clean_files_save=$ac_clean_files
18345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18347 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18348 as_write_fail=0
18349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18350 #! $SHELL
18351 # Generated by $as_me.
18352 # Run this file to recreate the current configuration.
18353 # Compiler output produced by configure, useful for debugging
18354 # configure, is in config.log if it exists.
18355
18356 debug=false
18357 ac_cs_recheck=false
18358 ac_cs_silent=false
18359
18360 SHELL=\${CONFIG_SHELL-$SHELL}
18361 export SHELL
18362 _ASEOF
18363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18364 ## -------------------- ##
18365 ## M4sh Initialization. ##
18366 ## -------------------- ##
18367
18368 # Be more Bourne compatible
18369 DUALCASE=1; export DUALCASE # for MKS sh
18370 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18371 emulate sh
18372 NULLCMD=:
18373 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18374 # is contrary to our usage. Disable this feature.
18375 alias -g '${1+"$@"}'='"$@"'
18376 setopt NO_GLOB_SUBST
18377 else
18378 case `(set -o) 2>/dev/null` in #(
18379 *posix*) :
18380 set -o posix ;; #(
18381 *) :
18382 ;;
18383 esac
18384 fi
18385
18386
18387 as_nl='
18388 '
18389 export as_nl
18390 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18391 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18394 # Prefer a ksh shell builtin over an external printf program on Solaris,
18395 # but without wasting forks for bash or zsh.
18396 if test -z "$BASH_VERSION$ZSH_VERSION" \
18397 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18398 as_echo='print -r --'
18399 as_echo_n='print -rn --'
18400 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18401 as_echo='printf %s\n'
18402 as_echo_n='printf %s'
18403 else
18404 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18405 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18406 as_echo_n='/usr/ucb/echo -n'
18407 else
18408 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18409 as_echo_n_body='eval
18410 arg=$1;
18411 case $arg in #(
18412 *"$as_nl"*)
18413 expr "X$arg" : "X\\(.*\\)$as_nl";
18414 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18415 esac;
18416 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18417 '
18418 export as_echo_n_body
18419 as_echo_n='sh -c $as_echo_n_body as_echo'
18420 fi
18421 export as_echo_body
18422 as_echo='sh -c $as_echo_body as_echo'
18423 fi
18424
18425 # The user is always right.
18426 if test "${PATH_SEPARATOR+set}" != set; then
18427 PATH_SEPARATOR=:
18428 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18429 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18430 PATH_SEPARATOR=';'
18431 }
18432 fi
18433
18434
18435 # IFS
18436 # We need space, tab and new line, in precisely that order. Quoting is
18437 # there to prevent editors from complaining about space-tab.
18438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18439 # splitting by setting IFS to empty value.)
18440 IFS=" "" $as_nl"
18441
18442 # Find who we are. Look in the path if we contain no directory separator.
18443 as_myself=
18444 case $0 in #((
18445 *[\\/]* ) as_myself=$0 ;;
18446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447 for as_dir in $PATH
18448 do
18449 IFS=$as_save_IFS
18450 test -z "$as_dir" && as_dir=.
18451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18452 done
18453 IFS=$as_save_IFS
18454
18455 ;;
18456 esac
18457 # We did not find ourselves, most probably we were run as `sh COMMAND'
18458 # in which case we are not to be found in the path.
18459 if test "x$as_myself" = x; then
18460 as_myself=$0
18461 fi
18462 if test ! -f "$as_myself"; then
18463 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18464 exit 1
18465 fi
18466
18467 # Unset variables that we do not need and which cause bugs (e.g. in
18468 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18469 # suppresses any "Segmentation fault" message there. '((' could
18470 # trigger a bug in pdksh 5.2.14.
18471 for as_var in BASH_ENV ENV MAIL MAILPATH
18472 do eval test x\${$as_var+set} = xset \
18473 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18474 done
18475 PS1='$ '
18476 PS2='> '
18477 PS4='+ '
18478
18479 # NLS nuisances.
18480 LC_ALL=C
18481 export LC_ALL
18482 LANGUAGE=C
18483 export LANGUAGE
18484
18485 # CDPATH.
18486 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18487
18488
18489 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18490 # ----------------------------------------
18491 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18492 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18493 # script with STATUS, using 1 if that was 0.
18494 as_fn_error ()
18495 {
18496 as_status=$1; test $as_status -eq 0 && as_status=1
18497 if test "$4"; then
18498 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18499 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18500 fi
18501 $as_echo "$as_me: error: $2" >&2
18502 as_fn_exit $as_status
18503 } # as_fn_error
18504
18505
18506 # as_fn_set_status STATUS
18507 # -----------------------
18508 # Set $? to STATUS, without forking.
18509 as_fn_set_status ()
18510 {
18511 return $1
18512 } # as_fn_set_status
18513
18514 # as_fn_exit STATUS
18515 # -----------------
18516 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18517 as_fn_exit ()
18518 {
18519 set +e
18520 as_fn_set_status $1
18521 exit $1
18522 } # as_fn_exit
18523
18524 # as_fn_unset VAR
18525 # ---------------
18526 # Portably unset VAR.
18527 as_fn_unset ()
18528 {
18529 { eval $1=; unset $1;}
18530 }
18531 as_unset=as_fn_unset
18532 # as_fn_append VAR VALUE
18533 # ----------------------
18534 # Append the text in VALUE to the end of the definition contained in VAR. Take
18535 # advantage of any shell optimizations that allow amortized linear growth over
18536 # repeated appends, instead of the typical quadratic growth present in naive
18537 # implementations.
18538 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18539 eval 'as_fn_append ()
18540 {
18541 eval $1+=\$2
18542 }'
18543 else
18544 as_fn_append ()
18545 {
18546 eval $1=\$$1\$2
18547 }
18548 fi # as_fn_append
18549
18550 # as_fn_arith ARG...
18551 # ------------------
18552 # Perform arithmetic evaluation on the ARGs, and store the result in the
18553 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18554 # must be portable across $(()) and expr.
18555 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18556 eval 'as_fn_arith ()
18557 {
18558 as_val=$(( $* ))
18559 }'
18560 else
18561 as_fn_arith ()
18562 {
18563 as_val=`expr "$@" || test $? -eq 1`
18564 }
18565 fi # as_fn_arith
18566
18567
18568 if expr a : '\(a\)' >/dev/null 2>&1 &&
18569 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18570 as_expr=expr
18571 else
18572 as_expr=false
18573 fi
18574
18575 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18576 as_basename=basename
18577 else
18578 as_basename=false
18579 fi
18580
18581 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18582 as_dirname=dirname
18583 else
18584 as_dirname=false
18585 fi
18586
18587 as_me=`$as_basename -- "$0" ||
18588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18589 X"$0" : 'X\(//\)$' \| \
18590 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18591 $as_echo X/"$0" |
18592 sed '/^.*\/\([^/][^/]*\)\/*$/{
18593 s//\1/
18594 q
18595 }
18596 /^X\/\(\/\/\)$/{
18597 s//\1/
18598 q
18599 }
18600 /^X\/\(\/\).*/{
18601 s//\1/
18602 q
18603 }
18604 s/.*/./; q'`
18605
18606 # Avoid depending upon Character Ranges.
18607 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18608 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18609 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18610 as_cr_digits='0123456789'
18611 as_cr_alnum=$as_cr_Letters$as_cr_digits
18612
18613 ECHO_C= ECHO_N= ECHO_T=
18614 case `echo -n x` in #(((((
18615 -n*)
18616 case `echo 'xy\c'` in
18617 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18618 xy) ECHO_C='\c';;
18619 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18620 ECHO_T=' ';;
18621 esac;;
18622 *)
18623 ECHO_N='-n';;
18624 esac
18625
18626 rm -f conf$$ conf$$.exe conf$$.file
18627 if test -d conf$$.dir; then
18628 rm -f conf$$.dir/conf$$.file
18629 else
18630 rm -f conf$$.dir
18631 mkdir conf$$.dir 2>/dev/null
18632 fi
18633 if (echo >conf$$.file) 2>/dev/null; then
18634 if ln -s conf$$.file conf$$ 2>/dev/null; then
18635 as_ln_s='ln -s'
18636 # ... but there are two gotchas:
18637 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18638 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18639 # In both cases, we have to default to `cp -p'.
18640 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18641 as_ln_s='cp -p'
18642 elif ln conf$$.file conf$$ 2>/dev/null; then
18643 as_ln_s=ln
18644 else
18645 as_ln_s='cp -p'
18646 fi
18647 else
18648 as_ln_s='cp -p'
18649 fi
18650 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18651 rmdir conf$$.dir 2>/dev/null
18652
18653
18654 # as_fn_mkdir_p
18655 # -------------
18656 # Create "$as_dir" as a directory, including parents if necessary.
18657 as_fn_mkdir_p ()
18658 {
18659
18660 case $as_dir in #(
18661 -*) as_dir=./$as_dir;;
18662 esac
18663 test -d "$as_dir" || eval $as_mkdir_p || {
18664 as_dirs=
18665 while :; do
18666 case $as_dir in #(
18667 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18668 *) as_qdir=$as_dir;;
18669 esac
18670 as_dirs="'$as_qdir' $as_dirs"
18671 as_dir=`$as_dirname -- "$as_dir" ||
18672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18673 X"$as_dir" : 'X\(//\)[^/]' \| \
18674 X"$as_dir" : 'X\(//\)$' \| \
18675 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18676 $as_echo X"$as_dir" |
18677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18678 s//\1/
18679 q
18680 }
18681 /^X\(\/\/\)[^/].*/{
18682 s//\1/
18683 q
18684 }
18685 /^X\(\/\/\)$/{
18686 s//\1/
18687 q
18688 }
18689 /^X\(\/\).*/{
18690 s//\1/
18691 q
18692 }
18693 s/.*/./; q'`
18694 test -d "$as_dir" && break
18695 done
18696 test -z "$as_dirs" || eval "mkdir $as_dirs"
18697 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18698
18699
18700 } # as_fn_mkdir_p
18701 if mkdir -p . 2>/dev/null; then
18702 as_mkdir_p='mkdir -p "$as_dir"'
18703 else
18704 test -d ./-p && rmdir ./-p
18705 as_mkdir_p=false
18706 fi
18707
18708 if test -x / >/dev/null 2>&1; then
18709 as_test_x='test -x'
18710 else
18711 if ls -dL / >/dev/null 2>&1; then
18712 as_ls_L_option=L
18713 else
18714 as_ls_L_option=
18715 fi
18716 as_test_x='
18717 eval sh -c '\''
18718 if test -d "$1"; then
18719 test -d "$1/.";
18720 else
18721 case $1 in #(
18722 -*)set "./$1";;
18723 esac;
18724 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18725 ???[sx]*):;;*)false;;esac;fi
18726 '\'' sh
18727 '
18728 fi
18729 as_executable_p=$as_test_x
18730
18731 # Sed expression to map a string onto a valid CPP name.
18732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18733
18734 # Sed expression to map a string onto a valid variable name.
18735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18736
18737
18738 exec 6>&1
18739 ## ----------------------------------- ##
18740 ## Main body of $CONFIG_STATUS script. ##
18741 ## ----------------------------------- ##
18742 _ASEOF
18743 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18744
18745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18746 # Save the log message, to keep $0 and so on meaningful, and to
18747 # report actual input values of CONFIG_FILES etc. instead of their
18748 # values after options handling.
18749 ac_log="
18750 This file was extended by xf86-video-neomagic $as_me 1.2.7, which was
18751 generated by GNU Autoconf 2.68. Invocation command line was
18752
18753 CONFIG_FILES = $CONFIG_FILES
18754 CONFIG_HEADERS = $CONFIG_HEADERS
18755 CONFIG_LINKS = $CONFIG_LINKS
18756 CONFIG_COMMANDS = $CONFIG_COMMANDS
18757 $ $0 $@
18758
18759 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18760 "
18761
18762 _ACEOF
18763
18764 case $ac_config_files in *"
18765 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18766 esac
18767
18768 case $ac_config_headers in *"
18769 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18770 esac
18771
18772
18773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18774 # Files that config.status was made for.
18775 config_files="$ac_config_files"
18776 config_headers="$ac_config_headers"
18777 config_commands="$ac_config_commands"
18778
18779 _ACEOF
18780
18781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18782 ac_cs_usage="\
18783 \`$as_me' instantiates files and other configuration actions
18784 from templates according to the current configuration. Unless the files
18785 and actions are specified as TAGs, all are instantiated by default.
18786
18787 Usage: $0 [OPTION]... [TAG]...
18788
18789 -h, --help print this help, then exit
18790 -V, --version print version number and configuration settings, then exit
18791 --config print configuration, then exit
18792 -q, --quiet, --silent
18793 do not print progress messages
18794 -d, --debug don't remove temporary files
18795 --recheck update $as_me by reconfiguring in the same conditions
18796 --file=FILE[:TEMPLATE]
18797 instantiate the configuration file FILE
18798 --header=FILE[:TEMPLATE]
18799 instantiate the configuration header FILE
18800
18801 Configuration files:
18802 $config_files
18803
18804 Configuration headers:
18805 $config_headers
18806
18807 Configuration commands:
18808 $config_commands
18809
18810 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18811
18812 _ACEOF
18813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18815 ac_cs_version="\\
18816 xf86-video-neomagic config.status 1.2.7
18817 configured by $0, generated by GNU Autoconf 2.68,
18818 with options \\"\$ac_cs_config\\"
18819
18820 Copyright (C) 2010 Free Software Foundation, Inc.
18821 This config.status script is free software; the Free Software Foundation
18822 gives unlimited permission to copy, distribute and modify it."
18823
18824 ac_pwd='$ac_pwd'
18825 srcdir='$srcdir'
18826 INSTALL='$INSTALL'
18827 MKDIR_P='$MKDIR_P'
18828 AWK='$AWK'
18829 test -n "\$AWK" || AWK=awk
18830 _ACEOF
18831
18832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18833 # The default lists apply if the user does not specify any file.
18834 ac_need_defaults=:
18835 while test $# != 0
18836 do
18837 case $1 in
18838 --*=?*)
18839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18840 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18841 ac_shift=:
18842 ;;
18843 --*=)
18844 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18845 ac_optarg=
18846 ac_shift=:
18847 ;;
18848 *)
18849 ac_option=$1
18850 ac_optarg=$2
18851 ac_shift=shift
18852 ;;
18853 esac
18854
18855 case $ac_option in
18856 # Handling of the options.
18857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18858 ac_cs_recheck=: ;;
18859 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18860 $as_echo "$ac_cs_version"; exit ;;
18861 --config | --confi | --conf | --con | --co | --c )
18862 $as_echo "$ac_cs_config"; exit ;;
18863 --debug | --debu | --deb | --de | --d | -d )
18864 debug=: ;;
18865 --file | --fil | --fi | --f )
18866 $ac_shift
18867 case $ac_optarg in
18868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18869 '') as_fn_error $? "missing file argument" ;;
18870 esac
18871 as_fn_append CONFIG_FILES " '$ac_optarg'"
18872 ac_need_defaults=false;;
18873 --header | --heade | --head | --hea )
18874 $ac_shift
18875 case $ac_optarg in
18876 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18877 esac
18878 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18879 ac_need_defaults=false;;
18880 --he | --h)
18881 # Conflict between --help and --header
18882 as_fn_error $? "ambiguous option: \`$1'
18883 Try \`$0 --help' for more information.";;
18884 --help | --hel | -h )
18885 $as_echo "$ac_cs_usage"; exit ;;
18886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18888 ac_cs_silent=: ;;
18889
18890 # This is an error.
18891 -*) as_fn_error $? "unrecognized option: \`$1'
18892 Try \`$0 --help' for more information." ;;
18893
18894 *) as_fn_append ac_config_targets " $1"
18895 ac_need_defaults=false ;;
18896
18897 esac
18898 shift
18899 done
18900
18901 ac_configure_extra_args=
18902
18903 if $ac_cs_silent; then
18904 exec 6>/dev/null
18905 ac_configure_extra_args="$ac_configure_extra_args --silent"
18906 fi
18907
18908 _ACEOF
18909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18910 if \$ac_cs_recheck; then
18911 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18912 shift
18913 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18914 CONFIG_SHELL='$SHELL'
18915 export CONFIG_SHELL
18916 exec "\$@"
18917 fi
18918
18919 _ACEOF
18920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18921 exec 5>>config.log
18922 {
18923 echo
18924 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18925 ## Running $as_me. ##
18926 _ASBOX
18927 $as_echo "$ac_log"
18928 } >&5
18929
18930 _ACEOF
18931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18932 #
18933 # INIT-COMMANDS
18934 #
18935 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18936
18937
18938 # The HP-UX ksh and POSIX shell print the target directory to stdout
18939 # if CDPATH is set.
18940 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18941
18942 sed_quote_subst='$sed_quote_subst'
18943 double_quote_subst='$double_quote_subst'
18944 delay_variable_subst='$delay_variable_subst'
18945 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18946 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18947 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18948 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18949 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18950 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18951 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18952 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18953 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18954 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18955 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18956 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18957 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18958 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18959 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18960 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18961 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18962 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18963 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18964 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18965 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18966 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18967 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18968 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18969 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18970 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18971 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18972 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18973 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18974 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18975 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18976 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18977 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18978 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18979 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18980 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18981 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18982 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18983 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18984 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18985 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18986 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18987 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18988 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18989 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18990 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18991 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18992 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18993 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18994 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18995 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18996 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18997 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18998 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18999 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19000 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19001 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"`'
19002 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19003 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19004 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19005 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19006 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19007 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19008 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19009 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19010 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19011 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19012 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19013 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19014 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19015 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19016 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19017 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19018 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19019 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19020 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19021 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19022 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19023 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19024 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19025 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19026 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19027 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19028 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19029 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19030 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19031 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19032 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19033 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19034 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19035 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19036 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19037 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19038 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19039 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19040 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19041 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19042 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19043 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19044 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19045 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19046 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19047 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19048 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19049 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19050 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19051 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19052 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19053 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19054 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19055 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19056 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19057 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19058 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19059 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19060 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19061 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19062 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19063 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19064 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19065 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19066 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19067 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19068 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19069 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19070 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19071 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19072 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19073 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19074 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19075
19076 LTCC='$LTCC'
19077 LTCFLAGS='$LTCFLAGS'
19078 compiler='$compiler_DEFAULT'
19079
19080 # A function that is used when there is no print builtin or printf.
19081 func_fallback_echo ()
19082 {
19083 eval 'cat <<_LTECHO_EOF
19084 \$1
19085 _LTECHO_EOF'
19086 }
19087
19088 # Quote evaled strings.
19089 for var in SHELL \
19090 ECHO \
19091 PATH_SEPARATOR \
19092 SED \
19093 GREP \
19094 EGREP \
19095 FGREP \
19096 LD \
19097 NM \
19098 LN_S \
19099 lt_SP2NL \
19100 lt_NL2SP \
19101 reload_flag \
19102 OBJDUMP \
19103 deplibs_check_method \
19104 file_magic_cmd \
19105 file_magic_glob \
19106 want_nocaseglob \
19107 DLLTOOL \
19108 sharedlib_from_linklib_cmd \
19109 AR \
19110 AR_FLAGS \
19111 archiver_list_spec \
19112 STRIP \
19113 RANLIB \
19114 CC \
19115 CFLAGS \
19116 compiler \
19117 lt_cv_sys_global_symbol_pipe \
19118 lt_cv_sys_global_symbol_to_cdecl \
19119 lt_cv_sys_global_symbol_to_c_name_address \
19120 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19121 nm_file_list_spec \
19122 lt_prog_compiler_no_builtin_flag \
19123 lt_prog_compiler_pic \
19124 lt_prog_compiler_wl \
19125 lt_prog_compiler_static \
19126 lt_cv_prog_compiler_c_o \
19127 need_locks \
19128 MANIFEST_TOOL \
19129 DSYMUTIL \
19130 NMEDIT \
19131 LIPO \
19132 OTOOL \
19133 OTOOL64 \
19134 shrext_cmds \
19135 export_dynamic_flag_spec \
19136 whole_archive_flag_spec \
19137 compiler_needs_object \
19138 with_gnu_ld \
19139 allow_undefined_flag \
19140 no_undefined_flag \
19141 hardcode_libdir_flag_spec \
19142 hardcode_libdir_separator \
19143 exclude_expsyms \
19144 include_expsyms \
19145 file_list_spec \
19146 variables_saved_for_relink \
19147 libname_spec \
19148 library_names_spec \
19149 soname_spec \
19150 install_override_mode \
19151 finish_eval \
19152 old_striplib \
19153 striplib; do
19154 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19155 *[\\\\\\\`\\"\\\$]*)
19156 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19157 ;;
19158 *)
19159 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19160 ;;
19161 esac
19162 done
19163
19164 # Double-quote double-evaled strings.
19165 for var in reload_cmds \
19166 old_postinstall_cmds \
19167 old_postuninstall_cmds \
19168 old_archive_cmds \
19169 extract_expsyms_cmds \
19170 old_archive_from_new_cmds \
19171 old_archive_from_expsyms_cmds \
19172 archive_cmds \
19173 archive_expsym_cmds \
19174 module_cmds \
19175 module_expsym_cmds \
19176 export_symbols_cmds \
19177 prelink_cmds \
19178 postlink_cmds \
19179 postinstall_cmds \
19180 postuninstall_cmds \
19181 finish_cmds \
19182 sys_lib_search_path_spec \
19183 sys_lib_dlsearch_path_spec; do
19184 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19185 *[\\\\\\\`\\"\\\$]*)
19186 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19187 ;;
19188 *)
19189 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19190 ;;
19191 esac
19192 done
19193
19194 ac_aux_dir='$ac_aux_dir'
19195 xsi_shell='$xsi_shell'
19196 lt_shell_append='$lt_shell_append'
19197
19198 # See if we are running on zsh, and set the options which allow our
19199 # commands through without removal of \ escapes INIT.
19200 if test -n "\${ZSH_VERSION+set}" ; then
19201 setopt NO_GLOB_SUBST
19202 fi
19203
19204
19205 PACKAGE='$PACKAGE'
19206 VERSION='$VERSION'
19207 TIMESTAMP='$TIMESTAMP'
19208 RM='$RM'
19209 ofile='$ofile'
19210
19211
19212
19213
19214 _ACEOF
19215
19216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19217
19218 # Handling of arguments.
19219 for ac_config_target in $ac_config_targets
19220 do
19221 case $ac_config_target in
19222 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19223 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19224 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19225 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19226 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19227 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19228
19229 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19230 esac
19231 done
19232
19233
19234 # If the user did not use the arguments to specify the items to instantiate,
19235 # then the envvar interface is used. Set only those that are not.
19236 # We use the long form for the default assignment because of an extremely
19237 # bizarre bug on SunOS 4.1.3.
19238 if $ac_need_defaults; then
19239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19242 fi
19243
19244 # Have a temporary directory for convenience. Make it in the build tree
19245 # simply because there is no reason against having it here, and in addition,
19246 # creating and moving files from /tmp can sometimes cause problems.
19247 # Hook for its removal unless debugging.
19248 # Note that there is a small window in which the directory will not be cleaned:
19249 # after its creation but before its name has been assigned to `$tmp'.
19250 $debug ||
19251 {
19252 tmp= ac_tmp=
19253 trap 'exit_status=$?
19254 : "${ac_tmp:=$tmp}"
19255 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19256 ' 0
19257 trap 'as_fn_exit 1' 1 2 13 15
19258 }
19259 # Create a (secure) tmp directory for tmp files.
19260
19261 {
19262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19263 test -d "$tmp"
19264 } ||
19265 {
19266 tmp=./conf$$-$RANDOM
19267 (umask 077 && mkdir "$tmp")
19268 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19269 ac_tmp=$tmp
19270
19271 # Set up the scripts for CONFIG_FILES section.
19272 # No need to generate them if there are no CONFIG_FILES.
19273 # This happens for instance with `./config.status config.h'.
19274 if test -n "$CONFIG_FILES"; then
19275
19276
19277 ac_cr=`echo X | tr X '\015'`
19278 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19279 # But we know of no other shell where ac_cr would be empty at this
19280 # point, so we can use a bashism as a fallback.
19281 if test "x$ac_cr" = x; then
19282 eval ac_cr=\$\'\\r\'
19283 fi
19284 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19285 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19286 ac_cs_awk_cr='\\r'
19287 else
19288 ac_cs_awk_cr=$ac_cr
19289 fi
19290
19291 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19292 _ACEOF
19293
19294
19295 {
19296 echo "cat >conf$$subs.awk <<_ACEOF" &&
19297 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19298 echo "_ACEOF"
19299 } >conf$$subs.sh ||
19300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19301 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19302 ac_delim='%!_!# '
19303 for ac_last_try in false false false false false :; do
19304 . ./conf$$subs.sh ||
19305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19306
19307 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19308 if test $ac_delim_n = $ac_delim_num; then
19309 break
19310 elif $ac_last_try; then
19311 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19312 else
19313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19314 fi
19315 done
19316 rm -f conf$$subs.sh
19317
19318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19320 _ACEOF
19321 sed -n '
19322 h
19323 s/^/S["/; s/!.*/"]=/
19324 p
19325 g
19326 s/^[^!]*!//
19327 :repl
19328 t repl
19329 s/'"$ac_delim"'$//
19330 t delim
19331 :nl
19332 h
19333 s/\(.\{148\}\)..*/\1/
19334 t more1
19335 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19336 p
19337 n
19338 b repl
19339 :more1
19340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19341 p
19342 g
19343 s/.\{148\}//
19344 t nl
19345 :delim
19346 h
19347 s/\(.\{148\}\)..*/\1/
19348 t more2
19349 s/["\\]/\\&/g; s/^/"/; s/$/"/
19350 p
19351 b
19352 :more2
19353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19354 p
19355 g
19356 s/.\{148\}//
19357 t delim
19358 ' <conf$$subs.awk | sed '
19359 /^[^""]/{
19360 N
19361 s/\n//
19362 }
19363 ' >>$CONFIG_STATUS || ac_write_fail=1
19364 rm -f conf$$subs.awk
19365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19366 _ACAWK
19367 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19368 for (key in S) S_is_set[key] = 1
19369 FS = ""
19370
19371 }
19372 {
19373 line = $ 0
19374 nfields = split(line, field, "@")
19375 substed = 0
19376 len = length(field[1])
19377 for (i = 2; i < nfields; i++) {
19378 key = field[i]
19379 keylen = length(key)
19380 if (S_is_set[key]) {
19381 value = S[key]
19382 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19383 len += length(value) + length(field[++i])
19384 substed = 1
19385 } else
19386 len += 1 + keylen
19387 }
19388
19389 print line
19390 }
19391
19392 _ACAWK
19393 _ACEOF
19394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19395 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19396 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19397 else
19398 cat
19399 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19400 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19401 _ACEOF
19402
19403 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19404 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19405 # trailing colons and then remove the whole line if VPATH becomes empty
19406 # (actually we leave an empty line to preserve line numbers).
19407 if test "x$srcdir" = x.; then
19408 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19409 h
19410 s///
19411 s/^/:/
19412 s/[ ]*$/:/
19413 s/:\$(srcdir):/:/g
19414 s/:\${srcdir}:/:/g
19415 s/:@srcdir@:/:/g
19416 s/^:*//
19417 s/:*$//
19418 x
19419 s/\(=[ ]*\).*/\1/
19420 G
19421 s/\n//
19422 s/^[^=]*=[ ]*$//
19423 }'
19424 fi
19425
19426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19427 fi # test -n "$CONFIG_FILES"
19428
19429 # Set up the scripts for CONFIG_HEADERS section.
19430 # No need to generate them if there are no CONFIG_HEADERS.
19431 # This happens for instance with `./config.status Makefile'.
19432 if test -n "$CONFIG_HEADERS"; then
19433 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19434 BEGIN {
19435 _ACEOF
19436
19437 # Transform confdefs.h into an awk script `defines.awk', embedded as
19438 # here-document in config.status, that substitutes the proper values into
19439 # config.h.in to produce config.h.
19440
19441 # Create a delimiter string that does not exist in confdefs.h, to ease
19442 # handling of long lines.
19443 ac_delim='%!_!# '
19444 for ac_last_try in false false :; do
19445 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19446 if test -z "$ac_tt"; then
19447 break
19448 elif $ac_last_try; then
19449 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19450 else
19451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19452 fi
19453 done
19454
19455 # For the awk script, D is an array of macro values keyed by name,
19456 # likewise P contains macro parameters if any. Preserve backslash
19457 # newline sequences.
19458
19459 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19460 sed -n '
19461 s/.\{148\}/&'"$ac_delim"'/g
19462 t rset
19463 :rset
19464 s/^[ ]*#[ ]*define[ ][ ]*/ /
19465 t def
19466 d
19467 :def
19468 s/\\$//
19469 t bsnl
19470 s/["\\]/\\&/g
19471 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19472 D["\1"]=" \3"/p
19473 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19474 d
19475 :bsnl
19476 s/["\\]/\\&/g
19477 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19478 D["\1"]=" \3\\\\\\n"\\/p
19479 t cont
19480 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19481 t cont
19482 d
19483 :cont
19484 n
19485 s/.\{148\}/&'"$ac_delim"'/g
19486 t clear
19487 :clear
19488 s/\\$//
19489 t bsnlc
19490 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19491 d
19492 :bsnlc
19493 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19494 b cont
19495 ' <confdefs.h | sed '
19496 s/'"$ac_delim"'/"\\\
19497 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19498
19499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500 for (key in D) D_is_set[key] = 1
19501 FS = ""
19502 }
19503 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19504 line = \$ 0
19505 split(line, arg, " ")
19506 if (arg[1] == "#") {
19507 defundef = arg[2]
19508 mac1 = arg[3]
19509 } else {
19510 defundef = substr(arg[1], 2)
19511 mac1 = arg[2]
19512 }
19513 split(mac1, mac2, "(") #)
19514 macro = mac2[1]
19515 prefix = substr(line, 1, index(line, defundef) - 1)
19516 if (D_is_set[macro]) {
19517 # Preserve the white space surrounding the "#".
19518 print prefix "define", macro P[macro] D[macro]
19519 next
19520 } else {
19521 # Replace #undef with comments. This is necessary, for example,
19522 # in the case of _POSIX_SOURCE, which is predefined and required
19523 # on some systems where configure will not decide to define it.
19524 if (defundef == "undef") {
19525 print "/*", prefix defundef, macro, "*/"
19526 next
19527 }
19528 }
19529 }
19530 { print }
19531 _ACAWK
19532 _ACEOF
19533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19534 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19535 fi # test -n "$CONFIG_HEADERS"
19536
19537
19538 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19539 shift
19540 for ac_tag
19541 do
19542 case $ac_tag in
19543 :[FHLC]) ac_mode=$ac_tag; continue;;
19544 esac
19545 case $ac_mode$ac_tag in
19546 :[FHL]*:*);;
19547 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19548 :[FH]-) ac_tag=-:-;;
19549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19550 esac
19551 ac_save_IFS=$IFS
19552 IFS=:
19553 set x $ac_tag
19554 IFS=$ac_save_IFS
19555 shift
19556 ac_file=$1
19557 shift
19558
19559 case $ac_mode in
19560 :L) ac_source=$1;;
19561 :[FH])
19562 ac_file_inputs=
19563 for ac_f
19564 do
19565 case $ac_f in
19566 -) ac_f="$ac_tmp/stdin";;
19567 *) # Look for the file first in the build tree, then in the source tree
19568 # (if the path is not absolute). The absolute path cannot be DOS-style,
19569 # because $ac_f cannot contain `:'.
19570 test -f "$ac_f" ||
19571 case $ac_f in
19572 [\\/$]*) false;;
19573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19574 esac ||
19575 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19576 esac
19577 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19578 as_fn_append ac_file_inputs " '$ac_f'"
19579 done
19580
19581 # Let's still pretend it is `configure' which instantiates (i.e., don't
19582 # use $as_me), people would be surprised to read:
19583 # /* config.h. Generated by config.status. */
19584 configure_input='Generated from '`
19585 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19586 `' by configure.'
19587 if test x"$ac_file" != x-; then
19588 configure_input="$ac_file. $configure_input"
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19590 $as_echo "$as_me: creating $ac_file" >&6;}
19591 fi
19592 # Neutralize special characters interpreted by sed in replacement strings.
19593 case $configure_input in #(
19594 *\&* | *\|* | *\\* )
19595 ac_sed_conf_input=`$as_echo "$configure_input" |
19596 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19597 *) ac_sed_conf_input=$configure_input;;
19598 esac
19599
19600 case $ac_tag in
19601 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19603 esac
19604 ;;
19605 esac
19606
19607 ac_dir=`$as_dirname -- "$ac_file" ||
19608 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19609 X"$ac_file" : 'X\(//\)[^/]' \| \
19610 X"$ac_file" : 'X\(//\)$' \| \
19611 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19612 $as_echo X"$ac_file" |
19613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19614 s//\1/
19615 q
19616 }
19617 /^X\(\/\/\)[^/].*/{
19618 s//\1/
19619 q
19620 }
19621 /^X\(\/\/\)$/{
19622 s//\1/
19623 q
19624 }
19625 /^X\(\/\).*/{
19626 s//\1/
19627 q
19628 }
19629 s/.*/./; q'`
19630 as_dir="$ac_dir"; as_fn_mkdir_p
19631 ac_builddir=.
19632
19633 case "$ac_dir" in
19634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19635 *)
19636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19637 # A ".." for each directory in $ac_dir_suffix.
19638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19639 case $ac_top_builddir_sub in
19640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19642 esac ;;
19643 esac
19644 ac_abs_top_builddir=$ac_pwd
19645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19646 # for backward compatibility:
19647 ac_top_builddir=$ac_top_build_prefix
19648
19649 case $srcdir in
19650 .) # We are building in place.
19651 ac_srcdir=.
19652 ac_top_srcdir=$ac_top_builddir_sub
19653 ac_abs_top_srcdir=$ac_pwd ;;
19654 [\\/]* | ?:[\\/]* ) # Absolute name.
19655 ac_srcdir=$srcdir$ac_dir_suffix;
19656 ac_top_srcdir=$srcdir
19657 ac_abs_top_srcdir=$srcdir ;;
19658 *) # Relative name.
19659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19660 ac_top_srcdir=$ac_top_build_prefix$srcdir
19661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19662 esac
19663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19664
19665
19666 case $ac_mode in
19667 :F)
19668 #
19669 # CONFIG_FILE
19670 #
19671
19672 case $INSTALL in
19673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19675 esac
19676 ac_MKDIR_P=$MKDIR_P
19677 case $MKDIR_P in
19678 [\\/$]* | ?:[\\/]* ) ;;
19679 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19680 esac
19681 _ACEOF
19682
19683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19684 # If the template does not know about datarootdir, expand it.
19685 # FIXME: This hack should be removed a few years after 2.60.
19686 ac_datarootdir_hack=; ac_datarootdir_seen=
19687 ac_sed_dataroot='
19688 /datarootdir/ {
19689 p
19690 q
19691 }
19692 /@datadir@/p
19693 /@docdir@/p
19694 /@infodir@/p
19695 /@localedir@/p
19696 /@mandir@/p'
19697 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19698 *datarootdir*) ac_datarootdir_seen=yes;;
19699 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19701 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19702 _ACEOF
19703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19704 ac_datarootdir_hack='
19705 s&@datadir@&$datadir&g
19706 s&@docdir@&$docdir&g
19707 s&@infodir@&$infodir&g
19708 s&@localedir@&$localedir&g
19709 s&@mandir@&$mandir&g
19710 s&\\\${datarootdir}&$datarootdir&g' ;;
19711 esac
19712 _ACEOF
19713
19714 # Neutralize VPATH when `$srcdir' = `.'.
19715 # Shell code in configure.ac might set extrasub.
19716 # FIXME: do we really want to maintain this feature?
19717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19718 ac_sed_extra="$ac_vpsub
19719 $extrasub
19720 _ACEOF
19721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19722 :t
19723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19724 s|@configure_input@|$ac_sed_conf_input|;t t
19725 s&@top_builddir@&$ac_top_builddir_sub&;t t
19726 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19727 s&@srcdir@&$ac_srcdir&;t t
19728 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19729 s&@top_srcdir@&$ac_top_srcdir&;t t
19730 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19731 s&@builddir@&$ac_builddir&;t t
19732 s&@abs_builddir@&$ac_abs_builddir&;t t
19733 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19734 s&@INSTALL@&$ac_INSTALL&;t t
19735 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19736 $ac_datarootdir_hack
19737 "
19738 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19739 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19740
19741 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19742 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19743 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19744 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19746 which seems to be undefined. Please make sure it is defined" >&5
19747 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19748 which seems to be undefined. Please make sure it is defined" >&2;}
19749
19750 rm -f "$ac_tmp/stdin"
19751 case $ac_file in
19752 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19753 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19754 esac \
19755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19756 ;;
19757 :H)
19758 #
19759 # CONFIG_HEADER
19760 #
19761 if test x"$ac_file" != x-; then
19762 {
19763 $as_echo "/* $configure_input */" \
19764 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19765 } >"$ac_tmp/config.h" \
19766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19767 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19769 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19770 else
19771 rm -f "$ac_file"
19772 mv "$ac_tmp/config.h" "$ac_file" \
19773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19774 fi
19775 else
19776 $as_echo "/* $configure_input */" \
19777 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19778 || as_fn_error $? "could not create -" "$LINENO" 5
19779 fi
19780 # Compute "$ac_file"'s index in $config_headers.
19781 _am_arg="$ac_file"
19782 _am_stamp_count=1
19783 for _am_header in $config_headers :; do
19784 case $_am_header in
19785 $_am_arg | $_am_arg:* )
19786 break ;;
19787 * )
19788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19789 esac
19790 done
19791 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19792 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19793 X"$_am_arg" : 'X\(//\)[^/]' \| \
19794 X"$_am_arg" : 'X\(//\)$' \| \
19795 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19796 $as_echo X"$_am_arg" |
19797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19798 s//\1/
19799 q
19800 }
19801 /^X\(\/\/\)[^/].*/{
19802 s//\1/
19803 q
19804 }
19805 /^X\(\/\/\)$/{
19806 s//\1/
19807 q
19808 }
19809 /^X\(\/\).*/{
19810 s//\1/
19811 q
19812 }
19813 s/.*/./; q'`/stamp-h$_am_stamp_count
19814 ;;
19815
19816 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19817 $as_echo "$as_me: executing $ac_file commands" >&6;}
19818 ;;
19819 esac
19820
19821
19822 case $ac_file$ac_mode in
19823 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19824 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19825 # are listed without --file. Let's play safe and only enable the eval
19826 # if we detect the quoting.
19827 case $CONFIG_FILES in
19828 *\'*) eval set x "$CONFIG_FILES" ;;
19829 *) set x $CONFIG_FILES ;;
19830 esac
19831 shift
19832 for mf
19833 do
19834 # Strip MF so we end up with the name of the file.
19835 mf=`echo "$mf" | sed -e 's/:.*$//'`
19836 # Check whether this is an Automake generated Makefile or not.
19837 # We used to match only the files named `Makefile.in', but
19838 # some people rename them; so instead we look at the file content.
19839 # Grep'ing the first line is not enough: some people post-process
19840 # each Makefile.in and add a new line on top of each file to say so.
19841 # Grep'ing the whole file is not good either: AIX grep has a line
19842 # limit of 2048, but all sed's we know have understand at least 4000.
19843 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19844 dirpart=`$as_dirname -- "$mf" ||
19845 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19846 X"$mf" : 'X\(//\)[^/]' \| \
19847 X"$mf" : 'X\(//\)$' \| \
19848 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19849 $as_echo X"$mf" |
19850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19851 s//\1/
19852 q
19853 }
19854 /^X\(\/\/\)[^/].*/{
19855 s//\1/
19856 q
19857 }
19858 /^X\(\/\/\)$/{
19859 s//\1/
19860 q
19861 }
19862 /^X\(\/\).*/{
19863 s//\1/
19864 q
19865 }
19866 s/.*/./; q'`
19867 else
19868 continue
19869 fi
19870 # Extract the definition of DEPDIR, am__include, and am__quote
19871 # from the Makefile without running `make'.
19872 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19873 test -z "$DEPDIR" && continue
19874 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19875 test -z "am__include" && continue
19876 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19877 # When using ansi2knr, U may be empty or an underscore; expand it
19878 U=`sed -n 's/^U = //p' < "$mf"`
19879 # Find all dependency output files, they are included files with
19880 # $(DEPDIR) in their names. We invoke sed twice because it is the
19881 # simplest approach to changing $(DEPDIR) to its actual value in the
19882 # expansion.
19883 for file in `sed -n "
19884 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19885 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19886 # Make sure the directory exists.
19887 test -f "$dirpart/$file" && continue
19888 fdir=`$as_dirname -- "$file" ||
19889 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19890 X"$file" : 'X\(//\)[^/]' \| \
19891 X"$file" : 'X\(//\)$' \| \
19892 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19893 $as_echo X"$file" |
19894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19895 s//\1/
19896 q
19897 }
19898 /^X\(\/\/\)[^/].*/{
19899 s//\1/
19900 q
19901 }
19902 /^X\(\/\/\)$/{
19903 s//\1/
19904 q
19905 }
19906 /^X\(\/\).*/{
19907 s//\1/
19908 q
19909 }
19910 s/.*/./; q'`
19911 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19912 # echo "creating $dirpart/$file"
19913 echo '# dummy' > "$dirpart/$file"
19914 done
19915 done
19916 }
19917 ;;
19918 "libtool":C)
19919
19920 # See if we are running on zsh, and set the options which allow our
19921 # commands through without removal of \ escapes.
19922 if test -n "${ZSH_VERSION+set}" ; then
19923 setopt NO_GLOB_SUBST
19924 fi
19925
19926 cfgfile="${ofile}T"
19927 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19928 $RM "$cfgfile"
19929
19930 cat <<_LT_EOF >> "$cfgfile"
19931 #! $SHELL
19932
19933 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19934 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19935 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19936 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19937 #
19938 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19939 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19940 # Foundation, Inc.
19941 # Written by Gordon Matzigkeit, 1996
19942 #
19943 # This file is part of GNU Libtool.
19944 #
19945 # GNU Libtool is free software; you can redistribute it and/or
19946 # modify it under the terms of the GNU General Public License as
19947 # published by the Free Software Foundation; either version 2 of
19948 # the License, or (at your option) any later version.
19949 #
19950 # As a special exception to the GNU General Public License,
19951 # if you distribute this file as part of a program or library that
19952 # is built using GNU Libtool, you may include this file under the
19953 # same distribution terms that you use for the rest of that program.
19954 #
19955 # GNU Libtool is distributed in the hope that it will be useful,
19956 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19957 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19958 # GNU General Public License for more details.
19959 #
19960 # You should have received a copy of the GNU General Public License
19961 # along with GNU Libtool; see the file COPYING. If not, a copy
19962 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19963 # obtained by writing to the Free Software Foundation, Inc.,
19964 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19965
19966
19967 # The names of the tagged configurations supported by this script.
19968 available_tags=""
19969
19970 # ### BEGIN LIBTOOL CONFIG
19971
19972 # Whether or not to build static libraries.
19973 build_old_libs=$enable_static
19974
19975 # Which release of libtool.m4 was used?
19976 macro_version=$macro_version
19977 macro_revision=$macro_revision
19978
19979 # Whether or not to build shared libraries.
19980 build_libtool_libs=$enable_shared
19981
19982 # What type of objects to build.
19983 pic_mode=$pic_mode
19984
19985 # Whether or not to optimize for fast installation.
19986 fast_install=$enable_fast_install
19987
19988 # Shell to use when invoking shell scripts.
19989 SHELL=$lt_SHELL
19990
19991 # An echo program that protects backslashes.
19992 ECHO=$lt_ECHO
19993
19994 # The PATH separator for the build system.
19995 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19996
19997 # The host system.
19998 host_alias=$host_alias
19999 host=$host
20000 host_os=$host_os
20001
20002 # The build system.
20003 build_alias=$build_alias
20004 build=$build
20005 build_os=$build_os
20006
20007 # A sed program that does not truncate output.
20008 SED=$lt_SED
20009
20010 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20011 Xsed="\$SED -e 1s/^X//"
20012
20013 # A grep program that handles long lines.
20014 GREP=$lt_GREP
20015
20016 # An ERE matcher.
20017 EGREP=$lt_EGREP
20018
20019 # A literal string matcher.
20020 FGREP=$lt_FGREP
20021
20022 # A BSD- or MS-compatible name lister.
20023 NM=$lt_NM
20024
20025 # Whether we need soft or hard links.
20026 LN_S=$lt_LN_S
20027
20028 # What is the maximum length of a command?
20029 max_cmd_len=$max_cmd_len
20030
20031 # Object file suffix (normally "o").
20032 objext=$ac_objext
20033
20034 # Executable file suffix (normally "").
20035 exeext=$exeext
20036
20037 # whether the shell understands "unset".
20038 lt_unset=$lt_unset
20039
20040 # turn spaces into newlines.
20041 SP2NL=$lt_lt_SP2NL
20042
20043 # turn newlines into spaces.
20044 NL2SP=$lt_lt_NL2SP
20045
20046 # convert \$build file names to \$host format.
20047 to_host_file_cmd=$lt_cv_to_host_file_cmd
20048
20049 # convert \$build files to toolchain format.
20050 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20051
20052 # An object symbol dumper.
20053 OBJDUMP=$lt_OBJDUMP
20054
20055 # Method to check whether dependent libraries are shared objects.
20056 deplibs_check_method=$lt_deplibs_check_method
20057
20058 # Command to use when deplibs_check_method = "file_magic".
20059 file_magic_cmd=$lt_file_magic_cmd
20060
20061 # How to find potential files when deplibs_check_method = "file_magic".
20062 file_magic_glob=$lt_file_magic_glob
20063
20064 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20065 want_nocaseglob=$lt_want_nocaseglob
20066
20067 # DLL creation program.
20068 DLLTOOL=$lt_DLLTOOL
20069
20070 # Command to associate shared and link libraries.
20071 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20072
20073 # The archiver.
20074 AR=$lt_AR
20075
20076 # Flags to create an archive.
20077 AR_FLAGS=$lt_AR_FLAGS
20078
20079 # How to feed a file listing to the archiver.
20080 archiver_list_spec=$lt_archiver_list_spec
20081
20082 # A symbol stripping program.
20083 STRIP=$lt_STRIP
20084
20085 # Commands used to install an old-style archive.
20086 RANLIB=$lt_RANLIB
20087 old_postinstall_cmds=$lt_old_postinstall_cmds
20088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20089
20090 # Whether to use a lock for old archive extraction.
20091 lock_old_archive_extraction=$lock_old_archive_extraction
20092
20093 # A C compiler.
20094 LTCC=$lt_CC
20095
20096 # LTCC compiler flags.
20097 LTCFLAGS=$lt_CFLAGS
20098
20099 # Take the output of nm and produce a listing of raw symbols and C names.
20100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20101
20102 # Transform the output of nm in a proper C declaration.
20103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20104
20105 # Transform the output of nm in a C name address pair.
20106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20107
20108 # Transform the output of nm in a C name address pair when lib prefix is needed.
20109 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20110
20111 # Specify filename containing input files for \$NM.
20112 nm_file_list_spec=$lt_nm_file_list_spec
20113
20114 # The root where to search for dependent libraries,and in which our libraries should be installed.
20115 lt_sysroot=$lt_sysroot
20116
20117 # The name of the directory that contains temporary libtool files.
20118 objdir=$objdir
20119
20120 # Used to examine libraries when file_magic_cmd begins with "file".
20121 MAGIC_CMD=$MAGIC_CMD
20122
20123 # Must we lock files when doing compilation?
20124 need_locks=$lt_need_locks
20125
20126 # Manifest tool.
20127 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20128
20129 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20130 DSYMUTIL=$lt_DSYMUTIL
20131
20132 # Tool to change global to local symbols on Mac OS X.
20133 NMEDIT=$lt_NMEDIT
20134
20135 # Tool to manipulate fat objects and archives on Mac OS X.
20136 LIPO=$lt_LIPO
20137
20138 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20139 OTOOL=$lt_OTOOL
20140
20141 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20142 OTOOL64=$lt_OTOOL64
20143
20144 # Old archive suffix (normally "a").
20145 libext=$libext
20146
20147 # Shared library suffix (normally ".so").
20148 shrext_cmds=$lt_shrext_cmds
20149
20150 # The commands to extract the exported symbol list from a shared archive.
20151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20152
20153 # Variables whose values should be saved in libtool wrapper scripts and
20154 # restored at link time.
20155 variables_saved_for_relink=$lt_variables_saved_for_relink
20156
20157 # Do we need the "lib" prefix for modules?
20158 need_lib_prefix=$need_lib_prefix
20159
20160 # Do we need a version for libraries?
20161 need_version=$need_version
20162
20163 # Library versioning type.
20164 version_type=$version_type
20165
20166 # Shared library runtime path variable.
20167 runpath_var=$runpath_var
20168
20169 # Shared library path variable.
20170 shlibpath_var=$shlibpath_var
20171
20172 # Is shlibpath searched before the hard-coded library search path?
20173 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20174
20175 # Format of library name prefix.
20176 libname_spec=$lt_libname_spec
20177
20178 # List of archive names. First name is the real one, the rest are links.
20179 # The last name is the one that the linker finds with -lNAME
20180 library_names_spec=$lt_library_names_spec
20181
20182 # The coded name of the library, if different from the real name.
20183 soname_spec=$lt_soname_spec
20184
20185 # Permission mode override for installation of shared libraries.
20186 install_override_mode=$lt_install_override_mode
20187
20188 # Command to use after installation of a shared archive.
20189 postinstall_cmds=$lt_postinstall_cmds
20190
20191 # Command to use after uninstallation of a shared archive.
20192 postuninstall_cmds=$lt_postuninstall_cmds
20193
20194 # Commands used to finish a libtool library installation in a directory.
20195 finish_cmds=$lt_finish_cmds
20196
20197 # As "finish_cmds", except a single script fragment to be evaled but
20198 # not shown.
20199 finish_eval=$lt_finish_eval
20200
20201 # Whether we should hardcode library paths into libraries.
20202 hardcode_into_libs=$hardcode_into_libs
20203
20204 # Compile-time system search path for libraries.
20205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20206
20207 # Run-time system search path for libraries.
20208 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20209
20210 # Whether dlopen is supported.
20211 dlopen_support=$enable_dlopen
20212
20213 # Whether dlopen of programs is supported.
20214 dlopen_self=$enable_dlopen_self
20215
20216 # Whether dlopen of statically linked programs is supported.
20217 dlopen_self_static=$enable_dlopen_self_static
20218
20219 # Commands to strip libraries.
20220 old_striplib=$lt_old_striplib
20221 striplib=$lt_striplib
20222
20223
20224 # The linker used to build libraries.
20225 LD=$lt_LD
20226
20227 # How to create reloadable object files.
20228 reload_flag=$lt_reload_flag
20229 reload_cmds=$lt_reload_cmds
20230
20231 # Commands used to build an old-style archive.
20232 old_archive_cmds=$lt_old_archive_cmds
20233
20234 # A language specific compiler.
20235 CC=$lt_compiler
20236
20237 # Is the compiler the GNU compiler?
20238 with_gcc=$GCC
20239
20240 # Compiler flag to turn off builtin functions.
20241 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20242
20243 # Additional compiler flags for building library objects.
20244 pic_flag=$lt_lt_prog_compiler_pic
20245
20246 # How to pass a linker flag through the compiler.
20247 wl=$lt_lt_prog_compiler_wl
20248
20249 # Compiler flag to prevent dynamic linking.
20250 link_static_flag=$lt_lt_prog_compiler_static
20251
20252 # Does compiler simultaneously support -c and -o options?
20253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20254
20255 # Whether or not to add -lc for building shared libraries.
20256 build_libtool_need_lc=$archive_cmds_need_lc
20257
20258 # Whether or not to disallow shared libs when runtime libs are static.
20259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20260
20261 # Compiler flag to allow reflexive dlopens.
20262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20263
20264 # Compiler flag to generate shared objects directly from archives.
20265 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20266
20267 # Whether the compiler copes with passing no objects directly.
20268 compiler_needs_object=$lt_compiler_needs_object
20269
20270 # Create an old-style archive from a shared archive.
20271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20272
20273 # Create a temporary old-style archive to link instead of a shared archive.
20274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20275
20276 # Commands used to build a shared archive.
20277 archive_cmds=$lt_archive_cmds
20278 archive_expsym_cmds=$lt_archive_expsym_cmds
20279
20280 # Commands used to build a loadable module if different from building
20281 # a shared archive.
20282 module_cmds=$lt_module_cmds
20283 module_expsym_cmds=$lt_module_expsym_cmds
20284
20285 # Whether we are building with GNU ld or not.
20286 with_gnu_ld=$lt_with_gnu_ld
20287
20288 # Flag that allows shared libraries with undefined symbols to be built.
20289 allow_undefined_flag=$lt_allow_undefined_flag
20290
20291 # Flag that enforces no undefined symbols.
20292 no_undefined_flag=$lt_no_undefined_flag
20293
20294 # Flag to hardcode \$libdir into a binary during linking.
20295 # This must work even if \$libdir does not exist
20296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20297
20298 # Whether we need a single "-rpath" flag with a separated argument.
20299 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20300
20301 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20302 # DIR into the resulting binary.
20303 hardcode_direct=$hardcode_direct
20304
20305 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20306 # DIR into the resulting binary and the resulting library dependency is
20307 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20308 # library is relocated.
20309 hardcode_direct_absolute=$hardcode_direct_absolute
20310
20311 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20312 # into the resulting binary.
20313 hardcode_minus_L=$hardcode_minus_L
20314
20315 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20316 # into the resulting binary.
20317 hardcode_shlibpath_var=$hardcode_shlibpath_var
20318
20319 # Set to "yes" if building a shared library automatically hardcodes DIR
20320 # into the library and all subsequent libraries and executables linked
20321 # against it.
20322 hardcode_automatic=$hardcode_automatic
20323
20324 # Set to yes if linker adds runtime paths of dependent libraries
20325 # to runtime path list.
20326 inherit_rpath=$inherit_rpath
20327
20328 # Whether libtool must link a program against all its dependency libraries.
20329 link_all_deplibs=$link_all_deplibs
20330
20331 # Set to "yes" if exported symbols are required.
20332 always_export_symbols=$always_export_symbols
20333
20334 # The commands to list exported symbols.
20335 export_symbols_cmds=$lt_export_symbols_cmds
20336
20337 # Symbols that should not be listed in the preloaded symbols.
20338 exclude_expsyms=$lt_exclude_expsyms
20339
20340 # Symbols that must always be exported.
20341 include_expsyms=$lt_include_expsyms
20342
20343 # Commands necessary for linking programs (against libraries) with templates.
20344 prelink_cmds=$lt_prelink_cmds
20345
20346 # Commands necessary for finishing linking programs.
20347 postlink_cmds=$lt_postlink_cmds
20348
20349 # Specify filename containing input files.
20350 file_list_spec=$lt_file_list_spec
20351
20352 # How to hardcode a shared library path into an executable.
20353 hardcode_action=$hardcode_action
20354
20355 # ### END LIBTOOL CONFIG
20356
20357 _LT_EOF
20358
20359 case $host_os in
20360 aix3*)
20361 cat <<\_LT_EOF >> "$cfgfile"
20362 # AIX sometimes has problems with the GCC collect2 program. For some
20363 # reason, if we set the COLLECT_NAMES environment variable, the problems
20364 # vanish in a puff of smoke.
20365 if test "X${COLLECT_NAMES+set}" != Xset; then
20366 COLLECT_NAMES=
20367 export COLLECT_NAMES
20368 fi
20369 _LT_EOF
20370 ;;
20371 esac
20372
20373
20374 ltmain="$ac_aux_dir/ltmain.sh"
20375
20376
20377 # We use sed instead of cat because bash on DJGPP gets confused if
20378 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20379 # text mode, it properly converts lines to CR/LF. This bash problem
20380 # is reportedly fixed, but why not run on old versions too?
20381 sed '$q' "$ltmain" >> "$cfgfile" \
20382 || (rm -f "$cfgfile"; exit 1)
20383
20384 if test x"$xsi_shell" = xyes; then
20385 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20386 func_dirname ()\
20387 {\
20388 \ case ${1} in\
20389 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20390 \ * ) func_dirname_result="${3}" ;;\
20391 \ esac\
20392 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20393 && mv -f "$cfgfile.tmp" "$cfgfile" \
20394 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20395 test 0 -eq $? || _lt_function_replace_fail=:
20396
20397
20398 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20399 func_basename ()\
20400 {\
20401 \ func_basename_result="${1##*/}"\
20402 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20403 && mv -f "$cfgfile.tmp" "$cfgfile" \
20404 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20405 test 0 -eq $? || _lt_function_replace_fail=:
20406
20407
20408 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20409 func_dirname_and_basename ()\
20410 {\
20411 \ case ${1} in\
20412 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20413 \ * ) func_dirname_result="${3}" ;;\
20414 \ esac\
20415 \ func_basename_result="${1##*/}"\
20416 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20417 && mv -f "$cfgfile.tmp" "$cfgfile" \
20418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20419 test 0 -eq $? || _lt_function_replace_fail=:
20420
20421
20422 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20423 func_stripname ()\
20424 {\
20425 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20426 \ # positional parameters, so assign one to ordinary parameter first.\
20427 \ func_stripname_result=${3}\
20428 \ func_stripname_result=${func_stripname_result#"${1}"}\
20429 \ func_stripname_result=${func_stripname_result%"${2}"}\
20430 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20431 && mv -f "$cfgfile.tmp" "$cfgfile" \
20432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20433 test 0 -eq $? || _lt_function_replace_fail=:
20434
20435
20436 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20437 func_split_long_opt ()\
20438 {\
20439 \ func_split_long_opt_name=${1%%=*}\
20440 \ func_split_long_opt_arg=${1#*=}\
20441 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20442 && mv -f "$cfgfile.tmp" "$cfgfile" \
20443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20444 test 0 -eq $? || _lt_function_replace_fail=:
20445
20446
20447 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20448 func_split_short_opt ()\
20449 {\
20450 \ func_split_short_opt_arg=${1#??}\
20451 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20452 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20453 && mv -f "$cfgfile.tmp" "$cfgfile" \
20454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20455 test 0 -eq $? || _lt_function_replace_fail=:
20456
20457
20458 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20459 func_lo2o ()\
20460 {\
20461 \ case ${1} in\
20462 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20463 \ *) func_lo2o_result=${1} ;;\
20464 \ esac\
20465 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20466 && mv -f "$cfgfile.tmp" "$cfgfile" \
20467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20468 test 0 -eq $? || _lt_function_replace_fail=:
20469
20470
20471 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20472 func_xform ()\
20473 {\
20474 func_xform_result=${1%.*}.lo\
20475 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20476 && mv -f "$cfgfile.tmp" "$cfgfile" \
20477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20478 test 0 -eq $? || _lt_function_replace_fail=:
20479
20480
20481 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20482 func_arith ()\
20483 {\
20484 func_arith_result=$(( $* ))\
20485 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20486 && mv -f "$cfgfile.tmp" "$cfgfile" \
20487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20488 test 0 -eq $? || _lt_function_replace_fail=:
20489
20490
20491 sed -e '/^func_len ()$/,/^} # func_len /c\
20492 func_len ()\
20493 {\
20494 func_len_result=${#1}\
20495 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20496 && mv -f "$cfgfile.tmp" "$cfgfile" \
20497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20498 test 0 -eq $? || _lt_function_replace_fail=:
20499
20500 fi
20501
20502 if test x"$lt_shell_append" = xyes; then
20503 sed -e '/^func_append ()$/,/^} # func_append /c\
20504 func_append ()\
20505 {\
20506 eval "${1}+=\\${2}"\
20507 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20508 && mv -f "$cfgfile.tmp" "$cfgfile" \
20509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20510 test 0 -eq $? || _lt_function_replace_fail=:
20511
20512
20513 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20514 func_append_quoted ()\
20515 {\
20516 \ func_quote_for_eval "${2}"\
20517 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20518 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20519 && mv -f "$cfgfile.tmp" "$cfgfile" \
20520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20521 test 0 -eq $? || _lt_function_replace_fail=:
20522
20523
20524 # Save a `func_append' function call where possible by direct use of '+='
20525 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20526 && mv -f "$cfgfile.tmp" "$cfgfile" \
20527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20528 test 0 -eq $? || _lt_function_replace_fail=:
20529 else
20530 # Save a `func_append' function call even when '+=' is not available
20531 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20532 && mv -f "$cfgfile.tmp" "$cfgfile" \
20533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20534 test 0 -eq $? || _lt_function_replace_fail=:
20535 fi
20536
20537 if test x"$_lt_function_replace_fail" = x":"; then
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20539 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20540 fi
20541
20542
20543 mv -f "$cfgfile" "$ofile" ||
20544 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20545 chmod +x "$ofile"
20546
20547 ;;
20548
20549 esac
20550 done # for ac_tag
20551
20552
20553 as_fn_exit 0
20554 _ACEOF
20555 ac_clean_files=$ac_clean_files_save
20556
20557 test $ac_write_fail = 0 ||
20558 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20559
20560
20561 # configure is writing to config.log, and then calls config.status.
20562 # config.status does its own redirection, appending to config.log.
20563 # Unfortunately, on DOS this fails, as config.log is still kept open
20564 # by configure, so config.status won't be able to write to it; its
20565 # output is simply discarded. So we exec the FD to /dev/null,
20566 # effectively closing config.log, so it can be properly (re)opened and
20567 # appended to by config.status. When coming back to configure, we
20568 # need to make the FD available again.
20569 if test "$no_create" != yes; then
20570 ac_cs_success=:
20571 ac_config_status_args=
20572 test "$silent" = yes &&
20573 ac_config_status_args="$ac_config_status_args --quiet"
20574 exec 5>/dev/null
20575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20576 exec 5>>config.log
20577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20578 # would make configure fail if this is the last instruction.
20579 $ac_cs_success || as_fn_exit 1
20580 fi
20581 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20583 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20584 fi
20585
20586