configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-r128 6.9.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-r128'
593 PACKAGE_TARNAME='xf86-video-r128'
594 PACKAGE_VERSION='6.9.2'
595 PACKAGE_STRING='xf86-video-r128 6.9.2'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 XSERVER_LIBPCIACCESS_FALSE
643 XSERVER_LIBPCIACCESS_TRUE
644 PCIACCESS_LIBS
645 PCIACCESS_CFLAGS
646 USE_EXA_FALSE
647 USE_EXA_TRUE
648 XAA_FALSE
649 XAA_TRUE
650 DRI_LIBS
651 DRI_CFLAGS
652 DRI_FALSE
653 DRI_TRUE
654 HAVE_XEXTPROTO_71_FALSE
655 HAVE_XEXTPROTO_71_TRUE
656 XEXT_LIBS
657 XEXT_CFLAGS
658 XORG_LIBS
659 XORG_CFLAGS
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 MANIFEST_TOOL
666 RANLIB
667 ac_ct_AR
668 AR
669 DLLTOOL
670 OBJDUMP
671 LN_S
672 NM
673 ac_ct_DUMPBIN
674 DUMPBIN
675 LD
676 FGREP
677 LIBTOOL
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 MAN_SUBSTS
686 XORG_MAN_PAGE
687 ADMIN_MAN_DIR
688 DRIVER_MAN_DIR
689 MISC_MAN_DIR
690 FILE_MAN_DIR
691 LIB_MAN_DIR
692 APP_MAN_DIR
693 ADMIN_MAN_SUFFIX
694 DRIVER_MAN_SUFFIX
695 MISC_MAN_SUFFIX
696 FILE_MAN_SUFFIX
697 LIB_MAN_SUFFIX
698 APP_MAN_SUFFIX
699 SED
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 INSTALL_CMD
709 PKG_CONFIG_LIBDIR
710 PKG_CONFIG_PATH
711 PKG_CONFIG
712 CHANGELOG_CMD
713 STRICT_CFLAGS
714 CWARNFLAGS
715 BASE_CFLAGS
716 EGREP
717 GREP
718 CPP
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__quote
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 am__untar
737 am__tar
738 AMTAR
739 am__leading_dot
740 SET_MAKE
741 AWK
742 mkdir_p
743 MKDIR_P
744 INSTALL_STRIP_PROGRAM
745 STRIP
746 install_sh
747 MAKEINFO
748 AUTOHEADER
749 AUTOMAKE
750 AUTOCONF
751 ACLOCAL
752 VERSION
753 PACKAGE
754 CYGPATH_W
755 am__isrc
756 INSTALL_DATA
757 INSTALL_SCRIPT
758 INSTALL_PROGRAM
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_dependency_tracking
801 enable_selective_werror
802 enable_strict_compilation
803 enable_silent_rules
804 enable_maintainer_mode
805 enable_static
806 enable_shared
807 with_pic
808 enable_fast_install
809 with_gnu_ld
810 with_sysroot
811 enable_libtool_lock
812 with_xorg_module_dir
813 enable_dri
814 enable_exa
815 enable_xaa
816 '
817 ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 CPP
826 PKG_CONFIG
827 PKG_CONFIG_PATH
828 PKG_CONFIG_LIBDIR
829 XORG_CFLAGS
830 XORG_LIBS
831 XEXT_CFLAGS
832 XEXT_LIBS
833 DRI_CFLAGS
834 DRI_LIBS
835 PCIACCESS_CFLAGS
836 PCIACCESS_LIBS'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
896 fi
897
898 case $ac_option in
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *=) ac_optarg= ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures xf86-video-r128 6.9.2 to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-r128]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1431
1432 cat <<\_ACEOF
1433
1434 Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of xf86-video-r128 6.9.2:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --disable-dependency-tracking speeds up one-time build
1456 --enable-dependency-tracking do not reject slow dependency extractors
1457 --disable-selective-werror
1458 Turn off selective compiler errors. (default:
1459 enabled)
1460 --enable-strict-compilation
1461 Enable all warnings from compiler and make them
1462 errors (default: disabled)
1463 --enable-silent-rules less verbose build output (undo: `make V=1')
1464 --disable-silent-rules verbose build output (undo: `make V=0')
1465 --enable-maintainer-mode enable make rules and dependencies not useful
1466 (and sometimes confusing) to the casual installer
1467 --enable-static[=PKGS] build static libraries [default=no]
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --disable-dri Disable DRI support [[default=auto]]
1473 --disable-exa Disable EXA support [[default=enabled]]
1474 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1475 [default=auto]
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot=DIR Search for dependent libraries within DIR
1484 (or the compiler's sysroot if not specified).
1485 --with-xorg-module-dir=DIR
1486 Default xorg module directory
1487 [[default=$libdir/xorg/modules]]
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 PKG_CONFIG path to pkg-config utility
1499 PKG_CONFIG_PATH
1500 directories to add to pkg-config's search path
1501 PKG_CONFIG_LIBDIR
1502 path overriding pkg-config's built-in search path
1503 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1504 XORG_LIBS linker flags for XORG, overriding pkg-config
1505 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1506 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1507 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1508 DRI_LIBS linker flags for DRI, overriding pkg-config
1509 PCIACCESS_CFLAGS
1510 C compiler flags for PCIACCESS, overriding pkg-config
1511 PCIACCESS_LIBS
1512 linker flags for PCIACCESS, overriding pkg-config
1513
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1516
1517 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 xf86-video-r128 configure 6.9.2
1581 generated by GNU Autoconf 2.69
1582
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_compile
1631
1632 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1633 # ---------------------------------------------
1634 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1635 # accordingly.
1636 ac_fn_c_check_decl ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 as_decl_name=`echo $2|sed 's/ *(.*//'`
1640 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1642 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $4
1649 int
1650 main ()
1651 {
1652 #ifndef $as_decl_name
1653 #ifdef __cplusplus
1654 (void) $as_decl_use;
1655 #else
1656 (void) $as_decl_name;
1657 #endif
1658 #endif
1659
1660 ;
1661 return 0;
1662 }
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665 eval "$3=yes"
1666 else
1667 eval "$3=no"
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 fi
1671 eval ac_res=\$$3
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_decl
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_cpp
1714
1715 # ac_fn_c_try_run LINENO
1716 # ----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718 # that executables *can* be run.
1719 ac_fn_c_try_run ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=$ac_status
1750 fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_run
1756
1757 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758 # -------------------------------------------------------
1759 # Tests whether HEADER exists and can be compiled using the include files in
1760 # INCLUDES, setting the cache variable VAR accordingly.
1761 ac_fn_c_check_header_compile ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $4
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_header_compile
1787
1788 # ac_fn_c_try_link LINENO
1789 # -----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_link ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 test -x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_link
1833
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1849 #define $2 innocuous_$2
1850
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $2 (); below.
1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854 <limits.h> exists even on freestanding compilers. */
1855
1856 #ifdef __STDC__
1857 # include <limits.h>
1858 #else
1859 # include <assert.h>
1860 #endif
1861
1862 #undef $2
1863
1864 /* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1867 #ifdef __cplusplus
1868 extern "C"
1869 #endif
1870 char $2 ();
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined __stub_$2 || defined __stub___$2
1875 choke me
1876 #endif
1877
1878 int
1879 main ()
1880 {
1881 return $2 ();
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_link "$LINENO"; then :
1887 eval "$3=yes"
1888 else
1889 eval "$3=no"
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext \
1892 conftest$ac_exeext conftest.$ac_ext
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_func
1900
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1905 # accordingly.
1906 ac_fn_c_check_header_mongrel ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if eval \${$3+:} false; then :
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 else
1919 # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_header_compiler=yes
1929 else
1930 ac_header_compiler=no
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1935
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944 ac_header_preproc=yes
1945 else
1946 ac_header_preproc=no
1947 fi
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1951
1952 # So? What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 yes:no: )
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 ;;
1960 no:yes:* )
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 ( $as_echo "## ---------------------------------------------------------------------- ##
1972 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1973 ## ---------------------------------------------------------------------- ##"
1974 ) | sed "s/^/$as_me: WARNING: /" >&2
1975 ;;
1976 esac
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 eval "$3=\$ac_header_compiler"
1983 fi
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 fi
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_header_mongrel
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1994
1995 It was created by xf86-video-r128 $as_me 6.9.2, which was
1996 generated by GNU Autoconf 2.69. Invocation command line was
1997
1998 $ $0 $@
1999
2000 _ACEOF
2001 exec 5>>config.log
2002 {
2003 cat <<_ASUNAME
2004 ## --------- ##
2005 ## Platform. ##
2006 ## --------- ##
2007
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2024
2025 _ASUNAME
2026
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 $as_echo "PATH: $as_dir"
2033 done
2034 IFS=$as_save_IFS
2035
2036 } >&5
2037
2038 cat >&5 <<_ACEOF
2039
2040
2041 ## ----------- ##
2042 ## Core tests. ##
2043 ## ----------- ##
2044
2045 _ACEOF
2046
2047
2048 # Keep a trace of the command line.
2049 # Strip out --no-create and --no-recursion so they do not pile up.
2050 # Strip out --silent because we don't want to record it for future runs.
2051 # Also quote any args containing shell meta-characters.
2052 # Make two passes to allow for proper duplicate-argument suppression.
2053 ac_configure_args=
2054 ac_configure_args0=
2055 ac_configure_args1=
2056 ac_must_keep_next=false
2057 for ac_pass in 1 2
2058 do
2059 for ac_arg
2060 do
2061 case $ac_arg in
2062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064 | -silent | --silent | --silen | --sile | --sil)
2065 continue ;;
2066 *\'*)
2067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 esac
2069 case $ac_pass in
2070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 2)
2072 as_fn_append ac_configure_args1 " '$ac_arg'"
2073 if test $ac_must_keep_next = true; then
2074 ac_must_keep_next=false # Got value, back to normal.
2075 else
2076 case $ac_arg in
2077 *=* | --config-cache | -C | -disable-* | --disable-* \
2078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080 | -with-* | --with-* | -without-* | --without-* | --x)
2081 case "$ac_configure_args0 " in
2082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2083 esac
2084 ;;
2085 -* ) ac_must_keep_next=true ;;
2086 esac
2087 fi
2088 as_fn_append ac_configure_args " '$ac_arg'"
2089 ;;
2090 esac
2091 done
2092 done
2093 { ac_configure_args0=; unset ac_configure_args0;}
2094 { ac_configure_args1=; unset ac_configure_args1;}
2095
2096 # When interrupted or exit'd, cleanup temporary files, and complete
2097 # config.log. We remove comments because anyway the quotes in there
2098 # would cause problems or look ugly.
2099 # WARNING: Use '\'' to represent an apostrophe within the trap.
2100 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101 trap 'exit_status=$?
2102 # Save into config.log some information that might help in debugging.
2103 {
2104 echo
2105
2106 $as_echo "## ---------------- ##
2107 ## Cache variables. ##
2108 ## ---------------- ##"
2109 echo
2110 # The following way of writing the cache mishandles newlines in values,
2111 (
2112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in #(
2115 *${as_nl}*)
2116 case $ac_var in #(
2117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2119 esac
2120 case $ac_var in #(
2121 _ | IFS | as_nl) ;; #(
2122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2123 *) { eval $ac_var=; unset $ac_var;} ;;
2124 esac ;;
2125 esac
2126 done
2127 (set) 2>&1 |
2128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2129 *${as_nl}ac_space=\ *)
2130 sed -n \
2131 "s/'\''/'\''\\\\'\'''\''/g;
2132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2133 ;; #(
2134 *)
2135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2136 ;;
2137 esac |
2138 sort
2139 )
2140 echo
2141
2142 $as_echo "## ----------------- ##
2143 ## Output variables. ##
2144 ## ----------------- ##"
2145 echo
2146 for ac_var in $ac_subst_vars
2147 do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2155
2156 if test -n "$ac_subst_files"; then
2157 $as_echo "## ------------------- ##
2158 ## File substitutions. ##
2159 ## ------------------- ##"
2160 echo
2161 for ac_var in $ac_subst_files
2162 do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
2168 done | sort
2169 echo
2170 fi
2171
2172 if test -s confdefs.h; then
2173 $as_echo "## ----------- ##
2174 ## confdefs.h. ##
2175 ## ----------- ##"
2176 echo
2177 cat confdefs.h
2178 echo
2179 fi
2180 test "$ac_signal" != 0 &&
2181 $as_echo "$as_me: caught signal $ac_signal"
2182 $as_echo "$as_me: exit $exit_status"
2183 } >&5
2184 rm -f core *.core core.conftest.* &&
2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186 exit $exit_status
2187 ' 0
2188 for ac_signal in 1 2 13 15; do
2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190 done
2191 ac_signal=0
2192
2193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2194 rm -f -r conftest* confdefs.h
2195
2196 $as_echo "/* confdefs.h */" > confdefs.h
2197
2198 # Predefined preprocessor variables.
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_NAME "$PACKAGE_NAME"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_STRING "$PACKAGE_STRING"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_URL "$PACKAGE_URL"
2222 _ACEOF
2223
2224
2225 # Let the site file select an alternate cache file if it wants to.
2226 # Prefer an explicitly selected file to automatically selected ones.
2227 ac_site_file1=NONE
2228 ac_site_file2=NONE
2229 if test -n "$CONFIG_SITE"; then
2230 # We do not want a PATH search for config.site.
2231 case $CONFIG_SITE in #((
2232 -*) ac_site_file1=./$CONFIG_SITE;;
2233 */*) ac_site_file1=$CONFIG_SITE;;
2234 *) ac_site_file1=./$CONFIG_SITE;;
2235 esac
2236 elif test "x$prefix" != xNONE; then
2237 ac_site_file1=$prefix/share/config.site
2238 ac_site_file2=$prefix/etc/config.site
2239 else
2240 ac_site_file1=$ac_default_prefix/share/config.site
2241 ac_site_file2=$ac_default_prefix/etc/config.site
2242 fi
2243 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244 do
2245 test "x$ac_site_file" = xNONE && continue
2246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2249 sed 's/^/| /' "$ac_site_file" >&5
2250 . "$ac_site_file" \
2251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 as_fn_error $? "failed to load site script $ac_site_file
2254 See \`config.log' for more details" "$LINENO" 5; }
2255 fi
2256 done
2257
2258 if test -r "$cache_file"; then
2259 # Some versions of bash will fail to source /dev/null (special files
2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263 $as_echo "$as_me: loading cache $cache_file" >&6;}
2264 case $cache_file in
2265 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266 *) . "./$cache_file";;
2267 esac
2268 fi
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271 $as_echo "$as_me: creating cache $cache_file" >&6;}
2272 >$cache_file
2273 fi
2274
2275 # Check that the precious variables saved in the cache have kept the same
2276 # value.
2277 ac_cache_corrupted=false
2278 for ac_var in $ac_precious_vars; do
2279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2280 eval ac_new_set=\$ac_env_${ac_var}_set
2281 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2282 eval ac_new_val=\$ac_env_${ac_var}_value
2283 case $ac_old_set,$ac_new_set in
2284 set,)
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2286 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2287 ac_cache_corrupted=: ;;
2288 ,set)
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2290 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2292 ,);;
2293 *)
2294 if test "x$ac_old_val" != "x$ac_new_val"; then
2295 # differences in whitespace do not lead to failure.
2296 ac_old_val_w=`echo x $ac_old_val`
2297 ac_new_val_w=`echo x $ac_new_val`
2298 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2300 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2301 ac_cache_corrupted=:
2302 else
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2304 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2305 eval $ac_var=\$ac_old_val
2306 fi
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2308 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2310 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2311 fi;;
2312 esac
2313 # Pass precious variables to config.status.
2314 if test "$ac_new_set" = set; then
2315 case $ac_new_val in
2316 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2317 *) ac_arg=$ac_var=$ac_new_val ;;
2318 esac
2319 case " $ac_configure_args " in
2320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2321 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2322 esac
2323 fi
2324 done
2325 if $ac_cache_corrupted; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2329 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2330 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2331 fi
2332 ## -------------------- ##
2333 ## Main body of script. ##
2334 ## -------------------- ##
2335
2336 ac_ext=c
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2342
2343
2344 ac_config_headers="$ac_config_headers config.h"
2345
2346 ac_aux_dir=
2347 for ac_dir in . "$srcdir"/.; do
2348 if test -f "$ac_dir/install-sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install-sh -c"
2351 break
2352 elif test -f "$ac_dir/install.sh"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/install.sh -c"
2355 break
2356 elif test -f "$ac_dir/shtool"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/shtool install -c"
2359 break
2360 fi
2361 done
2362 if test -z "$ac_aux_dir"; then
2363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2364 fi
2365
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2373
2374
2375
2376 # Initialize Automake
2377 am__api_version='1.11'
2378
2379 # Find a good install program. We prefer a C program (faster),
2380 # so one script is as good as another. But avoid the broken or
2381 # incompatible versions:
2382 # SysV /etc/install, /usr/sbin/install
2383 # SunOS /usr/etc/install
2384 # IRIX /sbin/install
2385 # AIX /bin/install
2386 # AmigaOS /C/install, which installs bootblocks on floppy discs
2387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2390 # OS/2's system install, which has a completely different semantic
2391 # ./install, which can be erroneously created by make from ./install.sh.
2392 # Reject install programs that cannot install multiple files.
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2394 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2395 if test -z "$INSTALL"; then
2396 if ${ac_cv_path_install+:} false; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 # Account for people who put trailing slashes in PATH elements.
2405 case $as_dir/ in #((
2406 ./ | .// | /[cC]/* | \
2407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2408 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2409 /usr/ucb/* ) ;;
2410 *)
2411 # OSF1 and SCO ODT 3.0 have their own names for install.
2412 # Don't use installbsd from OSF since it installs stuff as root
2413 # by default.
2414 for ac_prog in ginstall scoinst install; do
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2417 if test $ac_prog = install &&
2418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # AIX install. It has an incompatible calling convention.
2420 :
2421 elif test $ac_prog = install &&
2422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # program-specific install script used by HP pwplus--don't use.
2424 :
2425 else
2426 rm -rf conftest.one conftest.two conftest.dir
2427 echo one > conftest.one
2428 echo two > conftest.two
2429 mkdir conftest.dir
2430 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2431 test -s conftest.one && test -s conftest.two &&
2432 test -s conftest.dir/conftest.one &&
2433 test -s conftest.dir/conftest.two
2434 then
2435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2436 break 3
2437 fi
2438 fi
2439 fi
2440 done
2441 done
2442 ;;
2443 esac
2444
2445 done
2446 IFS=$as_save_IFS
2447
2448 rm -rf conftest.one conftest.two conftest.dir
2449
2450 fi
2451 if test "${ac_cv_path_install+set}" = set; then
2452 INSTALL=$ac_cv_path_install
2453 else
2454 # As a last resort, use the slow shell script. Don't cache a
2455 # value for INSTALL within a source directory, because that will
2456 # break other packages using the cache if that directory is
2457 # removed, or if the value is a relative name.
2458 INSTALL=$ac_install_sh
2459 fi
2460 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2462 $as_echo "$INSTALL" >&6; }
2463
2464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2465 # It thinks the first close brace ends the variable substitution.
2466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2467
2468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2469
2470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2473 $as_echo_n "checking whether build environment is sane... " >&6; }
2474 # Just in case
2475 sleep 1
2476 echo timestamp > conftest.file
2477 # Reject unsafe characters in $srcdir or the absolute working directory
2478 # name. Accept space and tab only in the latter.
2479 am_lf='
2480 '
2481 case `pwd` in
2482 *[\\\"\#\$\&\'\`$am_lf]*)
2483 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2484 esac
2485 case $srcdir in
2486 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2487 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2488 esac
2489
2490 # Do `set' in a subshell so we don't clobber the current shell's
2491 # arguments. Must try -L first in case configure is actually a
2492 # symlink; some systems play weird games with the mod time of symlinks
2493 # (eg FreeBSD returns the mod time of the symlink's containing
2494 # directory).
2495 if (
2496 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2497 if test "$*" = "X"; then
2498 # -L didn't work.
2499 set X `ls -t "$srcdir/configure" conftest.file`
2500 fi
2501 rm -f conftest.file
2502 if test "$*" != "X $srcdir/configure conftest.file" \
2503 && test "$*" != "X conftest.file $srcdir/configure"; then
2504
2505 # If neither matched, then we have a broken ls. This can happen
2506 # if, for instance, CONFIG_SHELL is bash and it inherits a
2507 # broken ls alias from the environment. This has actually
2508 # happened. Such a system could not be considered "sane".
2509 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2510 alias in your environment" "$LINENO" 5
2511 fi
2512
2513 test "$2" = conftest.file
2514 )
2515 then
2516 # Ok.
2517 :
2518 else
2519 as_fn_error $? "newly created file is older than distributed files!
2520 Check your system clock" "$LINENO" 5
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523 $as_echo "yes" >&6; }
2524 test "$program_prefix" != NONE &&
2525 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2526 # Use a double $ so make ignores it.
2527 test "$program_suffix" != NONE &&
2528 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2529 # Double any \ or $.
2530 # By default was `s,x,x', remove it if useless.
2531 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2532 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533
2534 # expand $ac_aux_dir to an absolute path
2535 am_aux_dir=`cd $ac_aux_dir && pwd`
2536
2537 if test x"${MISSING+set}" != xset; then
2538 case $am_aux_dir in
2539 *\ * | *\ *)
2540 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2541 *)
2542 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2543 esac
2544 fi
2545 # Use eval to expand $SHELL
2546 if eval "$MISSING --run true"; then
2547 am_missing_run="$MISSING --run "
2548 else
2549 am_missing_run=
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2551 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2552 fi
2553
2554 if test x"${install_sh}" != xset; then
2555 case $am_aux_dir in
2556 *\ * | *\ *)
2557 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2558 *)
2559 install_sh="\${SHELL} $am_aux_dir/install-sh"
2560 esac
2561 fi
2562
2563 # Installed binaries are usually stripped using `strip' when the user
2564 # run `make install-strip'. However `strip' might not be the right
2565 # tool to use in cross-compilation environments, therefore Automake
2566 # will honor the `STRIP' environment variable to overrule this program.
2567 if test "$cross_compiling" != no; then
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_STRIP+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$STRIP"; then
2577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 STRIP=$ac_cv_prog_STRIP
2597 if test -n "$STRIP"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2599 $as_echo "$STRIP" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 fi
2607 if test -z "$ac_cv_prog_STRIP"; then
2608 ac_ct_STRIP=$STRIP
2609 # Extract the first word of "strip", so it can be a program name with args.
2610 set dummy strip; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$ac_ct_STRIP"; then
2617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_STRIP="strip"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2637 if test -n "$ac_ct_STRIP"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2639 $as_echo "$ac_ct_STRIP" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645 if test "x$ac_ct_STRIP" = x; then
2646 STRIP=":"
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 STRIP=$ac_ct_STRIP
2655 fi
2656 else
2657 STRIP="$ac_cv_prog_STRIP"
2658 fi
2659
2660 fi
2661 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2664 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2665 if test -z "$MKDIR_P"; then
2666 if ${ac_cv_path_mkdir+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in mkdir gmkdir; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2677 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2678 'mkdir (GNU coreutils) '* | \
2679 'mkdir (coreutils) '* | \
2680 'mkdir (fileutils) '4.1*)
2681 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2682 break 3;;
2683 esac
2684 done
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690
2691 test -d ./--version && rmdir ./--version
2692 if test "${ac_cv_path_mkdir+set}" = set; then
2693 MKDIR_P="$ac_cv_path_mkdir -p"
2694 else
2695 # As a last resort, use the slow shell script. Don't cache a
2696 # value for MKDIR_P within a source directory, because that will
2697 # break other packages using the cache if that directory is
2698 # removed, or if the value is a relative name.
2699 MKDIR_P="$ac_install_sh -d"
2700 fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2703 $as_echo "$MKDIR_P" >&6; }
2704
2705 mkdir_p="$MKDIR_P"
2706 case $mkdir_p in
2707 [\\/$]* | ?:[\\/]*) ;;
2708 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2709 esac
2710
2711 for ac_prog in gawk mawk nawk awk
2712 do
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_AWK+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 if test -n "$AWK"; then
2721 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_AWK="$ac_prog"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 AWK=$ac_cv_prog_AWK
2741 if test -n "$AWK"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2743 $as_echo "$AWK" >&6; }
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750 test -n "$AWK" && break
2751 done
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755 set x ${MAKE-make}
2756 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 cat >conftest.make <<\_ACEOF
2761 SHELL = /bin/sh
2762 all:
2763 @echo '@@@%%%=$(MAKE)=@@@%%%'
2764 _ACEOF
2765 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2767 *@@@%%%=?*=@@@%%%*)
2768 eval ac_cv_prog_make_${ac_make}_set=yes;;
2769 *)
2770 eval ac_cv_prog_make_${ac_make}_set=no;;
2771 esac
2772 rm -f conftest.make
2773 fi
2774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776 $as_echo "yes" >&6; }
2777 SET_MAKE=
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 SET_MAKE="MAKE=${MAKE-make}"
2782 fi
2783
2784 rm -rf .tst 2>/dev/null
2785 mkdir .tst 2>/dev/null
2786 if test -d .tst; then
2787 am__leading_dot=.
2788 else
2789 am__leading_dot=_
2790 fi
2791 rmdir .tst 2>/dev/null
2792
2793 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2794 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2795 # is not polluted with repeated "-I."
2796 am__isrc=' -I$(srcdir)'
2797 # test to see if srcdir already configured
2798 if test -f $srcdir/config.status; then
2799 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800 fi
2801 fi
2802
2803 # test whether we have cygpath
2804 if test -z "$CYGPATH_W"; then
2805 if (cygpath --version) >/dev/null 2>/dev/null; then
2806 CYGPATH_W='cygpath -w'
2807 else
2808 CYGPATH_W=echo
2809 fi
2810 fi
2811
2812
2813 # Define the identity of the package.
2814 PACKAGE='xf86-video-r128'
2815 VERSION='6.9.2'
2816
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2820 _ACEOF
2821
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2825 _ACEOF
2826
2827 # Some tools Automake needs.
2828
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830
2831
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833
2834
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836
2837
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839
2840
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2842
2843 # We need awk for the "check" target. The system "awk" is bad on
2844 # some platforms.
2845 # Always define AMTAR for backward compatibility. Yes, it's still used
2846 # in the wild :-( We should find a proper way to deprecate it ...
2847 AMTAR='$${TAR-tar}'
2848
2849 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2850
2851
2852
2853
2854
2855
2856 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868 DEPDIR="${am__leading_dot}deps"
2869
2870 ac_config_commands="$ac_config_commands depfiles"
2871
2872
2873 am_make=${MAKE-make}
2874 cat > confinc << 'END'
2875 am__doit:
2876 @echo this is the am__doit target
2877 .PHONY: am__doit
2878 END
2879 # If we don't find an include directive, just comment out the code.
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2881 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2882 am__include="#"
2883 am__quote=
2884 _am_result=none
2885 # First try GNU make style include.
2886 echo "include confinc" > confmf
2887 # Ignore all kinds of additional output from `make'.
2888 case `$am_make -s -f confmf 2> /dev/null` in #(
2889 *the\ am__doit\ target*)
2890 am__include=include
2891 am__quote=
2892 _am_result=GNU
2893 ;;
2894 esac
2895 # Now try BSD make style include.
2896 if test "$am__include" = "#"; then
2897 echo '.include "confinc"' > confmf
2898 case `$am_make -s -f confmf 2> /dev/null` in #(
2899 *the\ am__doit\ target*)
2900 am__include=.include
2901 am__quote="\""
2902 _am_result=BSD
2903 ;;
2904 esac
2905 fi
2906
2907
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2909 $as_echo "$_am_result" >&6; }
2910 rm -f confinc confmf
2911
2912 # Check whether --enable-dependency-tracking was given.
2913 if test "${enable_dependency_tracking+set}" = set; then :
2914 enableval=$enable_dependency_tracking;
2915 fi
2916
2917 if test "x$enable_dependency_tracking" != xno; then
2918 am_depcomp="$ac_aux_dir/depcomp"
2919 AMDEPBACKSLASH='\'
2920 am__nodep='_no'
2921 fi
2922 if test "x$enable_dependency_tracking" != xno; then
2923 AMDEP_TRUE=
2924 AMDEP_FALSE='#'
2925 else
2926 AMDEP_TRUE='#'
2927 AMDEP_FALSE=
2928 fi
2929
2930
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$ac_cv_prog_CC"; then
2976 ac_ct_CC=$CC
2977 # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_CC="gcc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007 $as_echo "$ac_ct_CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 CC=$ac_ct_CC
3023 fi
3024 else
3025 CC="$ac_cv_prog_CC"
3026 fi
3027
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 fi
3068 fi
3069 if test -z "$CC"; then
3070 # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 ac_prog_rejected=no
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089 ac_prog_rejected=yes
3090 continue
3091 fi
3092 ac_cv_prog_CC="cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 if test $ac_prog_rejected = yes; then
3101 # We found a bogon in the path, so make sure we never use it.
3102 set dummy $ac_cv_prog_CC
3103 shift
3104 if test $# != 0; then
3105 # We chose a different compiler from the bogus one.
3106 # However, it has the same basename, so the bogon will be chosen
3107 # first if we set CC to just the basename; use the full file name.
3108 shift
3109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110 fi
3111 fi
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124 fi
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in cl.exe
3128 do
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166 test -n "$CC" && break
3167 done
3168 fi
3169 if test -z "$CC"; then
3170 ac_ct_CC=$CC
3171 for ac_prog in cl.exe
3172 do
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210 test -n "$ac_ct_CC" && break
3211 done
3212
3213 if test "x$ac_ct_CC" = x; then
3214 CC=""
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 CC=$ac_ct_CC
3223 fi
3224 fi
3225
3226 fi
3227
3228
3229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details" "$LINENO" 5; }
3233
3234 # Provide some information about the compiler.
3235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3236 set X $ac_compile
3237 ac_compiler=$2
3238 for ac_option in --version -v -V -qversion; do
3239 { { ac_try="$ac_compiler $ac_option >&5"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247 ac_status=$?
3248 if test -s conftest.err; then
3249 sed '10a\
3250 ... rest of stderr output deleted ...
3251 10q' conftest.err >conftest.er1
3252 cat conftest.er1 >&5
3253 fi
3254 rm -f conftest.er1 conftest.err
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 done
3258
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3261
3262 int
3263 main ()
3264 {
3265
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 ac_clean_files_save=$ac_clean_files
3271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3272 # Try to create an executable without -o first, disregard a.out.
3273 # It will help us diagnose broken compilers, and finding out an intuition
3274 # of exeext.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276 $as_echo_n "checking whether the C compiler works... " >&6; }
3277 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3278
3279 # The possible output files:
3280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3281
3282 ac_rmfiles=
3283 for ac_file in $ac_files
3284 do
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288 esac
3289 done
3290 rm -f $ac_rmfiles
3291
3292 if { { ac_try="$ac_link_default"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link_default") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3306 # so that the user can short-circuit this test for compilers unknown to
3307 # Autoconf.
3308 for ac_file in $ac_files ''
3309 do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3313 ;;
3314 [ab].out )
3315 # We found the default executable, but exeext='' is most
3316 # certainly right.
3317 break;;
3318 *.* )
3319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320 then :; else
3321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 fi
3323 # We set ac_cv_exeext here because the later test for it is not
3324 # safe: cross compilers may not add the suffix if given an `-o'
3325 # argument, so we may need to know it at that point already.
3326 # Even if this section looks crufty: it has the advantage of
3327 # actually working.
3328 break;;
3329 * )
3330 break;;
3331 esac
3332 done
3333 test "$ac_cv_exeext" = no && ac_cv_exeext=
3334
3335 else
3336 ac_file=''
3337 fi
3338 if test -z "$ac_file"; then :
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error 77 "C compiler cannot create executables
3347 See \`config.log' for more details" "$LINENO" 5; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353 $as_echo_n "checking for C compiler default output file name... " >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355 $as_echo "$ac_file" >&6; }
3356 ac_exeext=$ac_cv_exeext
3357
3358 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3361 $as_echo_n "checking for suffix of executables... " >&6; }
3362 if { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3375 # work properly (i.e., refer to `conftest.exe'), while it won't with
3376 # `rm'.
3377 for ac_file in conftest.exe conftest conftest.*; do
3378 test -f "$ac_file" || continue
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 break;;
3383 * ) break;;
3384 esac
3385 done
3386 else
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390 See \`config.log' for more details" "$LINENO" 5; }
3391 fi
3392 rm -f conftest conftest$ac_cv_exeext
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3394 $as_echo "$ac_cv_exeext" >&6; }
3395
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3398 ac_exeext=$EXEEXT
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401 #include <stdio.h>
3402 int
3403 main ()
3404 {
3405 FILE *f = fopen ("conftest.out", "w");
3406 return ferror (f) || fclose (f) != 0;
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 ac_clean_files="$ac_clean_files conftest.out"
3413 # Check that the compiler produces executables we can run. If not, either
3414 # the compiler is broken, or we cross compile.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416 $as_echo_n "checking whether we are cross compiling... " >&6; }
3417 if test "$cross_compiling" != yes; then
3418 { { ac_try="$ac_link"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429 if { ac_try='./conftest$ac_cv_exeext'
3430 { { case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_try") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; }; then
3440 cross_compiling=no
3441 else
3442 if test "$cross_compiling" = maybe; then
3443 cross_compiling=yes
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot run C compiled programs.
3448 If you meant to cross compile, use \`--host'.
3449 See \`config.log' for more details" "$LINENO" 5; }
3450 fi
3451 fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454 $as_echo "$cross_compiling" >&6; }
3455
3456 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if ${ac_cv_objext+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compile") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 break;;
3492 esac
3493 done
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details" "$LINENO" 5; }
3502 fi
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 fi
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3508 ac_objext=$OBJEXT
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if ${ac_cv_c_compiler_gnu+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516
3517 int
3518 main ()
3519 {
3520 #ifndef __GNUC__
3521 choke me
3522 #endif
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_compiler_gnu=yes
3530 else
3531 ac_compiler_gnu=no
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3540 GCC=yes
3541 else
3542 GCC=
3543 fi
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if ${ac_cv_prog_cc_g+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3553 ac_cv_prog_cc_g=no
3554 CFLAGS="-g"
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567 ac_cv_prog_cc_g=yes
3568 else
3569 CFLAGS=""
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582
3583 else
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3585 CFLAGS="-g"
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588
3589 int
3590 main ()
3591 {
3592
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_prog_cc_g=yes
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610 CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3613 CFLAGS="-g -O2"
3614 else
3615 CFLAGS="-g"
3616 fi
3617 else
3618 if test "$GCC" = yes; then
3619 CFLAGS="-O2"
3620 else
3621 CFLAGS=
3622 fi
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if ${ac_cv_prog_cc_c89+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 ac_cv_prog_cc_c89=no
3630 ac_save_CC=$CC
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <stdarg.h>
3634 #include <stdio.h>
3635 struct stat;
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3640 char **p;
3641 int i;
3642 {
3643 return p[i];
3644 }
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3646 {
3647 char *s;
3648 va_list v;
3649 va_start (v,p);
3650 s = g (p, va_arg (v,int));
3651 va_end (v);
3652 return s;
3653 }
3654
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3666 #define FOO(x) 'x'
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 int argc;
3674 char **argv;
3675 int
3676 main ()
3677 {
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685 do
3686 CC="$ac_save_CC $ac_arg"
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_c89=$ac_arg
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 done
3693 rm -f conftest.$ac_ext
3694 CC=$ac_save_CC
3695
3696 fi
3697 # AC_CACHE_VAL
3698 case "x$ac_cv_prog_cc_c89" in
3699 x)
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3702 xno)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3705 *)
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709 esac
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3711
3712 fi
3713
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720 depcc="$CC" am_compiler_list=
3721
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3723 $as_echo_n "checking dependency style of $depcc... " >&6; }
3724 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3728 # We make a subdir and do the tests there. Otherwise we can end up
3729 # making bogus files that we don't know about and never remove. For
3730 # instance it was reported that on HP-UX the gcc test will end up
3731 # making a dummy file named `D' -- because `-MD' means `put the output
3732 # in D'.
3733 rm -rf conftest.dir
3734 mkdir conftest.dir
3735 # Copy depcomp to subdir because otherwise we won't find it if we're
3736 # using a relative directory.
3737 cp "$am_depcomp" conftest.dir
3738 cd conftest.dir
3739 # We will build objects and dependencies in a subdirectory because
3740 # it helps to detect inapplicable dependency modes. For instance
3741 # both Tru64's cc and ICC support -MD to output dependencies as a
3742 # side effect of compilation, but ICC will put the dependencies in
3743 # the current directory while Tru64 will put them in the object
3744 # directory.
3745 mkdir sub
3746
3747 am_cv_CC_dependencies_compiler_type=none
3748 if test "$am_compiler_list" = ""; then
3749 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3750 fi
3751 am__universal=false
3752 case " $depcc " in #(
3753 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3754 esac
3755
3756 for depmode in $am_compiler_list; do
3757 # Setup a source with many dependencies, because some compilers
3758 # like to wrap large dependency lists on column 80 (with \), and
3759 # we should not choose a depcomp mode which is confused by this.
3760 #
3761 # We need to recreate these files for each test, as the compiler may
3762 # overwrite some of them when testing with obscure command lines.
3763 # This happens at least with the AIX C compiler.
3764 : > sub/conftest.c
3765 for i in 1 2 3 4 5 6; do
3766 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3767 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3768 # Solaris 8's {/usr,}/bin/sh.
3769 touch sub/conftst$i.h
3770 done
3771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3772
3773 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3774 # mode. It turns out that the SunPro C++ compiler does not properly
3775 # handle `-M -o', and we need to detect this. Also, some Intel
3776 # versions had trouble with output in subdirs
3777 am__obj=sub/conftest.${OBJEXT-o}
3778 am__minus_obj="-o $am__obj"
3779 case $depmode in
3780 gcc)
3781 # This depmode causes a compiler race in universal mode.
3782 test "$am__universal" = false || continue
3783 ;;
3784 nosideeffect)
3785 # after this tag, mechanisms are not by side-effect, so they'll
3786 # only be used when explicitly requested
3787 if test "x$enable_dependency_tracking" = xyes; then
3788 continue
3789 else
3790 break
3791 fi
3792 ;;
3793 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3794 # This compiler won't grok `-c -o', but also, the minuso test has
3795 # not run yet. These depmodes are late enough in the game, and
3796 # so weak that their functioning should not be impacted.
3797 am__obj=conftest.${OBJEXT-o}
3798 am__minus_obj=
3799 ;;
3800 none) break ;;
3801 esac
3802 if depmode=$depmode \
3803 source=sub/conftest.c object=$am__obj \
3804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3805 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3806 >/dev/null 2>conftest.err &&
3807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3809 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3811 # icc doesn't choke on unknown options, it will just issue warnings
3812 # or remarks (even with -Werror). So we grep stderr for any message
3813 # that says an option was ignored or not supported.
3814 # When given -MP, icc 7.0 and 7.1 complain thusly:
3815 # icc: Command line warning: ignoring option '-M'; no argument required
3816 # The diagnosis changed in icc 8.0:
3817 # icc: Command line remark: option '-MP' not supported
3818 if (grep 'ignoring option' conftest.err ||
3819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3820 am_cv_CC_dependencies_compiler_type=$depmode
3821 break
3822 fi
3823 fi
3824 done
3825
3826 cd ..
3827 rm -rf conftest.dir
3828 else
3829 am_cv_CC_dependencies_compiler_type=none
3830 fi
3831
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3834 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3835 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3836
3837 if
3838 test "x$enable_dependency_tracking" != xno \
3839 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3840 am__fastdepCC_TRUE=
3841 am__fastdepCC_FALSE='#'
3842 else
3843 am__fastdepCC_TRUE='#'
3844 am__fastdepCC_FALSE=
3845 fi
3846
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3849 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3850 if ${ac_cv_prog_cc_c99+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_cv_prog_cc_c99=no
3854 ac_save_CC=$CC
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <stdarg.h>
3858 #include <stdbool.h>
3859 #include <stdlib.h>
3860 #include <wchar.h>
3861 #include <stdio.h>
3862
3863 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3864 #define debug(...) fprintf (stderr, __VA_ARGS__)
3865 #define showlist(...) puts (#__VA_ARGS__)
3866 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3867 static void
3868 test_varargs_macros (void)
3869 {
3870 int x = 1234;
3871 int y = 5678;
3872 debug ("Flag");
3873 debug ("X = %d\n", x);
3874 showlist (The first, second, and third items.);
3875 report (x>y, "x is %d but y is %d", x, y);
3876 }
3877
3878 // Check long long types.
3879 #define BIG64 18446744073709551615ull
3880 #define BIG32 4294967295ul
3881 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3882 #if !BIG_OK
3883 your preprocessor is broken;
3884 #endif
3885 #if BIG_OK
3886 #else
3887 your preprocessor is broken;
3888 #endif
3889 static long long int bignum = -9223372036854775807LL;
3890 static unsigned long long int ubignum = BIG64;
3891
3892 struct incomplete_array
3893 {
3894 int datasize;
3895 double data[];
3896 };
3897
3898 struct named_init {
3899 int number;
3900 const wchar_t *name;
3901 double average;
3902 };
3903
3904 typedef const char *ccp;
3905
3906 static inline int
3907 test_restrict (ccp restrict text)
3908 {
3909 // See if C++-style comments work.
3910 // Iterate through items via the restricted pointer.
3911 // Also check for declarations in for loops.
3912 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3913 continue;
3914 return 0;
3915 }
3916
3917 // Check varargs and va_copy.
3918 static void
3919 test_varargs (const char *format, ...)
3920 {
3921 va_list args;
3922 va_start (args, format);
3923 va_list args_copy;
3924 va_copy (args_copy, args);
3925
3926 const char *str;
3927 int number;
3928 float fnumber;
3929
3930 while (*format)
3931 {
3932 switch (*format++)
3933 {
3934 case 's': // string
3935 str = va_arg (args_copy, const char *);
3936 break;
3937 case 'd': // int
3938 number = va_arg (args_copy, int);
3939 break;
3940 case 'f': // float
3941 fnumber = va_arg (args_copy, double);
3942 break;
3943 default:
3944 break;
3945 }
3946 }
3947 va_end (args_copy);
3948 va_end (args);
3949 }
3950
3951 int
3952 main ()
3953 {
3954
3955 // Check bool.
3956 _Bool success = false;
3957
3958 // Check restrict.
3959 if (test_restrict ("String literal") == 0)
3960 success = true;
3961 char *restrict newvar = "Another string";
3962
3963 // Check varargs.
3964 test_varargs ("s, d' f .", "string", 65, 34.234);
3965 test_varargs_macros ();
3966
3967 // Check flexible array members.
3968 struct incomplete_array *ia =
3969 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3970 ia->datasize = 10;
3971 for (int i = 0; i < ia->datasize; ++i)
3972 ia->data[i] = i * 1.234;
3973
3974 // Check named initializers.
3975 struct named_init ni = {
3976 .number = 34,
3977 .name = L"Test wide string",
3978 .average = 543.34343,
3979 };
3980
3981 ni.number = 58;
3982
3983 int dynamic_array[ni.number];
3984 dynamic_array[ni.number - 1] = 543;
3985
3986 // work around unused variable warnings
3987 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3988 || dynamic_array[ni.number - 1] != 543);
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3995 do
3996 CC="$ac_save_CC $ac_arg"
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_prog_cc_c99=$ac_arg
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext
4001 test "x$ac_cv_prog_cc_c99" != "xno" && break
4002 done
4003 rm -f conftest.$ac_ext
4004 CC=$ac_save_CC
4005
4006 fi
4007 # AC_CACHE_VAL
4008 case "x$ac_cv_prog_cc_c99" in
4009 x)
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4011 $as_echo "none needed" >&6; } ;;
4012 xno)
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4014 $as_echo "unsupported" >&6; } ;;
4015 *)
4016 CC="$CC $ac_cv_prog_cc_c99"
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4018 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4019 esac
4020 if test "x$ac_cv_prog_cc_c99" != xno; then :
4021
4022 fi
4023
4024
4025
4026 ac_ext=c
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4033 # On Suns, sometimes $CPP names a directory.
4034 if test -n "$CPP" && test -d "$CPP"; then
4035 CPP=
4036 fi
4037 if test -z "$CPP"; then
4038 if ${ac_cv_prog_CPP+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 # Double quotes because CPP needs to be expanded
4042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4043 do
4044 ac_preproc_ok=false
4045 for ac_c_preproc_warn_flag in '' yes
4046 do
4047 # Use a header file that comes with gcc, so configuring glibc
4048 # with a fresh cross-compiler works.
4049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4050 # <limits.h> exists even on freestanding compilers.
4051 # On the NeXT, cc -E runs the code through the compiler's parser,
4052 # not just through cpp. "Syntax error" is here to catch this case.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #ifdef __STDC__
4056 # include <limits.h>
4057 #else
4058 # include <assert.h>
4059 #endif
4060 Syntax error
4061 _ACEOF
4062 if ac_fn_c_try_cpp "$LINENO"; then :
4063
4064 else
4065 # Broken: fails on valid input.
4066 continue
4067 fi
4068 rm -f conftest.err conftest.i conftest.$ac_ext
4069
4070 # OK, works on sane cases. Now check whether nonexistent headers
4071 # can be detected and how.
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074 #include <ac_nonexistent.h>
4075 _ACEOF
4076 if ac_fn_c_try_cpp "$LINENO"; then :
4077 # Broken: success on invalid input.
4078 continue
4079 else
4080 # Passes both tests.
4081 ac_preproc_ok=:
4082 break
4083 fi
4084 rm -f conftest.err conftest.i conftest.$ac_ext
4085
4086 done
4087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4088 rm -f conftest.i conftest.err conftest.$ac_ext
4089 if $ac_preproc_ok; then :
4090 break
4091 fi
4092
4093 done
4094 ac_cv_prog_CPP=$CPP
4095
4096 fi
4097 CPP=$ac_cv_prog_CPP
4098 else
4099 ac_cv_prog_CPP=$CPP
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4102 $as_echo "$CPP" >&6; }
4103 ac_preproc_ok=false
4104 for ac_c_preproc_warn_flag in '' yes
4105 do
4106 # Use a header file that comes with gcc, so configuring glibc
4107 # with a fresh cross-compiler works.
4108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 # <limits.h> exists even on freestanding compilers.
4110 # On the NeXT, cc -E runs the code through the compiler's parser,
4111 # not just through cpp. "Syntax error" is here to catch this case.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
4119 Syntax error
4120 _ACEOF
4121 if ac_fn_c_try_cpp "$LINENO"; then :
4122
4123 else
4124 # Broken: fails on valid input.
4125 continue
4126 fi
4127 rm -f conftest.err conftest.i conftest.$ac_ext
4128
4129 # OK, works on sane cases. Now check whether nonexistent headers
4130 # can be detected and how.
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133 #include <ac_nonexistent.h>
4134 _ACEOF
4135 if ac_fn_c_try_cpp "$LINENO"; then :
4136 # Broken: success on invalid input.
4137 continue
4138 else
4139 # Passes both tests.
4140 ac_preproc_ok=:
4141 break
4142 fi
4143 rm -f conftest.err conftest.i conftest.$ac_ext
4144
4145 done
4146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4147 rm -f conftest.i conftest.err conftest.$ac_ext
4148 if $ac_preproc_ok; then :
4149
4150 else
4151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4153 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4154 See \`config.log' for more details" "$LINENO" 5; }
4155 fi
4156
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4166 if ${ac_cv_path_GREP+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -z "$GREP"; then
4170 ac_path_GREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_prog in grep ggrep; do
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4180 as_fn_executable_p "$ac_path_GREP" || continue
4181 # Check for GNU ac_path_GREP and select it if it is found.
4182 # Check for GNU $ac_path_GREP
4183 case `"$ac_path_GREP" --version 2>&1` in
4184 *GNU*)
4185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4186 *)
4187 ac_count=0
4188 $as_echo_n 0123456789 >"conftest.in"
4189 while :
4190 do
4191 cat "conftest.in" "conftest.in" >"conftest.tmp"
4192 mv "conftest.tmp" "conftest.in"
4193 cp "conftest.in" "conftest.nl"
4194 $as_echo 'GREP' >> "conftest.nl"
4195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197 as_fn_arith $ac_count + 1 && ac_count=$as_val
4198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4199 # Best one so far, save it but keep looking for a better one
4200 ac_cv_path_GREP="$ac_path_GREP"
4201 ac_path_GREP_max=$ac_count
4202 fi
4203 # 10*(2^10) chars as input seems more than enough
4204 test $ac_count -gt 10 && break
4205 done
4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 esac
4208
4209 $ac_path_GREP_found && break 3
4210 done
4211 done
4212 done
4213 IFS=$as_save_IFS
4214 if test -z "$ac_cv_path_GREP"; then
4215 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4216 fi
4217 else
4218 ac_cv_path_GREP=$GREP
4219 fi
4220
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4223 $as_echo "$ac_cv_path_GREP" >&6; }
4224 GREP="$ac_cv_path_GREP"
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4228 $as_echo_n "checking for egrep... " >&6; }
4229 if ${ac_cv_path_EGREP+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4233 then ac_cv_path_EGREP="$GREP -E"
4234 else
4235 if test -z "$EGREP"; then
4236 ac_path_EGREP_found=false
4237 # Loop through the user's path and test for each of PROGNAME-LIST
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_prog in egrep; do
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4246 as_fn_executable_p "$ac_path_EGREP" || continue
4247 # Check for GNU ac_path_EGREP and select it if it is found.
4248 # Check for GNU $ac_path_EGREP
4249 case `"$ac_path_EGREP" --version 2>&1` in
4250 *GNU*)
4251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4252 *)
4253 ac_count=0
4254 $as_echo_n 0123456789 >"conftest.in"
4255 while :
4256 do
4257 cat "conftest.in" "conftest.in" >"conftest.tmp"
4258 mv "conftest.tmp" "conftest.in"
4259 cp "conftest.in" "conftest.nl"
4260 $as_echo 'EGREP' >> "conftest.nl"
4261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263 as_fn_arith $ac_count + 1 && ac_count=$as_val
4264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4265 # Best one so far, save it but keep looking for a better one
4266 ac_cv_path_EGREP="$ac_path_EGREP"
4267 ac_path_EGREP_max=$ac_count
4268 fi
4269 # 10*(2^10) chars as input seems more than enough
4270 test $ac_count -gt 10 && break
4271 done
4272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273 esac
4274
4275 $ac_path_EGREP_found && break 3
4276 done
4277 done
4278 done
4279 IFS=$as_save_IFS
4280 if test -z "$ac_cv_path_EGREP"; then
4281 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4282 fi
4283 else
4284 ac_cv_path_EGREP=$EGREP
4285 fi
4286
4287 fi
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4290 $as_echo "$ac_cv_path_EGREP" >&6; }
4291 EGREP="$ac_cv_path_EGREP"
4292
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4295 $as_echo_n "checking for ANSI C header files... " >&6; }
4296 if ${ac_cv_header_stdc+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <stdlib.h>
4302 #include <stdarg.h>
4303 #include <string.h>
4304 #include <float.h>
4305
4306 int
4307 main ()
4308 {
4309
4310 ;
4311 return 0;
4312 }
4313 _ACEOF
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_header_stdc=yes
4316 else
4317 ac_cv_header_stdc=no
4318 fi
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320
4321 if test $ac_cv_header_stdc = yes; then
4322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <string.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "memchr" >/dev/null 2>&1; then :
4330
4331 else
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <stdlib.h>
4343
4344 _ACEOF
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "free" >/dev/null 2>&1; then :
4347
4348 else
4349 ac_cv_header_stdc=no
4350 fi
4351 rm -f conftest*
4352
4353 fi
4354
4355 if test $ac_cv_header_stdc = yes; then
4356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357 if test "$cross_compiling" = yes; then :
4358 :
4359 else
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 #include <ctype.h>
4363 #include <stdlib.h>
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 #else
4368 # define ISLOWER(c) \
4369 (('a' <= (c) && (c) <= 'i') \
4370 || ('j' <= (c) && (c) <= 'r') \
4371 || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #endif
4374
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376 int
4377 main ()
4378 {
4379 int i;
4380 for (i = 0; i < 256; i++)
4381 if (XOR (islower (i), ISLOWER (i))
4382 || toupper (i) != TOUPPER (i))
4383 return 2;
4384 return 0;
4385 }
4386 _ACEOF
4387 if ac_fn_c_try_run "$LINENO"; then :
4388
4389 else
4390 ac_cv_header_stdc=no
4391 fi
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4393 conftest.$ac_objext conftest.beam conftest.$ac_ext
4394 fi
4395
4396 fi
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4399 $as_echo "$ac_cv_header_stdc" >&6; }
4400 if test $ac_cv_header_stdc = yes; then
4401
4402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4403
4404 fi
4405
4406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4408 inttypes.h stdint.h unistd.h
4409 do :
4410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4412 "
4413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4414 cat >>confdefs.h <<_ACEOF
4415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416 _ACEOF
4417
4418 fi
4419
4420 done
4421
4422
4423
4424
4425
4426
4427 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4428 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4429 CLANGCC="yes"
4430 else
4431 CLANGCC="no"
4432 fi
4433
4434 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4435 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4436 INTELCC="yes"
4437 else
4438 INTELCC="no"
4439 fi
4440
4441 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4442 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4443 SUNCC="yes"
4444 else
4445 SUNCC="no"
4446 fi
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 case $PKG_CONFIG in
4466 [\\/]* | ?:[\\/]*)
4467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4468 ;;
4469 *)
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485 ;;
4486 esac
4487 fi
4488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4489 if test -n "$PKG_CONFIG"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4491 $as_echo "$PKG_CONFIG" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 fi
4496
4497
4498 fi
4499 if test -z "$ac_cv_path_PKG_CONFIG"; then
4500 ac_pt_PKG_CONFIG=$PKG_CONFIG
4501 # Extract the first word of "pkg-config", so it can be a program name with args.
4502 set dummy pkg-config; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 case $ac_pt_PKG_CONFIG in
4509 [\\/]* | ?:[\\/]*)
4510 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4511 ;;
4512 *)
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524 done
4525 done
4526 IFS=$as_save_IFS
4527
4528 ;;
4529 esac
4530 fi
4531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4532 if test -n "$ac_pt_PKG_CONFIG"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4534 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540 if test "x$ac_pt_PKG_CONFIG" = x; then
4541 PKG_CONFIG=""
4542 else
4543 case $cross_compiling:$ac_tool_warned in
4544 yes:)
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4548 esac
4549 PKG_CONFIG=$ac_pt_PKG_CONFIG
4550 fi
4551 else
4552 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4553 fi
4554
4555 fi
4556 if test -n "$PKG_CONFIG"; then
4557 _pkg_min_version=0.9.0
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4559 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4560 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo "yes" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 PKG_CONFIG=""
4567 fi
4568 fi
4569 # Make sure we can run config.sub.
4570 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4571 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4574 $as_echo_n "checking build system type... " >&6; }
4575 if ${ac_cv_build+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 ac_build_alias=$build_alias
4579 test "x$ac_build_alias" = x &&
4580 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4581 test "x$ac_build_alias" = x &&
4582 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4583 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4584 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4585
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4588 $as_echo "$ac_cv_build" >&6; }
4589 case $ac_cv_build in
4590 *-*-*) ;;
4591 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4592 esac
4593 build=$ac_cv_build
4594 ac_save_IFS=$IFS; IFS='-'
4595 set x $ac_cv_build
4596 shift
4597 build_cpu=$1
4598 build_vendor=$2
4599 shift; shift
4600 # Remember, the first character of IFS is used to create $*,
4601 # except with old shells:
4602 build_os=$*
4603 IFS=$ac_save_IFS
4604 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4608 $as_echo_n "checking host system type... " >&6; }
4609 if ${ac_cv_host+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test "x$host_alias" = x; then
4613 ac_cv_host=$ac_cv_build
4614 else
4615 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4616 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4617 fi
4618
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4621 $as_echo "$ac_cv_host" >&6; }
4622 case $ac_cv_host in
4623 *-*-*) ;;
4624 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4625 esac
4626 host=$ac_cv_host
4627 ac_save_IFS=$IFS; IFS='-'
4628 set x $ac_cv_host
4629 shift
4630 host_cpu=$1
4631 host_vendor=$2
4632 shift; shift
4633 # Remember, the first character of IFS is used to create $*,
4634 # except with old shells:
4635 host_os=$*
4636 IFS=$ac_save_IFS
4637 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4642 if ${ac_cv_path_SED+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4646 for ac_i in 1 2 3 4 5 6 7; do
4647 ac_script="$ac_script$as_nl$ac_script"
4648 done
4649 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4650 { ac_script=; unset ac_script;}
4651 if test -z "$SED"; then
4652 ac_path_SED_found=false
4653 # Loop through the user's path and test for each of PROGNAME-LIST
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_prog in sed gsed; do
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4662 as_fn_executable_p "$ac_path_SED" || continue
4663 # Check for GNU ac_path_SED and select it if it is found.
4664 # Check for GNU $ac_path_SED
4665 case `"$ac_path_SED" --version 2>&1` in
4666 *GNU*)
4667 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4668 *)
4669 ac_count=0
4670 $as_echo_n 0123456789 >"conftest.in"
4671 while :
4672 do
4673 cat "conftest.in" "conftest.in" >"conftest.tmp"
4674 mv "conftest.tmp" "conftest.in"
4675 cp "conftest.in" "conftest.nl"
4676 $as_echo '' >> "conftest.nl"
4677 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679 as_fn_arith $ac_count + 1 && ac_count=$as_val
4680 if test $ac_count -gt ${ac_path_SED_max-0}; then
4681 # Best one so far, save it but keep looking for a better one
4682 ac_cv_path_SED="$ac_path_SED"
4683 ac_path_SED_max=$ac_count
4684 fi
4685 # 10*(2^10) chars as input seems more than enough
4686 test $ac_count -gt 10 && break
4687 done
4688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 esac
4690
4691 $ac_path_SED_found && break 3
4692 done
4693 done
4694 done
4695 IFS=$as_save_IFS
4696 if test -z "$ac_cv_path_SED"; then
4697 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4698 fi
4699 else
4700 ac_cv_path_SED=$SED
4701 fi
4702
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4705 $as_echo "$ac_cv_path_SED" >&6; }
4706 SED="$ac_cv_path_SED"
4707 rm -f conftest.sed
4708
4709
4710
4711
4712
4713
4714 # Check whether --enable-selective-werror was given.
4715 if test "${enable_selective_werror+set}" = set; then :
4716 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4717 else
4718 SELECTIVE_WERROR=yes
4719 fi
4720
4721
4722
4723
4724
4725 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4726 if test "x$SUNCC" = "xyes"; then
4727 BASE_CFLAGS="-v"
4728 else
4729 BASE_CFLAGS=""
4730 fi
4731
4732 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 xorg_testset_save_CFLAGS="$CFLAGS"
4747
4748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4751 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4752 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 int i;
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 xorg_cv_cc_flag_unknown_warning_option=yes
4761 else
4762 xorg_cv_cc_flag_unknown_warning_option=no
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4767 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4769 CFLAGS="$xorg_testset_save_CFLAGS"
4770 fi
4771
4772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4775 fi
4776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4778 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4779 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 int i;
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 xorg_cv_cc_flag_unused_command_line_argument=yes
4788 else
4789 xorg_cv_cc_flag_unused_command_line_argument=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4794 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4796 CFLAGS="$xorg_testset_save_CFLAGS"
4797 fi
4798
4799 found="no"
4800
4801 if test $found = "no" ; then
4802 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4804 fi
4805
4806 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4808 fi
4809
4810 CFLAGS="$CFLAGS -Wall"
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4813 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4814 cacheid=xorg_cv_cc_flag__Wall
4815 if eval \${$cacheid+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 int i;
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_c_try_link "$LINENO"; then :
4830 eval $cacheid=yes
4831 else
4832 eval $cacheid=no
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext \
4835 conftest$ac_exeext conftest.$ac_ext
4836 fi
4837
4838
4839 CFLAGS="$xorg_testset_save_CFLAGS"
4840
4841 eval supported=\$$cacheid
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4843 $as_echo "$supported" >&6; }
4844 if test "$supported" = "yes" ; then
4845 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4846 found="yes"
4847 fi
4848 fi
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864 xorg_testset_save_CFLAGS="$CFLAGS"
4865
4866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 int i;
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 xorg_cv_cc_flag_unknown_warning_option=yes
4879 else
4880 xorg_cv_cc_flag_unknown_warning_option=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4888 fi
4889
4890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893 fi
4894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 xorg_cv_cc_flag_unused_command_line_argument=yes
4906 else
4907 xorg_cv_cc_flag_unused_command_line_argument=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4914 CFLAGS="$xorg_testset_save_CFLAGS"
4915 fi
4916
4917 found="no"
4918
4919 if test $found = "no" ; then
4920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922 fi
4923
4924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4926 fi
4927
4928 CFLAGS="$CFLAGS -Wpointer-arith"
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4931 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4932 cacheid=xorg_cv_cc_flag__Wpointer_arith
4933 if eval \${$cacheid+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 int i;
4939 int
4940 main ()
4941 {
4942
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 if ac_fn_c_try_link "$LINENO"; then :
4948 eval $cacheid=yes
4949 else
4950 eval $cacheid=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext \
4953 conftest$ac_exeext conftest.$ac_ext
4954 fi
4955
4956
4957 CFLAGS="$xorg_testset_save_CFLAGS"
4958
4959 eval supported=\$$cacheid
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4961 $as_echo "$supported" >&6; }
4962 if test "$supported" = "yes" ; then
4963 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4964 found="yes"
4965 fi
4966 fi
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 xorg_testset_save_CFLAGS="$CFLAGS"
4983
4984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4987 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4988 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 int i;
4994 _ACEOF
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996 xorg_cv_cc_flag_unknown_warning_option=yes
4997 else
4998 xorg_cv_cc_flag_unknown_warning_option=no
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5003 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5005 CFLAGS="$xorg_testset_save_CFLAGS"
5006 fi
5007
5008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5011 fi
5012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5014 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5015 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 int i;
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 xorg_cv_cc_flag_unused_command_line_argument=yes
5024 else
5025 xorg_cv_cc_flag_unused_command_line_argument=no
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5030 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5032 CFLAGS="$xorg_testset_save_CFLAGS"
5033 fi
5034
5035 found="no"
5036
5037 if test $found = "no" ; then
5038 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040 fi
5041
5042 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5044 fi
5045
5046 CFLAGS="$CFLAGS -Wmissing-declarations"
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5049 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5050 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5051 if eval \${$cacheid+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 int i;
5057 int
5058 main ()
5059 {
5060
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_link "$LINENO"; then :
5066 eval $cacheid=yes
5067 else
5068 eval $cacheid=no
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
5072 fi
5073
5074
5075 CFLAGS="$xorg_testset_save_CFLAGS"
5076
5077 eval supported=\$$cacheid
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5079 $as_echo "$supported" >&6; }
5080 if test "$supported" = "yes" ; then
5081 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5082 found="yes"
5083 fi
5084 fi
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 xorg_testset_save_CFLAGS="$CFLAGS"
5101
5102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 int i;
5112 _ACEOF
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114 xorg_cv_cc_flag_unknown_warning_option=yes
5115 else
5116 xorg_cv_cc_flag_unknown_warning_option=no
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5123 CFLAGS="$xorg_testset_save_CFLAGS"
5124 fi
5125
5126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129 fi
5130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 int i;
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 xorg_cv_cc_flag_unused_command_line_argument=yes
5142 else
5143 xorg_cv_cc_flag_unused_command_line_argument=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5150 CFLAGS="$xorg_testset_save_CFLAGS"
5151 fi
5152
5153 found="no"
5154
5155 if test $found = "no" ; then
5156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158 fi
5159
5160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5162 fi
5163
5164 CFLAGS="$CFLAGS -Wformat=2"
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5167 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5168 cacheid=xorg_cv_cc_flag__Wformat_2
5169 if eval \${$cacheid+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 int i;
5175 int
5176 main ()
5177 {
5178
5179 ;
5180 return 0;
5181 }
5182 _ACEOF
5183 if ac_fn_c_try_link "$LINENO"; then :
5184 eval $cacheid=yes
5185 else
5186 eval $cacheid=no
5187 fi
5188 rm -f core conftest.err conftest.$ac_objext \
5189 conftest$ac_exeext conftest.$ac_ext
5190 fi
5191
5192
5193 CFLAGS="$xorg_testset_save_CFLAGS"
5194
5195 eval supported=\$$cacheid
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5197 $as_echo "$supported" >&6; }
5198 if test "$supported" = "yes" ; then
5199 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5200 found="yes"
5201 fi
5202 fi
5203
5204 if test $found = "no" ; then
5205 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207 fi
5208
5209 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211 fi
5212
5213 CFLAGS="$CFLAGS -Wformat"
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5216 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5217 cacheid=xorg_cv_cc_flag__Wformat
5218 if eval \${$cacheid+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 int i;
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233 eval $cacheid=yes
5234 else
5235 eval $cacheid=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 fi
5240
5241
5242 CFLAGS="$xorg_testset_save_CFLAGS"
5243
5244 eval supported=\$$cacheid
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5246 $as_echo "$supported" >&6; }
5247 if test "$supported" = "yes" ; then
5248 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5249 found="yes"
5250 fi
5251 fi
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269 xorg_testset_save_CFLAGS="$CFLAGS"
5270
5271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5274 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5275 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 int i;
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 xorg_cv_cc_flag_unknown_warning_option=yes
5284 else
5285 xorg_cv_cc_flag_unknown_warning_option=no
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5290 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5292 CFLAGS="$xorg_testset_save_CFLAGS"
5293 fi
5294
5295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 fi
5299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5301 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5302 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 int i;
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 xorg_cv_cc_flag_unused_command_line_argument=yes
5311 else
5312 xorg_cv_cc_flag_unused_command_line_argument=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5317 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320 fi
5321
5322 found="no"
5323
5324 if test $found = "no" ; then
5325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327 fi
5328
5329 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5331 fi
5332
5333 CFLAGS="$CFLAGS -Wstrict-prototypes"
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5336 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5337 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5338 if eval \${$cacheid+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 int i;
5344 int
5345 main ()
5346 {
5347
5348 ;
5349 return 0;
5350 }
5351 _ACEOF
5352 if ac_fn_c_try_link "$LINENO"; then :
5353 eval $cacheid=yes
5354 else
5355 eval $cacheid=no
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext \
5358 conftest$ac_exeext conftest.$ac_ext
5359 fi
5360
5361
5362 CFLAGS="$xorg_testset_save_CFLAGS"
5363
5364 eval supported=\$$cacheid
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5366 $as_echo "$supported" >&6; }
5367 if test "$supported" = "yes" ; then
5368 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5369 found="yes"
5370 fi
5371 fi
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 xorg_testset_save_CFLAGS="$CFLAGS"
5388
5389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 int i;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 xorg_cv_cc_flag_unknown_warning_option=yes
5402 else
5403 xorg_cv_cc_flag_unknown_warning_option=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5410 CFLAGS="$xorg_testset_save_CFLAGS"
5411 fi
5412
5413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416 fi
5417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 xorg_cv_cc_flag_unused_command_line_argument=yes
5429 else
5430 xorg_cv_cc_flag_unused_command_line_argument=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 found="no"
5441
5442 if test $found = "no" ; then
5443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 fi
5446
5447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449 fi
5450
5451 CFLAGS="$CFLAGS -Wmissing-prototypes"
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5454 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5455 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5456 if eval \${$cacheid+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 int
5463 main ()
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_link "$LINENO"; then :
5471 eval $cacheid=yes
5472 else
5473 eval $cacheid=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext \
5476 conftest$ac_exeext conftest.$ac_ext
5477 fi
5478
5479
5480 CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482 eval supported=\$$cacheid
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484 $as_echo "$supported" >&6; }
5485 if test "$supported" = "yes" ; then
5486 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5487 found="yes"
5488 fi
5489 fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 int i;
5517 _ACEOF
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 xorg_cv_cc_flag_unknown_warning_option=yes
5520 else
5521 xorg_cv_cc_flag_unknown_warning_option=no
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 fi
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5528 CFLAGS="$xorg_testset_save_CFLAGS"
5529 fi
5530
5531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534 fi
5535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 int i;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 xorg_cv_cc_flag_unused_command_line_argument=yes
5547 else
5548 xorg_cv_cc_flag_unused_command_line_argument=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 found="no"
5559
5560 if test $found = "no" ; then
5561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 fi
5564
5565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 fi
5568
5569 CFLAGS="$CFLAGS -Wnested-externs"
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5572 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5573 cacheid=xorg_cv_cc_flag__Wnested_externs
5574 if eval \${$cacheid+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 int i;
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 if ac_fn_c_try_link "$LINENO"; then :
5589 eval $cacheid=yes
5590 else
5591 eval $cacheid=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext \
5594 conftest$ac_exeext conftest.$ac_ext
5595 fi
5596
5597
5598 CFLAGS="$xorg_testset_save_CFLAGS"
5599
5600 eval supported=\$$cacheid
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602 $as_echo "$supported" >&6; }
5603 if test "$supported" = "yes" ; then
5604 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5605 found="yes"
5606 fi
5607 fi
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623 xorg_testset_save_CFLAGS="$CFLAGS"
5624
5625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 int i;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 xorg_cv_cc_flag_unknown_warning_option=yes
5638 else
5639 xorg_cv_cc_flag_unknown_warning_option=no
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5646 CFLAGS="$xorg_testset_save_CFLAGS"
5647 fi
5648
5649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652 fi
5653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 xorg_cv_cc_flag_unused_command_line_argument=yes
5665 else
5666 xorg_cv_cc_flag_unused_command_line_argument=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674 fi
5675
5676 found="no"
5677
5678 if test $found = "no" ; then
5679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 fi
5682
5683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685 fi
5686
5687 CFLAGS="$CFLAGS -Wbad-function-cast"
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5690 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5691 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5692 if eval \${$cacheid+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 int i;
5698 int
5699 main ()
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_link "$LINENO"; then :
5707 eval $cacheid=yes
5708 else
5709 eval $cacheid=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713 fi
5714
5715
5716 CFLAGS="$xorg_testset_save_CFLAGS"
5717
5718 eval supported=\$$cacheid
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5720 $as_echo "$supported" >&6; }
5721 if test "$supported" = "yes" ; then
5722 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5723 found="yes"
5724 fi
5725 fi
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 int i;
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755 xorg_cv_cc_flag_unknown_warning_option=yes
5756 else
5757 xorg_cv_cc_flag_unknown_warning_option=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765 fi
5766
5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770 fi
5771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 xorg_cv_cc_flag_unused_command_line_argument=yes
5783 else
5784 xorg_cv_cc_flag_unused_command_line_argument=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5791 CFLAGS="$xorg_testset_save_CFLAGS"
5792 fi
5793
5794 found="no"
5795
5796 if test $found = "no" ; then
5797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799 fi
5800
5801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803 fi
5804
5805 CFLAGS="$CFLAGS -Wold-style-definition"
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5808 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5809 cacheid=xorg_cv_cc_flag__Wold_style_definition
5810 if eval \${$cacheid+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 int
5817 main ()
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_link "$LINENO"; then :
5825 eval $cacheid=yes
5826 else
5827 eval $cacheid=no
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5831 fi
5832
5833
5834 CFLAGS="$xorg_testset_save_CFLAGS"
5835
5836 eval supported=\$$cacheid
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5838 $as_echo "$supported" >&6; }
5839 if test "$supported" = "yes" ; then
5840 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5841 found="yes"
5842 fi
5843 fi
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 xorg_testset_save_CFLAGS="$CFLAGS"
5860
5861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 xorg_cv_cc_flag_unknown_warning_option=yes
5874 else
5875 xorg_cv_cc_flag_unknown_warning_option=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883 fi
5884
5885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 int i;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 xorg_cv_cc_flag_unused_command_line_argument=yes
5901 else
5902 xorg_cv_cc_flag_unused_command_line_argument=no
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5909 CFLAGS="$xorg_testset_save_CFLAGS"
5910 fi
5911
5912 found="no"
5913
5914 if test $found = "no" ; then
5915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917 fi
5918
5919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921 fi
5922
5923 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5926 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5927 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5928 if eval \${$cacheid+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 int i;
5934 int
5935 main ()
5936 {
5937
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_link "$LINENO"; then :
5943 eval $cacheid=yes
5944 else
5945 eval $cacheid=no
5946 fi
5947 rm -f core conftest.err conftest.$ac_objext \
5948 conftest$ac_exeext conftest.$ac_ext
5949 fi
5950
5951
5952 CFLAGS="$xorg_testset_save_CFLAGS"
5953
5954 eval supported=\$$cacheid
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5956 $as_echo "$supported" >&6; }
5957 if test "$supported" = "yes" ; then
5958 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5959 found="yes"
5960 fi
5961 fi
5962
5963
5964
5965
5966
5967 # This chunk adds additional warnings that could catch undesired effects.
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 xorg_testset_save_CFLAGS="$CFLAGS"
5982
5983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"; then :
5995 xorg_cv_cc_flag_unknown_warning_option=yes
5996 else
5997 xorg_cv_cc_flag_unknown_warning_option=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6004 CFLAGS="$xorg_testset_save_CFLAGS"
6005 fi
6006
6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010 fi
6011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 int i;
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 xorg_cv_cc_flag_unused_command_line_argument=yes
6023 else
6024 xorg_cv_cc_flag_unused_command_line_argument=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6031 CFLAGS="$xorg_testset_save_CFLAGS"
6032 fi
6033
6034 found="no"
6035
6036 if test $found = "no" ; then
6037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039 fi
6040
6041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043 fi
6044
6045 CFLAGS="$CFLAGS -Wunused"
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6048 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6049 cacheid=xorg_cv_cc_flag__Wunused
6050 if eval \${$cacheid+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 int i;
6056 int
6057 main ()
6058 {
6059
6060 ;
6061 return 0;
6062 }
6063 _ACEOF
6064 if ac_fn_c_try_link "$LINENO"; then :
6065 eval $cacheid=yes
6066 else
6067 eval $cacheid=no
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6071 fi
6072
6073
6074 CFLAGS="$xorg_testset_save_CFLAGS"
6075
6076 eval supported=\$$cacheid
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6078 $as_echo "$supported" >&6; }
6079 if test "$supported" = "yes" ; then
6080 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6081 found="yes"
6082 fi
6083 fi
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099 xorg_testset_save_CFLAGS="$CFLAGS"
6100
6101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 xorg_cv_cc_flag_unknown_warning_option=yes
6114 else
6115 xorg_cv_cc_flag_unknown_warning_option=no
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6122 CFLAGS="$xorg_testset_save_CFLAGS"
6123 fi
6124
6125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128 fi
6129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 int i;
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 xorg_cv_cc_flag_unused_command_line_argument=yes
6141 else
6142 xorg_cv_cc_flag_unused_command_line_argument=no
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 fi
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6149 CFLAGS="$xorg_testset_save_CFLAGS"
6150 fi
6151
6152 found="no"
6153
6154 if test $found = "no" ; then
6155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157 fi
6158
6159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161 fi
6162
6163 CFLAGS="$CFLAGS -Wuninitialized"
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6166 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6167 cacheid=xorg_cv_cc_flag__Wuninitialized
6168 if eval \${$cacheid+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 int i;
6174 int
6175 main ()
6176 {
6177
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 if ac_fn_c_try_link "$LINENO"; then :
6183 eval $cacheid=yes
6184 else
6185 eval $cacheid=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189 fi
6190
6191
6192 CFLAGS="$xorg_testset_save_CFLAGS"
6193
6194 eval supported=\$$cacheid
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6196 $as_echo "$supported" >&6; }
6197 if test "$supported" = "yes" ; then
6198 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6199 found="yes"
6200 fi
6201 fi
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 xorg_testset_save_CFLAGS="$CFLAGS"
6218
6219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6222 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6223 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231 xorg_cv_cc_flag_unknown_warning_option=yes
6232 else
6233 xorg_cv_cc_flag_unknown_warning_option=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6238 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246 fi
6247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6249 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6250 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 int i;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 xorg_cv_cc_flag_unused_command_line_argument=yes
6259 else
6260 xorg_cv_cc_flag_unused_command_line_argument=no
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6265 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6267 CFLAGS="$xorg_testset_save_CFLAGS"
6268 fi
6269
6270 found="no"
6271
6272 if test $found = "no" ; then
6273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275 fi
6276
6277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6279 fi
6280
6281 CFLAGS="$CFLAGS -Wshadow"
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6284 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6285 cacheid=xorg_cv_cc_flag__Wshadow
6286 if eval \${$cacheid+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 int i;
6292 int
6293 main ()
6294 {
6295
6296 ;
6297 return 0;
6298 }
6299 _ACEOF
6300 if ac_fn_c_try_link "$LINENO"; then :
6301 eval $cacheid=yes
6302 else
6303 eval $cacheid=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 fi
6308
6309
6310 CFLAGS="$xorg_testset_save_CFLAGS"
6311
6312 eval supported=\$$cacheid
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6314 $as_echo "$supported" >&6; }
6315 if test "$supported" = "yes" ; then
6316 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6317 found="yes"
6318 fi
6319 fi
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 xorg_testset_save_CFLAGS="$CFLAGS"
6336
6337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6340 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6341 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 xorg_cv_cc_flag_unknown_warning_option=yes
6350 else
6351 xorg_cv_cc_flag_unknown_warning_option=no
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6356 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6358 CFLAGS="$xorg_testset_save_CFLAGS"
6359 fi
6360
6361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364 fi
6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6367 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6368 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 int i;
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376 xorg_cv_cc_flag_unused_command_line_argument=yes
6377 else
6378 xorg_cv_cc_flag_unused_command_line_argument=no
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6383 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6385 CFLAGS="$xorg_testset_save_CFLAGS"
6386 fi
6387
6388 found="no"
6389
6390 if test $found = "no" ; then
6391 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6393 fi
6394
6395 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6397 fi
6398
6399 CFLAGS="$CFLAGS -Wcast-qual"
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6402 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6403 cacheid=xorg_cv_cc_flag__Wcast_qual
6404 if eval \${$cacheid+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 int i;
6410 int
6411 main ()
6412 {
6413
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_c_try_link "$LINENO"; then :
6419 eval $cacheid=yes
6420 else
6421 eval $cacheid=no
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext \
6424 conftest$ac_exeext conftest.$ac_ext
6425 fi
6426
6427
6428 CFLAGS="$xorg_testset_save_CFLAGS"
6429
6430 eval supported=\$$cacheid
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6432 $as_echo "$supported" >&6; }
6433 if test "$supported" = "yes" ; then
6434 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6435 found="yes"
6436 fi
6437 fi
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 xorg_testset_save_CFLAGS="$CFLAGS"
6454
6455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6458 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6459 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 xorg_cv_cc_flag_unknown_warning_option=yes
6468 else
6469 xorg_cv_cc_flag_unknown_warning_option=no
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6474 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6476 CFLAGS="$xorg_testset_save_CFLAGS"
6477 fi
6478
6479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482 fi
6483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6485 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6486 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 int i;
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 xorg_cv_cc_flag_unused_command_line_argument=yes
6495 else
6496 xorg_cv_cc_flag_unused_command_line_argument=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6501 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6503 CFLAGS="$xorg_testset_save_CFLAGS"
6504 fi
6505
6506 found="no"
6507
6508 if test $found = "no" ; then
6509 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6511 fi
6512
6513 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6515 fi
6516
6517 CFLAGS="$CFLAGS -Wmissing-noreturn"
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6520 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6521 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6522 if eval \${$cacheid+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 int i;
6528 int
6529 main ()
6530 {
6531
6532 ;
6533 return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_link "$LINENO"; then :
6537 eval $cacheid=yes
6538 else
6539 eval $cacheid=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext \
6542 conftest$ac_exeext conftest.$ac_ext
6543 fi
6544
6545
6546 CFLAGS="$xorg_testset_save_CFLAGS"
6547
6548 eval supported=\$$cacheid
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6550 $as_echo "$supported" >&6; }
6551 if test "$supported" = "yes" ; then
6552 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6553 found="yes"
6554 fi
6555 fi
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571 xorg_testset_save_CFLAGS="$CFLAGS"
6572
6573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6577 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 int i;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 xorg_cv_cc_flag_unknown_warning_option=yes
6586 else
6587 xorg_cv_cc_flag_unknown_warning_option=no
6588 fi
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590 fi
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6594 CFLAGS="$xorg_testset_save_CFLAGS"
6595 fi
6596
6597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600 fi
6601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609 int i;
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 xorg_cv_cc_flag_unused_command_line_argument=yes
6613 else
6614 xorg_cv_cc_flag_unused_command_line_argument=no
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 fi
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6621 CFLAGS="$xorg_testset_save_CFLAGS"
6622 fi
6623
6624 found="no"
6625
6626 if test $found = "no" ; then
6627 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629 fi
6630
6631 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6633 fi
6634
6635 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6636
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6638 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6639 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6640 if eval \${$cacheid+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 int i;
6646 int
6647 main ()
6648 {
6649
6650 ;
6651 return 0;
6652 }
6653 _ACEOF
6654 if ac_fn_c_try_link "$LINENO"; then :
6655 eval $cacheid=yes
6656 else
6657 eval $cacheid=no
6658 fi
6659 rm -f core conftest.err conftest.$ac_objext \
6660 conftest$ac_exeext conftest.$ac_ext
6661 fi
6662
6663
6664 CFLAGS="$xorg_testset_save_CFLAGS"
6665
6666 eval supported=\$$cacheid
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6668 $as_echo "$supported" >&6; }
6669 if test "$supported" = "yes" ; then
6670 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6671 found="yes"
6672 fi
6673 fi
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689 xorg_testset_save_CFLAGS="$CFLAGS"
6690
6691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 int i;
6701 _ACEOF
6702 if ac_fn_c_try_compile "$LINENO"; then :
6703 xorg_cv_cc_flag_unknown_warning_option=yes
6704 else
6705 xorg_cv_cc_flag_unknown_warning_option=no
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6712 CFLAGS="$xorg_testset_save_CFLAGS"
6713 fi
6714
6715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 fi
6719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 int i;
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 xorg_cv_cc_flag_unused_command_line_argument=yes
6731 else
6732 xorg_cv_cc_flag_unused_command_line_argument=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 fi
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6739 CFLAGS="$xorg_testset_save_CFLAGS"
6740 fi
6741
6742 found="no"
6743
6744 if test $found = "no" ; then
6745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747 fi
6748
6749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6751 fi
6752
6753 CFLAGS="$CFLAGS -Wredundant-decls"
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6756 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6757 cacheid=xorg_cv_cc_flag__Wredundant_decls
6758 if eval \${$cacheid+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 int i;
6764 int
6765 main ()
6766 {
6767
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 eval $cacheid=yes
6774 else
6775 eval $cacheid=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 fi
6780
6781
6782 CFLAGS="$xorg_testset_save_CFLAGS"
6783
6784 eval supported=\$$cacheid
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6786 $as_echo "$supported" >&6; }
6787 if test "$supported" = "yes" ; then
6788 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6789 found="yes"
6790 fi
6791 fi
6792
6793
6794
6795 # These are currently disabled because they are noisy. They will be enabled
6796 # in the future once the codebase is sufficiently modernized to silence
6797 # them. For now, I don't want them to drown out the other warnings.
6798 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6799 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6800 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6801
6802 # Turn some warnings into errors, so we don't accidently get successful builds
6803 # when there are problems that should be fixed.
6804
6805 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 xorg_testset_save_CFLAGS="$CFLAGS"
6820
6821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 int i;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 xorg_cv_cc_flag_unknown_warning_option=yes
6834 else
6835 xorg_cv_cc_flag_unknown_warning_option=no
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843 fi
6844
6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848 fi
6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 xorg_cv_cc_flag_unused_command_line_argument=yes
6861 else
6862 xorg_cv_cc_flag_unused_command_line_argument=no
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870 fi
6871
6872 found="no"
6873
6874 if test $found = "no" ; then
6875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877 fi
6878
6879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6881 fi
6882
6883 CFLAGS="$CFLAGS -Werror=implicit"
6884
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6886 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6887 cacheid=xorg_cv_cc_flag__Werror_implicit
6888 if eval \${$cacheid+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 int i;
6894 int
6895 main ()
6896 {
6897
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_link "$LINENO"; then :
6903 eval $cacheid=yes
6904 else
6905 eval $cacheid=no
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 fi
6910
6911
6912 CFLAGS="$xorg_testset_save_CFLAGS"
6913
6914 eval supported=\$$cacheid
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6916 $as_echo "$supported" >&6; }
6917 if test "$supported" = "yes" ; then
6918 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6919 found="yes"
6920 fi
6921 fi
6922
6923 if test $found = "no" ; then
6924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926 fi
6927
6928 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6930 fi
6931
6932 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6933
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6935 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6936 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6937 if eval \${$cacheid+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 int i;
6943 int
6944 main ()
6945 {
6946
6947 ;
6948 return 0;
6949 }
6950 _ACEOF
6951 if ac_fn_c_try_link "$LINENO"; then :
6952 eval $cacheid=yes
6953 else
6954 eval $cacheid=no
6955 fi
6956 rm -f core conftest.err conftest.$ac_objext \
6957 conftest$ac_exeext conftest.$ac_ext
6958 fi
6959
6960
6961 CFLAGS="$xorg_testset_save_CFLAGS"
6962
6963 eval supported=\$$cacheid
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6965 $as_echo "$supported" >&6; }
6966 if test "$supported" = "yes" ; then
6967 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6968 found="yes"
6969 fi
6970 fi
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986 xorg_testset_save_CFLAGS="$CFLAGS"
6987
6988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"; then :
7000 xorg_cv_cc_flag_unknown_warning_option=yes
7001 else
7002 xorg_cv_cc_flag_unknown_warning_option=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7009 CFLAGS="$xorg_testset_save_CFLAGS"
7010 fi
7011
7012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015 fi
7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 int i;
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 xorg_cv_cc_flag_unused_command_line_argument=yes
7028 else
7029 xorg_cv_cc_flag_unused_command_line_argument=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7036 CFLAGS="$xorg_testset_save_CFLAGS"
7037 fi
7038
7039 found="no"
7040
7041 if test $found = "no" ; then
7042 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 fi
7045
7046 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7048 fi
7049
7050 CFLAGS="$CFLAGS -Werror=nonnull"
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7053 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7054 cacheid=xorg_cv_cc_flag__Werror_nonnull
7055 if eval \${$cacheid+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 int i;
7061 int
7062 main ()
7063 {
7064
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_link "$LINENO"; then :
7070 eval $cacheid=yes
7071 else
7072 eval $cacheid=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext \
7075 conftest$ac_exeext conftest.$ac_ext
7076 fi
7077
7078
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7080
7081 eval supported=\$$cacheid
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7083 $as_echo "$supported" >&6; }
7084 if test "$supported" = "yes" ; then
7085 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7086 found="yes"
7087 fi
7088 fi
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 xorg_testset_save_CFLAGS="$CFLAGS"
7105
7106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 int i;
7116 _ACEOF
7117 if ac_fn_c_try_compile "$LINENO"; then :
7118 xorg_cv_cc_flag_unknown_warning_option=yes
7119 else
7120 xorg_cv_cc_flag_unknown_warning_option=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7127 CFLAGS="$xorg_testset_save_CFLAGS"
7128 fi
7129
7130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133 fi
7134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 int i;
7143 _ACEOF
7144 if ac_fn_c_try_compile "$LINENO"; then :
7145 xorg_cv_cc_flag_unused_command_line_argument=yes
7146 else
7147 xorg_cv_cc_flag_unused_command_line_argument=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7154 CFLAGS="$xorg_testset_save_CFLAGS"
7155 fi
7156
7157 found="no"
7158
7159 if test $found = "no" ; then
7160 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 fi
7163
7164 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7166 fi
7167
7168 CFLAGS="$CFLAGS -Werror=init-self"
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7171 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7172 cacheid=xorg_cv_cc_flag__Werror_init_self
7173 if eval \${$cacheid+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 int i;
7179 int
7180 main ()
7181 {
7182
7183 ;
7184 return 0;
7185 }
7186 _ACEOF
7187 if ac_fn_c_try_link "$LINENO"; then :
7188 eval $cacheid=yes
7189 else
7190 eval $cacheid=no
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext \
7193 conftest$ac_exeext conftest.$ac_ext
7194 fi
7195
7196
7197 CFLAGS="$xorg_testset_save_CFLAGS"
7198
7199 eval supported=\$$cacheid
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7201 $as_echo "$supported" >&6; }
7202 if test "$supported" = "yes" ; then
7203 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7204 found="yes"
7205 fi
7206 fi
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int i;
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236 xorg_cv_cc_flag_unknown_warning_option=yes
7237 else
7238 xorg_cv_cc_flag_unknown_warning_option=no
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7245 CFLAGS="$xorg_testset_save_CFLAGS"
7246 fi
7247
7248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251 fi
7252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 int i;
7261 _ACEOF
7262 if ac_fn_c_try_compile "$LINENO"; then :
7263 xorg_cv_cc_flag_unused_command_line_argument=yes
7264 else
7265 xorg_cv_cc_flag_unused_command_line_argument=no
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7272 CFLAGS="$xorg_testset_save_CFLAGS"
7273 fi
7274
7275 found="no"
7276
7277 if test $found = "no" ; then
7278 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280 fi
7281
7282 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7284 fi
7285
7286 CFLAGS="$CFLAGS -Werror=main"
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7289 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7290 cacheid=xorg_cv_cc_flag__Werror_main
7291 if eval \${$cacheid+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 int i;
7297 int
7298 main ()
7299 {
7300
7301 ;
7302 return 0;
7303 }
7304 _ACEOF
7305 if ac_fn_c_try_link "$LINENO"; then :
7306 eval $cacheid=yes
7307 else
7308 eval $cacheid=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7312 fi
7313
7314
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316
7317 eval supported=\$$cacheid
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7319 $as_echo "$supported" >&6; }
7320 if test "$supported" = "yes" ; then
7321 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7322 found="yes"
7323 fi
7324 fi
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340 xorg_testset_save_CFLAGS="$CFLAGS"
7341
7342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int i;
7352 _ACEOF
7353 if ac_fn_c_try_compile "$LINENO"; then :
7354 xorg_cv_cc_flag_unknown_warning_option=yes
7355 else
7356 xorg_cv_cc_flag_unknown_warning_option=no
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7363 CFLAGS="$xorg_testset_save_CFLAGS"
7364 fi
7365
7366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7369 fi
7370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378 int i;
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"; then :
7381 xorg_cv_cc_flag_unused_command_line_argument=yes
7382 else
7383 xorg_cv_cc_flag_unused_command_line_argument=no
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 fi
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7390 CFLAGS="$xorg_testset_save_CFLAGS"
7391 fi
7392
7393 found="no"
7394
7395 if test $found = "no" ; then
7396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7398 fi
7399
7400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7402 fi
7403
7404 CFLAGS="$CFLAGS -Werror=missing-braces"
7405
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7407 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7408 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7409 if eval \${$cacheid+:} false; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414 int i;
7415 int
7416 main ()
7417 {
7418
7419 ;
7420 return 0;
7421 }
7422 _ACEOF
7423 if ac_fn_c_try_link "$LINENO"; then :
7424 eval $cacheid=yes
7425 else
7426 eval $cacheid=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext \
7429 conftest$ac_exeext conftest.$ac_ext
7430 fi
7431
7432
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434
7435 eval supported=\$$cacheid
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7437 $as_echo "$supported" >&6; }
7438 if test "$supported" = "yes" ; then
7439 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7440 found="yes"
7441 fi
7442 fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 xorg_testset_save_CFLAGS="$CFLAGS"
7459
7460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 int i;
7470 _ACEOF
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472 xorg_cv_cc_flag_unknown_warning_option=yes
7473 else
7474 xorg_cv_cc_flag_unknown_warning_option=no
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7481 CFLAGS="$xorg_testset_save_CFLAGS"
7482 fi
7483
7484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487 fi
7488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 int i;
7497 _ACEOF
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 xorg_cv_cc_flag_unused_command_line_argument=yes
7500 else
7501 xorg_cv_cc_flag_unused_command_line_argument=no
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7508 CFLAGS="$xorg_testset_save_CFLAGS"
7509 fi
7510
7511 found="no"
7512
7513 if test $found = "no" ; then
7514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516 fi
7517
7518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7520 fi
7521
7522 CFLAGS="$CFLAGS -Werror=sequence-point"
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7525 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7526 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7527 if eval \${$cacheid+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 int i;
7533 int
7534 main ()
7535 {
7536
7537 ;
7538 return 0;
7539 }
7540 _ACEOF
7541 if ac_fn_c_try_link "$LINENO"; then :
7542 eval $cacheid=yes
7543 else
7544 eval $cacheid=no
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext \
7547 conftest$ac_exeext conftest.$ac_ext
7548 fi
7549
7550
7551 CFLAGS="$xorg_testset_save_CFLAGS"
7552
7553 eval supported=\$$cacheid
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7555 $as_echo "$supported" >&6; }
7556 if test "$supported" = "yes" ; then
7557 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7558 found="yes"
7559 fi
7560 fi
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576 xorg_testset_save_CFLAGS="$CFLAGS"
7577
7578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int i;
7588 _ACEOF
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 xorg_cv_cc_flag_unknown_warning_option=yes
7591 else
7592 xorg_cv_cc_flag_unknown_warning_option=no
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7599 CFLAGS="$xorg_testset_save_CFLAGS"
7600 fi
7601
7602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7605 fi
7606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 int i;
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 xorg_cv_cc_flag_unused_command_line_argument=yes
7618 else
7619 xorg_cv_cc_flag_unused_command_line_argument=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7626 CFLAGS="$xorg_testset_save_CFLAGS"
7627 fi
7628
7629 found="no"
7630
7631 if test $found = "no" ; then
7632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7634 fi
7635
7636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7638 fi
7639
7640 CFLAGS="$CFLAGS -Werror=return-type"
7641
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7643 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7644 cacheid=xorg_cv_cc_flag__Werror_return_type
7645 if eval \${$cacheid+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 int i;
7651 int
7652 main ()
7653 {
7654
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 if ac_fn_c_try_link "$LINENO"; then :
7660 eval $cacheid=yes
7661 else
7662 eval $cacheid=no
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext \
7665 conftest$ac_exeext conftest.$ac_ext
7666 fi
7667
7668
7669 CFLAGS="$xorg_testset_save_CFLAGS"
7670
7671 eval supported=\$$cacheid
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7673 $as_echo "$supported" >&6; }
7674 if test "$supported" = "yes" ; then
7675 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7676 found="yes"
7677 fi
7678 fi
7679
7680 if test $found = "no" ; then
7681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683 fi
7684
7685 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687 fi
7688
7689 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7692 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7693 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7694 if eval \${$cacheid+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 int i;
7700 int
7701 main ()
7702 {
7703
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 if ac_fn_c_try_link "$LINENO"; then :
7709 eval $cacheid=yes
7710 else
7711 eval $cacheid=no
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715 fi
7716
7717
7718 CFLAGS="$xorg_testset_save_CFLAGS"
7719
7720 eval supported=\$$cacheid
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7722 $as_echo "$supported" >&6; }
7723 if test "$supported" = "yes" ; then
7724 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7725 found="yes"
7726 fi
7727 fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743 xorg_testset_save_CFLAGS="$CFLAGS"
7744
7745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"; then :
7757 xorg_cv_cc_flag_unknown_warning_option=yes
7758 else
7759 xorg_cv_cc_flag_unknown_warning_option=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767 fi
7768
7769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772 fi
7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 xorg_cv_cc_flag_unused_command_line_argument=yes
7785 else
7786 xorg_cv_cc_flag_unused_command_line_argument=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7793 CFLAGS="$xorg_testset_save_CFLAGS"
7794 fi
7795
7796 found="no"
7797
7798 if test $found = "no" ; then
7799 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801 fi
7802
7803 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7805 fi
7806
7807 CFLAGS="$CFLAGS -Werror=trigraphs"
7808
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7810 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7811 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7812 if eval \${$cacheid+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 int i;
7818 int
7819 main ()
7820 {
7821
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_link "$LINENO"; then :
7827 eval $cacheid=yes
7828 else
7829 eval $cacheid=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7833 fi
7834
7835
7836 CFLAGS="$xorg_testset_save_CFLAGS"
7837
7838 eval supported=\$$cacheid
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7840 $as_echo "$supported" >&6; }
7841 if test "$supported" = "yes" ; then
7842 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7843 found="yes"
7844 fi
7845 fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 xorg_testset_save_CFLAGS="$CFLAGS"
7862
7863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7866 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7867 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"; then :
7875 xorg_cv_cc_flag_unknown_warning_option=yes
7876 else
7877 xorg_cv_cc_flag_unknown_warning_option=no
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7882 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7884 CFLAGS="$xorg_testset_save_CFLAGS"
7885 fi
7886
7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7890 fi
7891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7893 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7894 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 int i;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902 xorg_cv_cc_flag_unused_command_line_argument=yes
7903 else
7904 xorg_cv_cc_flag_unused_command_line_argument=no
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7909 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7911 CFLAGS="$xorg_testset_save_CFLAGS"
7912 fi
7913
7914 found="no"
7915
7916 if test $found = "no" ; then
7917 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919 fi
7920
7921 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7923 fi
7924
7925 CFLAGS="$CFLAGS -Werror=array-bounds"
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7928 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7929 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7930 if eval \${$cacheid+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 int i;
7936 int
7937 main ()
7938 {
7939
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_link "$LINENO"; then :
7945 eval $cacheid=yes
7946 else
7947 eval $cacheid=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 fi
7952
7953
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955
7956 eval supported=\$$cacheid
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7958 $as_echo "$supported" >&6; }
7959 if test "$supported" = "yes" ; then
7960 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7961 found="yes"
7962 fi
7963 fi
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979 xorg_testset_save_CFLAGS="$CFLAGS"
7980
7981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"; then :
7993 xorg_cv_cc_flag_unknown_warning_option=yes
7994 else
7995 xorg_cv_cc_flag_unknown_warning_option=no
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8002 CFLAGS="$xorg_testset_save_CFLAGS"
8003 fi
8004
8005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8008 fi
8009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 int i;
8018 _ACEOF
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020 xorg_cv_cc_flag_unused_command_line_argument=yes
8021 else
8022 xorg_cv_cc_flag_unused_command_line_argument=no
8023 fi
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8029 CFLAGS="$xorg_testset_save_CFLAGS"
8030 fi
8031
8032 found="no"
8033
8034 if test $found = "no" ; then
8035 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 fi
8038
8039 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041 fi
8042
8043 CFLAGS="$CFLAGS -Werror=write-strings"
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8046 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8047 cacheid=xorg_cv_cc_flag__Werror_write_strings
8048 if eval \${$cacheid+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 int i;
8054 int
8055 main ()
8056 {
8057
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 if ac_fn_c_try_link "$LINENO"; then :
8063 eval $cacheid=yes
8064 else
8065 eval $cacheid=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 fi
8070
8071
8072 CFLAGS="$xorg_testset_save_CFLAGS"
8073
8074 eval supported=\$$cacheid
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8076 $as_echo "$supported" >&6; }
8077 if test "$supported" = "yes" ; then
8078 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8079 found="yes"
8080 fi
8081 fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 xorg_testset_save_CFLAGS="$CFLAGS"
8098
8099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8102 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8103 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 int i;
8109 _ACEOF
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111 xorg_cv_cc_flag_unknown_warning_option=yes
8112 else
8113 xorg_cv_cc_flag_unknown_warning_option=no
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8118 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8120 CFLAGS="$xorg_testset_save_CFLAGS"
8121 fi
8122
8123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8126 fi
8127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8129 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8130 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 int i;
8136 _ACEOF
8137 if ac_fn_c_try_compile "$LINENO"; then :
8138 xorg_cv_cc_flag_unused_command_line_argument=yes
8139 else
8140 xorg_cv_cc_flag_unused_command_line_argument=no
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 fi
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8145 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8147 CFLAGS="$xorg_testset_save_CFLAGS"
8148 fi
8149
8150 found="no"
8151
8152 if test $found = "no" ; then
8153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8155 fi
8156
8157 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8159 fi
8160
8161 CFLAGS="$CFLAGS -Werror=address"
8162
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8164 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8165 cacheid=xorg_cv_cc_flag__Werror_address
8166 if eval \${$cacheid+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 int i;
8172 int
8173 main ()
8174 {
8175
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_link "$LINENO"; then :
8181 eval $cacheid=yes
8182 else
8183 eval $cacheid=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8187 fi
8188
8189
8190 CFLAGS="$xorg_testset_save_CFLAGS"
8191
8192 eval supported=\$$cacheid
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8194 $as_echo "$supported" >&6; }
8195 if test "$supported" = "yes" ; then
8196 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8197 found="yes"
8198 fi
8199 fi
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215 xorg_testset_save_CFLAGS="$CFLAGS"
8216
8217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8220 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8221 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 int i;
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229 xorg_cv_cc_flag_unknown_warning_option=yes
8230 else
8231 xorg_cv_cc_flag_unknown_warning_option=no
8232 fi
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8236 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8238 CFLAGS="$xorg_testset_save_CFLAGS"
8239 fi
8240
8241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244 fi
8245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8247 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8248 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 int i;
8254 _ACEOF
8255 if ac_fn_c_try_compile "$LINENO"; then :
8256 xorg_cv_cc_flag_unused_command_line_argument=yes
8257 else
8258 xorg_cv_cc_flag_unused_command_line_argument=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8263 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8265 CFLAGS="$xorg_testset_save_CFLAGS"
8266 fi
8267
8268 found="no"
8269
8270 if test $found = "no" ; then
8271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273 fi
8274
8275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277 fi
8278
8279 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8282 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8283 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8284 if eval \${$cacheid+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 int i;
8290 int
8291 main ()
8292 {
8293
8294 ;
8295 return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_link "$LINENO"; then :
8299 eval $cacheid=yes
8300 else
8301 eval $cacheid=no
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 fi
8306
8307
8308 CFLAGS="$xorg_testset_save_CFLAGS"
8309
8310 eval supported=\$$cacheid
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8312 $as_echo "$supported" >&6; }
8313 if test "$supported" = "yes" ; then
8314 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8315 found="yes"
8316 fi
8317 fi
8318
8319 if test $found = "no" ; then
8320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322 fi
8323
8324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326 fi
8327
8328 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8331 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8332 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8333 if eval \${$cacheid+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 int
8340 main ()
8341 {
8342
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"; then :
8348 eval $cacheid=yes
8349 else
8350 eval $cacheid=no
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 fi
8355
8356
8357 CFLAGS="$xorg_testset_save_CFLAGS"
8358
8359 eval supported=\$$cacheid
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8361 $as_echo "$supported" >&6; }
8362 if test "$supported" = "yes" ; then
8363 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8364 found="yes"
8365 fi
8366 fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382 xorg_testset_save_CFLAGS="$CFLAGS"
8383
8384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396 xorg_cv_cc_flag_unknown_warning_option=yes
8397 else
8398 xorg_cv_cc_flag_unknown_warning_option=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8405 CFLAGS="$xorg_testset_save_CFLAGS"
8406 fi
8407
8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411 fi
8412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 int i;
8421 _ACEOF
8422 if ac_fn_c_try_compile "$LINENO"; then :
8423 xorg_cv_cc_flag_unused_command_line_argument=yes
8424 else
8425 xorg_cv_cc_flag_unused_command_line_argument=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8433 fi
8434
8435 found="no"
8436
8437 if test $found = "no" ; then
8438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440 fi
8441
8442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444 fi
8445
8446 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8447
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8449 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8450 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8451 if eval \${$cacheid+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 int i;
8457 int
8458 main ()
8459 {
8460
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_link "$LINENO"; then :
8466 eval $cacheid=yes
8467 else
8468 eval $cacheid=no
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472 fi
8473
8474
8475 CFLAGS="$xorg_testset_save_CFLAGS"
8476
8477 eval supported=\$$cacheid
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8479 $as_echo "$supported" >&6; }
8480 if test "$supported" = "yes" ; then
8481 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8482 found="yes"
8483 fi
8484 fi
8485
8486 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8487 else
8488 { $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
8489 $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;}
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 xorg_testset_save_CFLAGS="$CFLAGS"
8504
8505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 int i;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517 xorg_cv_cc_flag_unknown_warning_option=yes
8518 else
8519 xorg_cv_cc_flag_unknown_warning_option=no
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8526 CFLAGS="$xorg_testset_save_CFLAGS"
8527 fi
8528
8529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532 fi
8533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541 int i;
8542 _ACEOF
8543 if ac_fn_c_try_compile "$LINENO"; then :
8544 xorg_cv_cc_flag_unused_command_line_argument=yes
8545 else
8546 xorg_cv_cc_flag_unused_command_line_argument=no
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 fi
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8553 CFLAGS="$xorg_testset_save_CFLAGS"
8554 fi
8555
8556 found="no"
8557
8558 if test $found = "no" ; then
8559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8561 fi
8562
8563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8565 fi
8566
8567 CFLAGS="$CFLAGS -Wimplicit"
8568
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8570 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8571 cacheid=xorg_cv_cc_flag__Wimplicit
8572 if eval \${$cacheid+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 int i;
8578 int
8579 main ()
8580 {
8581
8582 ;
8583 return 0;
8584 }
8585 _ACEOF
8586 if ac_fn_c_try_link "$LINENO"; then :
8587 eval $cacheid=yes
8588 else
8589 eval $cacheid=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 fi
8594
8595
8596 CFLAGS="$xorg_testset_save_CFLAGS"
8597
8598 eval supported=\$$cacheid
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8600 $as_echo "$supported" >&6; }
8601 if test "$supported" = "yes" ; then
8602 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8603 found="yes"
8604 fi
8605 fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621 xorg_testset_save_CFLAGS="$CFLAGS"
8622
8623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 int i;
8633 _ACEOF
8634 if ac_fn_c_try_compile "$LINENO"; then :
8635 xorg_cv_cc_flag_unknown_warning_option=yes
8636 else
8637 xorg_cv_cc_flag_unknown_warning_option=no
8638 fi
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8644 CFLAGS="$xorg_testset_save_CFLAGS"
8645 fi
8646
8647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650 fi
8651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 int i;
8660 _ACEOF
8661 if ac_fn_c_try_compile "$LINENO"; then :
8662 xorg_cv_cc_flag_unused_command_line_argument=yes
8663 else
8664 xorg_cv_cc_flag_unused_command_line_argument=no
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8671 CFLAGS="$xorg_testset_save_CFLAGS"
8672 fi
8673
8674 found="no"
8675
8676 if test $found = "no" ; then
8677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679 fi
8680
8681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8683 fi
8684
8685 CFLAGS="$CFLAGS -Wnonnull"
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8688 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8689 cacheid=xorg_cv_cc_flag__Wnonnull
8690 if eval \${$cacheid+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 int i;
8696 int
8697 main ()
8698 {
8699
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_c_try_link "$LINENO"; then :
8705 eval $cacheid=yes
8706 else
8707 eval $cacheid=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 fi
8712
8713
8714 CFLAGS="$xorg_testset_save_CFLAGS"
8715
8716 eval supported=\$$cacheid
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8718 $as_echo "$supported" >&6; }
8719 if test "$supported" = "yes" ; then
8720 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8721 found="yes"
8722 fi
8723 fi
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739 xorg_testset_save_CFLAGS="$CFLAGS"
8740
8741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 int i;
8751 _ACEOF
8752 if ac_fn_c_try_compile "$LINENO"; then :
8753 xorg_cv_cc_flag_unknown_warning_option=yes
8754 else
8755 xorg_cv_cc_flag_unknown_warning_option=no
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8762 CFLAGS="$xorg_testset_save_CFLAGS"
8763 fi
8764
8765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8768 fi
8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8777 int i;
8778 _ACEOF
8779 if ac_fn_c_try_compile "$LINENO"; then :
8780 xorg_cv_cc_flag_unused_command_line_argument=yes
8781 else
8782 xorg_cv_cc_flag_unused_command_line_argument=no
8783 fi
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8789 CFLAGS="$xorg_testset_save_CFLAGS"
8790 fi
8791
8792 found="no"
8793
8794 if test $found = "no" ; then
8795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797 fi
8798
8799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8801 fi
8802
8803 CFLAGS="$CFLAGS -Winit-self"
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8806 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8807 cacheid=xorg_cv_cc_flag__Winit_self
8808 if eval \${$cacheid+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 int i;
8814 int
8815 main ()
8816 {
8817
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_link "$LINENO"; then :
8823 eval $cacheid=yes
8824 else
8825 eval $cacheid=no
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829 fi
8830
8831
8832 CFLAGS="$xorg_testset_save_CFLAGS"
8833
8834 eval supported=\$$cacheid
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8836 $as_echo "$supported" >&6; }
8837 if test "$supported" = "yes" ; then
8838 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8839 found="yes"
8840 fi
8841 fi
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857 xorg_testset_save_CFLAGS="$CFLAGS"
8858
8859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 int i;
8869 _ACEOF
8870 if ac_fn_c_try_compile "$LINENO"; then :
8871 xorg_cv_cc_flag_unknown_warning_option=yes
8872 else
8873 xorg_cv_cc_flag_unknown_warning_option=no
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8881 fi
8882
8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 fi
8887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 int i;
8896 _ACEOF
8897 if ac_fn_c_try_compile "$LINENO"; then :
8898 xorg_cv_cc_flag_unused_command_line_argument=yes
8899 else
8900 xorg_cv_cc_flag_unused_command_line_argument=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 fi
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8908 fi
8909
8910 found="no"
8911
8912 if test $found = "no" ; then
8913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915 fi
8916
8917 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8919 fi
8920
8921 CFLAGS="$CFLAGS -Wmain"
8922
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8924 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8925 cacheid=xorg_cv_cc_flag__Wmain
8926 if eval \${$cacheid+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 int i;
8932 int
8933 main ()
8934 {
8935
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 eval $cacheid=yes
8942 else
8943 eval $cacheid=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 fi
8948
8949
8950 CFLAGS="$xorg_testset_save_CFLAGS"
8951
8952 eval supported=\$$cacheid
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8954 $as_echo "$supported" >&6; }
8955 if test "$supported" = "yes" ; then
8956 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8957 found="yes"
8958 fi
8959 fi
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975 xorg_testset_save_CFLAGS="$CFLAGS"
8976
8977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 _ACEOF
8988 if ac_fn_c_try_compile "$LINENO"; then :
8989 xorg_cv_cc_flag_unknown_warning_option=yes
8990 else
8991 xorg_cv_cc_flag_unknown_warning_option=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8998 CFLAGS="$xorg_testset_save_CFLAGS"
8999 fi
9000
9001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004 fi
9005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 int i;
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"; then :
9016 xorg_cv_cc_flag_unused_command_line_argument=yes
9017 else
9018 xorg_cv_cc_flag_unused_command_line_argument=no
9019 fi
9020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9025 CFLAGS="$xorg_testset_save_CFLAGS"
9026 fi
9027
9028 found="no"
9029
9030 if test $found = "no" ; then
9031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9033 fi
9034
9035 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9037 fi
9038
9039 CFLAGS="$CFLAGS -Wmissing-braces"
9040
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9042 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9043 cacheid=xorg_cv_cc_flag__Wmissing_braces
9044 if eval \${$cacheid+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 int i;
9050 int
9051 main ()
9052 {
9053
9054 ;
9055 return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_link "$LINENO"; then :
9059 eval $cacheid=yes
9060 else
9061 eval $cacheid=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 fi
9066
9067
9068 CFLAGS="$xorg_testset_save_CFLAGS"
9069
9070 eval supported=\$$cacheid
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9072 $as_echo "$supported" >&6; }
9073 if test "$supported" = "yes" ; then
9074 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9075 found="yes"
9076 fi
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093 xorg_testset_save_CFLAGS="$CFLAGS"
9094
9095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9098 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9099 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"; then :
9107 xorg_cv_cc_flag_unknown_warning_option=yes
9108 else
9109 xorg_cv_cc_flag_unknown_warning_option=no
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9114 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9116 CFLAGS="$xorg_testset_save_CFLAGS"
9117 fi
9118
9119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9122 fi
9123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9125 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9126 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 int i;
9132 _ACEOF
9133 if ac_fn_c_try_compile "$LINENO"; then :
9134 xorg_cv_cc_flag_unused_command_line_argument=yes
9135 else
9136 xorg_cv_cc_flag_unused_command_line_argument=no
9137 fi
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9141 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9143 CFLAGS="$xorg_testset_save_CFLAGS"
9144 fi
9145
9146 found="no"
9147
9148 if test $found = "no" ; then
9149 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151 fi
9152
9153 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9155 fi
9156
9157 CFLAGS="$CFLAGS -Wsequence-point"
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9160 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9161 cacheid=xorg_cv_cc_flag__Wsequence_point
9162 if eval \${$cacheid+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 int i;
9168 int
9169 main ()
9170 {
9171
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 eval $cacheid=yes
9178 else
9179 eval $cacheid=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 fi
9184
9185
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187
9188 eval supported=\$$cacheid
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9190 $as_echo "$supported" >&6; }
9191 if test "$supported" = "yes" ; then
9192 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9193 found="yes"
9194 fi
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 xorg_testset_save_CFLAGS="$CFLAGS"
9212
9213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"; then :
9225 xorg_cv_cc_flag_unknown_warning_option=yes
9226 else
9227 xorg_cv_cc_flag_unknown_warning_option=no
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 fi
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9234 CFLAGS="$xorg_testset_save_CFLAGS"
9235 fi
9236
9237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240 fi
9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 int i;
9250 _ACEOF
9251 if ac_fn_c_try_compile "$LINENO"; then :
9252 xorg_cv_cc_flag_unused_command_line_argument=yes
9253 else
9254 xorg_cv_cc_flag_unused_command_line_argument=no
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9261 CFLAGS="$xorg_testset_save_CFLAGS"
9262 fi
9263
9264 found="no"
9265
9266 if test $found = "no" ; then
9267 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269 fi
9270
9271 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9273 fi
9274
9275 CFLAGS="$CFLAGS -Wreturn-type"
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9278 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9279 cacheid=xorg_cv_cc_flag__Wreturn_type
9280 if eval \${$cacheid+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9285 int i;
9286 int
9287 main ()
9288 {
9289
9290 ;
9291 return 0;
9292 }
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 eval $cacheid=yes
9296 else
9297 eval $cacheid=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301 fi
9302
9303
9304 CFLAGS="$xorg_testset_save_CFLAGS"
9305
9306 eval supported=\$$cacheid
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9308 $as_echo "$supported" >&6; }
9309 if test "$supported" = "yes" ; then
9310 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9311 found="yes"
9312 fi
9313 fi
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 xorg_testset_save_CFLAGS="$CFLAGS"
9330
9331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 int i;
9341 _ACEOF
9342 if ac_fn_c_try_compile "$LINENO"; then :
9343 xorg_cv_cc_flag_unknown_warning_option=yes
9344 else
9345 xorg_cv_cc_flag_unknown_warning_option=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9352 CFLAGS="$xorg_testset_save_CFLAGS"
9353 fi
9354
9355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358 fi
9359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 int i;
9368 _ACEOF
9369 if ac_fn_c_try_compile "$LINENO"; then :
9370 xorg_cv_cc_flag_unused_command_line_argument=yes
9371 else
9372 xorg_cv_cc_flag_unused_command_line_argument=no
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 fi
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9379 CFLAGS="$xorg_testset_save_CFLAGS"
9380 fi
9381
9382 found="no"
9383
9384 if test $found = "no" ; then
9385 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387 fi
9388
9389 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391 fi
9392
9393 CFLAGS="$CFLAGS -Wtrigraphs"
9394
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9396 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9397 cacheid=xorg_cv_cc_flag__Wtrigraphs
9398 if eval \${$cacheid+:} false; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 int i;
9404 int
9405 main ()
9406 {
9407
9408 ;
9409 return 0;
9410 }
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"; then :
9413 eval $cacheid=yes
9414 else
9415 eval $cacheid=no
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 fi
9420
9421
9422 CFLAGS="$xorg_testset_save_CFLAGS"
9423
9424 eval supported=\$$cacheid
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9426 $as_echo "$supported" >&6; }
9427 if test "$supported" = "yes" ; then
9428 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9429 found="yes"
9430 fi
9431 fi
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447 xorg_testset_save_CFLAGS="$CFLAGS"
9448
9449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 int i;
9459 _ACEOF
9460 if ac_fn_c_try_compile "$LINENO"; then :
9461 xorg_cv_cc_flag_unknown_warning_option=yes
9462 else
9463 xorg_cv_cc_flag_unknown_warning_option=no
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9470 CFLAGS="$xorg_testset_save_CFLAGS"
9471 fi
9472
9473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476 fi
9477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 int i;
9486 _ACEOF
9487 if ac_fn_c_try_compile "$LINENO"; then :
9488 xorg_cv_cc_flag_unused_command_line_argument=yes
9489 else
9490 xorg_cv_cc_flag_unused_command_line_argument=no
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9497 CFLAGS="$xorg_testset_save_CFLAGS"
9498 fi
9499
9500 found="no"
9501
9502 if test $found = "no" ; then
9503 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505 fi
9506
9507 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509 fi
9510
9511 CFLAGS="$CFLAGS -Warray-bounds"
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9514 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9515 cacheid=xorg_cv_cc_flag__Warray_bounds
9516 if eval \${$cacheid+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 int i;
9522 int
9523 main ()
9524 {
9525
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531 eval $cacheid=yes
9532 else
9533 eval $cacheid=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 fi
9538
9539
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541
9542 eval supported=\$$cacheid
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9544 $as_echo "$supported" >&6; }
9545 if test "$supported" = "yes" ; then
9546 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9547 found="yes"
9548 fi
9549 fi
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565 xorg_testset_save_CFLAGS="$CFLAGS"
9566
9567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int i;
9577 _ACEOF
9578 if ac_fn_c_try_compile "$LINENO"; then :
9579 xorg_cv_cc_flag_unknown_warning_option=yes
9580 else
9581 xorg_cv_cc_flag_unknown_warning_option=no
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9588 CFLAGS="$xorg_testset_save_CFLAGS"
9589 fi
9590
9591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594 fi
9595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603 int i;
9604 _ACEOF
9605 if ac_fn_c_try_compile "$LINENO"; then :
9606 xorg_cv_cc_flag_unused_command_line_argument=yes
9607 else
9608 xorg_cv_cc_flag_unused_command_line_argument=no
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9615 CFLAGS="$xorg_testset_save_CFLAGS"
9616 fi
9617
9618 found="no"
9619
9620 if test $found = "no" ; then
9621 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623 fi
9624
9625 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9627 fi
9628
9629 CFLAGS="$CFLAGS -Wwrite-strings"
9630
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9632 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9633 cacheid=xorg_cv_cc_flag__Wwrite_strings
9634 if eval \${$cacheid+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639 int i;
9640 int
9641 main ()
9642 {
9643
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 if ac_fn_c_try_link "$LINENO"; then :
9649 eval $cacheid=yes
9650 else
9651 eval $cacheid=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 fi
9656
9657
9658 CFLAGS="$xorg_testset_save_CFLAGS"
9659
9660 eval supported=\$$cacheid
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9662 $as_echo "$supported" >&6; }
9663 if test "$supported" = "yes" ; then
9664 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9665 found="yes"
9666 fi
9667 fi
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683 xorg_testset_save_CFLAGS="$CFLAGS"
9684
9685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 int i;
9695 _ACEOF
9696 if ac_fn_c_try_compile "$LINENO"; then :
9697 xorg_cv_cc_flag_unknown_warning_option=yes
9698 else
9699 xorg_cv_cc_flag_unknown_warning_option=no
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9706 CFLAGS="$xorg_testset_save_CFLAGS"
9707 fi
9708
9709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712 fi
9713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 int i;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 xorg_cv_cc_flag_unused_command_line_argument=yes
9725 else
9726 xorg_cv_cc_flag_unused_command_line_argument=no
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9733 CFLAGS="$xorg_testset_save_CFLAGS"
9734 fi
9735
9736 found="no"
9737
9738 if test $found = "no" ; then
9739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741 fi
9742
9743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9745 fi
9746
9747 CFLAGS="$CFLAGS -Waddress"
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9750 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9751 cacheid=xorg_cv_cc_flag__Waddress
9752 if eval \${$cacheid+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 int i;
9758 int
9759 main ()
9760 {
9761
9762 ;
9763 return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 eval $cacheid=yes
9768 else
9769 eval $cacheid=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 fi
9774
9775
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777
9778 eval supported=\$$cacheid
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9780 $as_echo "$supported" >&6; }
9781 if test "$supported" = "yes" ; then
9782 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9783 found="yes"
9784 fi
9785 fi
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801 xorg_testset_save_CFLAGS="$CFLAGS"
9802
9803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int i;
9813 _ACEOF
9814 if ac_fn_c_try_compile "$LINENO"; then :
9815 xorg_cv_cc_flag_unknown_warning_option=yes
9816 else
9817 xorg_cv_cc_flag_unknown_warning_option=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9824 CFLAGS="$xorg_testset_save_CFLAGS"
9825 fi
9826
9827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9830 fi
9831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 int i;
9840 _ACEOF
9841 if ac_fn_c_try_compile "$LINENO"; then :
9842 xorg_cv_cc_flag_unused_command_line_argument=yes
9843 else
9844 xorg_cv_cc_flag_unused_command_line_argument=no
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 fi
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9851 CFLAGS="$xorg_testset_save_CFLAGS"
9852 fi
9853
9854 found="no"
9855
9856 if test $found = "no" ; then
9857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859 fi
9860
9861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9863 fi
9864
9865 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9868 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9869 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9870 if eval \${$cacheid+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875 int i;
9876 int
9877 main ()
9878 {
9879
9880 ;
9881 return 0;
9882 }
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 eval $cacheid=yes
9886 else
9887 eval $cacheid=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 fi
9892
9893
9894 CFLAGS="$xorg_testset_save_CFLAGS"
9895
9896 eval supported=\$$cacheid
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9898 $as_echo "$supported" >&6; }
9899 if test "$supported" = "yes" ; then
9900 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9901 found="yes"
9902 fi
9903 fi
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919 xorg_testset_save_CFLAGS="$CFLAGS"
9920
9921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 int i;
9931 _ACEOF
9932 if ac_fn_c_try_compile "$LINENO"; then :
9933 xorg_cv_cc_flag_unknown_warning_option=yes
9934 else
9935 xorg_cv_cc_flag_unknown_warning_option=no
9936 fi
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 fi
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9942 CFLAGS="$xorg_testset_save_CFLAGS"
9943 fi
9944
9945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948 fi
9949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 int i;
9958 _ACEOF
9959 if ac_fn_c_try_compile "$LINENO"; then :
9960 xorg_cv_cc_flag_unused_command_line_argument=yes
9961 else
9962 xorg_cv_cc_flag_unused_command_line_argument=no
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 fi
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9969 CFLAGS="$xorg_testset_save_CFLAGS"
9970 fi
9971
9972 found="no"
9973
9974 if test $found = "no" ; then
9975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977 fi
9978
9979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9981 fi
9982
9983 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9984
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9986 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9987 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9988 if eval \${$cacheid+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 int i;
9994 int
9995 main ()
9996 {
9997
9998 ;
9999 return 0;
10000 }
10001 _ACEOF
10002 if ac_fn_c_try_link "$LINENO"; then :
10003 eval $cacheid=yes
10004 else
10005 eval $cacheid=no
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009 fi
10010
10011
10012 CFLAGS="$xorg_testset_save_CFLAGS"
10013
10014 eval supported=\$$cacheid
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10016 $as_echo "$supported" >&6; }
10017 if test "$supported" = "yes" ; then
10018 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10019 found="yes"
10020 fi
10021 fi
10022
10023
10024 fi
10025
10026
10027
10028
10029
10030
10031
10032 CWARNFLAGS="$BASE_CFLAGS"
10033 if test "x$GCC" = xyes ; then
10034 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10035 fi
10036
10037
10038
10039
10040
10041
10042
10043
10044 # Check whether --enable-strict-compilation was given.
10045 if test "${enable_strict_compilation+set}" = set; then :
10046 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10047 else
10048 STRICT_COMPILE=no
10049 fi
10050
10051
10052
10053
10054
10055
10056 STRICT_CFLAGS=""
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070 xorg_testset_save_CFLAGS="$CFLAGS"
10071
10072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10075 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10076 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 int i;
10082 _ACEOF
10083 if ac_fn_c_try_compile "$LINENO"; then :
10084 xorg_cv_cc_flag_unknown_warning_option=yes
10085 else
10086 xorg_cv_cc_flag_unknown_warning_option=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10091 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10093 CFLAGS="$xorg_testset_save_CFLAGS"
10094 fi
10095
10096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099 fi
10100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10102 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10103 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 int i;
10109 _ACEOF
10110 if ac_fn_c_try_compile "$LINENO"; then :
10111 xorg_cv_cc_flag_unused_command_line_argument=yes
10112 else
10113 xorg_cv_cc_flag_unused_command_line_argument=no
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10118 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10120 CFLAGS="$xorg_testset_save_CFLAGS"
10121 fi
10122
10123 found="no"
10124
10125 if test $found = "no" ; then
10126 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10128 fi
10129
10130 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10132 fi
10133
10134 CFLAGS="$CFLAGS -pedantic"
10135
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10137 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10138 cacheid=xorg_cv_cc_flag__pedantic
10139 if eval \${$cacheid+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144 int i;
10145 int
10146 main ()
10147 {
10148
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_c_try_link "$LINENO"; then :
10154 eval $cacheid=yes
10155 else
10156 eval $cacheid=no
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 fi
10161
10162
10163 CFLAGS="$xorg_testset_save_CFLAGS"
10164
10165 eval supported=\$$cacheid
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10167 $as_echo "$supported" >&6; }
10168 if test "$supported" = "yes" ; then
10169 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10170 found="yes"
10171 fi
10172 fi
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188 xorg_testset_save_CFLAGS="$CFLAGS"
10189
10190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10194 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 _ACEOF
10201 if ac_fn_c_try_compile "$LINENO"; then :
10202 xorg_cv_cc_flag_unknown_warning_option=yes
10203 else
10204 xorg_cv_cc_flag_unknown_warning_option=no
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 fi
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10209 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10211 CFLAGS="$xorg_testset_save_CFLAGS"
10212 fi
10213
10214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10217 fi
10218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10220 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10221 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 int i;
10227 _ACEOF
10228 if ac_fn_c_try_compile "$LINENO"; then :
10229 xorg_cv_cc_flag_unused_command_line_argument=yes
10230 else
10231 xorg_cv_cc_flag_unused_command_line_argument=no
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 fi
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10236 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10238 CFLAGS="$xorg_testset_save_CFLAGS"
10239 fi
10240
10241 found="no"
10242
10243 if test $found = "no" ; then
10244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10246 fi
10247
10248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10250 fi
10251
10252 CFLAGS="$CFLAGS -Werror"
10253
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10255 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10256 cacheid=xorg_cv_cc_flag__Werror
10257 if eval \${$cacheid+:} false; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262 int i;
10263 int
10264 main ()
10265 {
10266
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 eval $cacheid=yes
10273 else
10274 eval $cacheid=no
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 fi
10279
10280
10281 CFLAGS="$xorg_testset_save_CFLAGS"
10282
10283 eval supported=\$$cacheid
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10285 $as_echo "$supported" >&6; }
10286 if test "$supported" = "yes" ; then
10287 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10288 found="yes"
10289 fi
10290 fi
10291
10292 if test $found = "no" ; then
10293 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295 fi
10296
10297 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10299 fi
10300
10301 CFLAGS="$CFLAGS -errwarn"
10302
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10304 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10305 cacheid=xorg_cv_cc_flag__errwarn
10306 if eval \${$cacheid+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 int i;
10312 int
10313 main ()
10314 {
10315
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 eval $cacheid=yes
10322 else
10323 eval $cacheid=no
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 fi
10328
10329
10330 CFLAGS="$xorg_testset_save_CFLAGS"
10331
10332 eval supported=\$$cacheid
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10334 $as_echo "$supported" >&6; }
10335 if test "$supported" = "yes" ; then
10336 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10337 found="yes"
10338 fi
10339 fi
10340
10341
10342
10343 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10344 # activate it with -Werror, so we add it here explicitly.
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358 xorg_testset_save_CFLAGS="$CFLAGS"
10359
10360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10363 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10364 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10369 int i;
10370 _ACEOF
10371 if ac_fn_c_try_compile "$LINENO"; then :
10372 xorg_cv_cc_flag_unknown_warning_option=yes
10373 else
10374 xorg_cv_cc_flag_unknown_warning_option=no
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10377 fi
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10379 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10381 CFLAGS="$xorg_testset_save_CFLAGS"
10382 fi
10383
10384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387 fi
10388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10390 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10391 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 int i;
10397 _ACEOF
10398 if ac_fn_c_try_compile "$LINENO"; then :
10399 xorg_cv_cc_flag_unused_command_line_argument=yes
10400 else
10401 xorg_cv_cc_flag_unused_command_line_argument=no
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404 fi
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408 CFLAGS="$xorg_testset_save_CFLAGS"
10409 fi
10410
10411 found="no"
10412
10413 if test $found = "no" ; then
10414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416 fi
10417
10418 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420 fi
10421
10422 CFLAGS="$CFLAGS -Werror=attributes"
10423
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10425 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10426 cacheid=xorg_cv_cc_flag__Werror_attributes
10427 if eval \${$cacheid+:} false; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 int i;
10433 int
10434 main ()
10435 {
10436
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 eval $cacheid=yes
10443 else
10444 eval $cacheid=no
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 fi
10449
10450
10451 CFLAGS="$xorg_testset_save_CFLAGS"
10452
10453 eval supported=\$$cacheid
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10455 $as_echo "$supported" >&6; }
10456 if test "$supported" = "yes" ; then
10457 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10458 found="yes"
10459 fi
10460 fi
10461
10462
10463
10464 if test "x$STRICT_COMPILE" = "xyes"; then
10465 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10466 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10467 fi
10468
10469
10470
10471
10472
10473
10474 cat >>confdefs.h <<_ACEOF
10475 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10476 _ACEOF
10477
10478 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10479 if test "x$PVM" = "x"; then
10480 PVM="0"
10481 fi
10482
10483 cat >>confdefs.h <<_ACEOF
10484 #define PACKAGE_VERSION_MINOR $PVM
10485 _ACEOF
10486
10487 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10488 if test "x$PVP" = "x"; then
10489 PVP="0"
10490 fi
10491
10492 cat >>confdefs.h <<_ACEOF
10493 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10494 _ACEOF
10495
10496
10497
10498 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10499 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10500 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10501 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10502
10503
10504
10505
10506 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10507 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10508 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10509 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10510 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10511
10512
10513
10514
10515
10516
10517 if test x$APP_MAN_SUFFIX = x ; then
10518 APP_MAN_SUFFIX=1
10519 fi
10520 if test x$APP_MAN_DIR = x ; then
10521 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10522 fi
10523
10524 if test x$LIB_MAN_SUFFIX = x ; then
10525 LIB_MAN_SUFFIX=3
10526 fi
10527 if test x$LIB_MAN_DIR = x ; then
10528 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10529 fi
10530
10531 if test x$FILE_MAN_SUFFIX = x ; then
10532 case $host_os in
10533 solaris*) FILE_MAN_SUFFIX=4 ;;
10534 *) FILE_MAN_SUFFIX=5 ;;
10535 esac
10536 fi
10537 if test x$FILE_MAN_DIR = x ; then
10538 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10539 fi
10540
10541 if test x$MISC_MAN_SUFFIX = x ; then
10542 case $host_os in
10543 solaris*) MISC_MAN_SUFFIX=5 ;;
10544 *) MISC_MAN_SUFFIX=7 ;;
10545 esac
10546 fi
10547 if test x$MISC_MAN_DIR = x ; then
10548 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10549 fi
10550
10551 if test x$DRIVER_MAN_SUFFIX = x ; then
10552 case $host_os in
10553 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10554 *) DRIVER_MAN_SUFFIX=4 ;;
10555 esac
10556 fi
10557 if test x$DRIVER_MAN_DIR = x ; then
10558 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10559 fi
10560
10561 if test x$ADMIN_MAN_SUFFIX = x ; then
10562 case $host_os in
10563 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10564 *) ADMIN_MAN_SUFFIX=8 ;;
10565 esac
10566 fi
10567 if test x$ADMIN_MAN_DIR = x ; then
10568 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10569 fi
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585 XORG_MAN_PAGE="X Version 11"
10586
10587 MAN_SUBSTS="\
10588 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10589 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10590 -e 's|__xservername__|Xorg|g' \
10591 -e 's|__xconfigfile__|xorg.conf|g' \
10592 -e 's|__projectroot__|\$(prefix)|g' \
10593 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10594 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10595 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10596 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10597 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10598 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10599 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10600
10601
10602
10603 # Check whether --enable-silent-rules was given.
10604 if test "${enable_silent_rules+set}" = set; then :
10605 enableval=$enable_silent_rules;
10606 fi
10607
10608 case $enable_silent_rules in
10609 yes) AM_DEFAULT_VERBOSITY=0;;
10610 no) AM_DEFAULT_VERBOSITY=1;;
10611 *) AM_DEFAULT_VERBOSITY=0;;
10612 esac
10613 am_make=${MAKE-make}
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10615 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10616 if ${am_cv_make_support_nested_variables+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 if $as_echo 'TRUE=$(BAR$(V))
10620 BAR0=false
10621 BAR1=true
10622 V=1
10623 am__doit:
10624 @$(TRUE)
10625 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10626 am_cv_make_support_nested_variables=yes
10627 else
10628 am_cv_make_support_nested_variables=no
10629 fi
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10632 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10633 if test $am_cv_make_support_nested_variables = yes; then
10634 AM_V='$(V)'
10635 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10636 else
10637 AM_V=$AM_DEFAULT_VERBOSITY
10638 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10639 fi
10640 AM_BACKSLASH='\'
10641
10642
10643
10644
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10646 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10647 # Check whether --enable-maintainer-mode was given.
10648 if test "${enable_maintainer_mode+set}" = set; then :
10649 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10650 else
10651 USE_MAINTAINER_MODE=no
10652 fi
10653
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10655 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10656 if test $USE_MAINTAINER_MODE = yes; then
10657 MAINTAINER_MODE_TRUE=
10658 MAINTAINER_MODE_FALSE='#'
10659 else
10660 MAINTAINER_MODE_TRUE='#'
10661 MAINTAINER_MODE_FALSE=
10662 fi
10663
10664 MAINT=$MAINTAINER_MODE_TRUE
10665
10666
10667
10668 # Initialize libtool
10669 # Check whether --enable-static was given.
10670 if test "${enable_static+set}" = set; then :
10671 enableval=$enable_static; p=${PACKAGE-default}
10672 case $enableval in
10673 yes) enable_static=yes ;;
10674 no) enable_static=no ;;
10675 *)
10676 enable_static=no
10677 # Look at the argument we got. We use all the common list separators.
10678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10679 for pkg in $enableval; do
10680 IFS="$lt_save_ifs"
10681 if test "X$pkg" = "X$p"; then
10682 enable_static=yes
10683 fi
10684 done
10685 IFS="$lt_save_ifs"
10686 ;;
10687 esac
10688 else
10689 enable_static=no
10690 fi
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700 case `pwd` in
10701 *\ * | *\ *)
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10703 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10704 esac
10705
10706
10707
10708 macro_version='2.4.2'
10709 macro_revision='1.3337'
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723 ltmain="$ac_aux_dir/ltmain.sh"
10724
10725 # Backslashify metacharacters that are still active within
10726 # double-quoted strings.
10727 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10728
10729 # Same as above, but do not quote variable references.
10730 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10731
10732 # Sed substitution to delay expansion of an escaped shell variable in a
10733 # double_quote_subst'ed string.
10734 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10735
10736 # Sed substitution to delay expansion of an escaped single quote.
10737 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10738
10739 # Sed substitution to avoid accidental globbing in evaled expressions
10740 no_glob_subst='s/\*/\\\*/g'
10741
10742 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10743 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10745
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10747 $as_echo_n "checking how to print strings... " >&6; }
10748 # Test print first, because it will be a builtin if present.
10749 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10750 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10751 ECHO='print -r --'
10752 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10753 ECHO='printf %s\n'
10754 else
10755 # Use this function as a fallback that always works.
10756 func_fallback_echo ()
10757 {
10758 eval 'cat <<_LTECHO_EOF
10759 $1
10760 _LTECHO_EOF'
10761 }
10762 ECHO='func_fallback_echo'
10763 fi
10764
10765 # func_echo_all arg...
10766 # Invoke $ECHO with all args, space-separated.
10767 func_echo_all ()
10768 {
10769 $ECHO ""
10770 }
10771
10772 case "$ECHO" in
10773 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10774 $as_echo "printf" >&6; } ;;
10775 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10776 $as_echo "print -r" >&6; } ;;
10777 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10778 $as_echo "cat" >&6; } ;;
10779 esac
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10795 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10796 if ${ac_cv_path_SED+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10800 for ac_i in 1 2 3 4 5 6 7; do
10801 ac_script="$ac_script$as_nl$ac_script"
10802 done
10803 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10804 { ac_script=; unset ac_script;}
10805 if test -z "$SED"; then
10806 ac_path_SED_found=false
10807 # Loop through the user's path and test for each of PROGNAME-LIST
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10810 do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_prog in sed gsed; do
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10816 as_fn_executable_p "$ac_path_SED" || continue
10817 # Check for GNU ac_path_SED and select it if it is found.
10818 # Check for GNU $ac_path_SED
10819 case `"$ac_path_SED" --version 2>&1` in
10820 *GNU*)
10821 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10822 *)
10823 ac_count=0
10824 $as_echo_n 0123456789 >"conftest.in"
10825 while :
10826 do
10827 cat "conftest.in" "conftest.in" >"conftest.tmp"
10828 mv "conftest.tmp" "conftest.in"
10829 cp "conftest.in" "conftest.nl"
10830 $as_echo '' >> "conftest.nl"
10831 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10833 as_fn_arith $ac_count + 1 && ac_count=$as_val
10834 if test $ac_count -gt ${ac_path_SED_max-0}; then
10835 # Best one so far, save it but keep looking for a better one
10836 ac_cv_path_SED="$ac_path_SED"
10837 ac_path_SED_max=$ac_count
10838 fi
10839 # 10*(2^10) chars as input seems more than enough
10840 test $ac_count -gt 10 && break
10841 done
10842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10843 esac
10844
10845 $ac_path_SED_found && break 3
10846 done
10847 done
10848 done
10849 IFS=$as_save_IFS
10850 if test -z "$ac_cv_path_SED"; then
10851 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10852 fi
10853 else
10854 ac_cv_path_SED=$SED
10855 fi
10856
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10859 $as_echo "$ac_cv_path_SED" >&6; }
10860 SED="$ac_cv_path_SED"
10861 rm -f conftest.sed
10862
10863 test -z "$SED" && SED=sed
10864 Xsed="$SED -e 1s/^X//"
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10877 $as_echo_n "checking for fgrep... " >&6; }
10878 if ${ac_cv_path_FGREP+:} false; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10882 then ac_cv_path_FGREP="$GREP -F"
10883 else
10884 if test -z "$FGREP"; then
10885 ac_path_FGREP_found=false
10886 # Loop through the user's path and test for each of PROGNAME-LIST
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10889 do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_prog in fgrep; do
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10895 as_fn_executable_p "$ac_path_FGREP" || continue
10896 # Check for GNU ac_path_FGREP and select it if it is found.
10897 # Check for GNU $ac_path_FGREP
10898 case `"$ac_path_FGREP" --version 2>&1` in
10899 *GNU*)
10900 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10901 *)
10902 ac_count=0
10903 $as_echo_n 0123456789 >"conftest.in"
10904 while :
10905 do
10906 cat "conftest.in" "conftest.in" >"conftest.tmp"
10907 mv "conftest.tmp" "conftest.in"
10908 cp "conftest.in" "conftest.nl"
10909 $as_echo 'FGREP' >> "conftest.nl"
10910 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10912 as_fn_arith $ac_count + 1 && ac_count=$as_val
10913 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10914 # Best one so far, save it but keep looking for a better one
10915 ac_cv_path_FGREP="$ac_path_FGREP"
10916 ac_path_FGREP_max=$ac_count
10917 fi
10918 # 10*(2^10) chars as input seems more than enough
10919 test $ac_count -gt 10 && break
10920 done
10921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10922 esac
10923
10924 $ac_path_FGREP_found && break 3
10925 done
10926 done
10927 done
10928 IFS=$as_save_IFS
10929 if test -z "$ac_cv_path_FGREP"; then
10930 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10931 fi
10932 else
10933 ac_cv_path_FGREP=$FGREP
10934 fi
10935
10936 fi
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10939 $as_echo "$ac_cv_path_FGREP" >&6; }
10940 FGREP="$ac_cv_path_FGREP"
10941
10942
10943 test -z "$GREP" && GREP=grep
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963 # Check whether --with-gnu-ld was given.
10964 if test "${with_gnu_ld+set}" = set; then :
10965 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10966 else
10967 with_gnu_ld=no
10968 fi
10969
10970 ac_prog=ld
10971 if test "$GCC" = yes; then
10972 # Check if gcc -print-prog-name=ld gives a path.
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10974 $as_echo_n "checking for ld used by $CC... " >&6; }
10975 case $host in
10976 *-*-mingw*)
10977 # gcc leaves a trailing carriage return which upsets mingw
10978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10979 *)
10980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10981 esac
10982 case $ac_prog in
10983 # Accept absolute paths.
10984 [\\/]* | ?:[\\/]*)
10985 re_direlt='/[^/][^/]*/\.\./'
10986 # Canonicalize the pathname of ld
10987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10990 done
10991 test -z "$LD" && LD="$ac_prog"
10992 ;;
10993 "")
10994 # If it fails, then pretend we aren't using GCC.
10995 ac_prog=ld
10996 ;;
10997 *)
10998 # If it is relative, then search for the first ld in PATH.
10999 with_gnu_ld=unknown
11000 ;;
11001 esac
11002 elif test "$with_gnu_ld" = yes; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11004 $as_echo_n "checking for GNU ld... " >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11007 $as_echo_n "checking for non-GNU ld... " >&6; }
11008 fi
11009 if ${lt_cv_path_LD+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 if test -z "$LD"; then
11013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11014 for ac_dir in $PATH; do
11015 IFS="$lt_save_ifs"
11016 test -z "$ac_dir" && ac_dir=.
11017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11018 lt_cv_path_LD="$ac_dir/$ac_prog"
11019 # Check to see if the program is GNU ld. I'd rather use --version,
11020 # but apparently some variants of GNU ld only accept -v.
11021 # Break only if it was the GNU/non-GNU ld that we prefer.
11022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11023 *GNU* | *'with BFD'*)
11024 test "$with_gnu_ld" != no && break
11025 ;;
11026 *)
11027 test "$with_gnu_ld" != yes && break
11028 ;;
11029 esac
11030 fi
11031 done
11032 IFS="$lt_save_ifs"
11033 else
11034 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11035 fi
11036 fi
11037
11038 LD="$lt_cv_path_LD"
11039 if test -n "$LD"; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11041 $as_echo "$LD" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 fi
11046 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11048 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11049 if ${lt_cv_prog_gnu_ld+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11053 case `$LD -v 2>&1 </dev/null` in
11054 *GNU* | *'with BFD'*)
11055 lt_cv_prog_gnu_ld=yes
11056 ;;
11057 *)
11058 lt_cv_prog_gnu_ld=no
11059 ;;
11060 esac
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11063 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11064 with_gnu_ld=$lt_cv_prog_gnu_ld
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11075 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11076 if ${lt_cv_path_NM+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test -n "$NM"; then
11080 # Let the user override the test.
11081 lt_cv_path_NM="$NM"
11082 else
11083 lt_nm_to_check="${ac_tool_prefix}nm"
11084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11085 lt_nm_to_check="$lt_nm_to_check nm"
11086 fi
11087 for lt_tmp_nm in $lt_nm_to_check; do
11088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11089 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11090 IFS="$lt_save_ifs"
11091 test -z "$ac_dir" && ac_dir=.
11092 tmp_nm="$ac_dir/$lt_tmp_nm"
11093 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11094 # Check to see if the nm accepts a BSD-compat flag.
11095 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11096 # nm: unknown option "B" ignored
11097 # Tru64's nm complains that /dev/null is an invalid object file
11098 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11099 */dev/null* | *'Invalid file or object type'*)
11100 lt_cv_path_NM="$tmp_nm -B"
11101 break
11102 ;;
11103 *)
11104 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11105 */dev/null*)
11106 lt_cv_path_NM="$tmp_nm -p"
11107 break
11108 ;;
11109 *)
11110 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11111 continue # so that we can try to find one that supports BSD flags
11112 ;;
11113 esac
11114 ;;
11115 esac
11116 fi
11117 done
11118 IFS="$lt_save_ifs"
11119 done
11120 : ${lt_cv_path_NM=no}
11121 fi
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11124 $as_echo "$lt_cv_path_NM" >&6; }
11125 if test "$lt_cv_path_NM" != "no"; then
11126 NM="$lt_cv_path_NM"
11127 else
11128 # Didn't find any BSD compatible name lister, look for dumpbin.
11129 if test -n "$DUMPBIN"; then :
11130 # Let the user override the test.
11131 else
11132 if test -n "$ac_tool_prefix"; then
11133 for ac_prog in dumpbin "link -dump"
11134 do
11135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_prog_DUMPBIN+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 if test -n "$DUMPBIN"; then
11143 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11144 else
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11147 do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11155 fi
11156 done
11157 done
11158 IFS=$as_save_IFS
11159
11160 fi
11161 fi
11162 DUMPBIN=$ac_cv_prog_DUMPBIN
11163 if test -n "$DUMPBIN"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11165 $as_echo "$DUMPBIN" >&6; }
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169 fi
11170
11171
11172 test -n "$DUMPBIN" && break
11173 done
11174 fi
11175 if test -z "$DUMPBIN"; then
11176 ac_ct_DUMPBIN=$DUMPBIN
11177 for ac_prog in dumpbin "link -dump"
11178 do
11179 # Extract the first word of "$ac_prog", so it can be a program name with args.
11180 set dummy $ac_prog; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 if test -n "$ac_ct_DUMPBIN"; then
11187 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11188 else
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11191 do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200 done
11201 done
11202 IFS=$as_save_IFS
11203
11204 fi
11205 fi
11206 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11207 if test -n "$ac_ct_DUMPBIN"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11209 $as_echo "$ac_ct_DUMPBIN" >&6; }
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11213 fi
11214
11215
11216 test -n "$ac_ct_DUMPBIN" && break
11217 done
11218
11219 if test "x$ac_ct_DUMPBIN" = x; then
11220 DUMPBIN=":"
11221 else
11222 case $cross_compiling:$ac_tool_warned in
11223 yes:)
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11226 ac_tool_warned=yes ;;
11227 esac
11228 DUMPBIN=$ac_ct_DUMPBIN
11229 fi
11230 fi
11231
11232 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11233 *COFF*)
11234 DUMPBIN="$DUMPBIN -symbols"
11235 ;;
11236 *)
11237 DUMPBIN=:
11238 ;;
11239 esac
11240 fi
11241
11242 if test "$DUMPBIN" != ":"; then
11243 NM="$DUMPBIN"
11244 fi
11245 fi
11246 test -z "$NM" && NM=nm
11247
11248
11249
11250
11251
11252
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11254 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11255 if ${lt_cv_nm_interface+:} false; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 lt_cv_nm_interface="BSD nm"
11259 echo "int some_variable = 0;" > conftest.$ac_ext
11260 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11261 (eval "$ac_compile" 2>conftest.err)
11262 cat conftest.err >&5
11263 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11264 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11265 cat conftest.err >&5
11266 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11267 cat conftest.out >&5
11268 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11269 lt_cv_nm_interface="MS dumpbin"
11270 fi
11271 rm -f conftest*
11272 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11274 $as_echo "$lt_cv_nm_interface" >&6; }
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11277 $as_echo_n "checking whether ln -s works... " >&6; }
11278 LN_S=$as_ln_s
11279 if test "$LN_S" = "ln -s"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11281 $as_echo "yes" >&6; }
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11284 $as_echo "no, using $LN_S" >&6; }
11285 fi
11286
11287 # find the maximum length of command line arguments
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11289 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11290 if ${lt_cv_sys_max_cmd_len+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 i=0
11294 teststring="ABCD"
11295
11296 case $build_os in
11297 msdosdjgpp*)
11298 # On DJGPP, this test can blow up pretty badly due to problems in libc
11299 # (any single argument exceeding 2000 bytes causes a buffer overrun
11300 # during glob expansion). Even if it were fixed, the result of this
11301 # check would be larger than it should be.
11302 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11303 ;;
11304
11305 gnu*)
11306 # Under GNU Hurd, this test is not required because there is
11307 # no limit to the length of command line arguments.
11308 # Libtool will interpret -1 as no limit whatsoever
11309 lt_cv_sys_max_cmd_len=-1;
11310 ;;
11311
11312 cygwin* | mingw* | cegcc*)
11313 # On Win9x/ME, this test blows up -- it succeeds, but takes
11314 # about 5 minutes as the teststring grows exponentially.
11315 # Worse, since 9x/ME are not pre-emptively multitasking,
11316 # you end up with a "frozen" computer, even though with patience
11317 # the test eventually succeeds (with a max line length of 256k).
11318 # Instead, let's just punt: use the minimum linelength reported by
11319 # all of the supported platforms: 8192 (on NT/2K/XP).
11320 lt_cv_sys_max_cmd_len=8192;
11321 ;;
11322
11323 mint*)
11324 # On MiNT this can take a long time and run out of memory.
11325 lt_cv_sys_max_cmd_len=8192;
11326 ;;
11327
11328 amigaos*)
11329 # On AmigaOS with pdksh, this test takes hours, literally.
11330 # So we just punt and use a minimum line length of 8192.
11331 lt_cv_sys_max_cmd_len=8192;
11332 ;;
11333
11334 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11335 # This has been around since 386BSD, at least. Likely further.
11336 if test -x /sbin/sysctl; then
11337 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11338 elif test -x /usr/sbin/sysctl; then
11339 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11340 else
11341 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11342 fi
11343 # And add a safety zone
11344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11346 ;;
11347
11348 interix*)
11349 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11350 lt_cv_sys_max_cmd_len=196608
11351 ;;
11352
11353 os2*)
11354 # The test takes a long time on OS/2.
11355 lt_cv_sys_max_cmd_len=8192
11356 ;;
11357
11358 osf*)
11359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11361 # nice to cause kernel panics so lets avoid the loop below.
11362 # First set a reasonable default.
11363 lt_cv_sys_max_cmd_len=16384
11364 #
11365 if test -x /sbin/sysconfig; then
11366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11367 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11368 esac
11369 fi
11370 ;;
11371 sco3.2v5*)
11372 lt_cv_sys_max_cmd_len=102400
11373 ;;
11374 sysv5* | sco5v6* | sysv4.2uw2*)
11375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11376 if test -n "$kargmax"; then
11377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11378 else
11379 lt_cv_sys_max_cmd_len=32768
11380 fi
11381 ;;
11382 *)
11383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11384 if test -n "$lt_cv_sys_max_cmd_len" && \
11385 test undefined != "$lt_cv_sys_max_cmd_len"; then
11386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11388 else
11389 # Make teststring a little bigger before we do anything with it.
11390 # a 1K string should be a reasonable start.
11391 for i in 1 2 3 4 5 6 7 8 ; do
11392 teststring=$teststring$teststring
11393 done
11394 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11395 # If test is not a shell built-in, we'll probably end up computing a
11396 # maximum length that is only half of the actual maximum length, but
11397 # we can't tell.
11398 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11399 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11400 test $i != 17 # 1/2 MB should be enough
11401 do
11402 i=`expr $i + 1`
11403 teststring=$teststring$teststring
11404 done
11405 # Only check the string length outside the loop.
11406 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11407 teststring=
11408 # Add a significant safety factor because C++ compilers can tack on
11409 # massive amounts of additional arguments before passing them to the
11410 # linker. It appears as though 1/2 is a usable value.
11411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11412 fi
11413 ;;
11414 esac
11415
11416 fi
11417
11418 if test -n $lt_cv_sys_max_cmd_len ; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11420 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11423 $as_echo "none" >&6; }
11424 fi
11425 max_cmd_len=$lt_cv_sys_max_cmd_len
11426
11427
11428
11429
11430
11431
11432 : ${CP="cp -f"}
11433 : ${MV="mv -f"}
11434 : ${RM="rm -f"}
11435
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11437 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11438 # Try some XSI features
11439 xsi_shell=no
11440 ( _lt_dummy="a/b/c"
11441 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11442 = c,a/b,b/c, \
11443 && eval 'test $(( 1 + 1 )) -eq 2 \
11444 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11445 && xsi_shell=yes
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11447 $as_echo "$xsi_shell" >&6; }
11448
11449
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11451 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11452 lt_shell_append=no
11453 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11454 >/dev/null 2>&1 \
11455 && lt_shell_append=yes
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11457 $as_echo "$lt_shell_append" >&6; }
11458
11459
11460 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11461 lt_unset=unset
11462 else
11463 lt_unset=false
11464 fi
11465
11466
11467
11468
11469
11470 # test EBCDIC or ASCII
11471 case `echo X|tr X '\101'` in
11472 A) # ASCII based system
11473 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11474 lt_SP2NL='tr \040 \012'
11475 lt_NL2SP='tr \015\012 \040\040'
11476 ;;
11477 *) # EBCDIC based system
11478 lt_SP2NL='tr \100 \n'
11479 lt_NL2SP='tr \r\n \100\100'
11480 ;;
11481 esac
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11492 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11493 if ${lt_cv_to_host_file_cmd+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 case $host in
11497 *-*-mingw* )
11498 case $build in
11499 *-*-mingw* ) # actually msys
11500 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11501 ;;
11502 *-*-cygwin* )
11503 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11504 ;;
11505 * ) # otherwise, assume *nix
11506 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11507 ;;
11508 esac
11509 ;;
11510 *-*-cygwin* )
11511 case $build in
11512 *-*-mingw* ) # actually msys
11513 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11514 ;;
11515 *-*-cygwin* )
11516 lt_cv_to_host_file_cmd=func_convert_file_noop
11517 ;;
11518 * ) # otherwise, assume *nix
11519 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11520 ;;
11521 esac
11522 ;;
11523 * ) # unhandled hosts (and "normal" native builds)
11524 lt_cv_to_host_file_cmd=func_convert_file_noop
11525 ;;
11526 esac
11527
11528 fi
11529
11530 to_host_file_cmd=$lt_cv_to_host_file_cmd
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11532 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11533
11534
11535
11536
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11539 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11540 if ${lt_cv_to_tool_file_cmd+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 #assume ordinary cross tools, or native build.
11544 lt_cv_to_tool_file_cmd=func_convert_file_noop
11545 case $host in
11546 *-*-mingw* )
11547 case $build in
11548 *-*-mingw* ) # actually msys
11549 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11550 ;;
11551 esac
11552 ;;
11553 esac
11554
11555 fi
11556
11557 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11559 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11560
11561
11562
11563
11564
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11566 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11567 if ${lt_cv_ld_reload_flag+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 lt_cv_ld_reload_flag='-r'
11571 fi
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11573 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11574 reload_flag=$lt_cv_ld_reload_flag
11575 case $reload_flag in
11576 "" | " "*) ;;
11577 *) reload_flag=" $reload_flag" ;;
11578 esac
11579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11580 case $host_os in
11581 cygwin* | mingw* | pw32* | cegcc*)
11582 if test "$GCC" != yes; then
11583 reload_cmds=false
11584 fi
11585 ;;
11586 darwin*)
11587 if test "$GCC" = yes; then
11588 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11589 else
11590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11591 fi
11592 ;;
11593 esac
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603 if test -n "$ac_tool_prefix"; then
11604 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11605 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_prog_OBJDUMP+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 if test -n "$OBJDUMP"; then
11612 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11613 else
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11616 do
11617 IFS=$as_save_IFS
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 break 2
11624 fi
11625 done
11626 done
11627 IFS=$as_save_IFS
11628
11629 fi
11630 fi
11631 OBJDUMP=$ac_cv_prog_OBJDUMP
11632 if test -n "$OBJDUMP"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11634 $as_echo "$OBJDUMP" >&6; }
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11638 fi
11639
11640
11641 fi
11642 if test -z "$ac_cv_prog_OBJDUMP"; then
11643 ac_ct_OBJDUMP=$OBJDUMP
11644 # Extract the first word of "objdump", so it can be a program name with args.
11645 set dummy objdump; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 if test -n "$ac_ct_OBJDUMP"; then
11652 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11653 else
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11656 do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11664 fi
11665 done
11666 done
11667 IFS=$as_save_IFS
11668
11669 fi
11670 fi
11671 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11672 if test -n "$ac_ct_OBJDUMP"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11674 $as_echo "$ac_ct_OBJDUMP" >&6; }
11675 else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11678 fi
11679
11680 if test "x$ac_ct_OBJDUMP" = x; then
11681 OBJDUMP="false"
11682 else
11683 case $cross_compiling:$ac_tool_warned in
11684 yes:)
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11687 ac_tool_warned=yes ;;
11688 esac
11689 OBJDUMP=$ac_ct_OBJDUMP
11690 fi
11691 else
11692 OBJDUMP="$ac_cv_prog_OBJDUMP"
11693 fi
11694
11695 test -z "$OBJDUMP" && OBJDUMP=objdump
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11706 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11707 if ${lt_cv_deplibs_check_method+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 lt_cv_file_magic_cmd='$MAGIC_CMD'
11711 lt_cv_file_magic_test_file=
11712 lt_cv_deplibs_check_method='unknown'
11713 # Need to set the preceding variable on all platforms that support
11714 # interlibrary dependencies.
11715 # 'none' -- dependencies not supported.
11716 # `unknown' -- same as none, but documents that we really don't know.
11717 # 'pass_all' -- all dependencies passed with no checks.
11718 # 'test_compile' -- check by making test program.
11719 # 'file_magic [[regex]]' -- check by looking for files in library path
11720 # which responds to the $file_magic_cmd with a given extended regex.
11721 # If you have `file' or equivalent on your system and you're not sure
11722 # whether `pass_all' will *always* work, you probably want this one.
11723
11724 case $host_os in
11725 aix[4-9]*)
11726 lt_cv_deplibs_check_method=pass_all
11727 ;;
11728
11729 beos*)
11730 lt_cv_deplibs_check_method=pass_all
11731 ;;
11732
11733 bsdi[45]*)
11734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11735 lt_cv_file_magic_cmd='/usr/bin/file -L'
11736 lt_cv_file_magic_test_file=/shlib/libc.so
11737 ;;
11738
11739 cygwin*)
11740 # func_win32_libid is a shell function defined in ltmain.sh
11741 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11742 lt_cv_file_magic_cmd='func_win32_libid'
11743 ;;
11744
11745 mingw* | pw32*)
11746 # Base MSYS/MinGW do not provide the 'file' command needed by
11747 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11748 # unless we find 'file', for example because we are cross-compiling.
11749 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11750 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11751 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11752 lt_cv_file_magic_cmd='func_win32_libid'
11753 else
11754 # Keep this pattern in sync with the one in func_win32_libid.
11755 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11756 lt_cv_file_magic_cmd='$OBJDUMP -f'
11757 fi
11758 ;;
11759
11760 cegcc*)
11761 # use the weaker test based on 'objdump'. See mingw*.
11762 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11763 lt_cv_file_magic_cmd='$OBJDUMP -f'
11764 ;;
11765
11766 darwin* | rhapsody*)
11767 lt_cv_deplibs_check_method=pass_all
11768 ;;
11769
11770 freebsd* | dragonfly*)
11771 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11772 case $host_cpu in
11773 i*86 )
11774 # Not sure whether the presence of OpenBSD here was a mistake.
11775 # Let's accept both of them until this is cleared up.
11776 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11777 lt_cv_file_magic_cmd=/usr/bin/file
11778 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11779 ;;
11780 esac
11781 else
11782 lt_cv_deplibs_check_method=pass_all
11783 fi
11784 ;;
11785
11786 haiku*)
11787 lt_cv_deplibs_check_method=pass_all
11788 ;;
11789
11790 hpux10.20* | hpux11*)
11791 lt_cv_file_magic_cmd=/usr/bin/file
11792 case $host_cpu in
11793 ia64*)
11794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11795 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11796 ;;
11797 hppa*64*)
11798 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]'
11799 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11800 ;;
11801 *)
11802 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11803 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11804 ;;
11805 esac
11806 ;;
11807
11808 interix[3-9]*)
11809 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11811 ;;
11812
11813 irix5* | irix6* | nonstopux*)
11814 case $LD in
11815 *-32|*"-32 ") libmagic=32-bit;;
11816 *-n32|*"-n32 ") libmagic=N32;;
11817 *-64|*"-64 ") libmagic=64-bit;;
11818 *) libmagic=never-match;;
11819 esac
11820 lt_cv_deplibs_check_method=pass_all
11821 ;;
11822
11823 # This must be glibc/ELF.
11824 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11825 lt_cv_deplibs_check_method=pass_all
11826 ;;
11827
11828 netbsd* | netbsdelf*-gnu)
11829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11831 else
11832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11833 fi
11834 ;;
11835
11836 newos6*)
11837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11838 lt_cv_file_magic_cmd=/usr/bin/file
11839 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11840 ;;
11841
11842 *nto* | *qnx*)
11843 lt_cv_deplibs_check_method=pass_all
11844 ;;
11845
11846 openbsd*)
11847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11849 else
11850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11851 fi
11852 ;;
11853
11854 osf3* | osf4* | osf5*)
11855 lt_cv_deplibs_check_method=pass_all
11856 ;;
11857
11858 rdos*)
11859 lt_cv_deplibs_check_method=pass_all
11860 ;;
11861
11862 solaris*)
11863 lt_cv_deplibs_check_method=pass_all
11864 ;;
11865
11866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11867 lt_cv_deplibs_check_method=pass_all
11868 ;;
11869
11870 sysv4 | sysv4.3*)
11871 case $host_vendor in
11872 motorola)
11873 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]'
11874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11875 ;;
11876 ncr)
11877 lt_cv_deplibs_check_method=pass_all
11878 ;;
11879 sequent)
11880 lt_cv_file_magic_cmd='/bin/file'
11881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11882 ;;
11883 sni)
11884 lt_cv_file_magic_cmd='/bin/file'
11885 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11886 lt_cv_file_magic_test_file=/lib/libc.so
11887 ;;
11888 siemens)
11889 lt_cv_deplibs_check_method=pass_all
11890 ;;
11891 pc)
11892 lt_cv_deplibs_check_method=pass_all
11893 ;;
11894 esac
11895 ;;
11896
11897 tpf*)
11898 lt_cv_deplibs_check_method=pass_all
11899 ;;
11900 esac
11901
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11904 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11905
11906 file_magic_glob=
11907 want_nocaseglob=no
11908 if test "$build" = "$host"; then
11909 case $host_os in
11910 mingw* | pw32*)
11911 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11912 want_nocaseglob=yes
11913 else
11914 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11915 fi
11916 ;;
11917 esac
11918 fi
11919
11920 file_magic_cmd=$lt_cv_file_magic_cmd
11921 deplibs_check_method=$lt_cv_deplibs_check_method
11922 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945 if test -n "$ac_tool_prefix"; then
11946 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11947 set dummy ${ac_tool_prefix}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_DLLTOOL+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$DLLTOOL"; then
11954 ac_cv_prog_DLLTOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_DLLTOOL="${ac_tool_prefix}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 DLLTOOL=$ac_cv_prog_DLLTOOL
11974 if test -n "$DLLTOOL"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11976 $as_echo "$DLLTOOL" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981
11982
11983 fi
11984 if test -z "$ac_cv_prog_DLLTOOL"; then
11985 ac_ct_DLLTOOL=$DLLTOOL
11986 # Extract the first word of "dlltool", so it can be a program name with args.
11987 set dummy dlltool; ac_word=$2
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 if test -n "$ac_ct_DLLTOOL"; then
11994 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12006 fi
12007 done
12008 done
12009 IFS=$as_save_IFS
12010
12011 fi
12012 fi
12013 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12014 if test -n "$ac_ct_DLLTOOL"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12016 $as_echo "$ac_ct_DLLTOOL" >&6; }
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 fi
12021
12022 if test "x$ac_ct_DLLTOOL" = x; then
12023 DLLTOOL="false"
12024 else
12025 case $cross_compiling:$ac_tool_warned in
12026 yes:)
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12029 ac_tool_warned=yes ;;
12030 esac
12031 DLLTOOL=$ac_ct_DLLTOOL
12032 fi
12033 else
12034 DLLTOOL="$ac_cv_prog_DLLTOOL"
12035 fi
12036
12037 test -z "$DLLTOOL" && DLLTOOL=dlltool
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12049 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12050 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 lt_cv_sharedlib_from_linklib_cmd='unknown'
12054
12055 case $host_os in
12056 cygwin* | mingw* | pw32* | cegcc*)
12057 # two different shell functions defined in ltmain.sh
12058 # decide which to use based on capabilities of $DLLTOOL
12059 case `$DLLTOOL --help 2>&1` in
12060 *--identify-strict*)
12061 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12062 ;;
12063 *)
12064 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12065 ;;
12066 esac
12067 ;;
12068 *)
12069 # fallback: assume linklib IS sharedlib
12070 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12071 ;;
12072 esac
12073
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12076 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12077 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12078 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12079
12080
12081
12082
12083
12084
12085
12086 if test -n "$ac_tool_prefix"; then
12087 for ac_prog in ar
12088 do
12089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_prog_AR+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 if test -n "$AR"; then
12097 ac_cv_prog_AR="$AR" # Let the user override the test.
12098 else
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12101 do
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12109 fi
12110 done
12111 done
12112 IFS=$as_save_IFS
12113
12114 fi
12115 fi
12116 AR=$ac_cv_prog_AR
12117 if test -n "$AR"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12119 $as_echo "$AR" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123 fi
12124
12125
12126 test -n "$AR" && break
12127 done
12128 fi
12129 if test -z "$AR"; then
12130 ac_ct_AR=$AR
12131 for ac_prog in ar
12132 do
12133 # Extract the first word of "$ac_prog", so it can be a program name with args.
12134 set dummy $ac_prog; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 if test -n "$ac_ct_AR"; then
12141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12142 else
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12145 do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150 ac_cv_prog_ac_ct_AR="$ac_prog"
12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 break 2
12153 fi
12154 done
12155 done
12156 IFS=$as_save_IFS
12157
12158 fi
12159 fi
12160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12161 if test -n "$ac_ct_AR"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12163 $as_echo "$ac_ct_AR" >&6; }
12164 else
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12167 fi
12168
12169
12170 test -n "$ac_ct_AR" && break
12171 done
12172
12173 if test "x$ac_ct_AR" = x; then
12174 AR="false"
12175 else
12176 case $cross_compiling:$ac_tool_warned in
12177 yes:)
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12180 ac_tool_warned=yes ;;
12181 esac
12182 AR=$ac_ct_AR
12183 fi
12184 fi
12185
12186 : ${AR=ar}
12187 : ${AR_FLAGS=cru}
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12200 $as_echo_n "checking for archiver @FILE support... " >&6; }
12201 if ${lt_cv_ar_at_file+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 lt_cv_ar_at_file=no
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207
12208 int
12209 main ()
12210 {
12211
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_c_try_compile "$LINENO"; then :
12217 echo conftest.$ac_objext > conftest.lst
12218 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12220 (eval $lt_ar_try) 2>&5
12221 ac_status=$?
12222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12223 test $ac_status = 0; }
12224 if test "$ac_status" -eq 0; then
12225 # Ensure the archiver fails upon bogus file names.
12226 rm -f conftest.$ac_objext libconftest.a
12227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12228 (eval $lt_ar_try) 2>&5
12229 ac_status=$?
12230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231 test $ac_status = 0; }
12232 if test "$ac_status" -ne 0; then
12233 lt_cv_ar_at_file=@
12234 fi
12235 fi
12236 rm -f conftest.* libconftest.a
12237
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12243 $as_echo "$lt_cv_ar_at_file" >&6; }
12244
12245 if test "x$lt_cv_ar_at_file" = xno; then
12246 archiver_list_spec=
12247 else
12248 archiver_list_spec=$lt_cv_ar_at_file
12249 fi
12250
12251
12252
12253
12254
12255
12256
12257 if test -n "$ac_tool_prefix"; then
12258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12259 set dummy ${ac_tool_prefix}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_STRIP+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 if test -n "$STRIP"; then
12266 ac_cv_prog_STRIP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12275 ac_cv_prog_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
12286 if test -n "$STRIP"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12288 $as_echo "$STRIP" >&6; }
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12292 fi
12293
12294
12295 fi
12296 if test -z "$ac_cv_prog_STRIP"; then
12297 ac_ct_STRIP=$STRIP
12298 # Extract the first word of "strip", so it can be a program name with args.
12299 set dummy strip; ac_word=$2
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301 $as_echo_n "checking for $ac_word... " >&6; }
12302 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 if test -n "$ac_ct_STRIP"; then
12306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12307 else
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12310 do
12311 IFS=$as_save_IFS
12312 test -z "$as_dir" && as_dir=.
12313 for ac_exec_ext in '' $ac_executable_extensions; do
12314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315 ac_cv_prog_ac_ct_STRIP="strip"
12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 break 2
12318 fi
12319 done
12320 done
12321 IFS=$as_save_IFS
12322
12323 fi
12324 fi
12325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12326 if test -n "$ac_ct_STRIP"; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12328 $as_echo "$ac_ct_STRIP" >&6; }
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332 fi
12333
12334 if test "x$ac_ct_STRIP" = x; then
12335 STRIP=":"
12336 else
12337 case $cross_compiling:$ac_tool_warned in
12338 yes:)
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12341 ac_tool_warned=yes ;;
12342 esac
12343 STRIP=$ac_ct_STRIP
12344 fi
12345 else
12346 STRIP="$ac_cv_prog_STRIP"
12347 fi
12348
12349 test -z "$STRIP" && STRIP=:
12350
12351
12352
12353
12354
12355
12356 if test -n "$ac_tool_prefix"; then
12357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12358 set dummy ${ac_tool_prefix}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_RANLIB+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 if test -n "$RANLIB"; then
12365 ac_cv_prog_RANLIB="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374 ac_cv_prog_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
12385 if test -n "$RANLIB"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12387 $as_echo "$RANLIB" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 fi
12392
12393
12394 fi
12395 if test -z "$ac_cv_prog_RANLIB"; then
12396 ac_ct_RANLIB=$RANLIB
12397 # Extract the first word of "ranlib", so it can be a program name with args.
12398 set dummy ranlib; ac_word=$2
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400 $as_echo_n "checking for $ac_word... " >&6; }
12401 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 if test -n "$ac_ct_RANLIB"; then
12405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12406 else
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12409 do
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12414 ac_cv_prog_ac_ct_RANLIB="ranlib"
12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 break 2
12417 fi
12418 done
12419 done
12420 IFS=$as_save_IFS
12421
12422 fi
12423 fi
12424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12425 if test -n "$ac_ct_RANLIB"; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12427 $as_echo "$ac_ct_RANLIB" >&6; }
12428 else
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 $as_echo "no" >&6; }
12431 fi
12432
12433 if test "x$ac_ct_RANLIB" = x; then
12434 RANLIB=":"
12435 else
12436 case $cross_compiling:$ac_tool_warned in
12437 yes:)
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12440 ac_tool_warned=yes ;;
12441 esac
12442 RANLIB=$ac_ct_RANLIB
12443 fi
12444 else
12445 RANLIB="$ac_cv_prog_RANLIB"
12446 fi
12447
12448 test -z "$RANLIB" && RANLIB=:
12449
12450
12451
12452
12453
12454
12455 # Determine commands to create old-style static archives.
12456 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12457 old_postinstall_cmds='chmod 644 $oldlib'
12458 old_postuninstall_cmds=
12459
12460 if test -n "$RANLIB"; then
12461 case $host_os in
12462 openbsd*)
12463 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12464 ;;
12465 *)
12466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12467 ;;
12468 esac
12469 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12470 fi
12471
12472 case $host_os in
12473 darwin*)
12474 lock_old_archive_extraction=yes ;;
12475 *)
12476 lock_old_archive_extraction=no ;;
12477 esac
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517 # If no C compiler was specified, use CC.
12518 LTCC=${LTCC-"$CC"}
12519
12520 # If no C compiler flags were specified, use CFLAGS.
12521 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12522
12523 # Allow CC to be a program name with arguments.
12524 compiler=$CC
12525
12526
12527 # Check for command to grab the raw symbol name followed by C symbol from nm.
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12529 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12530 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533
12534 # These are sane defaults that work on at least a few old systems.
12535 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12536
12537 # Character class describing NM global symbol codes.
12538 symcode='[BCDEGRST]'
12539
12540 # Regexp to match symbols that can be accessed directly from C.
12541 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12542
12543 # Define system-specific variables.
12544 case $host_os in
12545 aix*)
12546 symcode='[BCDT]'
12547 ;;
12548 cygwin* | mingw* | pw32* | cegcc*)
12549 symcode='[ABCDGISTW]'
12550 ;;
12551 hpux*)
12552 if test "$host_cpu" = ia64; then
12553 symcode='[ABCDEGRST]'
12554 fi
12555 ;;
12556 irix* | nonstopux*)
12557 symcode='[BCDEGRST]'
12558 ;;
12559 osf*)
12560 symcode='[BCDEGQRST]'
12561 ;;
12562 solaris*)
12563 symcode='[BDRT]'
12564 ;;
12565 sco3.2v5*)
12566 symcode='[DT]'
12567 ;;
12568 sysv4.2uw2*)
12569 symcode='[DT]'
12570 ;;
12571 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12572 symcode='[ABDT]'
12573 ;;
12574 sysv4)
12575 symcode='[DFNSTU]'
12576 ;;
12577 esac
12578
12579 # If we're using GNU nm, then use its standard symbol codes.
12580 case `$NM -V 2>&1` in
12581 *GNU* | *'with BFD'*)
12582 symcode='[ABCDGIRSTW]' ;;
12583 esac
12584
12585 # Transform an extracted symbol line into a proper C declaration.
12586 # Some systems (esp. on ia64) link data and code symbols differently,
12587 # so use this general approach.
12588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12589
12590 # Transform an extracted symbol line into symbol name and symbol address
12591 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12592 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'"
12593
12594 # Handle CRLF in mingw tool chain
12595 opt_cr=
12596 case $build_os in
12597 mingw*)
12598 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12599 ;;
12600 esac
12601
12602 # Try without a prefix underscore, then with it.
12603 for ac_symprfx in "" "_"; do
12604
12605 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12606 symxfrm="\\1 $ac_symprfx\\2 \\2"
12607
12608 # Write the raw and C identifiers.
12609 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12610 # Fake it for dumpbin and say T for any non-static function
12611 # and D for any global variable.
12612 # Also find C++ and __fastcall symbols from MSVC++,
12613 # which start with @ or ?.
12614 lt_cv_sys_global_symbol_pipe="$AWK '"\
12615 " {last_section=section; section=\$ 3};"\
12616 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12617 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12618 " \$ 0!~/External *\|/{next};"\
12619 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12620 " {if(hide[section]) next};"\
12621 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12622 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12623 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12624 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12625 " ' prfx=^$ac_symprfx"
12626 else
12627 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12628 fi
12629 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12630
12631 # Check to see that the pipe works correctly.
12632 pipe_works=no
12633
12634 rm -f conftest*
12635 cat > conftest.$ac_ext <<_LT_EOF
12636 #ifdef __cplusplus
12637 extern "C" {
12638 #endif
12639 char nm_test_var;
12640 void nm_test_func(void);
12641 void nm_test_func(void){}
12642 #ifdef __cplusplus
12643 }
12644 #endif
12645 int main(){nm_test_var='a';nm_test_func();return(0);}
12646 _LT_EOF
12647
12648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12649 (eval $ac_compile) 2>&5
12650 ac_status=$?
12651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12652 test $ac_status = 0; }; then
12653 # Now try to grab the symbols.
12654 nlist=conftest.nm
12655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12656 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12657 ac_status=$?
12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659 test $ac_status = 0; } && test -s "$nlist"; then
12660 # Try sorting and uniquifying the output.
12661 if sort "$nlist" | uniq > "$nlist"T; then
12662 mv -f "$nlist"T "$nlist"
12663 else
12664 rm -f "$nlist"T
12665 fi
12666
12667 # Make sure that we snagged all the symbols we need.
12668 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12669 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12670 cat <<_LT_EOF > conftest.$ac_ext
12671 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12672 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12673 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12674 relocations are performed -- see ld's documentation on pseudo-relocs. */
12675 # define LT_DLSYM_CONST
12676 #elif defined(__osf__)
12677 /* This system does not cope well with relocations in const data. */
12678 # define LT_DLSYM_CONST
12679 #else
12680 # define LT_DLSYM_CONST const
12681 #endif
12682
12683 #ifdef __cplusplus
12684 extern "C" {
12685 #endif
12686
12687 _LT_EOF
12688 # Now generate the symbol file.
12689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12690
12691 cat <<_LT_EOF >> conftest.$ac_ext
12692
12693 /* The mapping between symbol names and symbols. */
12694 LT_DLSYM_CONST struct {
12695 const char *name;
12696 void *address;
12697 }
12698 lt__PROGRAM__LTX_preloaded_symbols[] =
12699 {
12700 { "@PROGRAM@", (void *) 0 },
12701 _LT_EOF
12702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12703 cat <<\_LT_EOF >> conftest.$ac_ext
12704 {0, (void *) 0}
12705 };
12706
12707 /* This works around a problem in FreeBSD linker */
12708 #ifdef FREEBSD_WORKAROUND
12709 static const void *lt_preloaded_setup() {
12710 return lt__PROGRAM__LTX_preloaded_symbols;
12711 }
12712 #endif
12713
12714 #ifdef __cplusplus
12715 }
12716 #endif
12717 _LT_EOF
12718 # Now try linking the two files.
12719 mv conftest.$ac_objext conftstm.$ac_objext
12720 lt_globsym_save_LIBS=$LIBS
12721 lt_globsym_save_CFLAGS=$CFLAGS
12722 LIBS="conftstm.$ac_objext"
12723 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12725 (eval $ac_link) 2>&5
12726 ac_status=$?
12727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12729 pipe_works=yes
12730 fi
12731 LIBS=$lt_globsym_save_LIBS
12732 CFLAGS=$lt_globsym_save_CFLAGS
12733 else
12734 echo "cannot find nm_test_func in $nlist" >&5
12735 fi
12736 else
12737 echo "cannot find nm_test_var in $nlist" >&5
12738 fi
12739 else
12740 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12741 fi
12742 else
12743 echo "$progname: failed program was:" >&5
12744 cat conftest.$ac_ext >&5
12745 fi
12746 rm -rf conftest* conftst*
12747
12748 # Do not use the global_symbol_pipe unless it works.
12749 if test "$pipe_works" = yes; then
12750 break
12751 else
12752 lt_cv_sys_global_symbol_pipe=
12753 fi
12754 done
12755
12756 fi
12757
12758 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12759 lt_cv_sys_global_symbol_to_cdecl=
12760 fi
12761 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12763 $as_echo "failed" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12766 $as_echo "ok" >&6; }
12767 fi
12768
12769 # Response file support.
12770 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12771 nm_file_list_spec='@'
12772 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12773 nm_file_list_spec='@'
12774 fi
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12803 $as_echo_n "checking for sysroot... " >&6; }
12804
12805 # Check whether --with-sysroot was given.
12806 if test "${with_sysroot+set}" = set; then :
12807 withval=$with_sysroot;
12808 else
12809 with_sysroot=no
12810 fi
12811
12812
12813 lt_sysroot=
12814 case ${with_sysroot} in #(
12815 yes)
12816 if test "$GCC" = yes; then
12817 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12818 fi
12819 ;; #(
12820 /*)
12821 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12822 ;; #(
12823 no|'')
12824 ;; #(
12825 *)
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12827 $as_echo "${with_sysroot}" >&6; }
12828 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12829 ;;
12830 esac
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12833 $as_echo "${lt_sysroot:-no}" >&6; }
12834
12835
12836
12837
12838
12839 # Check whether --enable-libtool-lock was given.
12840 if test "${enable_libtool_lock+set}" = set; then :
12841 enableval=$enable_libtool_lock;
12842 fi
12843
12844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12845
12846 # Some flags need to be propagated to the compiler or linker for good
12847 # libtool support.
12848 case $host in
12849 ia64-*-hpux*)
12850 # Find out which ABI we are using.
12851 echo 'int i;' > conftest.$ac_ext
12852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853 (eval $ac_compile) 2>&5
12854 ac_status=$?
12855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856 test $ac_status = 0; }; then
12857 case `/usr/bin/file conftest.$ac_objext` in
12858 *ELF-32*)
12859 HPUX_IA64_MODE="32"
12860 ;;
12861 *ELF-64*)
12862 HPUX_IA64_MODE="64"
12863 ;;
12864 esac
12865 fi
12866 rm -rf conftest*
12867 ;;
12868 *-*-irix6*)
12869 # Find out which ABI we are using.
12870 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12872 (eval $ac_compile) 2>&5
12873 ac_status=$?
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; }; then
12876 if test "$lt_cv_prog_gnu_ld" = yes; then
12877 case `/usr/bin/file conftest.$ac_objext` in
12878 *32-bit*)
12879 LD="${LD-ld} -melf32bsmip"
12880 ;;
12881 *N32*)
12882 LD="${LD-ld} -melf32bmipn32"
12883 ;;
12884 *64-bit*)
12885 LD="${LD-ld} -melf64bmip"
12886 ;;
12887 esac
12888 else
12889 case `/usr/bin/file conftest.$ac_objext` in
12890 *32-bit*)
12891 LD="${LD-ld} -32"
12892 ;;
12893 *N32*)
12894 LD="${LD-ld} -n32"
12895 ;;
12896 *64-bit*)
12897 LD="${LD-ld} -64"
12898 ;;
12899 esac
12900 fi
12901 fi
12902 rm -rf conftest*
12903 ;;
12904
12905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12907 # Find out which ABI we are using.
12908 echo 'int i;' > conftest.$ac_ext
12909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12910 (eval $ac_compile) 2>&5
12911 ac_status=$?
12912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12913 test $ac_status = 0; }; then
12914 case `/usr/bin/file conftest.o` in
12915 *32-bit*)
12916 case $host in
12917 x86_64-*kfreebsd*-gnu)
12918 LD="${LD-ld} -m elf_i386_fbsd"
12919 ;;
12920 x86_64-*linux*)
12921 case `/usr/bin/file conftest.o` in
12922 *x86-64*)
12923 LD="${LD-ld} -m elf32_x86_64"
12924 ;;
12925 *)
12926 LD="${LD-ld} -m elf_i386"
12927 ;;
12928 esac
12929 ;;
12930 ppc64-*linux*|powerpc64-*linux*)
12931 LD="${LD-ld} -m elf32ppclinux"
12932 ;;
12933 s390x-*linux*)
12934 LD="${LD-ld} -m elf_s390"
12935 ;;
12936 sparc64-*linux*)
12937 LD="${LD-ld} -m elf32_sparc"
12938 ;;
12939 esac
12940 ;;
12941 *64-bit*)
12942 case $host in
12943 x86_64-*kfreebsd*-gnu)
12944 LD="${LD-ld} -m elf_x86_64_fbsd"
12945 ;;
12946 x86_64-*linux*)
12947 LD="${LD-ld} -m elf_x86_64"
12948 ;;
12949 ppc*-*linux*|powerpc*-*linux*)
12950 LD="${LD-ld} -m elf64ppc"
12951 ;;
12952 s390*-*linux*|s390*-*tpf*)
12953 LD="${LD-ld} -m elf64_s390"
12954 ;;
12955 sparc*-*linux*)
12956 LD="${LD-ld} -m elf64_sparc"
12957 ;;
12958 esac
12959 ;;
12960 esac
12961 fi
12962 rm -rf conftest*
12963 ;;
12964
12965 *-*-sco3.2v5*)
12966 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12967 SAVE_CFLAGS="$CFLAGS"
12968 CFLAGS="$CFLAGS -belf"
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12970 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12971 if ${lt_cv_cc_needs_belf+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 ac_ext=c
12975 ac_cpp='$CPP $CPPFLAGS'
12976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12979
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982
12983 int
12984 main ()
12985 {
12986
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 if ac_fn_c_try_link "$LINENO"; then :
12992 lt_cv_cc_needs_belf=yes
12993 else
12994 lt_cv_cc_needs_belf=no
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
12998 ac_ext=c
12999 ac_cpp='$CPP $CPPFLAGS'
13000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13003
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13006 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13007 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13009 CFLAGS="$SAVE_CFLAGS"
13010 fi
13011 ;;
13012 *-*solaris*)
13013 # Find out which ABI we are using.
13014 echo 'int i;' > conftest.$ac_ext
13015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13016 (eval $ac_compile) 2>&5
13017 ac_status=$?
13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019 test $ac_status = 0; }; then
13020 case `/usr/bin/file conftest.o` in
13021 *64-bit*)
13022 case $lt_cv_prog_gnu_ld in
13023 yes*)
13024 case $host in
13025 i?86-*-solaris*)
13026 LD="${LD-ld} -m elf_x86_64"
13027 ;;
13028 sparc*-*-solaris*)
13029 LD="${LD-ld} -m elf64_sparc"
13030 ;;
13031 esac
13032 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13033 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13034 LD="${LD-ld}_sol2"
13035 fi
13036 ;;
13037 *)
13038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13039 LD="${LD-ld} -64"
13040 fi
13041 ;;
13042 esac
13043 ;;
13044 esac
13045 fi
13046 rm -rf conftest*
13047 ;;
13048 esac
13049
13050 need_locks="$enable_libtool_lock"
13051
13052 if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13054 set dummy ${ac_tool_prefix}mt; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 if test -n "$MANIFEST_TOOL"; then
13061 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13062 else
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13065 do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074 done
13075 done
13076 IFS=$as_save_IFS
13077
13078 fi
13079 fi
13080 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13081 if test -n "$MANIFEST_TOOL"; then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13083 $as_echo "$MANIFEST_TOOL" >&6; }
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13087 fi
13088
13089
13090 fi
13091 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13092 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13093 # Extract the first word of "mt", so it can be a program name with args.
13094 set dummy mt; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 if test -n "$ac_ct_MANIFEST_TOOL"; then
13101 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13102 else
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13110 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114 done
13115 done
13116 IFS=$as_save_IFS
13117
13118 fi
13119 fi
13120 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13121 if test -n "$ac_ct_MANIFEST_TOOL"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13123 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127 fi
13128
13129 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13130 MANIFEST_TOOL=":"
13131 else
13132 case $cross_compiling:$ac_tool_warned in
13133 yes:)
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13136 ac_tool_warned=yes ;;
13137 esac
13138 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13139 fi
13140 else
13141 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13142 fi
13143
13144 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13146 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13147 if ${lt_cv_path_mainfest_tool+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 lt_cv_path_mainfest_tool=no
13151 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13152 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13153 cat conftest.err >&5
13154 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13155 lt_cv_path_mainfest_tool=yes
13156 fi
13157 rm -f conftest*
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13160 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13161 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13162 MANIFEST_TOOL=:
13163 fi
13164
13165
13166
13167
13168
13169
13170 case $host_os in
13171 rhapsody* | darwin*)
13172 if test -n "$ac_tool_prefix"; then
13173 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13174 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 if test -n "$DSYMUTIL"; then
13181 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13185 do
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13193 fi
13194 done
13195 done
13196 IFS=$as_save_IFS
13197
13198 fi
13199 fi
13200 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13201 if test -n "$DSYMUTIL"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13203 $as_echo "$DSYMUTIL" >&6; }
13204 else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13207 fi
13208
13209
13210 fi
13211 if test -z "$ac_cv_prog_DSYMUTIL"; then
13212 ac_ct_DSYMUTIL=$DSYMUTIL
13213 # Extract the first word of "dsymutil", so it can be a program name with args.
13214 set dummy dsymutil; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 if test -n "$ac_ct_DSYMUTIL"; then
13221 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13225 do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13230 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13233 fi
13234 done
13235 done
13236 IFS=$as_save_IFS
13237
13238 fi
13239 fi
13240 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13241 if test -n "$ac_ct_DSYMUTIL"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13243 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13244 else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247 fi
13248
13249 if test "x$ac_ct_DSYMUTIL" = x; then
13250 DSYMUTIL=":"
13251 else
13252 case $cross_compiling:$ac_tool_warned in
13253 yes:)
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13256 ac_tool_warned=yes ;;
13257 esac
13258 DSYMUTIL=$ac_ct_DSYMUTIL
13259 fi
13260 else
13261 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13262 fi
13263
13264 if test -n "$ac_tool_prefix"; then
13265 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13266 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if ${ac_cv_prog_NMEDIT+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 if test -n "$NMEDIT"; then
13273 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13274 else
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13277 do
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 break 2
13285 fi
13286 done
13287 done
13288 IFS=$as_save_IFS
13289
13290 fi
13291 fi
13292 NMEDIT=$ac_cv_prog_NMEDIT
13293 if test -n "$NMEDIT"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13295 $as_echo "$NMEDIT" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299 fi
13300
13301
13302 fi
13303 if test -z "$ac_cv_prog_NMEDIT"; then
13304 ac_ct_NMEDIT=$NMEDIT
13305 # Extract the first word of "nmedit", so it can be a program name with args.
13306 set dummy nmedit; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 if test -n "$ac_ct_NMEDIT"; then
13313 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13314 else
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13317 do
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13322 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 break 2
13325 fi
13326 done
13327 done
13328 IFS=$as_save_IFS
13329
13330 fi
13331 fi
13332 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13333 if test -n "$ac_ct_NMEDIT"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13335 $as_echo "$ac_ct_NMEDIT" >&6; }
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13339 fi
13340
13341 if test "x$ac_ct_NMEDIT" = x; then
13342 NMEDIT=":"
13343 else
13344 case $cross_compiling:$ac_tool_warned in
13345 yes:)
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13348 ac_tool_warned=yes ;;
13349 esac
13350 NMEDIT=$ac_ct_NMEDIT
13351 fi
13352 else
13353 NMEDIT="$ac_cv_prog_NMEDIT"
13354 fi
13355
13356 if test -n "$ac_tool_prefix"; then
13357 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13358 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 $as_echo_n "checking for $ac_word... " >&6; }
13361 if ${ac_cv_prog_LIPO+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 if test -n "$LIPO"; then
13365 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13366 else
13367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368 for as_dir in $PATH
13369 do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 break 2
13377 fi
13378 done
13379 done
13380 IFS=$as_save_IFS
13381
13382 fi
13383 fi
13384 LIPO=$ac_cv_prog_LIPO
13385 if test -n "$LIPO"; then
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13387 $as_echo "$LIPO" >&6; }
13388 else
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13391 fi
13392
13393
13394 fi
13395 if test -z "$ac_cv_prog_LIPO"; then
13396 ac_ct_LIPO=$LIPO
13397 # Extract the first word of "lipo", so it can be a program name with args.
13398 set dummy lipo; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13402 $as_echo_n "(cached) " >&6
13403 else
13404 if test -n "$ac_ct_LIPO"; then
13405 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13406 else
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13409 do
13410 IFS=$as_save_IFS
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414 ac_cv_prog_ac_ct_LIPO="lipo"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416 break 2
13417 fi
13418 done
13419 done
13420 IFS=$as_save_IFS
13421
13422 fi
13423 fi
13424 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13425 if test -n "$ac_ct_LIPO"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13427 $as_echo "$ac_ct_LIPO" >&6; }
13428 else
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432
13433 if test "x$ac_ct_LIPO" = x; then
13434 LIPO=":"
13435 else
13436 case $cross_compiling:$ac_tool_warned in
13437 yes:)
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13440 ac_tool_warned=yes ;;
13441 esac
13442 LIPO=$ac_ct_LIPO
13443 fi
13444 else
13445 LIPO="$ac_cv_prog_LIPO"
13446 fi
13447
13448 if test -n "$ac_tool_prefix"; then
13449 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13450 set dummy ${ac_tool_prefix}otool; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if ${ac_cv_prog_OTOOL+:} false; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 if test -n "$OTOOL"; then
13457 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13458 else
13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13461 do
13462 IFS=$as_save_IFS
13463 test -z "$as_dir" && as_dir=.
13464 for ac_exec_ext in '' $ac_executable_extensions; do
13465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468 break 2
13469 fi
13470 done
13471 done
13472 IFS=$as_save_IFS
13473
13474 fi
13475 fi
13476 OTOOL=$ac_cv_prog_OTOOL
13477 if test -n "$OTOOL"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13479 $as_echo "$OTOOL" >&6; }
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13483 fi
13484
13485
13486 fi
13487 if test -z "$ac_cv_prog_OTOOL"; then
13488 ac_ct_OTOOL=$OTOOL
13489 # Extract the first word of "otool", so it can be a program name with args.
13490 set dummy otool; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 if test -n "$ac_ct_OTOOL"; then
13497 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13498 else
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in $PATH
13501 do
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_prog_ac_ct_OTOOL="otool"
13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 break 2
13509 fi
13510 done
13511 done
13512 IFS=$as_save_IFS
13513
13514 fi
13515 fi
13516 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13517 if test -n "$ac_ct_OTOOL"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13519 $as_echo "$ac_ct_OTOOL" >&6; }
13520 else
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13523 fi
13524
13525 if test "x$ac_ct_OTOOL" = x; then
13526 OTOOL=":"
13527 else
13528 case $cross_compiling:$ac_tool_warned in
13529 yes:)
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13532 ac_tool_warned=yes ;;
13533 esac
13534 OTOOL=$ac_ct_OTOOL
13535 fi
13536 else
13537 OTOOL="$ac_cv_prog_OTOOL"
13538 fi
13539
13540 if test -n "$ac_tool_prefix"; then
13541 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13542 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 $as_echo_n "checking for $ac_word... " >&6; }
13545 if ${ac_cv_prog_OTOOL64+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 if test -n "$OTOOL64"; then
13549 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13550 else
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13553 do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13561 fi
13562 done
13563 done
13564 IFS=$as_save_IFS
13565
13566 fi
13567 fi
13568 OTOOL64=$ac_cv_prog_OTOOL64
13569 if test -n "$OTOOL64"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13571 $as_echo "$OTOOL64" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13575 fi
13576
13577
13578 fi
13579 if test -z "$ac_cv_prog_OTOOL64"; then
13580 ac_ct_OTOOL64=$OTOOL64
13581 # Extract the first word of "otool64", so it can be a program name with args.
13582 set dummy otool64; ac_word=$2
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584 $as_echo_n "checking for $ac_word... " >&6; }
13585 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 if test -n "$ac_ct_OTOOL64"; then
13589 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13590 else
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13593 do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_prog_ac_ct_OTOOL64="otool64"
13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13601 fi
13602 done
13603 done
13604 IFS=$as_save_IFS
13605
13606 fi
13607 fi
13608 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13609 if test -n "$ac_ct_OTOOL64"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13611 $as_echo "$ac_ct_OTOOL64" >&6; }
13612 else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13615 fi
13616
13617 if test "x$ac_ct_OTOOL64" = x; then
13618 OTOOL64=":"
13619 else
13620 case $cross_compiling:$ac_tool_warned in
13621 yes:)
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13624 ac_tool_warned=yes ;;
13625 esac
13626 OTOOL64=$ac_ct_OTOOL64
13627 fi
13628 else
13629 OTOOL64="$ac_cv_prog_OTOOL64"
13630 fi
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13659 $as_echo_n "checking for -single_module linker flag... " >&6; }
13660 if ${lt_cv_apple_cc_single_mod+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 lt_cv_apple_cc_single_mod=no
13664 if test -z "${LT_MULTI_MODULE}"; then
13665 # By default we will add the -single_module flag. You can override
13666 # by either setting the environment variable LT_MULTI_MODULE
13667 # non-empty at configure time, or by adding -multi_module to the
13668 # link flags.
13669 rm -rf libconftest.dylib*
13670 echo "int foo(void){return 1;}" > conftest.c
13671 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13672 -dynamiclib -Wl,-single_module conftest.c" >&5
13673 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13674 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13675 _lt_result=$?
13676 # If there is a non-empty error log, and "single_module"
13677 # appears in it, assume the flag caused a linker warning
13678 if test -s conftest.err && $GREP single_module conftest.err; then
13679 cat conftest.err >&5
13680 # Otherwise, if the output was created with a 0 exit code from
13681 # the compiler, it worked.
13682 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13683 lt_cv_apple_cc_single_mod=yes
13684 else
13685 cat conftest.err >&5
13686 fi
13687 rm -rf libconftest.dylib*
13688 rm -f conftest.*
13689 fi
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13692 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13693
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13695 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13696 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 lt_cv_ld_exported_symbols_list=no
13700 save_LDFLAGS=$LDFLAGS
13701 echo "_main" > conftest.sym
13702 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13705
13706 int
13707 main ()
13708 {
13709
13710 ;
13711 return 0;
13712 }
13713 _ACEOF
13714 if ac_fn_c_try_link "$LINENO"; then :
13715 lt_cv_ld_exported_symbols_list=yes
13716 else
13717 lt_cv_ld_exported_symbols_list=no
13718 fi
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LDFLAGS="$save_LDFLAGS"
13722
13723 fi
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13725 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13726
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13728 $as_echo_n "checking for -force_load linker flag... " >&6; }
13729 if ${lt_cv_ld_force_load+:} false; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 lt_cv_ld_force_load=no
13733 cat > conftest.c << _LT_EOF
13734 int forced_loaded() { return 2;}
13735 _LT_EOF
13736 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13737 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13738 echo "$AR cru libconftest.a conftest.o" >&5
13739 $AR cru libconftest.a conftest.o 2>&5
13740 echo "$RANLIB libconftest.a" >&5
13741 $RANLIB libconftest.a 2>&5
13742 cat > conftest.c << _LT_EOF
13743 int main() { return 0;}
13744 _LT_EOF
13745 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13746 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13747 _lt_result=$?
13748 if test -s conftest.err && $GREP force_load conftest.err; then
13749 cat conftest.err >&5
13750 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13751 lt_cv_ld_force_load=yes
13752 else
13753 cat conftest.err >&5
13754 fi
13755 rm -f conftest.err libconftest.a conftest conftest.c
13756 rm -rf conftest.dSYM
13757
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13760 $as_echo "$lt_cv_ld_force_load" >&6; }
13761 case $host_os in
13762 rhapsody* | darwin1.[012])
13763 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13764 darwin1.*)
13765 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13766 darwin*) # darwin 5.x on
13767 # if running on 10.5 or later, the deployment target defaults
13768 # to the OS version, if on x86, and 10.4, the deployment
13769 # target defaults to 10.4. Don't you love it?
13770 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13771 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13772 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13773 10.[012]*)
13774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13775 10.*)
13776 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13777 esac
13778 ;;
13779 esac
13780 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13781 _lt_dar_single_mod='$single_module'
13782 fi
13783 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13784 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13785 else
13786 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13787 fi
13788 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13789 _lt_dsymutil='~$DSYMUTIL $lib || :'
13790 else
13791 _lt_dsymutil=
13792 fi
13793 ;;
13794 esac
13795
13796 for ac_header in dlfcn.h
13797 do :
13798 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13799 "
13800 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13801 cat >>confdefs.h <<_ACEOF
13802 #define HAVE_DLFCN_H 1
13803 _ACEOF
13804
13805 fi
13806
13807 done
13808
13809
13810
13811
13812
13813 # Set options
13814
13815
13816
13817 enable_dlopen=no
13818
13819
13820 enable_win32_dll=no
13821
13822
13823 # Check whether --enable-shared was given.
13824 if test "${enable_shared+set}" = set; then :
13825 enableval=$enable_shared; p=${PACKAGE-default}
13826 case $enableval in
13827 yes) enable_shared=yes ;;
13828 no) enable_shared=no ;;
13829 *)
13830 enable_shared=no
13831 # Look at the argument we got. We use all the common list separators.
13832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13833 for pkg in $enableval; do
13834 IFS="$lt_save_ifs"
13835 if test "X$pkg" = "X$p"; then
13836 enable_shared=yes
13837 fi
13838 done
13839 IFS="$lt_save_ifs"
13840 ;;
13841 esac
13842 else
13843 enable_shared=yes
13844 fi
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856 # Check whether --with-pic was given.
13857 if test "${with_pic+set}" = set; then :
13858 withval=$with_pic; lt_p=${PACKAGE-default}
13859 case $withval in
13860 yes|no) pic_mode=$withval ;;
13861 *)
13862 pic_mode=default
13863 # Look at the argument we got. We use all the common list separators.
13864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13865 for lt_pkg in $withval; do
13866 IFS="$lt_save_ifs"
13867 if test "X$lt_pkg" = "X$lt_p"; then
13868 pic_mode=yes
13869 fi
13870 done
13871 IFS="$lt_save_ifs"
13872 ;;
13873 esac
13874 else
13875 pic_mode=default
13876 fi
13877
13878
13879 test -z "$pic_mode" && pic_mode=default
13880
13881
13882
13883
13884
13885
13886
13887 # Check whether --enable-fast-install was given.
13888 if test "${enable_fast_install+set}" = set; then :
13889 enableval=$enable_fast_install; p=${PACKAGE-default}
13890 case $enableval in
13891 yes) enable_fast_install=yes ;;
13892 no) enable_fast_install=no ;;
13893 *)
13894 enable_fast_install=no
13895 # Look at the argument we got. We use all the common list separators.
13896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13897 for pkg in $enableval; do
13898 IFS="$lt_save_ifs"
13899 if test "X$pkg" = "X$p"; then
13900 enable_fast_install=yes
13901 fi
13902 done
13903 IFS="$lt_save_ifs"
13904 ;;
13905 esac
13906 else
13907 enable_fast_install=yes
13908 fi
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920 # This can be used to rebuild libtool when needed
13921 LIBTOOL_DEPS="$ltmain"
13922
13923 # Always use our own libtool.
13924 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 test -z "$LN_S" && LN_S="ln -s"
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970 if test -n "${ZSH_VERSION+set}" ; then
13971 setopt NO_GLOB_SUBST
13972 fi
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13975 $as_echo_n "checking for objdir... " >&6; }
13976 if ${lt_cv_objdir+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 rm -f .libs 2>/dev/null
13980 mkdir .libs 2>/dev/null
13981 if test -d .libs; then
13982 lt_cv_objdir=.libs
13983 else
13984 # MS-DOS does not allow filenames that begin with a dot.
13985 lt_cv_objdir=_libs
13986 fi
13987 rmdir .libs 2>/dev/null
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13990 $as_echo "$lt_cv_objdir" >&6; }
13991 objdir=$lt_cv_objdir
13992
13993
13994
13995
13996
13997 cat >>confdefs.h <<_ACEOF
13998 #define LT_OBJDIR "$lt_cv_objdir/"
13999 _ACEOF
14000
14001
14002
14003
14004 case $host_os in
14005 aix3*)
14006 # AIX sometimes has problems with the GCC collect2 program. For some
14007 # reason, if we set the COLLECT_NAMES environment variable, the problems
14008 # vanish in a puff of smoke.
14009 if test "X${COLLECT_NAMES+set}" != Xset; then
14010 COLLECT_NAMES=
14011 export COLLECT_NAMES
14012 fi
14013 ;;
14014 esac
14015
14016 # Global variables:
14017 ofile=libtool
14018 can_build_shared=yes
14019
14020 # All known linkers require a `.a' archive for static linking (except MSVC,
14021 # which needs '.lib').
14022 libext=a
14023
14024 with_gnu_ld="$lt_cv_prog_gnu_ld"
14025
14026 old_CC="$CC"
14027 old_CFLAGS="$CFLAGS"
14028
14029 # Set sane defaults for various variables
14030 test -z "$CC" && CC=cc
14031 test -z "$LTCC" && LTCC=$CC
14032 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14033 test -z "$LD" && LD=ld
14034 test -z "$ac_objext" && ac_objext=o
14035
14036 for cc_temp in $compiler""; do
14037 case $cc_temp in
14038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14040 \-*) ;;
14041 *) break;;
14042 esac
14043 done
14044 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14045
14046
14047 # Only perform the check for file, if the check method requires it
14048 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14049 case $deplibs_check_method in
14050 file_magic*)
14051 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14053 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14054 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 case $MAGIC_CMD in
14058 [\\/*] | ?:[\\/]*)
14059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14060 ;;
14061 *)
14062 lt_save_MAGIC_CMD="$MAGIC_CMD"
14063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14065 for ac_dir in $ac_dummy; do
14066 IFS="$lt_save_ifs"
14067 test -z "$ac_dir" && ac_dir=.
14068 if test -f $ac_dir/${ac_tool_prefix}file; then
14069 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14070 if test -n "$file_magic_test_file"; then
14071 case $deplibs_check_method in
14072 "file_magic "*)
14073 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14076 $EGREP "$file_magic_regex" > /dev/null; then
14077 :
14078 else
14079 cat <<_LT_EOF 1>&2
14080
14081 *** Warning: the command libtool uses to detect shared libraries,
14082 *** $file_magic_cmd, produces output that libtool cannot recognize.
14083 *** The result is that libtool may fail to recognize shared libraries
14084 *** as such. This will affect the creation of libtool libraries that
14085 *** depend on shared libraries, but programs linked with such libtool
14086 *** libraries will work regardless of this problem. Nevertheless, you
14087 *** may want to report the problem to your system manager and/or to
14088 *** bug-libtool@gnu.org
14089
14090 _LT_EOF
14091 fi ;;
14092 esac
14093 fi
14094 break
14095 fi
14096 done
14097 IFS="$lt_save_ifs"
14098 MAGIC_CMD="$lt_save_MAGIC_CMD"
14099 ;;
14100 esac
14101 fi
14102
14103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14104 if test -n "$MAGIC_CMD"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14106 $as_echo "$MAGIC_CMD" >&6; }
14107 else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14110 fi
14111
14112
14113
14114
14115
14116 if test -z "$lt_cv_path_MAGIC_CMD"; then
14117 if test -n "$ac_tool_prefix"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14119 $as_echo_n "checking for file... " >&6; }
14120 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 case $MAGIC_CMD in
14124 [\\/*] | ?:[\\/]*)
14125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14126 ;;
14127 *)
14128 lt_save_MAGIC_CMD="$MAGIC_CMD"
14129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14131 for ac_dir in $ac_dummy; do
14132 IFS="$lt_save_ifs"
14133 test -z "$ac_dir" && ac_dir=.
14134 if test -f $ac_dir/file; then
14135 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14136 if test -n "$file_magic_test_file"; then
14137 case $deplibs_check_method in
14138 "file_magic "*)
14139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14142 $EGREP "$file_magic_regex" > /dev/null; then
14143 :
14144 else
14145 cat <<_LT_EOF 1>&2
14146
14147 *** Warning: the command libtool uses to detect shared libraries,
14148 *** $file_magic_cmd, produces output that libtool cannot recognize.
14149 *** The result is that libtool may fail to recognize shared libraries
14150 *** as such. This will affect the creation of libtool libraries that
14151 *** depend on shared libraries, but programs linked with such libtool
14152 *** libraries will work regardless of this problem. Nevertheless, you
14153 *** may want to report the problem to your system manager and/or to
14154 *** bug-libtool@gnu.org
14155
14156 _LT_EOF
14157 fi ;;
14158 esac
14159 fi
14160 break
14161 fi
14162 done
14163 IFS="$lt_save_ifs"
14164 MAGIC_CMD="$lt_save_MAGIC_CMD"
14165 ;;
14166 esac
14167 fi
14168
14169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14170 if test -n "$MAGIC_CMD"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14172 $as_echo "$MAGIC_CMD" >&6; }
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177
14178
14179 else
14180 MAGIC_CMD=:
14181 fi
14182 fi
14183
14184 fi
14185 ;;
14186 esac
14187
14188 # Use C for the default configuration in the libtool script
14189
14190 lt_save_CC="$CC"
14191 ac_ext=c
14192 ac_cpp='$CPP $CPPFLAGS'
14193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14196
14197
14198 # Source file extension for C test sources.
14199 ac_ext=c
14200
14201 # Object file extension for compiled C test sources.
14202 objext=o
14203 objext=$objext
14204
14205 # Code to be used in simple compile tests
14206 lt_simple_compile_test_code="int some_variable = 0;"
14207
14208 # Code to be used in simple link tests
14209 lt_simple_link_test_code='int main(){return(0);}'
14210
14211
14212
14213
14214
14215
14216
14217 # If no C compiler was specified, use CC.
14218 LTCC=${LTCC-"$CC"}
14219
14220 # If no C compiler flags were specified, use CFLAGS.
14221 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14222
14223 # Allow CC to be a program name with arguments.
14224 compiler=$CC
14225
14226 # Save the default compiler, since it gets overwritten when the other
14227 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14228 compiler_DEFAULT=$CC
14229
14230 # save warnings/boilerplate of simple test code
14231 ac_outfile=conftest.$ac_objext
14232 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14234 _lt_compiler_boilerplate=`cat conftest.err`
14235 $RM conftest*
14236
14237 ac_outfile=conftest.$ac_objext
14238 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14240 _lt_linker_boilerplate=`cat conftest.err`
14241 $RM -r conftest*
14242
14243
14244 if test -n "$compiler"; then
14245
14246 lt_prog_compiler_no_builtin_flag=
14247
14248 if test "$GCC" = yes; then
14249 case $cc_basename in
14250 nvcc*)
14251 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14252 *)
14253 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14254 esac
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14257 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14258 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 lt_cv_prog_compiler_rtti_exceptions=no
14262 ac_outfile=conftest.$ac_objext
14263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14264 lt_compiler_flag="-fno-rtti -fno-exceptions"
14265 # Insert the option either (1) after the last *FLAGS variable, or
14266 # (2) before a word containing "conftest.", or (3) at the end.
14267 # Note that $ac_compile itself does not contain backslashes and begins
14268 # with a dollar sign (not a hyphen), so the echo should work correctly.
14269 # The option is referenced via a variable to avoid confusing sed.
14270 lt_compile=`echo "$ac_compile" | $SED \
14271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14273 -e 's:$: $lt_compiler_flag:'`
14274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14275 (eval "$lt_compile" 2>conftest.err)
14276 ac_status=$?
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 if (exit $ac_status) && test -s "$ac_outfile"; then
14280 # The compiler can only warn and ignore the option if not recognized
14281 # So say no if there are warnings other than the usual output.
14282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14285 lt_cv_prog_compiler_rtti_exceptions=yes
14286 fi
14287 fi
14288 $RM conftest*
14289
14290 fi
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14292 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14293
14294 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14295 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14296 else
14297 :
14298 fi
14299
14300 fi
14301
14302
14303
14304
14305
14306
14307 lt_prog_compiler_wl=
14308 lt_prog_compiler_pic=
14309 lt_prog_compiler_static=
14310
14311
14312 if test "$GCC" = yes; then
14313 lt_prog_compiler_wl='-Wl,'
14314 lt_prog_compiler_static='-static'
14315
14316 case $host_os in
14317 aix*)
14318 # All AIX code is PIC.
14319 if test "$host_cpu" = ia64; then
14320 # AIX 5 now supports IA64 processor
14321 lt_prog_compiler_static='-Bstatic'
14322 fi
14323 ;;
14324
14325 amigaos*)
14326 case $host_cpu in
14327 powerpc)
14328 # see comment about AmigaOS4 .so support
14329 lt_prog_compiler_pic='-fPIC'
14330 ;;
14331 m68k)
14332 # FIXME: we need at least 68020 code to build shared libraries, but
14333 # adding the `-m68020' flag to GCC prevents building anything better,
14334 # like `-m68040'.
14335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14336 ;;
14337 esac
14338 ;;
14339
14340 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14341 # PIC is the default for these OSes.
14342 ;;
14343
14344 mingw* | cygwin* | pw32* | os2* | cegcc*)
14345 # This hack is so that the source file can tell whether it is being
14346 # built for inclusion in a dll (and should export symbols for example).
14347 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14348 # (--disable-auto-import) libraries
14349 lt_prog_compiler_pic='-DDLL_EXPORT'
14350 ;;
14351
14352 darwin* | rhapsody*)
14353 # PIC is the default on this platform
14354 # Common symbols not allowed in MH_DYLIB files
14355 lt_prog_compiler_pic='-fno-common'
14356 ;;
14357
14358 haiku*)
14359 # PIC is the default for Haiku.
14360 # The "-static" flag exists, but is broken.
14361 lt_prog_compiler_static=
14362 ;;
14363
14364 hpux*)
14365 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14366 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14367 # sets the default TLS model and affects inlining.
14368 case $host_cpu in
14369 hppa*64*)
14370 # +Z the default
14371 ;;
14372 *)
14373 lt_prog_compiler_pic='-fPIC'
14374 ;;
14375 esac
14376 ;;
14377
14378 interix[3-9]*)
14379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14380 # Instead, we relocate shared libraries at runtime.
14381 ;;
14382
14383 msdosdjgpp*)
14384 # Just because we use GCC doesn't mean we suddenly get shared libraries
14385 # on systems that don't support them.
14386 lt_prog_compiler_can_build_shared=no
14387 enable_shared=no
14388 ;;
14389
14390 *nto* | *qnx*)
14391 # QNX uses GNU C++, but need to define -shared option too, otherwise
14392 # it will coredump.
14393 lt_prog_compiler_pic='-fPIC -shared'
14394 ;;
14395
14396 sysv4*MP*)
14397 if test -d /usr/nec; then
14398 lt_prog_compiler_pic=-Kconform_pic
14399 fi
14400 ;;
14401
14402 *)
14403 lt_prog_compiler_pic='-fPIC'
14404 ;;
14405 esac
14406
14407 case $cc_basename in
14408 nvcc*) # Cuda Compiler Driver 2.2
14409 lt_prog_compiler_wl='-Xlinker '
14410 if test -n "$lt_prog_compiler_pic"; then
14411 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14412 fi
14413 ;;
14414 esac
14415 else
14416 # PORTME Check for flag to pass linker flags through the system compiler.
14417 case $host_os in
14418 aix*)
14419 lt_prog_compiler_wl='-Wl,'
14420 if test "$host_cpu" = ia64; then
14421 # AIX 5 now supports IA64 processor
14422 lt_prog_compiler_static='-Bstatic'
14423 else
14424 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14425 fi
14426 ;;
14427
14428 mingw* | cygwin* | pw32* | os2* | cegcc*)
14429 # This hack is so that the source file can tell whether it is being
14430 # built for inclusion in a dll (and should export symbols for example).
14431 lt_prog_compiler_pic='-DDLL_EXPORT'
14432 ;;
14433
14434 hpux9* | hpux10* | hpux11*)
14435 lt_prog_compiler_wl='-Wl,'
14436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14437 # not for PA HP-UX.
14438 case $host_cpu in
14439 hppa*64*|ia64*)
14440 # +Z the default
14441 ;;
14442 *)
14443 lt_prog_compiler_pic='+Z'
14444 ;;
14445 esac
14446 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14447 lt_prog_compiler_static='${wl}-a ${wl}archive'
14448 ;;
14449
14450 irix5* | irix6* | nonstopux*)
14451 lt_prog_compiler_wl='-Wl,'
14452 # PIC (with -KPIC) is the default.
14453 lt_prog_compiler_static='-non_shared'
14454 ;;
14455
14456 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14457 case $cc_basename in
14458 # old Intel for x86_64 which still supported -KPIC.
14459 ecc*)
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-KPIC'
14462 lt_prog_compiler_static='-static'
14463 ;;
14464 # icc used to be incompatible with GCC.
14465 # ICC 10 doesn't accept -KPIC any more.
14466 icc* | ifort*)
14467 lt_prog_compiler_wl='-Wl,'
14468 lt_prog_compiler_pic='-fPIC'
14469 lt_prog_compiler_static='-static'
14470 ;;
14471 # Lahey Fortran 8.1.
14472 lf95*)
14473 lt_prog_compiler_wl='-Wl,'
14474 lt_prog_compiler_pic='--shared'
14475 lt_prog_compiler_static='--static'
14476 ;;
14477 nagfor*)
14478 # NAG Fortran compiler
14479 lt_prog_compiler_wl='-Wl,-Wl,,'
14480 lt_prog_compiler_pic='-PIC'
14481 lt_prog_compiler_static='-Bstatic'
14482 ;;
14483 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14484 # Portland Group compilers (*not* the Pentium gcc compiler,
14485 # which looks to be a dead project)
14486 lt_prog_compiler_wl='-Wl,'
14487 lt_prog_compiler_pic='-fpic'
14488 lt_prog_compiler_static='-Bstatic'
14489 ;;
14490 ccc*)
14491 lt_prog_compiler_wl='-Wl,'
14492 # All Alpha code is PIC.
14493 lt_prog_compiler_static='-non_shared'
14494 ;;
14495 xl* | bgxl* | bgf* | mpixl*)
14496 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14497 lt_prog_compiler_wl='-Wl,'
14498 lt_prog_compiler_pic='-qpic'
14499 lt_prog_compiler_static='-qstaticlink'
14500 ;;
14501 *)
14502 case `$CC -V 2>&1 | sed 5q` in
14503 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14504 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14505 lt_prog_compiler_pic='-KPIC'
14506 lt_prog_compiler_static='-Bstatic'
14507 lt_prog_compiler_wl=''
14508 ;;
14509 *Sun\ F* | *Sun*Fortran*)
14510 lt_prog_compiler_pic='-KPIC'
14511 lt_prog_compiler_static='-Bstatic'
14512 lt_prog_compiler_wl='-Qoption ld '
14513 ;;
14514 *Sun\ C*)
14515 # Sun C 5.9
14516 lt_prog_compiler_pic='-KPIC'
14517 lt_prog_compiler_static='-Bstatic'
14518 lt_prog_compiler_wl='-Wl,'
14519 ;;
14520 *Intel*\ [CF]*Compiler*)
14521 lt_prog_compiler_wl='-Wl,'
14522 lt_prog_compiler_pic='-fPIC'
14523 lt_prog_compiler_static='-static'
14524 ;;
14525 *Portland\ Group*)
14526 lt_prog_compiler_wl='-Wl,'
14527 lt_prog_compiler_pic='-fpic'
14528 lt_prog_compiler_static='-Bstatic'
14529 ;;
14530 esac
14531 ;;
14532 esac
14533 ;;
14534
14535 newsos6)
14536 lt_prog_compiler_pic='-KPIC'
14537 lt_prog_compiler_static='-Bstatic'
14538 ;;
14539
14540 *nto* | *qnx*)
14541 # QNX uses GNU C++, but need to define -shared option too, otherwise
14542 # it will coredump.
14543 lt_prog_compiler_pic='-fPIC -shared'
14544 ;;
14545
14546 osf3* | osf4* | osf5*)
14547 lt_prog_compiler_wl='-Wl,'
14548 # All OSF/1 code is PIC.
14549 lt_prog_compiler_static='-non_shared'
14550 ;;
14551
14552 rdos*)
14553 lt_prog_compiler_static='-non_shared'
14554 ;;
14555
14556 solaris*)
14557 lt_prog_compiler_pic='-KPIC'
14558 lt_prog_compiler_static='-Bstatic'
14559 case $cc_basename in
14560 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14561 lt_prog_compiler_wl='-Qoption ld ';;
14562 *)
14563 lt_prog_compiler_wl='-Wl,';;
14564 esac
14565 ;;
14566
14567 sunos4*)
14568 lt_prog_compiler_wl='-Qoption ld '
14569 lt_prog_compiler_pic='-PIC'
14570 lt_prog_compiler_static='-Bstatic'
14571 ;;
14572
14573 sysv4 | sysv4.2uw2* | sysv4.3*)
14574 lt_prog_compiler_wl='-Wl,'
14575 lt_prog_compiler_pic='-KPIC'
14576 lt_prog_compiler_static='-Bstatic'
14577 ;;
14578
14579 sysv4*MP*)
14580 if test -d /usr/nec ;then
14581 lt_prog_compiler_pic='-Kconform_pic'
14582 lt_prog_compiler_static='-Bstatic'
14583 fi
14584 ;;
14585
14586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14587 lt_prog_compiler_wl='-Wl,'
14588 lt_prog_compiler_pic='-KPIC'
14589 lt_prog_compiler_static='-Bstatic'
14590 ;;
14591
14592 unicos*)
14593 lt_prog_compiler_wl='-Wl,'
14594 lt_prog_compiler_can_build_shared=no
14595 ;;
14596
14597 uts4*)
14598 lt_prog_compiler_pic='-pic'
14599 lt_prog_compiler_static='-Bstatic'
14600 ;;
14601
14602 *)
14603 lt_prog_compiler_can_build_shared=no
14604 ;;
14605 esac
14606 fi
14607
14608 case $host_os in
14609 # For platforms which do not support PIC, -DPIC is meaningless:
14610 *djgpp*)
14611 lt_prog_compiler_pic=
14612 ;;
14613 *)
14614 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14615 ;;
14616 esac
14617
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14619 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14620 if ${lt_cv_prog_compiler_pic+:} false; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14624 fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14626 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14627 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14628
14629 #
14630 # Check to make sure the PIC flag actually works.
14631 #
14632 if test -n "$lt_prog_compiler_pic"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14634 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14635 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 lt_cv_prog_compiler_pic_works=no
14639 ac_outfile=conftest.$ac_objext
14640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14641 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14642 # Insert the option either (1) after the last *FLAGS variable, or
14643 # (2) before a word containing "conftest.", or (3) at the end.
14644 # Note that $ac_compile itself does not contain backslashes and begins
14645 # with a dollar sign (not a hyphen), so the echo should work correctly.
14646 # The option is referenced via a variable to avoid confusing sed.
14647 lt_compile=`echo "$ac_compile" | $SED \
14648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14650 -e 's:$: $lt_compiler_flag:'`
14651 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14652 (eval "$lt_compile" 2>conftest.err)
14653 ac_status=$?
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 if (exit $ac_status) && test -s "$ac_outfile"; then
14657 # The compiler can only warn and ignore the option if not recognized
14658 # So say no if there are warnings other than the usual output.
14659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14662 lt_cv_prog_compiler_pic_works=yes
14663 fi
14664 fi
14665 $RM conftest*
14666
14667 fi
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14669 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14670
14671 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14672 case $lt_prog_compiler_pic in
14673 "" | " "*) ;;
14674 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14675 esac
14676 else
14677 lt_prog_compiler_pic=
14678 lt_prog_compiler_can_build_shared=no
14679 fi
14680
14681 fi
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693 #
14694 # Check to make sure the static flag actually works.
14695 #
14696 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14698 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14699 if ${lt_cv_prog_compiler_static_works+:} false; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 lt_cv_prog_compiler_static_works=no
14703 save_LDFLAGS="$LDFLAGS"
14704 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14705 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14707 # The linker can only warn and ignore the option if not recognized
14708 # So say no if there are warnings
14709 if test -s conftest.err; then
14710 # Append any errors to the config.log.
14711 cat conftest.err 1>&5
14712 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14714 if diff conftest.exp conftest.er2 >/dev/null; then
14715 lt_cv_prog_compiler_static_works=yes
14716 fi
14717 else
14718 lt_cv_prog_compiler_static_works=yes
14719 fi
14720 fi
14721 $RM -r conftest*
14722 LDFLAGS="$save_LDFLAGS"
14723
14724 fi
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14726 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14727
14728 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14729 :
14730 else
14731 lt_prog_compiler_static=
14732 fi
14733
14734
14735
14736
14737
14738
14739
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14742 if ${lt_cv_prog_compiler_c_o+:} false; then :
14743 $as_echo_n "(cached) " >&6
14744 else
14745 lt_cv_prog_compiler_c_o=no
14746 $RM -r conftest 2>/dev/null
14747 mkdir conftest
14748 cd conftest
14749 mkdir out
14750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751
14752 lt_compiler_flag="-o out/conftest2.$ac_objext"
14753 # Insert the option either (1) after the last *FLAGS variable, or
14754 # (2) before a word containing "conftest.", or (3) at the end.
14755 # Note that $ac_compile itself does not contain backslashes and begins
14756 # with a dollar sign (not a hyphen), so the echo should work correctly.
14757 lt_compile=`echo "$ac_compile" | $SED \
14758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760 -e 's:$: $lt_compiler_flag:'`
14761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14762 (eval "$lt_compile" 2>out/conftest.err)
14763 ac_status=$?
14764 cat out/conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14767 then
14768 # The compiler can only warn and ignore the option if not recognized
14769 # So say no if there are warnings
14770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14773 lt_cv_prog_compiler_c_o=yes
14774 fi
14775 fi
14776 chmod u+w . 2>&5
14777 $RM conftest*
14778 # SGI C++ compiler will create directory out/ii_files/ for
14779 # template instantiation
14780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14781 $RM out/* && rmdir out
14782 cd ..
14783 $RM -r conftest
14784 $RM conftest*
14785
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14788 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14789
14790
14791
14792
14793
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14797 if ${lt_cv_prog_compiler_c_o+:} false; then :
14798 $as_echo_n "(cached) " >&6
14799 else
14800 lt_cv_prog_compiler_c_o=no
14801 $RM -r conftest 2>/dev/null
14802 mkdir conftest
14803 cd conftest
14804 mkdir out
14805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14806
14807 lt_compiler_flag="-o out/conftest2.$ac_objext"
14808 # Insert the option either (1) after the last *FLAGS variable, or
14809 # (2) before a word containing "conftest.", or (3) at the end.
14810 # Note that $ac_compile itself does not contain backslashes and begins
14811 # with a dollar sign (not a hyphen), so the echo should work correctly.
14812 lt_compile=`echo "$ac_compile" | $SED \
14813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14815 -e 's:$: $lt_compiler_flag:'`
14816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14817 (eval "$lt_compile" 2>out/conftest.err)
14818 ac_status=$?
14819 cat out/conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14822 then
14823 # The compiler can only warn and ignore the option if not recognized
14824 # So say no if there are warnings
14825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14826 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14827 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14828 lt_cv_prog_compiler_c_o=yes
14829 fi
14830 fi
14831 chmod u+w . 2>&5
14832 $RM conftest*
14833 # SGI C++ compiler will create directory out/ii_files/ for
14834 # template instantiation
14835 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14836 $RM out/* && rmdir out
14837 cd ..
14838 $RM -r conftest
14839 $RM conftest*
14840
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14843 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14844
14845
14846
14847
14848 hard_links="nottested"
14849 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14850 # do not overwrite the value of need_locks provided by the user
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14852 $as_echo_n "checking if we can lock with hard links... " >&6; }
14853 hard_links=yes
14854 $RM conftest*
14855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14856 touch conftest.a
14857 ln conftest.a conftest.b 2>&5 || hard_links=no
14858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14860 $as_echo "$hard_links" >&6; }
14861 if test "$hard_links" = no; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14863 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14864 need_locks=warn
14865 fi
14866 else
14867 need_locks=no
14868 fi
14869
14870
14871
14872
14873
14874
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14876 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14877
14878 runpath_var=
14879 allow_undefined_flag=
14880 always_export_symbols=no
14881 archive_cmds=
14882 archive_expsym_cmds=
14883 compiler_needs_object=no
14884 enable_shared_with_static_runtimes=no
14885 export_dynamic_flag_spec=
14886 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14887 hardcode_automatic=no
14888 hardcode_direct=no
14889 hardcode_direct_absolute=no
14890 hardcode_libdir_flag_spec=
14891 hardcode_libdir_separator=
14892 hardcode_minus_L=no
14893 hardcode_shlibpath_var=unsupported
14894 inherit_rpath=no
14895 link_all_deplibs=unknown
14896 module_cmds=
14897 module_expsym_cmds=
14898 old_archive_from_new_cmds=
14899 old_archive_from_expsyms_cmds=
14900 thread_safe_flag_spec=
14901 whole_archive_flag_spec=
14902 # include_expsyms should be a list of space-separated symbols to be *always*
14903 # included in the symbol list
14904 include_expsyms=
14905 # exclude_expsyms can be an extended regexp of symbols to exclude
14906 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14907 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14908 # as well as any symbol that contains `d'.
14909 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14910 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14911 # platforms (ab)use it in PIC code, but their linkers get confused if
14912 # the symbol is explicitly referenced. Since portable code cannot
14913 # rely on this symbol name, it's probably fine to never include it in
14914 # preloaded symbol tables.
14915 # Exclude shared library initialization/finalization symbols.
14916 extract_expsyms_cmds=
14917
14918 case $host_os in
14919 cygwin* | mingw* | pw32* | cegcc*)
14920 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14921 # When not using gcc, we currently assume that we are using
14922 # Microsoft Visual C++.
14923 if test "$GCC" != yes; then
14924 with_gnu_ld=no
14925 fi
14926 ;;
14927 interix*)
14928 # we just hope/assume this is gcc and not c89 (= MSVC++)
14929 with_gnu_ld=yes
14930 ;;
14931 openbsd*)
14932 with_gnu_ld=no
14933 ;;
14934 linux* | k*bsd*-gnu | gnu*)
14935 link_all_deplibs=no
14936 ;;
14937 esac
14938
14939 ld_shlibs=yes
14940
14941 # On some targets, GNU ld is compatible enough with the native linker
14942 # that we're better off using the native interface for both.
14943 lt_use_gnu_ld_interface=no
14944 if test "$with_gnu_ld" = yes; then
14945 case $host_os in
14946 aix*)
14947 # The AIX port of GNU ld has always aspired to compatibility
14948 # with the native linker. However, as the warning in the GNU ld
14949 # block says, versions before 2.19.5* couldn't really create working
14950 # shared libraries, regardless of the interface used.
14951 case `$LD -v 2>&1` in
14952 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14953 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14954 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14955 *)
14956 lt_use_gnu_ld_interface=yes
14957 ;;
14958 esac
14959 ;;
14960 *)
14961 lt_use_gnu_ld_interface=yes
14962 ;;
14963 esac
14964 fi
14965
14966 if test "$lt_use_gnu_ld_interface" = yes; then
14967 # If archive_cmds runs LD, not CC, wlarc should be empty
14968 wlarc='${wl}'
14969
14970 # Set some defaults for GNU ld with shared library support. These
14971 # are reset later if shared libraries are not supported. Putting them
14972 # here allows them to be overridden if necessary.
14973 runpath_var=LD_RUN_PATH
14974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14975 export_dynamic_flag_spec='${wl}--export-dynamic'
14976 # ancient GNU ld didn't support --whole-archive et. al.
14977 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14978 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14979 else
14980 whole_archive_flag_spec=
14981 fi
14982 supports_anon_versioning=no
14983 case `$LD -v 2>&1` in
14984 *GNU\ gold*) supports_anon_versioning=yes ;;
14985 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14986 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14987 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14988 *\ 2.11.*) ;; # other 2.11 versions
14989 *) supports_anon_versioning=yes ;;
14990 esac
14991
14992 # See if GNU ld supports shared libraries.
14993 case $host_os in
14994 aix[3-9]*)
14995 # On AIX/PPC, the GNU linker is very broken
14996 if test "$host_cpu" != ia64; then
14997 ld_shlibs=no
14998 cat <<_LT_EOF 1>&2
14999
15000 *** Warning: the GNU linker, at least up to release 2.19, is reported
15001 *** to be unable to reliably create shared libraries on AIX.
15002 *** Therefore, libtool is disabling shared libraries support. If you
15003 *** really care for shared libraries, you may want to install binutils
15004 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15005 *** You will then need to restart the configuration process.
15006
15007 _LT_EOF
15008 fi
15009 ;;
15010
15011 amigaos*)
15012 case $host_cpu in
15013 powerpc)
15014 # see comment about AmigaOS4 .so support
15015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016 archive_expsym_cmds=''
15017 ;;
15018 m68k)
15019 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)'
15020 hardcode_libdir_flag_spec='-L$libdir'
15021 hardcode_minus_L=yes
15022 ;;
15023 esac
15024 ;;
15025
15026 beos*)
15027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15028 allow_undefined_flag=unsupported
15029 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15030 # support --undefined. This deserves some investigation. FIXME
15031 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032 else
15033 ld_shlibs=no
15034 fi
15035 ;;
15036
15037 cygwin* | mingw* | pw32* | cegcc*)
15038 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15039 # as there is no search path for DLLs.
15040 hardcode_libdir_flag_spec='-L$libdir'
15041 export_dynamic_flag_spec='${wl}--export-all-symbols'
15042 allow_undefined_flag=unsupported
15043 always_export_symbols=no
15044 enable_shared_with_static_runtimes=yes
15045 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'
15046 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15047
15048 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15050 # If the export-symbols file already is a .def file (1st line
15051 # is EXPORTS), use it as is; otherwise, prepend...
15052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15053 cp $export_symbols $output_objdir/$soname.def;
15054 else
15055 echo EXPORTS > $output_objdir/$soname.def;
15056 cat $export_symbols >> $output_objdir/$soname.def;
15057 fi~
15058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15059 else
15060 ld_shlibs=no
15061 fi
15062 ;;
15063
15064 haiku*)
15065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 link_all_deplibs=yes
15067 ;;
15068
15069 interix[3-9]*)
15070 hardcode_direct=no
15071 hardcode_shlibpath_var=no
15072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15073 export_dynamic_flag_spec='${wl}-E'
15074 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15075 # Instead, shared libraries are loaded at an image base (0x10000000 by
15076 # default) and relocated if they conflict, which is a slow very memory
15077 # consuming and fragmenting process. To avoid this, we pick a random,
15078 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15079 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15081 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'
15082 ;;
15083
15084 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15085 tmp_diet=no
15086 if test "$host_os" = linux-dietlibc; then
15087 case $cc_basename in
15088 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15089 esac
15090 fi
15091 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15092 && test "$tmp_diet" = no
15093 then
15094 tmp_addflag=' $pic_flag'
15095 tmp_sharedflag='-shared'
15096 case $cc_basename,$host_cpu in
15097 pgcc*) # Portland Group C compiler
15098 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'
15099 tmp_addflag=' $pic_flag'
15100 ;;
15101 pgf77* | pgf90* | pgf95* | pgfortran*)
15102 # Portland Group f77 and f90 compilers
15103 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'
15104 tmp_addflag=' $pic_flag -Mnomain' ;;
15105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15106 tmp_addflag=' -i_dynamic' ;;
15107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15108 tmp_addflag=' -i_dynamic -nofor_main' ;;
15109 ifc* | ifort*) # Intel Fortran compiler
15110 tmp_addflag=' -nofor_main' ;;
15111 lf95*) # Lahey Fortran 8.1
15112 whole_archive_flag_spec=
15113 tmp_sharedflag='--shared' ;;
15114 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15115 tmp_sharedflag='-qmkshrobj'
15116 tmp_addflag= ;;
15117 nvcc*) # Cuda Compiler Driver 2.2
15118 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'
15119 compiler_needs_object=yes
15120 ;;
15121 esac
15122 case `$CC -V 2>&1 | sed 5q` in
15123 *Sun\ C*) # Sun C 5.9
15124 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'
15125 compiler_needs_object=yes
15126 tmp_sharedflag='-G' ;;
15127 *Sun\ F*) # Sun Fortran 8.3
15128 tmp_sharedflag='-G' ;;
15129 esac
15130 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131
15132 if test "x$supports_anon_versioning" = xyes; then
15133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15135 echo "local: *; };" >> $output_objdir/$libname.ver~
15136 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15137 fi
15138
15139 case $cc_basename in
15140 xlf* | bgf* | bgxlf* | mpixlf*)
15141 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15142 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15144 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15145 if test "x$supports_anon_versioning" = xyes; then
15146 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15148 echo "local: *; };" >> $output_objdir/$libname.ver~
15149 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15150 fi
15151 ;;
15152 esac
15153 else
15154 ld_shlibs=no
15155 fi
15156 ;;
15157
15158 netbsd* | netbsdelf*-gnu)
15159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15160 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15161 wlarc=
15162 else
15163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15165 fi
15166 ;;
15167
15168 solaris*)
15169 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15170 ld_shlibs=no
15171 cat <<_LT_EOF 1>&2
15172
15173 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15174 *** create shared libraries on Solaris systems. Therefore, libtool
15175 *** is disabling shared libraries support. We urge you to upgrade GNU
15176 *** binutils to release 2.9.1 or newer. Another option is to modify
15177 *** your PATH or compiler configuration so that the native linker is
15178 *** used, and then restart.
15179
15180 _LT_EOF
15181 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184 else
15185 ld_shlibs=no
15186 fi
15187 ;;
15188
15189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15190 case `$LD -v 2>&1` in
15191 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15192 ld_shlibs=no
15193 cat <<_LT_EOF 1>&2
15194
15195 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15196 *** reliably create shared libraries on SCO systems. Therefore, libtool
15197 *** is disabling shared libraries support. We urge you to upgrade GNU
15198 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15199 *** your PATH or compiler configuration so that the native linker is
15200 *** used, and then restart.
15201
15202 _LT_EOF
15203 ;;
15204 *)
15205 # For security reasons, it is highly recommended that you always
15206 # use absolute paths for naming shared libraries, and exclude the
15207 # DT_RUNPATH tag from executables and libraries. But doing so
15208 # requires that you compile everything twice, which is a pain.
15209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15213 else
15214 ld_shlibs=no
15215 fi
15216 ;;
15217 esac
15218 ;;
15219
15220 sunos4*)
15221 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15222 wlarc=
15223 hardcode_direct=yes
15224 hardcode_shlibpath_var=no
15225 ;;
15226
15227 *)
15228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15231 else
15232 ld_shlibs=no
15233 fi
15234 ;;
15235 esac
15236
15237 if test "$ld_shlibs" = no; then
15238 runpath_var=
15239 hardcode_libdir_flag_spec=
15240 export_dynamic_flag_spec=
15241 whole_archive_flag_spec=
15242 fi
15243 else
15244 # PORTME fill in a description of your system's linker (not GNU ld)
15245 case $host_os in
15246 aix3*)
15247 allow_undefined_flag=unsupported
15248 always_export_symbols=yes
15249 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'
15250 # Note: this linker hardcodes the directories in LIBPATH if there
15251 # are no directories specified by -L.
15252 hardcode_minus_L=yes
15253 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15254 # Neither direct hardcoding nor static linking is supported with a
15255 # broken collect2.
15256 hardcode_direct=unsupported
15257 fi
15258 ;;
15259
15260 aix[4-9]*)
15261 if test "$host_cpu" = ia64; then
15262 # On IA64, the linker does run time linking by default, so we don't
15263 # have to do anything special.
15264 aix_use_runtimelinking=no
15265 exp_sym_flag='-Bexport'
15266 no_entry_flag=""
15267 else
15268 # If we're using GNU nm, then we don't want the "-C" option.
15269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15270 # Also, AIX nm treats weak defined symbols like other global
15271 # defined symbols, whereas GNU nm marks them as "W".
15272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15273 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'
15274 else
15275 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'
15276 fi
15277 aix_use_runtimelinking=no
15278
15279 # Test if we are trying to use run time linking or normal
15280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15281 # need to do runtime linking.
15282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15283 for ld_flag in $LDFLAGS; do
15284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15285 aix_use_runtimelinking=yes
15286 break
15287 fi
15288 done
15289 ;;
15290 esac
15291
15292 exp_sym_flag='-bexport'
15293 no_entry_flag='-bnoentry'
15294 fi
15295
15296 # When large executables or shared objects are built, AIX ld can
15297 # have problems creating the table of contents. If linking a library
15298 # or program results in "error TOC overflow" add -mminimal-toc to
15299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15301
15302 archive_cmds=''
15303 hardcode_direct=yes
15304 hardcode_direct_absolute=yes
15305 hardcode_libdir_separator=':'
15306 link_all_deplibs=yes
15307 file_list_spec='${wl}-f,'
15308
15309 if test "$GCC" = yes; then
15310 case $host_os in aix4.[012]|aix4.[012].*)
15311 # We only want to do this on AIX 4.2 and lower, the check
15312 # below for broken collect2 doesn't work under 4.3+
15313 collect2name=`${CC} -print-prog-name=collect2`
15314 if test -f "$collect2name" &&
15315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15316 then
15317 # We have reworked collect2
15318 :
15319 else
15320 # We have old collect2
15321 hardcode_direct=unsupported
15322 # It fails to find uninstalled libraries when the uninstalled
15323 # path is not listed in the libpath. Setting hardcode_minus_L
15324 # to unsupported forces relinking
15325 hardcode_minus_L=yes
15326 hardcode_libdir_flag_spec='-L$libdir'
15327 hardcode_libdir_separator=
15328 fi
15329 ;;
15330 esac
15331 shared_flag='-shared'
15332 if test "$aix_use_runtimelinking" = yes; then
15333 shared_flag="$shared_flag "'${wl}-G'
15334 fi
15335 link_all_deplibs=no
15336 else
15337 # not using gcc
15338 if test "$host_cpu" = ia64; then
15339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15340 # chokes on -Wl,-G. The following line is correct:
15341 shared_flag='-G'
15342 else
15343 if test "$aix_use_runtimelinking" = yes; then
15344 shared_flag='${wl}-G'
15345 else
15346 shared_flag='${wl}-bM:SRE'
15347 fi
15348 fi
15349 fi
15350
15351 export_dynamic_flag_spec='${wl}-bexpall'
15352 # It seems that -bexpall does not export symbols beginning with
15353 # underscore (_), so it is better to generate a list of symbols to export.
15354 always_export_symbols=yes
15355 if test "$aix_use_runtimelinking" = yes; then
15356 # Warning - without using the other runtime loading flags (-brtl),
15357 # -berok will link without error, but may produce a broken library.
15358 allow_undefined_flag='-berok'
15359 # Determine the default libpath from the value encoded in an
15360 # empty executable.
15361 if test "${lt_cv_aix_libpath+set}" = set; then
15362 aix_libpath=$lt_cv_aix_libpath
15363 else
15364 if ${lt_cv_aix_libpath_+:} false; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369
15370 int
15371 main ()
15372 {
15373
15374 ;
15375 return 0;
15376 }
15377 _ACEOF
15378 if ac_fn_c_try_link "$LINENO"; then :
15379
15380 lt_aix_libpath_sed='
15381 /Import File Strings/,/^$/ {
15382 /^0/ {
15383 s/^0 *\([^ ]*\) *$/\1/
15384 p
15385 }
15386 }'
15387 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15388 # Check for a 64-bit object if we didn't find anything.
15389 if test -z "$lt_cv_aix_libpath_"; then
15390 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15391 fi
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395 if test -z "$lt_cv_aix_libpath_"; then
15396 lt_cv_aix_libpath_="/usr/lib:/lib"
15397 fi
15398
15399 fi
15400
15401 aix_libpath=$lt_cv_aix_libpath_
15402 fi
15403
15404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15405 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"
15406 else
15407 if test "$host_cpu" = ia64; then
15408 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15409 allow_undefined_flag="-z nodefs"
15410 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"
15411 else
15412 # Determine the default libpath from the value encoded in an
15413 # empty executable.
15414 if test "${lt_cv_aix_libpath+set}" = set; then
15415 aix_libpath=$lt_cv_aix_libpath
15416 else
15417 if ${lt_cv_aix_libpath_+:} false; then :
15418 $as_echo_n "(cached) " >&6
15419 else
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422
15423 int
15424 main ()
15425 {
15426
15427 ;
15428 return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_c_try_link "$LINENO"; then :
15432
15433 lt_aix_libpath_sed='
15434 /Import File Strings/,/^$/ {
15435 /^0/ {
15436 s/^0 *\([^ ]*\) *$/\1/
15437 p
15438 }
15439 }'
15440 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15441 # Check for a 64-bit object if we didn't find anything.
15442 if test -z "$lt_cv_aix_libpath_"; then
15443 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15444 fi
15445 fi
15446 rm -f core conftest.err conftest.$ac_objext \
15447 conftest$ac_exeext conftest.$ac_ext
15448 if test -z "$lt_cv_aix_libpath_"; then
15449 lt_cv_aix_libpath_="/usr/lib:/lib"
15450 fi
15451
15452 fi
15453
15454 aix_libpath=$lt_cv_aix_libpath_
15455 fi
15456
15457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15458 # Warning - without using the other run time loading flags,
15459 # -berok will link without error, but may produce a broken library.
15460 no_undefined_flag=' ${wl}-bernotok'
15461 allow_undefined_flag=' ${wl}-berok'
15462 if test "$with_gnu_ld" = yes; then
15463 # We only use this code for GNU lds that support --whole-archive.
15464 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15465 else
15466 # Exported symbols can be pulled into shared objects from archives
15467 whole_archive_flag_spec='$convenience'
15468 fi
15469 archive_cmds_need_lc=yes
15470 # This is similar to how AIX traditionally builds its shared libraries.
15471 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'
15472 fi
15473 fi
15474 ;;
15475
15476 amigaos*)
15477 case $host_cpu in
15478 powerpc)
15479 # see comment about AmigaOS4 .so support
15480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481 archive_expsym_cmds=''
15482 ;;
15483 m68k)
15484 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)'
15485 hardcode_libdir_flag_spec='-L$libdir'
15486 hardcode_minus_L=yes
15487 ;;
15488 esac
15489 ;;
15490
15491 bsdi[45]*)
15492 export_dynamic_flag_spec=-rdynamic
15493 ;;
15494
15495 cygwin* | mingw* | pw32* | cegcc*)
15496 # When not using gcc, we currently assume that we are using
15497 # Microsoft Visual C++.
15498 # hardcode_libdir_flag_spec is actually meaningless, as there is
15499 # no search path for DLLs.
15500 case $cc_basename in
15501 cl*)
15502 # Native MSVC
15503 hardcode_libdir_flag_spec=' '
15504 allow_undefined_flag=unsupported
15505 always_export_symbols=yes
15506 file_list_spec='@'
15507 # Tell ltmain to make .lib files, not .a files.
15508 libext=lib
15509 # Tell ltmain to make .dll files, not .so files.
15510 shrext_cmds=".dll"
15511 # FIXME: Setting linknames here is a bad hack.
15512 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15513 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15514 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15515 else
15516 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15517 fi~
15518 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15519 linknames='
15520 # The linker will not automatically build a static lib if we build a DLL.
15521 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15522 enable_shared_with_static_runtimes=yes
15523 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15525 # Don't use ranlib
15526 old_postinstall_cmds='chmod 644 $oldlib'
15527 postlink_cmds='lt_outputfile="@OUTPUT@"~
15528 lt_tool_outputfile="@TOOL_OUTPUT@"~
15529 case $lt_outputfile in
15530 *.exe|*.EXE) ;;
15531 *)
15532 lt_outputfile="$lt_outputfile.exe"
15533 lt_tool_outputfile="$lt_tool_outputfile.exe"
15534 ;;
15535 esac~
15536 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15537 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15538 $RM "$lt_outputfile.manifest";
15539 fi'
15540 ;;
15541 *)
15542 # Assume MSVC wrapper
15543 hardcode_libdir_flag_spec=' '
15544 allow_undefined_flag=unsupported
15545 # Tell ltmain to make .lib files, not .a files.
15546 libext=lib
15547 # Tell ltmain to make .dll files, not .so files.
15548 shrext_cmds=".dll"
15549 # FIXME: Setting linknames here is a bad hack.
15550 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15551 # The linker will automatically build a .lib file if we build a DLL.
15552 old_archive_from_new_cmds='true'
15553 # FIXME: Should let the user specify the lib program.
15554 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15555 enable_shared_with_static_runtimes=yes
15556 ;;
15557 esac
15558 ;;
15559
15560 darwin* | rhapsody*)
15561
15562
15563 archive_cmds_need_lc=no
15564 hardcode_direct=no
15565 hardcode_automatic=yes
15566 hardcode_shlibpath_var=unsupported
15567 if test "$lt_cv_ld_force_load" = "yes"; then
15568 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\"`'
15569
15570 else
15571 whole_archive_flag_spec=''
15572 fi
15573 link_all_deplibs=yes
15574 allow_undefined_flag="$_lt_dar_allow_undefined"
15575 case $cc_basename in
15576 ifort*) _lt_dar_can_shared=yes ;;
15577 *) _lt_dar_can_shared=$GCC ;;
15578 esac
15579 if test "$_lt_dar_can_shared" = "yes"; then
15580 output_verbose_link_cmd=func_echo_all
15581 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15582 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15583 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}"
15584 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}"
15585
15586 else
15587 ld_shlibs=no
15588 fi
15589
15590 ;;
15591
15592 dgux*)
15593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15594 hardcode_libdir_flag_spec='-L$libdir'
15595 hardcode_shlibpath_var=no
15596 ;;
15597
15598 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15599 # support. Future versions do this automatically, but an explicit c++rt0.o
15600 # does not break anything, and helps significantly (at the cost of a little
15601 # extra space).
15602 freebsd2.2*)
15603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15604 hardcode_libdir_flag_spec='-R$libdir'
15605 hardcode_direct=yes
15606 hardcode_shlibpath_var=no
15607 ;;
15608
15609 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15610 freebsd2.*)
15611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15612 hardcode_direct=yes
15613 hardcode_minus_L=yes
15614 hardcode_shlibpath_var=no
15615 ;;
15616
15617 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15618 freebsd* | dragonfly*)
15619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15620 hardcode_libdir_flag_spec='-R$libdir'
15621 hardcode_direct=yes
15622 hardcode_shlibpath_var=no
15623 ;;
15624
15625 hpux9*)
15626 if test "$GCC" = yes; then
15627 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'
15628 else
15629 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'
15630 fi
15631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15632 hardcode_libdir_separator=:
15633 hardcode_direct=yes
15634
15635 # hardcode_minus_L: Not really in the search PATH,
15636 # but as the default location of the library.
15637 hardcode_minus_L=yes
15638 export_dynamic_flag_spec='${wl}-E'
15639 ;;
15640
15641 hpux10*)
15642 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15643 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15644 else
15645 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15646 fi
15647 if test "$with_gnu_ld" = no; then
15648 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15649 hardcode_libdir_separator=:
15650 hardcode_direct=yes
15651 hardcode_direct_absolute=yes
15652 export_dynamic_flag_spec='${wl}-E'
15653 # hardcode_minus_L: Not really in the search PATH,
15654 # but as the default location of the library.
15655 hardcode_minus_L=yes
15656 fi
15657 ;;
15658
15659 hpux11*)
15660 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15661 case $host_cpu in
15662 hppa*64*)
15663 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 ;;
15665 ia64*)
15666 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15667 ;;
15668 *)
15669 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15670 ;;
15671 esac
15672 else
15673 case $host_cpu in
15674 hppa*64*)
15675 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676 ;;
15677 ia64*)
15678 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15679 ;;
15680 *)
15681
15682 # Older versions of the 11.00 compiler do not understand -b yet
15683 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15685 $as_echo_n "checking if $CC understands -b... " >&6; }
15686 if ${lt_cv_prog_compiler__b+:} false; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 lt_cv_prog_compiler__b=no
15690 save_LDFLAGS="$LDFLAGS"
15691 LDFLAGS="$LDFLAGS -b"
15692 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15693 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15694 # The linker can only warn and ignore the option if not recognized
15695 # So say no if there are warnings
15696 if test -s conftest.err; then
15697 # Append any errors to the config.log.
15698 cat conftest.err 1>&5
15699 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15701 if diff conftest.exp conftest.er2 >/dev/null; then
15702 lt_cv_prog_compiler__b=yes
15703 fi
15704 else
15705 lt_cv_prog_compiler__b=yes
15706 fi
15707 fi
15708 $RM -r conftest*
15709 LDFLAGS="$save_LDFLAGS"
15710
15711 fi
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15713 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15714
15715 if test x"$lt_cv_prog_compiler__b" = xyes; then
15716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15717 else
15718 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15719 fi
15720
15721 ;;
15722 esac
15723 fi
15724 if test "$with_gnu_ld" = no; then
15725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15726 hardcode_libdir_separator=:
15727
15728 case $host_cpu in
15729 hppa*64*|ia64*)
15730 hardcode_direct=no
15731 hardcode_shlibpath_var=no
15732 ;;
15733 *)
15734 hardcode_direct=yes
15735 hardcode_direct_absolute=yes
15736 export_dynamic_flag_spec='${wl}-E'
15737
15738 # hardcode_minus_L: Not really in the search PATH,
15739 # but as the default location of the library.
15740 hardcode_minus_L=yes
15741 ;;
15742 esac
15743 fi
15744 ;;
15745
15746 irix5* | irix6* | nonstopux*)
15747 if test "$GCC" = yes; then
15748 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'
15749 # Try to use the -exported_symbol ld option, if it does not
15750 # work, assume that -exports_file does not work either and
15751 # implicitly export all symbols.
15752 # This should be the same for all languages, so no per-tag cache variable.
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15754 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15755 if ${lt_cv_irix_exported_symbol+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 save_LDFLAGS="$LDFLAGS"
15759 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 int foo (void) { return 0; }
15763 _ACEOF
15764 if ac_fn_c_try_link "$LINENO"; then :
15765 lt_cv_irix_exported_symbol=yes
15766 else
15767 lt_cv_irix_exported_symbol=no
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext \
15770 conftest$ac_exeext conftest.$ac_ext
15771 LDFLAGS="$save_LDFLAGS"
15772 fi
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15774 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15775 if test "$lt_cv_irix_exported_symbol" = yes; then
15776 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'
15777 fi
15778 else
15779 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'
15780 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'
15781 fi
15782 archive_cmds_need_lc='no'
15783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15784 hardcode_libdir_separator=:
15785 inherit_rpath=yes
15786 link_all_deplibs=yes
15787 ;;
15788
15789 netbsd* | netbsdelf*-gnu)
15790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15792 else
15793 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15794 fi
15795 hardcode_libdir_flag_spec='-R$libdir'
15796 hardcode_direct=yes
15797 hardcode_shlibpath_var=no
15798 ;;
15799
15800 newsos6)
15801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_direct=yes
15803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15804 hardcode_libdir_separator=:
15805 hardcode_shlibpath_var=no
15806 ;;
15807
15808 *nto* | *qnx*)
15809 ;;
15810
15811 openbsd*)
15812 if test -f /usr/libexec/ld.so; then
15813 hardcode_direct=yes
15814 hardcode_shlibpath_var=no
15815 hardcode_direct_absolute=yes
15816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15818 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15820 export_dynamic_flag_spec='${wl}-E'
15821 else
15822 case $host_os in
15823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_libdir_flag_spec='-R$libdir'
15826 ;;
15827 *)
15828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15830 ;;
15831 esac
15832 fi
15833 else
15834 ld_shlibs=no
15835 fi
15836 ;;
15837
15838 os2*)
15839 hardcode_libdir_flag_spec='-L$libdir'
15840 hardcode_minus_L=yes
15841 allow_undefined_flag=unsupported
15842 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'
15843 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15844 ;;
15845
15846 osf3*)
15847 if test "$GCC" = yes; then
15848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15849 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'
15850 else
15851 allow_undefined_flag=' -expect_unresolved \*'
15852 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'
15853 fi
15854 archive_cmds_need_lc='no'
15855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15856 hardcode_libdir_separator=:
15857 ;;
15858
15859 osf4* | osf5*) # as osf3* with the addition of -msym flag
15860 if test "$GCC" = yes; then
15861 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15862 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'
15863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15864 else
15865 allow_undefined_flag=' -expect_unresolved \*'
15866 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'
15867 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~
15868 $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'
15869
15870 # Both c and cxx compiler support -rpath directly
15871 hardcode_libdir_flag_spec='-rpath $libdir'
15872 fi
15873 archive_cmds_need_lc='no'
15874 hardcode_libdir_separator=:
15875 ;;
15876
15877 solaris*)
15878 no_undefined_flag=' -z defs'
15879 if test "$GCC" = yes; then
15880 wlarc='${wl}'
15881 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15883 $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'
15884 else
15885 case `$CC -V 2>&1` in
15886 *"Compilers 5.0"*)
15887 wlarc=''
15888 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15891 ;;
15892 *)
15893 wlarc='${wl}'
15894 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15896 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15897 ;;
15898 esac
15899 fi
15900 hardcode_libdir_flag_spec='-R$libdir'
15901 hardcode_shlibpath_var=no
15902 case $host_os in
15903 solaris2.[0-5] | solaris2.[0-5].*) ;;
15904 *)
15905 # The compiler driver will combine and reorder linker options,
15906 # but understands `-z linker_flag'. GCC discards it without `$wl',
15907 # but is careful enough not to reorder.
15908 # Supported since Solaris 2.6 (maybe 2.5.1?)
15909 if test "$GCC" = yes; then
15910 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15911 else
15912 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15913 fi
15914 ;;
15915 esac
15916 link_all_deplibs=yes
15917 ;;
15918
15919 sunos4*)
15920 if test "x$host_vendor" = xsequent; then
15921 # Use $CC to link under sequent, because it throws in some extra .o
15922 # files that make .init and .fini sections work.
15923 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15924 else
15925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15926 fi
15927 hardcode_libdir_flag_spec='-L$libdir'
15928 hardcode_direct=yes
15929 hardcode_minus_L=yes
15930 hardcode_shlibpath_var=no
15931 ;;
15932
15933 sysv4)
15934 case $host_vendor in
15935 sni)
15936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15937 hardcode_direct=yes # is this really true???
15938 ;;
15939 siemens)
15940 ## LD is ld it makes a PLAMLIB
15941 ## CC just makes a GrossModule.
15942 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15943 reload_cmds='$CC -r -o $output$reload_objs'
15944 hardcode_direct=no
15945 ;;
15946 motorola)
15947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15949 ;;
15950 esac
15951 runpath_var='LD_RUN_PATH'
15952 hardcode_shlibpath_var=no
15953 ;;
15954
15955 sysv4.3*)
15956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15957 hardcode_shlibpath_var=no
15958 export_dynamic_flag_spec='-Bexport'
15959 ;;
15960
15961 sysv4*MP*)
15962 if test -d /usr/nec; then
15963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15964 hardcode_shlibpath_var=no
15965 runpath_var=LD_RUN_PATH
15966 hardcode_runpath_var=yes
15967 ld_shlibs=yes
15968 fi
15969 ;;
15970
15971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15972 no_undefined_flag='${wl}-z,text'
15973 archive_cmds_need_lc=no
15974 hardcode_shlibpath_var=no
15975 runpath_var='LD_RUN_PATH'
15976
15977 if test "$GCC" = yes; then
15978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15980 else
15981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15983 fi
15984 ;;
15985
15986 sysv5* | sco3.2v5* | sco5v6*)
15987 # Note: We can NOT use -z defs as we might desire, because we do not
15988 # link with -lc, and that would cause any symbols used from libc to
15989 # always be unresolved, which means just about no library would
15990 # ever link correctly. If we're not using GNU ld we use -z text
15991 # though, which does catch some bad symbols but isn't as heavy-handed
15992 # as -z defs.
15993 no_undefined_flag='${wl}-z,text'
15994 allow_undefined_flag='${wl}-z,nodefs'
15995 archive_cmds_need_lc=no
15996 hardcode_shlibpath_var=no
15997 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15998 hardcode_libdir_separator=':'
15999 link_all_deplibs=yes
16000 export_dynamic_flag_spec='${wl}-Bexport'
16001 runpath_var='LD_RUN_PATH'
16002
16003 if test "$GCC" = yes; then
16004 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16005 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16006 else
16007 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16008 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16009 fi
16010 ;;
16011
16012 uts4*)
16013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16014 hardcode_libdir_flag_spec='-L$libdir'
16015 hardcode_shlibpath_var=no
16016 ;;
16017
16018 *)
16019 ld_shlibs=no
16020 ;;
16021 esac
16022
16023 if test x$host_vendor = xsni; then
16024 case $host in
16025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16026 export_dynamic_flag_spec='${wl}-Blargedynsym'
16027 ;;
16028 esac
16029 fi
16030 fi
16031
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16033 $as_echo "$ld_shlibs" >&6; }
16034 test "$ld_shlibs" = no && can_build_shared=no
16035
16036 with_gnu_ld=$with_gnu_ld
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052 #
16053 # Do we need to explicitly link libc?
16054 #
16055 case "x$archive_cmds_need_lc" in
16056 x|xyes)
16057 # Assume -lc should be added
16058 archive_cmds_need_lc=yes
16059
16060 if test "$enable_shared" = yes && test "$GCC" = yes; then
16061 case $archive_cmds in
16062 *'~'*)
16063 # FIXME: we may have to deal with multi-command sequences.
16064 ;;
16065 '$CC '*)
16066 # Test whether the compiler implicitly links with -lc since on some
16067 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16068 # to ld, don't add -lc before -lgcc.
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16070 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16071 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16072 $as_echo_n "(cached) " >&6
16073 else
16074 $RM conftest*
16075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16076
16077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16078 (eval $ac_compile) 2>&5
16079 ac_status=$?
16080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16081 test $ac_status = 0; } 2>conftest.err; then
16082 soname=conftest
16083 lib=conftest
16084 libobjs=conftest.$ac_objext
16085 deplibs=
16086 wl=$lt_prog_compiler_wl
16087 pic_flag=$lt_prog_compiler_pic
16088 compiler_flags=-v
16089 linker_flags=-v
16090 verstring=
16091 output_objdir=.
16092 libname=conftest
16093 lt_save_allow_undefined_flag=$allow_undefined_flag
16094 allow_undefined_flag=
16095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16096 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16097 ac_status=$?
16098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16099 test $ac_status = 0; }
16100 then
16101 lt_cv_archive_cmds_need_lc=no
16102 else
16103 lt_cv_archive_cmds_need_lc=yes
16104 fi
16105 allow_undefined_flag=$lt_save_allow_undefined_flag
16106 else
16107 cat conftest.err 1>&5
16108 fi
16109 $RM conftest*
16110
16111 fi
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16113 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16114 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16115 ;;
16116 esac
16117 fi
16118 ;;
16119 esac
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16273 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16274
16275 if test "$GCC" = yes; then
16276 case $host_os in
16277 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16278 *) lt_awk_arg="/^libraries:/" ;;
16279 esac
16280 case $host_os in
16281 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16282 *) lt_sed_strip_eq="s,=/,/,g" ;;
16283 esac
16284 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16285 case $lt_search_path_spec in
16286 *\;*)
16287 # if the path contains ";" then we assume it to be the separator
16288 # otherwise default to the standard path separator (i.e. ":") - it is
16289 # assumed that no part of a normal pathname contains ";" but that should
16290 # okay in the real world where ";" in dirpaths is itself problematic.
16291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16292 ;;
16293 *)
16294 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16295 ;;
16296 esac
16297 # Ok, now we have the path, separated by spaces, we can step through it
16298 # and add multilib dir if necessary.
16299 lt_tmp_lt_search_path_spec=
16300 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16301 for lt_sys_path in $lt_search_path_spec; do
16302 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16303 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16304 else
16305 test -d "$lt_sys_path" && \
16306 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16307 fi
16308 done
16309 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16310 BEGIN {RS=" "; FS="/|\n";} {
16311 lt_foo="";
16312 lt_count=0;
16313 for (lt_i = NF; lt_i > 0; lt_i--) {
16314 if ($lt_i != "" && $lt_i != ".") {
16315 if ($lt_i == "..") {
16316 lt_count++;
16317 } else {
16318 if (lt_count == 0) {
16319 lt_foo="/" $lt_i lt_foo;
16320 } else {
16321 lt_count--;
16322 }
16323 }
16324 }
16325 }
16326 if (lt_foo != "") { lt_freq[lt_foo]++; }
16327 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16328 }'`
16329 # AWK program above erroneously prepends '/' to C:/dos/paths
16330 # for these hosts.
16331 case $host_os in
16332 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16333 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16334 esac
16335 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16336 else
16337 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16338 fi
16339 library_names_spec=
16340 libname_spec='lib$name'
16341 soname_spec=
16342 shrext_cmds=".so"
16343 postinstall_cmds=
16344 postuninstall_cmds=
16345 finish_cmds=
16346 finish_eval=
16347 shlibpath_var=
16348 shlibpath_overrides_runpath=unknown
16349 version_type=none
16350 dynamic_linker="$host_os ld.so"
16351 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16352 need_lib_prefix=unknown
16353 hardcode_into_libs=no
16354
16355 # when you set need_version to no, make sure it does not cause -set_version
16356 # flags to be left without arguments
16357 need_version=unknown
16358
16359 case $host_os in
16360 aix3*)
16361 version_type=linux # correct to gnu/linux during the next big refactor
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16363 shlibpath_var=LIBPATH
16364
16365 # AIX 3 has no versioning support, so we append a major version to the name.
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 ;;
16368
16369 aix[4-9]*)
16370 version_type=linux # correct to gnu/linux during the next big refactor
16371 need_lib_prefix=no
16372 need_version=no
16373 hardcode_into_libs=yes
16374 if test "$host_cpu" = ia64; then
16375 # AIX 5 supports IA64
16376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16377 shlibpath_var=LD_LIBRARY_PATH
16378 else
16379 # With GCC up to 2.95.x, collect2 would create an import file
16380 # for dependence libraries. The import file would start with
16381 # the line `#! .'. This would cause the generated library to
16382 # depend on `.', always an invalid library. This was fixed in
16383 # development snapshots of GCC prior to 3.0.
16384 case $host_os in
16385 aix4 | aix4.[01] | aix4.[01].*)
16386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16387 echo ' yes '
16388 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16389 :
16390 else
16391 can_build_shared=no
16392 fi
16393 ;;
16394 esac
16395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16396 # soname into executable. Probably we can add versioning support to
16397 # collect2, so additional links can be useful in future.
16398 if test "$aix_use_runtimelinking" = yes; then
16399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16400 # instead of lib<name>.a to let people know that these are not
16401 # typical AIX shared libraries.
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 else
16404 # We preserve .a as extension for shared libraries through AIX4.2
16405 # and later when we are not doing run time linking.
16406 library_names_spec='${libname}${release}.a $libname.a'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 fi
16409 shlibpath_var=LIBPATH
16410 fi
16411 ;;
16412
16413 amigaos*)
16414 case $host_cpu in
16415 powerpc)
16416 # Since July 2007 AmigaOS4 officially supports .so libraries.
16417 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 ;;
16420 m68k)
16421 library_names_spec='$libname.ixlibrary $libname.a'
16422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423 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'
16424 ;;
16425 esac
16426 ;;
16427
16428 beos*)
16429 library_names_spec='${libname}${shared_ext}'
16430 dynamic_linker="$host_os ld.so"
16431 shlibpath_var=LIBRARY_PATH
16432 ;;
16433
16434 bsdi[45]*)
16435 version_type=linux # correct to gnu/linux during the next big refactor
16436 need_version=no
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438 soname_spec='${libname}${release}${shared_ext}$major'
16439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16443 # the default ld.so.conf also contains /usr/contrib/lib and
16444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16445 # libtool to hard-code these into programs
16446 ;;
16447
16448 cygwin* | mingw* | pw32* | cegcc*)
16449 version_type=windows
16450 shrext_cmds=".dll"
16451 need_version=no
16452 need_lib_prefix=no
16453
16454 case $GCC,$cc_basename in
16455 yes,*)
16456 # gcc
16457 library_names_spec='$libname.dll.a'
16458 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16459 postinstall_cmds='base_file=`basename \${file}`~
16460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16461 dldir=$destdir/`dirname \$dlpath`~
16462 test -d \$dldir || mkdir -p \$dldir~
16463 $install_prog $dir/$dlname \$dldir/$dlname~
16464 chmod a+x \$dldir/$dlname~
16465 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16466 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16467 fi'
16468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469 dlpath=$dir/\$dldll~
16470 $RM \$dlpath'
16471 shlibpath_overrides_runpath=yes
16472
16473 case $host_os in
16474 cygwin*)
16475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477
16478 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16479 ;;
16480 mingw* | cegcc*)
16481 # MinGW DLLs use traditional 'lib' prefix
16482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16483 ;;
16484 pw32*)
16485 # pw32 DLLs use 'pw' prefix rather than 'lib'
16486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16487 ;;
16488 esac
16489 dynamic_linker='Win32 ld.exe'
16490 ;;
16491
16492 *,cl*)
16493 # Native MSVC
16494 libname_spec='$name'
16495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16496 library_names_spec='${libname}.dll.lib'
16497
16498 case $build_os in
16499 mingw*)
16500 sys_lib_search_path_spec=
16501 lt_save_ifs=$IFS
16502 IFS=';'
16503 for lt_path in $LIB
16504 do
16505 IFS=$lt_save_ifs
16506 # Let DOS variable expansion print the short 8.3 style file name.
16507 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16508 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16509 done
16510 IFS=$lt_save_ifs
16511 # Convert to MSYS style.
16512 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16513 ;;
16514 cygwin*)
16515 # Convert to unix form, then to dos form, then back to unix form
16516 # but this time dos style (no spaces!) so that the unix form looks
16517 # like /cygdrive/c/PROGRA~1:/cygdr...
16518 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16519 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16520 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16521 ;;
16522 *)
16523 sys_lib_search_path_spec="$LIB"
16524 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16525 # It is most probably a Windows format PATH.
16526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16527 else
16528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16529 fi
16530 # FIXME: find the short name or the path components, as spaces are
16531 # common. (e.g. "Program Files" -> "PROGRA~1")
16532 ;;
16533 esac
16534
16535 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16536 postinstall_cmds='base_file=`basename \${file}`~
16537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16538 dldir=$destdir/`dirname \$dlpath`~
16539 test -d \$dldir || mkdir -p \$dldir~
16540 $install_prog $dir/$dlname \$dldir/$dlname'
16541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16542 dlpath=$dir/\$dldll~
16543 $RM \$dlpath'
16544 shlibpath_overrides_runpath=yes
16545 dynamic_linker='Win32 link.exe'
16546 ;;
16547
16548 *)
16549 # Assume MSVC wrapper
16550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16551 dynamic_linker='Win32 ld.exe'
16552 ;;
16553 esac
16554 # FIXME: first we should search . and the directory the executable is in
16555 shlibpath_var=PATH
16556 ;;
16557
16558 darwin* | rhapsody*)
16559 dynamic_linker="$host_os dyld"
16560 version_type=darwin
16561 need_lib_prefix=no
16562 need_version=no
16563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16564 soname_spec='${libname}${release}${major}$shared_ext'
16565 shlibpath_overrides_runpath=yes
16566 shlibpath_var=DYLD_LIBRARY_PATH
16567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16568
16569 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16571 ;;
16572
16573 dgux*)
16574 version_type=linux # correct to gnu/linux during the next big refactor
16575 need_lib_prefix=no
16576 need_version=no
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 ;;
16581
16582 freebsd* | dragonfly*)
16583 # DragonFly does not have aout. When/if they implement a new
16584 # versioning mechanism, adjust this.
16585 if test -x /usr/bin/objformat; then
16586 objformat=`/usr/bin/objformat`
16587 else
16588 case $host_os in
16589 freebsd[23].*) objformat=aout ;;
16590 *) objformat=elf ;;
16591 esac
16592 fi
16593 version_type=freebsd-$objformat
16594 case $version_type in
16595 freebsd-elf*)
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16597 need_version=no
16598 need_lib_prefix=no
16599 ;;
16600 freebsd-*)
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16602 need_version=yes
16603 ;;
16604 esac
16605 shlibpath_var=LD_LIBRARY_PATH
16606 case $host_os in
16607 freebsd2.*)
16608 shlibpath_overrides_runpath=yes
16609 ;;
16610 freebsd3.[01]* | freebsdelf3.[01]*)
16611 shlibpath_overrides_runpath=yes
16612 hardcode_into_libs=yes
16613 ;;
16614 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16615 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16616 shlibpath_overrides_runpath=no
16617 hardcode_into_libs=yes
16618 ;;
16619 *) # from 4.6 on, and DragonFly
16620 shlibpath_overrides_runpath=yes
16621 hardcode_into_libs=yes
16622 ;;
16623 esac
16624 ;;
16625
16626 haiku*)
16627 version_type=linux # correct to gnu/linux during the next big refactor
16628 need_lib_prefix=no
16629 need_version=no
16630 dynamic_linker="$host_os runtime_loader"
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 shlibpath_var=LIBRARY_PATH
16634 shlibpath_overrides_runpath=yes
16635 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16636 hardcode_into_libs=yes
16637 ;;
16638
16639 hpux9* | hpux10* | hpux11*)
16640 # Give a soname corresponding to the major version so that dld.sl refuses to
16641 # link against other versions.
16642 version_type=sunos
16643 need_lib_prefix=no
16644 need_version=no
16645 case $host_cpu in
16646 ia64*)
16647 shrext_cmds='.so'
16648 hardcode_into_libs=yes
16649 dynamic_linker="$host_os dld.so"
16650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653 soname_spec='${libname}${release}${shared_ext}$major'
16654 if test "X$HPUX_IA64_MODE" = X32; then
16655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16656 else
16657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16658 fi
16659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16660 ;;
16661 hppa*64*)
16662 shrext_cmds='.sl'
16663 hardcode_into_libs=yes
16664 dynamic_linker="$host_os dld.sl"
16665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668 soname_spec='${libname}${release}${shared_ext}$major'
16669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16671 ;;
16672 *)
16673 shrext_cmds='.sl'
16674 dynamic_linker="$host_os dld.sl"
16675 shlibpath_var=SHLIB_PATH
16676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 ;;
16680 esac
16681 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16682 postinstall_cmds='chmod 555 $lib'
16683 # or fails outright, so override atomically:
16684 install_override_mode=555
16685 ;;
16686
16687 interix[3-9]*)
16688 version_type=linux # correct to gnu/linux during the next big refactor
16689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 shlibpath_overrides_runpath=no
16696 hardcode_into_libs=yes
16697 ;;
16698
16699 irix5* | irix6* | nonstopux*)
16700 case $host_os in
16701 nonstopux*) version_type=nonstopux ;;
16702 *)
16703 if test "$lt_cv_prog_gnu_ld" = yes; then
16704 version_type=linux # correct to gnu/linux during the next big refactor
16705 else
16706 version_type=irix
16707 fi ;;
16708 esac
16709 need_lib_prefix=no
16710 need_version=no
16711 soname_spec='${libname}${release}${shared_ext}$major'
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16713 case $host_os in
16714 irix5* | nonstopux*)
16715 libsuff= shlibsuff=
16716 ;;
16717 *)
16718 case $LD in # libtool.m4 will add one of these switches to LD
16719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16720 libsuff= shlibsuff= libmagic=32-bit;;
16721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16722 libsuff=32 shlibsuff=N32 libmagic=N32;;
16723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16725 *) libsuff= shlibsuff= libmagic=never-match;;
16726 esac
16727 ;;
16728 esac
16729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16730 shlibpath_overrides_runpath=no
16731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16733 hardcode_into_libs=yes
16734 ;;
16735
16736 # No shared lib support for Linux oldld, aout, or coff.
16737 linux*oldld* | linux*aout* | linux*coff*)
16738 dynamic_linker=no
16739 ;;
16740
16741 # This must be glibc/ELF.
16742 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16743 version_type=linux # correct to gnu/linux during the next big refactor
16744 need_lib_prefix=no
16745 need_version=no
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747 soname_spec='${libname}${release}${shared_ext}$major'
16748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=no
16751
16752 # Some binutils ld are patched to set DT_RUNPATH
16753 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 lt_cv_shlibpath_overrides_runpath=no
16757 save_LDFLAGS=$LDFLAGS
16758 save_libdir=$libdir
16759 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16760 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16763
16764 int
16765 main ()
16766 {
16767
16768 ;
16769 return 0;
16770 }
16771 _ACEOF
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16774 lt_cv_shlibpath_overrides_runpath=yes
16775 fi
16776 fi
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LDFLAGS=$save_LDFLAGS
16780 libdir=$save_libdir
16781
16782 fi
16783
16784 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16785
16786 # This implies no fast_install, which is unacceptable.
16787 # Some rework will be needed to allow for fast_install
16788 # before this can be enabled.
16789 hardcode_into_libs=yes
16790
16791 # Append ld.so.conf contents to the search path
16792 if test -f /etc/ld.so.conf; then
16793 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' ' '`
16794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16795 fi
16796
16797 # We used to test for /lib/ld.so.1 and disable shared libraries on
16798 # powerpc, because MkLinux only supported shared libraries with the
16799 # GNU dynamic linker. Since this was broken with cross compilers,
16800 # most powerpc-linux boxes support dynamic linking these days and
16801 # people can always --disable-shared, the test was removed, and we
16802 # assume the GNU/Linux dynamic linker is in use.
16803 dynamic_linker='GNU/Linux ld.so'
16804 ;;
16805
16806 netbsdelf*-gnu)
16807 version_type=linux
16808 need_lib_prefix=no
16809 need_version=no
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 shlibpath_overrides_runpath=no
16814 hardcode_into_libs=yes
16815 dynamic_linker='NetBSD ld.elf_so'
16816 ;;
16817
16818 netbsd*)
16819 version_type=sunos
16820 need_lib_prefix=no
16821 need_version=no
16822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16825 dynamic_linker='NetBSD (a.out) ld.so'
16826 else
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 dynamic_linker='NetBSD ld.elf_so'
16830 fi
16831 shlibpath_var=LD_LIBRARY_PATH
16832 shlibpath_overrides_runpath=yes
16833 hardcode_into_libs=yes
16834 ;;
16835
16836 newsos6)
16837 version_type=linux # correct to gnu/linux during the next big refactor
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 shlibpath_overrides_runpath=yes
16841 ;;
16842
16843 *nto* | *qnx*)
16844 version_type=qnx
16845 need_lib_prefix=no
16846 need_version=no
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 shlibpath_overrides_runpath=no
16851 hardcode_into_libs=yes
16852 dynamic_linker='ldqnx.so'
16853 ;;
16854
16855 openbsd*)
16856 version_type=sunos
16857 sys_lib_dlsearch_path_spec="/usr/lib"
16858 need_lib_prefix=no
16859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16860 case $host_os in
16861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16862 *) need_version=no ;;
16863 esac
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16868 case $host_os in
16869 openbsd2.[89] | openbsd2.[89].*)
16870 shlibpath_overrides_runpath=no
16871 ;;
16872 *)
16873 shlibpath_overrides_runpath=yes
16874 ;;
16875 esac
16876 else
16877 shlibpath_overrides_runpath=yes
16878 fi
16879 ;;
16880
16881 os2*)
16882 libname_spec='$name'
16883 shrext_cmds=".dll"
16884 need_lib_prefix=no
16885 library_names_spec='$libname${shared_ext} $libname.a'
16886 dynamic_linker='OS/2 ld.exe'
16887 shlibpath_var=LIBPATH
16888 ;;
16889
16890 osf3* | osf4* | osf5*)
16891 version_type=osf
16892 need_lib_prefix=no
16893 need_version=no
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16899 ;;
16900
16901 rdos*)
16902 dynamic_linker=no
16903 ;;
16904
16905 solaris*)
16906 version_type=linux # correct to gnu/linux during the next big refactor
16907 need_lib_prefix=no
16908 need_version=no
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 shlibpath_overrides_runpath=yes
16913 hardcode_into_libs=yes
16914 # ldd complains unless libraries are executable
16915 postinstall_cmds='chmod +x $lib'
16916 ;;
16917
16918 sunos4*)
16919 version_type=sunos
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 shlibpath_overrides_runpath=yes
16924 if test "$with_gnu_ld" = yes; then
16925 need_lib_prefix=no
16926 fi
16927 need_version=yes
16928 ;;
16929
16930 sysv4 | sysv4.3*)
16931 version_type=linux # correct to gnu/linux during the next big refactor
16932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16933 soname_spec='${libname}${release}${shared_ext}$major'
16934 shlibpath_var=LD_LIBRARY_PATH
16935 case $host_vendor in
16936 sni)
16937 shlibpath_overrides_runpath=no
16938 need_lib_prefix=no
16939 runpath_var=LD_RUN_PATH
16940 ;;
16941 siemens)
16942 need_lib_prefix=no
16943 ;;
16944 motorola)
16945 need_lib_prefix=no
16946 need_version=no
16947 shlibpath_overrides_runpath=no
16948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16949 ;;
16950 esac
16951 ;;
16952
16953 sysv4*MP*)
16954 if test -d /usr/nec ;then
16955 version_type=linux # correct to gnu/linux during the next big refactor
16956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16957 soname_spec='$libname${shared_ext}.$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 fi
16960 ;;
16961
16962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16963 version_type=freebsd-elf
16964 need_lib_prefix=no
16965 need_version=no
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 shlibpath_overrides_runpath=yes
16970 hardcode_into_libs=yes
16971 if test "$with_gnu_ld" = yes; then
16972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16973 else
16974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16975 case $host_os in
16976 sco3.2v5*)
16977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16978 ;;
16979 esac
16980 fi
16981 sys_lib_dlsearch_path_spec='/usr/lib'
16982 ;;
16983
16984 tpf*)
16985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16986 version_type=linux # correct to gnu/linux during the next big refactor
16987 need_lib_prefix=no
16988 need_version=no
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=no
16992 hardcode_into_libs=yes
16993 ;;
16994
16995 uts4*)
16996 version_type=linux # correct to gnu/linux during the next big refactor
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 soname_spec='${libname}${release}${shared_ext}$major'
16999 shlibpath_var=LD_LIBRARY_PATH
17000 ;;
17001
17002 *)
17003 dynamic_linker=no
17004 ;;
17005 esac
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17007 $as_echo "$dynamic_linker" >&6; }
17008 test "$dynamic_linker" = no && can_build_shared=no
17009
17010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17011 if test "$GCC" = yes; then
17012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17013 fi
17014
17015 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17016 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17017 fi
17018 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17019 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17020 fi
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17114 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17115 hardcode_action=
17116 if test -n "$hardcode_libdir_flag_spec" ||
17117 test -n "$runpath_var" ||
17118 test "X$hardcode_automatic" = "Xyes" ; then
17119
17120 # We can hardcode non-existent directories.
17121 if test "$hardcode_direct" != no &&
17122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17123 # have to relink, otherwise we might link with an installed library
17124 # when we should be linking with a yet-to-be-installed one
17125 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17126 test "$hardcode_minus_L" != no; then
17127 # Linking always hardcodes the temporary library directory.
17128 hardcode_action=relink
17129 else
17130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17131 hardcode_action=immediate
17132 fi
17133 else
17134 # We cannot hardcode anything, or else we can only hardcode existing
17135 # directories.
17136 hardcode_action=unsupported
17137 fi
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17139 $as_echo "$hardcode_action" >&6; }
17140
17141 if test "$hardcode_action" = relink ||
17142 test "$inherit_rpath" = yes; then
17143 # Fast installation is not supported
17144 enable_fast_install=no
17145 elif test "$shlibpath_overrides_runpath" = yes ||
17146 test "$enable_shared" = no; then
17147 # Fast installation is not necessary
17148 enable_fast_install=needless
17149 fi
17150
17151
17152
17153
17154
17155
17156 if test "x$enable_dlopen" != xyes; then
17157 enable_dlopen=unknown
17158 enable_dlopen_self=unknown
17159 enable_dlopen_self_static=unknown
17160 else
17161 lt_cv_dlopen=no
17162 lt_cv_dlopen_libs=
17163
17164 case $host_os in
17165 beos*)
17166 lt_cv_dlopen="load_add_on"
17167 lt_cv_dlopen_libs=
17168 lt_cv_dlopen_self=yes
17169 ;;
17170
17171 mingw* | pw32* | cegcc*)
17172 lt_cv_dlopen="LoadLibrary"
17173 lt_cv_dlopen_libs=
17174 ;;
17175
17176 cygwin*)
17177 lt_cv_dlopen="dlopen"
17178 lt_cv_dlopen_libs=
17179 ;;
17180
17181 darwin*)
17182 # if libdl is installed we need to link against it
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17185 if ${ac_cv_lib_dl_dlopen+:} false; then :
17186 $as_echo_n "(cached) " >&6
17187 else
17188 ac_check_lib_save_LIBS=$LIBS
17189 LIBS="-ldl $LIBS"
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192
17193 /* Override any GCC internal prototype to avoid an error.
17194 Use char because int might match the return type of a GCC
17195 builtin and then its argument prototype would still apply. */
17196 #ifdef __cplusplus
17197 extern "C"
17198 #endif
17199 char dlopen ();
17200 int
17201 main ()
17202 {
17203 return dlopen ();
17204 ;
17205 return 0;
17206 }
17207 _ACEOF
17208 if ac_fn_c_try_link "$LINENO"; then :
17209 ac_cv_lib_dl_dlopen=yes
17210 else
17211 ac_cv_lib_dl_dlopen=no
17212 fi
17213 rm -f core conftest.err conftest.$ac_objext \
17214 conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17216 fi
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17219 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17221 else
17222
17223 lt_cv_dlopen="dyld"
17224 lt_cv_dlopen_libs=
17225 lt_cv_dlopen_self=yes
17226
17227 fi
17228
17229 ;;
17230
17231 *)
17232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17233 if test "x$ac_cv_func_shl_load" = xyes; then :
17234 lt_cv_dlopen="shl_load"
17235 else
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17237 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17238 if ${ac_cv_lib_dld_shl_load+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-ldld $LIBS"
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char shl_load ();
17253 int
17254 main ()
17255 {
17256 return shl_load ();
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"; then :
17262 ac_cv_lib_dld_shl_load=yes
17263 else
17264 ac_cv_lib_dld_shl_load=no
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17271 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17272 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17274 else
17275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17276 if test "x$ac_cv_func_dlopen" = xyes; then :
17277 lt_cv_dlopen="dlopen"
17278 else
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17281 if ${ac_cv_lib_dl_dlopen+:} false; then :
17282 $as_echo_n "(cached) " >&6
17283 else
17284 ac_check_lib_save_LIBS=$LIBS
17285 LIBS="-ldl $LIBS"
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17288
17289 /* Override any GCC internal prototype to avoid an error.
17290 Use char because int might match the return type of a GCC
17291 builtin and then its argument prototype would still apply. */
17292 #ifdef __cplusplus
17293 extern "C"
17294 #endif
17295 char dlopen ();
17296 int
17297 main ()
17298 {
17299 return dlopen ();
17300 ;
17301 return 0;
17302 }
17303 _ACEOF
17304 if ac_fn_c_try_link "$LINENO"; then :
17305 ac_cv_lib_dl_dlopen=yes
17306 else
17307 ac_cv_lib_dl_dlopen=no
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17312 fi
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17315 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17317 else
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17319 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17320 if ${ac_cv_lib_svld_dlopen+:} false; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323 ac_check_lib_save_LIBS=$LIBS
17324 LIBS="-lsvld $LIBS"
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char dlopen ();
17335 int
17336 main ()
17337 {
17338 return dlopen ();
17339 ;
17340 return 0;
17341 }
17342 _ACEOF
17343 if ac_fn_c_try_link "$LINENO"; then :
17344 ac_cv_lib_svld_dlopen=yes
17345 else
17346 ac_cv_lib_svld_dlopen=no
17347 fi
17348 rm -f core conftest.err conftest.$ac_objext \
17349 conftest$ac_exeext conftest.$ac_ext
17350 LIBS=$ac_check_lib_save_LIBS
17351 fi
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17353 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17354 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17356 else
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17358 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17359 if ${ac_cv_lib_dld_dld_link+:} false; then :
17360 $as_echo_n "(cached) " >&6
17361 else
17362 ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-ldld $LIBS"
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17366
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17370 #ifdef __cplusplus
17371 extern "C"
17372 #endif
17373 char dld_link ();
17374 int
17375 main ()
17376 {
17377 return dld_link ();
17378 ;
17379 return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_link "$LINENO"; then :
17383 ac_cv_lib_dld_dld_link=yes
17384 else
17385 ac_cv_lib_dld_dld_link=no
17386 fi
17387 rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17389 LIBS=$ac_check_lib_save_LIBS
17390 fi
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17392 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17393 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17395 fi
17396
17397
17398 fi
17399
17400
17401 fi
17402
17403
17404 fi
17405
17406
17407 fi
17408
17409
17410 fi
17411
17412 ;;
17413 esac
17414
17415 if test "x$lt_cv_dlopen" != xno; then
17416 enable_dlopen=yes
17417 else
17418 enable_dlopen=no
17419 fi
17420
17421 case $lt_cv_dlopen in
17422 dlopen)
17423 save_CPPFLAGS="$CPPFLAGS"
17424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17425
17426 save_LDFLAGS="$LDFLAGS"
17427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17428
17429 save_LIBS="$LIBS"
17430 LIBS="$lt_cv_dlopen_libs $LIBS"
17431
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17433 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17434 if ${lt_cv_dlopen_self+:} false; then :
17435 $as_echo_n "(cached) " >&6
17436 else
17437 if test "$cross_compiling" = yes; then :
17438 lt_cv_dlopen_self=cross
17439 else
17440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17441 lt_status=$lt_dlunknown
17442 cat > conftest.$ac_ext <<_LT_EOF
17443 #line $LINENO "configure"
17444 #include "confdefs.h"
17445
17446 #if HAVE_DLFCN_H
17447 #include <dlfcn.h>
17448 #endif
17449
17450 #include <stdio.h>
17451
17452 #ifdef RTLD_GLOBAL
17453 # define LT_DLGLOBAL RTLD_GLOBAL
17454 #else
17455 # ifdef DL_GLOBAL
17456 # define LT_DLGLOBAL DL_GLOBAL
17457 # else
17458 # define LT_DLGLOBAL 0
17459 # endif
17460 #endif
17461
17462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17463 find out it does not work in some platform. */
17464 #ifndef LT_DLLAZY_OR_NOW
17465 # ifdef RTLD_LAZY
17466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17467 # else
17468 # ifdef DL_LAZY
17469 # define LT_DLLAZY_OR_NOW DL_LAZY
17470 # else
17471 # ifdef RTLD_NOW
17472 # define LT_DLLAZY_OR_NOW RTLD_NOW
17473 # else
17474 # ifdef DL_NOW
17475 # define LT_DLLAZY_OR_NOW DL_NOW
17476 # else
17477 # define LT_DLLAZY_OR_NOW 0
17478 # endif
17479 # endif
17480 # endif
17481 # endif
17482 #endif
17483
17484 /* When -fvisbility=hidden is used, assume the code has been annotated
17485 correspondingly for the symbols needed. */
17486 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17487 int fnord () __attribute__((visibility("default")));
17488 #endif
17489
17490 int fnord () { return 42; }
17491 int main ()
17492 {
17493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17494 int status = $lt_dlunknown;
17495
17496 if (self)
17497 {
17498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17499 else
17500 {
17501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17502 else puts (dlerror ());
17503 }
17504 /* dlclose (self); */
17505 }
17506 else
17507 puts (dlerror ());
17508
17509 return status;
17510 }
17511 _LT_EOF
17512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17513 (eval $ac_link) 2>&5
17514 ac_status=$?
17515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17517 (./conftest; exit; ) >&5 2>/dev/null
17518 lt_status=$?
17519 case x$lt_status in
17520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17523 esac
17524 else :
17525 # compilation failed
17526 lt_cv_dlopen_self=no
17527 fi
17528 fi
17529 rm -fr conftest*
17530
17531
17532 fi
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17534 $as_echo "$lt_cv_dlopen_self" >&6; }
17535
17536 if test "x$lt_cv_dlopen_self" = xyes; then
17537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17539 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17540 if ${lt_cv_dlopen_self_static+:} false; then :
17541 $as_echo_n "(cached) " >&6
17542 else
17543 if test "$cross_compiling" = yes; then :
17544 lt_cv_dlopen_self_static=cross
17545 else
17546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17547 lt_status=$lt_dlunknown
17548 cat > conftest.$ac_ext <<_LT_EOF
17549 #line $LINENO "configure"
17550 #include "confdefs.h"
17551
17552 #if HAVE_DLFCN_H
17553 #include <dlfcn.h>
17554 #endif
17555
17556 #include <stdio.h>
17557
17558 #ifdef RTLD_GLOBAL
17559 # define LT_DLGLOBAL RTLD_GLOBAL
17560 #else
17561 # ifdef DL_GLOBAL
17562 # define LT_DLGLOBAL DL_GLOBAL
17563 # else
17564 # define LT_DLGLOBAL 0
17565 # endif
17566 #endif
17567
17568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17569 find out it does not work in some platform. */
17570 #ifndef LT_DLLAZY_OR_NOW
17571 # ifdef RTLD_LAZY
17572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17573 # else
17574 # ifdef DL_LAZY
17575 # define LT_DLLAZY_OR_NOW DL_LAZY
17576 # else
17577 # ifdef RTLD_NOW
17578 # define LT_DLLAZY_OR_NOW RTLD_NOW
17579 # else
17580 # ifdef DL_NOW
17581 # define LT_DLLAZY_OR_NOW DL_NOW
17582 # else
17583 # define LT_DLLAZY_OR_NOW 0
17584 # endif
17585 # endif
17586 # endif
17587 # endif
17588 #endif
17589
17590 /* When -fvisbility=hidden is used, assume the code has been annotated
17591 correspondingly for the symbols needed. */
17592 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17593 int fnord () __attribute__((visibility("default")));
17594 #endif
17595
17596 int fnord () { return 42; }
17597 int main ()
17598 {
17599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17600 int status = $lt_dlunknown;
17601
17602 if (self)
17603 {
17604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17605 else
17606 {
17607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17608 else puts (dlerror ());
17609 }
17610 /* dlclose (self); */
17611 }
17612 else
17613 puts (dlerror ());
17614
17615 return status;
17616 }
17617 _LT_EOF
17618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17619 (eval $ac_link) 2>&5
17620 ac_status=$?
17621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17623 (./conftest; exit; ) >&5 2>/dev/null
17624 lt_status=$?
17625 case x$lt_status in
17626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17628 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17629 esac
17630 else :
17631 # compilation failed
17632 lt_cv_dlopen_self_static=no
17633 fi
17634 fi
17635 rm -fr conftest*
17636
17637
17638 fi
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17640 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17641 fi
17642
17643 CPPFLAGS="$save_CPPFLAGS"
17644 LDFLAGS="$save_LDFLAGS"
17645 LIBS="$save_LIBS"
17646 ;;
17647 esac
17648
17649 case $lt_cv_dlopen_self in
17650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17651 *) enable_dlopen_self=unknown ;;
17652 esac
17653
17654 case $lt_cv_dlopen_self_static in
17655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17656 *) enable_dlopen_self_static=unknown ;;
17657 esac
17658 fi
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676 striplib=
17677 old_striplib=
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17679 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17680 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17682 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17684 $as_echo "yes" >&6; }
17685 else
17686 # FIXME - insert some real tests, host_os isn't really good enough
17687 case $host_os in
17688 darwin*)
17689 if test -n "$STRIP" ; then
17690 striplib="$STRIP -x"
17691 old_striplib="$STRIP -S"
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17693 $as_echo "yes" >&6; }
17694 else
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696 $as_echo "no" >&6; }
17697 fi
17698 ;;
17699 *)
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17701 $as_echo "no" >&6; }
17702 ;;
17703 esac
17704 fi
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717 # Report which library types will actually be built
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17719 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17721 $as_echo "$can_build_shared" >&6; }
17722
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17724 $as_echo_n "checking whether to build shared libraries... " >&6; }
17725 test "$can_build_shared" = "no" && enable_shared=no
17726
17727 # On AIX, shared libraries and static libraries use the same namespace, and
17728 # are all built from PIC.
17729 case $host_os in
17730 aix3*)
17731 test "$enable_shared" = yes && enable_static=no
17732 if test -n "$RANLIB"; then
17733 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17734 postinstall_cmds='$RANLIB $lib'
17735 fi
17736 ;;
17737
17738 aix[4-9]*)
17739 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17740 test "$enable_shared" = yes && enable_static=no
17741 fi
17742 ;;
17743 esac
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17745 $as_echo "$enable_shared" >&6; }
17746
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17748 $as_echo_n "checking whether to build static libraries... " >&6; }
17749 # Make sure either enable_shared or enable_static is yes.
17750 test "$enable_shared" = yes || enable_static=yes
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17752 $as_echo "$enable_static" >&6; }
17753
17754
17755
17756
17757 fi
17758 ac_ext=c
17759 ac_cpp='$CPP $CPPFLAGS'
17760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17763
17764 CC="$lt_save_CC"
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780 ac_config_commands="$ac_config_commands libtool"
17781
17782
17783
17784
17785 # Only expand once:
17786
17787
17788
17789 if test "x$GCC" = "xyes"; then
17790 CPPFLAGS="$CPPFLAGS -Wall"
17791 fi
17792
17793
17794
17795 # Define a configure option for an alternate module directory
17796
17797 # Check whether --with-xorg-module-dir was given.
17798 if test "${with_xorg_module_dir+set}" = set; then :
17799 withval=$with_xorg_module_dir; moduledir="$withval"
17800 else
17801 moduledir="$libdir/xorg/modules"
17802 fi
17803
17804
17805 # Check whether --enable-dri was given.
17806 if test "${enable_dri+set}" = set; then :
17807 enableval=$enable_dri; DRI="$enableval"
17808 else
17809 DRI=auto
17810 fi
17811
17812
17813 # Check whether --enable-exa was given.
17814 if test "${enable_exa+set}" = set; then :
17815 enableval=$enable_exa; EXA="$enableval"
17816 else
17817 EXA=yes
17818 fi
17819
17820
17821 # Store the list of server defined optional extensions in REQUIRED_MODULES
17822
17823
17824 SAVE_CFLAGS="$CFLAGS"
17825 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827 /* end confdefs.h. */
17828
17829 #include "xorg-server.h"
17830 #if !defined RANDR
17831 #error RANDR not defined
17832 #endif
17833
17834 int
17835 main ()
17836 {
17837
17838 ;
17839 return 0;
17840 }
17841 _ACEOF
17842 if ac_fn_c_try_compile "$LINENO"; then :
17843 _EXT_CHECK=yes
17844 else
17845 _EXT_CHECK=no
17846 fi
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848 CFLAGS="$SAVE_CFLAGS"
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17850 $as_echo_n "checking if RANDR is defined... " >&6; }
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17852 $as_echo "$_EXT_CHECK" >&6; }
17853 if test "$_EXT_CHECK" != no; then
17854 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17855 fi
17856
17857
17858
17859 SAVE_CFLAGS="$CFLAGS"
17860 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17863
17864 #include "xorg-server.h"
17865 #if !defined RENDER
17866 #error RENDER not defined
17867 #endif
17868
17869 int
17870 main ()
17871 {
17872
17873 ;
17874 return 0;
17875 }
17876 _ACEOF
17877 if ac_fn_c_try_compile "$LINENO"; then :
17878 _EXT_CHECK=yes
17879 else
17880 _EXT_CHECK=no
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 CFLAGS="$SAVE_CFLAGS"
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17885 $as_echo_n "checking if RENDER is defined... " >&6; }
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17887 $as_echo "$_EXT_CHECK" >&6; }
17888 if test "$_EXT_CHECK" != no; then
17889 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17890 fi
17891
17892
17893
17894 SAVE_CFLAGS="$CFLAGS"
17895 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17898
17899 #include "xorg-server.h"
17900 #if !defined XV
17901 #error XV not defined
17902 #endif
17903
17904 int
17905 main ()
17906 {
17907
17908 ;
17909 return 0;
17910 }
17911 _ACEOF
17912 if ac_fn_c_try_compile "$LINENO"; then :
17913 _EXT_CHECK=yes
17914 else
17915 _EXT_CHECK=no
17916 fi
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 CFLAGS="$SAVE_CFLAGS"
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17920 $as_echo_n "checking if XV is defined... " >&6; }
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17922 $as_echo "$_EXT_CHECK" >&6; }
17923 if test "$_EXT_CHECK" != no; then
17924 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17925 fi
17926
17927
17928
17929 SAVE_CFLAGS="$CFLAGS"
17930 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17933
17934 #include "xorg-server.h"
17935 #if !defined XF86MISC
17936 #error XF86MISC not defined
17937 #endif
17938
17939 int
17940 main ()
17941 {
17942
17943 ;
17944 return 0;
17945 }
17946 _ACEOF
17947 if ac_fn_c_try_compile "$LINENO"; then :
17948 _EXT_CHECK=yes
17949 else
17950 _EXT_CHECK=no
17951 fi
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 CFLAGS="$SAVE_CFLAGS"
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86MISC is defined" >&5
17955 $as_echo_n "checking if XF86MISC is defined... " >&6; }
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17957 $as_echo "$_EXT_CHECK" >&6; }
17958 if test "$_EXT_CHECK" != no; then
17959 REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
17960 fi
17961
17962
17963
17964 SAVE_CFLAGS="$CFLAGS"
17965 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17968
17969 #include "xorg-server.h"
17970 #if !defined DPMSExtension
17971 #error DPMSExtension not defined
17972 #endif
17973
17974 int
17975 main ()
17976 {
17977
17978 ;
17979 return 0;
17980 }
17981 _ACEOF
17982 if ac_fn_c_try_compile "$LINENO"; then :
17983 _EXT_CHECK=yes
17984 else
17985 _EXT_CHECK=no
17986 fi
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988 CFLAGS="$SAVE_CFLAGS"
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17990 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17992 $as_echo "$_EXT_CHECK" >&6; }
17993 if test "$_EXT_CHECK" != no; then
17994 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17995 fi
17996
17997
17998 # Obtain compiler/linker options for the driver dependencies
17999
18000 pkg_failed=no
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18002 $as_echo_n "checking for XORG... " >&6; }
18003
18004 if test -n "$XORG_CFLAGS"; then
18005 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18006 elif test -n "$PKG_CONFIG"; then
18007 if test -n "$PKG_CONFIG" && \
18008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18009 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
18010 ac_status=$?
18011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18012 test $ac_status = 0; }; then
18013 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18014 test "x$?" != "x0" && pkg_failed=yes
18015 else
18016 pkg_failed=yes
18017 fi
18018 else
18019 pkg_failed=untried
18020 fi
18021 if test -n "$XORG_LIBS"; then
18022 pkg_cv_XORG_LIBS="$XORG_LIBS"
18023 elif test -n "$PKG_CONFIG"; then
18024 if test -n "$PKG_CONFIG" && \
18025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18026 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
18027 ac_status=$?
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; }; then
18030 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18031 test "x$?" != "x0" && pkg_failed=yes
18032 else
18033 pkg_failed=yes
18034 fi
18035 else
18036 pkg_failed=untried
18037 fi
18038
18039
18040
18041 if test $pkg_failed = yes; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043 $as_echo "no" >&6; }
18044
18045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18046 _pkg_short_errors_supported=yes
18047 else
18048 _pkg_short_errors_supported=no
18049 fi
18050 if test $_pkg_short_errors_supported = yes; then
18051 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18052 else
18053 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18054 fi
18055 # Put the nasty error message in config.log where it belongs
18056 echo "$XORG_PKG_ERRORS" >&5
18057
18058 as_fn_error $? "Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
18059
18060 $XORG_PKG_ERRORS
18061
18062 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18063 installed software in a non-standard prefix.
18064
18065 Alternatively, you may set the environment variables XORG_CFLAGS
18066 and XORG_LIBS to avoid the need to call pkg-config.
18067 See the pkg-config man page for more details." "$LINENO" 5
18068 elif test $pkg_failed = untried; then
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18070 $as_echo "no" >&6; }
18071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18073 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18074 is in your PATH or set the PKG_CONFIG environment variable to the full
18075 path to pkg-config.
18076
18077 Alternatively, you may set the environment variables XORG_CFLAGS
18078 and XORG_LIBS to avoid the need to call pkg-config.
18079 See the pkg-config man page for more details.
18080
18081 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18082 See \`config.log' for more details" "$LINENO" 5; }
18083 else
18084 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18085 XORG_LIBS=$pkg_cv_XORG_LIBS
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18087 $as_echo "yes" >&6; }
18088
18089 fi
18090
18091 pkg_failed=no
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18093 $as_echo_n "checking for XEXT... " >&6; }
18094
18095 if test -n "$XEXT_CFLAGS"; then
18096 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18097 elif test -n "$PKG_CONFIG"; then
18098 if test -n "$PKG_CONFIG" && \
18099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18100 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18101 ac_status=$?
18102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18103 test $ac_status = 0; }; then
18104 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18105 test "x$?" != "x0" && pkg_failed=yes
18106 else
18107 pkg_failed=yes
18108 fi
18109 else
18110 pkg_failed=untried
18111 fi
18112 if test -n "$XEXT_LIBS"; then
18113 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18114 elif test -n "$PKG_CONFIG"; then
18115 if test -n "$PKG_CONFIG" && \
18116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18117 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18118 ac_status=$?
18119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18120 test $ac_status = 0; }; then
18121 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18122 test "x$?" != "x0" && pkg_failed=yes
18123 else
18124 pkg_failed=yes
18125 fi
18126 else
18127 pkg_failed=untried
18128 fi
18129
18130
18131
18132 if test $pkg_failed = yes; then
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18134 $as_echo "no" >&6; }
18135
18136 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18137 _pkg_short_errors_supported=yes
18138 else
18139 _pkg_short_errors_supported=no
18140 fi
18141 if test $_pkg_short_errors_supported = yes; then
18142 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18143 else
18144 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18145 fi
18146 # Put the nasty error message in config.log where it belongs
18147 echo "$XEXT_PKG_ERRORS" >&5
18148
18149 HAVE_XEXTPROTO_71="no"
18150 elif test $pkg_failed = untried; then
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18152 $as_echo "no" >&6; }
18153 HAVE_XEXTPROTO_71="no"
18154 else
18155 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18156 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18158 $as_echo "yes" >&6; }
18159 HAVE_XEXTPROTO_71="yes";
18160 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18161
18162 fi
18163 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18164 HAVE_XEXTPROTO_71_TRUE=
18165 HAVE_XEXTPROTO_71_FALSE='#'
18166 else
18167 HAVE_XEXTPROTO_71_TRUE='#'
18168 HAVE_XEXTPROTO_71_FALSE=
18169 fi
18170
18171 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18172
18173 # Checks for libraries.
18174
18175 if test "$DRI" != no; then
18176 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18178 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18179 if eval \${$as_ac_File+:} false; then :
18180 $as_echo_n "(cached) " >&6
18181 else
18182 test "$cross_compiling" = yes &&
18183 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18184 if test -r "${sdkdir}/dri.h"; then
18185 eval "$as_ac_File=yes"
18186 else
18187 eval "$as_ac_File=no"
18188 fi
18189 fi
18190 eval ac_res=\$$as_ac_File
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18192 $as_echo "$ac_res" >&6; }
18193 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18194 have_dri_h="yes"
18195 else
18196 have_dri_h="no"
18197 fi
18198
18199 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18201 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18202 if eval \${$as_ac_File+:} false; then :
18203 $as_echo_n "(cached) " >&6
18204 else
18205 test "$cross_compiling" = yes &&
18206 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18207 if test -r "${sdkdir}/sarea.h"; then
18208 eval "$as_ac_File=yes"
18209 else
18210 eval "$as_ac_File=no"
18211 fi
18212 fi
18213 eval ac_res=\$$as_ac_File
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18215 $as_echo "$ac_res" >&6; }
18216 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18217 have_sarea_h="yes"
18218 else
18219 have_sarea_h="no"
18220 fi
18221
18222 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18224 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18225 if eval \${$as_ac_File+:} false; then :
18226 $as_echo_n "(cached) " >&6
18227 else
18228 test "$cross_compiling" = yes &&
18229 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18230 if test -r "${sdkdir}/dristruct.h"; then
18231 eval "$as_ac_File=yes"
18232 else
18233 eval "$as_ac_File=no"
18234 fi
18235 fi
18236 eval ac_res=\$$as_ac_File
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18238 $as_echo "$ac_res" >&6; }
18239 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18240 have_dristruct_h="yes"
18241 else
18242 have_dristruct_h="no"
18243 fi
18244
18245 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
18247 $as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
18248 if eval \${$as_ac_File+:} false; then :
18249 $as_echo_n "(cached) " >&6
18250 else
18251 test "$cross_compiling" = yes &&
18252 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18253 if test -r "${sdkdir}/damage.h"; then
18254 eval "$as_ac_File=yes"
18255 else
18256 eval "$as_ac_File=no"
18257 fi
18258 fi
18259 eval ac_res=\$$as_ac_File
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18261 $as_echo "$ac_res" >&6; }
18262 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18263 have_damage_h="yes"
18264 else
18265 have_damage_h="no"
18266 fi
18267
18268 fi
18269
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18271 $as_echo_n "checking whether to include DRI support... " >&6; }
18272 if test x$DRI = xauto; then
18273 if test "$have_dri_h" = yes -a \
18274 "$have_sarea_h" = yes -a \
18275 "$have_dristruct_h" = yes; then
18276 DRI="yes"
18277 else
18278 DRI="no"
18279 fi
18280 fi
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18282 $as_echo "$DRI" >&6; }
18283
18284 if test x$DRI = xyes; then
18285 DRI_TRUE=
18286 DRI_FALSE='#'
18287 else
18288 DRI_TRUE='#'
18289 DRI_FALSE=
18290 fi
18291
18292 if test "$DRI" = yes; then
18293
18294 pkg_failed=no
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18296 $as_echo_n "checking for DRI... " >&6; }
18297
18298 if test -n "$DRI_CFLAGS"; then
18299 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18300 elif test -n "$PKG_CONFIG"; then
18301 if test -n "$PKG_CONFIG" && \
18302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18303 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18304 ac_status=$?
18305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18306 test $ac_status = 0; }; then
18307 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18308 test "x$?" != "x0" && pkg_failed=yes
18309 else
18310 pkg_failed=yes
18311 fi
18312 else
18313 pkg_failed=untried
18314 fi
18315 if test -n "$DRI_LIBS"; then
18316 pkg_cv_DRI_LIBS="$DRI_LIBS"
18317 elif test -n "$PKG_CONFIG"; then
18318 if test -n "$PKG_CONFIG" && \
18319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18320 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18321 ac_status=$?
18322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18323 test $ac_status = 0; }; then
18324 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18325 test "x$?" != "x0" && pkg_failed=yes
18326 else
18327 pkg_failed=yes
18328 fi
18329 else
18330 pkg_failed=untried
18331 fi
18332
18333
18334
18335 if test $pkg_failed = yes; then
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337 $as_echo "no" >&6; }
18338
18339 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18340 _pkg_short_errors_supported=yes
18341 else
18342 _pkg_short_errors_supported=no
18343 fi
18344 if test $_pkg_short_errors_supported = yes; then
18345 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18346 else
18347 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18348 fi
18349 # Put the nasty error message in config.log where it belongs
18350 echo "$DRI_PKG_ERRORS" >&5
18351
18352 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
18353
18354 $DRI_PKG_ERRORS
18355
18356 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18357 installed software in a non-standard prefix.
18358
18359 Alternatively, you may set the environment variables DRI_CFLAGS
18360 and DRI_LIBS to avoid the need to call pkg-config.
18361 See the pkg-config man page for more details." "$LINENO" 5
18362 elif test $pkg_failed = untried; then
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364 $as_echo "no" >&6; }
18365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18367 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18368 is in your PATH or set the PKG_CONFIG environment variable to the full
18369 path to pkg-config.
18370
18371 Alternatively, you may set the environment variables DRI_CFLAGS
18372 and DRI_LIBS to avoid the need to call pkg-config.
18373 See the pkg-config man page for more details.
18374
18375 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18376 See \`config.log' for more details" "$LINENO" 5; }
18377 else
18378 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18379 DRI_LIBS=$pkg_cv_DRI_LIBS
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381 $as_echo "yes" >&6; }
18382
18383 fi
18384
18385 $as_echo "#define R128DRI 1" >>confdefs.h
18386
18387
18388 $as_echo "#define R128DRI_DEVEL 1" >>confdefs.h
18389
18390 fi
18391
18392 SAVE_CPPFLAGS="$CPPFLAGS"
18393 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18394 # Properly handle EXA.
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
18396 $as_echo_n "checking whether to enable EXA support... " >&6; }
18397 if test "x$EXA" = xyes; then
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18399 $as_echo "yes" >&6; }
18400
18401 SAVE_CPPFLAGS="$CPPFLAGS"
18402 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18403 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
18404 if test "x$ac_cv_header_exa_h" = xyes; then :
18405 have_exa_h="yes"
18406 else
18407 have_exa_h="no"
18408 fi
18409
18410
18411 CPPFLAGS="$SAVE_CPPFLAGS"
18412 else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 $as_echo "no" >&6; }
18415 fi
18416
18417 SAVE_CPPFLAGS="$CPPFLAGS"
18418 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18419 if test "x$have_exa_h" = xyes; then
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18421 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424
18425 #include "exa.h"
18426 #if EXA_VERSION_MAJOR < 2
18427 #error OLD EXA!
18428 #endif
18429
18430 int
18431 main ()
18432 {
18433
18434 ;
18435 return 0;
18436 }
18437 _ACEOF
18438 if ac_fn_c_try_cpp "$LINENO"; then :
18439 USE_EXA=yes
18440 else
18441 USE_EXA=no
18442 fi
18443 rm -f conftest.err conftest.i conftest.$ac_ext
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18445 $as_echo "$USE_EXA" >&6; }
18446
18447 if test "x$USE_EXA" = xyes; then
18448
18449 $as_echo "#define USE_EXA 1" >>confdefs.h
18450
18451 fi
18452 fi
18453
18454 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18455 "
18456 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18457 XSERVER_LIBPCIACCESS=yes
18458 else
18459 XSERVER_LIBPCIACCESS=no
18460 fi
18461
18462 CPPFLAGS="$SAVE_CPPFLAGS"
18463
18464 # Check whether --enable-xaa was given.
18465 if test "${enable_xaa+set}" = set; then :
18466 enableval=$enable_xaa; XAA="$enableval"
18467 else
18468 XAA=auto
18469 fi
18470
18471 if test "x$XAA" != xno; then
18472 save_CFLAGS=$CFLAGS
18473 save_CPPFLAGS=$CPPFLAGS
18474 CFLAGS=$XORG_CFLAGS
18475 CPPFLAGS="$XORG_CFLAGS"
18476 for ac_header in xaa.h
18477 do :
18478 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18479 if test "x$ac_cv_header_xaa_h" = xyes; then :
18480 cat >>confdefs.h <<_ACEOF
18481 #define HAVE_XAA_H 1
18482 _ACEOF
18483 XAA=yes
18484 else
18485 XAA=no
18486 fi
18487
18488 done
18489
18490 CFLAGS=$save_CFLAGS
18491 CPPFLAGS=$save_CPPFLAGS
18492 fi
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18494 $as_echo_n "checking whether to include XAA support... " >&6; }
18495 if test "x$XAA" = xyes; then
18496 XAA_TRUE=
18497 XAA_FALSE='#'
18498 else
18499 XAA_TRUE='#'
18500 XAA_FALSE=
18501 fi
18502
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18504 $as_echo "$XAA" >&6; }
18505
18506 if test "x$USE_EXA" = xyes; then
18507 USE_EXA_TRUE=
18508 USE_EXA_FALSE='#'
18509 else
18510 USE_EXA_TRUE='#'
18511 USE_EXA_FALSE=
18512 fi
18513
18514
18515 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18516
18517 pkg_failed=no
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18519 $as_echo_n "checking for PCIACCESS... " >&6; }
18520
18521 if test -n "$PCIACCESS_CFLAGS"; then
18522 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18523 elif test -n "$PKG_CONFIG"; then
18524 if test -n "$PKG_CONFIG" && \
18525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18526 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18527 ac_status=$?
18528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18529 test $ac_status = 0; }; then
18530 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18531 test "x$?" != "x0" && pkg_failed=yes
18532 else
18533 pkg_failed=yes
18534 fi
18535 else
18536 pkg_failed=untried
18537 fi
18538 if test -n "$PCIACCESS_LIBS"; then
18539 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18540 elif test -n "$PKG_CONFIG"; then
18541 if test -n "$PKG_CONFIG" && \
18542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18543 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18544 ac_status=$?
18545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546 test $ac_status = 0; }; then
18547 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18548 test "x$?" != "x0" && pkg_failed=yes
18549 else
18550 pkg_failed=yes
18551 fi
18552 else
18553 pkg_failed=untried
18554 fi
18555
18556
18557
18558 if test $pkg_failed = yes; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560 $as_echo "no" >&6; }
18561
18562 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18563 _pkg_short_errors_supported=yes
18564 else
18565 _pkg_short_errors_supported=no
18566 fi
18567 if test $_pkg_short_errors_supported = yes; then
18568 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18569 else
18570 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18571 fi
18572 # Put the nasty error message in config.log where it belongs
18573 echo "$PCIACCESS_PKG_ERRORS" >&5
18574
18575 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18576
18577 $PCIACCESS_PKG_ERRORS
18578
18579 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18580 installed software in a non-standard prefix.
18581
18582 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18583 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18584 See the pkg-config man page for more details." "$LINENO" 5
18585 elif test $pkg_failed = untried; then
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18587 $as_echo "no" >&6; }
18588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18590 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18591 is in your PATH or set the PKG_CONFIG environment variable to the full
18592 path to pkg-config.
18593
18594 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18595 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18596 See the pkg-config man page for more details.
18597
18598 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18599 See \`config.log' for more details" "$LINENO" 5; }
18600 else
18601 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18602 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18604 $as_echo "yes" >&6; }
18605
18606 fi
18607 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18608 fi
18609 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18610 XSERVER_LIBPCIACCESS_TRUE=
18611 XSERVER_LIBPCIACCESS_FALSE='#'
18612 else
18613 XSERVER_LIBPCIACCESS_TRUE='#'
18614 XSERVER_LIBPCIACCESS_FALSE=
18615 fi
18616
18617
18618 # Checks for headers/macros for byte swapping
18619 # Known variants:
18620 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
18621 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
18622 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
18623 # and a fallback to local macros if none of the above are found
18624
18625 # if <byteswap.h> is found, assume it's the correct version
18626 for ac_header in byteswap.h
18627 do :
18628 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
18629 if test "x$ac_cv_header_byteswap_h" = xyes; then :
18630 cat >>confdefs.h <<_ACEOF
18631 #define HAVE_BYTESWAP_H 1
18632 _ACEOF
18633
18634 fi
18635
18636 done
18637
18638
18639 # if <sys/endian.h> is found, have to check which version
18640 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
18641 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
18642 HAVE_SYS_ENDIAN_H="yes"
18643 else
18644 HAVE_SYS_ENDIAN_H="no"
18645 fi
18646
18647
18648
18649 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
18651 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h. */
18654
18655 #include <sys/types.h>
18656 #include <sys/endian.h>
18657
18658 int
18659 main ()
18660 {
18661
18662 int a = 1, b;
18663 b = __swap16(a);
18664
18665 ;
18666 return 0;
18667 }
18668
18669 _ACEOF
18670 if ac_fn_c_try_link "$LINENO"; then :
18671 SYS_ENDIAN__SWAP='yes'
18672 else
18673 SYS_ENDIAN__SWAP='no'
18674 fi
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
18678 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
18679
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
18681 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684
18685 #include <sys/types.h>
18686 #include <sys/endian.h>
18687
18688 int
18689 main ()
18690 {
18691
18692 int a = 1, b;
18693 b = bswap16(a);
18694
18695 ;
18696 return 0;
18697 }
18698
18699 _ACEOF
18700 if ac_fn_c_try_link "$LINENO"; then :
18701 SYS_ENDIAN_BSWAP='yes'
18702 else
18703 SYS_ENDIAN_BSWAP='no'
18704 fi
18705 rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
18708 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
18709
18710 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
18711 USE_SYS_ENDIAN_H=yes
18712 BSWAP=bswap
18713 else
18714 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
18715 USE_SYS_ENDIAN_H=yes
18716 BSWAP=__swap
18717 else
18718 USE_SYS_ENDIAN_H=no
18719 fi
18720 fi
18721
18722 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
18723
18724 $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
18725
18726
18727 cat >>confdefs.h <<_ACEOF
18728 #define bswap_16 ${BSWAP}16
18729 _ACEOF
18730
18731
18732 cat >>confdefs.h <<_ACEOF
18733 #define bswap_32 ${BSWAP}32
18734 _ACEOF
18735
18736
18737 cat >>confdefs.h <<_ACEOF
18738 #define bswap_64 ${BSWAP}64
18739 _ACEOF
18740
18741 fi
18742 fi
18743
18744
18745
18746 DRIVER_NAME=r128
18747
18748
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
18750 the ati wrapper as well:
18751 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18752 " >&5
18753 $as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
18754 the ati wrapper as well:
18755 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18756 " >&6;}
18757
18758 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18759
18760 cat >confcache <<\_ACEOF
18761 # This file is a shell script that caches the results of configure
18762 # tests run on this system so they can be shared between configure
18763 # scripts and configure runs, see configure's option --config-cache.
18764 # It is not useful on other systems. If it contains results you don't
18765 # want to keep, you may remove or edit it.
18766 #
18767 # config.status only pays attention to the cache file if you give it
18768 # the --recheck option to rerun configure.
18769 #
18770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18772 # following values.
18773
18774 _ACEOF
18775
18776 # The following way of writing the cache mishandles newlines in values,
18777 # but we know of no workaround that is simple, portable, and efficient.
18778 # So, we kill variables containing newlines.
18779 # Ultrix sh set writes to stderr and can't be redirected directly,
18780 # and sets the high bit in the cache file unless we assign to the vars.
18781 (
18782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18783 eval ac_val=\$$ac_var
18784 case $ac_val in #(
18785 *${as_nl}*)
18786 case $ac_var in #(
18787 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18789 esac
18790 case $ac_var in #(
18791 _ | IFS | as_nl) ;; #(
18792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18793 *) { eval $ac_var=; unset $ac_var;} ;;
18794 esac ;;
18795 esac
18796 done
18797
18798 (set) 2>&1 |
18799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18800 *${as_nl}ac_space=\ *)
18801 # `set' does not quote correctly, so add quotes: double-quote
18802 # substitution turns \\\\ into \\, and sed turns \\ into \.
18803 sed -n \
18804 "s/'/'\\\\''/g;
18805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18806 ;; #(
18807 *)
18808 # `set' quotes correctly as required by POSIX, so do not add quotes.
18809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18810 ;;
18811 esac |
18812 sort
18813 ) |
18814 sed '
18815 /^ac_cv_env_/b end
18816 t clear
18817 :clear
18818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18819 t end
18820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18821 :end' >>confcache
18822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18823 if test -w "$cache_file"; then
18824 if test "x$cache_file" != "x/dev/null"; then
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18826 $as_echo "$as_me: updating cache $cache_file" >&6;}
18827 if test ! -f "$cache_file" || test -h "$cache_file"; then
18828 cat confcache >"$cache_file"
18829 else
18830 case $cache_file in #(
18831 */* | ?:*)
18832 mv -f confcache "$cache_file"$$ &&
18833 mv -f "$cache_file"$$ "$cache_file" ;; #(
18834 *)
18835 mv -f confcache "$cache_file" ;;
18836 esac
18837 fi
18838 fi
18839 else
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18841 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18842 fi
18843 fi
18844 rm -f confcache
18845
18846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18847 # Let make expand exec_prefix.
18848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18849
18850 DEFS=-DHAVE_CONFIG_H
18851
18852 ac_libobjs=
18853 ac_ltlibobjs=
18854 U=
18855 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18856 # 1. Remove the extension, and $U if already installed.
18857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18858 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18860 # will be set to the directory where LIBOBJS objects are built.
18861 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18862 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18863 done
18864 LIBOBJS=$ac_libobjs
18865
18866 LTLIBOBJS=$ac_ltlibobjs
18867
18868
18869 if test -n "$EXEEXT"; then
18870 am__EXEEXT_TRUE=
18871 am__EXEEXT_FALSE='#'
18872 else
18873 am__EXEEXT_TRUE='#'
18874 am__EXEEXT_FALSE=
18875 fi
18876
18877 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18878 as_fn_error $? "conditional \"AMDEP\" was never defined.
18879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18880 fi
18881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18882 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18884 fi
18885 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18886 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18888 fi
18889 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18890 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18892 fi
18893 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18894 as_fn_error $? "conditional \"DRI\" was never defined.
18895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18896 fi
18897 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18898 as_fn_error $? "conditional \"XAA\" was never defined.
18899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18900 fi
18901 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18902 as_fn_error $? "conditional \"USE_EXA\" was never defined.
18903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18904 fi
18905 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18906 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18908 fi
18909
18910 : "${CONFIG_STATUS=./config.status}"
18911 ac_write_fail=0
18912 ac_clean_files_save=$ac_clean_files
18913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18916 as_write_fail=0
18917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18918 #! $SHELL
18919 # Generated by $as_me.
18920 # Run this file to recreate the current configuration.
18921 # Compiler output produced by configure, useful for debugging
18922 # configure, is in config.log if it exists.
18923
18924 debug=false
18925 ac_cs_recheck=false
18926 ac_cs_silent=false
18927
18928 SHELL=\${CONFIG_SHELL-$SHELL}
18929 export SHELL
18930 _ASEOF
18931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18932 ## -------------------- ##
18933 ## M4sh Initialization. ##
18934 ## -------------------- ##
18935
18936 # Be more Bourne compatible
18937 DUALCASE=1; export DUALCASE # for MKS sh
18938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18939 emulate sh
18940 NULLCMD=:
18941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18942 # is contrary to our usage. Disable this feature.
18943 alias -g '${1+"$@"}'='"$@"'
18944 setopt NO_GLOB_SUBST
18945 else
18946 case `(set -o) 2>/dev/null` in #(
18947 *posix*) :
18948 set -o posix ;; #(
18949 *) :
18950 ;;
18951 esac
18952 fi
18953
18954
18955 as_nl='
18956 '
18957 export as_nl
18958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18959 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18962 # Prefer a ksh shell builtin over an external printf program on Solaris,
18963 # but without wasting forks for bash or zsh.
18964 if test -z "$BASH_VERSION$ZSH_VERSION" \
18965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18966 as_echo='print -r --'
18967 as_echo_n='print -rn --'
18968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18969 as_echo='printf %s\n'
18970 as_echo_n='printf %s'
18971 else
18972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18974 as_echo_n='/usr/ucb/echo -n'
18975 else
18976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18977 as_echo_n_body='eval
18978 arg=$1;
18979 case $arg in #(
18980 *"$as_nl"*)
18981 expr "X$arg" : "X\\(.*\\)$as_nl";
18982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18983 esac;
18984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18985 '
18986 export as_echo_n_body
18987 as_echo_n='sh -c $as_echo_n_body as_echo'
18988 fi
18989 export as_echo_body
18990 as_echo='sh -c $as_echo_body as_echo'
18991 fi
18992
18993 # The user is always right.
18994 if test "${PATH_SEPARATOR+set}" != set; then
18995 PATH_SEPARATOR=:
18996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18998 PATH_SEPARATOR=';'
18999 }
19000 fi
19001
19002
19003 # IFS
19004 # We need space, tab and new line, in precisely that order. Quoting is
19005 # there to prevent editors from complaining about space-tab.
19006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19007 # splitting by setting IFS to empty value.)
19008 IFS=" "" $as_nl"
19009
19010 # Find who we are. Look in the path if we contain no directory separator.
19011 as_myself=
19012 case $0 in #((
19013 *[\\/]* ) as_myself=$0 ;;
19014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19015 for as_dir in $PATH
19016 do
19017 IFS=$as_save_IFS
19018 test -z "$as_dir" && as_dir=.
19019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19020 done
19021 IFS=$as_save_IFS
19022
19023 ;;
19024 esac
19025 # We did not find ourselves, most probably we were run as `sh COMMAND'
19026 # in which case we are not to be found in the path.
19027 if test "x$as_myself" = x; then
19028 as_myself=$0
19029 fi
19030 if test ! -f "$as_myself"; then
19031 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19032 exit 1
19033 fi
19034
19035 # Unset variables that we do not need and which cause bugs (e.g. in
19036 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19037 # suppresses any "Segmentation fault" message there. '((' could
19038 # trigger a bug in pdksh 5.2.14.
19039 for as_var in BASH_ENV ENV MAIL MAILPATH
19040 do eval test x\${$as_var+set} = xset \
19041 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19042 done
19043 PS1='$ '
19044 PS2='> '
19045 PS4='+ '
19046
19047 # NLS nuisances.
19048 LC_ALL=C
19049 export LC_ALL
19050 LANGUAGE=C
19051 export LANGUAGE
19052
19053 # CDPATH.
19054 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19055
19056
19057 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19058 # ----------------------------------------
19059 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19060 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19061 # script with STATUS, using 1 if that was 0.
19062 as_fn_error ()
19063 {
19064 as_status=$1; test $as_status -eq 0 && as_status=1
19065 if test "$4"; then
19066 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19067 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19068 fi
19069 $as_echo "$as_me: error: $2" >&2
19070 as_fn_exit $as_status
19071 } # as_fn_error
19072
19073
19074 # as_fn_set_status STATUS
19075 # -----------------------
19076 # Set $? to STATUS, without forking.
19077 as_fn_set_status ()
19078 {
19079 return $1
19080 } # as_fn_set_status
19081
19082 # as_fn_exit STATUS
19083 # -----------------
19084 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19085 as_fn_exit ()
19086 {
19087 set +e
19088 as_fn_set_status $1
19089 exit $1
19090 } # as_fn_exit
19091
19092 # as_fn_unset VAR
19093 # ---------------
19094 # Portably unset VAR.
19095 as_fn_unset ()
19096 {
19097 { eval $1=; unset $1;}
19098 }
19099 as_unset=as_fn_unset
19100 # as_fn_append VAR VALUE
19101 # ----------------------
19102 # Append the text in VALUE to the end of the definition contained in VAR. Take
19103 # advantage of any shell optimizations that allow amortized linear growth over
19104 # repeated appends, instead of the typical quadratic growth present in naive
19105 # implementations.
19106 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19107 eval 'as_fn_append ()
19108 {
19109 eval $1+=\$2
19110 }'
19111 else
19112 as_fn_append ()
19113 {
19114 eval $1=\$$1\$2
19115 }
19116 fi # as_fn_append
19117
19118 # as_fn_arith ARG...
19119 # ------------------
19120 # Perform arithmetic evaluation on the ARGs, and store the result in the
19121 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19122 # must be portable across $(()) and expr.
19123 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19124 eval 'as_fn_arith ()
19125 {
19126 as_val=$(( $* ))
19127 }'
19128 else
19129 as_fn_arith ()
19130 {
19131 as_val=`expr "$@" || test $? -eq 1`
19132 }
19133 fi # as_fn_arith
19134
19135
19136 if expr a : '\(a\)' >/dev/null 2>&1 &&
19137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19138 as_expr=expr
19139 else
19140 as_expr=false
19141 fi
19142
19143 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19144 as_basename=basename
19145 else
19146 as_basename=false
19147 fi
19148
19149 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19150 as_dirname=dirname
19151 else
19152 as_dirname=false
19153 fi
19154
19155 as_me=`$as_basename -- "$0" ||
19156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19157 X"$0" : 'X\(//\)$' \| \
19158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19159 $as_echo X/"$0" |
19160 sed '/^.*\/\([^/][^/]*\)\/*$/{
19161 s//\1/
19162 q
19163 }
19164 /^X\/\(\/\/\)$/{
19165 s//\1/
19166 q
19167 }
19168 /^X\/\(\/\).*/{
19169 s//\1/
19170 q
19171 }
19172 s/.*/./; q'`
19173
19174 # Avoid depending upon Character Ranges.
19175 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19176 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19177 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19178 as_cr_digits='0123456789'
19179 as_cr_alnum=$as_cr_Letters$as_cr_digits
19180
19181 ECHO_C= ECHO_N= ECHO_T=
19182 case `echo -n x` in #(((((
19183 -n*)
19184 case `echo 'xy\c'` in
19185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19186 xy) ECHO_C='\c';;
19187 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19188 ECHO_T=' ';;
19189 esac;;
19190 *)
19191 ECHO_N='-n';;
19192 esac
19193
19194 rm -f conf$$ conf$$.exe conf$$.file
19195 if test -d conf$$.dir; then
19196 rm -f conf$$.dir/conf$$.file
19197 else
19198 rm -f conf$$.dir
19199 mkdir conf$$.dir 2>/dev/null
19200 fi
19201 if (echo >conf$$.file) 2>/dev/null; then
19202 if ln -s conf$$.file conf$$ 2>/dev/null; then
19203 as_ln_s='ln -s'
19204 # ... but there are two gotchas:
19205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19207 # In both cases, we have to default to `cp -pR'.
19208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19209 as_ln_s='cp -pR'
19210 elif ln conf$$.file conf$$ 2>/dev/null; then
19211 as_ln_s=ln
19212 else
19213 as_ln_s='cp -pR'
19214 fi
19215 else
19216 as_ln_s='cp -pR'
19217 fi
19218 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19219 rmdir conf$$.dir 2>/dev/null
19220
19221
19222 # as_fn_mkdir_p
19223 # -------------
19224 # Create "$as_dir" as a directory, including parents if necessary.
19225 as_fn_mkdir_p ()
19226 {
19227
19228 case $as_dir in #(
19229 -*) as_dir=./$as_dir;;
19230 esac
19231 test -d "$as_dir" || eval $as_mkdir_p || {
19232 as_dirs=
19233 while :; do
19234 case $as_dir in #(
19235 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19236 *) as_qdir=$as_dir;;
19237 esac
19238 as_dirs="'$as_qdir' $as_dirs"
19239 as_dir=`$as_dirname -- "$as_dir" ||
19240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19241 X"$as_dir" : 'X\(//\)[^/]' \| \
19242 X"$as_dir" : 'X\(//\)$' \| \
19243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19244 $as_echo X"$as_dir" |
19245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19246 s//\1/
19247 q
19248 }
19249 /^X\(\/\/\)[^/].*/{
19250 s//\1/
19251 q
19252 }
19253 /^X\(\/\/\)$/{
19254 s//\1/
19255 q
19256 }
19257 /^X\(\/\).*/{
19258 s//\1/
19259 q
19260 }
19261 s/.*/./; q'`
19262 test -d "$as_dir" && break
19263 done
19264 test -z "$as_dirs" || eval "mkdir $as_dirs"
19265 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19266
19267
19268 } # as_fn_mkdir_p
19269 if mkdir -p . 2>/dev/null; then
19270 as_mkdir_p='mkdir -p "$as_dir"'
19271 else
19272 test -d ./-p && rmdir ./-p
19273 as_mkdir_p=false
19274 fi
19275
19276
19277 # as_fn_executable_p FILE
19278 # -----------------------
19279 # Test if FILE is an executable regular file.
19280 as_fn_executable_p ()
19281 {
19282 test -f "$1" && test -x "$1"
19283 } # as_fn_executable_p
19284 as_test_x='test -x'
19285 as_executable_p=as_fn_executable_p
19286
19287 # Sed expression to map a string onto a valid CPP name.
19288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19289
19290 # Sed expression to map a string onto a valid variable name.
19291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19292
19293
19294 exec 6>&1
19295 ## ----------------------------------- ##
19296 ## Main body of $CONFIG_STATUS script. ##
19297 ## ----------------------------------- ##
19298 _ASEOF
19299 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19300
19301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19302 # Save the log message, to keep $0 and so on meaningful, and to
19303 # report actual input values of CONFIG_FILES etc. instead of their
19304 # values after options handling.
19305 ac_log="
19306 This file was extended by xf86-video-r128 $as_me 6.9.2, which was
19307 generated by GNU Autoconf 2.69. Invocation command line was
19308
19309 CONFIG_FILES = $CONFIG_FILES
19310 CONFIG_HEADERS = $CONFIG_HEADERS
19311 CONFIG_LINKS = $CONFIG_LINKS
19312 CONFIG_COMMANDS = $CONFIG_COMMANDS
19313 $ $0 $@
19314
19315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19316 "
19317
19318 _ACEOF
19319
19320 case $ac_config_files in *"
19321 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19322 esac
19323
19324 case $ac_config_headers in *"
19325 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19326 esac
19327
19328
19329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19330 # Files that config.status was made for.
19331 config_files="$ac_config_files"
19332 config_headers="$ac_config_headers"
19333 config_commands="$ac_config_commands"
19334
19335 _ACEOF
19336
19337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19338 ac_cs_usage="\
19339 \`$as_me' instantiates files and other configuration actions
19340 from templates according to the current configuration. Unless the files
19341 and actions are specified as TAGs, all are instantiated by default.
19342
19343 Usage: $0 [OPTION]... [TAG]...
19344
19345 -h, --help print this help, then exit
19346 -V, --version print version number and configuration settings, then exit
19347 --config print configuration, then exit
19348 -q, --quiet, --silent
19349 do not print progress messages
19350 -d, --debug don't remove temporary files
19351 --recheck update $as_me by reconfiguring in the same conditions
19352 --file=FILE[:TEMPLATE]
19353 instantiate the configuration file FILE
19354 --header=FILE[:TEMPLATE]
19355 instantiate the configuration header FILE
19356
19357 Configuration files:
19358 $config_files
19359
19360 Configuration headers:
19361 $config_headers
19362
19363 Configuration commands:
19364 $config_commands
19365
19366 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19367
19368 _ACEOF
19369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19370 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19371 ac_cs_version="\\
19372 xf86-video-r128 config.status 6.9.2
19373 configured by $0, generated by GNU Autoconf 2.69,
19374 with options \\"\$ac_cs_config\\"
19375
19376 Copyright (C) 2012 Free Software Foundation, Inc.
19377 This config.status script is free software; the Free Software Foundation
19378 gives unlimited permission to copy, distribute and modify it."
19379
19380 ac_pwd='$ac_pwd'
19381 srcdir='$srcdir'
19382 INSTALL='$INSTALL'
19383 MKDIR_P='$MKDIR_P'
19384 AWK='$AWK'
19385 test -n "\$AWK" || AWK=awk
19386 _ACEOF
19387
19388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19389 # The default lists apply if the user does not specify any file.
19390 ac_need_defaults=:
19391 while test $# != 0
19392 do
19393 case $1 in
19394 --*=?*)
19395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19397 ac_shift=:
19398 ;;
19399 --*=)
19400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19401 ac_optarg=
19402 ac_shift=:
19403 ;;
19404 *)
19405 ac_option=$1
19406 ac_optarg=$2
19407 ac_shift=shift
19408 ;;
19409 esac
19410
19411 case $ac_option in
19412 # Handling of the options.
19413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19414 ac_cs_recheck=: ;;
19415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19416 $as_echo "$ac_cs_version"; exit ;;
19417 --config | --confi | --conf | --con | --co | --c )
19418 $as_echo "$ac_cs_config"; exit ;;
19419 --debug | --debu | --deb | --de | --d | -d )
19420 debug=: ;;
19421 --file | --fil | --fi | --f )
19422 $ac_shift
19423 case $ac_optarg in
19424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19425 '') as_fn_error $? "missing file argument" ;;
19426 esac
19427 as_fn_append CONFIG_FILES " '$ac_optarg'"
19428 ac_need_defaults=false;;
19429 --header | --heade | --head | --hea )
19430 $ac_shift
19431 case $ac_optarg in
19432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19433 esac
19434 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19435 ac_need_defaults=false;;
19436 --he | --h)
19437 # Conflict between --help and --header
19438 as_fn_error $? "ambiguous option: \`$1'
19439 Try \`$0 --help' for more information.";;
19440 --help | --hel | -h )
19441 $as_echo "$ac_cs_usage"; exit ;;
19442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19444 ac_cs_silent=: ;;
19445
19446 # This is an error.
19447 -*) as_fn_error $? "unrecognized option: \`$1'
19448 Try \`$0 --help' for more information." ;;
19449
19450 *) as_fn_append ac_config_targets " $1"
19451 ac_need_defaults=false ;;
19452
19453 esac
19454 shift
19455 done
19456
19457 ac_configure_extra_args=
19458
19459 if $ac_cs_silent; then
19460 exec 6>/dev/null
19461 ac_configure_extra_args="$ac_configure_extra_args --silent"
19462 fi
19463
19464 _ACEOF
19465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19466 if \$ac_cs_recheck; then
19467 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19468 shift
19469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19470 CONFIG_SHELL='$SHELL'
19471 export CONFIG_SHELL
19472 exec "\$@"
19473 fi
19474
19475 _ACEOF
19476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19477 exec 5>>config.log
19478 {
19479 echo
19480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19481 ## Running $as_me. ##
19482 _ASBOX
19483 $as_echo "$ac_log"
19484 } >&5
19485
19486 _ACEOF
19487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19488 #
19489 # INIT-COMMANDS
19490 #
19491 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19492
19493
19494 # The HP-UX ksh and POSIX shell print the target directory to stdout
19495 # if CDPATH is set.
19496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19497
19498 sed_quote_subst='$sed_quote_subst'
19499 double_quote_subst='$double_quote_subst'
19500 delay_variable_subst='$delay_variable_subst'
19501 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19502 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19503 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19504 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19505 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19506 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19507 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19508 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19509 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19510 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19511 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19512 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19513 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19514 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19515 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19516 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19517 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19518 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19519 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19520 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19521 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19530 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19531 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19532 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19533 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19534 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19535 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19536 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19537 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19538 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19539 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19540 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19541 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19542 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19543 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19544 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19545 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19546 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19547 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19548 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19549 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19550 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19551 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19552 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19553 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19554 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19555 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19556 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19557 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"`'
19558 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19559 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19560 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19561 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19562 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19563 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19564 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19565 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19566 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19567 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19568 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19569 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19570 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19571 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19572 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19573 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19574 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19575 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19576 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19577 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19578 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19579 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19580 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19581 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19582 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19583 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19584 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19585 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19586 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19587 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19588 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19589 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19590 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19591 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19592 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19593 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19594 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19595 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19596 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19597 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19598 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19599 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19600 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19601 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19602 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19603 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19604 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19605 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19606 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19607 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19608 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19609 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19610 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19611 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19612 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19613 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19614 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19615 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19616 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19617 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19618 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19619 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19620 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19621 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19622 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19623 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19624 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19625 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19626 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19627 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19628 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19629 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19630 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19631
19632 LTCC='$LTCC'
19633 LTCFLAGS='$LTCFLAGS'
19634 compiler='$compiler_DEFAULT'
19635
19636 # A function that is used when there is no print builtin or printf.
19637 func_fallback_echo ()
19638 {
19639 eval 'cat <<_LTECHO_EOF
19640 \$1
19641 _LTECHO_EOF'
19642 }
19643
19644 # Quote evaled strings.
19645 for var in SHELL \
19646 ECHO \
19647 PATH_SEPARATOR \
19648 SED \
19649 GREP \
19650 EGREP \
19651 FGREP \
19652 LD \
19653 NM \
19654 LN_S \
19655 lt_SP2NL \
19656 lt_NL2SP \
19657 reload_flag \
19658 OBJDUMP \
19659 deplibs_check_method \
19660 file_magic_cmd \
19661 file_magic_glob \
19662 want_nocaseglob \
19663 DLLTOOL \
19664 sharedlib_from_linklib_cmd \
19665 AR \
19666 AR_FLAGS \
19667 archiver_list_spec \
19668 STRIP \
19669 RANLIB \
19670 CC \
19671 CFLAGS \
19672 compiler \
19673 lt_cv_sys_global_symbol_pipe \
19674 lt_cv_sys_global_symbol_to_cdecl \
19675 lt_cv_sys_global_symbol_to_c_name_address \
19676 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19677 nm_file_list_spec \
19678 lt_prog_compiler_no_builtin_flag \
19679 lt_prog_compiler_pic \
19680 lt_prog_compiler_wl \
19681 lt_prog_compiler_static \
19682 lt_cv_prog_compiler_c_o \
19683 need_locks \
19684 MANIFEST_TOOL \
19685 DSYMUTIL \
19686 NMEDIT \
19687 LIPO \
19688 OTOOL \
19689 OTOOL64 \
19690 shrext_cmds \
19691 export_dynamic_flag_spec \
19692 whole_archive_flag_spec \
19693 compiler_needs_object \
19694 with_gnu_ld \
19695 allow_undefined_flag \
19696 no_undefined_flag \
19697 hardcode_libdir_flag_spec \
19698 hardcode_libdir_separator \
19699 exclude_expsyms \
19700 include_expsyms \
19701 file_list_spec \
19702 variables_saved_for_relink \
19703 libname_spec \
19704 library_names_spec \
19705 soname_spec \
19706 install_override_mode \
19707 finish_eval \
19708 old_striplib \
19709 striplib; do
19710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19711 *[\\\\\\\`\\"\\\$]*)
19712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19713 ;;
19714 *)
19715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19716 ;;
19717 esac
19718 done
19719
19720 # Double-quote double-evaled strings.
19721 for var in reload_cmds \
19722 old_postinstall_cmds \
19723 old_postuninstall_cmds \
19724 old_archive_cmds \
19725 extract_expsyms_cmds \
19726 old_archive_from_new_cmds \
19727 old_archive_from_expsyms_cmds \
19728 archive_cmds \
19729 archive_expsym_cmds \
19730 module_cmds \
19731 module_expsym_cmds \
19732 export_symbols_cmds \
19733 prelink_cmds \
19734 postlink_cmds \
19735 postinstall_cmds \
19736 postuninstall_cmds \
19737 finish_cmds \
19738 sys_lib_search_path_spec \
19739 sys_lib_dlsearch_path_spec; do
19740 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19741 *[\\\\\\\`\\"\\\$]*)
19742 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19743 ;;
19744 *)
19745 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19746 ;;
19747 esac
19748 done
19749
19750 ac_aux_dir='$ac_aux_dir'
19751 xsi_shell='$xsi_shell'
19752 lt_shell_append='$lt_shell_append'
19753
19754 # See if we are running on zsh, and set the options which allow our
19755 # commands through without removal of \ escapes INIT.
19756 if test -n "\${ZSH_VERSION+set}" ; then
19757 setopt NO_GLOB_SUBST
19758 fi
19759
19760
19761 PACKAGE='$PACKAGE'
19762 VERSION='$VERSION'
19763 TIMESTAMP='$TIMESTAMP'
19764 RM='$RM'
19765 ofile='$ofile'
19766
19767
19768
19769
19770 _ACEOF
19771
19772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19773
19774 # Handling of arguments.
19775 for ac_config_target in $ac_config_targets
19776 do
19777 case $ac_config_target in
19778 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19779 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19780 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19781 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19782 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19783 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19784
19785 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19786 esac
19787 done
19788
19789
19790 # If the user did not use the arguments to specify the items to instantiate,
19791 # then the envvar interface is used. Set only those that are not.
19792 # We use the long form for the default assignment because of an extremely
19793 # bizarre bug on SunOS 4.1.3.
19794 if $ac_need_defaults; then
19795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19798 fi
19799
19800 # Have a temporary directory for convenience. Make it in the build tree
19801 # simply because there is no reason against having it here, and in addition,
19802 # creating and moving files from /tmp can sometimes cause problems.
19803 # Hook for its removal unless debugging.
19804 # Note that there is a small window in which the directory will not be cleaned:
19805 # after its creation but before its name has been assigned to `$tmp'.
19806 $debug ||
19807 {
19808 tmp= ac_tmp=
19809 trap 'exit_status=$?
19810 : "${ac_tmp:=$tmp}"
19811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19812 ' 0
19813 trap 'as_fn_exit 1' 1 2 13 15
19814 }
19815 # Create a (secure) tmp directory for tmp files.
19816
19817 {
19818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19819 test -d "$tmp"
19820 } ||
19821 {
19822 tmp=./conf$$-$RANDOM
19823 (umask 077 && mkdir "$tmp")
19824 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19825 ac_tmp=$tmp
19826
19827 # Set up the scripts for CONFIG_FILES section.
19828 # No need to generate them if there are no CONFIG_FILES.
19829 # This happens for instance with `./config.status config.h'.
19830 if test -n "$CONFIG_FILES"; then
19831
19832
19833 ac_cr=`echo X | tr X '\015'`
19834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19835 # But we know of no other shell where ac_cr would be empty at this
19836 # point, so we can use a bashism as a fallback.
19837 if test "x$ac_cr" = x; then
19838 eval ac_cr=\$\'\\r\'
19839 fi
19840 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19842 ac_cs_awk_cr='\\r'
19843 else
19844 ac_cs_awk_cr=$ac_cr
19845 fi
19846
19847 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19848 _ACEOF
19849
19850
19851 {
19852 echo "cat >conf$$subs.awk <<_ACEOF" &&
19853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19854 echo "_ACEOF"
19855 } >conf$$subs.sh ||
19856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19858 ac_delim='%!_!# '
19859 for ac_last_try in false false false false false :; do
19860 . ./conf$$subs.sh ||
19861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19862
19863 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19864 if test $ac_delim_n = $ac_delim_num; then
19865 break
19866 elif $ac_last_try; then
19867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19868 else
19869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19870 fi
19871 done
19872 rm -f conf$$subs.sh
19873
19874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19875 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19876 _ACEOF
19877 sed -n '
19878 h
19879 s/^/S["/; s/!.*/"]=/
19880 p
19881 g
19882 s/^[^!]*!//
19883 :repl
19884 t repl
19885 s/'"$ac_delim"'$//
19886 t delim
19887 :nl
19888 h
19889 s/\(.\{148\}\)..*/\1/
19890 t more1
19891 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19892 p
19893 n
19894 b repl
19895 :more1
19896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19897 p
19898 g
19899 s/.\{148\}//
19900 t nl
19901 :delim
19902 h
19903 s/\(.\{148\}\)..*/\1/
19904 t more2
19905 s/["\\]/\\&/g; s/^/"/; s/$/"/
19906 p
19907 b
19908 :more2
19909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19910 p
19911 g
19912 s/.\{148\}//
19913 t delim
19914 ' <conf$$subs.awk | sed '
19915 /^[^""]/{
19916 N
19917 s/\n//
19918 }
19919 ' >>$CONFIG_STATUS || ac_write_fail=1
19920 rm -f conf$$subs.awk
19921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19922 _ACAWK
19923 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19924 for (key in S) S_is_set[key] = 1
19925 FS = ""
19926
19927 }
19928 {
19929 line = $ 0
19930 nfields = split(line, field, "@")
19931 substed = 0
19932 len = length(field[1])
19933 for (i = 2; i < nfields; i++) {
19934 key = field[i]
19935 keylen = length(key)
19936 if (S_is_set[key]) {
19937 value = S[key]
19938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19939 len += length(value) + length(field[++i])
19940 substed = 1
19941 } else
19942 len += 1 + keylen
19943 }
19944
19945 print line
19946 }
19947
19948 _ACAWK
19949 _ACEOF
19950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19951 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19952 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19953 else
19954 cat
19955 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19956 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19957 _ACEOF
19958
19959 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19960 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19961 # trailing colons and then remove the whole line if VPATH becomes empty
19962 # (actually we leave an empty line to preserve line numbers).
19963 if test "x$srcdir" = x.; then
19964 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19965 h
19966 s///
19967 s/^/:/
19968 s/[ ]*$/:/
19969 s/:\$(srcdir):/:/g
19970 s/:\${srcdir}:/:/g
19971 s/:@srcdir@:/:/g
19972 s/^:*//
19973 s/:*$//
19974 x
19975 s/\(=[ ]*\).*/\1/
19976 G
19977 s/\n//
19978 s/^[^=]*=[ ]*$//
19979 }'
19980 fi
19981
19982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19983 fi # test -n "$CONFIG_FILES"
19984
19985 # Set up the scripts for CONFIG_HEADERS section.
19986 # No need to generate them if there are no CONFIG_HEADERS.
19987 # This happens for instance with `./config.status Makefile'.
19988 if test -n "$CONFIG_HEADERS"; then
19989 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19990 BEGIN {
19991 _ACEOF
19992
19993 # Transform confdefs.h into an awk script `defines.awk', embedded as
19994 # here-document in config.status, that substitutes the proper values into
19995 # config.h.in to produce config.h.
19996
19997 # Create a delimiter string that does not exist in confdefs.h, to ease
19998 # handling of long lines.
19999 ac_delim='%!_!# '
20000 for ac_last_try in false false :; do
20001 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20002 if test -z "$ac_tt"; then
20003 break
20004 elif $ac_last_try; then
20005 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20006 else
20007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20008 fi
20009 done
20010
20011 # For the awk script, D is an array of macro values keyed by name,
20012 # likewise P contains macro parameters if any. Preserve backslash
20013 # newline sequences.
20014
20015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20016 sed -n '
20017 s/.\{148\}/&'"$ac_delim"'/g
20018 t rset
20019 :rset
20020 s/^[ ]*#[ ]*define[ ][ ]*/ /
20021 t def
20022 d
20023 :def
20024 s/\\$//
20025 t bsnl
20026 s/["\\]/\\&/g
20027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20028 D["\1"]=" \3"/p
20029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20030 d
20031 :bsnl
20032 s/["\\]/\\&/g
20033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20034 D["\1"]=" \3\\\\\\n"\\/p
20035 t cont
20036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20037 t cont
20038 d
20039 :cont
20040 n
20041 s/.\{148\}/&'"$ac_delim"'/g
20042 t clear
20043 :clear
20044 s/\\$//
20045 t bsnlc
20046 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20047 d
20048 :bsnlc
20049 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20050 b cont
20051 ' <confdefs.h | sed '
20052 s/'"$ac_delim"'/"\\\
20053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20054
20055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20056 for (key in D) D_is_set[key] = 1
20057 FS = ""
20058 }
20059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20060 line = \$ 0
20061 split(line, arg, " ")
20062 if (arg[1] == "#") {
20063 defundef = arg[2]
20064 mac1 = arg[3]
20065 } else {
20066 defundef = substr(arg[1], 2)
20067 mac1 = arg[2]
20068 }
20069 split(mac1, mac2, "(") #)
20070 macro = mac2[1]
20071 prefix = substr(line, 1, index(line, defundef) - 1)
20072 if (D_is_set[macro]) {
20073 # Preserve the white space surrounding the "#".
20074 print prefix "define", macro P[macro] D[macro]
20075 next
20076 } else {
20077 # Replace #undef with comments. This is necessary, for example,
20078 # in the case of _POSIX_SOURCE, which is predefined and required
20079 # on some systems where configure will not decide to define it.
20080 if (defundef == "undef") {
20081 print "/*", prefix defundef, macro, "*/"
20082 next
20083 }
20084 }
20085 }
20086 { print }
20087 _ACAWK
20088 _ACEOF
20089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20090 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20091 fi # test -n "$CONFIG_HEADERS"
20092
20093
20094 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20095 shift
20096 for ac_tag
20097 do
20098 case $ac_tag in
20099 :[FHLC]) ac_mode=$ac_tag; continue;;
20100 esac
20101 case $ac_mode$ac_tag in
20102 :[FHL]*:*);;
20103 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20104 :[FH]-) ac_tag=-:-;;
20105 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20106 esac
20107 ac_save_IFS=$IFS
20108 IFS=:
20109 set x $ac_tag
20110 IFS=$ac_save_IFS
20111 shift
20112 ac_file=$1
20113 shift
20114
20115 case $ac_mode in
20116 :L) ac_source=$1;;
20117 :[FH])
20118 ac_file_inputs=
20119 for ac_f
20120 do
20121 case $ac_f in
20122 -) ac_f="$ac_tmp/stdin";;
20123 *) # Look for the file first in the build tree, then in the source tree
20124 # (if the path is not absolute). The absolute path cannot be DOS-style,
20125 # because $ac_f cannot contain `:'.
20126 test -f "$ac_f" ||
20127 case $ac_f in
20128 [\\/$]*) false;;
20129 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20130 esac ||
20131 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20132 esac
20133 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20134 as_fn_append ac_file_inputs " '$ac_f'"
20135 done
20136
20137 # Let's still pretend it is `configure' which instantiates (i.e., don't
20138 # use $as_me), people would be surprised to read:
20139 # /* config.h. Generated by config.status. */
20140 configure_input='Generated from '`
20141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20142 `' by configure.'
20143 if test x"$ac_file" != x-; then
20144 configure_input="$ac_file. $configure_input"
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20146 $as_echo "$as_me: creating $ac_file" >&6;}
20147 fi
20148 # Neutralize special characters interpreted by sed in replacement strings.
20149 case $configure_input in #(
20150 *\&* | *\|* | *\\* )
20151 ac_sed_conf_input=`$as_echo "$configure_input" |
20152 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20153 *) ac_sed_conf_input=$configure_input;;
20154 esac
20155
20156 case $ac_tag in
20157 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20159 esac
20160 ;;
20161 esac
20162
20163 ac_dir=`$as_dirname -- "$ac_file" ||
20164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20165 X"$ac_file" : 'X\(//\)[^/]' \| \
20166 X"$ac_file" : 'X\(//\)$' \| \
20167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20168 $as_echo X"$ac_file" |
20169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20170 s//\1/
20171 q
20172 }
20173 /^X\(\/\/\)[^/].*/{
20174 s//\1/
20175 q
20176 }
20177 /^X\(\/\/\)$/{
20178 s//\1/
20179 q
20180 }
20181 /^X\(\/\).*/{
20182 s//\1/
20183 q
20184 }
20185 s/.*/./; q'`
20186 as_dir="$ac_dir"; as_fn_mkdir_p
20187 ac_builddir=.
20188
20189 case "$ac_dir" in
20190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20191 *)
20192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20193 # A ".." for each directory in $ac_dir_suffix.
20194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20195 case $ac_top_builddir_sub in
20196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20198 esac ;;
20199 esac
20200 ac_abs_top_builddir=$ac_pwd
20201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20202 # for backward compatibility:
20203 ac_top_builddir=$ac_top_build_prefix
20204
20205 case $srcdir in
20206 .) # We are building in place.
20207 ac_srcdir=.
20208 ac_top_srcdir=$ac_top_builddir_sub
20209 ac_abs_top_srcdir=$ac_pwd ;;
20210 [\\/]* | ?:[\\/]* ) # Absolute name.
20211 ac_srcdir=$srcdir$ac_dir_suffix;
20212 ac_top_srcdir=$srcdir
20213 ac_abs_top_srcdir=$srcdir ;;
20214 *) # Relative name.
20215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20216 ac_top_srcdir=$ac_top_build_prefix$srcdir
20217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20218 esac
20219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20220
20221
20222 case $ac_mode in
20223 :F)
20224 #
20225 # CONFIG_FILE
20226 #
20227
20228 case $INSTALL in
20229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20231 esac
20232 ac_MKDIR_P=$MKDIR_P
20233 case $MKDIR_P in
20234 [\\/$]* | ?:[\\/]* ) ;;
20235 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20236 esac
20237 _ACEOF
20238
20239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20240 # If the template does not know about datarootdir, expand it.
20241 # FIXME: This hack should be removed a few years after 2.60.
20242 ac_datarootdir_hack=; ac_datarootdir_seen=
20243 ac_sed_dataroot='
20244 /datarootdir/ {
20245 p
20246 q
20247 }
20248 /@datadir@/p
20249 /@docdir@/p
20250 /@infodir@/p
20251 /@localedir@/p
20252 /@mandir@/p'
20253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20254 *datarootdir*) ac_datarootdir_seen=yes;;
20255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20258 _ACEOF
20259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20260 ac_datarootdir_hack='
20261 s&@datadir@&$datadir&g
20262 s&@docdir@&$docdir&g
20263 s&@infodir@&$infodir&g
20264 s&@localedir@&$localedir&g
20265 s&@mandir@&$mandir&g
20266 s&\\\${datarootdir}&$datarootdir&g' ;;
20267 esac
20268 _ACEOF
20269
20270 # Neutralize VPATH when `$srcdir' = `.'.
20271 # Shell code in configure.ac might set extrasub.
20272 # FIXME: do we really want to maintain this feature?
20273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274 ac_sed_extra="$ac_vpsub
20275 $extrasub
20276 _ACEOF
20277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20278 :t
20279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20280 s|@configure_input@|$ac_sed_conf_input|;t t
20281 s&@top_builddir@&$ac_top_builddir_sub&;t t
20282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20283 s&@srcdir@&$ac_srcdir&;t t
20284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20285 s&@top_srcdir@&$ac_top_srcdir&;t t
20286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20287 s&@builddir@&$ac_builddir&;t t
20288 s&@abs_builddir@&$ac_abs_builddir&;t t
20289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20290 s&@INSTALL@&$ac_INSTALL&;t t
20291 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20292 $ac_datarootdir_hack
20293 "
20294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20295 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20296
20297 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20298 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20299 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20300 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20302 which seems to be undefined. Please make sure it is defined" >&5
20303 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20304 which seems to be undefined. Please make sure it is defined" >&2;}
20305
20306 rm -f "$ac_tmp/stdin"
20307 case $ac_file in
20308 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20309 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20310 esac \
20311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20312 ;;
20313 :H)
20314 #
20315 # CONFIG_HEADER
20316 #
20317 if test x"$ac_file" != x-; then
20318 {
20319 $as_echo "/* $configure_input */" \
20320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20321 } >"$ac_tmp/config.h" \
20322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20323 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20325 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20326 else
20327 rm -f "$ac_file"
20328 mv "$ac_tmp/config.h" "$ac_file" \
20329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20330 fi
20331 else
20332 $as_echo "/* $configure_input */" \
20333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20334 || as_fn_error $? "could not create -" "$LINENO" 5
20335 fi
20336 # Compute "$ac_file"'s index in $config_headers.
20337 _am_arg="$ac_file"
20338 _am_stamp_count=1
20339 for _am_header in $config_headers :; do
20340 case $_am_header in
20341 $_am_arg | $_am_arg:* )
20342 break ;;
20343 * )
20344 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20345 esac
20346 done
20347 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20348 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20349 X"$_am_arg" : 'X\(//\)[^/]' \| \
20350 X"$_am_arg" : 'X\(//\)$' \| \
20351 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20352 $as_echo X"$_am_arg" |
20353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20354 s//\1/
20355 q
20356 }
20357 /^X\(\/\/\)[^/].*/{
20358 s//\1/
20359 q
20360 }
20361 /^X\(\/\/\)$/{
20362 s//\1/
20363 q
20364 }
20365 /^X\(\/\).*/{
20366 s//\1/
20367 q
20368 }
20369 s/.*/./; q'`/stamp-h$_am_stamp_count
20370 ;;
20371
20372 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20373 $as_echo "$as_me: executing $ac_file commands" >&6;}
20374 ;;
20375 esac
20376
20377
20378 case $ac_file$ac_mode in
20379 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20380 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20381 # are listed without --file. Let's play safe and only enable the eval
20382 # if we detect the quoting.
20383 case $CONFIG_FILES in
20384 *\'*) eval set x "$CONFIG_FILES" ;;
20385 *) set x $CONFIG_FILES ;;
20386 esac
20387 shift
20388 for mf
20389 do
20390 # Strip MF so we end up with the name of the file.
20391 mf=`echo "$mf" | sed -e 's/:.*$//'`
20392 # Check whether this is an Automake generated Makefile or not.
20393 # We used to match only the files named `Makefile.in', but
20394 # some people rename them; so instead we look at the file content.
20395 # Grep'ing the first line is not enough: some people post-process
20396 # each Makefile.in and add a new line on top of each file to say so.
20397 # Grep'ing the whole file is not good either: AIX grep has a line
20398 # limit of 2048, but all sed's we know have understand at least 4000.
20399 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20400 dirpart=`$as_dirname -- "$mf" ||
20401 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20402 X"$mf" : 'X\(//\)[^/]' \| \
20403 X"$mf" : 'X\(//\)$' \| \
20404 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20405 $as_echo X"$mf" |
20406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20407 s//\1/
20408 q
20409 }
20410 /^X\(\/\/\)[^/].*/{
20411 s//\1/
20412 q
20413 }
20414 /^X\(\/\/\)$/{
20415 s//\1/
20416 q
20417 }
20418 /^X\(\/\).*/{
20419 s//\1/
20420 q
20421 }
20422 s/.*/./; q'`
20423 else
20424 continue
20425 fi
20426 # Extract the definition of DEPDIR, am__include, and am__quote
20427 # from the Makefile without running `make'.
20428 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20429 test -z "$DEPDIR" && continue
20430 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20431 test -z "am__include" && continue
20432 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20433 # When using ansi2knr, U may be empty or an underscore; expand it
20434 U=`sed -n 's/^U = //p' < "$mf"`
20435 # Find all dependency output files, they are included files with
20436 # $(DEPDIR) in their names. We invoke sed twice because it is the
20437 # simplest approach to changing $(DEPDIR) to its actual value in the
20438 # expansion.
20439 for file in `sed -n "
20440 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20441 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20442 # Make sure the directory exists.
20443 test -f "$dirpart/$file" && continue
20444 fdir=`$as_dirname -- "$file" ||
20445 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20446 X"$file" : 'X\(//\)[^/]' \| \
20447 X"$file" : 'X\(//\)$' \| \
20448 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20449 $as_echo X"$file" |
20450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20451 s//\1/
20452 q
20453 }
20454 /^X\(\/\/\)[^/].*/{
20455 s//\1/
20456 q
20457 }
20458 /^X\(\/\/\)$/{
20459 s//\1/
20460 q
20461 }
20462 /^X\(\/\).*/{
20463 s//\1/
20464 q
20465 }
20466 s/.*/./; q'`
20467 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20468 # echo "creating $dirpart/$file"
20469 echo '# dummy' > "$dirpart/$file"
20470 done
20471 done
20472 }
20473 ;;
20474 "libtool":C)
20475
20476 # See if we are running on zsh, and set the options which allow our
20477 # commands through without removal of \ escapes.
20478 if test -n "${ZSH_VERSION+set}" ; then
20479 setopt NO_GLOB_SUBST
20480 fi
20481
20482 cfgfile="${ofile}T"
20483 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20484 $RM "$cfgfile"
20485
20486 cat <<_LT_EOF >> "$cfgfile"
20487 #! $SHELL
20488
20489 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20490 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20492 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20493 #
20494 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20495 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20496 # Foundation, Inc.
20497 # Written by Gordon Matzigkeit, 1996
20498 #
20499 # This file is part of GNU Libtool.
20500 #
20501 # GNU Libtool is free software; you can redistribute it and/or
20502 # modify it under the terms of the GNU General Public License as
20503 # published by the Free Software Foundation; either version 2 of
20504 # the License, or (at your option) any later version.
20505 #
20506 # As a special exception to the GNU General Public License,
20507 # if you distribute this file as part of a program or library that
20508 # is built using GNU Libtool, you may include this file under the
20509 # same distribution terms that you use for the rest of that program.
20510 #
20511 # GNU Libtool is distributed in the hope that it will be useful,
20512 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20514 # GNU General Public License for more details.
20515 #
20516 # You should have received a copy of the GNU General Public License
20517 # along with GNU Libtool; see the file COPYING. If not, a copy
20518 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20519 # obtained by writing to the Free Software Foundation, Inc.,
20520 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20521
20522
20523 # The names of the tagged configurations supported by this script.
20524 available_tags=""
20525
20526 # ### BEGIN LIBTOOL CONFIG
20527
20528 # Whether or not to build static libraries.
20529 build_old_libs=$enable_static
20530
20531 # Which release of libtool.m4 was used?
20532 macro_version=$macro_version
20533 macro_revision=$macro_revision
20534
20535 # Whether or not to build shared libraries.
20536 build_libtool_libs=$enable_shared
20537
20538 # What type of objects to build.
20539 pic_mode=$pic_mode
20540
20541 # Whether or not to optimize for fast installation.
20542 fast_install=$enable_fast_install
20543
20544 # Shell to use when invoking shell scripts.
20545 SHELL=$lt_SHELL
20546
20547 # An echo program that protects backslashes.
20548 ECHO=$lt_ECHO
20549
20550 # The PATH separator for the build system.
20551 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20552
20553 # The host system.
20554 host_alias=$host_alias
20555 host=$host
20556 host_os=$host_os
20557
20558 # The build system.
20559 build_alias=$build_alias
20560 build=$build
20561 build_os=$build_os
20562
20563 # A sed program that does not truncate output.
20564 SED=$lt_SED
20565
20566 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20567 Xsed="\$SED -e 1s/^X//"
20568
20569 # A grep program that handles long lines.
20570 GREP=$lt_GREP
20571
20572 # An ERE matcher.
20573 EGREP=$lt_EGREP
20574
20575 # A literal string matcher.
20576 FGREP=$lt_FGREP
20577
20578 # A BSD- or MS-compatible name lister.
20579 NM=$lt_NM
20580
20581 # Whether we need soft or hard links.
20582 LN_S=$lt_LN_S
20583
20584 # What is the maximum length of a command?
20585 max_cmd_len=$max_cmd_len
20586
20587 # Object file suffix (normally "o").
20588 objext=$ac_objext
20589
20590 # Executable file suffix (normally "").
20591 exeext=$exeext
20592
20593 # whether the shell understands "unset".
20594 lt_unset=$lt_unset
20595
20596 # turn spaces into newlines.
20597 SP2NL=$lt_lt_SP2NL
20598
20599 # turn newlines into spaces.
20600 NL2SP=$lt_lt_NL2SP
20601
20602 # convert \$build file names to \$host format.
20603 to_host_file_cmd=$lt_cv_to_host_file_cmd
20604
20605 # convert \$build files to toolchain format.
20606 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20607
20608 # An object symbol dumper.
20609 OBJDUMP=$lt_OBJDUMP
20610
20611 # Method to check whether dependent libraries are shared objects.
20612 deplibs_check_method=$lt_deplibs_check_method
20613
20614 # Command to use when deplibs_check_method = "file_magic".
20615 file_magic_cmd=$lt_file_magic_cmd
20616
20617 # How to find potential files when deplibs_check_method = "file_magic".
20618 file_magic_glob=$lt_file_magic_glob
20619
20620 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20621 want_nocaseglob=$lt_want_nocaseglob
20622
20623 # DLL creation program.
20624 DLLTOOL=$lt_DLLTOOL
20625
20626 # Command to associate shared and link libraries.
20627 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20628
20629 # The archiver.
20630 AR=$lt_AR
20631
20632 # Flags to create an archive.
20633 AR_FLAGS=$lt_AR_FLAGS
20634
20635 # How to feed a file listing to the archiver.
20636 archiver_list_spec=$lt_archiver_list_spec
20637
20638 # A symbol stripping program.
20639 STRIP=$lt_STRIP
20640
20641 # Commands used to install an old-style archive.
20642 RANLIB=$lt_RANLIB
20643 old_postinstall_cmds=$lt_old_postinstall_cmds
20644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20645
20646 # Whether to use a lock for old archive extraction.
20647 lock_old_archive_extraction=$lock_old_archive_extraction
20648
20649 # A C compiler.
20650 LTCC=$lt_CC
20651
20652 # LTCC compiler flags.
20653 LTCFLAGS=$lt_CFLAGS
20654
20655 # Take the output of nm and produce a listing of raw symbols and C names.
20656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20657
20658 # Transform the output of nm in a proper C declaration.
20659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20660
20661 # Transform the output of nm in a C name address pair.
20662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20663
20664 # Transform the output of nm in a C name address pair when lib prefix is needed.
20665 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20666
20667 # Specify filename containing input files for \$NM.
20668 nm_file_list_spec=$lt_nm_file_list_spec
20669
20670 # The root where to search for dependent libraries,and in which our libraries should be installed.
20671 lt_sysroot=$lt_sysroot
20672
20673 # The name of the directory that contains temporary libtool files.
20674 objdir=$objdir
20675
20676 # Used to examine libraries when file_magic_cmd begins with "file".
20677 MAGIC_CMD=$MAGIC_CMD
20678
20679 # Must we lock files when doing compilation?
20680 need_locks=$lt_need_locks
20681
20682 # Manifest tool.
20683 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20684
20685 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20686 DSYMUTIL=$lt_DSYMUTIL
20687
20688 # Tool to change global to local symbols on Mac OS X.
20689 NMEDIT=$lt_NMEDIT
20690
20691 # Tool to manipulate fat objects and archives on Mac OS X.
20692 LIPO=$lt_LIPO
20693
20694 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20695 OTOOL=$lt_OTOOL
20696
20697 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20698 OTOOL64=$lt_OTOOL64
20699
20700 # Old archive suffix (normally "a").
20701 libext=$libext
20702
20703 # Shared library suffix (normally ".so").
20704 shrext_cmds=$lt_shrext_cmds
20705
20706 # The commands to extract the exported symbol list from a shared archive.
20707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20708
20709 # Variables whose values should be saved in libtool wrapper scripts and
20710 # restored at link time.
20711 variables_saved_for_relink=$lt_variables_saved_for_relink
20712
20713 # Do we need the "lib" prefix for modules?
20714 need_lib_prefix=$need_lib_prefix
20715
20716 # Do we need a version for libraries?
20717 need_version=$need_version
20718
20719 # Library versioning type.
20720 version_type=$version_type
20721
20722 # Shared library runtime path variable.
20723 runpath_var=$runpath_var
20724
20725 # Shared library path variable.
20726 shlibpath_var=$shlibpath_var
20727
20728 # Is shlibpath searched before the hard-coded library search path?
20729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20730
20731 # Format of library name prefix.
20732 libname_spec=$lt_libname_spec
20733
20734 # List of archive names. First name is the real one, the rest are links.
20735 # The last name is the one that the linker finds with -lNAME
20736 library_names_spec=$lt_library_names_spec
20737
20738 # The coded name of the library, if different from the real name.
20739 soname_spec=$lt_soname_spec
20740
20741 # Permission mode override for installation of shared libraries.
20742 install_override_mode=$lt_install_override_mode
20743
20744 # Command to use after installation of a shared archive.
20745 postinstall_cmds=$lt_postinstall_cmds
20746
20747 # Command to use after uninstallation of a shared archive.
20748 postuninstall_cmds=$lt_postuninstall_cmds
20749
20750 # Commands used to finish a libtool library installation in a directory.
20751 finish_cmds=$lt_finish_cmds
20752
20753 # As "finish_cmds", except a single script fragment to be evaled but
20754 # not shown.
20755 finish_eval=$lt_finish_eval
20756
20757 # Whether we should hardcode library paths into libraries.
20758 hardcode_into_libs=$hardcode_into_libs
20759
20760 # Compile-time system search path for libraries.
20761 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20762
20763 # Run-time system search path for libraries.
20764 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20765
20766 # Whether dlopen is supported.
20767 dlopen_support=$enable_dlopen
20768
20769 # Whether dlopen of programs is supported.
20770 dlopen_self=$enable_dlopen_self
20771
20772 # Whether dlopen of statically linked programs is supported.
20773 dlopen_self_static=$enable_dlopen_self_static
20774
20775 # Commands to strip libraries.
20776 old_striplib=$lt_old_striplib
20777 striplib=$lt_striplib
20778
20779
20780 # The linker used to build libraries.
20781 LD=$lt_LD
20782
20783 # How to create reloadable object files.
20784 reload_flag=$lt_reload_flag
20785 reload_cmds=$lt_reload_cmds
20786
20787 # Commands used to build an old-style archive.
20788 old_archive_cmds=$lt_old_archive_cmds
20789
20790 # A language specific compiler.
20791 CC=$lt_compiler
20792
20793 # Is the compiler the GNU compiler?
20794 with_gcc=$GCC
20795
20796 # Compiler flag to turn off builtin functions.
20797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20798
20799 # Additional compiler flags for building library objects.
20800 pic_flag=$lt_lt_prog_compiler_pic
20801
20802 # How to pass a linker flag through the compiler.
20803 wl=$lt_lt_prog_compiler_wl
20804
20805 # Compiler flag to prevent dynamic linking.
20806 link_static_flag=$lt_lt_prog_compiler_static
20807
20808 # Does compiler simultaneously support -c and -o options?
20809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20810
20811 # Whether or not to add -lc for building shared libraries.
20812 build_libtool_need_lc=$archive_cmds_need_lc
20813
20814 # Whether or not to disallow shared libs when runtime libs are static.
20815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20816
20817 # Compiler flag to allow reflexive dlopens.
20818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20819
20820 # Compiler flag to generate shared objects directly from archives.
20821 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20822
20823 # Whether the compiler copes with passing no objects directly.
20824 compiler_needs_object=$lt_compiler_needs_object
20825
20826 # Create an old-style archive from a shared archive.
20827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20828
20829 # Create a temporary old-style archive to link instead of a shared archive.
20830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20831
20832 # Commands used to build a shared archive.
20833 archive_cmds=$lt_archive_cmds
20834 archive_expsym_cmds=$lt_archive_expsym_cmds
20835
20836 # Commands used to build a loadable module if different from building
20837 # a shared archive.
20838 module_cmds=$lt_module_cmds
20839 module_expsym_cmds=$lt_module_expsym_cmds
20840
20841 # Whether we are building with GNU ld or not.
20842 with_gnu_ld=$lt_with_gnu_ld
20843
20844 # Flag that allows shared libraries with undefined symbols to be built.
20845 allow_undefined_flag=$lt_allow_undefined_flag
20846
20847 # Flag that enforces no undefined symbols.
20848 no_undefined_flag=$lt_no_undefined_flag
20849
20850 # Flag to hardcode \$libdir into a binary during linking.
20851 # This must work even if \$libdir does not exist
20852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20853
20854 # Whether we need a single "-rpath" flag with a separated argument.
20855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20856
20857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20858 # DIR into the resulting binary.
20859 hardcode_direct=$hardcode_direct
20860
20861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20862 # DIR into the resulting binary and the resulting library dependency is
20863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20864 # library is relocated.
20865 hardcode_direct_absolute=$hardcode_direct_absolute
20866
20867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20868 # into the resulting binary.
20869 hardcode_minus_L=$hardcode_minus_L
20870
20871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20872 # into the resulting binary.
20873 hardcode_shlibpath_var=$hardcode_shlibpath_var
20874
20875 # Set to "yes" if building a shared library automatically hardcodes DIR
20876 # into the library and all subsequent libraries and executables linked
20877 # against it.
20878 hardcode_automatic=$hardcode_automatic
20879
20880 # Set to yes if linker adds runtime paths of dependent libraries
20881 # to runtime path list.
20882 inherit_rpath=$inherit_rpath
20883
20884 # Whether libtool must link a program against all its dependency libraries.
20885 link_all_deplibs=$link_all_deplibs
20886
20887 # Set to "yes" if exported symbols are required.
20888 always_export_symbols=$always_export_symbols
20889
20890 # The commands to list exported symbols.
20891 export_symbols_cmds=$lt_export_symbols_cmds
20892
20893 # Symbols that should not be listed in the preloaded symbols.
20894 exclude_expsyms=$lt_exclude_expsyms
20895
20896 # Symbols that must always be exported.
20897 include_expsyms=$lt_include_expsyms
20898
20899 # Commands necessary for linking programs (against libraries) with templates.
20900 prelink_cmds=$lt_prelink_cmds
20901
20902 # Commands necessary for finishing linking programs.
20903 postlink_cmds=$lt_postlink_cmds
20904
20905 # Specify filename containing input files.
20906 file_list_spec=$lt_file_list_spec
20907
20908 # How to hardcode a shared library path into an executable.
20909 hardcode_action=$hardcode_action
20910
20911 # ### END LIBTOOL CONFIG
20912
20913 _LT_EOF
20914
20915 case $host_os in
20916 aix3*)
20917 cat <<\_LT_EOF >> "$cfgfile"
20918 # AIX sometimes has problems with the GCC collect2 program. For some
20919 # reason, if we set the COLLECT_NAMES environment variable, the problems
20920 # vanish in a puff of smoke.
20921 if test "X${COLLECT_NAMES+set}" != Xset; then
20922 COLLECT_NAMES=
20923 export COLLECT_NAMES
20924 fi
20925 _LT_EOF
20926 ;;
20927 esac
20928
20929
20930 ltmain="$ac_aux_dir/ltmain.sh"
20931
20932
20933 # We use sed instead of cat because bash on DJGPP gets confused if
20934 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20935 # text mode, it properly converts lines to CR/LF. This bash problem
20936 # is reportedly fixed, but why not run on old versions too?
20937 sed '$q' "$ltmain" >> "$cfgfile" \
20938 || (rm -f "$cfgfile"; exit 1)
20939
20940 if test x"$xsi_shell" = xyes; then
20941 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20942 func_dirname ()\
20943 {\
20944 \ case ${1} in\
20945 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20946 \ * ) func_dirname_result="${3}" ;;\
20947 \ esac\
20948 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20949 && mv -f "$cfgfile.tmp" "$cfgfile" \
20950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20951 test 0 -eq $? || _lt_function_replace_fail=:
20952
20953
20954 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20955 func_basename ()\
20956 {\
20957 \ func_basename_result="${1##*/}"\
20958 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20959 && mv -f "$cfgfile.tmp" "$cfgfile" \
20960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20961 test 0 -eq $? || _lt_function_replace_fail=:
20962
20963
20964 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20965 func_dirname_and_basename ()\
20966 {\
20967 \ case ${1} in\
20968 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20969 \ * ) func_dirname_result="${3}" ;;\
20970 \ esac\
20971 \ func_basename_result="${1##*/}"\
20972 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20973 && mv -f "$cfgfile.tmp" "$cfgfile" \
20974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20975 test 0 -eq $? || _lt_function_replace_fail=:
20976
20977
20978 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20979 func_stripname ()\
20980 {\
20981 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20982 \ # positional parameters, so assign one to ordinary parameter first.\
20983 \ func_stripname_result=${3}\
20984 \ func_stripname_result=${func_stripname_result#"${1}"}\
20985 \ func_stripname_result=${func_stripname_result%"${2}"}\
20986 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20987 && mv -f "$cfgfile.tmp" "$cfgfile" \
20988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20989 test 0 -eq $? || _lt_function_replace_fail=:
20990
20991
20992 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20993 func_split_long_opt ()\
20994 {\
20995 \ func_split_long_opt_name=${1%%=*}\
20996 \ func_split_long_opt_arg=${1#*=}\
20997 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20998 && mv -f "$cfgfile.tmp" "$cfgfile" \
20999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21000 test 0 -eq $? || _lt_function_replace_fail=:
21001
21002
21003 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21004 func_split_short_opt ()\
21005 {\
21006 \ func_split_short_opt_arg=${1#??}\
21007 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21008 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21009 && mv -f "$cfgfile.tmp" "$cfgfile" \
21010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21011 test 0 -eq $? || _lt_function_replace_fail=:
21012
21013
21014 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21015 func_lo2o ()\
21016 {\
21017 \ case ${1} in\
21018 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21019 \ *) func_lo2o_result=${1} ;;\
21020 \ esac\
21021 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21022 && mv -f "$cfgfile.tmp" "$cfgfile" \
21023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21024 test 0 -eq $? || _lt_function_replace_fail=:
21025
21026
21027 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21028 func_xform ()\
21029 {\
21030 func_xform_result=${1%.*}.lo\
21031 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21032 && mv -f "$cfgfile.tmp" "$cfgfile" \
21033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21034 test 0 -eq $? || _lt_function_replace_fail=:
21035
21036
21037 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21038 func_arith ()\
21039 {\
21040 func_arith_result=$(( $* ))\
21041 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21042 && mv -f "$cfgfile.tmp" "$cfgfile" \
21043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21044 test 0 -eq $? || _lt_function_replace_fail=:
21045
21046
21047 sed -e '/^func_len ()$/,/^} # func_len /c\
21048 func_len ()\
21049 {\
21050 func_len_result=${#1}\
21051 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21052 && mv -f "$cfgfile.tmp" "$cfgfile" \
21053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21054 test 0 -eq $? || _lt_function_replace_fail=:
21055
21056 fi
21057
21058 if test x"$lt_shell_append" = xyes; then
21059 sed -e '/^func_append ()$/,/^} # func_append /c\
21060 func_append ()\
21061 {\
21062 eval "${1}+=\\${2}"\
21063 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21064 && mv -f "$cfgfile.tmp" "$cfgfile" \
21065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21066 test 0 -eq $? || _lt_function_replace_fail=:
21067
21068
21069 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21070 func_append_quoted ()\
21071 {\
21072 \ func_quote_for_eval "${2}"\
21073 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21074 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21075 && mv -f "$cfgfile.tmp" "$cfgfile" \
21076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21077 test 0 -eq $? || _lt_function_replace_fail=:
21078
21079
21080 # Save a `func_append' function call where possible by direct use of '+='
21081 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21082 && mv -f "$cfgfile.tmp" "$cfgfile" \
21083 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21084 test 0 -eq $? || _lt_function_replace_fail=:
21085 else
21086 # Save a `func_append' function call even when '+=' is not available
21087 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21088 && mv -f "$cfgfile.tmp" "$cfgfile" \
21089 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21090 test 0 -eq $? || _lt_function_replace_fail=:
21091 fi
21092
21093 if test x"$_lt_function_replace_fail" = x":"; then
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21095 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21096 fi
21097
21098
21099 mv -f "$cfgfile" "$ofile" ||
21100 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21101 chmod +x "$ofile"
21102
21103 ;;
21104
21105 esac
21106 done # for ac_tag
21107
21108
21109 as_fn_exit 0
21110 _ACEOF
21111 ac_clean_files=$ac_clean_files_save
21112
21113 test $ac_write_fail = 0 ||
21114 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21115
21116
21117 # configure is writing to config.log, and then calls config.status.
21118 # config.status does its own redirection, appending to config.log.
21119 # Unfortunately, on DOS this fails, as config.log is still kept open
21120 # by configure, so config.status won't be able to write to it; its
21121 # output is simply discarded. So we exec the FD to /dev/null,
21122 # effectively closing config.log, so it can be properly (re)opened and
21123 # appended to by config.status. When coming back to configure, we
21124 # need to make the FD available again.
21125 if test "$no_create" != yes; then
21126 ac_cs_success=:
21127 ac_config_status_args=
21128 test "$silent" = yes &&
21129 ac_config_status_args="$ac_config_status_args --quiet"
21130 exec 5>/dev/null
21131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21132 exec 5>>config.log
21133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21134 # would make configure fail if this is the last instruction.
21135 $ac_cs_success || as_fn_exit 1
21136 fi
21137 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21139 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21140 fi
21141
21142