configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-ark 0.7.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark>.
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&component=Driver/ark
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-ark'
573 PACKAGE_TARNAME='xf86-video-ark'
574 PACKAGE_VERSION='0.7.5'
575 PACKAGE_STRING='xf86-video-ark 0.7.5'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark'
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 XAA_FALSE
622 XAA_TRUE
623 XSERVER_LIBPCIACCESS_FALSE
624 XSERVER_LIBPCIACCESS_TRUE
625 PCIACCESS_LIBS
626 PCIACCESS_CFLAGS
627 XORG_LIBS
628 XORG_CFLAGS
629 moduledir
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-ark 0.7.5 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 [DATAROOTDIR/doc/xf86-video-ark]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of xf86-video-ark 0.7.5:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-maintainer-mode enable make rules and dependencies not useful
1422 (and sometimes confusing) to the casual installer
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --disable-selective-werror
1426 Turn off selective compiler errors. (default:
1427 enabled)
1428 --enable-strict-compilation
1429 Enable all warnings from compiler and make them
1430 errors (default: disabled)
1431 --enable-silent-rules less verbose build output (undo: `make V=1')
1432 --disable-silent-rules verbose build output (undo: `make V=0')
1433 --enable-static[=PKGS] build static libraries [default=no]
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1439 [default=auto]
1440
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1445 both]
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-sysroot=DIR Search for dependent libraries within DIR
1448 (or the compiler's sysroot if not specified).
1449 --with-xorg-module-dir=DIR
1450
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CPP C preprocessor
1460 PKG_CONFIG path to pkg-config utility
1461 PKG_CONFIG_PATH
1462 directories to add to pkg-config's search path
1463 PKG_CONFIG_LIBDIR
1464 path overriding pkg-config's built-in search path
1465 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1466 XORG_LIBS linker flags for XORG, overriding pkg-config
1467 PCIACCESS_CFLAGS
1468 C compiler flags for PCIACCESS, overriding pkg-config
1469 PCIACCESS_LIBS
1470 linker flags for PCIACCESS, overriding pkg-config
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 xf86-video-ark configure 0.7.5
1539 generated by GNU Autoconf 2.68
1540
1541 Copyright (C) 2010 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1591 # ---------------------------------------------
1592 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1593 # accordingly.
1594 ac_fn_c_check_decl ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 as_decl_name=`echo $2|sed 's/ *(.*//'`
1598 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1601 if eval \${$3+:} false; then :
1602 $as_echo_n "(cached) " >&6
1603 else
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1606 $4
1607 int
1608 main ()
1609 {
1610 #ifndef $as_decl_name
1611 #ifdef __cplusplus
1612 (void) $as_decl_use;
1613 #else
1614 (void) $as_decl_name;
1615 #endif
1616 #endif
1617
1618 ;
1619 return 0;
1620 }
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_decl
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_cpp
1672
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708 fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_run
1714
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 $4
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 fi
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744 } # ac_fn_c_check_header_compile
1745
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_link ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest$ac_exeext
1753 if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest$ac_exeext && {
1772 test "$cross_compiling" = yes ||
1773 $as_test_x conftest$ac_exeext
1774 }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781 fi
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_link
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1802 else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1813
1814 #ifdef __STDC__
1815 # include <limits.h>
1816 #else
1817 # include <assert.h>
1818 #endif
1819
1820 #undef $2
1821
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1835
1836 int
1837 main ()
1838 {
1839 return $2 ();
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846 else
1847 eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857 } # ac_fn_c_check_func
1858
1859 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1860 # -------------------------------------------------------
1861 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1862 # the include files in INCLUDES and setting the cache variable VAR
1863 # accordingly.
1864 ac_fn_c_check_header_mongrel ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if eval \${$3+:} false; then :
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 else
1877 # Is the header compilable?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1879 $as_echo_n "checking $2 usability... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_header_compiler=yes
1887 else
1888 ac_header_compiler=no
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1892 $as_echo "$ac_header_compiler" >&6; }
1893
1894 # Is the header present?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1896 $as_echo_n "checking $2 presence... " >&6; }
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_cpp "$LINENO"; then :
1902 ac_header_preproc=yes
1903 else
1904 ac_header_preproc=no
1905 fi
1906 rm -f conftest.err conftest.i conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1908 $as_echo "$ac_header_preproc" >&6; }
1909
1910 # So? What about this header?
1911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912 yes:no: )
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1914 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ;;
1918 no:yes:* )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1920 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1922 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1924 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1926 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 ( $as_echo "## ------------------------------------------------------------------------------------------- ##
1930 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark ##
1931 ## ------------------------------------------------------------------------------------------- ##"
1932 ) | sed "s/^/$as_me: WARNING: /" >&2
1933 ;;
1934 esac
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 eval "$3=\$ac_header_compiler"
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 fi
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_header_mongrel
1949 cat >config.log <<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1952
1953 It was created by xf86-video-ark $as_me 0.7.5, which was
1954 generated by GNU Autoconf 2.68. Invocation command line was
1955
1956 $ $0 $@
1957
1958 _ACEOF
1959 exec 5>>config.log
1960 {
1961 cat <<_ASUNAME
1962 ## --------- ##
1963 ## Platform. ##
1964 ## --------- ##
1965
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974
1975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982
1983 _ASUNAME
1984
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 $as_echo "PATH: $as_dir"
1991 done
1992 IFS=$as_save_IFS
1993
1994 } >&5
1995
1996 cat >&5 <<_ACEOF
1997
1998
1999 ## ----------- ##
2000 ## Core tests. ##
2001 ## ----------- ##
2002
2003 _ACEOF
2004
2005
2006 # Keep a trace of the command line.
2007 # Strip out --no-create and --no-recursion so they do not pile up.
2008 # Strip out --silent because we don't want to record it for future runs.
2009 # Also quote any args containing shell meta-characters.
2010 # Make two passes to allow for proper duplicate-argument suppression.
2011 ac_configure_args=
2012 ac_configure_args0=
2013 ac_configure_args1=
2014 ac_must_keep_next=false
2015 for ac_pass in 1 2
2016 do
2017 for ac_arg
2018 do
2019 case $ac_arg in
2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022 | -silent | --silent | --silen | --sile | --sil)
2023 continue ;;
2024 *\'*)
2025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 esac
2027 case $ac_pass in
2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029 2)
2030 as_fn_append ac_configure_args1 " '$ac_arg'"
2031 if test $ac_must_keep_next = true; then
2032 ac_must_keep_next=false # Got value, back to normal.
2033 else
2034 case $ac_arg in
2035 *=* | --config-cache | -C | -disable-* | --disable-* \
2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038 | -with-* | --with-* | -without-* | --without-* | --x)
2039 case "$ac_configure_args0 " in
2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041 esac
2042 ;;
2043 -* ) ac_must_keep_next=true ;;
2044 esac
2045 fi
2046 as_fn_append ac_configure_args " '$ac_arg'"
2047 ;;
2048 esac
2049 done
2050 done
2051 { ac_configure_args0=; unset ac_configure_args0;}
2052 { ac_configure_args1=; unset ac_configure_args1;}
2053
2054 # When interrupted or exit'd, cleanup temporary files, and complete
2055 # config.log. We remove comments because anyway the quotes in there
2056 # would cause problems or look ugly.
2057 # WARNING: Use '\'' to represent an apostrophe within the trap.
2058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059 trap 'exit_status=$?
2060 # Save into config.log some information that might help in debugging.
2061 {
2062 echo
2063
2064 $as_echo "## ---------------- ##
2065 ## Cache variables. ##
2066 ## ---------------- ##"
2067 echo
2068 # The following way of writing the cache mishandles newlines in values,
2069 (
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in #(
2073 *${as_nl}*)
2074 case $ac_var in #(
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077 esac
2078 case $ac_var in #(
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2082 esac ;;
2083 esac
2084 done
2085 (set) 2>&1 |
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
2088 sed -n \
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091 ;; #(
2092 *)
2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094 ;;
2095 esac |
2096 sort
2097 )
2098 echo
2099
2100 $as_echo "## ----------------- ##
2101 ## Output variables. ##
2102 ## ----------------- ##"
2103 echo
2104 for ac_var in $ac_subst_vars
2105 do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
2111 done | sort
2112 echo
2113
2114 if test -n "$ac_subst_files"; then
2115 $as_echo "## ------------------- ##
2116 ## File substitutions. ##
2117 ## ------------------- ##"
2118 echo
2119 for ac_var in $ac_subst_files
2120 do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
2126 done | sort
2127 echo
2128 fi
2129
2130 if test -s confdefs.h; then
2131 $as_echo "## ----------- ##
2132 ## confdefs.h. ##
2133 ## ----------- ##"
2134 echo
2135 cat confdefs.h
2136 echo
2137 fi
2138 test "$ac_signal" != 0 &&
2139 $as_echo "$as_me: caught signal $ac_signal"
2140 $as_echo "$as_me: exit $exit_status"
2141 } >&5
2142 rm -f core *.core core.conftest.* &&
2143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2144 exit $exit_status
2145 ' 0
2146 for ac_signal in 1 2 13 15; do
2147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2148 done
2149 ac_signal=0
2150
2151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2152 rm -f -r conftest* confdefs.h
2153
2154 $as_echo "/* confdefs.h */" > confdefs.h
2155
2156 # Predefined preprocessor variables.
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_NAME "$PACKAGE_NAME"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_STRING "$PACKAGE_STRING"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_URL "$PACKAGE_URL"
2180 _ACEOF
2181
2182
2183 # Let the site file select an alternate cache file if it wants to.
2184 # Prefer an explicitly selected file to automatically selected ones.
2185 ac_site_file1=NONE
2186 ac_site_file2=NONE
2187 if test -n "$CONFIG_SITE"; then
2188 # We do not want a PATH search for config.site.
2189 case $CONFIG_SITE in #((
2190 -*) ac_site_file1=./$CONFIG_SITE;;
2191 */*) ac_site_file1=$CONFIG_SITE;;
2192 *) ac_site_file1=./$CONFIG_SITE;;
2193 esac
2194 elif test "x$prefix" != xNONE; then
2195 ac_site_file1=$prefix/share/config.site
2196 ac_site_file2=$prefix/etc/config.site
2197 else
2198 ac_site_file1=$ac_default_prefix/share/config.site
2199 ac_site_file2=$ac_default_prefix/etc/config.site
2200 fi
2201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202 do
2203 test "x$ac_site_file" = xNONE && continue
2204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207 sed 's/^/| /' "$ac_site_file" >&5
2208 . "$ac_site_file" \
2209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error $? "failed to load site script $ac_site_file
2212 See \`config.log' for more details" "$LINENO" 5; }
2213 fi
2214 done
2215
2216 if test -r "$cache_file"; then
2217 # Some versions of bash will fail to source /dev/null (special files
2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221 $as_echo "$as_me: loading cache $cache_file" >&6;}
2222 case $cache_file in
2223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224 *) . "./$cache_file";;
2225 esac
2226 fi
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229 $as_echo "$as_me: creating cache $cache_file" >&6;}
2230 >$cache_file
2231 fi
2232
2233 # Check that the precious variables saved in the cache have kept the same
2234 # value.
2235 ac_cache_corrupted=false
2236 for ac_var in $ac_precious_vars; do
2237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238 eval ac_new_set=\$ac_env_${ac_var}_set
2239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240 eval ac_new_val=\$ac_env_${ac_var}_value
2241 case $ac_old_set,$ac_new_set in
2242 set,)
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2246 ,set)
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2250 ,);;
2251 *)
2252 if test "x$ac_old_val" != "x$ac_new_val"; then
2253 # differences in whitespace do not lead to failure.
2254 ac_old_val_w=`echo x $ac_old_val`
2255 ac_new_val_w=`echo x $ac_new_val`
2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259 ac_cache_corrupted=:
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263 eval $ac_var=\$ac_old_val
2264 fi
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2269 fi;;
2270 esac
2271 # Pass precious variables to config.status.
2272 if test "$ac_new_set" = set; then
2273 case $ac_new_val in
2274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 *) ac_arg=$ac_var=$ac_new_val ;;
2276 esac
2277 case " $ac_configure_args " in
2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280 esac
2281 fi
2282 done
2283 if $ac_cache_corrupted; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2289 fi
2290 ## -------------------- ##
2291 ## Main body of script. ##
2292 ## -------------------- ##
2293
2294 ac_ext=c
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301
2302 ac_config_headers="$ac_config_headers config.h"
2303
2304 ac_aux_dir=
2305 for ac_dir in . "$srcdir"/.; do
2306 if test -f "$ac_dir/install-sh"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/install-sh -c"
2309 break
2310 elif test -f "$ac_dir/install.sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install.sh -c"
2313 break
2314 elif test -f "$ac_dir/shtool"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/shtool install -c"
2317 break
2318 fi
2319 done
2320 if test -z "$ac_aux_dir"; then
2321 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2322 fi
2323
2324 # These three variables are undocumented and unsupported,
2325 # and are intended to be withdrawn in a future Autoconf release.
2326 # They can cause serious problems if a builder's source tree is in a directory
2327 # whose full name contains unusual characters.
2328 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2329 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2330 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331
2332
2333
2334 # Initialize Automake
2335 am__api_version='1.11'
2336
2337 # Find a good install program. We prefer a C program (faster),
2338 # so one script is as good as another. But avoid the broken or
2339 # incompatible versions:
2340 # SysV /etc/install, /usr/sbin/install
2341 # SunOS /usr/etc/install
2342 # IRIX /sbin/install
2343 # AIX /bin/install
2344 # AmigaOS /C/install, which installs bootblocks on floppy discs
2345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348 # OS/2's system install, which has a completely different semantic
2349 # ./install, which can be erroneously created by make from ./install.sh.
2350 # Reject install programs that cannot install multiple files.
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2352 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2353 if test -z "$INSTALL"; then
2354 if ${ac_cv_path_install+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 # Account for people who put trailing slashes in PATH elements.
2363 case $as_dir/ in #((
2364 ./ | .// | /[cC]/* | \
2365 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2367 /usr/ucb/* ) ;;
2368 *)
2369 # OSF1 and SCO ODT 3.0 have their own names for install.
2370 # Don't use installbsd from OSF since it installs stuff as root
2371 # by default.
2372 for ac_prog in ginstall scoinst install; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2375 if test $ac_prog = install &&
2376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # AIX install. It has an incompatible calling convention.
2378 :
2379 elif test $ac_prog = install &&
2380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # program-specific install script used by HP pwplus--don't use.
2382 :
2383 else
2384 rm -rf conftest.one conftest.two conftest.dir
2385 echo one > conftest.one
2386 echo two > conftest.two
2387 mkdir conftest.dir
2388 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389 test -s conftest.one && test -s conftest.two &&
2390 test -s conftest.dir/conftest.one &&
2391 test -s conftest.dir/conftest.two
2392 then
2393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 break 3
2395 fi
2396 fi
2397 fi
2398 done
2399 done
2400 ;;
2401 esac
2402
2403 done
2404 IFS=$as_save_IFS
2405
2406 rm -rf conftest.one conftest.two conftest.dir
2407
2408 fi
2409 if test "${ac_cv_path_install+set}" = set; then
2410 INSTALL=$ac_cv_path_install
2411 else
2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for INSTALL within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 INSTALL=$ac_install_sh
2417 fi
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2420 $as_echo "$INSTALL" >&6; }
2421
2422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423 # It thinks the first close brace ends the variable substitution.
2424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2425
2426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2427
2428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2429
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2431 $as_echo_n "checking whether build environment is sane... " >&6; }
2432 # Just in case
2433 sleep 1
2434 echo timestamp > conftest.file
2435 # Reject unsafe characters in $srcdir or the absolute working directory
2436 # name. Accept space and tab only in the latter.
2437 am_lf='
2438 '
2439 case `pwd` in
2440 *[\\\"\#\$\&\'\`$am_lf]*)
2441 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2442 esac
2443 case $srcdir in
2444 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2445 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2446 esac
2447
2448 # Do `set' in a subshell so we don't clobber the current shell's
2449 # arguments. Must try -L first in case configure is actually a
2450 # symlink; some systems play weird games with the mod time of symlinks
2451 # (eg FreeBSD returns the mod time of the symlink's containing
2452 # directory).
2453 if (
2454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2455 if test "$*" = "X"; then
2456 # -L didn't work.
2457 set X `ls -t "$srcdir/configure" conftest.file`
2458 fi
2459 rm -f conftest.file
2460 if test "$*" != "X $srcdir/configure conftest.file" \
2461 && test "$*" != "X conftest.file $srcdir/configure"; then
2462
2463 # If neither matched, then we have a broken ls. This can happen
2464 # if, for instance, CONFIG_SHELL is bash and it inherits a
2465 # broken ls alias from the environment. This has actually
2466 # happened. Such a system could not be considered "sane".
2467 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2468 alias in your environment" "$LINENO" 5
2469 fi
2470
2471 test "$2" = conftest.file
2472 )
2473 then
2474 # Ok.
2475 :
2476 else
2477 as_fn_error $? "newly created file is older than distributed files!
2478 Check your system clock" "$LINENO" 5
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 test "$program_prefix" != NONE &&
2483 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2484 # Use a double $ so make ignores it.
2485 test "$program_suffix" != NONE &&
2486 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2487 # Double any \ or $.
2488 # By default was `s,x,x', remove it if useless.
2489 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2490 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2491
2492 # expand $ac_aux_dir to an absolute path
2493 am_aux_dir=`cd $ac_aux_dir && pwd`
2494
2495 if test x"${MISSING+set}" != xset; then
2496 case $am_aux_dir in
2497 *\ * | *\ *)
2498 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2499 *)
2500 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2501 esac
2502 fi
2503 # Use eval to expand $SHELL
2504 if eval "$MISSING --run true"; then
2505 am_missing_run="$MISSING --run "
2506 else
2507 am_missing_run=
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2509 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2510 fi
2511
2512 if test x"${install_sh}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2516 *)
2517 install_sh="\${SHELL} $am_aux_dir/install-sh"
2518 esac
2519 fi
2520
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'. However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_STRIP+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2557 $as_echo "$STRIP" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 fi
2565 if test -z "$ac_cv_prog_STRIP"; then
2566 ac_ct_STRIP=$STRIP
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2597 $as_echo "$ac_ct_STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603 if test "x$ac_ct_STRIP" = x; then
2604 STRIP=":"
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612 STRIP=$ac_ct_STRIP
2613 fi
2614 else
2615 STRIP="$ac_cv_prog_STRIP"
2616 fi
2617
2618 fi
2619 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2623 if test -z "$MKDIR_P"; then
2624 if ${ac_cv_path_mkdir+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_prog in mkdir gmkdir; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2636 'mkdir (GNU coreutils) '* | \
2637 'mkdir (coreutils) '* | \
2638 'mkdir (fileutils) '4.1*)
2639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640 break 3;;
2641 esac
2642 done
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648
2649 test -d ./--version && rmdir ./--version
2650 if test "${ac_cv_path_mkdir+set}" = set; then
2651 MKDIR_P="$ac_cv_path_mkdir -p"
2652 else
2653 # As a last resort, use the slow shell script. Don't cache a
2654 # value for MKDIR_P within a source directory, because that will
2655 # break other packages using the cache if that directory is
2656 # removed, or if the value is a relative name.
2657 MKDIR_P="$ac_install_sh -d"
2658 fi
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2661 $as_echo "$MKDIR_P" >&6; }
2662
2663 mkdir_p="$MKDIR_P"
2664 case $mkdir_p in
2665 [\\/$]* | ?:[\\/]*) ;;
2666 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2667 esac
2668
2669 for ac_prog in gawk mawk nawk awk
2670 do
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_AWK+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$AWK"; then
2679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_AWK="$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 AWK=$ac_cv_prog_AWK
2699 if test -n "$AWK"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701 $as_echo "$AWK" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 test -n "$AWK" && break
2709 done
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713 set x ${MAKE-make}
2714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 cat >conftest.make <<\_ACEOF
2719 SHELL = /bin/sh
2720 all:
2721 @echo '@@@%%%=$(MAKE)=@@@%%%'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725 *@@@%%%=?*=@@@%%%*)
2726 eval ac_cv_prog_make_${ac_make}_set=yes;;
2727 *)
2728 eval ac_cv_prog_make_${ac_make}_set=no;;
2729 esac
2730 rm -f conftest.make
2731 fi
2732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734 $as_echo "yes" >&6; }
2735 SET_MAKE=
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 SET_MAKE="MAKE=${MAKE-make}"
2740 fi
2741
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2748 fi
2749 rmdir .tst 2>/dev/null
2750
2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753 # is not polluted with repeated "-I."
2754 am__isrc=' -I$(srcdir)'
2755 # test to see if srcdir already configured
2756 if test -f $srcdir/config.status; then
2757 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2758 fi
2759 fi
2760
2761 # test whether we have cygpath
2762 if test -z "$CYGPATH_W"; then
2763 if (cygpath --version) >/dev/null 2>/dev/null; then
2764 CYGPATH_W='cygpath -w'
2765 else
2766 CYGPATH_W=echo
2767 fi
2768 fi
2769
2770
2771 # Define the identity of the package.
2772 PACKAGE='xf86-video-ark'
2773 VERSION='0.7.5'
2774
2775
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE "$PACKAGE"
2778 _ACEOF
2779
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define VERSION "$VERSION"
2783 _ACEOF
2784
2785 # Some tools Automake needs.
2786
2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2788
2789
2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2791
2792
2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2794
2795
2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2797
2798
2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2800
2801 # We need awk for the "check" target. The system "awk" is bad on
2802 # some platforms.
2803 # Always define AMTAR for backward compatibility. Yes, it's still used
2804 # in the wild :-( We should find a proper way to deprecate it ...
2805 AMTAR='$${TAR-tar}'
2806
2807 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2808
2809
2810
2811
2812
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2815 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2816 # Check whether --enable-maintainer-mode was given.
2817 if test "${enable_maintainer_mode+set}" = set; then :
2818 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2819 else
2820 USE_MAINTAINER_MODE=no
2821 fi
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2824 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2825 if test $USE_MAINTAINER_MODE = yes; then
2826 MAINTAINER_MODE_TRUE=
2827 MAINTAINER_MODE_FALSE='#'
2828 else
2829 MAINTAINER_MODE_TRUE='#'
2830 MAINTAINER_MODE_FALSE=
2831 fi
2832
2833 MAINT=$MAINTAINER_MODE_TRUE
2834
2835
2836
2837 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849 DEPDIR="${am__leading_dot}deps"
2850
2851 ac_config_commands="$ac_config_commands depfiles"
2852
2853
2854 am_make=${MAKE-make}
2855 cat > confinc << 'END'
2856 am__doit:
2857 @echo this is the am__doit target
2858 .PHONY: am__doit
2859 END
2860 # If we don't find an include directive, just comment out the code.
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2862 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2863 am__include="#"
2864 am__quote=
2865 _am_result=none
2866 # First try GNU make style include.
2867 echo "include confinc" > confmf
2868 # Ignore all kinds of additional output from `make'.
2869 case `$am_make -s -f confmf 2> /dev/null` in #(
2870 *the\ am__doit\ target*)
2871 am__include=include
2872 am__quote=
2873 _am_result=GNU
2874 ;;
2875 esac
2876 # Now try BSD make style include.
2877 if test "$am__include" = "#"; then
2878 echo '.include "confinc"' > confmf
2879 case `$am_make -s -f confmf 2> /dev/null` in #(
2880 *the\ am__doit\ target*)
2881 am__include=.include
2882 am__quote="\""
2883 _am_result=BSD
2884 ;;
2885 esac
2886 fi
2887
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2890 $as_echo "$_am_result" >&6; }
2891 rm -f confinc confmf
2892
2893 # Check whether --enable-dependency-tracking was given.
2894 if test "${enable_dependency_tracking+set}" = set; then :
2895 enableval=$enable_dependency_tracking;
2896 fi
2897
2898 if test "x$enable_dependency_tracking" != xno; then
2899 am_depcomp="$ac_aux_dir/depcomp"
2900 AMDEPBACKSLASH='\'
2901 am__nodep='_no'
2902 fi
2903 if test "x$enable_dependency_tracking" != xno; then
2904 AMDEP_TRUE=
2905 AMDEP_FALSE='#'
2906 else
2907 AMDEP_TRUE='#'
2908 AMDEP_FALSE=
2909 fi
2910
2911
2912 ac_ext=c
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 if test -n "$ac_tool_prefix"; then
2918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2919 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 fi
2953
2954
2955 fi
2956 if test -z "$ac_cv_prog_CC"; then
2957 ac_ct_CC=$CC
2958 # Extract the first word of "gcc", so it can be a program name with args.
2959 set dummy gcc; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_ac_ct_CC="gcc"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988 $as_echo "$ac_ct_CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994 if test "x$ac_ct_CC" = x; then
2995 CC=""
2996 else
2997 case $cross_compiling:$ac_tool_warned in
2998 yes:)
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3002 esac
3003 CC=$ac_ct_CC
3004 fi
3005 else
3006 CC="$ac_cv_prog_CC"
3007 fi
3008
3009 if test -z "$CC"; then
3010 if test -n "$ac_tool_prefix"; then
3011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3012 set dummy ${ac_tool_prefix}cc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_CC="${ac_tool_prefix}cc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048 fi
3049 fi
3050 if test -z "$CC"; then
3051 # Extract the first word of "cc", so it can be a program name with args.
3052 set dummy cc; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 ac_prog_rejected=no
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070 ac_prog_rejected=yes
3071 continue
3072 fi
3073 ac_cv_prog_CC="cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077 done
3078 done
3079 IFS=$as_save_IFS
3080
3081 if test $ac_prog_rejected = yes; then
3082 # We found a bogon in the path, so make sure we never use it.
3083 set dummy $ac_cv_prog_CC
3084 shift
3085 if test $# != 0; then
3086 # We chose a different compiler from the bogus one.
3087 # However, it has the same basename, so the bogon will be chosen
3088 # first if we set CC to just the basename; use the full file name.
3089 shift
3090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3091 fi
3092 fi
3093 fi
3094 fi
3095 CC=$ac_cv_prog_CC
3096 if test -n "$CC"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098 $as_echo "$CC" >&6; }
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104
3105 fi
3106 if test -z "$CC"; then
3107 if test -n "$ac_tool_prefix"; then
3108 for ac_prog in cl.exe
3109 do
3110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 test -n "$CC" && break
3148 done
3149 fi
3150 if test -z "$CC"; then
3151 ac_ct_CC=$CC
3152 for ac_prog in cl.exe
3153 do
3154 # Extract the first word of "$ac_prog", so it can be a program name with args.
3155 set dummy $ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$ac_ct_CC"; then
3162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_ac_ct_CC="$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184 $as_echo "$ac_ct_CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 test -n "$ac_ct_CC" && break
3192 done
3193
3194 if test "x$ac_ct_CC" = x; then
3195 CC=""
3196 else
3197 case $cross_compiling:$ac_tool_warned in
3198 yes:)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201 ac_tool_warned=yes ;;
3202 esac
3203 CC=$ac_ct_CC
3204 fi
3205 fi
3206
3207 fi
3208
3209
3210 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 as_fn_error $? "no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details" "$LINENO" 5; }
3214
3215 # Provide some information about the compiler.
3216 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3217 set X $ac_compile
3218 ac_compiler=$2
3219 for ac_option in --version -v -V -qversion; do
3220 { { ac_try="$ac_compiler $ac_option >&5"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3228 ac_status=$?
3229 if test -s conftest.err; then
3230 sed '10a\
3231 ... rest of stderr output deleted ...
3232 10q' conftest.err >conftest.er1
3233 cat conftest.er1 >&5
3234 fi
3235 rm -f conftest.er1 conftest.err
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 done
3239
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 ac_clean_files_save=$ac_clean_files
3252 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3253 # Try to create an executable without -o first, disregard a.out.
3254 # It will help us diagnose broken compilers, and finding out an intuition
3255 # of exeext.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257 $as_echo_n "checking whether the C compiler works... " >&6; }
3258 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3259
3260 # The possible output files:
3261 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3262
3263 ac_rmfiles=
3264 for ac_file in $ac_files
3265 do
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3269 esac
3270 done
3271 rm -f $ac_rmfiles
3272
3273 if { { ac_try="$ac_link_default"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link_default") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; then :
3284 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3287 # so that the user can short-circuit this test for compilers unknown to
3288 # Autoconf.
3289 for ac_file in $ac_files ''
3290 do
3291 test -f "$ac_file" || continue
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3294 ;;
3295 [ab].out )
3296 # We found the default executable, but exeext='' is most
3297 # certainly right.
3298 break;;
3299 *.* )
3300 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3301 then :; else
3302 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303 fi
3304 # We set ac_cv_exeext here because the later test for it is not
3305 # safe: cross compilers may not add the suffix if given an `-o'
3306 # argument, so we may need to know it at that point already.
3307 # Even if this section looks crufty: it has the advantage of
3308 # actually working.
3309 break;;
3310 * )
3311 break;;
3312 esac
3313 done
3314 test "$ac_cv_exeext" = no && ac_cv_exeext=
3315
3316 else
3317 ac_file=''
3318 fi
3319 if test -z "$ac_file"; then :
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error 77 "C compiler cannot create executables
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3334 $as_echo_n "checking for C compiler default output file name... " >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336 $as_echo "$ac_file" >&6; }
3337 ac_exeext=$ac_cv_exeext
3338
3339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3340 ac_clean_files=$ac_clean_files_save
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3342 $as_echo_n "checking for suffix of executables... " >&6; }
3343 if { { ac_try="$ac_link"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; then :
3354 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3355 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3356 # work properly (i.e., refer to `conftest.exe'), while it won't with
3357 # `rm'.
3358 for ac_file in conftest.exe conftest conftest.*; do
3359 test -f "$ac_file" || continue
3360 case $ac_file in
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3362 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363 break;;
3364 * ) break;;
3365 esac
3366 done
3367 else
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3371 See \`config.log' for more details" "$LINENO" 5; }
3372 fi
3373 rm -f conftest conftest$ac_cv_exeext
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3375 $as_echo "$ac_cv_exeext" >&6; }
3376
3377 rm -f conftest.$ac_ext
3378 EXEEXT=$ac_cv_exeext
3379 ac_exeext=$EXEEXT
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382 #include <stdio.h>
3383 int
3384 main ()
3385 {
3386 FILE *f = fopen ("conftest.out", "w");
3387 return ferror (f) || fclose (f) != 0;
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 ac_clean_files="$ac_clean_files conftest.out"
3394 # Check that the compiler produces executables we can run. If not, either
3395 # the compiler is broken, or we cross compile.
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3397 $as_echo_n "checking whether we are cross compiling... " >&6; }
3398 if test "$cross_compiling" != yes; then
3399 { { ac_try="$ac_link"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }
3410 if { ac_try='./conftest$ac_cv_exeext'
3411 { { case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_try") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; }; then
3421 cross_compiling=no
3422 else
3423 if test "$cross_compiling" = maybe; then
3424 cross_compiling=yes
3425 else
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 as_fn_error $? "cannot run C compiled programs.
3429 If you meant to cross compile, use \`--host'.
3430 See \`config.log' for more details" "$LINENO" 5; }
3431 fi
3432 fi
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3435 $as_echo "$cross_compiling" >&6; }
3436
3437 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3438 ac_clean_files=$ac_clean_files_save
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3440 $as_echo_n "checking for suffix of object files... " >&6; }
3441 if ${ac_cv_objext+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446
3447 int
3448 main ()
3449 {
3450
3451 ;
3452 return 0;
3453 }
3454 _ACEOF
3455 rm -f conftest.o conftest.obj
3456 if { { ac_try="$ac_compile"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compile") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3467 for ac_file in conftest.o conftest.obj conftest.*; do
3468 test -f "$ac_file" || continue;
3469 case $ac_file in
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472 break;;
3473 esac
3474 done
3475 else
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot compute suffix of object files: cannot compile
3482 See \`config.log' for more details" "$LINENO" 5; }
3483 fi
3484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3487 $as_echo "$ac_cv_objext" >&6; }
3488 OBJEXT=$ac_cv_objext
3489 ac_objext=$OBJEXT
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3491 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3492 if ${ac_cv_c_compiler_gnu+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501 #ifndef __GNUC__
3502 choke me
3503 #endif
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_compiler_gnu=yes
3511 else
3512 ac_compiler_gnu=no
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3516
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3519 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520 if test $ac_compiler_gnu = yes; then
3521 GCC=yes
3522 else
3523 GCC=
3524 fi
3525 ac_test_CFLAGS=${CFLAGS+set}
3526 ac_save_CFLAGS=$CFLAGS
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3528 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3529 if ${ac_cv_prog_cc_g+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 ac_save_c_werror_flag=$ac_c_werror_flag
3533 ac_c_werror_flag=yes
3534 ac_cv_prog_cc_g=no
3535 CFLAGS="-g"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_prog_cc_g=yes
3549 else
3550 CFLAGS=""
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553
3554 int
3555 main ()
3556 {
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563
3564 else
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566 CFLAGS="-g"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_g=yes
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3589 $as_echo "$ac_cv_prog_cc_g" >&6; }
3590 if test "$ac_test_CFLAGS" = set; then
3591 CFLAGS=$ac_save_CFLAGS
3592 elif test $ac_cv_prog_cc_g = yes; then
3593 if test "$GCC" = yes; then
3594 CFLAGS="-g -O2"
3595 else
3596 CFLAGS="-g"
3597 fi
3598 else
3599 if test "$GCC" = yes; then
3600 CFLAGS="-O2"
3601 else
3602 CFLAGS=
3603 fi
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3606 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3607 if ${ac_cv_prog_cc_c89+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 ac_cv_prog_cc_c89=no
3611 ac_save_CC=$CC
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #include <stdarg.h>
3615 #include <stdio.h>
3616 #include <sys/types.h>
3617 #include <sys/stat.h>
3618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3619 struct buf { int x; };
3620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621 static char *e (p, i)
3622 char **p;
3623 int i;
3624 {
3625 return p[i];
3626 }
3627 static char *f (char * (*g) (char **, int), char **p, ...)
3628 {
3629 char *s;
3630 va_list v;
3631 va_start (v,p);
3632 s = g (p, va_arg (v,int));
3633 va_end (v);
3634 return s;
3635 }
3636
3637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3638 function prototypes and stuff, but not '\xHH' hex character constants.
3639 These don't provoke an error unfortunately, instead are silently treated
3640 as 'x'. The following induces an error, until -std is added to get
3641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3642 array size at least. It's necessary to write '\x00'==0 to get something
3643 that's true only with -std. */
3644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645
3646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647 inside strings and character constants. */
3648 #define FOO(x) 'x'
3649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650
3651 int test (int i, double x);
3652 struct s1 {int (*f) (int a);};
3653 struct s2 {int (*f) (double a);};
3654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655 int argc;
3656 char **argv;
3657 int
3658 main ()
3659 {
3660 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667 do
3668 CC="$ac_save_CC $ac_arg"
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670 ac_cv_prog_cc_c89=$ac_arg
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext
3673 test "x$ac_cv_prog_cc_c89" != "xno" && break
3674 done
3675 rm -f conftest.$ac_ext
3676 CC=$ac_save_CC
3677
3678 fi
3679 # AC_CACHE_VAL
3680 case "x$ac_cv_prog_cc_c89" in
3681 x)
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3683 $as_echo "none needed" >&6; } ;;
3684 xno)
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686 $as_echo "unsupported" >&6; } ;;
3687 *)
3688 CC="$CC $ac_cv_prog_cc_c89"
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3690 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3691 esac
3692 if test "x$ac_cv_prog_cc_c89" != xno; then :
3693
3694 fi
3695
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3702 depcc="$CC" am_compiler_list=
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3705 $as_echo_n "checking dependency style of $depcc... " >&6; }
3706 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3710 # We make a subdir and do the tests there. Otherwise we can end up
3711 # making bogus files that we don't know about and never remove. For
3712 # instance it was reported that on HP-UX the gcc test will end up
3713 # making a dummy file named `D' -- because `-MD' means `put the output
3714 # in D'.
3715 rm -rf conftest.dir
3716 mkdir conftest.dir
3717 # Copy depcomp to subdir because otherwise we won't find it if we're
3718 # using a relative directory.
3719 cp "$am_depcomp" conftest.dir
3720 cd conftest.dir
3721 # We will build objects and dependencies in a subdirectory because
3722 # it helps to detect inapplicable dependency modes. For instance
3723 # both Tru64's cc and ICC support -MD to output dependencies as a
3724 # side effect of compilation, but ICC will put the dependencies in
3725 # the current directory while Tru64 will put them in the object
3726 # directory.
3727 mkdir sub
3728
3729 am_cv_CC_dependencies_compiler_type=none
3730 if test "$am_compiler_list" = ""; then
3731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732 fi
3733 am__universal=false
3734 case " $depcc " in #(
3735 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3736 esac
3737
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3742 #
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3746 : > sub/conftest.c
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750 # Solaris 8's {/usr,}/bin/sh.
3751 touch sub/conftst$i.h
3752 done
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3756 # mode. It turns out that the SunPro C++ compiler does not properly
3757 # handle `-M -o', and we need to detect this. Also, some Intel
3758 # versions had trouble with output in subdirs
3759 am__obj=sub/conftest.${OBJEXT-o}
3760 am__minus_obj="-o $am__obj"
3761 case $depmode in
3762 gcc)
3763 # This depmode causes a compiler race in universal mode.
3764 test "$am__universal" = false || continue
3765 ;;
3766 nosideeffect)
3767 # after this tag, mechanisms are not by side-effect, so they'll
3768 # only be used when explicitly requested
3769 if test "x$enable_dependency_tracking" = xyes; then
3770 continue
3771 else
3772 break
3773 fi
3774 ;;
3775 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3776 # This compiler won't grok `-c -o', but also, the minuso test has
3777 # not run yet. These depmodes are late enough in the game, and
3778 # so weak that their functioning should not be impacted.
3779 am__obj=conftest.${OBJEXT-o}
3780 am__minus_obj=
3781 ;;
3782 none) break ;;
3783 esac
3784 if depmode=$depmode \
3785 source=sub/conftest.c object=$am__obj \
3786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3788 >/dev/null 2>conftest.err &&
3789 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3790 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3791 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3792 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3793 # icc doesn't choke on unknown options, it will just issue warnings
3794 # or remarks (even with -Werror). So we grep stderr for any message
3795 # that says an option was ignored or not supported.
3796 # When given -MP, icc 7.0 and 7.1 complain thusly:
3797 # icc: Command line warning: ignoring option '-M'; no argument required
3798 # The diagnosis changed in icc 8.0:
3799 # icc: Command line remark: option '-MP' not supported
3800 if (grep 'ignoring option' conftest.err ||
3801 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3802 am_cv_CC_dependencies_compiler_type=$depmode
3803 break
3804 fi
3805 fi
3806 done
3807
3808 cd ..
3809 rm -rf conftest.dir
3810 else
3811 am_cv_CC_dependencies_compiler_type=none
3812 fi
3813
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3816 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3817 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3818
3819 if
3820 test "x$enable_dependency_tracking" != xno \
3821 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3822 am__fastdepCC_TRUE=
3823 am__fastdepCC_FALSE='#'
3824 else
3825 am__fastdepCC_TRUE='#'
3826 am__fastdepCC_FALSE=
3827 fi
3828
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3831 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3832 if ${ac_cv_prog_cc_c99+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 ac_cv_prog_cc_c99=no
3836 ac_save_CC=$CC
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <stdarg.h>
3840 #include <stdbool.h>
3841 #include <stdlib.h>
3842 #include <wchar.h>
3843 #include <stdio.h>
3844
3845 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3846 #define debug(...) fprintf (stderr, __VA_ARGS__)
3847 #define showlist(...) puts (#__VA_ARGS__)
3848 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3849 static void
3850 test_varargs_macros (void)
3851 {
3852 int x = 1234;
3853 int y = 5678;
3854 debug ("Flag");
3855 debug ("X = %d\n", x);
3856 showlist (The first, second, and third items.);
3857 report (x>y, "x is %d but y is %d", x, y);
3858 }
3859
3860 // Check long long types.
3861 #define BIG64 18446744073709551615ull
3862 #define BIG32 4294967295ul
3863 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3864 #if !BIG_OK
3865 your preprocessor is broken;
3866 #endif
3867 #if BIG_OK
3868 #else
3869 your preprocessor is broken;
3870 #endif
3871 static long long int bignum = -9223372036854775807LL;
3872 static unsigned long long int ubignum = BIG64;
3873
3874 struct incomplete_array
3875 {
3876 int datasize;
3877 double data[];
3878 };
3879
3880 struct named_init {
3881 int number;
3882 const wchar_t *name;
3883 double average;
3884 };
3885
3886 typedef const char *ccp;
3887
3888 static inline int
3889 test_restrict (ccp restrict text)
3890 {
3891 // See if C++-style comments work.
3892 // Iterate through items via the restricted pointer.
3893 // Also check for declarations in for loops.
3894 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3895 continue;
3896 return 0;
3897 }
3898
3899 // Check varargs and va_copy.
3900 static void
3901 test_varargs (const char *format, ...)
3902 {
3903 va_list args;
3904 va_start (args, format);
3905 va_list args_copy;
3906 va_copy (args_copy, args);
3907
3908 const char *str;
3909 int number;
3910 float fnumber;
3911
3912 while (*format)
3913 {
3914 switch (*format++)
3915 {
3916 case 's': // string
3917 str = va_arg (args_copy, const char *);
3918 break;
3919 case 'd': // int
3920 number = va_arg (args_copy, int);
3921 break;
3922 case 'f': // float
3923 fnumber = va_arg (args_copy, double);
3924 break;
3925 default:
3926 break;
3927 }
3928 }
3929 va_end (args_copy);
3930 va_end (args);
3931 }
3932
3933 int
3934 main ()
3935 {
3936
3937 // Check bool.
3938 _Bool success = false;
3939
3940 // Check restrict.
3941 if (test_restrict ("String literal") == 0)
3942 success = true;
3943 char *restrict newvar = "Another string";
3944
3945 // Check varargs.
3946 test_varargs ("s, d' f .", "string", 65, 34.234);
3947 test_varargs_macros ();
3948
3949 // Check flexible array members.
3950 struct incomplete_array *ia =
3951 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3952 ia->datasize = 10;
3953 for (int i = 0; i < ia->datasize; ++i)
3954 ia->data[i] = i * 1.234;
3955
3956 // Check named initializers.
3957 struct named_init ni = {
3958 .number = 34,
3959 .name = L"Test wide string",
3960 .average = 543.34343,
3961 };
3962
3963 ni.number = 58;
3964
3965 int dynamic_array[ni.number];
3966 dynamic_array[ni.number - 1] = 543;
3967
3968 // work around unused variable warnings
3969 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3970 || dynamic_array[ni.number - 1] != 543);
3971
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3977 do
3978 CC="$ac_save_CC $ac_arg"
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_prog_cc_c99=$ac_arg
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext
3983 test "x$ac_cv_prog_cc_c99" != "xno" && break
3984 done
3985 rm -f conftest.$ac_ext
3986 CC=$ac_save_CC
3987
3988 fi
3989 # AC_CACHE_VAL
3990 case "x$ac_cv_prog_cc_c99" in
3991 x)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993 $as_echo "none needed" >&6; } ;;
3994 xno)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 $as_echo "unsupported" >&6; } ;;
3997 *)
3998 CC="$CC $ac_cv_prog_cc_c99"
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4000 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4001 esac
4002 if test "x$ac_cv_prog_cc_c99" != xno; then :
4003
4004 fi
4005
4006
4007
4008 ac_ext=c
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4014 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4015 # On Suns, sometimes $CPP names a directory.
4016 if test -n "$CPP" && test -d "$CPP"; then
4017 CPP=
4018 fi
4019 if test -z "$CPP"; then
4020 if ${ac_cv_prog_CPP+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 # Double quotes because CPP needs to be expanded
4024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025 do
4026 ac_preproc_ok=false
4027 for ac_c_preproc_warn_flag in '' yes
4028 do
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037 #ifdef __STDC__
4038 # include <limits.h>
4039 #else
4040 # include <assert.h>
4041 #endif
4042 Syntax error
4043 _ACEOF
4044 if ac_fn_c_try_cpp "$LINENO"; then :
4045
4046 else
4047 # Broken: fails on valid input.
4048 continue
4049 fi
4050 rm -f conftest.err conftest.i conftest.$ac_ext
4051
4052 # OK, works on sane cases. Now check whether nonexistent headers
4053 # can be detected and how.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <ac_nonexistent.h>
4057 _ACEOF
4058 if ac_fn_c_try_cpp "$LINENO"; then :
4059 # Broken: success on invalid input.
4060 continue
4061 else
4062 # Passes both tests.
4063 ac_preproc_ok=:
4064 break
4065 fi
4066 rm -f conftest.err conftest.i conftest.$ac_ext
4067
4068 done
4069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070 rm -f conftest.i conftest.err conftest.$ac_ext
4071 if $ac_preproc_ok; then :
4072 break
4073 fi
4074
4075 done
4076 ac_cv_prog_CPP=$CPP
4077
4078 fi
4079 CPP=$ac_cv_prog_CPP
4080 else
4081 ac_cv_prog_CPP=$CPP
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4084 $as_echo "$CPP" >&6; }
4085 ac_preproc_ok=false
4086 for ac_c_preproc_warn_flag in '' yes
4087 do
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #ifdef __STDC__
4097 # include <limits.h>
4098 #else
4099 # include <assert.h>
4100 #endif
4101 Syntax error
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4104
4105 else
4106 # Broken: fails on valid input.
4107 continue
4108 fi
4109 rm -f conftest.err conftest.i conftest.$ac_ext
4110
4111 # OK, works on sane cases. Now check whether nonexistent headers
4112 # can be detected and how.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <ac_nonexistent.h>
4116 _ACEOF
4117 if ac_fn_c_try_cpp "$LINENO"; then :
4118 # Broken: success on invalid input.
4119 continue
4120 else
4121 # Passes both tests.
4122 ac_preproc_ok=:
4123 break
4124 fi
4125 rm -f conftest.err conftest.i conftest.$ac_ext
4126
4127 done
4128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129 rm -f conftest.i conftest.err conftest.$ac_ext
4130 if $ac_preproc_ok; then :
4131
4132 else
4133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4135 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4136 See \`config.log' for more details" "$LINENO" 5; }
4137 fi
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4147 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4148 if ${ac_cv_path_GREP+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if test -z "$GREP"; then
4152 ac_path_GREP_found=false
4153 # Loop through the user's path and test for each of PROGNAME-LIST
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_prog in grep ggrep; do
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4162 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4163 # Check for GNU ac_path_GREP and select it if it is found.
4164 # Check for GNU $ac_path_GREP
4165 case `"$ac_path_GREP" --version 2>&1` in
4166 *GNU*)
4167 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4168 *)
4169 ac_count=0
4170 $as_echo_n 0123456789 >"conftest.in"
4171 while :
4172 do
4173 cat "conftest.in" "conftest.in" >"conftest.tmp"
4174 mv "conftest.tmp" "conftest.in"
4175 cp "conftest.in" "conftest.nl"
4176 $as_echo 'GREP' >> "conftest.nl"
4177 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179 as_fn_arith $ac_count + 1 && ac_count=$as_val
4180 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4181 # Best one so far, save it but keep looking for a better one
4182 ac_cv_path_GREP="$ac_path_GREP"
4183 ac_path_GREP_max=$ac_count
4184 fi
4185 # 10*(2^10) chars as input seems more than enough
4186 test $ac_count -gt 10 && break
4187 done
4188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189 esac
4190
4191 $ac_path_GREP_found && break 3
4192 done
4193 done
4194 done
4195 IFS=$as_save_IFS
4196 if test -z "$ac_cv_path_GREP"; then
4197 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 fi
4199 else
4200 ac_cv_path_GREP=$GREP
4201 fi
4202
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4205 $as_echo "$ac_cv_path_GREP" >&6; }
4206 GREP="$ac_cv_path_GREP"
4207
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4210 $as_echo_n "checking for egrep... " >&6; }
4211 if ${ac_cv_path_EGREP+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4215 then ac_cv_path_EGREP="$GREP -E"
4216 else
4217 if test -z "$EGREP"; then
4218 ac_path_EGREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in egrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4229 # Check for GNU ac_path_EGREP and select it if it is found.
4230 # Check for GNU $ac_path_EGREP
4231 case `"$ac_path_EGREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4234 *)
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'EGREP' >> "conftest.nl"
4243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_EGREP="$ac_path_EGREP"
4249 ac_path_EGREP_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257 $ac_path_EGREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_EGREP"; then
4263 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 fi
4265 else
4266 ac_cv_path_EGREP=$EGREP
4267 fi
4268
4269 fi
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4272 $as_echo "$ac_cv_path_EGREP" >&6; }
4273 EGREP="$ac_cv_path_EGREP"
4274
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4277 $as_echo_n "checking for ANSI C header files... " >&6; }
4278 if ${ac_cv_header_stdc+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <stdlib.h>
4284 #include <stdarg.h>
4285 #include <string.h>
4286 #include <float.h>
4287
4288 int
4289 main ()
4290 {
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_cv_header_stdc=yes
4298 else
4299 ac_cv_header_stdc=no
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302
4303 if test $ac_cv_header_stdc = yes; then
4304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <string.h>
4308
4309 _ACEOF
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 $EGREP "memchr" >/dev/null 2>&1; then :
4312
4313 else
4314 ac_cv_header_stdc=no
4315 fi
4316 rm -f conftest*
4317
4318 fi
4319
4320 if test $ac_cv_header_stdc = yes; then
4321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <stdlib.h>
4325
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "free" >/dev/null 2>&1; then :
4329
4330 else
4331 ac_cv_header_stdc=no
4332 fi
4333 rm -f conftest*
4334
4335 fi
4336
4337 if test $ac_cv_header_stdc = yes; then
4338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4339 if test "$cross_compiling" = yes; then :
4340 :
4341 else
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <ctype.h>
4345 #include <stdlib.h>
4346 #if ((' ' & 0x0FF) == 0x020)
4347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349 #else
4350 # define ISLOWER(c) \
4351 (('a' <= (c) && (c) <= 'i') \
4352 || ('j' <= (c) && (c) <= 'r') \
4353 || ('s' <= (c) && (c) <= 'z'))
4354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355 #endif
4356
4357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 int
4359 main ()
4360 {
4361 int i;
4362 for (i = 0; i < 256; i++)
4363 if (XOR (islower (i), ISLOWER (i))
4364 || toupper (i) != TOUPPER (i))
4365 return 2;
4366 return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_run "$LINENO"; then :
4370
4371 else
4372 ac_cv_header_stdc=no
4373 fi
4374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4375 conftest.$ac_objext conftest.beam conftest.$ac_ext
4376 fi
4377
4378 fi
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4381 $as_echo "$ac_cv_header_stdc" >&6; }
4382 if test $ac_cv_header_stdc = yes; then
4383
4384 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4385
4386 fi
4387
4388 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4390 inttypes.h stdint.h unistd.h
4391 do :
4392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4394 "
4395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4396 cat >>confdefs.h <<_ACEOF
4397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398 _ACEOF
4399
4400 fi
4401
4402 done
4403
4404
4405
4406
4407
4408
4409 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4410 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4411 CLANGCC="yes"
4412 else
4413 CLANGCC="no"
4414 fi
4415
4416 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4417 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4418 INTELCC="yes"
4419 else
4420 INTELCC="no"
4421 fi
4422
4423 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4424 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4425 SUNCC="yes"
4426 else
4427 SUNCC="no"
4428 fi
4429
4430
4431
4432
4433
4434
4435
4436
4437 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4438 if test -n "$ac_tool_prefix"; then
4439 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4440 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 case $PKG_CONFIG in
4447 [\\/]* | ?:[\\/]*)
4448 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4449 ;;
4450 *)
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 ;;
4467 esac
4468 fi
4469 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4470 if test -n "$PKG_CONFIG"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4472 $as_echo "$PKG_CONFIG" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478
4479 fi
4480 if test -z "$ac_cv_path_PKG_CONFIG"; then
4481 ac_pt_PKG_CONFIG=$PKG_CONFIG
4482 # Extract the first word of "pkg-config", so it can be a program name with args.
4483 set dummy pkg-config; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 case $ac_pt_PKG_CONFIG in
4490 [\\/]* | ?:[\\/]*)
4491 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4492 ;;
4493 *)
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 ;;
4510 esac
4511 fi
4512 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4513 if test -n "$ac_pt_PKG_CONFIG"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4515 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520
4521 if test "x$ac_pt_PKG_CONFIG" = x; then
4522 PKG_CONFIG=""
4523 else
4524 case $cross_compiling:$ac_tool_warned in
4525 yes:)
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528 ac_tool_warned=yes ;;
4529 esac
4530 PKG_CONFIG=$ac_pt_PKG_CONFIG
4531 fi
4532 else
4533 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4534 fi
4535
4536 fi
4537 if test -n "$PKG_CONFIG"; then
4538 _pkg_min_version=0.9.0
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4540 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4541 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4543 $as_echo "yes" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 PKG_CONFIG=""
4548 fi
4549 fi
4550 # Make sure we can run config.sub.
4551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4555 $as_echo_n "checking build system type... " >&6; }
4556 if ${ac_cv_build+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_build_alias=$build_alias
4560 test "x$ac_build_alias" = x &&
4561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4562 test "x$ac_build_alias" = x &&
4563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4566
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4569 $as_echo "$ac_cv_build" >&6; }
4570 case $ac_cv_build in
4571 *-*-*) ;;
4572 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4573 esac
4574 build=$ac_cv_build
4575 ac_save_IFS=$IFS; IFS='-'
4576 set x $ac_cv_build
4577 shift
4578 build_cpu=$1
4579 build_vendor=$2
4580 shift; shift
4581 # Remember, the first character of IFS is used to create $*,
4582 # except with old shells:
4583 build_os=$*
4584 IFS=$ac_save_IFS
4585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4589 $as_echo_n "checking host system type... " >&6; }
4590 if ${ac_cv_host+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test "x$host_alias" = x; then
4594 ac_cv_host=$ac_cv_build
4595 else
4596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4598 fi
4599
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4602 $as_echo "$ac_cv_host" >&6; }
4603 case $ac_cv_host in
4604 *-*-*) ;;
4605 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4606 esac
4607 host=$ac_cv_host
4608 ac_save_IFS=$IFS; IFS='-'
4609 set x $ac_cv_host
4610 shift
4611 host_cpu=$1
4612 host_vendor=$2
4613 shift; shift
4614 # Remember, the first character of IFS is used to create $*,
4615 # except with old shells:
4616 host_os=$*
4617 IFS=$ac_save_IFS
4618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4622 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4623 if ${ac_cv_path_SED+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4627 for ac_i in 1 2 3 4 5 6 7; do
4628 ac_script="$ac_script$as_nl$ac_script"
4629 done
4630 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4631 { ac_script=; unset ac_script;}
4632 if test -z "$SED"; then
4633 ac_path_SED_found=false
4634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_prog in sed gsed; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4643 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4644 # Check for GNU ac_path_SED and select it if it is found.
4645 # Check for GNU $ac_path_SED
4646 case `"$ac_path_SED" --version 2>&1` in
4647 *GNU*)
4648 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4649 *)
4650 ac_count=0
4651 $as_echo_n 0123456789 >"conftest.in"
4652 while :
4653 do
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
4657 $as_echo '' >> "conftest.nl"
4658 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660 as_fn_arith $ac_count + 1 && ac_count=$as_val
4661 if test $ac_count -gt ${ac_path_SED_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_SED="$ac_path_SED"
4664 ac_path_SED_max=$ac_count
4665 fi
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4668 done
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 esac
4671
4672 $ac_path_SED_found && break 3
4673 done
4674 done
4675 done
4676 IFS=$as_save_IFS
4677 if test -z "$ac_cv_path_SED"; then
4678 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4679 fi
4680 else
4681 ac_cv_path_SED=$SED
4682 fi
4683
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4686 $as_echo "$ac_cv_path_SED" >&6; }
4687 SED="$ac_cv_path_SED"
4688 rm -f conftest.sed
4689
4690
4691
4692
4693
4694
4695 # Check whether --enable-selective-werror was given.
4696 if test "${enable_selective_werror+set}" = set; then :
4697 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4698 else
4699 SELECTIVE_WERROR=yes
4700 fi
4701
4702
4703
4704
4705
4706 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4707 if test "x$SUNCC" = "xyes"; then
4708 BASE_CFLAGS="-v"
4709 else
4710 BASE_CFLAGS=""
4711 fi
4712
4713 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727 xorg_testset_save_CFLAGS="$CFLAGS"
4728
4729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 int i;
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 xorg_cv_cc_flag_unknown_warning_option=yes
4742 else
4743 xorg_cv_cc_flag_unknown_warning_option=no
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4750 CFLAGS="$xorg_testset_save_CFLAGS"
4751 fi
4752
4753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4756 fi
4757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 int i;
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 xorg_cv_cc_flag_unused_command_line_argument=yes
4769 else
4770 xorg_cv_cc_flag_unused_command_line_argument=no
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4777 CFLAGS="$xorg_testset_save_CFLAGS"
4778 fi
4779
4780 found="no"
4781
4782 if test $found = "no" ; then
4783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4785 fi
4786
4787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4789 fi
4790
4791 CFLAGS="$CFLAGS -Wall"
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4794 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4795 cacheid=xorg_cv_cc_flag__Wall
4796 if eval \${$cacheid+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801 int i;
4802 int
4803 main ()
4804 {
4805
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 if ac_fn_c_try_link "$LINENO"; then :
4811 eval $cacheid=yes
4812 else
4813 eval $cacheid=no
4814 fi
4815 rm -f core conftest.err conftest.$ac_objext \
4816 conftest$ac_exeext conftest.$ac_ext
4817 fi
4818
4819
4820 CFLAGS="$xorg_testset_save_CFLAGS"
4821
4822 eval supported=\$$cacheid
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4824 $as_echo "$supported" >&6; }
4825 if test "$supported" = "yes" ; then
4826 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4827 found="yes"
4828 fi
4829 fi
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845 xorg_testset_save_CFLAGS="$CFLAGS"
4846
4847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 int i;
4857 _ACEOF
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859 xorg_cv_cc_flag_unknown_warning_option=yes
4860 else
4861 xorg_cv_cc_flag_unknown_warning_option=no
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4868 CFLAGS="$xorg_testset_save_CFLAGS"
4869 fi
4870
4871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4874 fi
4875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 int i;
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 xorg_cv_cc_flag_unused_command_line_argument=yes
4887 else
4888 xorg_cv_cc_flag_unused_command_line_argument=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4895 CFLAGS="$xorg_testset_save_CFLAGS"
4896 fi
4897
4898 found="no"
4899
4900 if test $found = "no" ; then
4901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903 fi
4904
4905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4907 fi
4908
4909 CFLAGS="$CFLAGS -Wpointer-arith"
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4912 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4913 cacheid=xorg_cv_cc_flag__Wpointer_arith
4914 if eval \${$cacheid+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 int i;
4920 int
4921 main ()
4922 {
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_link "$LINENO"; then :
4929 eval $cacheid=yes
4930 else
4931 eval $cacheid=no
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext \
4934 conftest$ac_exeext conftest.$ac_ext
4935 fi
4936
4937
4938 CFLAGS="$xorg_testset_save_CFLAGS"
4939
4940 eval supported=\$$cacheid
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4942 $as_echo "$supported" >&6; }
4943 if test "$supported" = "yes" ; then
4944 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4945 found="yes"
4946 fi
4947 fi
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 xorg_testset_save_CFLAGS="$CFLAGS"
4964
4965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 int i;
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 xorg_cv_cc_flag_unknown_warning_option=yes
4978 else
4979 xorg_cv_cc_flag_unknown_warning_option=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 fi
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4986 CFLAGS="$xorg_testset_save_CFLAGS"
4987 fi
4988
4989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4992 fi
4993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 int i;
5002 _ACEOF
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 xorg_cv_cc_flag_unused_command_line_argument=yes
5005 else
5006 xorg_cv_cc_flag_unused_command_line_argument=no
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5013 CFLAGS="$xorg_testset_save_CFLAGS"
5014 fi
5015
5016 found="no"
5017
5018 if test $found = "no" ; then
5019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021 fi
5022
5023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5025 fi
5026
5027 CFLAGS="$CFLAGS -Wmissing-declarations"
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5030 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5031 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5032 if eval \${$cacheid+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 int i;
5038 int
5039 main ()
5040 {
5041
5042 ;
5043 return 0;
5044 }
5045 _ACEOF
5046 if ac_fn_c_try_link "$LINENO"; then :
5047 eval $cacheid=yes
5048 else
5049 eval $cacheid=no
5050 fi
5051 rm -f core conftest.err conftest.$ac_objext \
5052 conftest$ac_exeext conftest.$ac_ext
5053 fi
5054
5055
5056 CFLAGS="$xorg_testset_save_CFLAGS"
5057
5058 eval supported=\$$cacheid
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5060 $as_echo "$supported" >&6; }
5061 if test "$supported" = "yes" ; then
5062 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5063 found="yes"
5064 fi
5065 fi
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081 xorg_testset_save_CFLAGS="$CFLAGS"
5082
5083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 int i;
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 xorg_cv_cc_flag_unknown_warning_option=yes
5096 else
5097 xorg_cv_cc_flag_unknown_warning_option=no
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5104 CFLAGS="$xorg_testset_save_CFLAGS"
5105 fi
5106
5107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5110 fi
5111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 int i;
5120 _ACEOF
5121 if ac_fn_c_try_compile "$LINENO"; then :
5122 xorg_cv_cc_flag_unused_command_line_argument=yes
5123 else
5124 xorg_cv_cc_flag_unused_command_line_argument=no
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5131 CFLAGS="$xorg_testset_save_CFLAGS"
5132 fi
5133
5134 found="no"
5135
5136 if test $found = "no" ; then
5137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 fi
5140
5141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143 fi
5144
5145 CFLAGS="$CFLAGS -Wformat=2"
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5148 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5149 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5150 if eval \${$cacheid+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 int i;
5156 int
5157 main ()
5158 {
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_link "$LINENO"; then :
5165 eval $cacheid=yes
5166 else
5167 eval $cacheid=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
5171 fi
5172
5173
5174 CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176 eval supported=\$$cacheid
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178 $as_echo "$supported" >&6; }
5179 if test "$supported" = "yes" ; then
5180 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5181 found="yes"
5182 fi
5183 fi
5184
5185 if test $found = "no" ; then
5186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5188 fi
5189
5190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192 fi
5193
5194 CFLAGS="$CFLAGS -Wformat"
5195
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5197 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5198 cacheid=xorg_cv_cc_flag__Wformat
5199 if eval \${$cacheid+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 int i;
5205 int
5206 main ()
5207 {
5208
5209 ;
5210 return 0;
5211 }
5212 _ACEOF
5213 if ac_fn_c_try_link "$LINENO"; then :
5214 eval $cacheid=yes
5215 else
5216 eval $cacheid=no
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext \
5219 conftest$ac_exeext conftest.$ac_ext
5220 fi
5221
5222
5223 CFLAGS="$xorg_testset_save_CFLAGS"
5224
5225 eval supported=\$$cacheid
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5227 $as_echo "$supported" >&6; }
5228 if test "$supported" = "yes" ; then
5229 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5230 found="yes"
5231 fi
5232 fi
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 xorg_testset_save_CFLAGS="$CFLAGS"
5251
5252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 int i;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 xorg_cv_cc_flag_unknown_warning_option=yes
5265 else
5266 xorg_cv_cc_flag_unknown_warning_option=no
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5273 CFLAGS="$xorg_testset_save_CFLAGS"
5274 fi
5275
5276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279 fi
5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 int i;
5289 _ACEOF
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291 xorg_cv_cc_flag_unused_command_line_argument=yes
5292 else
5293 xorg_cv_cc_flag_unused_command_line_argument=no
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5300 CFLAGS="$xorg_testset_save_CFLAGS"
5301 fi
5302
5303 found="no"
5304
5305 if test $found = "no" ; then
5306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308 fi
5309
5310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312 fi
5313
5314 CFLAGS="$CFLAGS -Wstrict-prototypes"
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5317 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5318 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5319 if eval \${$cacheid+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 int i;
5325 int
5326 main ()
5327 {
5328
5329 ;
5330 return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_c_try_link "$LINENO"; then :
5334 eval $cacheid=yes
5335 else
5336 eval $cacheid=no
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340 fi
5341
5342
5343 CFLAGS="$xorg_testset_save_CFLAGS"
5344
5345 eval supported=\$$cacheid
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5347 $as_echo "$supported" >&6; }
5348 if test "$supported" = "yes" ; then
5349 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5350 found="yes"
5351 fi
5352 fi
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 xorg_testset_save_CFLAGS="$CFLAGS"
5369
5370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5373 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5374 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 int i;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 xorg_cv_cc_flag_unknown_warning_option=yes
5383 else
5384 xorg_cv_cc_flag_unknown_warning_option=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391 CFLAGS="$xorg_testset_save_CFLAGS"
5392 fi
5393
5394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 fi
5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 int i;
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 xorg_cv_cc_flag_unused_command_line_argument=yes
5410 else
5411 xorg_cv_cc_flag_unused_command_line_argument=no
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5416 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5418 CFLAGS="$xorg_testset_save_CFLAGS"
5419 fi
5420
5421 found="no"
5422
5423 if test $found = "no" ; then
5424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426 fi
5427
5428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5430 fi
5431
5432 CFLAGS="$CFLAGS -Wmissing-prototypes"
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5435 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5436 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5437 if eval \${$cacheid+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 int i;
5443 int
5444 main ()
5445 {
5446
5447 ;
5448 return 0;
5449 }
5450 _ACEOF
5451 if ac_fn_c_try_link "$LINENO"; then :
5452 eval $cacheid=yes
5453 else
5454 eval $cacheid=no
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext \
5457 conftest$ac_exeext conftest.$ac_ext
5458 fi
5459
5460
5461 CFLAGS="$xorg_testset_save_CFLAGS"
5462
5463 eval supported=\$$cacheid
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5465 $as_echo "$supported" >&6; }
5466 if test "$supported" = "yes" ; then
5467 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5468 found="yes"
5469 fi
5470 fi
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 xorg_testset_save_CFLAGS="$CFLAGS"
5487
5488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 int i;
5498 _ACEOF
5499 if ac_fn_c_try_compile "$LINENO"; then :
5500 xorg_cv_cc_flag_unknown_warning_option=yes
5501 else
5502 xorg_cv_cc_flag_unknown_warning_option=no
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5509 CFLAGS="$xorg_testset_save_CFLAGS"
5510 fi
5511
5512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515 fi
5516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 int i;
5525 _ACEOF
5526 if ac_fn_c_try_compile "$LINENO"; then :
5527 xorg_cv_cc_flag_unused_command_line_argument=yes
5528 else
5529 xorg_cv_cc_flag_unused_command_line_argument=no
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5536 CFLAGS="$xorg_testset_save_CFLAGS"
5537 fi
5538
5539 found="no"
5540
5541 if test $found = "no" ; then
5542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544 fi
5545
5546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548 fi
5549
5550 CFLAGS="$CFLAGS -Wnested-externs"
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5553 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5554 cacheid=xorg_cv_cc_flag__Wnested_externs
5555 if eval \${$cacheid+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 int i;
5561 int
5562 main ()
5563 {
5564
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 if ac_fn_c_try_link "$LINENO"; then :
5570 eval $cacheid=yes
5571 else
5572 eval $cacheid=no
5573 fi
5574 rm -f core conftest.err conftest.$ac_objext \
5575 conftest$ac_exeext conftest.$ac_ext
5576 fi
5577
5578
5579 CFLAGS="$xorg_testset_save_CFLAGS"
5580
5581 eval supported=\$$cacheid
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5583 $as_echo "$supported" >&6; }
5584 if test "$supported" = "yes" ; then
5585 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5586 found="yes"
5587 fi
5588 fi
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 xorg_testset_save_CFLAGS="$CFLAGS"
5605
5606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 int i;
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 xorg_cv_cc_flag_unknown_warning_option=yes
5619 else
5620 xorg_cv_cc_flag_unknown_warning_option=no
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5627 CFLAGS="$xorg_testset_save_CFLAGS"
5628 fi
5629
5630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5633 fi
5634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 int i;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 xorg_cv_cc_flag_unused_command_line_argument=yes
5646 else
5647 xorg_cv_cc_flag_unused_command_line_argument=no
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5654 CFLAGS="$xorg_testset_save_CFLAGS"
5655 fi
5656
5657 found="no"
5658
5659 if test $found = "no" ; then
5660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662 fi
5663
5664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666 fi
5667
5668 CFLAGS="$CFLAGS -Wbad-function-cast"
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5671 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5672 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5673 if eval \${$cacheid+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 int i;
5679 int
5680 main ()
5681 {
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_link "$LINENO"; then :
5688 eval $cacheid=yes
5689 else
5690 eval $cacheid=no
5691 fi
5692 rm -f core conftest.err conftest.$ac_objext \
5693 conftest$ac_exeext conftest.$ac_ext
5694 fi
5695
5696
5697 CFLAGS="$xorg_testset_save_CFLAGS"
5698
5699 eval supported=\$$cacheid
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5701 $as_echo "$supported" >&6; }
5702 if test "$supported" = "yes" ; then
5703 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5704 found="yes"
5705 fi
5706 fi
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722 xorg_testset_save_CFLAGS="$CFLAGS"
5723
5724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 int i;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 xorg_cv_cc_flag_unknown_warning_option=yes
5737 else
5738 xorg_cv_cc_flag_unknown_warning_option=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5745 CFLAGS="$xorg_testset_save_CFLAGS"
5746 fi
5747
5748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751 fi
5752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"; then :
5763 xorg_cv_cc_flag_unused_command_line_argument=yes
5764 else
5765 xorg_cv_cc_flag_unused_command_line_argument=no
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5772 CFLAGS="$xorg_testset_save_CFLAGS"
5773 fi
5774
5775 found="no"
5776
5777 if test $found = "no" ; then
5778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780 fi
5781
5782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5784 fi
5785
5786 CFLAGS="$CFLAGS -Wold-style-definition"
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5789 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5790 cacheid=xorg_cv_cc_flag__Wold_style_definition
5791 if eval \${$cacheid+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 int i;
5797 int
5798 main ()
5799 {
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 eval $cacheid=yes
5807 else
5808 eval $cacheid=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 fi
5813
5814
5815 CFLAGS="$xorg_testset_save_CFLAGS"
5816
5817 eval supported=\$$cacheid
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5819 $as_echo "$supported" >&6; }
5820 if test "$supported" = "yes" ; then
5821 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5822 found="yes"
5823 fi
5824 fi
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840 xorg_testset_save_CFLAGS="$CFLAGS"
5841
5842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 int i;
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 xorg_cv_cc_flag_unknown_warning_option=yes
5855 else
5856 xorg_cv_cc_flag_unknown_warning_option=no
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5863 CFLAGS="$xorg_testset_save_CFLAGS"
5864 fi
5865
5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869 fi
5870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 int i;
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"; then :
5881 xorg_cv_cc_flag_unused_command_line_argument=yes
5882 else
5883 xorg_cv_cc_flag_unused_command_line_argument=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5890 CFLAGS="$xorg_testset_save_CFLAGS"
5891 fi
5892
5893 found="no"
5894
5895 if test $found = "no" ; then
5896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898 fi
5899
5900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5902 fi
5903
5904 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5905
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5907 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5908 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5909 if eval \${$cacheid+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 int i;
5915 int
5916 main ()
5917 {
5918
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 if ac_fn_c_try_link "$LINENO"; then :
5924 eval $cacheid=yes
5925 else
5926 eval $cacheid=no
5927 fi
5928 rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 fi
5931
5932
5933 CFLAGS="$xorg_testset_save_CFLAGS"
5934
5935 eval supported=\$$cacheid
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5937 $as_echo "$supported" >&6; }
5938 if test "$supported" = "yes" ; then
5939 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5940 found="yes"
5941 fi
5942 fi
5943
5944
5945
5946
5947
5948 # This chunk adds additional warnings that could catch undesired effects.
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 xorg_testset_save_CFLAGS="$CFLAGS"
5963
5964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 int i;
5974 _ACEOF
5975 if ac_fn_c_try_compile "$LINENO"; then :
5976 xorg_cv_cc_flag_unknown_warning_option=yes
5977 else
5978 xorg_cv_cc_flag_unknown_warning_option=no
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5985 CFLAGS="$xorg_testset_save_CFLAGS"
5986 fi
5987
5988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991 fi
5992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 int i;
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"; then :
6003 xorg_cv_cc_flag_unused_command_line_argument=yes
6004 else
6005 xorg_cv_cc_flag_unused_command_line_argument=no
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6012 CFLAGS="$xorg_testset_save_CFLAGS"
6013 fi
6014
6015 found="no"
6016
6017 if test $found = "no" ; then
6018 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 fi
6021
6022 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024 fi
6025
6026 CFLAGS="$CFLAGS -Wunused"
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6029 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6030 cacheid=xorg_cv_cc_flag__Wunused
6031 if eval \${$cacheid+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 int i;
6037 int
6038 main ()
6039 {
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 eval $cacheid=yes
6047 else
6048 eval $cacheid=no
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052 fi
6053
6054
6055 CFLAGS="$xorg_testset_save_CFLAGS"
6056
6057 eval supported=\$$cacheid
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6059 $as_echo "$supported" >&6; }
6060 if test "$supported" = "yes" ; then
6061 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6062 found="yes"
6063 fi
6064 fi
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"; then :
6094 xorg_cv_cc_flag_unknown_warning_option=yes
6095 else
6096 xorg_cv_cc_flag_unknown_warning_option=no
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6104 fi
6105
6106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109 fi
6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 xorg_cv_cc_flag_unused_command_line_argument=yes
6122 else
6123 xorg_cv_cc_flag_unused_command_line_argument=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131 fi
6132
6133 found="no"
6134
6135 if test $found = "no" ; then
6136 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 fi
6139
6140 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142 fi
6143
6144 CFLAGS="$CFLAGS -Wuninitialized"
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6147 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6148 cacheid=xorg_cv_cc_flag__Wuninitialized
6149 if eval \${$cacheid+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 int i;
6155 int
6156 main ()
6157 {
6158
6159 ;
6160 return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164 eval $cacheid=yes
6165 else
6166 eval $cacheid=no
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6170 fi
6171
6172
6173 CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175 eval supported=\$$cacheid
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177 $as_echo "$supported" >&6; }
6178 if test "$supported" = "yes" ; then
6179 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6180 found="yes"
6181 fi
6182 fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198 xorg_testset_save_CFLAGS="$CFLAGS"
6199
6200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 int i;
6210 _ACEOF
6211 if ac_fn_c_try_compile "$LINENO"; then :
6212 xorg_cv_cc_flag_unknown_warning_option=yes
6213 else
6214 xorg_cv_cc_flag_unknown_warning_option=no
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221 CFLAGS="$xorg_testset_save_CFLAGS"
6222 fi
6223
6224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 fi
6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 xorg_cv_cc_flag_unused_command_line_argument=yes
6240 else
6241 xorg_cv_cc_flag_unused_command_line_argument=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6249 fi
6250
6251 found="no"
6252
6253 if test $found = "no" ; then
6254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 fi
6257
6258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260 fi
6261
6262 CFLAGS="$CFLAGS -Wshadow"
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6265 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6266 cacheid=xorg_cv_cc_flag__Wshadow
6267 if eval \${$cacheid+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 int i;
6273 int
6274 main ()
6275 {
6276
6277 ;
6278 return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_link "$LINENO"; then :
6282 eval $cacheid=yes
6283 else
6284 eval $cacheid=no
6285 fi
6286 rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6288 fi
6289
6290
6291 CFLAGS="$xorg_testset_save_CFLAGS"
6292
6293 eval supported=\$$cacheid
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295 $as_echo "$supported" >&6; }
6296 if test "$supported" = "yes" ; then
6297 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6298 found="yes"
6299 fi
6300 fi
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316 xorg_testset_save_CFLAGS="$CFLAGS"
6317
6318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 int i;
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330 xorg_cv_cc_flag_unknown_warning_option=yes
6331 else
6332 xorg_cv_cc_flag_unknown_warning_option=no
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 fi
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6339 CFLAGS="$xorg_testset_save_CFLAGS"
6340 fi
6341
6342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 fi
6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 int i;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357 xorg_cv_cc_flag_unused_command_line_argument=yes
6358 else
6359 xorg_cv_cc_flag_unused_command_line_argument=no
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6366 CFLAGS="$xorg_testset_save_CFLAGS"
6367 fi
6368
6369 found="no"
6370
6371 if test $found = "no" ; then
6372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374 fi
6375
6376 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6378 fi
6379
6380 CFLAGS="$CFLAGS -Wcast-qual"
6381
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6383 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6384 cacheid=xorg_cv_cc_flag__Wcast_qual
6385 if eval \${$cacheid+:} false; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 int i;
6391 int
6392 main ()
6393 {
6394
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_link "$LINENO"; then :
6400 eval $cacheid=yes
6401 else
6402 eval $cacheid=no
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406 fi
6407
6408
6409 CFLAGS="$xorg_testset_save_CFLAGS"
6410
6411 eval supported=\$$cacheid
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6413 $as_echo "$supported" >&6; }
6414 if test "$supported" = "yes" ; then
6415 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6416 found="yes"
6417 fi
6418 fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434 xorg_testset_save_CFLAGS="$CFLAGS"
6435
6436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 int i;
6446 _ACEOF
6447 if ac_fn_c_try_compile "$LINENO"; then :
6448 xorg_cv_cc_flag_unknown_warning_option=yes
6449 else
6450 xorg_cv_cc_flag_unknown_warning_option=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6457 CFLAGS="$xorg_testset_save_CFLAGS"
6458 fi
6459
6460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463 fi
6464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 int i;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 xorg_cv_cc_flag_unused_command_line_argument=yes
6476 else
6477 xorg_cv_cc_flag_unused_command_line_argument=no
6478 fi
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6484 CFLAGS="$xorg_testset_save_CFLAGS"
6485 fi
6486
6487 found="no"
6488
6489 if test $found = "no" ; then
6490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492 fi
6493
6494 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496 fi
6497
6498 CFLAGS="$CFLAGS -Wmissing-noreturn"
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6501 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6502 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6503 if eval \${$cacheid+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 int i;
6509 int
6510 main ()
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_link "$LINENO"; then :
6518 eval $cacheid=yes
6519 else
6520 eval $cacheid=no
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 fi
6525
6526
6527 CFLAGS="$xorg_testset_save_CFLAGS"
6528
6529 eval supported=\$$cacheid
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6531 $as_echo "$supported" >&6; }
6532 if test "$supported" = "yes" ; then
6533 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6534 found="yes"
6535 fi
6536 fi
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 xorg_testset_save_CFLAGS="$CFLAGS"
6553
6554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6557 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6558 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 int i;
6564 _ACEOF
6565 if ac_fn_c_try_compile "$LINENO"; then :
6566 xorg_cv_cc_flag_unknown_warning_option=yes
6567 else
6568 xorg_cv_cc_flag_unknown_warning_option=no
6569 fi
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6573 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6575 CFLAGS="$xorg_testset_save_CFLAGS"
6576 fi
6577
6578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581 fi
6582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6584 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6585 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 int i;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 xorg_cv_cc_flag_unused_command_line_argument=yes
6594 else
6595 xorg_cv_cc_flag_unused_command_line_argument=no
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6600 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6602 CFLAGS="$xorg_testset_save_CFLAGS"
6603 fi
6604
6605 found="no"
6606
6607 if test $found = "no" ; then
6608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 fi
6611
6612 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614 fi
6615
6616 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6619 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6620 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6621 if eval \${$cacheid+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 int i;
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_c_try_link "$LINENO"; then :
6636 eval $cacheid=yes
6637 else
6638 eval $cacheid=no
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext \
6641 conftest$ac_exeext conftest.$ac_ext
6642 fi
6643
6644
6645 CFLAGS="$xorg_testset_save_CFLAGS"
6646
6647 eval supported=\$$cacheid
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6649 $as_echo "$supported" >&6; }
6650 if test "$supported" = "yes" ; then
6651 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6652 found="yes"
6653 fi
6654 fi
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670 xorg_testset_save_CFLAGS="$CFLAGS"
6671
6672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 int i;
6682 _ACEOF
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 xorg_cv_cc_flag_unknown_warning_option=yes
6685 else
6686 xorg_cv_cc_flag_unknown_warning_option=no
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6693 CFLAGS="$xorg_testset_save_CFLAGS"
6694 fi
6695
6696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699 fi
6700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 int i;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 xorg_cv_cc_flag_unused_command_line_argument=yes
6712 else
6713 xorg_cv_cc_flag_unused_command_line_argument=no
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6720 CFLAGS="$xorg_testset_save_CFLAGS"
6721 fi
6722
6723 found="no"
6724
6725 if test $found = "no" ; then
6726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728 fi
6729
6730 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732 fi
6733
6734 CFLAGS="$CFLAGS -Wredundant-decls"
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6737 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6738 cacheid=xorg_cv_cc_flag__Wredundant_decls
6739 if eval \${$cacheid+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 int i;
6745 int
6746 main ()
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"; then :
6754 eval $cacheid=yes
6755 else
6756 eval $cacheid=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 fi
6761
6762
6763 CFLAGS="$xorg_testset_save_CFLAGS"
6764
6765 eval supported=\$$cacheid
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6767 $as_echo "$supported" >&6; }
6768 if test "$supported" = "yes" ; then
6769 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6770 found="yes"
6771 fi
6772 fi
6773
6774
6775
6776 # These are currently disabled because they are noisy. They will be enabled
6777 # in the future once the codebase is sufficiently modernized to silence
6778 # them. For now, I don't want them to drown out the other warnings.
6779 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6780 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6781 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6782
6783 # Turn some warnings into errors, so we don't accidently get successful builds
6784 # when there are problems that should be fixed.
6785
6786 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 int i;
6812 _ACEOF
6813 if ac_fn_c_try_compile "$LINENO"; then :
6814 xorg_cv_cc_flag_unknown_warning_option=yes
6815 else
6816 xorg_cv_cc_flag_unknown_warning_option=no
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 fi
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6823 CFLAGS="$xorg_testset_save_CFLAGS"
6824 fi
6825
6826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6829 fi
6830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 int i;
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 xorg_cv_cc_flag_unused_command_line_argument=yes
6842 else
6843 xorg_cv_cc_flag_unused_command_line_argument=no
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 fi
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6850 CFLAGS="$xorg_testset_save_CFLAGS"
6851 fi
6852
6853 found="no"
6854
6855 if test $found = "no" ; then
6856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 fi
6859
6860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862 fi
6863
6864 CFLAGS="$CFLAGS -Werror=implicit"
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6867 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6868 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6869 if eval \${$cacheid+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 int i;
6875 int
6876 main ()
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"; then :
6884 eval $cacheid=yes
6885 else
6886 eval $cacheid=no
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 fi
6891
6892
6893 CFLAGS="$xorg_testset_save_CFLAGS"
6894
6895 eval supported=\$$cacheid
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897 $as_echo "$supported" >&6; }
6898 if test "$supported" = "yes" ; then
6899 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6900 found="yes"
6901 fi
6902 fi
6903
6904 if test $found = "no" ; then
6905 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907 fi
6908
6909 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911 fi
6912
6913 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6914
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6916 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6917 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6918 if eval \${$cacheid+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923 int i;
6924 int
6925 main ()
6926 {
6927
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933 eval $cacheid=yes
6934 else
6935 eval $cacheid=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 fi
6940
6941
6942 CFLAGS="$xorg_testset_save_CFLAGS"
6943
6944 eval supported=\$$cacheid
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6946 $as_echo "$supported" >&6; }
6947 if test "$supported" = "yes" ; then
6948 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6949 found="yes"
6950 fi
6951 fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967 xorg_testset_save_CFLAGS="$CFLAGS"
6968
6969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 int i;
6979 _ACEOF
6980 if ac_fn_c_try_compile "$LINENO"; then :
6981 xorg_cv_cc_flag_unknown_warning_option=yes
6982 else
6983 xorg_cv_cc_flag_unknown_warning_option=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6990 CFLAGS="$xorg_testset_save_CFLAGS"
6991 fi
6992
6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996 fi
6997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7005 int i;
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 xorg_cv_cc_flag_unused_command_line_argument=yes
7009 else
7010 xorg_cv_cc_flag_unused_command_line_argument=no
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7017 CFLAGS="$xorg_testset_save_CFLAGS"
7018 fi
7019
7020 found="no"
7021
7022 if test $found = "no" ; then
7023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025 fi
7026
7027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029 fi
7030
7031 CFLAGS="$CFLAGS -Werror=nonnull"
7032
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7034 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7035 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7036 if eval \${$cacheid+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 int i;
7042 int
7043 main ()
7044 {
7045
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 eval $cacheid=yes
7052 else
7053 eval $cacheid=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7057 fi
7058
7059
7060 CFLAGS="$xorg_testset_save_CFLAGS"
7061
7062 eval supported=\$$cacheid
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7064 $as_echo "$supported" >&6; }
7065 if test "$supported" = "yes" ; then
7066 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7067 found="yes"
7068 fi
7069 fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 xorg_testset_save_CFLAGS="$CFLAGS"
7086
7087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 int i;
7097 _ACEOF
7098 if ac_fn_c_try_compile "$LINENO"; then :
7099 xorg_cv_cc_flag_unknown_warning_option=yes
7100 else
7101 xorg_cv_cc_flag_unknown_warning_option=no
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7108 CFLAGS="$xorg_testset_save_CFLAGS"
7109 fi
7110
7111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114 fi
7115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 int i;
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 xorg_cv_cc_flag_unused_command_line_argument=yes
7127 else
7128 xorg_cv_cc_flag_unused_command_line_argument=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7135 CFLAGS="$xorg_testset_save_CFLAGS"
7136 fi
7137
7138 found="no"
7139
7140 if test $found = "no" ; then
7141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 fi
7144
7145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7147 fi
7148
7149 CFLAGS="$CFLAGS -Werror=init-self"
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7152 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7153 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7154 if eval \${$cacheid+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 int i;
7160 int
7161 main ()
7162 {
7163
7164 ;
7165 return 0;
7166 }
7167 _ACEOF
7168 if ac_fn_c_try_link "$LINENO"; then :
7169 eval $cacheid=yes
7170 else
7171 eval $cacheid=no
7172 fi
7173 rm -f core conftest.err conftest.$ac_objext \
7174 conftest$ac_exeext conftest.$ac_ext
7175 fi
7176
7177
7178 CFLAGS="$xorg_testset_save_CFLAGS"
7179
7180 eval supported=\$$cacheid
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7182 $as_echo "$supported" >&6; }
7183 if test "$supported" = "yes" ; then
7184 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7185 found="yes"
7186 fi
7187 fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203 xorg_testset_save_CFLAGS="$CFLAGS"
7204
7205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 int i;
7215 _ACEOF
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 xorg_cv_cc_flag_unknown_warning_option=yes
7218 else
7219 xorg_cv_cc_flag_unknown_warning_option=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7226 CFLAGS="$xorg_testset_save_CFLAGS"
7227 fi
7228
7229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232 fi
7233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 int i;
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244 xorg_cv_cc_flag_unused_command_line_argument=yes
7245 else
7246 xorg_cv_cc_flag_unused_command_line_argument=no
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 fi
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7253 CFLAGS="$xorg_testset_save_CFLAGS"
7254 fi
7255
7256 found="no"
7257
7258 if test $found = "no" ; then
7259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261 fi
7262
7263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7265 fi
7266
7267 CFLAGS="$CFLAGS -Werror=main"
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7270 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7271 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7272 if eval \${$cacheid+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 int i;
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_link "$LINENO"; then :
7287 eval $cacheid=yes
7288 else
7289 eval $cacheid=no
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293 fi
7294
7295
7296 CFLAGS="$xorg_testset_save_CFLAGS"
7297
7298 eval supported=\$$cacheid
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7300 $as_echo "$supported" >&6; }
7301 if test "$supported" = "yes" ; then
7302 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7303 found="yes"
7304 fi
7305 fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 xorg_testset_save_CFLAGS="$CFLAGS"
7322
7323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 int i;
7333 _ACEOF
7334 if ac_fn_c_try_compile "$LINENO"; then :
7335 xorg_cv_cc_flag_unknown_warning_option=yes
7336 else
7337 xorg_cv_cc_flag_unknown_warning_option=no
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7344 CFLAGS="$xorg_testset_save_CFLAGS"
7345 fi
7346
7347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350 fi
7351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 int i;
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362 xorg_cv_cc_flag_unused_command_line_argument=yes
7363 else
7364 xorg_cv_cc_flag_unused_command_line_argument=no
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7371 CFLAGS="$xorg_testset_save_CFLAGS"
7372 fi
7373
7374 found="no"
7375
7376 if test $found = "no" ; then
7377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 fi
7380
7381 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383 fi
7384
7385 CFLAGS="$CFLAGS -Werror=missing-braces"
7386
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7388 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7389 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7390 if eval \${$cacheid+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 int i;
7396 int
7397 main ()
7398 {
7399
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 eval $cacheid=yes
7406 else
7407 eval $cacheid=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
7411 fi
7412
7413
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7415
7416 eval supported=\$$cacheid
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7418 $as_echo "$supported" >&6; }
7419 if test "$supported" = "yes" ; then
7420 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7421 found="yes"
7422 fi
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439 xorg_testset_save_CFLAGS="$CFLAGS"
7440
7441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 int i;
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 xorg_cv_cc_flag_unknown_warning_option=yes
7454 else
7455 xorg_cv_cc_flag_unknown_warning_option=no
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7462 CFLAGS="$xorg_testset_save_CFLAGS"
7463 fi
7464
7465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 fi
7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 int i;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 xorg_cv_cc_flag_unused_command_line_argument=yes
7481 else
7482 xorg_cv_cc_flag_unused_command_line_argument=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490 fi
7491
7492 found="no"
7493
7494 if test $found = "no" ; then
7495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497 fi
7498
7499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501 fi
7502
7503 CFLAGS="$CFLAGS -Werror=sequence-point"
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7506 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7507 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7508 if eval \${$cacheid+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 int i;
7514 int
7515 main ()
7516 {
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"; then :
7523 eval $cacheid=yes
7524 else
7525 eval $cacheid=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext \
7528 conftest$ac_exeext conftest.$ac_ext
7529 fi
7530
7531
7532 CFLAGS="$xorg_testset_save_CFLAGS"
7533
7534 eval supported=\$$cacheid
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536 $as_echo "$supported" >&6; }
7537 if test "$supported" = "yes" ; then
7538 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7539 found="yes"
7540 fi
7541 fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 xorg_testset_save_CFLAGS="$CFLAGS"
7558
7559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 int i;
7569 _ACEOF
7570 if ac_fn_c_try_compile "$LINENO"; then :
7571 xorg_cv_cc_flag_unknown_warning_option=yes
7572 else
7573 xorg_cv_cc_flag_unknown_warning_option=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7580 CFLAGS="$xorg_testset_save_CFLAGS"
7581 fi
7582
7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586 fi
7587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int i;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"; then :
7598 xorg_cv_cc_flag_unused_command_line_argument=yes
7599 else
7600 xorg_cv_cc_flag_unused_command_line_argument=no
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7607 CFLAGS="$xorg_testset_save_CFLAGS"
7608 fi
7609
7610 found="no"
7611
7612 if test $found = "no" ; then
7613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615 fi
7616
7617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619 fi
7620
7621 CFLAGS="$CFLAGS -Werror=return-type"
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7624 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7625 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7626 if eval \${$cacheid+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 int i;
7632 int
7633 main ()
7634 {
7635
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 eval $cacheid=yes
7642 else
7643 eval $cacheid=no
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 fi
7648
7649
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652 eval supported=\$$cacheid
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7654 $as_echo "$supported" >&6; }
7655 if test "$supported" = "yes" ; then
7656 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7657 found="yes"
7658 fi
7659 fi
7660
7661 if test $found = "no" ; then
7662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 fi
7665
7666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668 fi
7669
7670 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7671
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7673 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7674 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7675 if eval \${$cacheid+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 int i;
7681 int
7682 main ()
7683 {
7684
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_link "$LINENO"; then :
7690 eval $cacheid=yes
7691 else
7692 eval $cacheid=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7696 fi
7697
7698
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700
7701 eval supported=\$$cacheid
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7703 $as_echo "$supported" >&6; }
7704 if test "$supported" = "yes" ; then
7705 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7706 found="yes"
7707 fi
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724 xorg_testset_save_CFLAGS="$CFLAGS"
7725
7726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 int i;
7736 _ACEOF
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 xorg_cv_cc_flag_unknown_warning_option=yes
7739 else
7740 xorg_cv_cc_flag_unknown_warning_option=no
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7747 CFLAGS="$xorg_testset_save_CFLAGS"
7748 fi
7749
7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753 fi
7754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 int i;
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765 xorg_cv_cc_flag_unused_command_line_argument=yes
7766 else
7767 xorg_cv_cc_flag_unused_command_line_argument=no
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7774 CFLAGS="$xorg_testset_save_CFLAGS"
7775 fi
7776
7777 found="no"
7778
7779 if test $found = "no" ; then
7780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782 fi
7783
7784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7786 fi
7787
7788 CFLAGS="$CFLAGS -Werror=trigraphs"
7789
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7791 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7792 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7793 if eval \${$cacheid+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 int i;
7799 int
7800 main ()
7801 {
7802
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_link "$LINENO"; then :
7808 eval $cacheid=yes
7809 else
7810 eval $cacheid=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 fi
7815
7816
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818
7819 eval supported=\$$cacheid
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7821 $as_echo "$supported" >&6; }
7822 if test "$supported" = "yes" ; then
7823 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7824 found="yes"
7825 fi
7826 fi
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842 xorg_testset_save_CFLAGS="$CFLAGS"
7843
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 int i;
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856 xorg_cv_cc_flag_unknown_warning_option=yes
7857 else
7858 xorg_cv_cc_flag_unknown_warning_option=no
7859 fi
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7865 CFLAGS="$xorg_testset_save_CFLAGS"
7866 fi
7867
7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7871 fi
7872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 int i;
7881 _ACEOF
7882 if ac_fn_c_try_compile "$LINENO"; then :
7883 xorg_cv_cc_flag_unused_command_line_argument=yes
7884 else
7885 xorg_cv_cc_flag_unused_command_line_argument=no
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7892 CFLAGS="$xorg_testset_save_CFLAGS"
7893 fi
7894
7895 found="no"
7896
7897 if test $found = "no" ; then
7898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 fi
7901
7902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7904 fi
7905
7906 CFLAGS="$CFLAGS -Werror=array-bounds"
7907
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7909 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7910 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7911 if eval \${$cacheid+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 int i;
7917 int
7918 main ()
7919 {
7920
7921 ;
7922 return 0;
7923 }
7924 _ACEOF
7925 if ac_fn_c_try_link "$LINENO"; then :
7926 eval $cacheid=yes
7927 else
7928 eval $cacheid=no
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 fi
7933
7934
7935 CFLAGS="$xorg_testset_save_CFLAGS"
7936
7937 eval supported=\$$cacheid
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7939 $as_echo "$supported" >&6; }
7940 if test "$supported" = "yes" ; then
7941 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7942 found="yes"
7943 fi
7944 fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 xorg_testset_save_CFLAGS="$CFLAGS"
7961
7962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 int i;
7972 _ACEOF
7973 if ac_fn_c_try_compile "$LINENO"; then :
7974 xorg_cv_cc_flag_unknown_warning_option=yes
7975 else
7976 xorg_cv_cc_flag_unknown_warning_option=no
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7983 CFLAGS="$xorg_testset_save_CFLAGS"
7984 fi
7985
7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989 fi
7990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998 int i;
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 xorg_cv_cc_flag_unused_command_line_argument=yes
8002 else
8003 xorg_cv_cc_flag_unused_command_line_argument=no
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8010 CFLAGS="$xorg_testset_save_CFLAGS"
8011 fi
8012
8013 found="no"
8014
8015 if test $found = "no" ; then
8016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8018 fi
8019
8020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022 fi
8023
8024 CFLAGS="$CFLAGS -Werror=write-strings"
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8027 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8028 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8029 if eval \${$cacheid+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8034 int i;
8035 int
8036 main ()
8037 {
8038
8039 ;
8040 return 0;
8041 }
8042 _ACEOF
8043 if ac_fn_c_try_link "$LINENO"; then :
8044 eval $cacheid=yes
8045 else
8046 eval $cacheid=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
8050 fi
8051
8052
8053 CFLAGS="$xorg_testset_save_CFLAGS"
8054
8055 eval supported=\$$cacheid
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8057 $as_echo "$supported" >&6; }
8058 if test "$supported" = "yes" ; then
8059 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8060 found="yes"
8061 fi
8062 fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 xorg_testset_save_CFLAGS="$CFLAGS"
8079
8080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 int i;
8090 _ACEOF
8091 if ac_fn_c_try_compile "$LINENO"; then :
8092 xorg_cv_cc_flag_unknown_warning_option=yes
8093 else
8094 xorg_cv_cc_flag_unknown_warning_option=no
8095 fi
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8101 CFLAGS="$xorg_testset_save_CFLAGS"
8102 fi
8103
8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107 fi
8108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 int i;
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 xorg_cv_cc_flag_unused_command_line_argument=yes
8120 else
8121 xorg_cv_cc_flag_unused_command_line_argument=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 fi
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8128 CFLAGS="$xorg_testset_save_CFLAGS"
8129 fi
8130
8131 found="no"
8132
8133 if test $found = "no" ; then
8134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136 fi
8137
8138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8140 fi
8141
8142 CFLAGS="$CFLAGS -Werror=address"
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8145 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8146 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8147 if eval \${$cacheid+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 int i;
8153 int
8154 main ()
8155 {
8156
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 eval $cacheid=yes
8163 else
8164 eval $cacheid=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 fi
8169
8170
8171 CFLAGS="$xorg_testset_save_CFLAGS"
8172
8173 eval supported=\$$cacheid
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8175 $as_echo "$supported" >&6; }
8176 if test "$supported" = "yes" ; then
8177 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8178 found="yes"
8179 fi
8180 fi
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196 xorg_testset_save_CFLAGS="$CFLAGS"
8197
8198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 int i;
8208 _ACEOF
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 xorg_cv_cc_flag_unknown_warning_option=yes
8211 else
8212 xorg_cv_cc_flag_unknown_warning_option=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8219 CFLAGS="$xorg_testset_save_CFLAGS"
8220 fi
8221
8222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225 fi
8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 int i;
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 xorg_cv_cc_flag_unused_command_line_argument=yes
8238 else
8239 xorg_cv_cc_flag_unused_command_line_argument=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246 CFLAGS="$xorg_testset_save_CFLAGS"
8247 fi
8248
8249 found="no"
8250
8251 if test $found = "no" ; then
8252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254 fi
8255
8256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 fi
8259
8260 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8263 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8264 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8265 if eval \${$cacheid+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 int i;
8271 int
8272 main ()
8273 {
8274
8275 ;
8276 return 0;
8277 }
8278 _ACEOF
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 eval $cacheid=yes
8281 else
8282 eval $cacheid=no
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 fi
8287
8288
8289 CFLAGS="$xorg_testset_save_CFLAGS"
8290
8291 eval supported=\$$cacheid
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8293 $as_echo "$supported" >&6; }
8294 if test "$supported" = "yes" ; then
8295 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8296 found="yes"
8297 fi
8298 fi
8299
8300 if test $found = "no" ; then
8301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303 fi
8304
8305 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307 fi
8308
8309 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8310
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8312 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8313 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8314 if eval \${$cacheid+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 int i;
8320 int
8321 main ()
8322 {
8323
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_link "$LINENO"; then :
8329 eval $cacheid=yes
8330 else
8331 eval $cacheid=no
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8335 fi
8336
8337
8338 CFLAGS="$xorg_testset_save_CFLAGS"
8339
8340 eval supported=\$$cacheid
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8342 $as_echo "$supported" >&6; }
8343 if test "$supported" = "yes" ; then
8344 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8345 found="yes"
8346 fi
8347 fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363 xorg_testset_save_CFLAGS="$CFLAGS"
8364
8365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8368 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8369 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 int i;
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 xorg_cv_cc_flag_unknown_warning_option=yes
8378 else
8379 xorg_cv_cc_flag_unknown_warning_option=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8384 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8386 CFLAGS="$xorg_testset_save_CFLAGS"
8387 fi
8388
8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392 fi
8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8395 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8396 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 int i;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 xorg_cv_cc_flag_unused_command_line_argument=yes
8405 else
8406 xorg_cv_cc_flag_unused_command_line_argument=no
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8411 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8413 CFLAGS="$xorg_testset_save_CFLAGS"
8414 fi
8415
8416 found="no"
8417
8418 if test $found = "no" ; then
8419 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 fi
8422
8423 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425 fi
8426
8427 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8430 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8431 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8432 if eval \${$cacheid+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 int i;
8438 int
8439 main ()
8440 {
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 eval $cacheid=yes
8448 else
8449 eval $cacheid=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 fi
8454
8455
8456 CFLAGS="$xorg_testset_save_CFLAGS"
8457
8458 eval supported=\$$cacheid
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8460 $as_echo "$supported" >&6; }
8461 if test "$supported" = "yes" ; then
8462 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8463 found="yes"
8464 fi
8465 fi
8466
8467 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8468 else
8469 { $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
8470 $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;}
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484 xorg_testset_save_CFLAGS="$CFLAGS"
8485
8486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 int i;
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 xorg_cv_cc_flag_unknown_warning_option=yes
8499 else
8500 xorg_cv_cc_flag_unknown_warning_option=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8507 CFLAGS="$xorg_testset_save_CFLAGS"
8508 fi
8509
8510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513 fi
8514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 int i;
8523 _ACEOF
8524 if ac_fn_c_try_compile "$LINENO"; then :
8525 xorg_cv_cc_flag_unused_command_line_argument=yes
8526 else
8527 xorg_cv_cc_flag_unused_command_line_argument=no
8528 fi
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534 CFLAGS="$xorg_testset_save_CFLAGS"
8535 fi
8536
8537 found="no"
8538
8539 if test $found = "no" ; then
8540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 fi
8543
8544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546 fi
8547
8548 CFLAGS="$CFLAGS -Wimplicit"
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8551 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8552 cacheid=xorg_cv_cc_flag__Wimplicit
8553 if eval \${$cacheid+:} false; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 int i;
8559 int
8560 main ()
8561 {
8562
8563 ;
8564 return 0;
8565 }
8566 _ACEOF
8567 if ac_fn_c_try_link "$LINENO"; then :
8568 eval $cacheid=yes
8569 else
8570 eval $cacheid=no
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 fi
8575
8576
8577 CFLAGS="$xorg_testset_save_CFLAGS"
8578
8579 eval supported=\$$cacheid
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581 $as_echo "$supported" >&6; }
8582 if test "$supported" = "yes" ; then
8583 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8584 found="yes"
8585 fi
8586 fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 xorg_testset_save_CFLAGS="$CFLAGS"
8603
8604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 int i;
8614 _ACEOF
8615 if ac_fn_c_try_compile "$LINENO"; then :
8616 xorg_cv_cc_flag_unknown_warning_option=yes
8617 else
8618 xorg_cv_cc_flag_unknown_warning_option=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8625 CFLAGS="$xorg_testset_save_CFLAGS"
8626 fi
8627
8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631 fi
8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 int i;
8641 _ACEOF
8642 if ac_fn_c_try_compile "$LINENO"; then :
8643 xorg_cv_cc_flag_unused_command_line_argument=yes
8644 else
8645 xorg_cv_cc_flag_unused_command_line_argument=no
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8652 CFLAGS="$xorg_testset_save_CFLAGS"
8653 fi
8654
8655 found="no"
8656
8657 if test $found = "no" ; then
8658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660 fi
8661
8662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 fi
8665
8666 CFLAGS="$CFLAGS -Wnonnull"
8667
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8669 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8670 cacheid=xorg_cv_cc_flag__Wnonnull
8671 if eval \${$cacheid+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 int i;
8677 int
8678 main ()
8679 {
8680
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_link "$LINENO"; then :
8686 eval $cacheid=yes
8687 else
8688 eval $cacheid=no
8689 fi
8690 rm -f core conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 fi
8693
8694
8695 CFLAGS="$xorg_testset_save_CFLAGS"
8696
8697 eval supported=\$$cacheid
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8699 $as_echo "$supported" >&6; }
8700 if test "$supported" = "yes" ; then
8701 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8702 found="yes"
8703 fi
8704 fi
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 xorg_testset_save_CFLAGS="$CFLAGS"
8721
8722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 int i;
8732 _ACEOF
8733 if ac_fn_c_try_compile "$LINENO"; then :
8734 xorg_cv_cc_flag_unknown_warning_option=yes
8735 else
8736 xorg_cv_cc_flag_unknown_warning_option=no
8737 fi
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8743 CFLAGS="$xorg_testset_save_CFLAGS"
8744 fi
8745
8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749 fi
8750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 int i;
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 xorg_cv_cc_flag_unused_command_line_argument=yes
8762 else
8763 xorg_cv_cc_flag_unused_command_line_argument=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8770 CFLAGS="$xorg_testset_save_CFLAGS"
8771 fi
8772
8773 found="no"
8774
8775 if test $found = "no" ; then
8776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778 fi
8779
8780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782 fi
8783
8784 CFLAGS="$CFLAGS -Winit-self"
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8787 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8788 cacheid=xorg_cv_cc_flag__Winit_self
8789 if eval \${$cacheid+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 int i;
8795 int
8796 main ()
8797 {
8798
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804 eval $cacheid=yes
8805 else
8806 eval $cacheid=no
8807 fi
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 fi
8811
8812
8813 CFLAGS="$xorg_testset_save_CFLAGS"
8814
8815 eval supported=\$$cacheid
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8817 $as_echo "$supported" >&6; }
8818 if test "$supported" = "yes" ; then
8819 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8820 found="yes"
8821 fi
8822 fi
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838 xorg_testset_save_CFLAGS="$CFLAGS"
8839
8840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849 int i;
8850 _ACEOF
8851 if ac_fn_c_try_compile "$LINENO"; then :
8852 xorg_cv_cc_flag_unknown_warning_option=yes
8853 else
8854 xorg_cv_cc_flag_unknown_warning_option=no
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 fi
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8861 CFLAGS="$xorg_testset_save_CFLAGS"
8862 fi
8863
8864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867 fi
8868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 int i;
8877 _ACEOF
8878 if ac_fn_c_try_compile "$LINENO"; then :
8879 xorg_cv_cc_flag_unused_command_line_argument=yes
8880 else
8881 xorg_cv_cc_flag_unused_command_line_argument=no
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8888 CFLAGS="$xorg_testset_save_CFLAGS"
8889 fi
8890
8891 found="no"
8892
8893 if test $found = "no" ; then
8894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896 fi
8897
8898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900 fi
8901
8902 CFLAGS="$CFLAGS -Wmain"
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8905 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8906 cacheid=xorg_cv_cc_flag__Wmain
8907 if eval \${$cacheid+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 int i;
8913 int
8914 main ()
8915 {
8916
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_link "$LINENO"; then :
8922 eval $cacheid=yes
8923 else
8924 eval $cacheid=no
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext \
8927 conftest$ac_exeext conftest.$ac_ext
8928 fi
8929
8930
8931 CFLAGS="$xorg_testset_save_CFLAGS"
8932
8933 eval supported=\$$cacheid
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8935 $as_echo "$supported" >&6; }
8936 if test "$supported" = "yes" ; then
8937 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8938 found="yes"
8939 fi
8940 fi
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956 xorg_testset_save_CFLAGS="$CFLAGS"
8957
8958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 int i;
8968 _ACEOF
8969 if ac_fn_c_try_compile "$LINENO"; then :
8970 xorg_cv_cc_flag_unknown_warning_option=yes
8971 else
8972 xorg_cv_cc_flag_unknown_warning_option=no
8973 fi
8974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8979 CFLAGS="$xorg_testset_save_CFLAGS"
8980 fi
8981
8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985 fi
8986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 int i;
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"; then :
8997 xorg_cv_cc_flag_unused_command_line_argument=yes
8998 else
8999 xorg_cv_cc_flag_unused_command_line_argument=no
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9006 CFLAGS="$xorg_testset_save_CFLAGS"
9007 fi
9008
9009 found="no"
9010
9011 if test $found = "no" ; then
9012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014 fi
9015
9016 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018 fi
9019
9020 CFLAGS="$CFLAGS -Wmissing-braces"
9021
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9023 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9024 cacheid=xorg_cv_cc_flag__Wmissing_braces
9025 if eval \${$cacheid+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030 int i;
9031 int
9032 main ()
9033 {
9034
9035 ;
9036 return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_link "$LINENO"; then :
9040 eval $cacheid=yes
9041 else
9042 eval $cacheid=no
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
9046 fi
9047
9048
9049 CFLAGS="$xorg_testset_save_CFLAGS"
9050
9051 eval supported=\$$cacheid
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9053 $as_echo "$supported" >&6; }
9054 if test "$supported" = "yes" ; then
9055 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9056 found="yes"
9057 fi
9058 fi
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074 xorg_testset_save_CFLAGS="$CFLAGS"
9075
9076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 int i;
9086 _ACEOF
9087 if ac_fn_c_try_compile "$LINENO"; then :
9088 xorg_cv_cc_flag_unknown_warning_option=yes
9089 else
9090 xorg_cv_cc_flag_unknown_warning_option=no
9091 fi
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9097 CFLAGS="$xorg_testset_save_CFLAGS"
9098 fi
9099
9100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 fi
9104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 int i;
9113 _ACEOF
9114 if ac_fn_c_try_compile "$LINENO"; then :
9115 xorg_cv_cc_flag_unused_command_line_argument=yes
9116 else
9117 xorg_cv_cc_flag_unused_command_line_argument=no
9118 fi
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9124 CFLAGS="$xorg_testset_save_CFLAGS"
9125 fi
9126
9127 found="no"
9128
9129 if test $found = "no" ; then
9130 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 fi
9133
9134 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136 fi
9137
9138 CFLAGS="$CFLAGS -Wsequence-point"
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9141 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9142 cacheid=xorg_cv_cc_flag__Wsequence_point
9143 if eval \${$cacheid+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 int i;
9149 int
9150 main ()
9151 {
9152
9153 ;
9154 return 0;
9155 }
9156 _ACEOF
9157 if ac_fn_c_try_link "$LINENO"; then :
9158 eval $cacheid=yes
9159 else
9160 eval $cacheid=no
9161 fi
9162 rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
9164 fi
9165
9166
9167 CFLAGS="$xorg_testset_save_CFLAGS"
9168
9169 eval supported=\$$cacheid
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9171 $as_echo "$supported" >&6; }
9172 if test "$supported" = "yes" ; then
9173 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9174 found="yes"
9175 fi
9176 fi
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192 xorg_testset_save_CFLAGS="$CFLAGS"
9193
9194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 int i;
9204 _ACEOF
9205 if ac_fn_c_try_compile "$LINENO"; then :
9206 xorg_cv_cc_flag_unknown_warning_option=yes
9207 else
9208 xorg_cv_cc_flag_unknown_warning_option=no
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9215 CFLAGS="$xorg_testset_save_CFLAGS"
9216 fi
9217
9218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 fi
9222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 int i;
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233 xorg_cv_cc_flag_unused_command_line_argument=yes
9234 else
9235 xorg_cv_cc_flag_unused_command_line_argument=no
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9242 CFLAGS="$xorg_testset_save_CFLAGS"
9243 fi
9244
9245 found="no"
9246
9247 if test $found = "no" ; then
9248 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250 fi
9251
9252 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254 fi
9255
9256 CFLAGS="$CFLAGS -Wreturn-type"
9257
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9259 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9260 cacheid=xorg_cv_cc_flag__Wreturn_type
9261 if eval \${$cacheid+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266 int i;
9267 int
9268 main ()
9269 {
9270
9271 ;
9272 return 0;
9273 }
9274 _ACEOF
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 eval $cacheid=yes
9277 else
9278 eval $cacheid=no
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 fi
9283
9284
9285 CFLAGS="$xorg_testset_save_CFLAGS"
9286
9287 eval supported=\$$cacheid
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9289 $as_echo "$supported" >&6; }
9290 if test "$supported" = "yes" ; then
9291 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9292 found="yes"
9293 fi
9294 fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310 xorg_testset_save_CFLAGS="$CFLAGS"
9311
9312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 int i;
9322 _ACEOF
9323 if ac_fn_c_try_compile "$LINENO"; then :
9324 xorg_cv_cc_flag_unknown_warning_option=yes
9325 else
9326 xorg_cv_cc_flag_unknown_warning_option=no
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9333 CFLAGS="$xorg_testset_save_CFLAGS"
9334 fi
9335
9336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 fi
9340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 int i;
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"; then :
9351 xorg_cv_cc_flag_unused_command_line_argument=yes
9352 else
9353 xorg_cv_cc_flag_unused_command_line_argument=no
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9360 CFLAGS="$xorg_testset_save_CFLAGS"
9361 fi
9362
9363 found="no"
9364
9365 if test $found = "no" ; then
9366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368 fi
9369
9370 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372 fi
9373
9374 CFLAGS="$CFLAGS -Wtrigraphs"
9375
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9377 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9378 cacheid=xorg_cv_cc_flag__Wtrigraphs
9379 if eval \${$cacheid+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 int i;
9385 int
9386 main ()
9387 {
9388
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394 eval $cacheid=yes
9395 else
9396 eval $cacheid=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 fi
9401
9402
9403 CFLAGS="$xorg_testset_save_CFLAGS"
9404
9405 eval supported=\$$cacheid
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9407 $as_echo "$supported" >&6; }
9408 if test "$supported" = "yes" ; then
9409 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9410 found="yes"
9411 fi
9412 fi
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428 xorg_testset_save_CFLAGS="$CFLAGS"
9429
9430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 int i;
9440 _ACEOF
9441 if ac_fn_c_try_compile "$LINENO"; then :
9442 xorg_cv_cc_flag_unknown_warning_option=yes
9443 else
9444 xorg_cv_cc_flag_unknown_warning_option=no
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9451 CFLAGS="$xorg_testset_save_CFLAGS"
9452 fi
9453
9454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 fi
9458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 int i;
9467 _ACEOF
9468 if ac_fn_c_try_compile "$LINENO"; then :
9469 xorg_cv_cc_flag_unused_command_line_argument=yes
9470 else
9471 xorg_cv_cc_flag_unused_command_line_argument=no
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9478 CFLAGS="$xorg_testset_save_CFLAGS"
9479 fi
9480
9481 found="no"
9482
9483 if test $found = "no" ; then
9484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486 fi
9487
9488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490 fi
9491
9492 CFLAGS="$CFLAGS -Warray-bounds"
9493
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9495 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9496 cacheid=xorg_cv_cc_flag__Warray_bounds
9497 if eval \${$cacheid+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 int i;
9503 int
9504 main ()
9505 {
9506
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512 eval $cacheid=yes
9513 else
9514 eval $cacheid=no
9515 fi
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 fi
9519
9520
9521 CFLAGS="$xorg_testset_save_CFLAGS"
9522
9523 eval supported=\$$cacheid
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9525 $as_echo "$supported" >&6; }
9526 if test "$supported" = "yes" ; then
9527 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9528 found="yes"
9529 fi
9530 fi
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 xorg_testset_save_CFLAGS="$CFLAGS"
9547
9548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557 int i;
9558 _ACEOF
9559 if ac_fn_c_try_compile "$LINENO"; then :
9560 xorg_cv_cc_flag_unknown_warning_option=yes
9561 else
9562 xorg_cv_cc_flag_unknown_warning_option=no
9563 fi
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9569 CFLAGS="$xorg_testset_save_CFLAGS"
9570 fi
9571
9572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575 fi
9576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 int i;
9585 _ACEOF
9586 if ac_fn_c_try_compile "$LINENO"; then :
9587 xorg_cv_cc_flag_unused_command_line_argument=yes
9588 else
9589 xorg_cv_cc_flag_unused_command_line_argument=no
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9596 CFLAGS="$xorg_testset_save_CFLAGS"
9597 fi
9598
9599 found="no"
9600
9601 if test $found = "no" ; then
9602 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604 fi
9605
9606 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608 fi
9609
9610 CFLAGS="$CFLAGS -Wwrite-strings"
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9613 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9614 cacheid=xorg_cv_cc_flag__Wwrite_strings
9615 if eval \${$cacheid+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9620 int i;
9621 int
9622 main ()
9623 {
9624
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9630 eval $cacheid=yes
9631 else
9632 eval $cacheid=no
9633 fi
9634 rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 fi
9637
9638
9639 CFLAGS="$xorg_testset_save_CFLAGS"
9640
9641 eval supported=\$$cacheid
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9643 $as_echo "$supported" >&6; }
9644 if test "$supported" = "yes" ; then
9645 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9646 found="yes"
9647 fi
9648 fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664 xorg_testset_save_CFLAGS="$CFLAGS"
9665
9666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 int i;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"; then :
9678 xorg_cv_cc_flag_unknown_warning_option=yes
9679 else
9680 xorg_cv_cc_flag_unknown_warning_option=no
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9687 CFLAGS="$xorg_testset_save_CFLAGS"
9688 fi
9689
9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693 fi
9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699 else
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 int i;
9703 _ACEOF
9704 if ac_fn_c_try_compile "$LINENO"; then :
9705 xorg_cv_cc_flag_unused_command_line_argument=yes
9706 else
9707 xorg_cv_cc_flag_unused_command_line_argument=no
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9714 CFLAGS="$xorg_testset_save_CFLAGS"
9715 fi
9716
9717 found="no"
9718
9719 if test $found = "no" ; then
9720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722 fi
9723
9724 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726 fi
9727
9728 CFLAGS="$CFLAGS -Waddress"
9729
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9731 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9732 cacheid=xorg_cv_cc_flag__Waddress
9733 if eval \${$cacheid+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 int
9740 main ()
9741 {
9742
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_link "$LINENO"; then :
9748 eval $cacheid=yes
9749 else
9750 eval $cacheid=no
9751 fi
9752 rm -f core conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754 fi
9755
9756
9757 CFLAGS="$xorg_testset_save_CFLAGS"
9758
9759 eval supported=\$$cacheid
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9761 $as_echo "$supported" >&6; }
9762 if test "$supported" = "yes" ; then
9763 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9764 found="yes"
9765 fi
9766 fi
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782 xorg_testset_save_CFLAGS="$CFLAGS"
9783
9784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9787 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9788 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9793 int i;
9794 _ACEOF
9795 if ac_fn_c_try_compile "$LINENO"; then :
9796 xorg_cv_cc_flag_unknown_warning_option=yes
9797 else
9798 xorg_cv_cc_flag_unknown_warning_option=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9803 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9805 CFLAGS="$xorg_testset_save_CFLAGS"
9806 fi
9807
9808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811 fi
9812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9814 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9815 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 int i;
9821 _ACEOF
9822 if ac_fn_c_try_compile "$LINENO"; then :
9823 xorg_cv_cc_flag_unused_command_line_argument=yes
9824 else
9825 xorg_cv_cc_flag_unused_command_line_argument=no
9826 fi
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9830 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9832 CFLAGS="$xorg_testset_save_CFLAGS"
9833 fi
9834
9835 found="no"
9836
9837 if test $found = "no" ; then
9838 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840 fi
9841
9842 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844 fi
9845
9846 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9847
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9849 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9850 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9851 if eval \${$cacheid+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 int i;
9857 int
9858 main ()
9859 {
9860
9861 ;
9862 return 0;
9863 }
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866 eval $cacheid=yes
9867 else
9868 eval $cacheid=no
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 fi
9873
9874
9875 CFLAGS="$xorg_testset_save_CFLAGS"
9876
9877 eval supported=\$$cacheid
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9879 $as_echo "$supported" >&6; }
9880 if test "$supported" = "yes" ; then
9881 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9882 found="yes"
9883 fi
9884 fi
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900 xorg_testset_save_CFLAGS="$CFLAGS"
9901
9902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9906 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9911 int i;
9912 _ACEOF
9913 if ac_fn_c_try_compile "$LINENO"; then :
9914 xorg_cv_cc_flag_unknown_warning_option=yes
9915 else
9916 xorg_cv_cc_flag_unknown_warning_option=no
9917 fi
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 fi
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9923 CFLAGS="$xorg_testset_save_CFLAGS"
9924 fi
9925
9926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929 fi
9930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int i;
9939 _ACEOF
9940 if ac_fn_c_try_compile "$LINENO"; then :
9941 xorg_cv_cc_flag_unused_command_line_argument=yes
9942 else
9943 xorg_cv_cc_flag_unused_command_line_argument=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9950 CFLAGS="$xorg_testset_save_CFLAGS"
9951 fi
9952
9953 found="no"
9954
9955 if test $found = "no" ; then
9956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958 fi
9959
9960 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962 fi
9963
9964 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9965
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9967 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9968 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9969 if eval \${$cacheid+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9974 int i;
9975 int
9976 main ()
9977 {
9978
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 eval $cacheid=yes
9985 else
9986 eval $cacheid=no
9987 fi
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 fi
9991
9992
9993 CFLAGS="$xorg_testset_save_CFLAGS"
9994
9995 eval supported=\$$cacheid
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9997 $as_echo "$supported" >&6; }
9998 if test "$supported" = "yes" ; then
9999 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10000 found="yes"
10001 fi
10002 fi
10003
10004
10005 fi
10006
10007
10008
10009
10010
10011
10012
10013 CWARNFLAGS="$BASE_CFLAGS"
10014 if test "x$GCC" = xyes ; then
10015 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10016 fi
10017
10018
10019
10020
10021
10022
10023
10024
10025 # Check whether --enable-strict-compilation was given.
10026 if test "${enable_strict_compilation+set}" = set; then :
10027 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10028 else
10029 STRICT_COMPILE=no
10030 fi
10031
10032
10033
10034
10035
10036
10037 STRICT_CFLAGS=""
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051 xorg_testset_save_CFLAGS="$CFLAGS"
10052
10053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 int i;
10063 _ACEOF
10064 if ac_fn_c_try_compile "$LINENO"; then :
10065 xorg_cv_cc_flag_unknown_warning_option=yes
10066 else
10067 xorg_cv_cc_flag_unknown_warning_option=no
10068 fi
10069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10074 CFLAGS="$xorg_testset_save_CFLAGS"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080 fi
10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 int i;
10090 _ACEOF
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092 xorg_cv_cc_flag_unused_command_line_argument=yes
10093 else
10094 xorg_cv_cc_flag_unused_command_line_argument=no
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 fi
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10101 CFLAGS="$xorg_testset_save_CFLAGS"
10102 fi
10103
10104 found="no"
10105
10106 if test $found = "no" ; then
10107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109 fi
10110
10111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113 fi
10114
10115 CFLAGS="$CFLAGS -pedantic"
10116
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10118 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10119 cacheid=xorg_cv_cc_flag__pedantic
10120 if eval \${$cacheid+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int i;
10126 int
10127 main ()
10128 {
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135 eval $cacheid=yes
10136 else
10137 eval $cacheid=no
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 fi
10142
10143
10144 CFLAGS="$xorg_testset_save_CFLAGS"
10145
10146 eval supported=\$$cacheid
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10148 $as_echo "$supported" >&6; }
10149 if test "$supported" = "yes" ; then
10150 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10151 found="yes"
10152 fi
10153 fi
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 xorg_testset_save_CFLAGS="$CFLAGS"
10170
10171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 int i;
10181 _ACEOF
10182 if ac_fn_c_try_compile "$LINENO"; then :
10183 xorg_cv_cc_flag_unknown_warning_option=yes
10184 else
10185 xorg_cv_cc_flag_unknown_warning_option=no
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188 fi
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10192 CFLAGS="$xorg_testset_save_CFLAGS"
10193 fi
10194
10195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198 fi
10199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207 int i;
10208 _ACEOF
10209 if ac_fn_c_try_compile "$LINENO"; then :
10210 xorg_cv_cc_flag_unused_command_line_argument=yes
10211 else
10212 xorg_cv_cc_flag_unused_command_line_argument=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 fi
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10219 CFLAGS="$xorg_testset_save_CFLAGS"
10220 fi
10221
10222 found="no"
10223
10224 if test $found = "no" ; then
10225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227 fi
10228
10229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231 fi
10232
10233 CFLAGS="$CFLAGS -Werror"
10234
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10236 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10237 cacheid=xorg_cv_cc_flag__Werror
10238 if eval \${$cacheid+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 int i;
10244 int
10245 main ()
10246 {
10247
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 eval $cacheid=yes
10254 else
10255 eval $cacheid=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 fi
10260
10261
10262 CFLAGS="$xorg_testset_save_CFLAGS"
10263
10264 eval supported=\$$cacheid
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10266 $as_echo "$supported" >&6; }
10267 if test "$supported" = "yes" ; then
10268 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10269 found="yes"
10270 fi
10271 fi
10272
10273 if test $found = "no" ; then
10274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 fi
10277
10278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280 fi
10281
10282 CFLAGS="$CFLAGS -errwarn"
10283
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10285 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10286 cacheid=xorg_cv_cc_flag__errwarn
10287 if eval \${$cacheid+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 int i;
10293 int
10294 main ()
10295 {
10296
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 eval $cacheid=yes
10303 else
10304 eval $cacheid=no
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 fi
10309
10310
10311 CFLAGS="$xorg_testset_save_CFLAGS"
10312
10313 eval supported=\$$cacheid
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10315 $as_echo "$supported" >&6; }
10316 if test "$supported" = "yes" ; then
10317 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10318 found="yes"
10319 fi
10320 fi
10321
10322
10323
10324 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10325 # activate it with -Werror, so we add it here explicitly.
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339 xorg_testset_save_CFLAGS="$CFLAGS"
10340
10341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 int i;
10351 _ACEOF
10352 if ac_fn_c_try_compile "$LINENO"; then :
10353 xorg_cv_cc_flag_unknown_warning_option=yes
10354 else
10355 xorg_cv_cc_flag_unknown_warning_option=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10362 CFLAGS="$xorg_testset_save_CFLAGS"
10363 fi
10364
10365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368 fi
10369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377 int i;
10378 _ACEOF
10379 if ac_fn_c_try_compile "$LINENO"; then :
10380 xorg_cv_cc_flag_unused_command_line_argument=yes
10381 else
10382 xorg_cv_cc_flag_unused_command_line_argument=no
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 fi
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10389 CFLAGS="$xorg_testset_save_CFLAGS"
10390 fi
10391
10392 found="no"
10393
10394 if test $found = "no" ; then
10395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397 fi
10398
10399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10401 fi
10402
10403 CFLAGS="$CFLAGS -Werror=attributes"
10404
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10406 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10407 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10408 if eval \${$cacheid+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 int i;
10414 int
10415 main ()
10416 {
10417
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"; then :
10423 eval $cacheid=yes
10424 else
10425 eval $cacheid=no
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429 fi
10430
10431
10432 CFLAGS="$xorg_testset_save_CFLAGS"
10433
10434 eval supported=\$$cacheid
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10436 $as_echo "$supported" >&6; }
10437 if test "$supported" = "yes" ; then
10438 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10439 found="yes"
10440 fi
10441 fi
10442
10443
10444
10445 if test "x$STRICT_COMPILE" = "xyes"; then
10446 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10447 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10448 fi
10449
10450
10451
10452
10453
10454
10455 cat >>confdefs.h <<_ACEOF
10456 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10457 _ACEOF
10458
10459 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10460 if test "x$PVM" = "x"; then
10461 PVM="0"
10462 fi
10463
10464 cat >>confdefs.h <<_ACEOF
10465 #define PACKAGE_VERSION_MINOR $PVM
10466 _ACEOF
10467
10468 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10469 if test "x$PVP" = "x"; then
10470 PVP="0"
10471 fi
10472
10473 cat >>confdefs.h <<_ACEOF
10474 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10475 _ACEOF
10476
10477
10478
10479 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10480 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10481 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10482 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10483
10484
10485
10486
10487 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10488 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10489 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10490 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10491 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10492
10493
10494
10495
10496
10497
10498 if test x$APP_MAN_SUFFIX = x ; then
10499 APP_MAN_SUFFIX=1
10500 fi
10501 if test x$APP_MAN_DIR = x ; then
10502 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10503 fi
10504
10505 if test x$LIB_MAN_SUFFIX = x ; then
10506 LIB_MAN_SUFFIX=3
10507 fi
10508 if test x$LIB_MAN_DIR = x ; then
10509 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10510 fi
10511
10512 if test x$FILE_MAN_SUFFIX = x ; then
10513 case $host_os in
10514 solaris*) FILE_MAN_SUFFIX=4 ;;
10515 *) FILE_MAN_SUFFIX=5 ;;
10516 esac
10517 fi
10518 if test x$FILE_MAN_DIR = x ; then
10519 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10520 fi
10521
10522 if test x$MISC_MAN_SUFFIX = x ; then
10523 case $host_os in
10524 solaris*) MISC_MAN_SUFFIX=5 ;;
10525 *) MISC_MAN_SUFFIX=7 ;;
10526 esac
10527 fi
10528 if test x$MISC_MAN_DIR = x ; then
10529 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10530 fi
10531
10532 if test x$DRIVER_MAN_SUFFIX = x ; then
10533 case $host_os in
10534 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10535 *) DRIVER_MAN_SUFFIX=4 ;;
10536 esac
10537 fi
10538 if test x$DRIVER_MAN_DIR = x ; then
10539 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10540 fi
10541
10542 if test x$ADMIN_MAN_SUFFIX = x ; then
10543 case $host_os in
10544 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10545 *) ADMIN_MAN_SUFFIX=8 ;;
10546 esac
10547 fi
10548 if test x$ADMIN_MAN_DIR = x ; then
10549 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10550 fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566 XORG_MAN_PAGE="X Version 11"
10567
10568 MAN_SUBSTS="\
10569 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10570 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10571 -e 's|__xservername__|Xorg|g' \
10572 -e 's|__xconfigfile__|xorg.conf|g' \
10573 -e 's|__projectroot__|\$(prefix)|g' \
10574 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10575 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10576 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10577 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10578 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10579 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10580 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10581
10582
10583
10584 # Check whether --enable-silent-rules was given.
10585 if test "${enable_silent_rules+set}" = set; then :
10586 enableval=$enable_silent_rules;
10587 fi
10588
10589 case $enable_silent_rules in
10590 yes) AM_DEFAULT_VERBOSITY=0;;
10591 no) AM_DEFAULT_VERBOSITY=1;;
10592 *) AM_DEFAULT_VERBOSITY=0;;
10593 esac
10594 am_make=${MAKE-make}
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10596 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10597 if ${am_cv_make_support_nested_variables+:} false; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 if $as_echo 'TRUE=$(BAR$(V))
10601 BAR0=false
10602 BAR1=true
10603 V=1
10604 am__doit:
10605 @$(TRUE)
10606 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10607 am_cv_make_support_nested_variables=yes
10608 else
10609 am_cv_make_support_nested_variables=no
10610 fi
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10613 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10614 if test $am_cv_make_support_nested_variables = yes; then
10615 AM_V='$(V)'
10616 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10617 else
10618 AM_V=$AM_DEFAULT_VERBOSITY
10619 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10620 fi
10621 AM_BACKSLASH='\'
10622
10623
10624
10625 # Initialize libtool
10626 # Check whether --enable-static was given.
10627 if test "${enable_static+set}" = set; then :
10628 enableval=$enable_static; p=${PACKAGE-default}
10629 case $enableval in
10630 yes) enable_static=yes ;;
10631 no) enable_static=no ;;
10632 *)
10633 enable_static=no
10634 # Look at the argument we got. We use all the common list separators.
10635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10636 for pkg in $enableval; do
10637 IFS="$lt_save_ifs"
10638 if test "X$pkg" = "X$p"; then
10639 enable_static=yes
10640 fi
10641 done
10642 IFS="$lt_save_ifs"
10643 ;;
10644 esac
10645 else
10646 enable_static=no
10647 fi
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657 case `pwd` in
10658 *\ * | *\ *)
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10660 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10661 esac
10662
10663
10664
10665 macro_version='2.4.2'
10666 macro_revision='1.3337'
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680 ltmain="$ac_aux_dir/ltmain.sh"
10681
10682 # Backslashify metacharacters that are still active within
10683 # double-quoted strings.
10684 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10685
10686 # Same as above, but do not quote variable references.
10687 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10688
10689 # Sed substitution to delay expansion of an escaped shell variable in a
10690 # double_quote_subst'ed string.
10691 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10692
10693 # Sed substitution to delay expansion of an escaped single quote.
10694 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10695
10696 # Sed substitution to avoid accidental globbing in evaled expressions
10697 no_glob_subst='s/\*/\\\*/g'
10698
10699 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10700 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10701 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10702
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10704 $as_echo_n "checking how to print strings... " >&6; }
10705 # Test print first, because it will be a builtin if present.
10706 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10707 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10708 ECHO='print -r --'
10709 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10710 ECHO='printf %s\n'
10711 else
10712 # Use this function as a fallback that always works.
10713 func_fallback_echo ()
10714 {
10715 eval 'cat <<_LTECHO_EOF
10716 $1
10717 _LTECHO_EOF'
10718 }
10719 ECHO='func_fallback_echo'
10720 fi
10721
10722 # func_echo_all arg...
10723 # Invoke $ECHO with all args, space-separated.
10724 func_echo_all ()
10725 {
10726 $ECHO ""
10727 }
10728
10729 case "$ECHO" in
10730 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10731 $as_echo "printf" >&6; } ;;
10732 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10733 $as_echo "print -r" >&6; } ;;
10734 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10735 $as_echo "cat" >&6; } ;;
10736 esac
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10752 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10753 if ${ac_cv_path_SED+:} false; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10757 for ac_i in 1 2 3 4 5 6 7; do
10758 ac_script="$ac_script$as_nl$ac_script"
10759 done
10760 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10761 { ac_script=; unset ac_script;}
10762 if test -z "$SED"; then
10763 ac_path_SED_found=false
10764 # Loop through the user's path and test for each of PROGNAME-LIST
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10767 do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_prog in sed gsed; do
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10773 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10774 # Check for GNU ac_path_SED and select it if it is found.
10775 # Check for GNU $ac_path_SED
10776 case `"$ac_path_SED" --version 2>&1` in
10777 *GNU*)
10778 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10779 *)
10780 ac_count=0
10781 $as_echo_n 0123456789 >"conftest.in"
10782 while :
10783 do
10784 cat "conftest.in" "conftest.in" >"conftest.tmp"
10785 mv "conftest.tmp" "conftest.in"
10786 cp "conftest.in" "conftest.nl"
10787 $as_echo '' >> "conftest.nl"
10788 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10790 as_fn_arith $ac_count + 1 && ac_count=$as_val
10791 if test $ac_count -gt ${ac_path_SED_max-0}; then
10792 # Best one so far, save it but keep looking for a better one
10793 ac_cv_path_SED="$ac_path_SED"
10794 ac_path_SED_max=$ac_count
10795 fi
10796 # 10*(2^10) chars as input seems more than enough
10797 test $ac_count -gt 10 && break
10798 done
10799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10800 esac
10801
10802 $ac_path_SED_found && break 3
10803 done
10804 done
10805 done
10806 IFS=$as_save_IFS
10807 if test -z "$ac_cv_path_SED"; then
10808 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10809 fi
10810 else
10811 ac_cv_path_SED=$SED
10812 fi
10813
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10816 $as_echo "$ac_cv_path_SED" >&6; }
10817 SED="$ac_cv_path_SED"
10818 rm -f conftest.sed
10819
10820 test -z "$SED" && SED=sed
10821 Xsed="$SED -e 1s/^X//"
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10834 $as_echo_n "checking for fgrep... " >&6; }
10835 if ${ac_cv_path_FGREP+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10839 then ac_cv_path_FGREP="$GREP -F"
10840 else
10841 if test -z "$FGREP"; then
10842 ac_path_FGREP_found=false
10843 # Loop through the user's path and test for each of PROGNAME-LIST
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10846 do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_prog in fgrep; do
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10852 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10853 # Check for GNU ac_path_FGREP and select it if it is found.
10854 # Check for GNU $ac_path_FGREP
10855 case `"$ac_path_FGREP" --version 2>&1` in
10856 *GNU*)
10857 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10858 *)
10859 ac_count=0
10860 $as_echo_n 0123456789 >"conftest.in"
10861 while :
10862 do
10863 cat "conftest.in" "conftest.in" >"conftest.tmp"
10864 mv "conftest.tmp" "conftest.in"
10865 cp "conftest.in" "conftest.nl"
10866 $as_echo 'FGREP' >> "conftest.nl"
10867 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10869 as_fn_arith $ac_count + 1 && ac_count=$as_val
10870 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10871 # Best one so far, save it but keep looking for a better one
10872 ac_cv_path_FGREP="$ac_path_FGREP"
10873 ac_path_FGREP_max=$ac_count
10874 fi
10875 # 10*(2^10) chars as input seems more than enough
10876 test $ac_count -gt 10 && break
10877 done
10878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10879 esac
10880
10881 $ac_path_FGREP_found && break 3
10882 done
10883 done
10884 done
10885 IFS=$as_save_IFS
10886 if test -z "$ac_cv_path_FGREP"; then
10887 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10888 fi
10889 else
10890 ac_cv_path_FGREP=$FGREP
10891 fi
10892
10893 fi
10894 fi
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10896 $as_echo "$ac_cv_path_FGREP" >&6; }
10897 FGREP="$ac_cv_path_FGREP"
10898
10899
10900 test -z "$GREP" && GREP=grep
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920 # Check whether --with-gnu-ld was given.
10921 if test "${with_gnu_ld+set}" = set; then :
10922 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10923 else
10924 with_gnu_ld=no
10925 fi
10926
10927 ac_prog=ld
10928 if test "$GCC" = yes; then
10929 # Check if gcc -print-prog-name=ld gives a path.
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10931 $as_echo_n "checking for ld used by $CC... " >&6; }
10932 case $host in
10933 *-*-mingw*)
10934 # gcc leaves a trailing carriage return which upsets mingw
10935 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10936 *)
10937 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10938 esac
10939 case $ac_prog in
10940 # Accept absolute paths.
10941 [\\/]* | ?:[\\/]*)
10942 re_direlt='/[^/][^/]*/\.\./'
10943 # Canonicalize the pathname of ld
10944 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10945 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10946 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10947 done
10948 test -z "$LD" && LD="$ac_prog"
10949 ;;
10950 "")
10951 # If it fails, then pretend we aren't using GCC.
10952 ac_prog=ld
10953 ;;
10954 *)
10955 # If it is relative, then search for the first ld in PATH.
10956 with_gnu_ld=unknown
10957 ;;
10958 esac
10959 elif test "$with_gnu_ld" = yes; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10961 $as_echo_n "checking for GNU ld... " >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10964 $as_echo_n "checking for non-GNU ld... " >&6; }
10965 fi
10966 if ${lt_cv_path_LD+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 if test -z "$LD"; then
10970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10971 for ac_dir in $PATH; do
10972 IFS="$lt_save_ifs"
10973 test -z "$ac_dir" && ac_dir=.
10974 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10975 lt_cv_path_LD="$ac_dir/$ac_prog"
10976 # Check to see if the program is GNU ld. I'd rather use --version,
10977 # but apparently some variants of GNU ld only accept -v.
10978 # Break only if it was the GNU/non-GNU ld that we prefer.
10979 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10980 *GNU* | *'with BFD'*)
10981 test "$with_gnu_ld" != no && break
10982 ;;
10983 *)
10984 test "$with_gnu_ld" != yes && break
10985 ;;
10986 esac
10987 fi
10988 done
10989 IFS="$lt_save_ifs"
10990 else
10991 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10992 fi
10993 fi
10994
10995 LD="$lt_cv_path_LD"
10996 if test -n "$LD"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10998 $as_echo "$LD" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11002 fi
11003 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11005 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11006 if ${lt_cv_prog_gnu_ld+:} false; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11010 case `$LD -v 2>&1 </dev/null` in
11011 *GNU* | *'with BFD'*)
11012 lt_cv_prog_gnu_ld=yes
11013 ;;
11014 *)
11015 lt_cv_prog_gnu_ld=no
11016 ;;
11017 esac
11018 fi
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11020 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11021 with_gnu_ld=$lt_cv_prog_gnu_ld
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11032 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11033 if ${lt_cv_path_NM+:} false; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 if test -n "$NM"; then
11037 # Let the user override the test.
11038 lt_cv_path_NM="$NM"
11039 else
11040 lt_nm_to_check="${ac_tool_prefix}nm"
11041 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11042 lt_nm_to_check="$lt_nm_to_check nm"
11043 fi
11044 for lt_tmp_nm in $lt_nm_to_check; do
11045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11046 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11047 IFS="$lt_save_ifs"
11048 test -z "$ac_dir" && ac_dir=.
11049 tmp_nm="$ac_dir/$lt_tmp_nm"
11050 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11051 # Check to see if the nm accepts a BSD-compat flag.
11052 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11053 # nm: unknown option "B" ignored
11054 # Tru64's nm complains that /dev/null is an invalid object file
11055 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11056 */dev/null* | *'Invalid file or object type'*)
11057 lt_cv_path_NM="$tmp_nm -B"
11058 break
11059 ;;
11060 *)
11061 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11062 */dev/null*)
11063 lt_cv_path_NM="$tmp_nm -p"
11064 break
11065 ;;
11066 *)
11067 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11068 continue # so that we can try to find one that supports BSD flags
11069 ;;
11070 esac
11071 ;;
11072 esac
11073 fi
11074 done
11075 IFS="$lt_save_ifs"
11076 done
11077 : ${lt_cv_path_NM=no}
11078 fi
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11081 $as_echo "$lt_cv_path_NM" >&6; }
11082 if test "$lt_cv_path_NM" != "no"; then
11083 NM="$lt_cv_path_NM"
11084 else
11085 # Didn't find any BSD compatible name lister, look for dumpbin.
11086 if test -n "$DUMPBIN"; then :
11087 # Let the user override the test.
11088 else
11089 if test -n "$ac_tool_prefix"; then
11090 for ac_prog in dumpbin "link -dump"
11091 do
11092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if ${ac_cv_prog_DUMPBIN+:} false; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test -n "$DUMPBIN"; then
11100 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11101 else
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11104 do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113 done
11114 done
11115 IFS=$as_save_IFS
11116
11117 fi
11118 fi
11119 DUMPBIN=$ac_cv_prog_DUMPBIN
11120 if test -n "$DUMPBIN"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11122 $as_echo "$DUMPBIN" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126 fi
11127
11128
11129 test -n "$DUMPBIN" && break
11130 done
11131 fi
11132 if test -z "$DUMPBIN"; then
11133 ac_ct_DUMPBIN=$DUMPBIN
11134 for ac_prog in dumpbin "link -dump"
11135 do
11136 # Extract the first word of "$ac_prog", so it can be a program name with args.
11137 set dummy $ac_prog; ac_word=$2
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 if test -n "$ac_ct_DUMPBIN"; then
11144 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11145 else
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11148 do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157 done
11158 done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11164 if test -n "$ac_ct_DUMPBIN"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11166 $as_echo "$ac_ct_DUMPBIN" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171
11172
11173 test -n "$ac_ct_DUMPBIN" && break
11174 done
11175
11176 if test "x$ac_ct_DUMPBIN" = x; then
11177 DUMPBIN=":"
11178 else
11179 case $cross_compiling:$ac_tool_warned in
11180 yes:)
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11183 ac_tool_warned=yes ;;
11184 esac
11185 DUMPBIN=$ac_ct_DUMPBIN
11186 fi
11187 fi
11188
11189 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11190 *COFF*)
11191 DUMPBIN="$DUMPBIN -symbols"
11192 ;;
11193 *)
11194 DUMPBIN=:
11195 ;;
11196 esac
11197 fi
11198
11199 if test "$DUMPBIN" != ":"; then
11200 NM="$DUMPBIN"
11201 fi
11202 fi
11203 test -z "$NM" && NM=nm
11204
11205
11206
11207
11208
11209
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11211 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11212 if ${lt_cv_nm_interface+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 lt_cv_nm_interface="BSD nm"
11216 echo "int some_variable = 0;" > conftest.$ac_ext
11217 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11218 (eval "$ac_compile" 2>conftest.err)
11219 cat conftest.err >&5
11220 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11221 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11222 cat conftest.err >&5
11223 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11224 cat conftest.out >&5
11225 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11226 lt_cv_nm_interface="MS dumpbin"
11227 fi
11228 rm -f conftest*
11229 fi
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11231 $as_echo "$lt_cv_nm_interface" >&6; }
11232
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11234 $as_echo_n "checking whether ln -s works... " >&6; }
11235 LN_S=$as_ln_s
11236 if test "$LN_S" = "ln -s"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11238 $as_echo "yes" >&6; }
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11241 $as_echo "no, using $LN_S" >&6; }
11242 fi
11243
11244 # find the maximum length of command line arguments
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11246 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11247 if ${lt_cv_sys_max_cmd_len+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 i=0
11251 teststring="ABCD"
11252
11253 case $build_os in
11254 msdosdjgpp*)
11255 # On DJGPP, this test can blow up pretty badly due to problems in libc
11256 # (any single argument exceeding 2000 bytes causes a buffer overrun
11257 # during glob expansion). Even if it were fixed, the result of this
11258 # check would be larger than it should be.
11259 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11260 ;;
11261
11262 gnu*)
11263 # Under GNU Hurd, this test is not required because there is
11264 # no limit to the length of command line arguments.
11265 # Libtool will interpret -1 as no limit whatsoever
11266 lt_cv_sys_max_cmd_len=-1;
11267 ;;
11268
11269 cygwin* | mingw* | cegcc*)
11270 # On Win9x/ME, this test blows up -- it succeeds, but takes
11271 # about 5 minutes as the teststring grows exponentially.
11272 # Worse, since 9x/ME are not pre-emptively multitasking,
11273 # you end up with a "frozen" computer, even though with patience
11274 # the test eventually succeeds (with a max line length of 256k).
11275 # Instead, let's just punt: use the minimum linelength reported by
11276 # all of the supported platforms: 8192 (on NT/2K/XP).
11277 lt_cv_sys_max_cmd_len=8192;
11278 ;;
11279
11280 mint*)
11281 # On MiNT this can take a long time and run out of memory.
11282 lt_cv_sys_max_cmd_len=8192;
11283 ;;
11284
11285 amigaos*)
11286 # On AmigaOS with pdksh, this test takes hours, literally.
11287 # So we just punt and use a minimum line length of 8192.
11288 lt_cv_sys_max_cmd_len=8192;
11289 ;;
11290
11291 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11292 # This has been around since 386BSD, at least. Likely further.
11293 if test -x /sbin/sysctl; then
11294 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11295 elif test -x /usr/sbin/sysctl; then
11296 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11297 else
11298 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11299 fi
11300 # And add a safety zone
11301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11303 ;;
11304
11305 interix*)
11306 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11307 lt_cv_sys_max_cmd_len=196608
11308 ;;
11309
11310 os2*)
11311 # The test takes a long time on OS/2.
11312 lt_cv_sys_max_cmd_len=8192
11313 ;;
11314
11315 osf*)
11316 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11317 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11318 # nice to cause kernel panics so lets avoid the loop below.
11319 # First set a reasonable default.
11320 lt_cv_sys_max_cmd_len=16384
11321 #
11322 if test -x /sbin/sysconfig; then
11323 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11324 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11325 esac
11326 fi
11327 ;;
11328 sco3.2v5*)
11329 lt_cv_sys_max_cmd_len=102400
11330 ;;
11331 sysv5* | sco5v6* | sysv4.2uw2*)
11332 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11333 if test -n "$kargmax"; then
11334 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11335 else
11336 lt_cv_sys_max_cmd_len=32768
11337 fi
11338 ;;
11339 *)
11340 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11341 if test -n "$lt_cv_sys_max_cmd_len"; then
11342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11344 else
11345 # Make teststring a little bigger before we do anything with it.
11346 # a 1K string should be a reasonable start.
11347 for i in 1 2 3 4 5 6 7 8 ; do
11348 teststring=$teststring$teststring
11349 done
11350 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11351 # If test is not a shell built-in, we'll probably end up computing a
11352 # maximum length that is only half of the actual maximum length, but
11353 # we can't tell.
11354 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11355 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11356 test $i != 17 # 1/2 MB should be enough
11357 do
11358 i=`expr $i + 1`
11359 teststring=$teststring$teststring
11360 done
11361 # Only check the string length outside the loop.
11362 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11363 teststring=
11364 # Add a significant safety factor because C++ compilers can tack on
11365 # massive amounts of additional arguments before passing them to the
11366 # linker. It appears as though 1/2 is a usable value.
11367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11368 fi
11369 ;;
11370 esac
11371
11372 fi
11373
11374 if test -n $lt_cv_sys_max_cmd_len ; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11376 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11379 $as_echo "none" >&6; }
11380 fi
11381 max_cmd_len=$lt_cv_sys_max_cmd_len
11382
11383
11384
11385
11386
11387
11388 : ${CP="cp -f"}
11389 : ${MV="mv -f"}
11390 : ${RM="rm -f"}
11391
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11393 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11394 # Try some XSI features
11395 xsi_shell=no
11396 ( _lt_dummy="a/b/c"
11397 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11398 = c,a/b,b/c, \
11399 && eval 'test $(( 1 + 1 )) -eq 2 \
11400 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11401 && xsi_shell=yes
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11403 $as_echo "$xsi_shell" >&6; }
11404
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11407 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11408 lt_shell_append=no
11409 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11410 >/dev/null 2>&1 \
11411 && lt_shell_append=yes
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11413 $as_echo "$lt_shell_append" >&6; }
11414
11415
11416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11417 lt_unset=unset
11418 else
11419 lt_unset=false
11420 fi
11421
11422
11423
11424
11425
11426 # test EBCDIC or ASCII
11427 case `echo X|tr X '\101'` in
11428 A) # ASCII based system
11429 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11430 lt_SP2NL='tr \040 \012'
11431 lt_NL2SP='tr \015\012 \040\040'
11432 ;;
11433 *) # EBCDIC based system
11434 lt_SP2NL='tr \100 \n'
11435 lt_NL2SP='tr \r\n \100\100'
11436 ;;
11437 esac
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11448 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11449 if ${lt_cv_to_host_file_cmd+:} false; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 case $host in
11453 *-*-mingw* )
11454 case $build in
11455 *-*-mingw* ) # actually msys
11456 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11457 ;;
11458 *-*-cygwin* )
11459 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11460 ;;
11461 * ) # otherwise, assume *nix
11462 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11463 ;;
11464 esac
11465 ;;
11466 *-*-cygwin* )
11467 case $build in
11468 *-*-mingw* ) # actually msys
11469 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11470 ;;
11471 *-*-cygwin* )
11472 lt_cv_to_host_file_cmd=func_convert_file_noop
11473 ;;
11474 * ) # otherwise, assume *nix
11475 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11476 ;;
11477 esac
11478 ;;
11479 * ) # unhandled hosts (and "normal" native builds)
11480 lt_cv_to_host_file_cmd=func_convert_file_noop
11481 ;;
11482 esac
11483
11484 fi
11485
11486 to_host_file_cmd=$lt_cv_to_host_file_cmd
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11488 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11489
11490
11491
11492
11493
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11495 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11496 if ${lt_cv_to_tool_file_cmd+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 #assume ordinary cross tools, or native build.
11500 lt_cv_to_tool_file_cmd=func_convert_file_noop
11501 case $host in
11502 *-*-mingw* )
11503 case $build in
11504 *-*-mingw* ) # actually msys
11505 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11506 ;;
11507 esac
11508 ;;
11509 esac
11510
11511 fi
11512
11513 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11515 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11516
11517
11518
11519
11520
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11522 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11523 if ${lt_cv_ld_reload_flag+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 lt_cv_ld_reload_flag='-r'
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11529 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11530 reload_flag=$lt_cv_ld_reload_flag
11531 case $reload_flag in
11532 "" | " "*) ;;
11533 *) reload_flag=" $reload_flag" ;;
11534 esac
11535 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11536 case $host_os in
11537 cygwin* | mingw* | pw32* | cegcc*)
11538 if test "$GCC" != yes; then
11539 reload_cmds=false
11540 fi
11541 ;;
11542 darwin*)
11543 if test "$GCC" = yes; then
11544 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11545 else
11546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11547 fi
11548 ;;
11549 esac
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559 if test -n "$ac_tool_prefix"; then
11560 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11561 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563 $as_echo_n "checking for $ac_word... " >&6; }
11564 if ${ac_cv_prog_OBJDUMP+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 if test -n "$OBJDUMP"; then
11568 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11569 else
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11572 do
11573 IFS=$as_save_IFS
11574 test -z "$as_dir" && as_dir=.
11575 for ac_exec_ext in '' $ac_executable_extensions; do
11576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11577 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 break 2
11580 fi
11581 done
11582 done
11583 IFS=$as_save_IFS
11584
11585 fi
11586 fi
11587 OBJDUMP=$ac_cv_prog_OBJDUMP
11588 if test -n "$OBJDUMP"; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11590 $as_echo "$OBJDUMP" >&6; }
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11594 fi
11595
11596
11597 fi
11598 if test -z "$ac_cv_prog_OBJDUMP"; then
11599 ac_ct_OBJDUMP=$OBJDUMP
11600 # Extract the first word of "objdump", so it can be a program name with args.
11601 set dummy objdump; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 if test -n "$ac_ct_OBJDUMP"; then
11608 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11609 else
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11612 do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11620 fi
11621 done
11622 done
11623 IFS=$as_save_IFS
11624
11625 fi
11626 fi
11627 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11628 if test -n "$ac_ct_OBJDUMP"; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11630 $as_echo "$ac_ct_OBJDUMP" >&6; }
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11634 fi
11635
11636 if test "x$ac_ct_OBJDUMP" = x; then
11637 OBJDUMP="false"
11638 else
11639 case $cross_compiling:$ac_tool_warned in
11640 yes:)
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11643 ac_tool_warned=yes ;;
11644 esac
11645 OBJDUMP=$ac_ct_OBJDUMP
11646 fi
11647 else
11648 OBJDUMP="$ac_cv_prog_OBJDUMP"
11649 fi
11650
11651 test -z "$OBJDUMP" && OBJDUMP=objdump
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11662 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11663 if ${lt_cv_deplibs_check_method+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 lt_cv_file_magic_cmd='$MAGIC_CMD'
11667 lt_cv_file_magic_test_file=
11668 lt_cv_deplibs_check_method='unknown'
11669 # Need to set the preceding variable on all platforms that support
11670 # interlibrary dependencies.
11671 # 'none' -- dependencies not supported.
11672 # `unknown' -- same as none, but documents that we really don't know.
11673 # 'pass_all' -- all dependencies passed with no checks.
11674 # 'test_compile' -- check by making test program.
11675 # 'file_magic [[regex]]' -- check by looking for files in library path
11676 # which responds to the $file_magic_cmd with a given extended regex.
11677 # If you have `file' or equivalent on your system and you're not sure
11678 # whether `pass_all' will *always* work, you probably want this one.
11679
11680 case $host_os in
11681 aix[4-9]*)
11682 lt_cv_deplibs_check_method=pass_all
11683 ;;
11684
11685 beos*)
11686 lt_cv_deplibs_check_method=pass_all
11687 ;;
11688
11689 bsdi[45]*)
11690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11691 lt_cv_file_magic_cmd='/usr/bin/file -L'
11692 lt_cv_file_magic_test_file=/shlib/libc.so
11693 ;;
11694
11695 cygwin*)
11696 # func_win32_libid is a shell function defined in ltmain.sh
11697 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11698 lt_cv_file_magic_cmd='func_win32_libid'
11699 ;;
11700
11701 mingw* | pw32*)
11702 # Base MSYS/MinGW do not provide the 'file' command needed by
11703 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11704 # unless we find 'file', for example because we are cross-compiling.
11705 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11706 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11708 lt_cv_file_magic_cmd='func_win32_libid'
11709 else
11710 # Keep this pattern in sync with the one in func_win32_libid.
11711 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11712 lt_cv_file_magic_cmd='$OBJDUMP -f'
11713 fi
11714 ;;
11715
11716 cegcc*)
11717 # use the weaker test based on 'objdump'. See mingw*.
11718 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11719 lt_cv_file_magic_cmd='$OBJDUMP -f'
11720 ;;
11721
11722 darwin* | rhapsody*)
11723 lt_cv_deplibs_check_method=pass_all
11724 ;;
11725
11726 freebsd* | dragonfly*)
11727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11728 case $host_cpu in
11729 i*86 )
11730 # Not sure whether the presence of OpenBSD here was a mistake.
11731 # Let's accept both of them until this is cleared up.
11732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11733 lt_cv_file_magic_cmd=/usr/bin/file
11734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11735 ;;
11736 esac
11737 else
11738 lt_cv_deplibs_check_method=pass_all
11739 fi
11740 ;;
11741
11742 gnu*)
11743 lt_cv_deplibs_check_method=pass_all
11744 ;;
11745
11746 haiku*)
11747 lt_cv_deplibs_check_method=pass_all
11748 ;;
11749
11750 hpux10.20* | hpux11*)
11751 lt_cv_file_magic_cmd=/usr/bin/file
11752 case $host_cpu in
11753 ia64*)
11754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11755 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11756 ;;
11757 hppa*64*)
11758 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]'
11759 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11760 ;;
11761 *)
11762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11763 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11764 ;;
11765 esac
11766 ;;
11767
11768 interix[3-9]*)
11769 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11771 ;;
11772
11773 irix5* | irix6* | nonstopux*)
11774 case $LD in
11775 *-32|*"-32 ") libmagic=32-bit;;
11776 *-n32|*"-n32 ") libmagic=N32;;
11777 *-64|*"-64 ") libmagic=64-bit;;
11778 *) libmagic=never-match;;
11779 esac
11780 lt_cv_deplibs_check_method=pass_all
11781 ;;
11782
11783 # This must be glibc/ELF.
11784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11785 lt_cv_deplibs_check_method=pass_all
11786 ;;
11787
11788 netbsd*)
11789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11791 else
11792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11793 fi
11794 ;;
11795
11796 newos6*)
11797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11798 lt_cv_file_magic_cmd=/usr/bin/file
11799 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11800 ;;
11801
11802 *nto* | *qnx*)
11803 lt_cv_deplibs_check_method=pass_all
11804 ;;
11805
11806 openbsd*)
11807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11809 else
11810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11811 fi
11812 ;;
11813
11814 osf3* | osf4* | osf5*)
11815 lt_cv_deplibs_check_method=pass_all
11816 ;;
11817
11818 rdos*)
11819 lt_cv_deplibs_check_method=pass_all
11820 ;;
11821
11822 solaris*)
11823 lt_cv_deplibs_check_method=pass_all
11824 ;;
11825
11826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11827 lt_cv_deplibs_check_method=pass_all
11828 ;;
11829
11830 sysv4 | sysv4.3*)
11831 case $host_vendor in
11832 motorola)
11833 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]'
11834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11835 ;;
11836 ncr)
11837 lt_cv_deplibs_check_method=pass_all
11838 ;;
11839 sequent)
11840 lt_cv_file_magic_cmd='/bin/file'
11841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11842 ;;
11843 sni)
11844 lt_cv_file_magic_cmd='/bin/file'
11845 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11846 lt_cv_file_magic_test_file=/lib/libc.so
11847 ;;
11848 siemens)
11849 lt_cv_deplibs_check_method=pass_all
11850 ;;
11851 pc)
11852 lt_cv_deplibs_check_method=pass_all
11853 ;;
11854 esac
11855 ;;
11856
11857 tpf*)
11858 lt_cv_deplibs_check_method=pass_all
11859 ;;
11860 esac
11861
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11864 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11865
11866 file_magic_glob=
11867 want_nocaseglob=no
11868 if test "$build" = "$host"; then
11869 case $host_os in
11870 mingw* | pw32*)
11871 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11872 want_nocaseglob=yes
11873 else
11874 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11875 fi
11876 ;;
11877 esac
11878 fi
11879
11880 file_magic_cmd=$lt_cv_file_magic_cmd
11881 deplibs_check_method=$lt_cv_deplibs_check_method
11882 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905 if test -n "$ac_tool_prefix"; then
11906 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11907 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if ${ac_cv_prog_DLLTOOL+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 if test -n "$DLLTOOL"; then
11914 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11915 else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11918 do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11923 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11926 fi
11927 done
11928 done
11929 IFS=$as_save_IFS
11930
11931 fi
11932 fi
11933 DLLTOOL=$ac_cv_prog_DLLTOOL
11934 if test -n "$DLLTOOL"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11936 $as_echo "$DLLTOOL" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11940 fi
11941
11942
11943 fi
11944 if test -z "$ac_cv_prog_DLLTOOL"; then
11945 ac_ct_DLLTOOL=$DLLTOOL
11946 # Extract the first word of "dlltool", so it can be a program name with args.
11947 set dummy dlltool; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$ac_ct_DLLTOOL"; then
11954 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11958 do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11963 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967 done
11968 done
11969 IFS=$as_save_IFS
11970
11971 fi
11972 fi
11973 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11974 if test -n "$ac_ct_DLLTOOL"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11976 $as_echo "$ac_ct_DLLTOOL" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981
11982 if test "x$ac_ct_DLLTOOL" = x; then
11983 DLLTOOL="false"
11984 else
11985 case $cross_compiling:$ac_tool_warned in
11986 yes:)
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11989 ac_tool_warned=yes ;;
11990 esac
11991 DLLTOOL=$ac_ct_DLLTOOL
11992 fi
11993 else
11994 DLLTOOL="$ac_cv_prog_DLLTOOL"
11995 fi
11996
11997 test -z "$DLLTOOL" && DLLTOOL=dlltool
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12009 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12010 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 lt_cv_sharedlib_from_linklib_cmd='unknown'
12014
12015 case $host_os in
12016 cygwin* | mingw* | pw32* | cegcc*)
12017 # two different shell functions defined in ltmain.sh
12018 # decide which to use based on capabilities of $DLLTOOL
12019 case `$DLLTOOL --help 2>&1` in
12020 *--identify-strict*)
12021 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12022 ;;
12023 *)
12024 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12025 ;;
12026 esac
12027 ;;
12028 *)
12029 # fallback: assume linklib IS sharedlib
12030 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12031 ;;
12032 esac
12033
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12036 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12037 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12038 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12039
12040
12041
12042
12043
12044
12045
12046 if test -n "$ac_tool_prefix"; then
12047 for ac_prog in ar
12048 do
12049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_AR+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test -n "$AR"; then
12057 ac_cv_prog_AR="$AR" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12061 do
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12069 fi
12070 done
12071 done
12072 IFS=$as_save_IFS
12073
12074 fi
12075 fi
12076 AR=$ac_cv_prog_AR
12077 if test -n "$AR"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12079 $as_echo "$AR" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12084
12085
12086 test -n "$AR" && break
12087 done
12088 fi
12089 if test -z "$AR"; then
12090 ac_ct_AR=$AR
12091 for ac_prog in ar
12092 do
12093 # Extract the first word of "$ac_prog", so it can be a program name with args.
12094 set dummy $ac_prog; ac_word=$2
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096 $as_echo_n "checking for $ac_word... " >&6; }
12097 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 if test -n "$ac_ct_AR"; then
12101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12102 else
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12105 do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_prog_ac_ct_AR="$ac_prog"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12113 fi
12114 done
12115 done
12116 IFS=$as_save_IFS
12117
12118 fi
12119 fi
12120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12121 if test -n "$ac_ct_AR"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12123 $as_echo "$ac_ct_AR" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12128
12129
12130 test -n "$ac_ct_AR" && break
12131 done
12132
12133 if test "x$ac_ct_AR" = x; then
12134 AR="false"
12135 else
12136 case $cross_compiling:$ac_tool_warned in
12137 yes:)
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12140 ac_tool_warned=yes ;;
12141 esac
12142 AR=$ac_ct_AR
12143 fi
12144 fi
12145
12146 : ${AR=ar}
12147 : ${AR_FLAGS=cru}
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12160 $as_echo_n "checking for archiver @FILE support... " >&6; }
12161 if ${lt_cv_ar_at_file+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 lt_cv_ar_at_file=no
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167
12168 int
12169 main ()
12170 {
12171
12172 ;
12173 return 0;
12174 }
12175 _ACEOF
12176 if ac_fn_c_try_compile "$LINENO"; then :
12177 echo conftest.$ac_objext > conftest.lst
12178 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12180 (eval $lt_ar_try) 2>&5
12181 ac_status=$?
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183 test $ac_status = 0; }
12184 if test "$ac_status" -eq 0; then
12185 # Ensure the archiver fails upon bogus file names.
12186 rm -f conftest.$ac_objext libconftest.a
12187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12188 (eval $lt_ar_try) 2>&5
12189 ac_status=$?
12190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191 test $ac_status = 0; }
12192 if test "$ac_status" -ne 0; then
12193 lt_cv_ar_at_file=@
12194 fi
12195 fi
12196 rm -f conftest.* libconftest.a
12197
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12203 $as_echo "$lt_cv_ar_at_file" >&6; }
12204
12205 if test "x$lt_cv_ar_at_file" = xno; then
12206 archiver_list_spec=
12207 else
12208 archiver_list_spec=$lt_cv_ar_at_file
12209 fi
12210
12211
12212
12213
12214
12215
12216
12217 if test -n "$ac_tool_prefix"; then
12218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12219 set dummy ${ac_tool_prefix}strip; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_prog_STRIP+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 if test -n "$STRIP"; then
12226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243 fi
12244 fi
12245 STRIP=$ac_cv_prog_STRIP
12246 if test -n "$STRIP"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12248 $as_echo "$STRIP" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252 fi
12253
12254
12255 fi
12256 if test -z "$ac_cv_prog_STRIP"; then
12257 ac_ct_STRIP=$STRIP
12258 # Extract the first word of "strip", so it can be a program name with args.
12259 set dummy strip; ac_word=$2
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261 $as_echo_n "checking for $ac_word... " >&6; }
12262 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 if test -n "$ac_ct_STRIP"; then
12266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12267 else
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12270 do
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12275 ac_cv_prog_ac_ct_STRIP="strip"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12278 fi
12279 done
12280 done
12281 IFS=$as_save_IFS
12282
12283 fi
12284 fi
12285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12286 if test -n "$ac_ct_STRIP"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12288 $as_echo "$ac_ct_STRIP" >&6; }
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12292 fi
12293
12294 if test "x$ac_ct_STRIP" = x; then
12295 STRIP=":"
12296 else
12297 case $cross_compiling:$ac_tool_warned in
12298 yes:)
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12301 ac_tool_warned=yes ;;
12302 esac
12303 STRIP=$ac_ct_STRIP
12304 fi
12305 else
12306 STRIP="$ac_cv_prog_STRIP"
12307 fi
12308
12309 test -z "$STRIP" && STRIP=:
12310
12311
12312
12313
12314
12315
12316 if test -n "$ac_tool_prefix"; then
12317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if ${ac_cv_prog_RANLIB+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 if test -n "$RANLIB"; then
12325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12326 else
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12329 do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12337 fi
12338 done
12339 done
12340 IFS=$as_save_IFS
12341
12342 fi
12343 fi
12344 RANLIB=$ac_cv_prog_RANLIB
12345 if test -n "$RANLIB"; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12347 $as_echo "$RANLIB" >&6; }
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351 fi
12352
12353
12354 fi
12355 if test -z "$ac_cv_prog_RANLIB"; then
12356 ac_ct_RANLIB=$RANLIB
12357 # Extract the first word of "ranlib", so it can be a program name with args.
12358 set dummy ranlib; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 if test -n "$ac_ct_RANLIB"; then
12365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12366 else
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12369 do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374 ac_cv_prog_ac_ct_RANLIB="ranlib"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12377 fi
12378 done
12379 done
12380 IFS=$as_save_IFS
12381
12382 fi
12383 fi
12384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12385 if test -n "$ac_ct_RANLIB"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12387 $as_echo "$ac_ct_RANLIB" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 fi
12392
12393 if test "x$ac_ct_RANLIB" = x; then
12394 RANLIB=":"
12395 else
12396 case $cross_compiling:$ac_tool_warned in
12397 yes:)
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12400 ac_tool_warned=yes ;;
12401 esac
12402 RANLIB=$ac_ct_RANLIB
12403 fi
12404 else
12405 RANLIB="$ac_cv_prog_RANLIB"
12406 fi
12407
12408 test -z "$RANLIB" && RANLIB=:
12409
12410
12411
12412
12413
12414
12415 # Determine commands to create old-style static archives.
12416 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12417 old_postinstall_cmds='chmod 644 $oldlib'
12418 old_postuninstall_cmds=
12419
12420 if test -n "$RANLIB"; then
12421 case $host_os in
12422 openbsd*)
12423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12424 ;;
12425 *)
12426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12427 ;;
12428 esac
12429 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12430 fi
12431
12432 case $host_os in
12433 darwin*)
12434 lock_old_archive_extraction=yes ;;
12435 *)
12436 lock_old_archive_extraction=no ;;
12437 esac
12438
12439
12440
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 # If no C compiler was specified, use CC.
12478 LTCC=${LTCC-"$CC"}
12479
12480 # If no C compiler flags were specified, use CFLAGS.
12481 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12482
12483 # Allow CC to be a program name with arguments.
12484 compiler=$CC
12485
12486
12487 # Check for command to grab the raw symbol name followed by C symbol from nm.
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12489 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12490 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493
12494 # These are sane defaults that work on at least a few old systems.
12495 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12496
12497 # Character class describing NM global symbol codes.
12498 symcode='[BCDEGRST]'
12499
12500 # Regexp to match symbols that can be accessed directly from C.
12501 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12502
12503 # Define system-specific variables.
12504 case $host_os in
12505 aix*)
12506 symcode='[BCDT]'
12507 ;;
12508 cygwin* | mingw* | pw32* | cegcc*)
12509 symcode='[ABCDGISTW]'
12510 ;;
12511 hpux*)
12512 if test "$host_cpu" = ia64; then
12513 symcode='[ABCDEGRST]'
12514 fi
12515 ;;
12516 irix* | nonstopux*)
12517 symcode='[BCDEGRST]'
12518 ;;
12519 osf*)
12520 symcode='[BCDEGQRST]'
12521 ;;
12522 solaris*)
12523 symcode='[BDRT]'
12524 ;;
12525 sco3.2v5*)
12526 symcode='[DT]'
12527 ;;
12528 sysv4.2uw2*)
12529 symcode='[DT]'
12530 ;;
12531 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12532 symcode='[ABDT]'
12533 ;;
12534 sysv4)
12535 symcode='[DFNSTU]'
12536 ;;
12537 esac
12538
12539 # If we're using GNU nm, then use its standard symbol codes.
12540 case `$NM -V 2>&1` in
12541 *GNU* | *'with BFD'*)
12542 symcode='[ABCDGIRSTW]' ;;
12543 esac
12544
12545 # Transform an extracted symbol line into a proper C declaration.
12546 # Some systems (esp. on ia64) link data and code symbols differently,
12547 # so use this general approach.
12548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12549
12550 # Transform an extracted symbol line into symbol name and symbol address
12551 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12552 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'"
12553
12554 # Handle CRLF in mingw tool chain
12555 opt_cr=
12556 case $build_os in
12557 mingw*)
12558 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12559 ;;
12560 esac
12561
12562 # Try without a prefix underscore, then with it.
12563 for ac_symprfx in "" "_"; do
12564
12565 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12566 symxfrm="\\1 $ac_symprfx\\2 \\2"
12567
12568 # Write the raw and C identifiers.
12569 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12570 # Fake it for dumpbin and say T for any non-static function
12571 # and D for any global variable.
12572 # Also find C++ and __fastcall symbols from MSVC++,
12573 # which start with @ or ?.
12574 lt_cv_sys_global_symbol_pipe="$AWK '"\
12575 " {last_section=section; section=\$ 3};"\
12576 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12577 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12578 " \$ 0!~/External *\|/{next};"\
12579 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12580 " {if(hide[section]) next};"\
12581 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12582 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12583 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12584 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12585 " ' prfx=^$ac_symprfx"
12586 else
12587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12588 fi
12589 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12590
12591 # Check to see that the pipe works correctly.
12592 pipe_works=no
12593
12594 rm -f conftest*
12595 cat > conftest.$ac_ext <<_LT_EOF
12596 #ifdef __cplusplus
12597 extern "C" {
12598 #endif
12599 char nm_test_var;
12600 void nm_test_func(void);
12601 void nm_test_func(void){}
12602 #ifdef __cplusplus
12603 }
12604 #endif
12605 int main(){nm_test_var='a';nm_test_func();return(0);}
12606 _LT_EOF
12607
12608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12609 (eval $ac_compile) 2>&5
12610 ac_status=$?
12611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12612 test $ac_status = 0; }; then
12613 # Now try to grab the symbols.
12614 nlist=conftest.nm
12615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12616 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12617 ac_status=$?
12618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12619 test $ac_status = 0; } && test -s "$nlist"; then
12620 # Try sorting and uniquifying the output.
12621 if sort "$nlist" | uniq > "$nlist"T; then
12622 mv -f "$nlist"T "$nlist"
12623 else
12624 rm -f "$nlist"T
12625 fi
12626
12627 # Make sure that we snagged all the symbols we need.
12628 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12629 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12630 cat <<_LT_EOF > conftest.$ac_ext
12631 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12632 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12633 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12634 relocations are performed -- see ld's documentation on pseudo-relocs. */
12635 # define LT_DLSYM_CONST
12636 #elif defined(__osf__)
12637 /* This system does not cope well with relocations in const data. */
12638 # define LT_DLSYM_CONST
12639 #else
12640 # define LT_DLSYM_CONST const
12641 #endif
12642
12643 #ifdef __cplusplus
12644 extern "C" {
12645 #endif
12646
12647 _LT_EOF
12648 # Now generate the symbol file.
12649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12650
12651 cat <<_LT_EOF >> conftest.$ac_ext
12652
12653 /* The mapping between symbol names and symbols. */
12654 LT_DLSYM_CONST struct {
12655 const char *name;
12656 void *address;
12657 }
12658 lt__PROGRAM__LTX_preloaded_symbols[] =
12659 {
12660 { "@PROGRAM@", (void *) 0 },
12661 _LT_EOF
12662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12663 cat <<\_LT_EOF >> conftest.$ac_ext
12664 {0, (void *) 0}
12665 };
12666
12667 /* This works around a problem in FreeBSD linker */
12668 #ifdef FREEBSD_WORKAROUND
12669 static const void *lt_preloaded_setup() {
12670 return lt__PROGRAM__LTX_preloaded_symbols;
12671 }
12672 #endif
12673
12674 #ifdef __cplusplus
12675 }
12676 #endif
12677 _LT_EOF
12678 # Now try linking the two files.
12679 mv conftest.$ac_objext conftstm.$ac_objext
12680 lt_globsym_save_LIBS=$LIBS
12681 lt_globsym_save_CFLAGS=$CFLAGS
12682 LIBS="conftstm.$ac_objext"
12683 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12685 (eval $ac_link) 2>&5
12686 ac_status=$?
12687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12689 pipe_works=yes
12690 fi
12691 LIBS=$lt_globsym_save_LIBS
12692 CFLAGS=$lt_globsym_save_CFLAGS
12693 else
12694 echo "cannot find nm_test_func in $nlist" >&5
12695 fi
12696 else
12697 echo "cannot find nm_test_var in $nlist" >&5
12698 fi
12699 else
12700 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12701 fi
12702 else
12703 echo "$progname: failed program was:" >&5
12704 cat conftest.$ac_ext >&5
12705 fi
12706 rm -rf conftest* conftst*
12707
12708 # Do not use the global_symbol_pipe unless it works.
12709 if test "$pipe_works" = yes; then
12710 break
12711 else
12712 lt_cv_sys_global_symbol_pipe=
12713 fi
12714 done
12715
12716 fi
12717
12718 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12719 lt_cv_sys_global_symbol_to_cdecl=
12720 fi
12721 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12723 $as_echo "failed" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12726 $as_echo "ok" >&6; }
12727 fi
12728
12729 # Response file support.
12730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12731 nm_file_list_spec='@'
12732 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12733 nm_file_list_spec='@'
12734 fi
12735
12736
12737
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12763 $as_echo_n "checking for sysroot... " >&6; }
12764
12765 # Check whether --with-sysroot was given.
12766 if test "${with_sysroot+set}" = set; then :
12767 withval=$with_sysroot;
12768 else
12769 with_sysroot=no
12770 fi
12771
12772
12773 lt_sysroot=
12774 case ${with_sysroot} in #(
12775 yes)
12776 if test "$GCC" = yes; then
12777 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12778 fi
12779 ;; #(
12780 /*)
12781 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12782 ;; #(
12783 no|'')
12784 ;; #(
12785 *)
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12787 $as_echo "${with_sysroot}" >&6; }
12788 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12789 ;;
12790 esac
12791
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12793 $as_echo "${lt_sysroot:-no}" >&6; }
12794
12795
12796
12797
12798
12799 # Check whether --enable-libtool-lock was given.
12800 if test "${enable_libtool_lock+set}" = set; then :
12801 enableval=$enable_libtool_lock;
12802 fi
12803
12804 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12805
12806 # Some flags need to be propagated to the compiler or linker for good
12807 # libtool support.
12808 case $host in
12809 ia64-*-hpux*)
12810 # Find out which ABI we are using.
12811 echo 'int i;' > conftest.$ac_ext
12812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12813 (eval $ac_compile) 2>&5
12814 ac_status=$?
12815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12816 test $ac_status = 0; }; then
12817 case `/usr/bin/file conftest.$ac_objext` in
12818 *ELF-32*)
12819 HPUX_IA64_MODE="32"
12820 ;;
12821 *ELF-64*)
12822 HPUX_IA64_MODE="64"
12823 ;;
12824 esac
12825 fi
12826 rm -rf conftest*
12827 ;;
12828 *-*-irix6*)
12829 # Find out which ABI we are using.
12830 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12832 (eval $ac_compile) 2>&5
12833 ac_status=$?
12834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835 test $ac_status = 0; }; then
12836 if test "$lt_cv_prog_gnu_ld" = yes; then
12837 case `/usr/bin/file conftest.$ac_objext` in
12838 *32-bit*)
12839 LD="${LD-ld} -melf32bsmip"
12840 ;;
12841 *N32*)
12842 LD="${LD-ld} -melf32bmipn32"
12843 ;;
12844 *64-bit*)
12845 LD="${LD-ld} -melf64bmip"
12846 ;;
12847 esac
12848 else
12849 case `/usr/bin/file conftest.$ac_objext` in
12850 *32-bit*)
12851 LD="${LD-ld} -32"
12852 ;;
12853 *N32*)
12854 LD="${LD-ld} -n32"
12855 ;;
12856 *64-bit*)
12857 LD="${LD-ld} -64"
12858 ;;
12859 esac
12860 fi
12861 fi
12862 rm -rf conftest*
12863 ;;
12864
12865 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12866 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12867 # Find out which ABI we are using.
12868 echo 'int i;' > conftest.$ac_ext
12869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870 (eval $ac_compile) 2>&5
12871 ac_status=$?
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; }; then
12874 case `/usr/bin/file conftest.o` in
12875 *32-bit*)
12876 case $host in
12877 x86_64-*kfreebsd*-gnu)
12878 LD="${LD-ld} -m elf_i386_fbsd"
12879 ;;
12880 x86_64-*linux*)
12881 LD="${LD-ld} -m elf_i386"
12882 ;;
12883 ppc64-*linux*|powerpc64-*linux*)
12884 LD="${LD-ld} -m elf32ppclinux"
12885 ;;
12886 s390x-*linux*)
12887 LD="${LD-ld} -m elf_s390"
12888 ;;
12889 sparc64-*linux*)
12890 LD="${LD-ld} -m elf32_sparc"
12891 ;;
12892 esac
12893 ;;
12894 *64-bit*)
12895 case $host in
12896 x86_64-*kfreebsd*-gnu)
12897 LD="${LD-ld} -m elf_x86_64_fbsd"
12898 ;;
12899 x86_64-*linux*)
12900 LD="${LD-ld} -m elf_x86_64"
12901 ;;
12902 ppc*-*linux*|powerpc*-*linux*)
12903 LD="${LD-ld} -m elf64ppc"
12904 ;;
12905 s390*-*linux*|s390*-*tpf*)
12906 LD="${LD-ld} -m elf64_s390"
12907 ;;
12908 sparc*-*linux*)
12909 LD="${LD-ld} -m elf64_sparc"
12910 ;;
12911 esac
12912 ;;
12913 esac
12914 fi
12915 rm -rf conftest*
12916 ;;
12917
12918 *-*-sco3.2v5*)
12919 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12920 SAVE_CFLAGS="$CFLAGS"
12921 CFLAGS="$CFLAGS -belf"
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12923 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12924 if ${lt_cv_cc_needs_belf+:} false; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 ac_ext=c
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12935
12936 int
12937 main ()
12938 {
12939
12940 ;
12941 return 0;
12942 }
12943 _ACEOF
12944 if ac_fn_c_try_link "$LINENO"; then :
12945 lt_cv_cc_needs_belf=yes
12946 else
12947 lt_cv_cc_needs_belf=no
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12951 ac_ext=c
12952 ac_cpp='$CPP $CPPFLAGS'
12953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12956
12957 fi
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12960 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12961 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12962 CFLAGS="$SAVE_CFLAGS"
12963 fi
12964 ;;
12965 *-*solaris*)
12966 # Find out which ABI we are using.
12967 echo 'int i;' > conftest.$ac_ext
12968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12969 (eval $ac_compile) 2>&5
12970 ac_status=$?
12971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12972 test $ac_status = 0; }; then
12973 case `/usr/bin/file conftest.o` in
12974 *64-bit*)
12975 case $lt_cv_prog_gnu_ld in
12976 yes*)
12977 case $host in
12978 i?86-*-solaris*)
12979 LD="${LD-ld} -m elf_x86_64"
12980 ;;
12981 sparc*-*-solaris*)
12982 LD="${LD-ld} -m elf64_sparc"
12983 ;;
12984 esac
12985 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12986 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12987 LD="${LD-ld}_sol2"
12988 fi
12989 ;;
12990 *)
12991 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12992 LD="${LD-ld} -64"
12993 fi
12994 ;;
12995 esac
12996 ;;
12997 esac
12998 fi
12999 rm -rf conftest*
13000 ;;
13001 esac
13002
13003 need_locks="$enable_libtool_lock"
13004
13005 if test -n "$ac_tool_prefix"; then
13006 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13007 set dummy ${ac_tool_prefix}mt; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009 $as_echo_n "checking for $ac_word... " >&6; }
13010 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 if test -n "$MANIFEST_TOOL"; then
13014 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13015 else
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13018 do
13019 IFS=$as_save_IFS
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 break 2
13026 fi
13027 done
13028 done
13029 IFS=$as_save_IFS
13030
13031 fi
13032 fi
13033 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13034 if test -n "$MANIFEST_TOOL"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13036 $as_echo "$MANIFEST_TOOL" >&6; }
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041
13042
13043 fi
13044 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13045 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13046 # Extract the first word of "mt", so it can be a program name with args.
13047 set dummy mt; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 if test -n "$ac_ct_MANIFEST_TOOL"; then
13054 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13055 else
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13058 do
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13066 fi
13067 done
13068 done
13069 IFS=$as_save_IFS
13070
13071 fi
13072 fi
13073 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13074 if test -n "$ac_ct_MANIFEST_TOOL"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13076 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13080 fi
13081
13082 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13083 MANIFEST_TOOL=":"
13084 else
13085 case $cross_compiling:$ac_tool_warned in
13086 yes:)
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13089 ac_tool_warned=yes ;;
13090 esac
13091 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13092 fi
13093 else
13094 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13095 fi
13096
13097 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13099 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13100 if ${lt_cv_path_mainfest_tool+:} false; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 lt_cv_path_mainfest_tool=no
13104 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13105 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13106 cat conftest.err >&5
13107 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13108 lt_cv_path_mainfest_tool=yes
13109 fi
13110 rm -f conftest*
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13113 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13114 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13115 MANIFEST_TOOL=:
13116 fi
13117
13118
13119
13120
13121
13122
13123 case $host_os in
13124 rhapsody* | darwin*)
13125 if test -n "$ac_tool_prefix"; then
13126 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129 $as_echo_n "checking for $ac_word... " >&6; }
13130 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13131 $as_echo_n "(cached) " >&6
13132 else
13133 if test -n "$DSYMUTIL"; then
13134 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13135 else
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145 break 2
13146 fi
13147 done
13148 done
13149 IFS=$as_save_IFS
13150
13151 fi
13152 fi
13153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13154 if test -n "$DSYMUTIL"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13156 $as_echo "$DSYMUTIL" >&6; }
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 fi
13161
13162
13163 fi
13164 if test -z "$ac_cv_prog_DSYMUTIL"; then
13165 ac_ct_DSYMUTIL=$DSYMUTIL
13166 # Extract the first word of "dsymutil", so it can be a program name with args.
13167 set dummy dsymutil; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169 $as_echo_n "checking for $ac_word... " >&6; }
13170 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 if test -n "$ac_ct_DSYMUTIL"; then
13174 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13175 else
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179 IFS=$as_save_IFS
13180 test -z "$as_dir" && as_dir=.
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185 break 2
13186 fi
13187 done
13188 done
13189 IFS=$as_save_IFS
13190
13191 fi
13192 fi
13193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13194 if test -n "$ac_ct_DSYMUTIL"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13197 else
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200 fi
13201
13202 if test "x$ac_ct_DSYMUTIL" = x; then
13203 DSYMUTIL=":"
13204 else
13205 case $cross_compiling:$ac_tool_warned in
13206 yes:)
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13209 ac_tool_warned=yes ;;
13210 esac
13211 DSYMUTIL=$ac_ct_DSYMUTIL
13212 fi
13213 else
13214 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13215 fi
13216
13217 if test -n "$ac_tool_prefix"; then
13218 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221 $as_echo_n "checking for $ac_word... " >&6; }
13222 if ${ac_cv_prog_NMEDIT+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 if test -n "$NMEDIT"; then
13226 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13227 else
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13230 do
13231 IFS=$as_save_IFS
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237 break 2
13238 fi
13239 done
13240 done
13241 IFS=$as_save_IFS
13242
13243 fi
13244 fi
13245 NMEDIT=$ac_cv_prog_NMEDIT
13246 if test -n "$NMEDIT"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13248 $as_echo "$NMEDIT" >&6; }
13249 else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252 fi
13253
13254
13255 fi
13256 if test -z "$ac_cv_prog_NMEDIT"; then
13257 ac_ct_NMEDIT=$NMEDIT
13258 # Extract the first word of "nmedit", so it can be a program name with args.
13259 set dummy nmedit; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13261 $as_echo_n "checking for $ac_word... " >&6; }
13262 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 if test -n "$ac_ct_NMEDIT"; then
13266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13267 else
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13270 do
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13278 fi
13279 done
13280 done
13281 IFS=$as_save_IFS
13282
13283 fi
13284 fi
13285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13286 if test -n "$ac_ct_NMEDIT"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13288 $as_echo "$ac_ct_NMEDIT" >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13292 fi
13293
13294 if test "x$ac_ct_NMEDIT" = x; then
13295 NMEDIT=":"
13296 else
13297 case $cross_compiling:$ac_tool_warned in
13298 yes:)
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13301 ac_tool_warned=yes ;;
13302 esac
13303 NMEDIT=$ac_ct_NMEDIT
13304 fi
13305 else
13306 NMEDIT="$ac_cv_prog_NMEDIT"
13307 fi
13308
13309 if test -n "$ac_tool_prefix"; then
13310 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 $as_echo_n "checking for $ac_word... " >&6; }
13314 if ${ac_cv_prog_LIPO+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 if test -n "$LIPO"; then
13318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13319 else
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13322 do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 break 2
13330 fi
13331 done
13332 done
13333 IFS=$as_save_IFS
13334
13335 fi
13336 fi
13337 LIPO=$ac_cv_prog_LIPO
13338 if test -n "$LIPO"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13340 $as_echo "$LIPO" >&6; }
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344 fi
13345
13346
13347 fi
13348 if test -z "$ac_cv_prog_LIPO"; then
13349 ac_ct_LIPO=$LIPO
13350 # Extract the first word of "lipo", so it can be a program name with args.
13351 set dummy lipo; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 if test -n "$ac_ct_LIPO"; then
13358 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13362 do
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13367 ac_cv_prog_ac_ct_LIPO="lipo"
13368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369 break 2
13370 fi
13371 done
13372 done
13373 IFS=$as_save_IFS
13374
13375 fi
13376 fi
13377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13378 if test -n "$ac_ct_LIPO"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13380 $as_echo "$ac_ct_LIPO" >&6; }
13381 else
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13384 fi
13385
13386 if test "x$ac_ct_LIPO" = x; then
13387 LIPO=":"
13388 else
13389 case $cross_compiling:$ac_tool_warned in
13390 yes:)
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13393 ac_tool_warned=yes ;;
13394 esac
13395 LIPO=$ac_ct_LIPO
13396 fi
13397 else
13398 LIPO="$ac_cv_prog_LIPO"
13399 fi
13400
13401 if test -n "$ac_tool_prefix"; then
13402 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13403 set dummy ${ac_tool_prefix}otool; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if ${ac_cv_prog_OTOOL+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 if test -n "$OTOOL"; then
13410 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13411 else
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13414 do
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421 break 2
13422 fi
13423 done
13424 done
13425 IFS=$as_save_IFS
13426
13427 fi
13428 fi
13429 OTOOL=$ac_cv_prog_OTOOL
13430 if test -n "$OTOOL"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13432 $as_echo "$OTOOL" >&6; }
13433 else
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13436 fi
13437
13438
13439 fi
13440 if test -z "$ac_cv_prog_OTOOL"; then
13441 ac_ct_OTOOL=$OTOOL
13442 # Extract the first word of "otool", so it can be a program name with args.
13443 set dummy otool; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445 $as_echo_n "checking for $ac_word... " >&6; }
13446 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 if test -n "$ac_ct_OTOOL"; then
13450 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13451 else
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13459 ac_cv_prog_ac_ct_OTOOL="otool"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13462 fi
13463 done
13464 done
13465 IFS=$as_save_IFS
13466
13467 fi
13468 fi
13469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13470 if test -n "$ac_ct_OTOOL"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13472 $as_echo "$ac_ct_OTOOL" >&6; }
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477
13478 if test "x$ac_ct_OTOOL" = x; then
13479 OTOOL=":"
13480 else
13481 case $cross_compiling:$ac_tool_warned in
13482 yes:)
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13485 ac_tool_warned=yes ;;
13486 esac
13487 OTOOL=$ac_ct_OTOOL
13488 fi
13489 else
13490 OTOOL="$ac_cv_prog_OTOOL"
13491 fi
13492
13493 if test -n "$ac_tool_prefix"; then
13494 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497 $as_echo_n "checking for $ac_word... " >&6; }
13498 if ${ac_cv_prog_OTOOL64+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 if test -n "$OTOOL64"; then
13502 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13503 else
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13506 do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13514 fi
13515 done
13516 done
13517 IFS=$as_save_IFS
13518
13519 fi
13520 fi
13521 OTOOL64=$ac_cv_prog_OTOOL64
13522 if test -n "$OTOOL64"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13524 $as_echo "$OTOOL64" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529
13530
13531 fi
13532 if test -z "$ac_cv_prog_OTOOL64"; then
13533 ac_ct_OTOOL64=$OTOOL64
13534 # Extract the first word of "otool64", so it can be a program name with args.
13535 set dummy otool64; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 if test -n "$ac_ct_OTOOL64"; then
13542 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13551 ac_cv_prog_ac_ct_OTOOL64="otool64"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13554 fi
13555 done
13556 done
13557 IFS=$as_save_IFS
13558
13559 fi
13560 fi
13561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13562 if test -n "$ac_ct_OTOOL64"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13564 $as_echo "$ac_ct_OTOOL64" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13568 fi
13569
13570 if test "x$ac_ct_OTOOL64" = x; then
13571 OTOOL64=":"
13572 else
13573 case $cross_compiling:$ac_tool_warned in
13574 yes:)
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13577 ac_tool_warned=yes ;;
13578 esac
13579 OTOOL64=$ac_ct_OTOOL64
13580 fi
13581 else
13582 OTOOL64="$ac_cv_prog_OTOOL64"
13583 fi
13584
13585
13586
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13612 $as_echo_n "checking for -single_module linker flag... " >&6; }
13613 if ${lt_cv_apple_cc_single_mod+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 lt_cv_apple_cc_single_mod=no
13617 if test -z "${LT_MULTI_MODULE}"; then
13618 # By default we will add the -single_module flag. You can override
13619 # by either setting the environment variable LT_MULTI_MODULE
13620 # non-empty at configure time, or by adding -multi_module to the
13621 # link flags.
13622 rm -rf libconftest.dylib*
13623 echo "int foo(void){return 1;}" > conftest.c
13624 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13625 -dynamiclib -Wl,-single_module conftest.c" >&5
13626 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13627 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13628 _lt_result=$?
13629 # If there is a non-empty error log, and "single_module"
13630 # appears in it, assume the flag caused a linker warning
13631 if test -s conftest.err && $GREP single_module conftest.err; then
13632 cat conftest.err >&5
13633 # Otherwise, if the output was created with a 0 exit code from
13634 # the compiler, it worked.
13635 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13636 lt_cv_apple_cc_single_mod=yes
13637 else
13638 cat conftest.err >&5
13639 fi
13640 rm -rf libconftest.dylib*
13641 rm -f conftest.*
13642 fi
13643 fi
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13645 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13646
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13648 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13649 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 lt_cv_ld_exported_symbols_list=no
13653 save_LDFLAGS=$LDFLAGS
13654 echo "_main" > conftest.sym
13655 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658
13659 int
13660 main ()
13661 {
13662
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 lt_cv_ld_exported_symbols_list=yes
13669 else
13670 lt_cv_ld_exported_symbols_list=no
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LDFLAGS="$save_LDFLAGS"
13675
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13678 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13681 $as_echo_n "checking for -force_load linker flag... " >&6; }
13682 if ${lt_cv_ld_force_load+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 lt_cv_ld_force_load=no
13686 cat > conftest.c << _LT_EOF
13687 int forced_loaded() { return 2;}
13688 _LT_EOF
13689 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13690 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13691 echo "$AR cru libconftest.a conftest.o" >&5
13692 $AR cru libconftest.a conftest.o 2>&5
13693 echo "$RANLIB libconftest.a" >&5
13694 $RANLIB libconftest.a 2>&5
13695 cat > conftest.c << _LT_EOF
13696 int main() { return 0;}
13697 _LT_EOF
13698 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13699 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13700 _lt_result=$?
13701 if test -s conftest.err && $GREP force_load conftest.err; then
13702 cat conftest.err >&5
13703 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13704 lt_cv_ld_force_load=yes
13705 else
13706 cat conftest.err >&5
13707 fi
13708 rm -f conftest.err libconftest.a conftest conftest.c
13709 rm -rf conftest.dSYM
13710
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13713 $as_echo "$lt_cv_ld_force_load" >&6; }
13714 case $host_os in
13715 rhapsody* | darwin1.[012])
13716 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13717 darwin1.*)
13718 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13719 darwin*) # darwin 5.x on
13720 # if running on 10.5 or later, the deployment target defaults
13721 # to the OS version, if on x86, and 10.4, the deployment
13722 # target defaults to 10.4. Don't you love it?
13723 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13724 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13725 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13726 10.[012]*)
13727 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13728 10.*)
13729 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13730 esac
13731 ;;
13732 esac
13733 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13734 _lt_dar_single_mod='$single_module'
13735 fi
13736 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13737 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13738 else
13739 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13740 fi
13741 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13742 _lt_dsymutil='~$DSYMUTIL $lib || :'
13743 else
13744 _lt_dsymutil=
13745 fi
13746 ;;
13747 esac
13748
13749 for ac_header in dlfcn.h
13750 do :
13751 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13752 "
13753 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13754 cat >>confdefs.h <<_ACEOF
13755 #define HAVE_DLFCN_H 1
13756 _ACEOF
13757
13758 fi
13759
13760 done
13761
13762
13763
13764
13765
13766 # Set options
13767
13768
13769
13770 enable_dlopen=no
13771
13772
13773 enable_win32_dll=no
13774
13775
13776 # Check whether --enable-shared was given.
13777 if test "${enable_shared+set}" = set; then :
13778 enableval=$enable_shared; p=${PACKAGE-default}
13779 case $enableval in
13780 yes) enable_shared=yes ;;
13781 no) enable_shared=no ;;
13782 *)
13783 enable_shared=no
13784 # Look at the argument we got. We use all the common list separators.
13785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13786 for pkg in $enableval; do
13787 IFS="$lt_save_ifs"
13788 if test "X$pkg" = "X$p"; then
13789 enable_shared=yes
13790 fi
13791 done
13792 IFS="$lt_save_ifs"
13793 ;;
13794 esac
13795 else
13796 enable_shared=yes
13797 fi
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809 # Check whether --with-pic was given.
13810 if test "${with_pic+set}" = set; then :
13811 withval=$with_pic; lt_p=${PACKAGE-default}
13812 case $withval in
13813 yes|no) pic_mode=$withval ;;
13814 *)
13815 pic_mode=default
13816 # Look at the argument we got. We use all the common list separators.
13817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13818 for lt_pkg in $withval; do
13819 IFS="$lt_save_ifs"
13820 if test "X$lt_pkg" = "X$lt_p"; then
13821 pic_mode=yes
13822 fi
13823 done
13824 IFS="$lt_save_ifs"
13825 ;;
13826 esac
13827 else
13828 pic_mode=default
13829 fi
13830
13831
13832 test -z "$pic_mode" && pic_mode=default
13833
13834
13835
13836
13837
13838
13839
13840 # Check whether --enable-fast-install was given.
13841 if test "${enable_fast_install+set}" = set; then :
13842 enableval=$enable_fast_install; p=${PACKAGE-default}
13843 case $enableval in
13844 yes) enable_fast_install=yes ;;
13845 no) enable_fast_install=no ;;
13846 *)
13847 enable_fast_install=no
13848 # Look at the argument we got. We use all the common list separators.
13849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13850 for pkg in $enableval; do
13851 IFS="$lt_save_ifs"
13852 if test "X$pkg" = "X$p"; then
13853 enable_fast_install=yes
13854 fi
13855 done
13856 IFS="$lt_save_ifs"
13857 ;;
13858 esac
13859 else
13860 enable_fast_install=yes
13861 fi
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873 # This can be used to rebuild libtool when needed
13874 LIBTOOL_DEPS="$ltmain"
13875
13876 # Always use our own libtool.
13877 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13878
13879
13880
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 test -z "$LN_S" && LN_S="ln -s"
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923 if test -n "${ZSH_VERSION+set}" ; then
13924 setopt NO_GLOB_SUBST
13925 fi
13926
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13928 $as_echo_n "checking for objdir... " >&6; }
13929 if ${lt_cv_objdir+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 rm -f .libs 2>/dev/null
13933 mkdir .libs 2>/dev/null
13934 if test -d .libs; then
13935 lt_cv_objdir=.libs
13936 else
13937 # MS-DOS does not allow filenames that begin with a dot.
13938 lt_cv_objdir=_libs
13939 fi
13940 rmdir .libs 2>/dev/null
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13943 $as_echo "$lt_cv_objdir" >&6; }
13944 objdir=$lt_cv_objdir
13945
13946
13947
13948
13949
13950 cat >>confdefs.h <<_ACEOF
13951 #define LT_OBJDIR "$lt_cv_objdir/"
13952 _ACEOF
13953
13954
13955
13956
13957 case $host_os in
13958 aix3*)
13959 # AIX sometimes has problems with the GCC collect2 program. For some
13960 # reason, if we set the COLLECT_NAMES environment variable, the problems
13961 # vanish in a puff of smoke.
13962 if test "X${COLLECT_NAMES+set}" != Xset; then
13963 COLLECT_NAMES=
13964 export COLLECT_NAMES
13965 fi
13966 ;;
13967 esac
13968
13969 # Global variables:
13970 ofile=libtool
13971 can_build_shared=yes
13972
13973 # All known linkers require a `.a' archive for static linking (except MSVC,
13974 # which needs '.lib').
13975 libext=a
13976
13977 with_gnu_ld="$lt_cv_prog_gnu_ld"
13978
13979 old_CC="$CC"
13980 old_CFLAGS="$CFLAGS"
13981
13982 # Set sane defaults for various variables
13983 test -z "$CC" && CC=cc
13984 test -z "$LTCC" && LTCC=$CC
13985 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13986 test -z "$LD" && LD=ld
13987 test -z "$ac_objext" && ac_objext=o
13988
13989 for cc_temp in $compiler""; do
13990 case $cc_temp in
13991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13993 \-*) ;;
13994 *) break;;
13995 esac
13996 done
13997 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13998
13999
14000 # Only perform the check for file, if the check method requires it
14001 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14002 case $deplibs_check_method in
14003 file_magic*)
14004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14006 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14007 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 case $MAGIC_CMD in
14011 [\\/*] | ?:[\\/]*)
14012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14013 ;;
14014 *)
14015 lt_save_MAGIC_CMD="$MAGIC_CMD"
14016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14018 for ac_dir in $ac_dummy; do
14019 IFS="$lt_save_ifs"
14020 test -z "$ac_dir" && ac_dir=.
14021 if test -f $ac_dir/${ac_tool_prefix}file; then
14022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14023 if test -n "$file_magic_test_file"; then
14024 case $deplibs_check_method in
14025 "file_magic "*)
14026 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14029 $EGREP "$file_magic_regex" > /dev/null; then
14030 :
14031 else
14032 cat <<_LT_EOF 1>&2
14033
14034 *** Warning: the command libtool uses to detect shared libraries,
14035 *** $file_magic_cmd, produces output that libtool cannot recognize.
14036 *** The result is that libtool may fail to recognize shared libraries
14037 *** as such. This will affect the creation of libtool libraries that
14038 *** depend on shared libraries, but programs linked with such libtool
14039 *** libraries will work regardless of this problem. Nevertheless, you
14040 *** may want to report the problem to your system manager and/or to
14041 *** bug-libtool@gnu.org
14042
14043 _LT_EOF
14044 fi ;;
14045 esac
14046 fi
14047 break
14048 fi
14049 done
14050 IFS="$lt_save_ifs"
14051 MAGIC_CMD="$lt_save_MAGIC_CMD"
14052 ;;
14053 esac
14054 fi
14055
14056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14057 if test -n "$MAGIC_CMD"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14059 $as_echo "$MAGIC_CMD" >&6; }
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 $as_echo "no" >&6; }
14063 fi
14064
14065
14066
14067
14068
14069 if test -z "$lt_cv_path_MAGIC_CMD"; then
14070 if test -n "$ac_tool_prefix"; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14072 $as_echo_n "checking for file... " >&6; }
14073 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 case $MAGIC_CMD in
14077 [\\/*] | ?:[\\/]*)
14078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14079 ;;
14080 *)
14081 lt_save_MAGIC_CMD="$MAGIC_CMD"
14082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14084 for ac_dir in $ac_dummy; do
14085 IFS="$lt_save_ifs"
14086 test -z "$ac_dir" && ac_dir=.
14087 if test -f $ac_dir/file; then
14088 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14089 if test -n "$file_magic_test_file"; then
14090 case $deplibs_check_method in
14091 "file_magic "*)
14092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14095 $EGREP "$file_magic_regex" > /dev/null; then
14096 :
14097 else
14098 cat <<_LT_EOF 1>&2
14099
14100 *** Warning: the command libtool uses to detect shared libraries,
14101 *** $file_magic_cmd, produces output that libtool cannot recognize.
14102 *** The result is that libtool may fail to recognize shared libraries
14103 *** as such. This will affect the creation of libtool libraries that
14104 *** depend on shared libraries, but programs linked with such libtool
14105 *** libraries will work regardless of this problem. Nevertheless, you
14106 *** may want to report the problem to your system manager and/or to
14107 *** bug-libtool@gnu.org
14108
14109 _LT_EOF
14110 fi ;;
14111 esac
14112 fi
14113 break
14114 fi
14115 done
14116 IFS="$lt_save_ifs"
14117 MAGIC_CMD="$lt_save_MAGIC_CMD"
14118 ;;
14119 esac
14120 fi
14121
14122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14123 if test -n "$MAGIC_CMD"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14125 $as_echo "$MAGIC_CMD" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131
14132 else
14133 MAGIC_CMD=:
14134 fi
14135 fi
14136
14137 fi
14138 ;;
14139 esac
14140
14141 # Use C for the default configuration in the libtool script
14142
14143 lt_save_CC="$CC"
14144 ac_ext=c
14145 ac_cpp='$CPP $CPPFLAGS'
14146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14149
14150
14151 # Source file extension for C test sources.
14152 ac_ext=c
14153
14154 # Object file extension for compiled C test sources.
14155 objext=o
14156 objext=$objext
14157
14158 # Code to be used in simple compile tests
14159 lt_simple_compile_test_code="int some_variable = 0;"
14160
14161 # Code to be used in simple link tests
14162 lt_simple_link_test_code='int main(){return(0);}'
14163
14164
14165
14166
14167
14168
14169
14170 # If no C compiler was specified, use CC.
14171 LTCC=${LTCC-"$CC"}
14172
14173 # If no C compiler flags were specified, use CFLAGS.
14174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14175
14176 # Allow CC to be a program name with arguments.
14177 compiler=$CC
14178
14179 # Save the default compiler, since it gets overwritten when the other
14180 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14181 compiler_DEFAULT=$CC
14182
14183 # save warnings/boilerplate of simple test code
14184 ac_outfile=conftest.$ac_objext
14185 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14187 _lt_compiler_boilerplate=`cat conftest.err`
14188 $RM conftest*
14189
14190 ac_outfile=conftest.$ac_objext
14191 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193 _lt_linker_boilerplate=`cat conftest.err`
14194 $RM -r conftest*
14195
14196
14197 if test -n "$compiler"; then
14198
14199 lt_prog_compiler_no_builtin_flag=
14200
14201 if test "$GCC" = yes; then
14202 case $cc_basename in
14203 nvcc*)
14204 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14205 *)
14206 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14207 esac
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14210 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14211 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 lt_cv_prog_compiler_rtti_exceptions=no
14215 ac_outfile=conftest.$ac_objext
14216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14217 lt_compiler_flag="-fno-rtti -fno-exceptions"
14218 # Insert the option either (1) after the last *FLAGS variable, or
14219 # (2) before a word containing "conftest.", or (3) at the end.
14220 # Note that $ac_compile itself does not contain backslashes and begins
14221 # with a dollar sign (not a hyphen), so the echo should work correctly.
14222 # The option is referenced via a variable to avoid confusing sed.
14223 lt_compile=`echo "$ac_compile" | $SED \
14224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14226 -e 's:$: $lt_compiler_flag:'`
14227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14228 (eval "$lt_compile" 2>conftest.err)
14229 ac_status=$?
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 if (exit $ac_status) && test -s "$ac_outfile"; then
14233 # The compiler can only warn and ignore the option if not recognized
14234 # So say no if there are warnings other than the usual output.
14235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14238 lt_cv_prog_compiler_rtti_exceptions=yes
14239 fi
14240 fi
14241 $RM conftest*
14242
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14245 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14246
14247 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14248 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14249 else
14250 :
14251 fi
14252
14253 fi
14254
14255
14256
14257
14258
14259
14260 lt_prog_compiler_wl=
14261 lt_prog_compiler_pic=
14262 lt_prog_compiler_static=
14263
14264
14265 if test "$GCC" = yes; then
14266 lt_prog_compiler_wl='-Wl,'
14267 lt_prog_compiler_static='-static'
14268
14269 case $host_os in
14270 aix*)
14271 # All AIX code is PIC.
14272 if test "$host_cpu" = ia64; then
14273 # AIX 5 now supports IA64 processor
14274 lt_prog_compiler_static='-Bstatic'
14275 fi
14276 ;;
14277
14278 amigaos*)
14279 case $host_cpu in
14280 powerpc)
14281 # see comment about AmigaOS4 .so support
14282 lt_prog_compiler_pic='-fPIC'
14283 ;;
14284 m68k)
14285 # FIXME: we need at least 68020 code to build shared libraries, but
14286 # adding the `-m68020' flag to GCC prevents building anything better,
14287 # like `-m68040'.
14288 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14289 ;;
14290 esac
14291 ;;
14292
14293 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14294 # PIC is the default for these OSes.
14295 ;;
14296
14297 mingw* | cygwin* | pw32* | os2* | cegcc*)
14298 # This hack is so that the source file can tell whether it is being
14299 # built for inclusion in a dll (and should export symbols for example).
14300 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14301 # (--disable-auto-import) libraries
14302 lt_prog_compiler_pic='-DDLL_EXPORT'
14303 ;;
14304
14305 darwin* | rhapsody*)
14306 # PIC is the default on this platform
14307 # Common symbols not allowed in MH_DYLIB files
14308 lt_prog_compiler_pic='-fno-common'
14309 ;;
14310
14311 haiku*)
14312 # PIC is the default for Haiku.
14313 # The "-static" flag exists, but is broken.
14314 lt_prog_compiler_static=
14315 ;;
14316
14317 hpux*)
14318 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14319 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14320 # sets the default TLS model and affects inlining.
14321 case $host_cpu in
14322 hppa*64*)
14323 # +Z the default
14324 ;;
14325 *)
14326 lt_prog_compiler_pic='-fPIC'
14327 ;;
14328 esac
14329 ;;
14330
14331 interix[3-9]*)
14332 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14333 # Instead, we relocate shared libraries at runtime.
14334 ;;
14335
14336 msdosdjgpp*)
14337 # Just because we use GCC doesn't mean we suddenly get shared libraries
14338 # on systems that don't support them.
14339 lt_prog_compiler_can_build_shared=no
14340 enable_shared=no
14341 ;;
14342
14343 *nto* | *qnx*)
14344 # QNX uses GNU C++, but need to define -shared option too, otherwise
14345 # it will coredump.
14346 lt_prog_compiler_pic='-fPIC -shared'
14347 ;;
14348
14349 sysv4*MP*)
14350 if test -d /usr/nec; then
14351 lt_prog_compiler_pic=-Kconform_pic
14352 fi
14353 ;;
14354
14355 *)
14356 lt_prog_compiler_pic='-fPIC'
14357 ;;
14358 esac
14359
14360 case $cc_basename in
14361 nvcc*) # Cuda Compiler Driver 2.2
14362 lt_prog_compiler_wl='-Xlinker '
14363 if test -n "$lt_prog_compiler_pic"; then
14364 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14365 fi
14366 ;;
14367 esac
14368 else
14369 # PORTME Check for flag to pass linker flags through the system compiler.
14370 case $host_os in
14371 aix*)
14372 lt_prog_compiler_wl='-Wl,'
14373 if test "$host_cpu" = ia64; then
14374 # AIX 5 now supports IA64 processor
14375 lt_prog_compiler_static='-Bstatic'
14376 else
14377 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14378 fi
14379 ;;
14380
14381 mingw* | cygwin* | pw32* | os2* | cegcc*)
14382 # This hack is so that the source file can tell whether it is being
14383 # built for inclusion in a dll (and should export symbols for example).
14384 lt_prog_compiler_pic='-DDLL_EXPORT'
14385 ;;
14386
14387 hpux9* | hpux10* | hpux11*)
14388 lt_prog_compiler_wl='-Wl,'
14389 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14390 # not for PA HP-UX.
14391 case $host_cpu in
14392 hppa*64*|ia64*)
14393 # +Z the default
14394 ;;
14395 *)
14396 lt_prog_compiler_pic='+Z'
14397 ;;
14398 esac
14399 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14400 lt_prog_compiler_static='${wl}-a ${wl}archive'
14401 ;;
14402
14403 irix5* | irix6* | nonstopux*)
14404 lt_prog_compiler_wl='-Wl,'
14405 # PIC (with -KPIC) is the default.
14406 lt_prog_compiler_static='-non_shared'
14407 ;;
14408
14409 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14410 case $cc_basename in
14411 # old Intel for x86_64 which still supported -KPIC.
14412 ecc*)
14413 lt_prog_compiler_wl='-Wl,'
14414 lt_prog_compiler_pic='-KPIC'
14415 lt_prog_compiler_static='-static'
14416 ;;
14417 # icc used to be incompatible with GCC.
14418 # ICC 10 doesn't accept -KPIC any more.
14419 icc* | ifort*)
14420 lt_prog_compiler_wl='-Wl,'
14421 lt_prog_compiler_pic='-fPIC'
14422 lt_prog_compiler_static='-static'
14423 ;;
14424 # Lahey Fortran 8.1.
14425 lf95*)
14426 lt_prog_compiler_wl='-Wl,'
14427 lt_prog_compiler_pic='--shared'
14428 lt_prog_compiler_static='--static'
14429 ;;
14430 nagfor*)
14431 # NAG Fortran compiler
14432 lt_prog_compiler_wl='-Wl,-Wl,,'
14433 lt_prog_compiler_pic='-PIC'
14434 lt_prog_compiler_static='-Bstatic'
14435 ;;
14436 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14437 # Portland Group compilers (*not* the Pentium gcc compiler,
14438 # which looks to be a dead project)
14439 lt_prog_compiler_wl='-Wl,'
14440 lt_prog_compiler_pic='-fpic'
14441 lt_prog_compiler_static='-Bstatic'
14442 ;;
14443 ccc*)
14444 lt_prog_compiler_wl='-Wl,'
14445 # All Alpha code is PIC.
14446 lt_prog_compiler_static='-non_shared'
14447 ;;
14448 xl* | bgxl* | bgf* | mpixl*)
14449 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14450 lt_prog_compiler_wl='-Wl,'
14451 lt_prog_compiler_pic='-qpic'
14452 lt_prog_compiler_static='-qstaticlink'
14453 ;;
14454 *)
14455 case `$CC -V 2>&1 | sed 5q` in
14456 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14457 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14458 lt_prog_compiler_pic='-KPIC'
14459 lt_prog_compiler_static='-Bstatic'
14460 lt_prog_compiler_wl=''
14461 ;;
14462 *Sun\ F* | *Sun*Fortran*)
14463 lt_prog_compiler_pic='-KPIC'
14464 lt_prog_compiler_static='-Bstatic'
14465 lt_prog_compiler_wl='-Qoption ld '
14466 ;;
14467 *Sun\ C*)
14468 # Sun C 5.9
14469 lt_prog_compiler_pic='-KPIC'
14470 lt_prog_compiler_static='-Bstatic'
14471 lt_prog_compiler_wl='-Wl,'
14472 ;;
14473 *Intel*\ [CF]*Compiler*)
14474 lt_prog_compiler_wl='-Wl,'
14475 lt_prog_compiler_pic='-fPIC'
14476 lt_prog_compiler_static='-static'
14477 ;;
14478 *Portland\ Group*)
14479 lt_prog_compiler_wl='-Wl,'
14480 lt_prog_compiler_pic='-fpic'
14481 lt_prog_compiler_static='-Bstatic'
14482 ;;
14483 esac
14484 ;;
14485 esac
14486 ;;
14487
14488 newsos6)
14489 lt_prog_compiler_pic='-KPIC'
14490 lt_prog_compiler_static='-Bstatic'
14491 ;;
14492
14493 *nto* | *qnx*)
14494 # QNX uses GNU C++, but need to define -shared option too, otherwise
14495 # it will coredump.
14496 lt_prog_compiler_pic='-fPIC -shared'
14497 ;;
14498
14499 osf3* | osf4* | osf5*)
14500 lt_prog_compiler_wl='-Wl,'
14501 # All OSF/1 code is PIC.
14502 lt_prog_compiler_static='-non_shared'
14503 ;;
14504
14505 rdos*)
14506 lt_prog_compiler_static='-non_shared'
14507 ;;
14508
14509 solaris*)
14510 lt_prog_compiler_pic='-KPIC'
14511 lt_prog_compiler_static='-Bstatic'
14512 case $cc_basename in
14513 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14514 lt_prog_compiler_wl='-Qoption ld ';;
14515 *)
14516 lt_prog_compiler_wl='-Wl,';;
14517 esac
14518 ;;
14519
14520 sunos4*)
14521 lt_prog_compiler_wl='-Qoption ld '
14522 lt_prog_compiler_pic='-PIC'
14523 lt_prog_compiler_static='-Bstatic'
14524 ;;
14525
14526 sysv4 | sysv4.2uw2* | sysv4.3*)
14527 lt_prog_compiler_wl='-Wl,'
14528 lt_prog_compiler_pic='-KPIC'
14529 lt_prog_compiler_static='-Bstatic'
14530 ;;
14531
14532 sysv4*MP*)
14533 if test -d /usr/nec ;then
14534 lt_prog_compiler_pic='-Kconform_pic'
14535 lt_prog_compiler_static='-Bstatic'
14536 fi
14537 ;;
14538
14539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14540 lt_prog_compiler_wl='-Wl,'
14541 lt_prog_compiler_pic='-KPIC'
14542 lt_prog_compiler_static='-Bstatic'
14543 ;;
14544
14545 unicos*)
14546 lt_prog_compiler_wl='-Wl,'
14547 lt_prog_compiler_can_build_shared=no
14548 ;;
14549
14550 uts4*)
14551 lt_prog_compiler_pic='-pic'
14552 lt_prog_compiler_static='-Bstatic'
14553 ;;
14554
14555 *)
14556 lt_prog_compiler_can_build_shared=no
14557 ;;
14558 esac
14559 fi
14560
14561 case $host_os in
14562 # For platforms which do not support PIC, -DPIC is meaningless:
14563 *djgpp*)
14564 lt_prog_compiler_pic=
14565 ;;
14566 *)
14567 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14568 ;;
14569 esac
14570
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14573 if ${lt_cv_prog_compiler_pic+:} false; then :
14574 $as_echo_n "(cached) " >&6
14575 else
14576 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14579 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14580 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14581
14582 #
14583 # Check to make sure the PIC flag actually works.
14584 #
14585 if test -n "$lt_prog_compiler_pic"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14587 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14588 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 lt_cv_prog_compiler_pic_works=no
14592 ac_outfile=conftest.$ac_objext
14593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14595 # Insert the option either (1) after the last *FLAGS variable, or
14596 # (2) before a word containing "conftest.", or (3) at the end.
14597 # Note that $ac_compile itself does not contain backslashes and begins
14598 # with a dollar sign (not a hyphen), so the echo should work correctly.
14599 # The option is referenced via a variable to avoid confusing sed.
14600 lt_compile=`echo "$ac_compile" | $SED \
14601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14603 -e 's:$: $lt_compiler_flag:'`
14604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14605 (eval "$lt_compile" 2>conftest.err)
14606 ac_status=$?
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 if (exit $ac_status) && test -s "$ac_outfile"; then
14610 # The compiler can only warn and ignore the option if not recognized
14611 # So say no if there are warnings other than the usual output.
14612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14615 lt_cv_prog_compiler_pic_works=yes
14616 fi
14617 fi
14618 $RM conftest*
14619
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14622 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14623
14624 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14625 case $lt_prog_compiler_pic in
14626 "" | " "*) ;;
14627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14628 esac
14629 else
14630 lt_prog_compiler_pic=
14631 lt_prog_compiler_can_build_shared=no
14632 fi
14633
14634 fi
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 #
14647 # Check to make sure the static flag actually works.
14648 #
14649 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14652 if ${lt_cv_prog_compiler_static_works+:} false; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 lt_cv_prog_compiler_static_works=no
14656 save_LDFLAGS="$LDFLAGS"
14657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14660 # The linker can only warn and ignore the option if not recognized
14661 # So say no if there are warnings
14662 if test -s conftest.err; then
14663 # Append any errors to the config.log.
14664 cat conftest.err 1>&5
14665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14667 if diff conftest.exp conftest.er2 >/dev/null; then
14668 lt_cv_prog_compiler_static_works=yes
14669 fi
14670 else
14671 lt_cv_prog_compiler_static_works=yes
14672 fi
14673 fi
14674 $RM -r conftest*
14675 LDFLAGS="$save_LDFLAGS"
14676
14677 fi
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14679 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14680
14681 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14682 :
14683 else
14684 lt_prog_compiler_static=
14685 fi
14686
14687
14688
14689
14690
14691
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14695 if ${lt_cv_prog_compiler_c_o+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 lt_cv_prog_compiler_c_o=no
14699 $RM -r conftest 2>/dev/null
14700 mkdir conftest
14701 cd conftest
14702 mkdir out
14703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704
14705 lt_compiler_flag="-o out/conftest2.$ac_objext"
14706 # Insert the option either (1) after the last *FLAGS variable, or
14707 # (2) before a word containing "conftest.", or (3) at the end.
14708 # Note that $ac_compile itself does not contain backslashes and begins
14709 # with a dollar sign (not a hyphen), so the echo should work correctly.
14710 lt_compile=`echo "$ac_compile" | $SED \
14711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14713 -e 's:$: $lt_compiler_flag:'`
14714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14715 (eval "$lt_compile" 2>out/conftest.err)
14716 ac_status=$?
14717 cat out/conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14720 then
14721 # The compiler can only warn and ignore the option if not recognized
14722 # So say no if there are warnings
14723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14726 lt_cv_prog_compiler_c_o=yes
14727 fi
14728 fi
14729 chmod u+w . 2>&5
14730 $RM conftest*
14731 # SGI C++ compiler will create directory out/ii_files/ for
14732 # template instantiation
14733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14734 $RM out/* && rmdir out
14735 cd ..
14736 $RM -r conftest
14737 $RM conftest*
14738
14739 fi
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14742
14743
14744
14745
14746
14747
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14750 if ${lt_cv_prog_compiler_c_o+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 lt_cv_prog_compiler_c_o=no
14754 $RM -r conftest 2>/dev/null
14755 mkdir conftest
14756 cd conftest
14757 mkdir out
14758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14759
14760 lt_compiler_flag="-o out/conftest2.$ac_objext"
14761 # Insert the option either (1) after the last *FLAGS variable, or
14762 # (2) before a word containing "conftest.", or (3) at the end.
14763 # Note that $ac_compile itself does not contain backslashes and begins
14764 # with a dollar sign (not a hyphen), so the echo should work correctly.
14765 lt_compile=`echo "$ac_compile" | $SED \
14766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768 -e 's:$: $lt_compiler_flag:'`
14769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14770 (eval "$lt_compile" 2>out/conftest.err)
14771 ac_status=$?
14772 cat out/conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14775 then
14776 # The compiler can only warn and ignore the option if not recognized
14777 # So say no if there are warnings
14778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14781 lt_cv_prog_compiler_c_o=yes
14782 fi
14783 fi
14784 chmod u+w . 2>&5
14785 $RM conftest*
14786 # SGI C++ compiler will create directory out/ii_files/ for
14787 # template instantiation
14788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14789 $RM out/* && rmdir out
14790 cd ..
14791 $RM -r conftest
14792 $RM conftest*
14793
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14797
14798
14799
14800
14801 hard_links="nottested"
14802 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14803 # do not overwrite the value of need_locks provided by the user
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14805 $as_echo_n "checking if we can lock with hard links... " >&6; }
14806 hard_links=yes
14807 $RM conftest*
14808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14809 touch conftest.a
14810 ln conftest.a conftest.b 2>&5 || hard_links=no
14811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14813 $as_echo "$hard_links" >&6; }
14814 if test "$hard_links" = no; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14816 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14817 need_locks=warn
14818 fi
14819 else
14820 need_locks=no
14821 fi
14822
14823
14824
14825
14826
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14830
14831 runpath_var=
14832 allow_undefined_flag=
14833 always_export_symbols=no
14834 archive_cmds=
14835 archive_expsym_cmds=
14836 compiler_needs_object=no
14837 enable_shared_with_static_runtimes=no
14838 export_dynamic_flag_spec=
14839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14840 hardcode_automatic=no
14841 hardcode_direct=no
14842 hardcode_direct_absolute=no
14843 hardcode_libdir_flag_spec=
14844 hardcode_libdir_separator=
14845 hardcode_minus_L=no
14846 hardcode_shlibpath_var=unsupported
14847 inherit_rpath=no
14848 link_all_deplibs=unknown
14849 module_cmds=
14850 module_expsym_cmds=
14851 old_archive_from_new_cmds=
14852 old_archive_from_expsyms_cmds=
14853 thread_safe_flag_spec=
14854 whole_archive_flag_spec=
14855 # include_expsyms should be a list of space-separated symbols to be *always*
14856 # included in the symbol list
14857 include_expsyms=
14858 # exclude_expsyms can be an extended regexp of symbols to exclude
14859 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14860 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14861 # as well as any symbol that contains `d'.
14862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14864 # platforms (ab)use it in PIC code, but their linkers get confused if
14865 # the symbol is explicitly referenced. Since portable code cannot
14866 # rely on this symbol name, it's probably fine to never include it in
14867 # preloaded symbol tables.
14868 # Exclude shared library initialization/finalization symbols.
14869 extract_expsyms_cmds=
14870
14871 case $host_os in
14872 cygwin* | mingw* | pw32* | cegcc*)
14873 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14874 # When not using gcc, we currently assume that we are using
14875 # Microsoft Visual C++.
14876 if test "$GCC" != yes; then
14877 with_gnu_ld=no
14878 fi
14879 ;;
14880 interix*)
14881 # we just hope/assume this is gcc and not c89 (= MSVC++)
14882 with_gnu_ld=yes
14883 ;;
14884 openbsd*)
14885 with_gnu_ld=no
14886 ;;
14887 esac
14888
14889 ld_shlibs=yes
14890
14891 # On some targets, GNU ld is compatible enough with the native linker
14892 # that we're better off using the native interface for both.
14893 lt_use_gnu_ld_interface=no
14894 if test "$with_gnu_ld" = yes; then
14895 case $host_os in
14896 aix*)
14897 # The AIX port of GNU ld has always aspired to compatibility
14898 # with the native linker. However, as the warning in the GNU ld
14899 # block says, versions before 2.19.5* couldn't really create working
14900 # shared libraries, regardless of the interface used.
14901 case `$LD -v 2>&1` in
14902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14904 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14905 *)
14906 lt_use_gnu_ld_interface=yes
14907 ;;
14908 esac
14909 ;;
14910 *)
14911 lt_use_gnu_ld_interface=yes
14912 ;;
14913 esac
14914 fi
14915
14916 if test "$lt_use_gnu_ld_interface" = yes; then
14917 # If archive_cmds runs LD, not CC, wlarc should be empty
14918 wlarc='${wl}'
14919
14920 # Set some defaults for GNU ld with shared library support. These
14921 # are reset later if shared libraries are not supported. Putting them
14922 # here allows them to be overridden if necessary.
14923 runpath_var=LD_RUN_PATH
14924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14925 export_dynamic_flag_spec='${wl}--export-dynamic'
14926 # ancient GNU ld didn't support --whole-archive et. al.
14927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14928 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14929 else
14930 whole_archive_flag_spec=
14931 fi
14932 supports_anon_versioning=no
14933 case `$LD -v 2>&1` in
14934 *GNU\ gold*) supports_anon_versioning=yes ;;
14935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14938 *\ 2.11.*) ;; # other 2.11 versions
14939 *) supports_anon_versioning=yes ;;
14940 esac
14941
14942 # See if GNU ld supports shared libraries.
14943 case $host_os in
14944 aix[3-9]*)
14945 # On AIX/PPC, the GNU linker is very broken
14946 if test "$host_cpu" != ia64; then
14947 ld_shlibs=no
14948 cat <<_LT_EOF 1>&2
14949
14950 *** Warning: the GNU linker, at least up to release 2.19, is reported
14951 *** to be unable to reliably create shared libraries on AIX.
14952 *** Therefore, libtool is disabling shared libraries support. If you
14953 *** really care for shared libraries, you may want to install binutils
14954 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14955 *** You will then need to restart the configuration process.
14956
14957 _LT_EOF
14958 fi
14959 ;;
14960
14961 amigaos*)
14962 case $host_cpu in
14963 powerpc)
14964 # see comment about AmigaOS4 .so support
14965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 archive_expsym_cmds=''
14967 ;;
14968 m68k)
14969 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)'
14970 hardcode_libdir_flag_spec='-L$libdir'
14971 hardcode_minus_L=yes
14972 ;;
14973 esac
14974 ;;
14975
14976 beos*)
14977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14978 allow_undefined_flag=unsupported
14979 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14980 # support --undefined. This deserves some investigation. FIXME
14981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982 else
14983 ld_shlibs=no
14984 fi
14985 ;;
14986
14987 cygwin* | mingw* | pw32* | cegcc*)
14988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14989 # as there is no search path for DLLs.
14990 hardcode_libdir_flag_spec='-L$libdir'
14991 export_dynamic_flag_spec='${wl}--export-all-symbols'
14992 allow_undefined_flag=unsupported
14993 always_export_symbols=no
14994 enable_shared_with_static_runtimes=yes
14995 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'
14996 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14997
14998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15000 # If the export-symbols file already is a .def file (1st line
15001 # is EXPORTS), use it as is; otherwise, prepend...
15002 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15003 cp $export_symbols $output_objdir/$soname.def;
15004 else
15005 echo EXPORTS > $output_objdir/$soname.def;
15006 cat $export_symbols >> $output_objdir/$soname.def;
15007 fi~
15008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15009 else
15010 ld_shlibs=no
15011 fi
15012 ;;
15013
15014 haiku*)
15015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016 link_all_deplibs=yes
15017 ;;
15018
15019 interix[3-9]*)
15020 hardcode_direct=no
15021 hardcode_shlibpath_var=no
15022 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15023 export_dynamic_flag_spec='${wl}-E'
15024 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15025 # Instead, shared libraries are loaded at an image base (0x10000000 by
15026 # default) and relocated if they conflict, which is a slow very memory
15027 # consuming and fragmenting process. To avoid this, we pick a random,
15028 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15029 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15030 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15031 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'
15032 ;;
15033
15034 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15035 tmp_diet=no
15036 if test "$host_os" = linux-dietlibc; then
15037 case $cc_basename in
15038 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15039 esac
15040 fi
15041 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15042 && test "$tmp_diet" = no
15043 then
15044 tmp_addflag=' $pic_flag'
15045 tmp_sharedflag='-shared'
15046 case $cc_basename,$host_cpu in
15047 pgcc*) # Portland Group C compiler
15048 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'
15049 tmp_addflag=' $pic_flag'
15050 ;;
15051 pgf77* | pgf90* | pgf95* | pgfortran*)
15052 # Portland Group f77 and f90 compilers
15053 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15054 tmp_addflag=' $pic_flag -Mnomain' ;;
15055 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15056 tmp_addflag=' -i_dynamic' ;;
15057 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15058 tmp_addflag=' -i_dynamic -nofor_main' ;;
15059 ifc* | ifort*) # Intel Fortran compiler
15060 tmp_addflag=' -nofor_main' ;;
15061 lf95*) # Lahey Fortran 8.1
15062 whole_archive_flag_spec=
15063 tmp_sharedflag='--shared' ;;
15064 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15065 tmp_sharedflag='-qmkshrobj'
15066 tmp_addflag= ;;
15067 nvcc*) # Cuda Compiler Driver 2.2
15068 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'
15069 compiler_needs_object=yes
15070 ;;
15071 esac
15072 case `$CC -V 2>&1 | sed 5q` in
15073 *Sun\ C*) # Sun C 5.9
15074 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'
15075 compiler_needs_object=yes
15076 tmp_sharedflag='-G' ;;
15077 *Sun\ F*) # Sun Fortran 8.3
15078 tmp_sharedflag='-G' ;;
15079 esac
15080 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15081
15082 if test "x$supports_anon_versioning" = xyes; then
15083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15085 echo "local: *; };" >> $output_objdir/$libname.ver~
15086 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15087 fi
15088
15089 case $cc_basename in
15090 xlf* | bgf* | bgxlf* | mpixlf*)
15091 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15092 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15094 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15095 if test "x$supports_anon_versioning" = xyes; then
15096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15098 echo "local: *; };" >> $output_objdir/$libname.ver~
15099 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15100 fi
15101 ;;
15102 esac
15103 else
15104 ld_shlibs=no
15105 fi
15106 ;;
15107
15108 netbsd*)
15109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15110 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15111 wlarc=
15112 else
15113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15114 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15115 fi
15116 ;;
15117
15118 solaris*)
15119 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15120 ld_shlibs=no
15121 cat <<_LT_EOF 1>&2
15122
15123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15124 *** create shared libraries on Solaris systems. Therefore, libtool
15125 *** is disabling shared libraries support. We urge you to upgrade GNU
15126 *** binutils to release 2.9.1 or newer. Another option is to modify
15127 *** your PATH or compiler configuration so that the native linker is
15128 *** used, and then restart.
15129
15130 _LT_EOF
15131 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15134 else
15135 ld_shlibs=no
15136 fi
15137 ;;
15138
15139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15140 case `$LD -v 2>&1` in
15141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15142 ld_shlibs=no
15143 cat <<_LT_EOF 1>&2
15144
15145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15146 *** reliably create shared libraries on SCO systems. Therefore, libtool
15147 *** is disabling shared libraries support. We urge you to upgrade GNU
15148 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15149 *** your PATH or compiler configuration so that the native linker is
15150 *** used, and then restart.
15151
15152 _LT_EOF
15153 ;;
15154 *)
15155 # For security reasons, it is highly recommended that you always
15156 # use absolute paths for naming shared libraries, and exclude the
15157 # DT_RUNPATH tag from executables and libraries. But doing so
15158 # requires that you compile everything twice, which is a pain.
15159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15163 else
15164 ld_shlibs=no
15165 fi
15166 ;;
15167 esac
15168 ;;
15169
15170 sunos4*)
15171 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15172 wlarc=
15173 hardcode_direct=yes
15174 hardcode_shlibpath_var=no
15175 ;;
15176
15177 *)
15178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15180 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15181 else
15182 ld_shlibs=no
15183 fi
15184 ;;
15185 esac
15186
15187 if test "$ld_shlibs" = no; then
15188 runpath_var=
15189 hardcode_libdir_flag_spec=
15190 export_dynamic_flag_spec=
15191 whole_archive_flag_spec=
15192 fi
15193 else
15194 # PORTME fill in a description of your system's linker (not GNU ld)
15195 case $host_os in
15196 aix3*)
15197 allow_undefined_flag=unsupported
15198 always_export_symbols=yes
15199 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'
15200 # Note: this linker hardcodes the directories in LIBPATH if there
15201 # are no directories specified by -L.
15202 hardcode_minus_L=yes
15203 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15204 # Neither direct hardcoding nor static linking is supported with a
15205 # broken collect2.
15206 hardcode_direct=unsupported
15207 fi
15208 ;;
15209
15210 aix[4-9]*)
15211 if test "$host_cpu" = ia64; then
15212 # On IA64, the linker does run time linking by default, so we don't
15213 # have to do anything special.
15214 aix_use_runtimelinking=no
15215 exp_sym_flag='-Bexport'
15216 no_entry_flag=""
15217 else
15218 # If we're using GNU nm, then we don't want the "-C" option.
15219 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15220 # Also, AIX nm treats weak defined symbols like other global
15221 # defined symbols, whereas GNU nm marks them as "W".
15222 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15223 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'
15224 else
15225 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'
15226 fi
15227 aix_use_runtimelinking=no
15228
15229 # Test if we are trying to use run time linking or normal
15230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15231 # need to do runtime linking.
15232 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15233 for ld_flag in $LDFLAGS; do
15234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15235 aix_use_runtimelinking=yes
15236 break
15237 fi
15238 done
15239 ;;
15240 esac
15241
15242 exp_sym_flag='-bexport'
15243 no_entry_flag='-bnoentry'
15244 fi
15245
15246 # When large executables or shared objects are built, AIX ld can
15247 # have problems creating the table of contents. If linking a library
15248 # or program results in "error TOC overflow" add -mminimal-toc to
15249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15251
15252 archive_cmds=''
15253 hardcode_direct=yes
15254 hardcode_direct_absolute=yes
15255 hardcode_libdir_separator=':'
15256 link_all_deplibs=yes
15257 file_list_spec='${wl}-f,'
15258
15259 if test "$GCC" = yes; then
15260 case $host_os in aix4.[012]|aix4.[012].*)
15261 # We only want to do this on AIX 4.2 and lower, the check
15262 # below for broken collect2 doesn't work under 4.3+
15263 collect2name=`${CC} -print-prog-name=collect2`
15264 if test -f "$collect2name" &&
15265 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15266 then
15267 # We have reworked collect2
15268 :
15269 else
15270 # We have old collect2
15271 hardcode_direct=unsupported
15272 # It fails to find uninstalled libraries when the uninstalled
15273 # path is not listed in the libpath. Setting hardcode_minus_L
15274 # to unsupported forces relinking
15275 hardcode_minus_L=yes
15276 hardcode_libdir_flag_spec='-L$libdir'
15277 hardcode_libdir_separator=
15278 fi
15279 ;;
15280 esac
15281 shared_flag='-shared'
15282 if test "$aix_use_runtimelinking" = yes; then
15283 shared_flag="$shared_flag "'${wl}-G'
15284 fi
15285 else
15286 # not using gcc
15287 if test "$host_cpu" = ia64; then
15288 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15289 # chokes on -Wl,-G. The following line is correct:
15290 shared_flag='-G'
15291 else
15292 if test "$aix_use_runtimelinking" = yes; then
15293 shared_flag='${wl}-G'
15294 else
15295 shared_flag='${wl}-bM:SRE'
15296 fi
15297 fi
15298 fi
15299
15300 export_dynamic_flag_spec='${wl}-bexpall'
15301 # It seems that -bexpall does not export symbols beginning with
15302 # underscore (_), so it is better to generate a list of symbols to export.
15303 always_export_symbols=yes
15304 if test "$aix_use_runtimelinking" = yes; then
15305 # Warning - without using the other runtime loading flags (-brtl),
15306 # -berok will link without error, but may produce a broken library.
15307 allow_undefined_flag='-berok'
15308 # Determine the default libpath from the value encoded in an
15309 # empty executable.
15310 if test "${lt_cv_aix_libpath+set}" = set; then
15311 aix_libpath=$lt_cv_aix_libpath
15312 else
15313 if ${lt_cv_aix_libpath_+:} false; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318
15319 int
15320 main ()
15321 {
15322
15323 ;
15324 return 0;
15325 }
15326 _ACEOF
15327 if ac_fn_c_try_link "$LINENO"; then :
15328
15329 lt_aix_libpath_sed='
15330 /Import File Strings/,/^$/ {
15331 /^0/ {
15332 s/^0 *\([^ ]*\) *$/\1/
15333 p
15334 }
15335 }'
15336 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15337 # Check for a 64-bit object if we didn't find anything.
15338 if test -z "$lt_cv_aix_libpath_"; then
15339 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15340 fi
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 if test -z "$lt_cv_aix_libpath_"; then
15345 lt_cv_aix_libpath_="/usr/lib:/lib"
15346 fi
15347
15348 fi
15349
15350 aix_libpath=$lt_cv_aix_libpath_
15351 fi
15352
15353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15354 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"
15355 else
15356 if test "$host_cpu" = ia64; then
15357 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15358 allow_undefined_flag="-z nodefs"
15359 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"
15360 else
15361 # Determine the default libpath from the value encoded in an
15362 # empty executable.
15363 if test "${lt_cv_aix_libpath+set}" = set; then
15364 aix_libpath=$lt_cv_aix_libpath
15365 else
15366 if ${lt_cv_aix_libpath_+:} false; then :
15367 $as_echo_n "(cached) " >&6
15368 else
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15371
15372 int
15373 main ()
15374 {
15375
15376 ;
15377 return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_link "$LINENO"; then :
15381
15382 lt_aix_libpath_sed='
15383 /Import File Strings/,/^$/ {
15384 /^0/ {
15385 s/^0 *\([^ ]*\) *$/\1/
15386 p
15387 }
15388 }'
15389 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15390 # Check for a 64-bit object if we didn't find anything.
15391 if test -z "$lt_cv_aix_libpath_"; then
15392 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393 fi
15394 fi
15395 rm -f core conftest.err conftest.$ac_objext \
15396 conftest$ac_exeext conftest.$ac_ext
15397 if test -z "$lt_cv_aix_libpath_"; then
15398 lt_cv_aix_libpath_="/usr/lib:/lib"
15399 fi
15400
15401 fi
15402
15403 aix_libpath=$lt_cv_aix_libpath_
15404 fi
15405
15406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15407 # Warning - without using the other run time loading flags,
15408 # -berok will link without error, but may produce a broken library.
15409 no_undefined_flag=' ${wl}-bernotok'
15410 allow_undefined_flag=' ${wl}-berok'
15411 if test "$with_gnu_ld" = yes; then
15412 # We only use this code for GNU lds that support --whole-archive.
15413 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15414 else
15415 # Exported symbols can be pulled into shared objects from archives
15416 whole_archive_flag_spec='$convenience'
15417 fi
15418 archive_cmds_need_lc=yes
15419 # This is similar to how AIX traditionally builds its shared libraries.
15420 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'
15421 fi
15422 fi
15423 ;;
15424
15425 amigaos*)
15426 case $host_cpu in
15427 powerpc)
15428 # see comment about AmigaOS4 .so support
15429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15430 archive_expsym_cmds=''
15431 ;;
15432 m68k)
15433 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)'
15434 hardcode_libdir_flag_spec='-L$libdir'
15435 hardcode_minus_L=yes
15436 ;;
15437 esac
15438 ;;
15439
15440 bsdi[45]*)
15441 export_dynamic_flag_spec=-rdynamic
15442 ;;
15443
15444 cygwin* | mingw* | pw32* | cegcc*)
15445 # When not using gcc, we currently assume that we are using
15446 # Microsoft Visual C++.
15447 # hardcode_libdir_flag_spec is actually meaningless, as there is
15448 # no search path for DLLs.
15449 case $cc_basename in
15450 cl*)
15451 # Native MSVC
15452 hardcode_libdir_flag_spec=' '
15453 allow_undefined_flag=unsupported
15454 always_export_symbols=yes
15455 file_list_spec='@'
15456 # Tell ltmain to make .lib files, not .a files.
15457 libext=lib
15458 # Tell ltmain to make .dll files, not .so files.
15459 shrext_cmds=".dll"
15460 # FIXME: Setting linknames here is a bad hack.
15461 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15462 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15463 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15464 else
15465 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15466 fi~
15467 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15468 linknames='
15469 # The linker will not automatically build a static lib if we build a DLL.
15470 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15471 enable_shared_with_static_runtimes=yes
15472 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15473 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15474 # Don't use ranlib
15475 old_postinstall_cmds='chmod 644 $oldlib'
15476 postlink_cmds='lt_outputfile="@OUTPUT@"~
15477 lt_tool_outputfile="@TOOL_OUTPUT@"~
15478 case $lt_outputfile in
15479 *.exe|*.EXE) ;;
15480 *)
15481 lt_outputfile="$lt_outputfile.exe"
15482 lt_tool_outputfile="$lt_tool_outputfile.exe"
15483 ;;
15484 esac~
15485 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15486 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15487 $RM "$lt_outputfile.manifest";
15488 fi'
15489 ;;
15490 *)
15491 # Assume MSVC wrapper
15492 hardcode_libdir_flag_spec=' '
15493 allow_undefined_flag=unsupported
15494 # Tell ltmain to make .lib files, not .a files.
15495 libext=lib
15496 # Tell ltmain to make .dll files, not .so files.
15497 shrext_cmds=".dll"
15498 # FIXME: Setting linknames here is a bad hack.
15499 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15500 # The linker will automatically build a .lib file if we build a DLL.
15501 old_archive_from_new_cmds='true'
15502 # FIXME: Should let the user specify the lib program.
15503 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15504 enable_shared_with_static_runtimes=yes
15505 ;;
15506 esac
15507 ;;
15508
15509 darwin* | rhapsody*)
15510
15511
15512 archive_cmds_need_lc=no
15513 hardcode_direct=no
15514 hardcode_automatic=yes
15515 hardcode_shlibpath_var=unsupported
15516 if test "$lt_cv_ld_force_load" = "yes"; then
15517 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\"`'
15518
15519 else
15520 whole_archive_flag_spec=''
15521 fi
15522 link_all_deplibs=yes
15523 allow_undefined_flag="$_lt_dar_allow_undefined"
15524 case $cc_basename in
15525 ifort*) _lt_dar_can_shared=yes ;;
15526 *) _lt_dar_can_shared=$GCC ;;
15527 esac
15528 if test "$_lt_dar_can_shared" = "yes"; then
15529 output_verbose_link_cmd=func_echo_all
15530 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15531 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15532 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}"
15533 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}"
15534
15535 else
15536 ld_shlibs=no
15537 fi
15538
15539 ;;
15540
15541 dgux*)
15542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543 hardcode_libdir_flag_spec='-L$libdir'
15544 hardcode_shlibpath_var=no
15545 ;;
15546
15547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15548 # support. Future versions do this automatically, but an explicit c++rt0.o
15549 # does not break anything, and helps significantly (at the cost of a little
15550 # extra space).
15551 freebsd2.2*)
15552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15553 hardcode_libdir_flag_spec='-R$libdir'
15554 hardcode_direct=yes
15555 hardcode_shlibpath_var=no
15556 ;;
15557
15558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15559 freebsd2.*)
15560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_direct=yes
15562 hardcode_minus_L=yes
15563 hardcode_shlibpath_var=no
15564 ;;
15565
15566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15567 freebsd* | dragonfly*)
15568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15569 hardcode_libdir_flag_spec='-R$libdir'
15570 hardcode_direct=yes
15571 hardcode_shlibpath_var=no
15572 ;;
15573
15574 hpux9*)
15575 if test "$GCC" = yes; then
15576 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'
15577 else
15578 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'
15579 fi
15580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15581 hardcode_libdir_separator=:
15582 hardcode_direct=yes
15583
15584 # hardcode_minus_L: Not really in the search PATH,
15585 # but as the default location of the library.
15586 hardcode_minus_L=yes
15587 export_dynamic_flag_spec='${wl}-E'
15588 ;;
15589
15590 hpux10*)
15591 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15592 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15593 else
15594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15595 fi
15596 if test "$with_gnu_ld" = no; then
15597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15598 hardcode_libdir_separator=:
15599 hardcode_direct=yes
15600 hardcode_direct_absolute=yes
15601 export_dynamic_flag_spec='${wl}-E'
15602 # hardcode_minus_L: Not really in the search PATH,
15603 # but as the default location of the library.
15604 hardcode_minus_L=yes
15605 fi
15606 ;;
15607
15608 hpux11*)
15609 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15610 case $host_cpu in
15611 hppa*64*)
15612 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613 ;;
15614 ia64*)
15615 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15616 ;;
15617 *)
15618 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619 ;;
15620 esac
15621 else
15622 case $host_cpu in
15623 hppa*64*)
15624 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 ;;
15626 ia64*)
15627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15628 ;;
15629 *)
15630
15631 # Older versions of the 11.00 compiler do not understand -b yet
15632 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15634 $as_echo_n "checking if $CC understands -b... " >&6; }
15635 if ${lt_cv_prog_compiler__b+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 lt_cv_prog_compiler__b=no
15639 save_LDFLAGS="$LDFLAGS"
15640 LDFLAGS="$LDFLAGS -b"
15641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15643 # The linker can only warn and ignore the option if not recognized
15644 # So say no if there are warnings
15645 if test -s conftest.err; then
15646 # Append any errors to the config.log.
15647 cat conftest.err 1>&5
15648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15650 if diff conftest.exp conftest.er2 >/dev/null; then
15651 lt_cv_prog_compiler__b=yes
15652 fi
15653 else
15654 lt_cv_prog_compiler__b=yes
15655 fi
15656 fi
15657 $RM -r conftest*
15658 LDFLAGS="$save_LDFLAGS"
15659
15660 fi
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15662 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15663
15664 if test x"$lt_cv_prog_compiler__b" = xyes; then
15665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15666 else
15667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15668 fi
15669
15670 ;;
15671 esac
15672 fi
15673 if test "$with_gnu_ld" = no; then
15674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15675 hardcode_libdir_separator=:
15676
15677 case $host_cpu in
15678 hppa*64*|ia64*)
15679 hardcode_direct=no
15680 hardcode_shlibpath_var=no
15681 ;;
15682 *)
15683 hardcode_direct=yes
15684 hardcode_direct_absolute=yes
15685 export_dynamic_flag_spec='${wl}-E'
15686
15687 # hardcode_minus_L: Not really in the search PATH,
15688 # but as the default location of the library.
15689 hardcode_minus_L=yes
15690 ;;
15691 esac
15692 fi
15693 ;;
15694
15695 irix5* | irix6* | nonstopux*)
15696 if test "$GCC" = yes; then
15697 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'
15698 # Try to use the -exported_symbol ld option, if it does not
15699 # work, assume that -exports_file does not work either and
15700 # implicitly export all symbols.
15701 # This should be the same for all languages, so no per-tag cache variable.
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15703 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15704 if ${lt_cv_irix_exported_symbol+:} false; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 save_LDFLAGS="$LDFLAGS"
15708 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711 int foo (void) { return 0; }
15712 _ACEOF
15713 if ac_fn_c_try_link "$LINENO"; then :
15714 lt_cv_irix_exported_symbol=yes
15715 else
15716 lt_cv_irix_exported_symbol=no
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext \
15719 conftest$ac_exeext conftest.$ac_ext
15720 LDFLAGS="$save_LDFLAGS"
15721 fi
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15723 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15724 if test "$lt_cv_irix_exported_symbol" = yes; then
15725 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'
15726 fi
15727 else
15728 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'
15729 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'
15730 fi
15731 archive_cmds_need_lc='no'
15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733 hardcode_libdir_separator=:
15734 inherit_rpath=yes
15735 link_all_deplibs=yes
15736 ;;
15737
15738 netbsd*)
15739 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15741 else
15742 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15743 fi
15744 hardcode_libdir_flag_spec='-R$libdir'
15745 hardcode_direct=yes
15746 hardcode_shlibpath_var=no
15747 ;;
15748
15749 newsos6)
15750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751 hardcode_direct=yes
15752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15753 hardcode_libdir_separator=:
15754 hardcode_shlibpath_var=no
15755 ;;
15756
15757 *nto* | *qnx*)
15758 ;;
15759
15760 openbsd*)
15761 if test -f /usr/libexec/ld.so; then
15762 hardcode_direct=yes
15763 hardcode_shlibpath_var=no
15764 hardcode_direct_absolute=yes
15765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15766 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15767 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15769 export_dynamic_flag_spec='${wl}-E'
15770 else
15771 case $host_os in
15772 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_libdir_flag_spec='-R$libdir'
15775 ;;
15776 *)
15777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15779 ;;
15780 esac
15781 fi
15782 else
15783 ld_shlibs=no
15784 fi
15785 ;;
15786
15787 os2*)
15788 hardcode_libdir_flag_spec='-L$libdir'
15789 hardcode_minus_L=yes
15790 allow_undefined_flag=unsupported
15791 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'
15792 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15793 ;;
15794
15795 osf3*)
15796 if test "$GCC" = yes; then
15797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15798 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'
15799 else
15800 allow_undefined_flag=' -expect_unresolved \*'
15801 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'
15802 fi
15803 archive_cmds_need_lc='no'
15804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15805 hardcode_libdir_separator=:
15806 ;;
15807
15808 osf4* | osf5*) # as osf3* with the addition of -msym flag
15809 if test "$GCC" = yes; then
15810 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15811 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'
15812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15813 else
15814 allow_undefined_flag=' -expect_unresolved \*'
15815 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'
15816 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~
15817 $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'
15818
15819 # Both c and cxx compiler support -rpath directly
15820 hardcode_libdir_flag_spec='-rpath $libdir'
15821 fi
15822 archive_cmds_need_lc='no'
15823 hardcode_libdir_separator=:
15824 ;;
15825
15826 solaris*)
15827 no_undefined_flag=' -z defs'
15828 if test "$GCC" = yes; then
15829 wlarc='${wl}'
15830 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15832 $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'
15833 else
15834 case `$CC -V 2>&1` in
15835 *"Compilers 5.0"*)
15836 wlarc=''
15837 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15839 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15840 ;;
15841 *)
15842 wlarc='${wl}'
15843 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15845 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15846 ;;
15847 esac
15848 fi
15849 hardcode_libdir_flag_spec='-R$libdir'
15850 hardcode_shlibpath_var=no
15851 case $host_os in
15852 solaris2.[0-5] | solaris2.[0-5].*) ;;
15853 *)
15854 # The compiler driver will combine and reorder linker options,
15855 # but understands `-z linker_flag'. GCC discards it without `$wl',
15856 # but is careful enough not to reorder.
15857 # Supported since Solaris 2.6 (maybe 2.5.1?)
15858 if test "$GCC" = yes; then
15859 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15860 else
15861 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15862 fi
15863 ;;
15864 esac
15865 link_all_deplibs=yes
15866 ;;
15867
15868 sunos4*)
15869 if test "x$host_vendor" = xsequent; then
15870 # Use $CC to link under sequent, because it throws in some extra .o
15871 # files that make .init and .fini sections work.
15872 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15873 else
15874 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15875 fi
15876 hardcode_libdir_flag_spec='-L$libdir'
15877 hardcode_direct=yes
15878 hardcode_minus_L=yes
15879 hardcode_shlibpath_var=no
15880 ;;
15881
15882 sysv4)
15883 case $host_vendor in
15884 sni)
15885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_direct=yes # is this really true???
15887 ;;
15888 siemens)
15889 ## LD is ld it makes a PLAMLIB
15890 ## CC just makes a GrossModule.
15891 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15892 reload_cmds='$CC -r -o $output$reload_objs'
15893 hardcode_direct=no
15894 ;;
15895 motorola)
15896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15898 ;;
15899 esac
15900 runpath_var='LD_RUN_PATH'
15901 hardcode_shlibpath_var=no
15902 ;;
15903
15904 sysv4.3*)
15905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_shlibpath_var=no
15907 export_dynamic_flag_spec='-Bexport'
15908 ;;
15909
15910 sysv4*MP*)
15911 if test -d /usr/nec; then
15912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15913 hardcode_shlibpath_var=no
15914 runpath_var=LD_RUN_PATH
15915 hardcode_runpath_var=yes
15916 ld_shlibs=yes
15917 fi
15918 ;;
15919
15920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15921 no_undefined_flag='${wl}-z,text'
15922 archive_cmds_need_lc=no
15923 hardcode_shlibpath_var=no
15924 runpath_var='LD_RUN_PATH'
15925
15926 if test "$GCC" = yes; then
15927 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15928 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 else
15930 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15931 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932 fi
15933 ;;
15934
15935 sysv5* | sco3.2v5* | sco5v6*)
15936 # Note: We can NOT use -z defs as we might desire, because we do not
15937 # link with -lc, and that would cause any symbols used from libc to
15938 # always be unresolved, which means just about no library would
15939 # ever link correctly. If we're not using GNU ld we use -z text
15940 # though, which does catch some bad symbols but isn't as heavy-handed
15941 # as -z defs.
15942 no_undefined_flag='${wl}-z,text'
15943 allow_undefined_flag='${wl}-z,nodefs'
15944 archive_cmds_need_lc=no
15945 hardcode_shlibpath_var=no
15946 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15947 hardcode_libdir_separator=':'
15948 link_all_deplibs=yes
15949 export_dynamic_flag_spec='${wl}-Bexport'
15950 runpath_var='LD_RUN_PATH'
15951
15952 if test "$GCC" = yes; then
15953 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15954 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15955 else
15956 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958 fi
15959 ;;
15960
15961 uts4*)
15962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15963 hardcode_libdir_flag_spec='-L$libdir'
15964 hardcode_shlibpath_var=no
15965 ;;
15966
15967 *)
15968 ld_shlibs=no
15969 ;;
15970 esac
15971
15972 if test x$host_vendor = xsni; then
15973 case $host in
15974 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15975 export_dynamic_flag_spec='${wl}-Blargedynsym'
15976 ;;
15977 esac
15978 fi
15979 fi
15980
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15982 $as_echo "$ld_shlibs" >&6; }
15983 test "$ld_shlibs" = no && can_build_shared=no
15984
15985 with_gnu_ld=$with_gnu_ld
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001 #
16002 # Do we need to explicitly link libc?
16003 #
16004 case "x$archive_cmds_need_lc" in
16005 x|xyes)
16006 # Assume -lc should be added
16007 archive_cmds_need_lc=yes
16008
16009 if test "$enable_shared" = yes && test "$GCC" = yes; then
16010 case $archive_cmds in
16011 *'~'*)
16012 # FIXME: we may have to deal with multi-command sequences.
16013 ;;
16014 '$CC '*)
16015 # Test whether the compiler implicitly links with -lc since on some
16016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16017 # to ld, don't add -lc before -lgcc.
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16019 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16020 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 $RM conftest*
16024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16025
16026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16027 (eval $ac_compile) 2>&5
16028 ac_status=$?
16029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030 test $ac_status = 0; } 2>conftest.err; then
16031 soname=conftest
16032 lib=conftest
16033 libobjs=conftest.$ac_objext
16034 deplibs=
16035 wl=$lt_prog_compiler_wl
16036 pic_flag=$lt_prog_compiler_pic
16037 compiler_flags=-v
16038 linker_flags=-v
16039 verstring=
16040 output_objdir=.
16041 libname=conftest
16042 lt_save_allow_undefined_flag=$allow_undefined_flag
16043 allow_undefined_flag=
16044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16045 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16046 ac_status=$?
16047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16048 test $ac_status = 0; }
16049 then
16050 lt_cv_archive_cmds_need_lc=no
16051 else
16052 lt_cv_archive_cmds_need_lc=yes
16053 fi
16054 allow_undefined_flag=$lt_save_allow_undefined_flag
16055 else
16056 cat conftest.err 1>&5
16057 fi
16058 $RM conftest*
16059
16060 fi
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16062 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16063 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16064 ;;
16065 esac
16066 fi
16067 ;;
16068 esac
16069
16070
16071
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16222 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16223
16224 if test "$GCC" = yes; then
16225 case $host_os in
16226 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16227 *) lt_awk_arg="/^libraries:/" ;;
16228 esac
16229 case $host_os in
16230 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16231 *) lt_sed_strip_eq="s,=/,/,g" ;;
16232 esac
16233 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16234 case $lt_search_path_spec in
16235 *\;*)
16236 # if the path contains ";" then we assume it to be the separator
16237 # otherwise default to the standard path separator (i.e. ":") - it is
16238 # assumed that no part of a normal pathname contains ";" but that should
16239 # okay in the real world where ";" in dirpaths is itself problematic.
16240 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16241 ;;
16242 *)
16243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16244 ;;
16245 esac
16246 # Ok, now we have the path, separated by spaces, we can step through it
16247 # and add multilib dir if necessary.
16248 lt_tmp_lt_search_path_spec=
16249 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16250 for lt_sys_path in $lt_search_path_spec; do
16251 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16253 else
16254 test -d "$lt_sys_path" && \
16255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16256 fi
16257 done
16258 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16259 BEGIN {RS=" "; FS="/|\n";} {
16260 lt_foo="";
16261 lt_count=0;
16262 for (lt_i = NF; lt_i > 0; lt_i--) {
16263 if ($lt_i != "" && $lt_i != ".") {
16264 if ($lt_i == "..") {
16265 lt_count++;
16266 } else {
16267 if (lt_count == 0) {
16268 lt_foo="/" $lt_i lt_foo;
16269 } else {
16270 lt_count--;
16271 }
16272 }
16273 }
16274 }
16275 if (lt_foo != "") { lt_freq[lt_foo]++; }
16276 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16277 }'`
16278 # AWK program above erroneously prepends '/' to C:/dos/paths
16279 # for these hosts.
16280 case $host_os in
16281 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16282 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16283 esac
16284 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16285 else
16286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16287 fi
16288 library_names_spec=
16289 libname_spec='lib$name'
16290 soname_spec=
16291 shrext_cmds=".so"
16292 postinstall_cmds=
16293 postuninstall_cmds=
16294 finish_cmds=
16295 finish_eval=
16296 shlibpath_var=
16297 shlibpath_overrides_runpath=unknown
16298 version_type=none
16299 dynamic_linker="$host_os ld.so"
16300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16301 need_lib_prefix=unknown
16302 hardcode_into_libs=no
16303
16304 # when you set need_version to no, make sure it does not cause -set_version
16305 # flags to be left without arguments
16306 need_version=unknown
16307
16308 case $host_os in
16309 aix3*)
16310 version_type=linux # correct to gnu/linux during the next big refactor
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16312 shlibpath_var=LIBPATH
16313
16314 # AIX 3 has no versioning support, so we append a major version to the name.
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 ;;
16317
16318 aix[4-9]*)
16319 version_type=linux # correct to gnu/linux during the next big refactor
16320 need_lib_prefix=no
16321 need_version=no
16322 hardcode_into_libs=yes
16323 if test "$host_cpu" = ia64; then
16324 # AIX 5 supports IA64
16325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 else
16328 # With GCC up to 2.95.x, collect2 would create an import file
16329 # for dependence libraries. The import file would start with
16330 # the line `#! .'. This would cause the generated library to
16331 # depend on `.', always an invalid library. This was fixed in
16332 # development snapshots of GCC prior to 3.0.
16333 case $host_os in
16334 aix4 | aix4.[01] | aix4.[01].*)
16335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16336 echo ' yes '
16337 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16338 :
16339 else
16340 can_build_shared=no
16341 fi
16342 ;;
16343 esac
16344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16345 # soname into executable. Probably we can add versioning support to
16346 # collect2, so additional links can be useful in future.
16347 if test "$aix_use_runtimelinking" = yes; then
16348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16349 # instead of lib<name>.a to let people know that these are not
16350 # typical AIX shared libraries.
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352 else
16353 # We preserve .a as extension for shared libraries through AIX4.2
16354 # and later when we are not doing run time linking.
16355 library_names_spec='${libname}${release}.a $libname.a'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 fi
16358 shlibpath_var=LIBPATH
16359 fi
16360 ;;
16361
16362 amigaos*)
16363 case $host_cpu in
16364 powerpc)
16365 # Since July 2007 AmigaOS4 officially supports .so libraries.
16366 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 ;;
16369 m68k)
16370 library_names_spec='$libname.ixlibrary $libname.a'
16371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16372 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'
16373 ;;
16374 esac
16375 ;;
16376
16377 beos*)
16378 library_names_spec='${libname}${shared_ext}'
16379 dynamic_linker="$host_os ld.so"
16380 shlibpath_var=LIBRARY_PATH
16381 ;;
16382
16383 bsdi[45]*)
16384 version_type=linux # correct to gnu/linux during the next big refactor
16385 need_version=no
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16389 shlibpath_var=LD_LIBRARY_PATH
16390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16392 # the default ld.so.conf also contains /usr/contrib/lib and
16393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16394 # libtool to hard-code these into programs
16395 ;;
16396
16397 cygwin* | mingw* | pw32* | cegcc*)
16398 version_type=windows
16399 shrext_cmds=".dll"
16400 need_version=no
16401 need_lib_prefix=no
16402
16403 case $GCC,$cc_basename in
16404 yes,*)
16405 # gcc
16406 library_names_spec='$libname.dll.a'
16407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16408 postinstall_cmds='base_file=`basename \${file}`~
16409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16410 dldir=$destdir/`dirname \$dlpath`~
16411 test -d \$dldir || mkdir -p \$dldir~
16412 $install_prog $dir/$dlname \$dldir/$dlname~
16413 chmod a+x \$dldir/$dlname~
16414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16416 fi'
16417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16418 dlpath=$dir/\$dldll~
16419 $RM \$dlpath'
16420 shlibpath_overrides_runpath=yes
16421
16422 case $host_os in
16423 cygwin*)
16424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16426
16427 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16428 ;;
16429 mingw* | cegcc*)
16430 # MinGW DLLs use traditional 'lib' prefix
16431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16432 ;;
16433 pw32*)
16434 # pw32 DLLs use 'pw' prefix rather than 'lib'
16435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436 ;;
16437 esac
16438 dynamic_linker='Win32 ld.exe'
16439 ;;
16440
16441 *,cl*)
16442 # Native MSVC
16443 libname_spec='$name'
16444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16445 library_names_spec='${libname}.dll.lib'
16446
16447 case $build_os in
16448 mingw*)
16449 sys_lib_search_path_spec=
16450 lt_save_ifs=$IFS
16451 IFS=';'
16452 for lt_path in $LIB
16453 do
16454 IFS=$lt_save_ifs
16455 # Let DOS variable expansion print the short 8.3 style file name.
16456 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16457 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16458 done
16459 IFS=$lt_save_ifs
16460 # Convert to MSYS style.
16461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16462 ;;
16463 cygwin*)
16464 # Convert to unix form, then to dos form, then back to unix form
16465 # but this time dos style (no spaces!) so that the unix form looks
16466 # like /cygdrive/c/PROGRA~1:/cygdr...
16467 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16468 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16469 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16470 ;;
16471 *)
16472 sys_lib_search_path_spec="$LIB"
16473 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16474 # It is most probably a Windows format PATH.
16475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16476 else
16477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16478 fi
16479 # FIXME: find the short name or the path components, as spaces are
16480 # common. (e.g. "Program Files" -> "PROGRA~1")
16481 ;;
16482 esac
16483
16484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16485 postinstall_cmds='base_file=`basename \${file}`~
16486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16487 dldir=$destdir/`dirname \$dlpath`~
16488 test -d \$dldir || mkdir -p \$dldir~
16489 $install_prog $dir/$dlname \$dldir/$dlname'
16490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16491 dlpath=$dir/\$dldll~
16492 $RM \$dlpath'
16493 shlibpath_overrides_runpath=yes
16494 dynamic_linker='Win32 link.exe'
16495 ;;
16496
16497 *)
16498 # Assume MSVC wrapper
16499 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16500 dynamic_linker='Win32 ld.exe'
16501 ;;
16502 esac
16503 # FIXME: first we should search . and the directory the executable is in
16504 shlibpath_var=PATH
16505 ;;
16506
16507 darwin* | rhapsody*)
16508 dynamic_linker="$host_os dyld"
16509 version_type=darwin
16510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16513 soname_spec='${libname}${release}${major}$shared_ext'
16514 shlibpath_overrides_runpath=yes
16515 shlibpath_var=DYLD_LIBRARY_PATH
16516 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16517
16518 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16520 ;;
16521
16522 dgux*)
16523 version_type=linux # correct to gnu/linux during the next big refactor
16524 need_lib_prefix=no
16525 need_version=no
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 ;;
16530
16531 freebsd* | dragonfly*)
16532 # DragonFly does not have aout. When/if they implement a new
16533 # versioning mechanism, adjust this.
16534 if test -x /usr/bin/objformat; then
16535 objformat=`/usr/bin/objformat`
16536 else
16537 case $host_os in
16538 freebsd[23].*) objformat=aout ;;
16539 *) objformat=elf ;;
16540 esac
16541 fi
16542 version_type=freebsd-$objformat
16543 case $version_type in
16544 freebsd-elf*)
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16546 need_version=no
16547 need_lib_prefix=no
16548 ;;
16549 freebsd-*)
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16551 need_version=yes
16552 ;;
16553 esac
16554 shlibpath_var=LD_LIBRARY_PATH
16555 case $host_os in
16556 freebsd2.*)
16557 shlibpath_overrides_runpath=yes
16558 ;;
16559 freebsd3.[01]* | freebsdelf3.[01]*)
16560 shlibpath_overrides_runpath=yes
16561 hardcode_into_libs=yes
16562 ;;
16563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16565 shlibpath_overrides_runpath=no
16566 hardcode_into_libs=yes
16567 ;;
16568 *) # from 4.6 on, and DragonFly
16569 shlibpath_overrides_runpath=yes
16570 hardcode_into_libs=yes
16571 ;;
16572 esac
16573 ;;
16574
16575 gnu*)
16576 version_type=linux # correct to gnu/linux during the next big refactor
16577 need_lib_prefix=no
16578 need_version=no
16579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16580 soname_spec='${libname}${release}${shared_ext}$major'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=no
16583 hardcode_into_libs=yes
16584 ;;
16585
16586 haiku*)
16587 version_type=linux # correct to gnu/linux during the next big refactor
16588 need_lib_prefix=no
16589 need_version=no
16590 dynamic_linker="$host_os runtime_loader"
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16592 soname_spec='${libname}${release}${shared_ext}$major'
16593 shlibpath_var=LIBRARY_PATH
16594 shlibpath_overrides_runpath=yes
16595 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16596 hardcode_into_libs=yes
16597 ;;
16598
16599 hpux9* | hpux10* | hpux11*)
16600 # Give a soname corresponding to the major version so that dld.sl refuses to
16601 # link against other versions.
16602 version_type=sunos
16603 need_lib_prefix=no
16604 need_version=no
16605 case $host_cpu in
16606 ia64*)
16607 shrext_cmds='.so'
16608 hardcode_into_libs=yes
16609 dynamic_linker="$host_os dld.so"
16610 shlibpath_var=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 if test "X$HPUX_IA64_MODE" = X32; then
16615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16616 else
16617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16618 fi
16619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16620 ;;
16621 hppa*64*)
16622 shrext_cmds='.sl'
16623 hardcode_into_libs=yes
16624 dynamic_linker="$host_os dld.sl"
16625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628 soname_spec='${libname}${release}${shared_ext}$major'
16629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16631 ;;
16632 *)
16633 shrext_cmds='.sl'
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=SHLIB_PATH
16636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 ;;
16640 esac
16641 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16642 postinstall_cmds='chmod 555 $lib'
16643 # or fails outright, so override atomically:
16644 install_override_mode=555
16645 ;;
16646
16647 interix[3-9]*)
16648 version_type=linux # correct to gnu/linux during the next big refactor
16649 need_lib_prefix=no
16650 need_version=no
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=no
16656 hardcode_into_libs=yes
16657 ;;
16658
16659 irix5* | irix6* | nonstopux*)
16660 case $host_os in
16661 nonstopux*) version_type=nonstopux ;;
16662 *)
16663 if test "$lt_cv_prog_gnu_ld" = yes; then
16664 version_type=linux # correct to gnu/linux during the next big refactor
16665 else
16666 version_type=irix
16667 fi ;;
16668 esac
16669 need_lib_prefix=no
16670 need_version=no
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16673 case $host_os in
16674 irix5* | nonstopux*)
16675 libsuff= shlibsuff=
16676 ;;
16677 *)
16678 case $LD in # libtool.m4 will add one of these switches to LD
16679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16680 libsuff= shlibsuff= libmagic=32-bit;;
16681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16682 libsuff=32 shlibsuff=N32 libmagic=N32;;
16683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16685 *) libsuff= shlibsuff= libmagic=never-match;;
16686 esac
16687 ;;
16688 esac
16689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16690 shlibpath_overrides_runpath=no
16691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16693 hardcode_into_libs=yes
16694 ;;
16695
16696 # No shared lib support for Linux oldld, aout, or coff.
16697 linux*oldld* | linux*aout* | linux*coff*)
16698 dynamic_linker=no
16699 ;;
16700
16701 # This must be glibc/ELF.
16702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16703 version_type=linux # correct to gnu/linux during the next big refactor
16704 need_lib_prefix=no
16705 need_version=no
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 shlibpath_overrides_runpath=no
16711
16712 # Some binutils ld are patched to set DT_RUNPATH
16713 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16714 $as_echo_n "(cached) " >&6
16715 else
16716 lt_cv_shlibpath_overrides_runpath=no
16717 save_LDFLAGS=$LDFLAGS
16718 save_libdir=$libdir
16719 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16720 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723
16724 int
16725 main ()
16726 {
16727
16728 ;
16729 return 0;
16730 }
16731 _ACEOF
16732 if ac_fn_c_try_link "$LINENO"; then :
16733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16734 lt_cv_shlibpath_overrides_runpath=yes
16735 fi
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext \
16738 conftest$ac_exeext conftest.$ac_ext
16739 LDFLAGS=$save_LDFLAGS
16740 libdir=$save_libdir
16741
16742 fi
16743
16744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16745
16746 # This implies no fast_install, which is unacceptable.
16747 # Some rework will be needed to allow for fast_install
16748 # before this can be enabled.
16749 hardcode_into_libs=yes
16750
16751 # Add ABI-specific directories to the system library path.
16752 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16753
16754 # Append ld.so.conf contents to the search path
16755 if test -f /etc/ld.so.conf; then
16756 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' ' '`
16757 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16758
16759 fi
16760
16761 # We used to test for /lib/ld.so.1 and disable shared libraries on
16762 # powerpc, because MkLinux only supported shared libraries with the
16763 # GNU dynamic linker. Since this was broken with cross compilers,
16764 # most powerpc-linux boxes support dynamic linking these days and
16765 # people can always --disable-shared, the test was removed, and we
16766 # assume the GNU/Linux dynamic linker is in use.
16767 dynamic_linker='GNU/Linux ld.so'
16768 ;;
16769
16770 netbsd*)
16771 version_type=sunos
16772 need_lib_prefix=no
16773 need_version=no
16774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16777 dynamic_linker='NetBSD (a.out) ld.so'
16778 else
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 dynamic_linker='NetBSD ld.elf_so'
16782 fi
16783 shlibpath_var=LD_LIBRARY_PATH
16784 shlibpath_overrides_runpath=yes
16785 hardcode_into_libs=yes
16786 ;;
16787
16788 newsos6)
16789 version_type=linux # correct to gnu/linux during the next big refactor
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 shlibpath_overrides_runpath=yes
16793 ;;
16794
16795 *nto* | *qnx*)
16796 version_type=qnx
16797 need_lib_prefix=no
16798 need_version=no
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 shlibpath_overrides_runpath=no
16803 hardcode_into_libs=yes
16804 dynamic_linker='ldqnx.so'
16805 ;;
16806
16807 openbsd*)
16808 version_type=sunos
16809 sys_lib_dlsearch_path_spec="/usr/lib"
16810 need_lib_prefix=no
16811 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16812 case $host_os in
16813 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16814 *) need_version=no ;;
16815 esac
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16818 shlibpath_var=LD_LIBRARY_PATH
16819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16820 case $host_os in
16821 openbsd2.[89] | openbsd2.[89].*)
16822 shlibpath_overrides_runpath=no
16823 ;;
16824 *)
16825 shlibpath_overrides_runpath=yes
16826 ;;
16827 esac
16828 else
16829 shlibpath_overrides_runpath=yes
16830 fi
16831 ;;
16832
16833 os2*)
16834 libname_spec='$name'
16835 shrext_cmds=".dll"
16836 need_lib_prefix=no
16837 library_names_spec='$libname${shared_ext} $libname.a'
16838 dynamic_linker='OS/2 ld.exe'
16839 shlibpath_var=LIBPATH
16840 ;;
16841
16842 osf3* | osf4* | osf5*)
16843 version_type=osf
16844 need_lib_prefix=no
16845 need_version=no
16846 soname_spec='${libname}${release}${shared_ext}$major'
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 shlibpath_var=LD_LIBRARY_PATH
16849 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16850 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16851 ;;
16852
16853 rdos*)
16854 dynamic_linker=no
16855 ;;
16856
16857 solaris*)
16858 version_type=linux # correct to gnu/linux during the next big refactor
16859 need_lib_prefix=no
16860 need_version=no
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=yes
16865 hardcode_into_libs=yes
16866 # ldd complains unless libraries are executable
16867 postinstall_cmds='chmod +x $lib'
16868 ;;
16869
16870 sunos4*)
16871 version_type=sunos
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16874 shlibpath_var=LD_LIBRARY_PATH
16875 shlibpath_overrides_runpath=yes
16876 if test "$with_gnu_ld" = yes; then
16877 need_lib_prefix=no
16878 fi
16879 need_version=yes
16880 ;;
16881
16882 sysv4 | sysv4.3*)
16883 version_type=linux # correct to gnu/linux during the next big refactor
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885 soname_spec='${libname}${release}${shared_ext}$major'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 case $host_vendor in
16888 sni)
16889 shlibpath_overrides_runpath=no
16890 need_lib_prefix=no
16891 runpath_var=LD_RUN_PATH
16892 ;;
16893 siemens)
16894 need_lib_prefix=no
16895 ;;
16896 motorola)
16897 need_lib_prefix=no
16898 need_version=no
16899 shlibpath_overrides_runpath=no
16900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16901 ;;
16902 esac
16903 ;;
16904
16905 sysv4*MP*)
16906 if test -d /usr/nec ;then
16907 version_type=linux # correct to gnu/linux during the next big refactor
16908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16909 soname_spec='$libname${shared_ext}.$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 fi
16912 ;;
16913
16914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16915 version_type=freebsd-elf
16916 need_lib_prefix=no
16917 need_version=no
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16919 soname_spec='${libname}${release}${shared_ext}$major'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath=yes
16922 hardcode_into_libs=yes
16923 if test "$with_gnu_ld" = yes; then
16924 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16925 else
16926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16927 case $host_os in
16928 sco3.2v5*)
16929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16930 ;;
16931 esac
16932 fi
16933 sys_lib_dlsearch_path_spec='/usr/lib'
16934 ;;
16935
16936 tpf*)
16937 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16938 version_type=linux # correct to gnu/linux during the next big refactor
16939 need_lib_prefix=no
16940 need_version=no
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 shlibpath_var=LD_LIBRARY_PATH
16943 shlibpath_overrides_runpath=no
16944 hardcode_into_libs=yes
16945 ;;
16946
16947 uts4*)
16948 version_type=linux # correct to gnu/linux during the next big refactor
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 ;;
16953
16954 *)
16955 dynamic_linker=no
16956 ;;
16957 esac
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16959 $as_echo "$dynamic_linker" >&6; }
16960 test "$dynamic_linker" = no && can_build_shared=no
16961
16962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16963 if test "$GCC" = yes; then
16964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16965 fi
16966
16967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16968 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16969 fi
16970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16971 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16972 fi
16973
16974
16975
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17066 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17067 hardcode_action=
17068 if test -n "$hardcode_libdir_flag_spec" ||
17069 test -n "$runpath_var" ||
17070 test "X$hardcode_automatic" = "Xyes" ; then
17071
17072 # We can hardcode non-existent directories.
17073 if test "$hardcode_direct" != no &&
17074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17075 # have to relink, otherwise we might link with an installed library
17076 # when we should be linking with a yet-to-be-installed one
17077 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17078 test "$hardcode_minus_L" != no; then
17079 # Linking always hardcodes the temporary library directory.
17080 hardcode_action=relink
17081 else
17082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17083 hardcode_action=immediate
17084 fi
17085 else
17086 # We cannot hardcode anything, or else we can only hardcode existing
17087 # directories.
17088 hardcode_action=unsupported
17089 fi
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17091 $as_echo "$hardcode_action" >&6; }
17092
17093 if test "$hardcode_action" = relink ||
17094 test "$inherit_rpath" = yes; then
17095 # Fast installation is not supported
17096 enable_fast_install=no
17097 elif test "$shlibpath_overrides_runpath" = yes ||
17098 test "$enable_shared" = no; then
17099 # Fast installation is not necessary
17100 enable_fast_install=needless
17101 fi
17102
17103
17104
17105
17106
17107
17108 if test "x$enable_dlopen" != xyes; then
17109 enable_dlopen=unknown
17110 enable_dlopen_self=unknown
17111 enable_dlopen_self_static=unknown
17112 else
17113 lt_cv_dlopen=no
17114 lt_cv_dlopen_libs=
17115
17116 case $host_os in
17117 beos*)
17118 lt_cv_dlopen="load_add_on"
17119 lt_cv_dlopen_libs=
17120 lt_cv_dlopen_self=yes
17121 ;;
17122
17123 mingw* | pw32* | cegcc*)
17124 lt_cv_dlopen="LoadLibrary"
17125 lt_cv_dlopen_libs=
17126 ;;
17127
17128 cygwin*)
17129 lt_cv_dlopen="dlopen"
17130 lt_cv_dlopen_libs=
17131 ;;
17132
17133 darwin*)
17134 # if libdl is installed we need to link against it
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17137 if ${ac_cv_lib_dl_dlopen+:} false; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 ac_check_lib_save_LIBS=$LIBS
17141 LIBS="-ldl $LIBS"
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17144
17145 /* Override any GCC internal prototype to avoid an error.
17146 Use char because int might match the return type of a GCC
17147 builtin and then its argument prototype would still apply. */
17148 #ifdef __cplusplus
17149 extern "C"
17150 #endif
17151 char dlopen ();
17152 int
17153 main ()
17154 {
17155 return dlopen ();
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_link "$LINENO"; then :
17161 ac_cv_lib_dl_dlopen=yes
17162 else
17163 ac_cv_lib_dl_dlopen=no
17164 fi
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167 LIBS=$ac_check_lib_save_LIBS
17168 fi
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17173 else
17174
17175 lt_cv_dlopen="dyld"
17176 lt_cv_dlopen_libs=
17177 lt_cv_dlopen_self=yes
17178
17179 fi
17180
17181 ;;
17182
17183 *)
17184 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17185 if test "x$ac_cv_func_shl_load" = xyes; then :
17186 lt_cv_dlopen="shl_load"
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17189 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17190 if ${ac_cv_lib_dld_shl_load+:} false; then :
17191 $as_echo_n "(cached) " >&6
17192 else
17193 ac_check_lib_save_LIBS=$LIBS
17194 LIBS="-ldld $LIBS"
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197
17198 /* Override any GCC internal prototype to avoid an error.
17199 Use char because int might match the return type of a GCC
17200 builtin and then its argument prototype would still apply. */
17201 #ifdef __cplusplus
17202 extern "C"
17203 #endif
17204 char shl_load ();
17205 int
17206 main ()
17207 {
17208 return shl_load ();
17209 ;
17210 return 0;
17211 }
17212 _ACEOF
17213 if ac_fn_c_try_link "$LINENO"; then :
17214 ac_cv_lib_dld_shl_load=yes
17215 else
17216 ac_cv_lib_dld_shl_load=no
17217 fi
17218 rm -f core conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17220 LIBS=$ac_check_lib_save_LIBS
17221 fi
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17223 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17224 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17226 else
17227 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17228 if test "x$ac_cv_func_dlopen" = xyes; then :
17229 lt_cv_dlopen="dlopen"
17230 else
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17232 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17233 if ${ac_cv_lib_dl_dlopen+:} false; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 ac_check_lib_save_LIBS=$LIBS
17237 LIBS="-ldl $LIBS"
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17240
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244 #ifdef __cplusplus
17245 extern "C"
17246 #endif
17247 char dlopen ();
17248 int
17249 main ()
17250 {
17251 return dlopen ();
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 if ac_fn_c_try_link "$LINENO"; then :
17257 ac_cv_lib_dl_dlopen=yes
17258 else
17259 ac_cv_lib_dl_dlopen=no
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17264 fi
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17267 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17269 else
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17272 if ${ac_cv_lib_svld_dlopen+:} false; then :
17273 $as_echo_n "(cached) " >&6
17274 else
17275 ac_check_lib_save_LIBS=$LIBS
17276 LIBS="-lsvld $LIBS"
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279
17280 /* Override any GCC internal prototype to avoid an error.
17281 Use char because int might match the return type of a GCC
17282 builtin and then its argument prototype would still apply. */
17283 #ifdef __cplusplus
17284 extern "C"
17285 #endif
17286 char dlopen ();
17287 int
17288 main ()
17289 {
17290 return dlopen ();
17291 ;
17292 return 0;
17293 }
17294 _ACEOF
17295 if ac_fn_c_try_link "$LINENO"; then :
17296 ac_cv_lib_svld_dlopen=yes
17297 else
17298 ac_cv_lib_svld_dlopen=no
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302 LIBS=$ac_check_lib_save_LIBS
17303 fi
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17305 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17306 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17308 else
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17310 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17311 if ${ac_cv_lib_dld_dld_link+:} false; then :
17312 $as_echo_n "(cached) " >&6
17313 else
17314 ac_check_lib_save_LIBS=$LIBS
17315 LIBS="-ldld $LIBS"
17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17318
17319 /* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17322 #ifdef __cplusplus
17323 extern "C"
17324 #endif
17325 char dld_link ();
17326 int
17327 main ()
17328 {
17329 return dld_link ();
17330 ;
17331 return 0;
17332 }
17333 _ACEOF
17334 if ac_fn_c_try_link "$LINENO"; then :
17335 ac_cv_lib_dld_dld_link=yes
17336 else
17337 ac_cv_lib_dld_dld_link=no
17338 fi
17339 rm -f core conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17341 LIBS=$ac_check_lib_save_LIBS
17342 fi
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17344 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17345 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17346 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17347 fi
17348
17349
17350 fi
17351
17352
17353 fi
17354
17355
17356 fi
17357
17358
17359 fi
17360
17361
17362 fi
17363
17364 ;;
17365 esac
17366
17367 if test "x$lt_cv_dlopen" != xno; then
17368 enable_dlopen=yes
17369 else
17370 enable_dlopen=no
17371 fi
17372
17373 case $lt_cv_dlopen in
17374 dlopen)
17375 save_CPPFLAGS="$CPPFLAGS"
17376 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17377
17378 save_LDFLAGS="$LDFLAGS"
17379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17380
17381 save_LIBS="$LIBS"
17382 LIBS="$lt_cv_dlopen_libs $LIBS"
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17385 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17386 if ${lt_cv_dlopen_self+:} false; then :
17387 $as_echo_n "(cached) " >&6
17388 else
17389 if test "$cross_compiling" = yes; then :
17390 lt_cv_dlopen_self=cross
17391 else
17392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17393 lt_status=$lt_dlunknown
17394 cat > conftest.$ac_ext <<_LT_EOF
17395 #line $LINENO "configure"
17396 #include "confdefs.h"
17397
17398 #if HAVE_DLFCN_H
17399 #include <dlfcn.h>
17400 #endif
17401
17402 #include <stdio.h>
17403
17404 #ifdef RTLD_GLOBAL
17405 # define LT_DLGLOBAL RTLD_GLOBAL
17406 #else
17407 # ifdef DL_GLOBAL
17408 # define LT_DLGLOBAL DL_GLOBAL
17409 # else
17410 # define LT_DLGLOBAL 0
17411 # endif
17412 #endif
17413
17414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17415 find out it does not work in some platform. */
17416 #ifndef LT_DLLAZY_OR_NOW
17417 # ifdef RTLD_LAZY
17418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17419 # else
17420 # ifdef DL_LAZY
17421 # define LT_DLLAZY_OR_NOW DL_LAZY
17422 # else
17423 # ifdef RTLD_NOW
17424 # define LT_DLLAZY_OR_NOW RTLD_NOW
17425 # else
17426 # ifdef DL_NOW
17427 # define LT_DLLAZY_OR_NOW DL_NOW
17428 # else
17429 # define LT_DLLAZY_OR_NOW 0
17430 # endif
17431 # endif
17432 # endif
17433 # endif
17434 #endif
17435
17436 /* When -fvisbility=hidden is used, assume the code has been annotated
17437 correspondingly for the symbols needed. */
17438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17439 int fnord () __attribute__((visibility("default")));
17440 #endif
17441
17442 int fnord () { return 42; }
17443 int main ()
17444 {
17445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17446 int status = $lt_dlunknown;
17447
17448 if (self)
17449 {
17450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17451 else
17452 {
17453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17454 else puts (dlerror ());
17455 }
17456 /* dlclose (self); */
17457 }
17458 else
17459 puts (dlerror ());
17460
17461 return status;
17462 }
17463 _LT_EOF
17464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17465 (eval $ac_link) 2>&5
17466 ac_status=$?
17467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17469 (./conftest; exit; ) >&5 2>/dev/null
17470 lt_status=$?
17471 case x$lt_status in
17472 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17473 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17474 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17475 esac
17476 else :
17477 # compilation failed
17478 lt_cv_dlopen_self=no
17479 fi
17480 fi
17481 rm -fr conftest*
17482
17483
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17486 $as_echo "$lt_cv_dlopen_self" >&6; }
17487
17488 if test "x$lt_cv_dlopen_self" = xyes; then
17489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17491 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17492 if ${lt_cv_dlopen_self_static+:} false; then :
17493 $as_echo_n "(cached) " >&6
17494 else
17495 if test "$cross_compiling" = yes; then :
17496 lt_cv_dlopen_self_static=cross
17497 else
17498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17499 lt_status=$lt_dlunknown
17500 cat > conftest.$ac_ext <<_LT_EOF
17501 #line $LINENO "configure"
17502 #include "confdefs.h"
17503
17504 #if HAVE_DLFCN_H
17505 #include <dlfcn.h>
17506 #endif
17507
17508 #include <stdio.h>
17509
17510 #ifdef RTLD_GLOBAL
17511 # define LT_DLGLOBAL RTLD_GLOBAL
17512 #else
17513 # ifdef DL_GLOBAL
17514 # define LT_DLGLOBAL DL_GLOBAL
17515 # else
17516 # define LT_DLGLOBAL 0
17517 # endif
17518 #endif
17519
17520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17521 find out it does not work in some platform. */
17522 #ifndef LT_DLLAZY_OR_NOW
17523 # ifdef RTLD_LAZY
17524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17525 # else
17526 # ifdef DL_LAZY
17527 # define LT_DLLAZY_OR_NOW DL_LAZY
17528 # else
17529 # ifdef RTLD_NOW
17530 # define LT_DLLAZY_OR_NOW RTLD_NOW
17531 # else
17532 # ifdef DL_NOW
17533 # define LT_DLLAZY_OR_NOW DL_NOW
17534 # else
17535 # define LT_DLLAZY_OR_NOW 0
17536 # endif
17537 # endif
17538 # endif
17539 # endif
17540 #endif
17541
17542 /* When -fvisbility=hidden is used, assume the code has been annotated
17543 correspondingly for the symbols needed. */
17544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17545 int fnord () __attribute__((visibility("default")));
17546 #endif
17547
17548 int fnord () { return 42; }
17549 int main ()
17550 {
17551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17552 int status = $lt_dlunknown;
17553
17554 if (self)
17555 {
17556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17557 else
17558 {
17559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17560 else puts (dlerror ());
17561 }
17562 /* dlclose (self); */
17563 }
17564 else
17565 puts (dlerror ());
17566
17567 return status;
17568 }
17569 _LT_EOF
17570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17571 (eval $ac_link) 2>&5
17572 ac_status=$?
17573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17575 (./conftest; exit; ) >&5 2>/dev/null
17576 lt_status=$?
17577 case x$lt_status in
17578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17581 esac
17582 else :
17583 # compilation failed
17584 lt_cv_dlopen_self_static=no
17585 fi
17586 fi
17587 rm -fr conftest*
17588
17589
17590 fi
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17592 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17593 fi
17594
17595 CPPFLAGS="$save_CPPFLAGS"
17596 LDFLAGS="$save_LDFLAGS"
17597 LIBS="$save_LIBS"
17598 ;;
17599 esac
17600
17601 case $lt_cv_dlopen_self in
17602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17603 *) enable_dlopen_self=unknown ;;
17604 esac
17605
17606 case $lt_cv_dlopen_self_static in
17607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17608 *) enable_dlopen_self_static=unknown ;;
17609 esac
17610 fi
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628 striplib=
17629 old_striplib=
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17631 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17632 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17633 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17634 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636 $as_echo "yes" >&6; }
17637 else
17638 # FIXME - insert some real tests, host_os isn't really good enough
17639 case $host_os in
17640 darwin*)
17641 if test -n "$STRIP" ; then
17642 striplib="$STRIP -x"
17643 old_striplib="$STRIP -S"
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17645 $as_echo "yes" >&6; }
17646 else
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17648 $as_echo "no" >&6; }
17649 fi
17650 ;;
17651 *)
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17653 $as_echo "no" >&6; }
17654 ;;
17655 esac
17656 fi
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669 # Report which library types will actually be built
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17671 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17673 $as_echo "$can_build_shared" >&6; }
17674
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17676 $as_echo_n "checking whether to build shared libraries... " >&6; }
17677 test "$can_build_shared" = "no" && enable_shared=no
17678
17679 # On AIX, shared libraries and static libraries use the same namespace, and
17680 # are all built from PIC.
17681 case $host_os in
17682 aix3*)
17683 test "$enable_shared" = yes && enable_static=no
17684 if test -n "$RANLIB"; then
17685 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17686 postinstall_cmds='$RANLIB $lib'
17687 fi
17688 ;;
17689
17690 aix[4-9]*)
17691 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17692 test "$enable_shared" = yes && enable_static=no
17693 fi
17694 ;;
17695 esac
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17697 $as_echo "$enable_shared" >&6; }
17698
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17700 $as_echo_n "checking whether to build static libraries... " >&6; }
17701 # Make sure either enable_shared or enable_static is yes.
17702 test "$enable_shared" = yes || enable_static=yes
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17704 $as_echo "$enable_static" >&6; }
17705
17706
17707
17708
17709 fi
17710 ac_ext=c
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715
17716 CC="$lt_save_CC"
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732 ac_config_commands="$ac_config_commands libtool"
17733
17734
17735
17736
17737 # Only expand once:
17738
17739
17740
17741
17742
17743 # Define a configure option for an alternate module directory
17744
17745 # Check whether --with-xorg-module-dir was given.
17746 if test "${with_xorg_module_dir+set}" = set; then :
17747 withval=$with_xorg_module_dir; moduledir="$withval"
17748 else
17749 moduledir="$libdir/xorg/modules"
17750 fi
17751
17752
17753
17754 # Store the list of server defined optional extensions in REQUIRED_MODULES
17755
17756
17757 SAVE_CFLAGS="$CFLAGS"
17758 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17761
17762 #include "xorg-server.h"
17763 #if !defined DPMSExtension
17764 #error DPMSExtension not defined
17765 #endif
17766
17767 int
17768 main ()
17769 {
17770
17771 ;
17772 return 0;
17773 }
17774 _ACEOF
17775 if ac_fn_c_try_compile "$LINENO"; then :
17776 _EXT_CHECK=yes
17777 else
17778 _EXT_CHECK=no
17779 fi
17780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781 CFLAGS="$SAVE_CFLAGS"
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17783 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17785 $as_echo "$_EXT_CHECK" >&6; }
17786 if test "$_EXT_CHECK" != no; then
17787 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17788 fi
17789
17790
17791 # Obtain compiler/linker options for the driver dependencies
17792
17793 pkg_failed=no
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17795 $as_echo_n "checking for XORG... " >&6; }
17796
17797 if test -n "$XORG_CFLAGS"; then
17798 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17799 elif test -n "$PKG_CONFIG"; then
17800 if test -n "$PKG_CONFIG" && \
17801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17802 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17803 ac_status=$?
17804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17805 test $ac_status = 0; }; then
17806 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17807 else
17808 pkg_failed=yes
17809 fi
17810 else
17811 pkg_failed=untried
17812 fi
17813 if test -n "$XORG_LIBS"; then
17814 pkg_cv_XORG_LIBS="$XORG_LIBS"
17815 elif test -n "$PKG_CONFIG"; then
17816 if test -n "$PKG_CONFIG" && \
17817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17818 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17819 ac_status=$?
17820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17821 test $ac_status = 0; }; then
17822 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17823 else
17824 pkg_failed=yes
17825 fi
17826 else
17827 pkg_failed=untried
17828 fi
17829
17830
17831
17832 if test $pkg_failed = yes; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834 $as_echo "no" >&6; }
17835
17836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17837 _pkg_short_errors_supported=yes
17838 else
17839 _pkg_short_errors_supported=no
17840 fi
17841 if test $_pkg_short_errors_supported = yes; then
17842 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17843 else
17844 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17845 fi
17846 # Put the nasty error message in config.log where it belongs
17847 echo "$XORG_PKG_ERRORS" >&5
17848
17849 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17850
17851 $XORG_PKG_ERRORS
17852
17853 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17854 installed software in a non-standard prefix.
17855
17856 Alternatively, you may set the environment variables XORG_CFLAGS
17857 and XORG_LIBS to avoid the need to call pkg-config.
17858 See the pkg-config man page for more details." "$LINENO" 5
17859
17860 elif test $pkg_failed = untried; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862 $as_echo "no" >&6; }
17863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17865 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17866 is in your PATH or set the PKG_CONFIG environment variable to the full
17867 path to pkg-config.
17868
17869 Alternatively, you may set the environment variables XORG_CFLAGS
17870 and XORG_LIBS to avoid the need to call pkg-config.
17871 See the pkg-config man page for more details.
17872
17873 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17874 See \`config.log' for more details" "$LINENO" 5; }
17875
17876 else
17877 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17878 XORG_LIBS=$pkg_cv_XORG_LIBS
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17880 $as_echo "yes" >&6; }
17881
17882 fi
17883
17884 # Checks for libraries.
17885 SAVE_CPPFLAGS="$CPPFLAGS"
17886 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17887 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17888 "
17889 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17890 XSERVER_LIBPCIACCESS=yes
17891 else
17892 XSERVER_LIBPCIACCESS=no
17893 fi
17894
17895 CPPFLAGS="$SAVE_CPPFLAGS"
17896
17897 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17898
17899 pkg_failed=no
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17901 $as_echo_n "checking for PCIACCESS... " >&6; }
17902
17903 if test -n "$PCIACCESS_CFLAGS"; then
17904 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17905 elif test -n "$PKG_CONFIG"; then
17906 if test -n "$PKG_CONFIG" && \
17907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
17908 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
17909 ac_status=$?
17910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17911 test $ac_status = 0; }; then
17912 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
17913 else
17914 pkg_failed=yes
17915 fi
17916 else
17917 pkg_failed=untried
17918 fi
17919 if test -n "$PCIACCESS_LIBS"; then
17920 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
17921 elif test -n "$PKG_CONFIG"; then
17922 if test -n "$PKG_CONFIG" && \
17923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
17924 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927 test $ac_status = 0; }; then
17928 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
17929 else
17930 pkg_failed=yes
17931 fi
17932 else
17933 pkg_failed=untried
17934 fi
17935
17936
17937
17938 if test $pkg_failed = yes; then
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940 $as_echo "no" >&6; }
17941
17942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17943 _pkg_short_errors_supported=yes
17944 else
17945 _pkg_short_errors_supported=no
17946 fi
17947 if test $_pkg_short_errors_supported = yes; then
17948 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.12.901" 2>&1`
17949 else
17950 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.12.901" 2>&1`
17951 fi
17952 # Put the nasty error message in config.log where it belongs
17953 echo "$PCIACCESS_PKG_ERRORS" >&5
17954
17955 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
17956
17957 $PCIACCESS_PKG_ERRORS
17958
17959 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17960 installed software in a non-standard prefix.
17961
17962 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17963 and PCIACCESS_LIBS to avoid the need to call pkg-config.
17964 See the pkg-config man page for more details." "$LINENO" 5
17965
17966 elif test $pkg_failed = untried; then
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17971 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17972 is in your PATH or set the PKG_CONFIG environment variable to the full
17973 path to pkg-config.
17974
17975 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17976 and PCIACCESS_LIBS to avoid the need to call pkg-config.
17977 See the pkg-config man page for more details.
17978
17979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17980 See \`config.log' for more details" "$LINENO" 5; }
17981
17982 else
17983 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
17984 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986 $as_echo "yes" >&6; }
17987
17988 fi
17989 fi
17990 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17991 XSERVER_LIBPCIACCESS_TRUE=
17992 XSERVER_LIBPCIACCESS_FALSE='#'
17993 else
17994 XSERVER_LIBPCIACCESS_TRUE='#'
17995 XSERVER_LIBPCIACCESS_FALSE=
17996 fi
17997
17998 # Check whether --enable-xaa was given.
17999 if test "${enable_xaa+set}" = set; then :
18000 enableval=$enable_xaa; XAA="$enableval"
18001 else
18002 XAA=auto
18003 fi
18004
18005 if test "x$XAA" != xno; then
18006 save_CFLAGS=$CFLAGS
18007 save_CPPFLAGS=$CPPFLAGS
18008 CFLAGS=$XORG_CFLAGS
18009 CPPFLAGS="$XORG_CFLAGS"
18010 for ac_header in xaa.h
18011 do :
18012 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18013 if test "x$ac_cv_header_xaa_h" = xyes; then :
18014 cat >>confdefs.h <<_ACEOF
18015 #define HAVE_XAA_H 1
18016 _ACEOF
18017 XAA=yes
18018 else
18019 XAA=no
18020 fi
18021
18022 done
18023
18024 CFLAGS=$save_CFLAGS
18025 CPPFLAGS=$save_CPPFLAGS
18026 fi
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18028 $as_echo_n "checking whether to include XAA support... " >&6; }
18029 if test "x$XAA" = xyes; then
18030 XAA_TRUE=
18031 XAA_FALSE='#'
18032 else
18033 XAA_TRUE='#'
18034 XAA_FALSE=
18035 fi
18036
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18038 $as_echo "$XAA" >&6; }
18039
18040 DRIVER_NAME=ark
18041
18042
18043 ac_config_files="$ac_config_files Makefile src/Makefile"
18044
18045 cat >confcache <<\_ACEOF
18046 # This file is a shell script that caches the results of configure
18047 # tests run on this system so they can be shared between configure
18048 # scripts and configure runs, see configure's option --config-cache.
18049 # It is not useful on other systems. If it contains results you don't
18050 # want to keep, you may remove or edit it.
18051 #
18052 # config.status only pays attention to the cache file if you give it
18053 # the --recheck option to rerun configure.
18054 #
18055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18057 # following values.
18058
18059 _ACEOF
18060
18061 # The following way of writing the cache mishandles newlines in values,
18062 # but we know of no workaround that is simple, portable, and efficient.
18063 # So, we kill variables containing newlines.
18064 # Ultrix sh set writes to stderr and can't be redirected directly,
18065 # and sets the high bit in the cache file unless we assign to the vars.
18066 (
18067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18068 eval ac_val=\$$ac_var
18069 case $ac_val in #(
18070 *${as_nl}*)
18071 case $ac_var in #(
18072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18074 esac
18075 case $ac_var in #(
18076 _ | IFS | as_nl) ;; #(
18077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18078 *) { eval $ac_var=; unset $ac_var;} ;;
18079 esac ;;
18080 esac
18081 done
18082
18083 (set) 2>&1 |
18084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18085 *${as_nl}ac_space=\ *)
18086 # `set' does not quote correctly, so add quotes: double-quote
18087 # substitution turns \\\\ into \\, and sed turns \\ into \.
18088 sed -n \
18089 "s/'/'\\\\''/g;
18090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18091 ;; #(
18092 *)
18093 # `set' quotes correctly as required by POSIX, so do not add quotes.
18094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18095 ;;
18096 esac |
18097 sort
18098 ) |
18099 sed '
18100 /^ac_cv_env_/b end
18101 t clear
18102 :clear
18103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18104 t end
18105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18106 :end' >>confcache
18107 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18108 if test -w "$cache_file"; then
18109 if test "x$cache_file" != "x/dev/null"; then
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18111 $as_echo "$as_me: updating cache $cache_file" >&6;}
18112 if test ! -f "$cache_file" || test -h "$cache_file"; then
18113 cat confcache >"$cache_file"
18114 else
18115 case $cache_file in #(
18116 */* | ?:*)
18117 mv -f confcache "$cache_file"$$ &&
18118 mv -f "$cache_file"$$ "$cache_file" ;; #(
18119 *)
18120 mv -f confcache "$cache_file" ;;
18121 esac
18122 fi
18123 fi
18124 else
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18126 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18127 fi
18128 fi
18129 rm -f confcache
18130
18131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18132 # Let make expand exec_prefix.
18133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18134
18135 DEFS=-DHAVE_CONFIG_H
18136
18137 ac_libobjs=
18138 ac_ltlibobjs=
18139 U=
18140 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18141 # 1. Remove the extension, and $U if already installed.
18142 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18143 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18144 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18145 # will be set to the directory where LIBOBJS objects are built.
18146 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18147 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18148 done
18149 LIBOBJS=$ac_libobjs
18150
18151 LTLIBOBJS=$ac_ltlibobjs
18152
18153
18154 if test -n "$EXEEXT"; then
18155 am__EXEEXT_TRUE=
18156 am__EXEEXT_FALSE='#'
18157 else
18158 am__EXEEXT_TRUE='#'
18159 am__EXEEXT_FALSE=
18160 fi
18161
18162 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18163 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18165 fi
18166 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18167 as_fn_error $? "conditional \"AMDEP\" was never defined.
18168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18169 fi
18170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18171 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18173 fi
18174 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18175 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18177 fi
18178 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18179 as_fn_error $? "conditional \"XAA\" was never defined.
18180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18181 fi
18182
18183 : "${CONFIG_STATUS=./config.status}"
18184 ac_write_fail=0
18185 ac_clean_files_save=$ac_clean_files
18186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18188 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18189 as_write_fail=0
18190 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18191 #! $SHELL
18192 # Generated by $as_me.
18193 # Run this file to recreate the current configuration.
18194 # Compiler output produced by configure, useful for debugging
18195 # configure, is in config.log if it exists.
18196
18197 debug=false
18198 ac_cs_recheck=false
18199 ac_cs_silent=false
18200
18201 SHELL=\${CONFIG_SHELL-$SHELL}
18202 export SHELL
18203 _ASEOF
18204 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18205 ## -------------------- ##
18206 ## M4sh Initialization. ##
18207 ## -------------------- ##
18208
18209 # Be more Bourne compatible
18210 DUALCASE=1; export DUALCASE # for MKS sh
18211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18212 emulate sh
18213 NULLCMD=:
18214 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18215 # is contrary to our usage. Disable this feature.
18216 alias -g '${1+"$@"}'='"$@"'
18217 setopt NO_GLOB_SUBST
18218 else
18219 case `(set -o) 2>/dev/null` in #(
18220 *posix*) :
18221 set -o posix ;; #(
18222 *) :
18223 ;;
18224 esac
18225 fi
18226
18227
18228 as_nl='
18229 '
18230 export as_nl
18231 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18232 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18235 # Prefer a ksh shell builtin over an external printf program on Solaris,
18236 # but without wasting forks for bash or zsh.
18237 if test -z "$BASH_VERSION$ZSH_VERSION" \
18238 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18239 as_echo='print -r --'
18240 as_echo_n='print -rn --'
18241 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18242 as_echo='printf %s\n'
18243 as_echo_n='printf %s'
18244 else
18245 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18246 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18247 as_echo_n='/usr/ucb/echo -n'
18248 else
18249 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18250 as_echo_n_body='eval
18251 arg=$1;
18252 case $arg in #(
18253 *"$as_nl"*)
18254 expr "X$arg" : "X\\(.*\\)$as_nl";
18255 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18256 esac;
18257 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18258 '
18259 export as_echo_n_body
18260 as_echo_n='sh -c $as_echo_n_body as_echo'
18261 fi
18262 export as_echo_body
18263 as_echo='sh -c $as_echo_body as_echo'
18264 fi
18265
18266 # The user is always right.
18267 if test "${PATH_SEPARATOR+set}" != set; then
18268 PATH_SEPARATOR=:
18269 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18270 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18271 PATH_SEPARATOR=';'
18272 }
18273 fi
18274
18275
18276 # IFS
18277 # We need space, tab and new line, in precisely that order. Quoting is
18278 # there to prevent editors from complaining about space-tab.
18279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18280 # splitting by setting IFS to empty value.)
18281 IFS=" "" $as_nl"
18282
18283 # Find who we are. Look in the path if we contain no directory separator.
18284 as_myself=
18285 case $0 in #((
18286 *[\\/]* ) as_myself=$0 ;;
18287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18288 for as_dir in $PATH
18289 do
18290 IFS=$as_save_IFS
18291 test -z "$as_dir" && as_dir=.
18292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18293 done
18294 IFS=$as_save_IFS
18295
18296 ;;
18297 esac
18298 # We did not find ourselves, most probably we were run as `sh COMMAND'
18299 # in which case we are not to be found in the path.
18300 if test "x$as_myself" = x; then
18301 as_myself=$0
18302 fi
18303 if test ! -f "$as_myself"; then
18304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18305 exit 1
18306 fi
18307
18308 # Unset variables that we do not need and which cause bugs (e.g. in
18309 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18310 # suppresses any "Segmentation fault" message there. '((' could
18311 # trigger a bug in pdksh 5.2.14.
18312 for as_var in BASH_ENV ENV MAIL MAILPATH
18313 do eval test x\${$as_var+set} = xset \
18314 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18315 done
18316 PS1='$ '
18317 PS2='> '
18318 PS4='+ '
18319
18320 # NLS nuisances.
18321 LC_ALL=C
18322 export LC_ALL
18323 LANGUAGE=C
18324 export LANGUAGE
18325
18326 # CDPATH.
18327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18328
18329
18330 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18331 # ----------------------------------------
18332 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18333 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18334 # script with STATUS, using 1 if that was 0.
18335 as_fn_error ()
18336 {
18337 as_status=$1; test $as_status -eq 0 && as_status=1
18338 if test "$4"; then
18339 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18341 fi
18342 $as_echo "$as_me: error: $2" >&2
18343 as_fn_exit $as_status
18344 } # as_fn_error
18345
18346
18347 # as_fn_set_status STATUS
18348 # -----------------------
18349 # Set $? to STATUS, without forking.
18350 as_fn_set_status ()
18351 {
18352 return $1
18353 } # as_fn_set_status
18354
18355 # as_fn_exit STATUS
18356 # -----------------
18357 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18358 as_fn_exit ()
18359 {
18360 set +e
18361 as_fn_set_status $1
18362 exit $1
18363 } # as_fn_exit
18364
18365 # as_fn_unset VAR
18366 # ---------------
18367 # Portably unset VAR.
18368 as_fn_unset ()
18369 {
18370 { eval $1=; unset $1;}
18371 }
18372 as_unset=as_fn_unset
18373 # as_fn_append VAR VALUE
18374 # ----------------------
18375 # Append the text in VALUE to the end of the definition contained in VAR. Take
18376 # advantage of any shell optimizations that allow amortized linear growth over
18377 # repeated appends, instead of the typical quadratic growth present in naive
18378 # implementations.
18379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18380 eval 'as_fn_append ()
18381 {
18382 eval $1+=\$2
18383 }'
18384 else
18385 as_fn_append ()
18386 {
18387 eval $1=\$$1\$2
18388 }
18389 fi # as_fn_append
18390
18391 # as_fn_arith ARG...
18392 # ------------------
18393 # Perform arithmetic evaluation on the ARGs, and store the result in the
18394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18395 # must be portable across $(()) and expr.
18396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18397 eval 'as_fn_arith ()
18398 {
18399 as_val=$(( $* ))
18400 }'
18401 else
18402 as_fn_arith ()
18403 {
18404 as_val=`expr "$@" || test $? -eq 1`
18405 }
18406 fi # as_fn_arith
18407
18408
18409 if expr a : '\(a\)' >/dev/null 2>&1 &&
18410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18411 as_expr=expr
18412 else
18413 as_expr=false
18414 fi
18415
18416 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18417 as_basename=basename
18418 else
18419 as_basename=false
18420 fi
18421
18422 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18423 as_dirname=dirname
18424 else
18425 as_dirname=false
18426 fi
18427
18428 as_me=`$as_basename -- "$0" ||
18429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18430 X"$0" : 'X\(//\)$' \| \
18431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18432 $as_echo X/"$0" |
18433 sed '/^.*\/\([^/][^/]*\)\/*$/{
18434 s//\1/
18435 q
18436 }
18437 /^X\/\(\/\/\)$/{
18438 s//\1/
18439 q
18440 }
18441 /^X\/\(\/\).*/{
18442 s//\1/
18443 q
18444 }
18445 s/.*/./; q'`
18446
18447 # Avoid depending upon Character Ranges.
18448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18451 as_cr_digits='0123456789'
18452 as_cr_alnum=$as_cr_Letters$as_cr_digits
18453
18454 ECHO_C= ECHO_N= ECHO_T=
18455 case `echo -n x` in #(((((
18456 -n*)
18457 case `echo 'xy\c'` in
18458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18459 xy) ECHO_C='\c';;
18460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18461 ECHO_T=' ';;
18462 esac;;
18463 *)
18464 ECHO_N='-n';;
18465 esac
18466
18467 rm -f conf$$ conf$$.exe conf$$.file
18468 if test -d conf$$.dir; then
18469 rm -f conf$$.dir/conf$$.file
18470 else
18471 rm -f conf$$.dir
18472 mkdir conf$$.dir 2>/dev/null
18473 fi
18474 if (echo >conf$$.file) 2>/dev/null; then
18475 if ln -s conf$$.file conf$$ 2>/dev/null; then
18476 as_ln_s='ln -s'
18477 # ... but there are two gotchas:
18478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18480 # In both cases, we have to default to `cp -p'.
18481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18482 as_ln_s='cp -p'
18483 elif ln conf$$.file conf$$ 2>/dev/null; then
18484 as_ln_s=ln
18485 else
18486 as_ln_s='cp -p'
18487 fi
18488 else
18489 as_ln_s='cp -p'
18490 fi
18491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18492 rmdir conf$$.dir 2>/dev/null
18493
18494
18495 # as_fn_mkdir_p
18496 # -------------
18497 # Create "$as_dir" as a directory, including parents if necessary.
18498 as_fn_mkdir_p ()
18499 {
18500
18501 case $as_dir in #(
18502 -*) as_dir=./$as_dir;;
18503 esac
18504 test -d "$as_dir" || eval $as_mkdir_p || {
18505 as_dirs=
18506 while :; do
18507 case $as_dir in #(
18508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18509 *) as_qdir=$as_dir;;
18510 esac
18511 as_dirs="'$as_qdir' $as_dirs"
18512 as_dir=`$as_dirname -- "$as_dir" ||
18513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18514 X"$as_dir" : 'X\(//\)[^/]' \| \
18515 X"$as_dir" : 'X\(//\)$' \| \
18516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18517 $as_echo X"$as_dir" |
18518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18519 s//\1/
18520 q
18521 }
18522 /^X\(\/\/\)[^/].*/{
18523 s//\1/
18524 q
18525 }
18526 /^X\(\/\/\)$/{
18527 s//\1/
18528 q
18529 }
18530 /^X\(\/\).*/{
18531 s//\1/
18532 q
18533 }
18534 s/.*/./; q'`
18535 test -d "$as_dir" && break
18536 done
18537 test -z "$as_dirs" || eval "mkdir $as_dirs"
18538 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18539
18540
18541 } # as_fn_mkdir_p
18542 if mkdir -p . 2>/dev/null; then
18543 as_mkdir_p='mkdir -p "$as_dir"'
18544 else
18545 test -d ./-p && rmdir ./-p
18546 as_mkdir_p=false
18547 fi
18548
18549 if test -x / >/dev/null 2>&1; then
18550 as_test_x='test -x'
18551 else
18552 if ls -dL / >/dev/null 2>&1; then
18553 as_ls_L_option=L
18554 else
18555 as_ls_L_option=
18556 fi
18557 as_test_x='
18558 eval sh -c '\''
18559 if test -d "$1"; then
18560 test -d "$1/.";
18561 else
18562 case $1 in #(
18563 -*)set "./$1";;
18564 esac;
18565 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18566 ???[sx]*):;;*)false;;esac;fi
18567 '\'' sh
18568 '
18569 fi
18570 as_executable_p=$as_test_x
18571
18572 # Sed expression to map a string onto a valid CPP name.
18573 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18574
18575 # Sed expression to map a string onto a valid variable name.
18576 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18577
18578
18579 exec 6>&1
18580 ## ----------------------------------- ##
18581 ## Main body of $CONFIG_STATUS script. ##
18582 ## ----------------------------------- ##
18583 _ASEOF
18584 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18585
18586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18587 # Save the log message, to keep $0 and so on meaningful, and to
18588 # report actual input values of CONFIG_FILES etc. instead of their
18589 # values after options handling.
18590 ac_log="
18591 This file was extended by xf86-video-ark $as_me 0.7.5, which was
18592 generated by GNU Autoconf 2.68. Invocation command line was
18593
18594 CONFIG_FILES = $CONFIG_FILES
18595 CONFIG_HEADERS = $CONFIG_HEADERS
18596 CONFIG_LINKS = $CONFIG_LINKS
18597 CONFIG_COMMANDS = $CONFIG_COMMANDS
18598 $ $0 $@
18599
18600 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18601 "
18602
18603 _ACEOF
18604
18605 case $ac_config_files in *"
18606 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18607 esac
18608
18609 case $ac_config_headers in *"
18610 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18611 esac
18612
18613
18614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18615 # Files that config.status was made for.
18616 config_files="$ac_config_files"
18617 config_headers="$ac_config_headers"
18618 config_commands="$ac_config_commands"
18619
18620 _ACEOF
18621
18622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623 ac_cs_usage="\
18624 \`$as_me' instantiates files and other configuration actions
18625 from templates according to the current configuration. Unless the files
18626 and actions are specified as TAGs, all are instantiated by default.
18627
18628 Usage: $0 [OPTION]... [TAG]...
18629
18630 -h, --help print this help, then exit
18631 -V, --version print version number and configuration settings, then exit
18632 --config print configuration, then exit
18633 -q, --quiet, --silent
18634 do not print progress messages
18635 -d, --debug don't remove temporary files
18636 --recheck update $as_me by reconfiguring in the same conditions
18637 --file=FILE[:TEMPLATE]
18638 instantiate the configuration file FILE
18639 --header=FILE[:TEMPLATE]
18640 instantiate the configuration header FILE
18641
18642 Configuration files:
18643 $config_files
18644
18645 Configuration headers:
18646 $config_headers
18647
18648 Configuration commands:
18649 $config_commands
18650
18651 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark>."
18652
18653 _ACEOF
18654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18655 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18656 ac_cs_version="\\
18657 xf86-video-ark config.status 0.7.5
18658 configured by $0, generated by GNU Autoconf 2.68,
18659 with options \\"\$ac_cs_config\\"
18660
18661 Copyright (C) 2010 Free Software Foundation, Inc.
18662 This config.status script is free software; the Free Software Foundation
18663 gives unlimited permission to copy, distribute and modify it."
18664
18665 ac_pwd='$ac_pwd'
18666 srcdir='$srcdir'
18667 INSTALL='$INSTALL'
18668 MKDIR_P='$MKDIR_P'
18669 AWK='$AWK'
18670 test -n "\$AWK" || AWK=awk
18671 _ACEOF
18672
18673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18674 # The default lists apply if the user does not specify any file.
18675 ac_need_defaults=:
18676 while test $# != 0
18677 do
18678 case $1 in
18679 --*=?*)
18680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18682 ac_shift=:
18683 ;;
18684 --*=)
18685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18686 ac_optarg=
18687 ac_shift=:
18688 ;;
18689 *)
18690 ac_option=$1
18691 ac_optarg=$2
18692 ac_shift=shift
18693 ;;
18694 esac
18695
18696 case $ac_option in
18697 # Handling of the options.
18698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18699 ac_cs_recheck=: ;;
18700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18701 $as_echo "$ac_cs_version"; exit ;;
18702 --config | --confi | --conf | --con | --co | --c )
18703 $as_echo "$ac_cs_config"; exit ;;
18704 --debug | --debu | --deb | --de | --d | -d )
18705 debug=: ;;
18706 --file | --fil | --fi | --f )
18707 $ac_shift
18708 case $ac_optarg in
18709 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18710 '') as_fn_error $? "missing file argument" ;;
18711 esac
18712 as_fn_append CONFIG_FILES " '$ac_optarg'"
18713 ac_need_defaults=false;;
18714 --header | --heade | --head | --hea )
18715 $ac_shift
18716 case $ac_optarg in
18717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18718 esac
18719 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18720 ac_need_defaults=false;;
18721 --he | --h)
18722 # Conflict between --help and --header
18723 as_fn_error $? "ambiguous option: \`$1'
18724 Try \`$0 --help' for more information.";;
18725 --help | --hel | -h )
18726 $as_echo "$ac_cs_usage"; exit ;;
18727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18729 ac_cs_silent=: ;;
18730
18731 # This is an error.
18732 -*) as_fn_error $? "unrecognized option: \`$1'
18733 Try \`$0 --help' for more information." ;;
18734
18735 *) as_fn_append ac_config_targets " $1"
18736 ac_need_defaults=false ;;
18737
18738 esac
18739 shift
18740 done
18741
18742 ac_configure_extra_args=
18743
18744 if $ac_cs_silent; then
18745 exec 6>/dev/null
18746 ac_configure_extra_args="$ac_configure_extra_args --silent"
18747 fi
18748
18749 _ACEOF
18750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18751 if \$ac_cs_recheck; then
18752 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18753 shift
18754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18755 CONFIG_SHELL='$SHELL'
18756 export CONFIG_SHELL
18757 exec "\$@"
18758 fi
18759
18760 _ACEOF
18761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18762 exec 5>>config.log
18763 {
18764 echo
18765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18766 ## Running $as_me. ##
18767 _ASBOX
18768 $as_echo "$ac_log"
18769 } >&5
18770
18771 _ACEOF
18772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18773 #
18774 # INIT-COMMANDS
18775 #
18776 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18777
18778
18779 # The HP-UX ksh and POSIX shell print the target directory to stdout
18780 # if CDPATH is set.
18781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18782
18783 sed_quote_subst='$sed_quote_subst'
18784 double_quote_subst='$double_quote_subst'
18785 delay_variable_subst='$delay_variable_subst'
18786 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18787 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18788 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18789 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18790 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18791 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18792 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18793 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18794 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18795 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18796 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18797 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18798 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18799 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18800 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18801 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18802 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18803 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18804 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18805 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18806 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18807 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18808 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18809 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18810 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18811 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18812 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18813 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18814 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18815 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18816 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18817 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18818 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18819 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18820 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18821 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18822 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18823 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18824 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18825 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18826 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18827 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18828 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18829 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18830 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18831 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18832 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18833 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18834 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18835 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18836 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18837 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18838 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18839 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18840 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18841 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18842 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"`'
18843 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18844 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18845 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18846 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18847 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18848 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18849 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18850 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18851 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18852 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18853 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18854 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18855 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18856 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18857 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18858 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18859 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18860 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18861 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18862 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18863 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18864 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18865 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18866 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18867 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18868 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18869 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18870 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18871 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18872 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18873 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18874 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18875 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18876 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18877 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18878 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18879 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18880 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18881 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18882 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18883 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18884 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18885 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18886 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18887 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18888 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18889 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18890 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18891 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18892 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18893 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18894 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18895 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18896 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18897 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18898 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18899 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18900 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18901 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18902 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18903 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18904 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18905 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18906 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18907 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18908 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18909 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18910 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18911 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18912 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18913 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18914 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18915 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18916
18917 LTCC='$LTCC'
18918 LTCFLAGS='$LTCFLAGS'
18919 compiler='$compiler_DEFAULT'
18920
18921 # A function that is used when there is no print builtin or printf.
18922 func_fallback_echo ()
18923 {
18924 eval 'cat <<_LTECHO_EOF
18925 \$1
18926 _LTECHO_EOF'
18927 }
18928
18929 # Quote evaled strings.
18930 for var in SHELL \
18931 ECHO \
18932 PATH_SEPARATOR \
18933 SED \
18934 GREP \
18935 EGREP \
18936 FGREP \
18937 LD \
18938 NM \
18939 LN_S \
18940 lt_SP2NL \
18941 lt_NL2SP \
18942 reload_flag \
18943 OBJDUMP \
18944 deplibs_check_method \
18945 file_magic_cmd \
18946 file_magic_glob \
18947 want_nocaseglob \
18948 DLLTOOL \
18949 sharedlib_from_linklib_cmd \
18950 AR \
18951 AR_FLAGS \
18952 archiver_list_spec \
18953 STRIP \
18954 RANLIB \
18955 CC \
18956 CFLAGS \
18957 compiler \
18958 lt_cv_sys_global_symbol_pipe \
18959 lt_cv_sys_global_symbol_to_cdecl \
18960 lt_cv_sys_global_symbol_to_c_name_address \
18961 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18962 nm_file_list_spec \
18963 lt_prog_compiler_no_builtin_flag \
18964 lt_prog_compiler_pic \
18965 lt_prog_compiler_wl \
18966 lt_prog_compiler_static \
18967 lt_cv_prog_compiler_c_o \
18968 need_locks \
18969 MANIFEST_TOOL \
18970 DSYMUTIL \
18971 NMEDIT \
18972 LIPO \
18973 OTOOL \
18974 OTOOL64 \
18975 shrext_cmds \
18976 export_dynamic_flag_spec \
18977 whole_archive_flag_spec \
18978 compiler_needs_object \
18979 with_gnu_ld \
18980 allow_undefined_flag \
18981 no_undefined_flag \
18982 hardcode_libdir_flag_spec \
18983 hardcode_libdir_separator \
18984 exclude_expsyms \
18985 include_expsyms \
18986 file_list_spec \
18987 variables_saved_for_relink \
18988 libname_spec \
18989 library_names_spec \
18990 soname_spec \
18991 install_override_mode \
18992 finish_eval \
18993 old_striplib \
18994 striplib; do
18995 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18996 *[\\\\\\\`\\"\\\$]*)
18997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18998 ;;
18999 *)
19000 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19001 ;;
19002 esac
19003 done
19004
19005 # Double-quote double-evaled strings.
19006 for var in reload_cmds \
19007 old_postinstall_cmds \
19008 old_postuninstall_cmds \
19009 old_archive_cmds \
19010 extract_expsyms_cmds \
19011 old_archive_from_new_cmds \
19012 old_archive_from_expsyms_cmds \
19013 archive_cmds \
19014 archive_expsym_cmds \
19015 module_cmds \
19016 module_expsym_cmds \
19017 export_symbols_cmds \
19018 prelink_cmds \
19019 postlink_cmds \
19020 postinstall_cmds \
19021 postuninstall_cmds \
19022 finish_cmds \
19023 sys_lib_search_path_spec \
19024 sys_lib_dlsearch_path_spec; do
19025 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19026 *[\\\\\\\`\\"\\\$]*)
19027 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19028 ;;
19029 *)
19030 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19031 ;;
19032 esac
19033 done
19034
19035 ac_aux_dir='$ac_aux_dir'
19036 xsi_shell='$xsi_shell'
19037 lt_shell_append='$lt_shell_append'
19038
19039 # See if we are running on zsh, and set the options which allow our
19040 # commands through without removal of \ escapes INIT.
19041 if test -n "\${ZSH_VERSION+set}" ; then
19042 setopt NO_GLOB_SUBST
19043 fi
19044
19045
19046 PACKAGE='$PACKAGE'
19047 VERSION='$VERSION'
19048 TIMESTAMP='$TIMESTAMP'
19049 RM='$RM'
19050 ofile='$ofile'
19051
19052
19053
19054
19055 _ACEOF
19056
19057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19058
19059 # Handling of arguments.
19060 for ac_config_target in $ac_config_targets
19061 do
19062 case $ac_config_target in
19063 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19064 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19065 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19067 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19068
19069 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19070 esac
19071 done
19072
19073
19074 # If the user did not use the arguments to specify the items to instantiate,
19075 # then the envvar interface is used. Set only those that are not.
19076 # We use the long form for the default assignment because of an extremely
19077 # bizarre bug on SunOS 4.1.3.
19078 if $ac_need_defaults; then
19079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19082 fi
19083
19084 # Have a temporary directory for convenience. Make it in the build tree
19085 # simply because there is no reason against having it here, and in addition,
19086 # creating and moving files from /tmp can sometimes cause problems.
19087 # Hook for its removal unless debugging.
19088 # Note that there is a small window in which the directory will not be cleaned:
19089 # after its creation but before its name has been assigned to `$tmp'.
19090 $debug ||
19091 {
19092 tmp= ac_tmp=
19093 trap 'exit_status=$?
19094 : "${ac_tmp:=$tmp}"
19095 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19096 ' 0
19097 trap 'as_fn_exit 1' 1 2 13 15
19098 }
19099 # Create a (secure) tmp directory for tmp files.
19100
19101 {
19102 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19103 test -d "$tmp"
19104 } ||
19105 {
19106 tmp=./conf$$-$RANDOM
19107 (umask 077 && mkdir "$tmp")
19108 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19109 ac_tmp=$tmp
19110
19111 # Set up the scripts for CONFIG_FILES section.
19112 # No need to generate them if there are no CONFIG_FILES.
19113 # This happens for instance with `./config.status config.h'.
19114 if test -n "$CONFIG_FILES"; then
19115
19116
19117 ac_cr=`echo X | tr X '\015'`
19118 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19119 # But we know of no other shell where ac_cr would be empty at this
19120 # point, so we can use a bashism as a fallback.
19121 if test "x$ac_cr" = x; then
19122 eval ac_cr=\$\'\\r\'
19123 fi
19124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19126 ac_cs_awk_cr='\\r'
19127 else
19128 ac_cs_awk_cr=$ac_cr
19129 fi
19130
19131 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19132 _ACEOF
19133
19134
19135 {
19136 echo "cat >conf$$subs.awk <<_ACEOF" &&
19137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19138 echo "_ACEOF"
19139 } >conf$$subs.sh ||
19140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19141 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19142 ac_delim='%!_!# '
19143 for ac_last_try in false false false false false :; do
19144 . ./conf$$subs.sh ||
19145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19146
19147 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19148 if test $ac_delim_n = $ac_delim_num; then
19149 break
19150 elif $ac_last_try; then
19151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19152 else
19153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19154 fi
19155 done
19156 rm -f conf$$subs.sh
19157
19158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19159 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19160 _ACEOF
19161 sed -n '
19162 h
19163 s/^/S["/; s/!.*/"]=/
19164 p
19165 g
19166 s/^[^!]*!//
19167 :repl
19168 t repl
19169 s/'"$ac_delim"'$//
19170 t delim
19171 :nl
19172 h
19173 s/\(.\{148\}\)..*/\1/
19174 t more1
19175 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19176 p
19177 n
19178 b repl
19179 :more1
19180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19181 p
19182 g
19183 s/.\{148\}//
19184 t nl
19185 :delim
19186 h
19187 s/\(.\{148\}\)..*/\1/
19188 t more2
19189 s/["\\]/\\&/g; s/^/"/; s/$/"/
19190 p
19191 b
19192 :more2
19193 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19194 p
19195 g
19196 s/.\{148\}//
19197 t delim
19198 ' <conf$$subs.awk | sed '
19199 /^[^""]/{
19200 N
19201 s/\n//
19202 }
19203 ' >>$CONFIG_STATUS || ac_write_fail=1
19204 rm -f conf$$subs.awk
19205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19206 _ACAWK
19207 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19208 for (key in S) S_is_set[key] = 1
19209 FS = ""
19210
19211 }
19212 {
19213 line = $ 0
19214 nfields = split(line, field, "@")
19215 substed = 0
19216 len = length(field[1])
19217 for (i = 2; i < nfields; i++) {
19218 key = field[i]
19219 keylen = length(key)
19220 if (S_is_set[key]) {
19221 value = S[key]
19222 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19223 len += length(value) + length(field[++i])
19224 substed = 1
19225 } else
19226 len += 1 + keylen
19227 }
19228
19229 print line
19230 }
19231
19232 _ACAWK
19233 _ACEOF
19234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19235 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19236 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19237 else
19238 cat
19239 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19240 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19241 _ACEOF
19242
19243 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19244 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19245 # trailing colons and then remove the whole line if VPATH becomes empty
19246 # (actually we leave an empty line to preserve line numbers).
19247 if test "x$srcdir" = x.; then
19248 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19249 h
19250 s///
19251 s/^/:/
19252 s/[ ]*$/:/
19253 s/:\$(srcdir):/:/g
19254 s/:\${srcdir}:/:/g
19255 s/:@srcdir@:/:/g
19256 s/^:*//
19257 s/:*$//
19258 x
19259 s/\(=[ ]*\).*/\1/
19260 G
19261 s/\n//
19262 s/^[^=]*=[ ]*$//
19263 }'
19264 fi
19265
19266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19267 fi # test -n "$CONFIG_FILES"
19268
19269 # Set up the scripts for CONFIG_HEADERS section.
19270 # No need to generate them if there are no CONFIG_HEADERS.
19271 # This happens for instance with `./config.status Makefile'.
19272 if test -n "$CONFIG_HEADERS"; then
19273 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19274 BEGIN {
19275 _ACEOF
19276
19277 # Transform confdefs.h into an awk script `defines.awk', embedded as
19278 # here-document in config.status, that substitutes the proper values into
19279 # config.h.in to produce config.h.
19280
19281 # Create a delimiter string that does not exist in confdefs.h, to ease
19282 # handling of long lines.
19283 ac_delim='%!_!# '
19284 for ac_last_try in false false :; do
19285 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19286 if test -z "$ac_tt"; then
19287 break
19288 elif $ac_last_try; then
19289 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19290 else
19291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19292 fi
19293 done
19294
19295 # For the awk script, D is an array of macro values keyed by name,
19296 # likewise P contains macro parameters if any. Preserve backslash
19297 # newline sequences.
19298
19299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19300 sed -n '
19301 s/.\{148\}/&'"$ac_delim"'/g
19302 t rset
19303 :rset
19304 s/^[ ]*#[ ]*define[ ][ ]*/ /
19305 t def
19306 d
19307 :def
19308 s/\\$//
19309 t bsnl
19310 s/["\\]/\\&/g
19311 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19312 D["\1"]=" \3"/p
19313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19314 d
19315 :bsnl
19316 s/["\\]/\\&/g
19317 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19318 D["\1"]=" \3\\\\\\n"\\/p
19319 t cont
19320 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19321 t cont
19322 d
19323 :cont
19324 n
19325 s/.\{148\}/&'"$ac_delim"'/g
19326 t clear
19327 :clear
19328 s/\\$//
19329 t bsnlc
19330 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19331 d
19332 :bsnlc
19333 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19334 b cont
19335 ' <confdefs.h | sed '
19336 s/'"$ac_delim"'/"\\\
19337 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19338
19339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340 for (key in D) D_is_set[key] = 1
19341 FS = ""
19342 }
19343 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19344 line = \$ 0
19345 split(line, arg, " ")
19346 if (arg[1] == "#") {
19347 defundef = arg[2]
19348 mac1 = arg[3]
19349 } else {
19350 defundef = substr(arg[1], 2)
19351 mac1 = arg[2]
19352 }
19353 split(mac1, mac2, "(") #)
19354 macro = mac2[1]
19355 prefix = substr(line, 1, index(line, defundef) - 1)
19356 if (D_is_set[macro]) {
19357 # Preserve the white space surrounding the "#".
19358 print prefix "define", macro P[macro] D[macro]
19359 next
19360 } else {
19361 # Replace #undef with comments. This is necessary, for example,
19362 # in the case of _POSIX_SOURCE, which is predefined and required
19363 # on some systems where configure will not decide to define it.
19364 if (defundef == "undef") {
19365 print "/*", prefix defundef, macro, "*/"
19366 next
19367 }
19368 }
19369 }
19370 { print }
19371 _ACAWK
19372 _ACEOF
19373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19374 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19375 fi # test -n "$CONFIG_HEADERS"
19376
19377
19378 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19379 shift
19380 for ac_tag
19381 do
19382 case $ac_tag in
19383 :[FHLC]) ac_mode=$ac_tag; continue;;
19384 esac
19385 case $ac_mode$ac_tag in
19386 :[FHL]*:*);;
19387 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19388 :[FH]-) ac_tag=-:-;;
19389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19390 esac
19391 ac_save_IFS=$IFS
19392 IFS=:
19393 set x $ac_tag
19394 IFS=$ac_save_IFS
19395 shift
19396 ac_file=$1
19397 shift
19398
19399 case $ac_mode in
19400 :L) ac_source=$1;;
19401 :[FH])
19402 ac_file_inputs=
19403 for ac_f
19404 do
19405 case $ac_f in
19406 -) ac_f="$ac_tmp/stdin";;
19407 *) # Look for the file first in the build tree, then in the source tree
19408 # (if the path is not absolute). The absolute path cannot be DOS-style,
19409 # because $ac_f cannot contain `:'.
19410 test -f "$ac_f" ||
19411 case $ac_f in
19412 [\\/$]*) false;;
19413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19414 esac ||
19415 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19416 esac
19417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19418 as_fn_append ac_file_inputs " '$ac_f'"
19419 done
19420
19421 # Let's still pretend it is `configure' which instantiates (i.e., don't
19422 # use $as_me), people would be surprised to read:
19423 # /* config.h. Generated by config.status. */
19424 configure_input='Generated from '`
19425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19426 `' by configure.'
19427 if test x"$ac_file" != x-; then
19428 configure_input="$ac_file. $configure_input"
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19430 $as_echo "$as_me: creating $ac_file" >&6;}
19431 fi
19432 # Neutralize special characters interpreted by sed in replacement strings.
19433 case $configure_input in #(
19434 *\&* | *\|* | *\\* )
19435 ac_sed_conf_input=`$as_echo "$configure_input" |
19436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19437 *) ac_sed_conf_input=$configure_input;;
19438 esac
19439
19440 case $ac_tag in
19441 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19443 esac
19444 ;;
19445 esac
19446
19447 ac_dir=`$as_dirname -- "$ac_file" ||
19448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19449 X"$ac_file" : 'X\(//\)[^/]' \| \
19450 X"$ac_file" : 'X\(//\)$' \| \
19451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19452 $as_echo X"$ac_file" |
19453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19454 s//\1/
19455 q
19456 }
19457 /^X\(\/\/\)[^/].*/{
19458 s//\1/
19459 q
19460 }
19461 /^X\(\/\/\)$/{
19462 s//\1/
19463 q
19464 }
19465 /^X\(\/\).*/{
19466 s//\1/
19467 q
19468 }
19469 s/.*/./; q'`
19470 as_dir="$ac_dir"; as_fn_mkdir_p
19471 ac_builddir=.
19472
19473 case "$ac_dir" in
19474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19475 *)
19476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19477 # A ".." for each directory in $ac_dir_suffix.
19478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19479 case $ac_top_builddir_sub in
19480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19482 esac ;;
19483 esac
19484 ac_abs_top_builddir=$ac_pwd
19485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19486 # for backward compatibility:
19487 ac_top_builddir=$ac_top_build_prefix
19488
19489 case $srcdir in
19490 .) # We are building in place.
19491 ac_srcdir=.
19492 ac_top_srcdir=$ac_top_builddir_sub
19493 ac_abs_top_srcdir=$ac_pwd ;;
19494 [\\/]* | ?:[\\/]* ) # Absolute name.
19495 ac_srcdir=$srcdir$ac_dir_suffix;
19496 ac_top_srcdir=$srcdir
19497 ac_abs_top_srcdir=$srcdir ;;
19498 *) # Relative name.
19499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19500 ac_top_srcdir=$ac_top_build_prefix$srcdir
19501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19502 esac
19503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19504
19505
19506 case $ac_mode in
19507 :F)
19508 #
19509 # CONFIG_FILE
19510 #
19511
19512 case $INSTALL in
19513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19515 esac
19516 ac_MKDIR_P=$MKDIR_P
19517 case $MKDIR_P in
19518 [\\/$]* | ?:[\\/]* ) ;;
19519 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19520 esac
19521 _ACEOF
19522
19523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19524 # If the template does not know about datarootdir, expand it.
19525 # FIXME: This hack should be removed a few years after 2.60.
19526 ac_datarootdir_hack=; ac_datarootdir_seen=
19527 ac_sed_dataroot='
19528 /datarootdir/ {
19529 p
19530 q
19531 }
19532 /@datadir@/p
19533 /@docdir@/p
19534 /@infodir@/p
19535 /@localedir@/p
19536 /@mandir@/p'
19537 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19538 *datarootdir*) ac_datarootdir_seen=yes;;
19539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19541 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19542 _ACEOF
19543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19544 ac_datarootdir_hack='
19545 s&@datadir@&$datadir&g
19546 s&@docdir@&$docdir&g
19547 s&@infodir@&$infodir&g
19548 s&@localedir@&$localedir&g
19549 s&@mandir@&$mandir&g
19550 s&\\\${datarootdir}&$datarootdir&g' ;;
19551 esac
19552 _ACEOF
19553
19554 # Neutralize VPATH when `$srcdir' = `.'.
19555 # Shell code in configure.ac might set extrasub.
19556 # FIXME: do we really want to maintain this feature?
19557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19558 ac_sed_extra="$ac_vpsub
19559 $extrasub
19560 _ACEOF
19561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562 :t
19563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19564 s|@configure_input@|$ac_sed_conf_input|;t t
19565 s&@top_builddir@&$ac_top_builddir_sub&;t t
19566 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19567 s&@srcdir@&$ac_srcdir&;t t
19568 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19569 s&@top_srcdir@&$ac_top_srcdir&;t t
19570 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19571 s&@builddir@&$ac_builddir&;t t
19572 s&@abs_builddir@&$ac_abs_builddir&;t t
19573 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19574 s&@INSTALL@&$ac_INSTALL&;t t
19575 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19576 $ac_datarootdir_hack
19577 "
19578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19579 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19580
19581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19582 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19584 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19586 which seems to be undefined. Please make sure it is defined" >&5
19587 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19588 which seems to be undefined. Please make sure it is defined" >&2;}
19589
19590 rm -f "$ac_tmp/stdin"
19591 case $ac_file in
19592 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19593 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19594 esac \
19595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19596 ;;
19597 :H)
19598 #
19599 # CONFIG_HEADER
19600 #
19601 if test x"$ac_file" != x-; then
19602 {
19603 $as_echo "/* $configure_input */" \
19604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19605 } >"$ac_tmp/config.h" \
19606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19607 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19609 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19610 else
19611 rm -f "$ac_file"
19612 mv "$ac_tmp/config.h" "$ac_file" \
19613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19614 fi
19615 else
19616 $as_echo "/* $configure_input */" \
19617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19618 || as_fn_error $? "could not create -" "$LINENO" 5
19619 fi
19620 # Compute "$ac_file"'s index in $config_headers.
19621 _am_arg="$ac_file"
19622 _am_stamp_count=1
19623 for _am_header in $config_headers :; do
19624 case $_am_header in
19625 $_am_arg | $_am_arg:* )
19626 break ;;
19627 * )
19628 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19629 esac
19630 done
19631 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19632 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19633 X"$_am_arg" : 'X\(//\)[^/]' \| \
19634 X"$_am_arg" : 'X\(//\)$' \| \
19635 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19636 $as_echo X"$_am_arg" |
19637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19638 s//\1/
19639 q
19640 }
19641 /^X\(\/\/\)[^/].*/{
19642 s//\1/
19643 q
19644 }
19645 /^X\(\/\/\)$/{
19646 s//\1/
19647 q
19648 }
19649 /^X\(\/\).*/{
19650 s//\1/
19651 q
19652 }
19653 s/.*/./; q'`/stamp-h$_am_stamp_count
19654 ;;
19655
19656 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19657 $as_echo "$as_me: executing $ac_file commands" >&6;}
19658 ;;
19659 esac
19660
19661
19662 case $ac_file$ac_mode in
19663 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19664 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19665 # are listed without --file. Let's play safe and only enable the eval
19666 # if we detect the quoting.
19667 case $CONFIG_FILES in
19668 *\'*) eval set x "$CONFIG_FILES" ;;
19669 *) set x $CONFIG_FILES ;;
19670 esac
19671 shift
19672 for mf
19673 do
19674 # Strip MF so we end up with the name of the file.
19675 mf=`echo "$mf" | sed -e 's/:.*$//'`
19676 # Check whether this is an Automake generated Makefile or not.
19677 # We used to match only the files named `Makefile.in', but
19678 # some people rename them; so instead we look at the file content.
19679 # Grep'ing the first line is not enough: some people post-process
19680 # each Makefile.in and add a new line on top of each file to say so.
19681 # Grep'ing the whole file is not good either: AIX grep has a line
19682 # limit of 2048, but all sed's we know have understand at least 4000.
19683 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19684 dirpart=`$as_dirname -- "$mf" ||
19685 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19686 X"$mf" : 'X\(//\)[^/]' \| \
19687 X"$mf" : 'X\(//\)$' \| \
19688 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19689 $as_echo X"$mf" |
19690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19691 s//\1/
19692 q
19693 }
19694 /^X\(\/\/\)[^/].*/{
19695 s//\1/
19696 q
19697 }
19698 /^X\(\/\/\)$/{
19699 s//\1/
19700 q
19701 }
19702 /^X\(\/\).*/{
19703 s//\1/
19704 q
19705 }
19706 s/.*/./; q'`
19707 else
19708 continue
19709 fi
19710 # Extract the definition of DEPDIR, am__include, and am__quote
19711 # from the Makefile without running `make'.
19712 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19713 test -z "$DEPDIR" && continue
19714 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19715 test -z "am__include" && continue
19716 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19717 # When using ansi2knr, U may be empty or an underscore; expand it
19718 U=`sed -n 's/^U = //p' < "$mf"`
19719 # Find all dependency output files, they are included files with
19720 # $(DEPDIR) in their names. We invoke sed twice because it is the
19721 # simplest approach to changing $(DEPDIR) to its actual value in the
19722 # expansion.
19723 for file in `sed -n "
19724 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19726 # Make sure the directory exists.
19727 test -f "$dirpart/$file" && continue
19728 fdir=`$as_dirname -- "$file" ||
19729 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19730 X"$file" : 'X\(//\)[^/]' \| \
19731 X"$file" : 'X\(//\)$' \| \
19732 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19733 $as_echo X"$file" |
19734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19735 s//\1/
19736 q
19737 }
19738 /^X\(\/\/\)[^/].*/{
19739 s//\1/
19740 q
19741 }
19742 /^X\(\/\/\)$/{
19743 s//\1/
19744 q
19745 }
19746 /^X\(\/\).*/{
19747 s//\1/
19748 q
19749 }
19750 s/.*/./; q'`
19751 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19752 # echo "creating $dirpart/$file"
19753 echo '# dummy' > "$dirpart/$file"
19754 done
19755 done
19756 }
19757 ;;
19758 "libtool":C)
19759
19760 # See if we are running on zsh, and set the options which allow our
19761 # commands through without removal of \ escapes.
19762 if test -n "${ZSH_VERSION+set}" ; then
19763 setopt NO_GLOB_SUBST
19764 fi
19765
19766 cfgfile="${ofile}T"
19767 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19768 $RM "$cfgfile"
19769
19770 cat <<_LT_EOF >> "$cfgfile"
19771 #! $SHELL
19772
19773 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19774 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19776 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19777 #
19778 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19779 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19780 # Foundation, Inc.
19781 # Written by Gordon Matzigkeit, 1996
19782 #
19783 # This file is part of GNU Libtool.
19784 #
19785 # GNU Libtool is free software; you can redistribute it and/or
19786 # modify it under the terms of the GNU General Public License as
19787 # published by the Free Software Foundation; either version 2 of
19788 # the License, or (at your option) any later version.
19789 #
19790 # As a special exception to the GNU General Public License,
19791 # if you distribute this file as part of a program or library that
19792 # is built using GNU Libtool, you may include this file under the
19793 # same distribution terms that you use for the rest of that program.
19794 #
19795 # GNU Libtool is distributed in the hope that it will be useful,
19796 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19797 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19798 # GNU General Public License for more details.
19799 #
19800 # You should have received a copy of the GNU General Public License
19801 # along with GNU Libtool; see the file COPYING. If not, a copy
19802 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19803 # obtained by writing to the Free Software Foundation, Inc.,
19804 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19805
19806
19807 # The names of the tagged configurations supported by this script.
19808 available_tags=""
19809
19810 # ### BEGIN LIBTOOL CONFIG
19811
19812 # Whether or not to build static libraries.
19813 build_old_libs=$enable_static
19814
19815 # Which release of libtool.m4 was used?
19816 macro_version=$macro_version
19817 macro_revision=$macro_revision
19818
19819 # Whether or not to build shared libraries.
19820 build_libtool_libs=$enable_shared
19821
19822 # What type of objects to build.
19823 pic_mode=$pic_mode
19824
19825 # Whether or not to optimize for fast installation.
19826 fast_install=$enable_fast_install
19827
19828 # Shell to use when invoking shell scripts.
19829 SHELL=$lt_SHELL
19830
19831 # An echo program that protects backslashes.
19832 ECHO=$lt_ECHO
19833
19834 # The PATH separator for the build system.
19835 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19836
19837 # The host system.
19838 host_alias=$host_alias
19839 host=$host
19840 host_os=$host_os
19841
19842 # The build system.
19843 build_alias=$build_alias
19844 build=$build
19845 build_os=$build_os
19846
19847 # A sed program that does not truncate output.
19848 SED=$lt_SED
19849
19850 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19851 Xsed="\$SED -e 1s/^X//"
19852
19853 # A grep program that handles long lines.
19854 GREP=$lt_GREP
19855
19856 # An ERE matcher.
19857 EGREP=$lt_EGREP
19858
19859 # A literal string matcher.
19860 FGREP=$lt_FGREP
19861
19862 # A BSD- or MS-compatible name lister.
19863 NM=$lt_NM
19864
19865 # Whether we need soft or hard links.
19866 LN_S=$lt_LN_S
19867
19868 # What is the maximum length of a command?
19869 max_cmd_len=$max_cmd_len
19870
19871 # Object file suffix (normally "o").
19872 objext=$ac_objext
19873
19874 # Executable file suffix (normally "").
19875 exeext=$exeext
19876
19877 # whether the shell understands "unset".
19878 lt_unset=$lt_unset
19879
19880 # turn spaces into newlines.
19881 SP2NL=$lt_lt_SP2NL
19882
19883 # turn newlines into spaces.
19884 NL2SP=$lt_lt_NL2SP
19885
19886 # convert \$build file names to \$host format.
19887 to_host_file_cmd=$lt_cv_to_host_file_cmd
19888
19889 # convert \$build files to toolchain format.
19890 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19891
19892 # An object symbol dumper.
19893 OBJDUMP=$lt_OBJDUMP
19894
19895 # Method to check whether dependent libraries are shared objects.
19896 deplibs_check_method=$lt_deplibs_check_method
19897
19898 # Command to use when deplibs_check_method = "file_magic".
19899 file_magic_cmd=$lt_file_magic_cmd
19900
19901 # How to find potential files when deplibs_check_method = "file_magic".
19902 file_magic_glob=$lt_file_magic_glob
19903
19904 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19905 want_nocaseglob=$lt_want_nocaseglob
19906
19907 # DLL creation program.
19908 DLLTOOL=$lt_DLLTOOL
19909
19910 # Command to associate shared and link libraries.
19911 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19912
19913 # The archiver.
19914 AR=$lt_AR
19915
19916 # Flags to create an archive.
19917 AR_FLAGS=$lt_AR_FLAGS
19918
19919 # How to feed a file listing to the archiver.
19920 archiver_list_spec=$lt_archiver_list_spec
19921
19922 # A symbol stripping program.
19923 STRIP=$lt_STRIP
19924
19925 # Commands used to install an old-style archive.
19926 RANLIB=$lt_RANLIB
19927 old_postinstall_cmds=$lt_old_postinstall_cmds
19928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19929
19930 # Whether to use a lock for old archive extraction.
19931 lock_old_archive_extraction=$lock_old_archive_extraction
19932
19933 # A C compiler.
19934 LTCC=$lt_CC
19935
19936 # LTCC compiler flags.
19937 LTCFLAGS=$lt_CFLAGS
19938
19939 # Take the output of nm and produce a listing of raw symbols and C names.
19940 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19941
19942 # Transform the output of nm in a proper C declaration.
19943 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19944
19945 # Transform the output of nm in a C name address pair.
19946 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19947
19948 # Transform the output of nm in a C name address pair when lib prefix is needed.
19949 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19950
19951 # Specify filename containing input files for \$NM.
19952 nm_file_list_spec=$lt_nm_file_list_spec
19953
19954 # The root where to search for dependent libraries,and in which our libraries should be installed.
19955 lt_sysroot=$lt_sysroot
19956
19957 # The name of the directory that contains temporary libtool files.
19958 objdir=$objdir
19959
19960 # Used to examine libraries when file_magic_cmd begins with "file".
19961 MAGIC_CMD=$MAGIC_CMD
19962
19963 # Must we lock files when doing compilation?
19964 need_locks=$lt_need_locks
19965
19966 # Manifest tool.
19967 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19968
19969 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19970 DSYMUTIL=$lt_DSYMUTIL
19971
19972 # Tool to change global to local symbols on Mac OS X.
19973 NMEDIT=$lt_NMEDIT
19974
19975 # Tool to manipulate fat objects and archives on Mac OS X.
19976 LIPO=$lt_LIPO
19977
19978 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19979 OTOOL=$lt_OTOOL
19980
19981 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19982 OTOOL64=$lt_OTOOL64
19983
19984 # Old archive suffix (normally "a").
19985 libext=$libext
19986
19987 # Shared library suffix (normally ".so").
19988 shrext_cmds=$lt_shrext_cmds
19989
19990 # The commands to extract the exported symbol list from a shared archive.
19991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19992
19993 # Variables whose values should be saved in libtool wrapper scripts and
19994 # restored at link time.
19995 variables_saved_for_relink=$lt_variables_saved_for_relink
19996
19997 # Do we need the "lib" prefix for modules?
19998 need_lib_prefix=$need_lib_prefix
19999
20000 # Do we need a version for libraries?
20001 need_version=$need_version
20002
20003 # Library versioning type.
20004 version_type=$version_type
20005
20006 # Shared library runtime path variable.
20007 runpath_var=$runpath_var
20008
20009 # Shared library path variable.
20010 shlibpath_var=$shlibpath_var
20011
20012 # Is shlibpath searched before the hard-coded library search path?
20013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20014
20015 # Format of library name prefix.
20016 libname_spec=$lt_libname_spec
20017
20018 # List of archive names. First name is the real one, the rest are links.
20019 # The last name is the one that the linker finds with -lNAME
20020 library_names_spec=$lt_library_names_spec
20021
20022 # The coded name of the library, if different from the real name.
20023 soname_spec=$lt_soname_spec
20024
20025 # Permission mode override for installation of shared libraries.
20026 install_override_mode=$lt_install_override_mode
20027
20028 # Command to use after installation of a shared archive.
20029 postinstall_cmds=$lt_postinstall_cmds
20030
20031 # Command to use after uninstallation of a shared archive.
20032 postuninstall_cmds=$lt_postuninstall_cmds
20033
20034 # Commands used to finish a libtool library installation in a directory.
20035 finish_cmds=$lt_finish_cmds
20036
20037 # As "finish_cmds", except a single script fragment to be evaled but
20038 # not shown.
20039 finish_eval=$lt_finish_eval
20040
20041 # Whether we should hardcode library paths into libraries.
20042 hardcode_into_libs=$hardcode_into_libs
20043
20044 # Compile-time system search path for libraries.
20045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20046
20047 # Run-time system search path for libraries.
20048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20049
20050 # Whether dlopen is supported.
20051 dlopen_support=$enable_dlopen
20052
20053 # Whether dlopen of programs is supported.
20054 dlopen_self=$enable_dlopen_self
20055
20056 # Whether dlopen of statically linked programs is supported.
20057 dlopen_self_static=$enable_dlopen_self_static
20058
20059 # Commands to strip libraries.
20060 old_striplib=$lt_old_striplib
20061 striplib=$lt_striplib
20062
20063
20064 # The linker used to build libraries.
20065 LD=$lt_LD
20066
20067 # How to create reloadable object files.
20068 reload_flag=$lt_reload_flag
20069 reload_cmds=$lt_reload_cmds
20070
20071 # Commands used to build an old-style archive.
20072 old_archive_cmds=$lt_old_archive_cmds
20073
20074 # A language specific compiler.
20075 CC=$lt_compiler
20076
20077 # Is the compiler the GNU compiler?
20078 with_gcc=$GCC
20079
20080 # Compiler flag to turn off builtin functions.
20081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20082
20083 # Additional compiler flags for building library objects.
20084 pic_flag=$lt_lt_prog_compiler_pic
20085
20086 # How to pass a linker flag through the compiler.
20087 wl=$lt_lt_prog_compiler_wl
20088
20089 # Compiler flag to prevent dynamic linking.
20090 link_static_flag=$lt_lt_prog_compiler_static
20091
20092 # Does compiler simultaneously support -c and -o options?
20093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20094
20095 # Whether or not to add -lc for building shared libraries.
20096 build_libtool_need_lc=$archive_cmds_need_lc
20097
20098 # Whether or not to disallow shared libs when runtime libs are static.
20099 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20100
20101 # Compiler flag to allow reflexive dlopens.
20102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20103
20104 # Compiler flag to generate shared objects directly from archives.
20105 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20106
20107 # Whether the compiler copes with passing no objects directly.
20108 compiler_needs_object=$lt_compiler_needs_object
20109
20110 # Create an old-style archive from a shared archive.
20111 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20112
20113 # Create a temporary old-style archive to link instead of a shared archive.
20114 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20115
20116 # Commands used to build a shared archive.
20117 archive_cmds=$lt_archive_cmds
20118 archive_expsym_cmds=$lt_archive_expsym_cmds
20119
20120 # Commands used to build a loadable module if different from building
20121 # a shared archive.
20122 module_cmds=$lt_module_cmds
20123 module_expsym_cmds=$lt_module_expsym_cmds
20124
20125 # Whether we are building with GNU ld or not.
20126 with_gnu_ld=$lt_with_gnu_ld
20127
20128 # Flag that allows shared libraries with undefined symbols to be built.
20129 allow_undefined_flag=$lt_allow_undefined_flag
20130
20131 # Flag that enforces no undefined symbols.
20132 no_undefined_flag=$lt_no_undefined_flag
20133
20134 # Flag to hardcode \$libdir into a binary during linking.
20135 # This must work even if \$libdir does not exist
20136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20137
20138 # Whether we need a single "-rpath" flag with a separated argument.
20139 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20140
20141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20142 # DIR into the resulting binary.
20143 hardcode_direct=$hardcode_direct
20144
20145 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20146 # DIR into the resulting binary and the resulting library dependency is
20147 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20148 # library is relocated.
20149 hardcode_direct_absolute=$hardcode_direct_absolute
20150
20151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20152 # into the resulting binary.
20153 hardcode_minus_L=$hardcode_minus_L
20154
20155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20156 # into the resulting binary.
20157 hardcode_shlibpath_var=$hardcode_shlibpath_var
20158
20159 # Set to "yes" if building a shared library automatically hardcodes DIR
20160 # into the library and all subsequent libraries and executables linked
20161 # against it.
20162 hardcode_automatic=$hardcode_automatic
20163
20164 # Set to yes if linker adds runtime paths of dependent libraries
20165 # to runtime path list.
20166 inherit_rpath=$inherit_rpath
20167
20168 # Whether libtool must link a program against all its dependency libraries.
20169 link_all_deplibs=$link_all_deplibs
20170
20171 # Set to "yes" if exported symbols are required.
20172 always_export_symbols=$always_export_symbols
20173
20174 # The commands to list exported symbols.
20175 export_symbols_cmds=$lt_export_symbols_cmds
20176
20177 # Symbols that should not be listed in the preloaded symbols.
20178 exclude_expsyms=$lt_exclude_expsyms
20179
20180 # Symbols that must always be exported.
20181 include_expsyms=$lt_include_expsyms
20182
20183 # Commands necessary for linking programs (against libraries) with templates.
20184 prelink_cmds=$lt_prelink_cmds
20185
20186 # Commands necessary for finishing linking programs.
20187 postlink_cmds=$lt_postlink_cmds
20188
20189 # Specify filename containing input files.
20190 file_list_spec=$lt_file_list_spec
20191
20192 # How to hardcode a shared library path into an executable.
20193 hardcode_action=$hardcode_action
20194
20195 # ### END LIBTOOL CONFIG
20196
20197 _LT_EOF
20198
20199 case $host_os in
20200 aix3*)
20201 cat <<\_LT_EOF >> "$cfgfile"
20202 # AIX sometimes has problems with the GCC collect2 program. For some
20203 # reason, if we set the COLLECT_NAMES environment variable, the problems
20204 # vanish in a puff of smoke.
20205 if test "X${COLLECT_NAMES+set}" != Xset; then
20206 COLLECT_NAMES=
20207 export COLLECT_NAMES
20208 fi
20209 _LT_EOF
20210 ;;
20211 esac
20212
20213
20214 ltmain="$ac_aux_dir/ltmain.sh"
20215
20216
20217 # We use sed instead of cat because bash on DJGPP gets confused if
20218 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20219 # text mode, it properly converts lines to CR/LF. This bash problem
20220 # is reportedly fixed, but why not run on old versions too?
20221 sed '$q' "$ltmain" >> "$cfgfile" \
20222 || (rm -f "$cfgfile"; exit 1)
20223
20224 if test x"$xsi_shell" = xyes; then
20225 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20226 func_dirname ()\
20227 {\
20228 \ case ${1} in\
20229 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20230 \ * ) func_dirname_result="${3}" ;;\
20231 \ esac\
20232 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20233 && mv -f "$cfgfile.tmp" "$cfgfile" \
20234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20235 test 0 -eq $? || _lt_function_replace_fail=:
20236
20237
20238 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20239 func_basename ()\
20240 {\
20241 \ func_basename_result="${1##*/}"\
20242 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20243 && mv -f "$cfgfile.tmp" "$cfgfile" \
20244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20245 test 0 -eq $? || _lt_function_replace_fail=:
20246
20247
20248 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20249 func_dirname_and_basename ()\
20250 {\
20251 \ case ${1} in\
20252 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20253 \ * ) func_dirname_result="${3}" ;;\
20254 \ esac\
20255 \ func_basename_result="${1##*/}"\
20256 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20257 && mv -f "$cfgfile.tmp" "$cfgfile" \
20258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20259 test 0 -eq $? || _lt_function_replace_fail=:
20260
20261
20262 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20263 func_stripname ()\
20264 {\
20265 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20266 \ # positional parameters, so assign one to ordinary parameter first.\
20267 \ func_stripname_result=${3}\
20268 \ func_stripname_result=${func_stripname_result#"${1}"}\
20269 \ func_stripname_result=${func_stripname_result%"${2}"}\
20270 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20271 && mv -f "$cfgfile.tmp" "$cfgfile" \
20272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20273 test 0 -eq $? || _lt_function_replace_fail=:
20274
20275
20276 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20277 func_split_long_opt ()\
20278 {\
20279 \ func_split_long_opt_name=${1%%=*}\
20280 \ func_split_long_opt_arg=${1#*=}\
20281 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20282 && mv -f "$cfgfile.tmp" "$cfgfile" \
20283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20284 test 0 -eq $? || _lt_function_replace_fail=:
20285
20286
20287 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20288 func_split_short_opt ()\
20289 {\
20290 \ func_split_short_opt_arg=${1#??}\
20291 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20292 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20293 && mv -f "$cfgfile.tmp" "$cfgfile" \
20294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20295 test 0 -eq $? || _lt_function_replace_fail=:
20296
20297
20298 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20299 func_lo2o ()\
20300 {\
20301 \ case ${1} in\
20302 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20303 \ *) func_lo2o_result=${1} ;;\
20304 \ esac\
20305 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20306 && mv -f "$cfgfile.tmp" "$cfgfile" \
20307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20308 test 0 -eq $? || _lt_function_replace_fail=:
20309
20310
20311 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20312 func_xform ()\
20313 {\
20314 func_xform_result=${1%.*}.lo\
20315 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20316 && mv -f "$cfgfile.tmp" "$cfgfile" \
20317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20318 test 0 -eq $? || _lt_function_replace_fail=:
20319
20320
20321 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20322 func_arith ()\
20323 {\
20324 func_arith_result=$(( $* ))\
20325 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20326 && mv -f "$cfgfile.tmp" "$cfgfile" \
20327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20328 test 0 -eq $? || _lt_function_replace_fail=:
20329
20330
20331 sed -e '/^func_len ()$/,/^} # func_len /c\
20332 func_len ()\
20333 {\
20334 func_len_result=${#1}\
20335 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20336 && mv -f "$cfgfile.tmp" "$cfgfile" \
20337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20338 test 0 -eq $? || _lt_function_replace_fail=:
20339
20340 fi
20341
20342 if test x"$lt_shell_append" = xyes; then
20343 sed -e '/^func_append ()$/,/^} # func_append /c\
20344 func_append ()\
20345 {\
20346 eval "${1}+=\\${2}"\
20347 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20348 && mv -f "$cfgfile.tmp" "$cfgfile" \
20349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20350 test 0 -eq $? || _lt_function_replace_fail=:
20351
20352
20353 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20354 func_append_quoted ()\
20355 {\
20356 \ func_quote_for_eval "${2}"\
20357 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20358 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20359 && mv -f "$cfgfile.tmp" "$cfgfile" \
20360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20361 test 0 -eq $? || _lt_function_replace_fail=:
20362
20363
20364 # Save a `func_append' function call where possible by direct use of '+='
20365 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20366 && mv -f "$cfgfile.tmp" "$cfgfile" \
20367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20368 test 0 -eq $? || _lt_function_replace_fail=:
20369 else
20370 # Save a `func_append' function call even when '+=' is not available
20371 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20372 && mv -f "$cfgfile.tmp" "$cfgfile" \
20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374 test 0 -eq $? || _lt_function_replace_fail=:
20375 fi
20376
20377 if test x"$_lt_function_replace_fail" = x":"; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20379 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20380 fi
20381
20382
20383 mv -f "$cfgfile" "$ofile" ||
20384 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20385 chmod +x "$ofile"
20386
20387 ;;
20388
20389 esac
20390 done # for ac_tag
20391
20392
20393 as_fn_exit 0
20394 _ACEOF
20395 ac_clean_files=$ac_clean_files_save
20396
20397 test $ac_write_fail = 0 ||
20398 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20399
20400
20401 # configure is writing to config.log, and then calls config.status.
20402 # config.status does its own redirection, appending to config.log.
20403 # Unfortunately, on DOS this fails, as config.log is still kept open
20404 # by configure, so config.status won't be able to write to it; its
20405 # output is simply discarded. So we exec the FD to /dev/null,
20406 # effectively closing config.log, so it can be properly (re)opened and
20407 # appended to by config.status. When coming back to configure, we
20408 # need to make the FD available again.
20409 if test "$no_create" != yes; then
20410 ac_cs_success=:
20411 ac_config_status_args=
20412 test "$silent" = yes &&
20413 ac_config_status_args="$ac_config_status_args --quiet"
20414 exec 5>/dev/null
20415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20416 exec 5>>config.log
20417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20418 # would make configure fail if this is the last instruction.
20419 $ac_cs_success || as_fn_exit 1
20420 fi
20421 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20423 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20424 fi
20425
20426