configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-ati 19.1.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
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&component=Driver/Radeon
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-ati'
593 PACKAGE_TARNAME='xf86-video-ati'
594 PACKAGE_VERSION='19.1.0'
595 PACKAGE_STRING='xf86-video-ati 19.1.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon'
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 PCIACCESS_LIBS
643 PCIACCESS_CFLAGS
644 GLAMOR_FALSE
645 GLAMOR_TRUE
646 GBM_LIBS
647 GBM_CFLAGS
648 LIBGLAMOR_EGL_LIBS
649 LIBGLAMOR_EGL_CFLAGS
650 LIBGLAMOR_LIBS
651 LIBGLAMOR_CFLAGS
652 LIBGL_LIBS
653 LIBGL_CFLAGS
654 LIBUDEV_FALSE
655 LIBUDEV_TRUE
656 LIBUDEV_LIBS
657 LIBUDEV_CFLAGS
658 configdir
659 HAS_XORG_CONF_DIR_FALSE
660 HAS_XORG_CONF_DIR_TRUE
661 HAVE_XEXTPROTO_71_FALSE
662 HAVE_XEXTPROTO_71_TRUE
663 XEXT_LIBS
664 XEXT_CFLAGS
665 XORG_LIBS
666 XORG_CFLAGS
667 LIBDRM_RADEON_LIBS
668 LIBDRM_RADEON_CFLAGS
669 LIBDRM_LIBS
670 LIBDRM_CFLAGS
671 LT_SYS_LIBRARY_PATH
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 LIBTOOL
690 MAN_SUBSTS
691 XORG_MAN_PAGE
692 ADMIN_MAN_DIR
693 DRIVER_MAN_DIR
694 MISC_MAN_DIR
695 FILE_MAN_DIR
696 LIB_MAN_DIR
697 APP_MAN_DIR
698 ADMIN_MAN_SUFFIX
699 DRIVER_MAN_SUFFIX
700 MISC_MAN_SUFFIX
701 FILE_MAN_SUFFIX
702 LIB_MAN_SUFFIX
703 APP_MAN_SUFFIX
704 SED
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 INSTALL_CMD
714 PKG_CONFIG_LIBDIR
715 PKG_CONFIG_PATH
716 PKG_CONFIG
717 CHANGELOG_CMD
718 STRICT_CFLAGS
719 CWARNFLAGS
720 BASE_CFLAGS
721 EGREP
722 GREP
723 CPP
724 am__fastdepCC_FALSE
725 am__fastdepCC_TRUE
726 CCDEPMODE
727 am__nodep
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 AWK
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 runstatedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL
806 am__quote'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_largefile
812 enable_dependency_tracking
813 enable_selective_werror
814 enable_strict_compilation
815 enable_static
816 enable_shared
817 with_pic
818 enable_fast_install
819 with_aix_soname
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 with_xorg_module_dir
824 with_xorg_conf_dir
825 enable_udev
826 enable_glamor
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 CPP
837 PKG_CONFIG
838 PKG_CONFIG_PATH
839 PKG_CONFIG_LIBDIR
840 LT_SYS_LIBRARY_PATH
841 LIBDRM_CFLAGS
842 LIBDRM_LIBS
843 LIBDRM_RADEON_CFLAGS
844 LIBDRM_RADEON_LIBS
845 XORG_CFLAGS
846 XORG_LIBS
847 XEXT_CFLAGS
848 XEXT_LIBS
849 LIBUDEV_CFLAGS
850 LIBUDEV_LIBS
851 LIBGL_CFLAGS
852 LIBGL_LIBS
853 LIBGLAMOR_CFLAGS
854 LIBGLAMOR_LIBS
855 LIBGLAMOR_EGL_CFLAGS
856 LIBGLAMOR_EGL_LIBS
857 GBM_CFLAGS
858 GBM_LIBS
859 PCIACCESS_CFLAGS
860 PCIACCESS_LIBS'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 runstatedir='${localstatedir}/run'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir runstatedir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures xf86-video-ati 19.1.0 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of xf86-video-ati 19.1.0:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --disable-largefile omit support for large files
1493 --enable-dependency-tracking
1494 do not reject slow dependency extractors
1495 --disable-dependency-tracking
1496 speeds up one-time build
1497 --disable-selective-werror
1498 Turn off selective compiler errors. (default:
1499 enabled)
1500 --enable-strict-compilation
1501 Enable all warnings from compiler and make them
1502 errors (default: disabled)
1503 --enable-static[=PKGS] build static libraries [default=no]
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --disable-udev Disable libudev support [default=auto]
1509 --disable-glamor Disable glamor, a new GL-based acceleration
1510 [default=enabled]
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1516 both]
1517 --with-aix-soname=aix|svr4|both
1518 shared library versioning (aka "SONAME") variant to
1519 provide on AIX, [default=aix].
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1522 compiler's sysroot if not specified).
1523 --with-xorg-module-dir=DIR
1524 Default xorg module directory
1525 [[default=$libdir/xorg/modules]]
1526 --with-xorg-conf-dir=DIR
1527 Default xorg.conf.d directory
1528 [[default=${prefix}/share/X11/xorg.conf.d]]
1529
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CPP C preprocessor
1539 PKG_CONFIG path to pkg-config utility
1540 PKG_CONFIG_PATH
1541 directories to add to pkg-config's search path
1542 PKG_CONFIG_LIBDIR
1543 path overriding pkg-config's built-in search path
1544 LT_SYS_LIBRARY_PATH
1545 User-defined run-time library search path.
1546 LIBDRM_CFLAGS
1547 C compiler flags for LIBDRM, overriding pkg-config
1548 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1549 LIBDRM_RADEON_CFLAGS
1550 C compiler flags for LIBDRM_RADEON, overriding pkg-config
1551 LIBDRM_RADEON_LIBS
1552 linker flags for LIBDRM_RADEON, overriding pkg-config
1553 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1554 XORG_LIBS linker flags for XORG, overriding pkg-config
1555 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1556 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1557 LIBUDEV_CFLAGS
1558 C compiler flags for LIBUDEV, overriding pkg-config
1559 LIBUDEV_LIBS
1560 linker flags for LIBUDEV, overriding pkg-config
1561 LIBGL_CFLAGS
1562 C compiler flags for LIBGL, overriding pkg-config
1563 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1564 LIBGLAMOR_CFLAGS
1565 C compiler flags for LIBGLAMOR, overriding pkg-config
1566 LIBGLAMOR_LIBS
1567 linker flags for LIBGLAMOR, overriding pkg-config
1568 LIBGLAMOR_EGL_CFLAGS
1569 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1570 LIBGLAMOR_EGL_LIBS
1571 linker flags for LIBGLAMOR_EGL, overriding pkg-config
1572 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config
1573 GBM_LIBS linker flags for GBM, overriding pkg-config
1574 PCIACCESS_CFLAGS
1575 C compiler flags for PCIACCESS, overriding pkg-config
1576 PCIACCESS_LIBS
1577 linker flags for PCIACCESS, overriding pkg-config
1578
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1581
1582 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
1583 _ACEOF
1584 ac_status=$?
1585 fi
1586
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" ||
1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592 continue
1593 ac_builddir=.
1594
1595 case "$ac_dir" in
1596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597 *)
1598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599 # A ".." for each directory in $ac_dir_suffix.
1600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601 case $ac_top_builddir_sub in
1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 esac ;;
1605 esac
1606 ac_abs_top_builddir=$ac_pwd
1607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608 # for backward compatibility:
1609 ac_top_builddir=$ac_top_build_prefix
1610
1611 case $srcdir in
1612 .) # We are building in place.
1613 ac_srcdir=.
1614 ac_top_srcdir=$ac_top_builddir_sub
1615 ac_abs_top_srcdir=$ac_pwd ;;
1616 [\\/]* | ?:[\\/]* ) # Absolute name.
1617 ac_srcdir=$srcdir$ac_dir_suffix;
1618 ac_top_srcdir=$srcdir
1619 ac_abs_top_srcdir=$srcdir ;;
1620 *) # Relative name.
1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622 ac_top_srcdir=$ac_top_build_prefix$srcdir
1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624 esac
1625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626
1627 cd "$ac_dir" || { ac_status=$?; continue; }
1628 # Check for guested configure.
1629 if test -f "$ac_srcdir/configure.gnu"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632 elif test -f "$ac_srcdir/configure"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure" --help=recursive
1635 else
1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637 fi || ac_status=$?
1638 cd "$ac_pwd" || { ac_status=$?; break; }
1639 done
1640 fi
1641
1642 test -n "$ac_init_help" && exit $ac_status
1643 if $ac_init_version; then
1644 cat <<\_ACEOF
1645 xf86-video-ati configure 19.1.0
1646 generated by GNU Autoconf 2.69
1647
1648 Copyright (C) 2012 Free Software Foundation, Inc.
1649 This configure script is free software; the Free Software Foundation
1650 gives unlimited permission to copy, distribute and modify it.
1651 _ACEOF
1652 exit
1653 fi
1654
1655 ## ------------------------ ##
1656 ## Autoconf initialization. ##
1657 ## ------------------------ ##
1658
1659 # ac_fn_c_try_compile LINENO
1660 # --------------------------
1661 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_compile ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext
1666 if { { ac_try="$ac_compile"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_compile") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest.$ac_objext; then :
1685 ac_retval=0
1686 else
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691 fi
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_compile
1696
1697 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1698 # ---------------------------------------------
1699 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1700 # accordingly.
1701 ac_fn_c_check_decl ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 as_decl_name=`echo $2|sed 's/ *(.*//'`
1705 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1707 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 $4
1714 int
1715 main ()
1716 {
1717 #ifndef $as_decl_name
1718 #ifdef __cplusplus
1719 (void) $as_decl_use;
1720 #else
1721 (void) $as_decl_name;
1722 #endif
1723 #endif
1724
1725 ;
1726 return 0;
1727 }
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_decl
1742
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_cpp ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_cpp conftest.$ac_ext"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1762 fi
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } > conftest.i && {
1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774 fi
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_cpp
1779
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1784 ac_fn_c_try_run ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=$ac_status
1815 fi
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_run
1821
1822 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists and can be compiled using the include files in
1825 # INCLUDES, setting the cache variable VAR accordingly.
1826 ac_fn_c_check_header_compile ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 eval "$3=yes"
1841 else
1842 eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 fi
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_header_compile
1852
1853 # ac_fn_c_try_link LINENO
1854 # -----------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_link ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
1880 test -x conftest$ac_exeext
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888 fi
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_link
1898
1899 # ac_fn_c_check_func LINENO FUNC VAR
1900 # ----------------------------------
1901 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1902 ac_fn_c_check_func ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1914 #define $2 innocuous_$2
1915
1916 /* System header to define __stub macros and hopefully few prototypes,
1917 which can conflict with char $2 (); below.
1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919 <limits.h> exists even on freestanding compilers. */
1920
1921 #ifdef __STDC__
1922 # include <limits.h>
1923 #else
1924 # include <assert.h>
1925 #endif
1926
1927 #undef $2
1928
1929 /* Override any GCC internal prototype to avoid an error.
1930 Use char because int might match the return type of a GCC
1931 builtin and then its argument prototype would still apply. */
1932 #ifdef __cplusplus
1933 extern "C"
1934 #endif
1935 char $2 ();
1936 /* The GNU C library defines this for functions which it implements
1937 to always fail with ENOSYS. Some functions are actually named
1938 something starting with __ and the normal name is an alias. */
1939 #if defined __stub_$2 || defined __stub___$2
1940 choke me
1941 #endif
1942
1943 int
1944 main ()
1945 {
1946 return $2 ();
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_link "$LINENO"; then :
1952 eval "$3=yes"
1953 else
1954 eval "$3=no"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext \
1957 conftest$ac_exeext conftest.$ac_ext
1958 fi
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_check_func
1965
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_c_check_header_mongrel ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval \${$3+:} false; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1994 else
1995 ac_header_compiler=no
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2000
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2010 else
2011 ac_header_preproc=no
2012 fi
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2016
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 yes:no: )
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 ;;
2025 no:yes:* )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 ( $as_echo "## ---------------------------------------------------------------------------------------------- ##
2037 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon ##
2038 ## ---------------------------------------------------------------------------------------------- ##"
2039 ) | sed "s/^/$as_me: WARNING: /" >&2
2040 ;;
2041 esac
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 eval "$3=\$ac_header_compiler"
2048 fi
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 fi
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_header_mongrel
2056 cat >config.log <<_ACEOF
2057 This file contains any messages produced by compilers while
2058 running configure, to aid debugging if configure makes a mistake.
2059
2060 It was created by xf86-video-ati $as_me 19.1.0, which was
2061 generated by GNU Autoconf 2.69. Invocation command line was
2062
2063 $ $0 $@
2064
2065 _ACEOF
2066 exec 5>>config.log
2067 {
2068 cat <<_ASUNAME
2069 ## --------- ##
2070 ## Platform. ##
2071 ## --------- ##
2072
2073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2078
2079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2080 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2081
2082 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2083 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2085 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2086 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2087 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2088 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2089
2090 _ASUNAME
2091
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 $as_echo "PATH: $as_dir"
2098 done
2099 IFS=$as_save_IFS
2100
2101 } >&5
2102
2103 cat >&5 <<_ACEOF
2104
2105
2106 ## ----------- ##
2107 ## Core tests. ##
2108 ## ----------- ##
2109
2110 _ACEOF
2111
2112
2113 # Keep a trace of the command line.
2114 # Strip out --no-create and --no-recursion so they do not pile up.
2115 # Strip out --silent because we don't want to record it for future runs.
2116 # Also quote any args containing shell meta-characters.
2117 # Make two passes to allow for proper duplicate-argument suppression.
2118 ac_configure_args=
2119 ac_configure_args0=
2120 ac_configure_args1=
2121 ac_must_keep_next=false
2122 for ac_pass in 1 2
2123 do
2124 for ac_arg
2125 do
2126 case $ac_arg in
2127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2129 | -silent | --silent | --silen | --sile | --sil)
2130 continue ;;
2131 *\'*)
2132 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 esac
2134 case $ac_pass in
2135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2136 2)
2137 as_fn_append ac_configure_args1 " '$ac_arg'"
2138 if test $ac_must_keep_next = true; then
2139 ac_must_keep_next=false # Got value, back to normal.
2140 else
2141 case $ac_arg in
2142 *=* | --config-cache | -C | -disable-* | --disable-* \
2143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2145 | -with-* | --with-* | -without-* | --without-* | --x)
2146 case "$ac_configure_args0 " in
2147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2148 esac
2149 ;;
2150 -* ) ac_must_keep_next=true ;;
2151 esac
2152 fi
2153 as_fn_append ac_configure_args " '$ac_arg'"
2154 ;;
2155 esac
2156 done
2157 done
2158 { ac_configure_args0=; unset ac_configure_args0;}
2159 { ac_configure_args1=; unset ac_configure_args1;}
2160
2161 # When interrupted or exit'd, cleanup temporary files, and complete
2162 # config.log. We remove comments because anyway the quotes in there
2163 # would cause problems or look ugly.
2164 # WARNING: Use '\'' to represent an apostrophe within the trap.
2165 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2166 trap 'exit_status=$?
2167 # Save into config.log some information that might help in debugging.
2168 {
2169 echo
2170
2171 $as_echo "## ---------------- ##
2172 ## Cache variables. ##
2173 ## ---------------- ##"
2174 echo
2175 # The following way of writing the cache mishandles newlines in values,
2176 (
2177 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2178 eval ac_val=\$$ac_var
2179 case $ac_val in #(
2180 *${as_nl}*)
2181 case $ac_var in #(
2182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2184 esac
2185 case $ac_var in #(
2186 _ | IFS | as_nl) ;; #(
2187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2188 *) { eval $ac_var=; unset $ac_var;} ;;
2189 esac ;;
2190 esac
2191 done
2192 (set) 2>&1 |
2193 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2194 *${as_nl}ac_space=\ *)
2195 sed -n \
2196 "s/'\''/'\''\\\\'\'''\''/g;
2197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2198 ;; #(
2199 *)
2200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2201 ;;
2202 esac |
2203 sort
2204 )
2205 echo
2206
2207 $as_echo "## ----------------- ##
2208 ## Output variables. ##
2209 ## ----------------- ##"
2210 echo
2211 for ac_var in $ac_subst_vars
2212 do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 esac
2217 $as_echo "$ac_var='\''$ac_val'\''"
2218 done | sort
2219 echo
2220
2221 if test -n "$ac_subst_files"; then
2222 $as_echo "## ------------------- ##
2223 ## File substitutions. ##
2224 ## ------------------- ##"
2225 echo
2226 for ac_var in $ac_subst_files
2227 do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in
2230 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2231 esac
2232 $as_echo "$ac_var='\''$ac_val'\''"
2233 done | sort
2234 echo
2235 fi
2236
2237 if test -s confdefs.h; then
2238 $as_echo "## ----------- ##
2239 ## confdefs.h. ##
2240 ## ----------- ##"
2241 echo
2242 cat confdefs.h
2243 echo
2244 fi
2245 test "$ac_signal" != 0 &&
2246 $as_echo "$as_me: caught signal $ac_signal"
2247 $as_echo "$as_me: exit $exit_status"
2248 } >&5
2249 rm -f core *.core core.conftest.* &&
2250 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2251 exit $exit_status
2252 ' 0
2253 for ac_signal in 1 2 13 15; do
2254 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2255 done
2256 ac_signal=0
2257
2258 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2259 rm -f -r conftest* confdefs.h
2260
2261 $as_echo "/* confdefs.h */" > confdefs.h
2262
2263 # Predefined preprocessor variables.
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_NAME "$PACKAGE_NAME"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_STRING "$PACKAGE_STRING"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_URL "$PACKAGE_URL"
2287 _ACEOF
2288
2289
2290 # Let the site file select an alternate cache file if it wants to.
2291 # Prefer an explicitly selected file to automatically selected ones.
2292 ac_site_file1=NONE
2293 ac_site_file2=NONE
2294 if test -n "$CONFIG_SITE"; then
2295 # We do not want a PATH search for config.site.
2296 case $CONFIG_SITE in #((
2297 -*) ac_site_file1=./$CONFIG_SITE;;
2298 */*) ac_site_file1=$CONFIG_SITE;;
2299 *) ac_site_file1=./$CONFIG_SITE;;
2300 esac
2301 elif test "x$prefix" != xNONE; then
2302 ac_site_file1=$prefix/share/config.site
2303 ac_site_file2=$prefix/etc/config.site
2304 else
2305 ac_site_file1=$ac_default_prefix/share/config.site
2306 ac_site_file2=$ac_default_prefix/etc/config.site
2307 fi
2308 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2309 do
2310 test "x$ac_site_file" = xNONE && continue
2311 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2313 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2314 sed 's/^/| /' "$ac_site_file" >&5
2315 . "$ac_site_file" \
2316 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 as_fn_error $? "failed to load site script $ac_site_file
2319 See \`config.log' for more details" "$LINENO" 5; }
2320 fi
2321 done
2322
2323 if test -r "$cache_file"; then
2324 # Some versions of bash will fail to source /dev/null (special files
2325 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2328 $as_echo "$as_me: loading cache $cache_file" >&6;}
2329 case $cache_file in
2330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331 *) . "./$cache_file";;
2332 esac
2333 fi
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2336 $as_echo "$as_me: creating cache $cache_file" >&6;}
2337 >$cache_file
2338 fi
2339
2340 # Check that the precious variables saved in the cache have kept the same
2341 # value.
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345 eval ac_new_set=\$ac_env_${ac_var}_set
2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347 eval ac_new_val=\$ac_env_${ac_var}_value
2348 case $ac_old_set,$ac_new_set in
2349 set,)
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2353 ,set)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,);;
2358 *)
2359 if test "x$ac_old_val" != "x$ac_new_val"; then
2360 # differences in whitespace do not lead to failure.
2361 ac_old_val_w=`echo x $ac_old_val`
2362 ac_new_val_w=`echo x $ac_new_val`
2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2365 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2366 ac_cache_corrupted=:
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2369 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2370 eval $ac_var=\$ac_old_val
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2373 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2375 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2376 fi;;
2377 esac
2378 # Pass precious variables to config.status.
2379 if test "$ac_new_set" = set; then
2380 case $ac_new_val in
2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 *) ac_arg=$ac_var=$ac_new_val ;;
2383 esac
2384 case " $ac_configure_args " in
2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2387 esac
2388 fi
2389 done
2390 if $ac_cache_corrupted; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2394 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2395 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2396 fi
2397 ## -------------------- ##
2398 ## Main body of script. ##
2399 ## -------------------- ##
2400
2401 ac_ext=c
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406
2407
2408
2409
2410 ac_config_headers="$ac_config_headers config.h"
2411
2412
2413
2414 ac_aux_dir=
2415 for ac_dir in . "$srcdir"/.; do
2416 if test -f "$ac_dir/install-sh"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/install-sh -c"
2419 break
2420 elif test -f "$ac_dir/install.sh"; then
2421 ac_aux_dir=$ac_dir
2422 ac_install_sh="$ac_aux_dir/install.sh -c"
2423 break
2424 elif test -f "$ac_dir/shtool"; then
2425 ac_aux_dir=$ac_dir
2426 ac_install_sh="$ac_aux_dir/shtool install -c"
2427 break
2428 fi
2429 done
2430 if test -z "$ac_aux_dir"; then
2431 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2432 fi
2433
2434 # These three variables are undocumented and unsupported,
2435 # and are intended to be withdrawn in a future Autoconf release.
2436 # They can cause serious problems if a builder's source tree is in a directory
2437 # whose full name contains unusual characters.
2438 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2439 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2440 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2441
2442
2443
2444 # Initialize Automake
2445 am__api_version='1.16'
2446
2447 # Find a good install program. We prefer a C program (faster),
2448 # so one script is as good as another. But avoid the broken or
2449 # incompatible versions:
2450 # SysV /etc/install, /usr/sbin/install
2451 # SunOS /usr/etc/install
2452 # IRIX /sbin/install
2453 # AIX /bin/install
2454 # AmigaOS /C/install, which installs bootblocks on floppy discs
2455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2458 # OS/2's system install, which has a completely different semantic
2459 # ./install, which can be erroneously created by make from ./install.sh.
2460 # Reject install programs that cannot install multiple files.
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2462 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2463 if test -z "$INSTALL"; then
2464 if ${ac_cv_path_install+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 # Account for people who put trailing slashes in PATH elements.
2473 case $as_dir/ in #((
2474 ./ | .// | /[cC]/* | \
2475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2477 /usr/ucb/* ) ;;
2478 *)
2479 # OSF1 and SCO ODT 3.0 have their own names for install.
2480 # Don't use installbsd from OSF since it installs stuff as root
2481 # by default.
2482 for ac_prog in ginstall scoinst install; do
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2485 if test $ac_prog = install &&
2486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # AIX install. It has an incompatible calling convention.
2488 :
2489 elif test $ac_prog = install &&
2490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # program-specific install script used by HP pwplus--don't use.
2492 :
2493 else
2494 rm -rf conftest.one conftest.two conftest.dir
2495 echo one > conftest.one
2496 echo two > conftest.two
2497 mkdir conftest.dir
2498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2499 test -s conftest.one && test -s conftest.two &&
2500 test -s conftest.dir/conftest.one &&
2501 test -s conftest.dir/conftest.two
2502 then
2503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2504 break 3
2505 fi
2506 fi
2507 fi
2508 done
2509 done
2510 ;;
2511 esac
2512
2513 done
2514 IFS=$as_save_IFS
2515
2516 rm -rf conftest.one conftest.two conftest.dir
2517
2518 fi
2519 if test "${ac_cv_path_install+set}" = set; then
2520 INSTALL=$ac_cv_path_install
2521 else
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for INSTALL within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 INSTALL=$ac_install_sh
2527 fi
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2530 $as_echo "$INSTALL" >&6; }
2531
2532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533 # It thinks the first close brace ends the variable substitution.
2534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535
2536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537
2538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2541 $as_echo_n "checking whether build environment is sane... " >&6; }
2542 # Reject unsafe characters in $srcdir or the absolute working directory
2543 # name. Accept space and tab only in the latter.
2544 am_lf='
2545 '
2546 case `pwd` in
2547 *[\\\"\#\$\&\'\`$am_lf]*)
2548 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2549 esac
2550 case $srcdir in
2551 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2552 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2553 esac
2554
2555 # Do 'set' in a subshell so we don't clobber the current shell's
2556 # arguments. Must try -L first in case configure is actually a
2557 # symlink; some systems play weird games with the mod time of symlinks
2558 # (eg FreeBSD returns the mod time of the symlink's containing
2559 # directory).
2560 if (
2561 am_has_slept=no
2562 for am_try in 1 2; do
2563 echo "timestamp, slept: $am_has_slept" > conftest.file
2564 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2565 if test "$*" = "X"; then
2566 # -L didn't work.
2567 set X `ls -t "$srcdir/configure" conftest.file`
2568 fi
2569 if test "$*" != "X $srcdir/configure conftest.file" \
2570 && test "$*" != "X conftest.file $srcdir/configure"; then
2571
2572 # If neither matched, then we have a broken ls. This can happen
2573 # if, for instance, CONFIG_SHELL is bash and it inherits a
2574 # broken ls alias from the environment. This has actually
2575 # happened. Such a system could not be considered "sane".
2576 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2577 alias in your environment" "$LINENO" 5
2578 fi
2579 if test "$2" = conftest.file || test $am_try -eq 2; then
2580 break
2581 fi
2582 # Just in case.
2583 sleep 1
2584 am_has_slept=yes
2585 done
2586 test "$2" = conftest.file
2587 )
2588 then
2589 # Ok.
2590 :
2591 else
2592 as_fn_error $? "newly created file is older than distributed files!
2593 Check your system clock" "$LINENO" 5
2594 fi
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2596 $as_echo "yes" >&6; }
2597 # If we didn't sleep, we still need to ensure time stamps of config.status and
2598 # generated files are strictly newer.
2599 am_sleep_pid=
2600 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2601 ( sleep 1 ) &
2602 am_sleep_pid=$!
2603 fi
2604
2605 rm -f conftest.file
2606
2607 test "$program_prefix" != NONE &&
2608 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2609 # Use a double $ so make ignores it.
2610 test "$program_suffix" != NONE &&
2611 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2612 # Double any \ or $.
2613 # By default was `s,x,x', remove it if useless.
2614 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2615 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2616
2617 # Expand $ac_aux_dir to an absolute path.
2618 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2619
2620 if test x"${MISSING+set}" != xset; then
2621 case $am_aux_dir in
2622 *\ * | *\ *)
2623 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2624 *)
2625 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2626 esac
2627 fi
2628 # Use eval to expand $SHELL
2629 if eval "$MISSING --is-lightweight"; then
2630 am_missing_run="$MISSING "
2631 else
2632 am_missing_run=
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2634 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2635 fi
2636
2637 if test x"${install_sh+set}" != xset; then
2638 case $am_aux_dir in
2639 *\ * | *\ *)
2640 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2641 *)
2642 install_sh="\${SHELL} $am_aux_dir/install-sh"
2643 esac
2644 fi
2645
2646 # Installed binaries are usually stripped using 'strip' when the user
2647 # run "make install-strip". However 'strip' might not be the right
2648 # tool to use in cross-compilation environments, therefore Automake
2649 # will honor the 'STRIP' environment variable to overrule this program.
2650 if test "$cross_compiling" != no; then
2651 if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2653 set dummy ${ac_tool_prefix}strip; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_STRIP+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test -n "$STRIP"; then
2660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 STRIP=$ac_cv_prog_STRIP
2680 if test -n "$STRIP"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2682 $as_echo "$STRIP" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689 fi
2690 if test -z "$ac_cv_prog_STRIP"; then
2691 ac_ct_STRIP=$STRIP
2692 # Extract the first word of "strip", so it can be a program name with args.
2693 set dummy strip; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$ac_ct_STRIP"; then
2700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_ac_ct_STRIP="strip"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2720 if test -n "$ac_ct_STRIP"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2722 $as_echo "$ac_ct_STRIP" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728 if test "x$ac_ct_STRIP" = x; then
2729 STRIP=":"
2730 else
2731 case $cross_compiling:$ac_tool_warned in
2732 yes:)
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2735 ac_tool_warned=yes ;;
2736 esac
2737 STRIP=$ac_ct_STRIP
2738 fi
2739 else
2740 STRIP="$ac_cv_prog_STRIP"
2741 fi
2742
2743 fi
2744 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2747 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2748 if test -z "$MKDIR_P"; then
2749 if ${ac_cv_path_mkdir+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_prog in mkdir gmkdir; do
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2760 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2761 'mkdir (GNU coreutils) '* | \
2762 'mkdir (coreutils) '* | \
2763 'mkdir (fileutils) '4.1*)
2764 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2765 break 3;;
2766 esac
2767 done
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi
2773
2774 test -d ./--version && rmdir ./--version
2775 if test "${ac_cv_path_mkdir+set}" = set; then
2776 MKDIR_P="$ac_cv_path_mkdir -p"
2777 else
2778 # As a last resort, use the slow shell script. Don't cache a
2779 # value for MKDIR_P within a source directory, because that will
2780 # break other packages using the cache if that directory is
2781 # removed, or if the value is a relative name.
2782 MKDIR_P="$ac_install_sh -d"
2783 fi
2784 fi
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2786 $as_echo "$MKDIR_P" >&6; }
2787
2788 for ac_prog in gawk mawk nawk awk
2789 do
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_AWK+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$AWK"; then
2798 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_AWK="$ac_prog"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 AWK=$ac_cv_prog_AWK
2818 if test -n "$AWK"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2820 $as_echo "$AWK" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 test -n "$AWK" && break
2828 done
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2831 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2832 set x ${MAKE-make}
2833 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2834 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 cat >conftest.make <<\_ACEOF
2838 SHELL = /bin/sh
2839 all:
2840 @echo '@@@%%%=$(MAKE)=@@@%%%'
2841 _ACEOF
2842 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2843 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2844 *@@@%%%=?*=@@@%%%*)
2845 eval ac_cv_prog_make_${ac_make}_set=yes;;
2846 *)
2847 eval ac_cv_prog_make_${ac_make}_set=no;;
2848 esac
2849 rm -f conftest.make
2850 fi
2851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854 SET_MAKE=
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 SET_MAKE="MAKE=${MAKE-make}"
2859 fi
2860
2861 rm -rf .tst 2>/dev/null
2862 mkdir .tst 2>/dev/null
2863 if test -d .tst; then
2864 am__leading_dot=.
2865 else
2866 am__leading_dot=_
2867 fi
2868 rmdir .tst 2>/dev/null
2869
2870 # Check whether --enable-silent-rules was given.
2871 if test "${enable_silent_rules+set}" = set; then :
2872 enableval=$enable_silent_rules;
2873 fi
2874
2875 case $enable_silent_rules in # (((
2876 yes) AM_DEFAULT_VERBOSITY=0;;
2877 no) AM_DEFAULT_VERBOSITY=1;;
2878 *) AM_DEFAULT_VERBOSITY=1;;
2879 esac
2880 am_make=${MAKE-make}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2882 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2883 if ${am_cv_make_support_nested_variables+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if $as_echo 'TRUE=$(BAR$(V))
2887 BAR0=false
2888 BAR1=true
2889 V=1
2890 am__doit:
2891 @$(TRUE)
2892 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2893 am_cv_make_support_nested_variables=yes
2894 else
2895 am_cv_make_support_nested_variables=no
2896 fi
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2899 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2900 if test $am_cv_make_support_nested_variables = yes; then
2901 AM_V='$(V)'
2902 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2903 else
2904 AM_V=$AM_DEFAULT_VERBOSITY
2905 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2906 fi
2907 AM_BACKSLASH='\'
2908
2909 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2910 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2911 # is not polluted with repeated "-I."
2912 am__isrc=' -I$(srcdir)'
2913 # test to see if srcdir already configured
2914 if test -f $srcdir/config.status; then
2915 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2916 fi
2917 fi
2918
2919 # test whether we have cygpath
2920 if test -z "$CYGPATH_W"; then
2921 if (cygpath --version) >/dev/null 2>/dev/null; then
2922 CYGPATH_W='cygpath -w'
2923 else
2924 CYGPATH_W=echo
2925 fi
2926 fi
2927
2928
2929 # Define the identity of the package.
2930 PACKAGE='xf86-video-ati'
2931 VERSION='19.1.0'
2932
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE "$PACKAGE"
2936 _ACEOF
2937
2938
2939 cat >>confdefs.h <<_ACEOF
2940 #define VERSION "$VERSION"
2941 _ACEOF
2942
2943 # Some tools Automake needs.
2944
2945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2946
2947
2948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2949
2950
2951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2952
2953
2954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2955
2956
2957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2958
2959 # For better backward compatibility. To be removed once Automake 1.9.x
2960 # dies out for good. For more background, see:
2961 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2962 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2963 mkdir_p='$(MKDIR_P)'
2964
2965 # We need awk for the "check" target (and possibly the TAP driver). The
2966 # system "awk" is bad on some platforms.
2967 # Always define AMTAR for backward compatibility. Yes, it's still used
2968 # in the wild :-( We should find a proper way to deprecate it ...
2969 AMTAR='$${TAR-tar}'
2970
2971
2972 # We'll loop over all known methods to create a tar archive until one works.
2973 _am_tools='gnutar pax cpio none'
2974
2975 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2976
2977
2978
2979
2980
2981
2982 # POSIX will say in a future version that running "rm -f" with no argument
2983 # is OK; and we want to be able to make that assumption in our Makefile
2984 # recipes. So use an aggressive probe to check that the usage we want is
2985 # actually supported "in the wild" to an acceptable degree.
2986 # See automake bug#10828.
2987 # To make any issue more visible, cause the running configure to be aborted
2988 # by default if the 'rm' program in use doesn't match our expectations; the
2989 # user can still override this though.
2990 if rm -f && rm -fr && rm -rf; then : OK; else
2991 cat >&2 <<'END'
2992 Oops!
2993
2994 Your 'rm' program seems unable to run without file operands specified
2995 on the command line, even when the '-f' option is present. This is contrary
2996 to the behaviour of most rm programs out there, and not conforming with
2997 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2998
2999 Please tell bug-automake@gnu.org about your system, including the value
3000 of your $PATH and any error possibly output before this message. This
3001 can help us improve future automake versions.
3002
3003 END
3004 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3005 echo 'Configuration will proceed anyway, since you have set the' >&2
3006 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3007 echo >&2
3008 else
3009 cat >&2 <<'END'
3010 Aborting the configuration process, to ensure you take notice of the issue.
3011
3012 You can download and install GNU coreutils to get an 'rm' implementation
3013 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3014
3015 If you want to complete the configuration process using your problematic
3016 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3017 to "yes", and re-run configure.
3018
3019 END
3020 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3021 fi
3022 fi
3023
3024 DEPDIR="${am__leading_dot}deps"
3025
3026 ac_config_commands="$ac_config_commands depfiles"
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3029 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3030 cat > confinc.mk << 'END'
3031 am__doit:
3032 @echo this is the am__doit target >confinc.out
3033 .PHONY: am__doit
3034 END
3035 am__include="#"
3036 am__quote=
3037 # BSD make does it like this.
3038 echo '.include "confinc.mk" # ignored' > confmf.BSD
3039 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3040 echo 'include confinc.mk # ignored' > confmf.GNU
3041 _am_result=no
3042 for s in GNU BSD; do
3043 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3044 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 case $?:`cat confinc.out 2>/dev/null` in #(
3049 '0:this is the am__doit target') :
3050 case $s in #(
3051 BSD) :
3052 am__include='.include' am__quote='"' ;; #(
3053 *) :
3054 am__include='include' am__quote='' ;;
3055 esac ;; #(
3056 *) :
3057 ;;
3058 esac
3059 if test "$am__include" != "#"; then
3060 _am_result="yes ($s style)"
3061 break
3062 fi
3063 done
3064 rm -f confinc.* confmf.*
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3066 $as_echo "${_am_result}" >&6; }
3067
3068 # Check whether --enable-dependency-tracking was given.
3069 if test "${enable_dependency_tracking+set}" = set; then :
3070 enableval=$enable_dependency_tracking;
3071 fi
3072
3073 if test "x$enable_dependency_tracking" != xno; then
3074 am_depcomp="$ac_aux_dir/depcomp"
3075 AMDEPBACKSLASH='\'
3076 am__nodep='_no'
3077 fi
3078 if test "x$enable_dependency_tracking" != xno; then
3079 AMDEP_TRUE=
3080 AMDEP_FALSE='#'
3081 else
3082 AMDEP_TRUE='#'
3083 AMDEP_FALSE=
3084 fi
3085
3086
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$ac_cv_prog_CC"; then
3132 ac_ct_CC=$CC
3133 # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169 if test "x$ac_ct_CC" = x; then
3170 CC=""
3171 else
3172 case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178 CC=$ac_ct_CC
3179 fi
3180 else
3181 CC="$ac_cv_prog_CC"
3182 fi
3183
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_CC="${ac_tool_prefix}cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 CC=$ac_cv_prog_CC
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222
3223 fi
3224 fi
3225 if test -z "$CC"; then
3226 # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 ac_prog_rejected=no
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245 ac_prog_rejected=yes
3246 continue
3247 fi
3248 ac_cv_prog_CC="cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252 done
3253 done
3254 IFS=$as_save_IFS
3255
3256 if test $ac_prog_rejected = yes; then
3257 # We found a bogon in the path, so make sure we never use it.
3258 set dummy $ac_cv_prog_CC
3259 shift
3260 if test $# != 0; then
3261 # We chose a different compiler from the bogus one.
3262 # However, it has the same basename, so the bogon will be chosen
3263 # first if we set CC to just the basename; use the full file name.
3264 shift
3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3266 fi
3267 fi
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 fi
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in cl.exe
3284 do
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322 test -n "$CC" && break
3323 done
3324 fi
3325 if test -z "$CC"; then
3326 ac_ct_CC=$CC
3327 for ac_prog in cl.exe
3328 do
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366 test -n "$ac_ct_CC" && break
3367 done
3368
3369 if test "x$ac_ct_CC" = x; then
3370 CC=""
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378 CC=$ac_ct_CC
3379 fi
3380 fi
3381
3382 fi
3383
3384
3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details" "$LINENO" 5; }
3389
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 for ac_option in --version -v -V -qversion; do
3395 { { ac_try="$ac_compiler $ac_option >&5"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403 ac_status=$?
3404 if test -s conftest.err; then
3405 sed '10a\
3406 ... rest of stderr output deleted ...
3407 10q' conftest.err >conftest.er1
3408 cat conftest.er1 >&5
3409 fi
3410 rm -f conftest.er1 conftest.err
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 done
3414
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3430 # of exeext.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3432 $as_echo_n "checking whether the C compiler works... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3434
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3437
3438 ac_rmfiles=
3439 for ac_file in $ac_files
3440 do
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444 esac
3445 done
3446 rm -f $ac_rmfiles
3447
3448 if { { ac_try="$ac_link_default"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3463 # Autoconf.
3464 for ac_file in $ac_files ''
3465 do
3466 test -f "$ac_file" || continue
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469 ;;
3470 [ab].out )
3471 # We found the default executable, but exeext='' is most
3472 # certainly right.
3473 break;;
3474 *.* )
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476 then :; else
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478 fi
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3483 # actually working.
3484 break;;
3485 * )
3486 break;;
3487 esac
3488 done
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3490
3491 else
3492 ac_file=''
3493 fi
3494 if test -z "$ac_file"; then :
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error 77 "C compiler cannot create executables
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 ac_exeext=$ac_cv_exeext
3513
3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517 $as_echo_n "checking for suffix of executables... " >&6; }
3518 if { { ac_try="$ac_link"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3531 # work properly (i.e., refer to `conftest.exe'), while it won't with
3532 # `rm'.
3533 for ac_file in conftest.exe conftest conftest.*; do
3534 test -f "$ac_file" || continue
3535 case $ac_file in
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 break;;
3539 * ) break;;
3540 esac
3541 done
3542 else
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 fi
3548 rm -f conftest conftest$ac_cv_exeext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550 $as_echo "$ac_cv_exeext" >&6; }
3551
3552 rm -f conftest.$ac_ext
3553 EXEEXT=$ac_cv_exeext
3554 ac_exeext=$EXEEXT
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <stdio.h>
3558 int
3559 main ()
3560 {
3561 FILE *f = fopen ("conftest.out", "w");
3562 return ferror (f) || fclose (f) != 0;
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files="$ac_clean_files conftest.out"
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 if test "$cross_compiling" != yes; then
3574 { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 if { ac_try='./conftest$ac_cv_exeext'
3586 { { case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_try") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; }; then
3596 cross_compiling=no
3597 else
3598 if test "$cross_compiling" = maybe; then
3599 cross_compiling=yes
3600 else
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot run C compiled programs.
3604 If you meant to cross compile, use \`--host'.
3605 See \`config.log' for more details" "$LINENO" 5; }
3606 fi
3607 fi
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3611
3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if ${ac_cv_objext+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621
3622 int
3623 main ()
3624 {
3625
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.o conftest.obj
3631 if { { ac_try="$ac_compile"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compile") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 for ac_file in conftest.o conftest.obj conftest.*; do
3643 test -f "$ac_file" || continue;
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3647 break;;
3648 esac
3649 done
3650 else
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot compute suffix of object files: cannot compile
3657 See \`config.log' for more details" "$LINENO" 5; }
3658 fi
3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662 $as_echo "$ac_cv_objext" >&6; }
3663 OBJEXT=$ac_cv_objext
3664 ac_objext=$OBJEXT
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676 #ifndef __GNUC__
3677 choke me
3678 #endif
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_compiler_gnu=yes
3686 else
3687 ac_compiler_gnu=no
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3691
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696 GCC=yes
3697 else
3698 GCC=
3699 fi
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3709 ac_cv_prog_cc_g=no
3710 CFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_g=yes
3724 else
3725 CFLAGS=""
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738
3739 else
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3769 CFLAGS="-g -O2"
3770 else
3771 CFLAGS="-g"
3772 fi
3773 else
3774 if test "$GCC" = yes; then
3775 CFLAGS="-O2"
3776 else
3777 CFLAGS=
3778 fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_cv_prog_cc_c89=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <stdarg.h>
3790 #include <stdio.h>
3791 struct stat;
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3796 char **p;
3797 int i;
3798 {
3799 return p[i];
3800 }
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3802 {
3803 char *s;
3804 va_list v;
3805 va_start (v,p);
3806 s = g (p, va_arg (v,int));
3807 va_end (v);
3808 return s;
3809 }
3810
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3822 #define FOO(x) 'x'
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829 int argc;
3830 char **argv;
3831 int
3832 main ()
3833 {
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 do
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851
3852 fi
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3855 x)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3861 *)
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3867
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3883 if ${am_cv_prog_cc_c_o+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 # Make sure it works both with $CC and with simple cc.
3898 # Following AC_PROG_CC_C_O, we do the test twice because some
3899 # compilers refuse to overwrite an existing .o file with -o,
3900 # though they will create one.
3901 am_cv_prog_cc_c_o=yes
3902 for am_i in 1 2; do
3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } \
3908 && test -f conftest2.$ac_objext; then
3909 : OK
3910 else
3911 am_cv_prog_cc_c_o=no
3912 break
3913 fi
3914 done
3915 rm -f core conftest*
3916 unset am_i
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3919 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3920 if test "$am_cv_prog_cc_c_o" != yes; then
3921 # Losing compiler, so override with the script.
3922 # FIXME: It is wrong to rewrite CC.
3923 # But if we don't then we get into trouble of one sort or another.
3924 # A longer-term fix would be to have automake use am__CC in this case,
3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3926 CC="$am_aux_dir/compile $CC"
3927 fi
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934
3935 depcc="$CC" am_compiler_list=
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3938 $as_echo_n "checking dependency style of $depcc... " >&6; }
3939 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3943 # We make a subdir and do the tests there. Otherwise we can end up
3944 # making bogus files that we don't know about and never remove. For
3945 # instance it was reported that on HP-UX the gcc test will end up
3946 # making a dummy file named 'D' -- because '-MD' means "put the output
3947 # in D".
3948 rm -rf conftest.dir
3949 mkdir conftest.dir
3950 # Copy depcomp to subdir because otherwise we won't find it if we're
3951 # using a relative directory.
3952 cp "$am_depcomp" conftest.dir
3953 cd conftest.dir
3954 # We will build objects and dependencies in a subdirectory because
3955 # it helps to detect inapplicable dependency modes. For instance
3956 # both Tru64's cc and ICC support -MD to output dependencies as a
3957 # side effect of compilation, but ICC will put the dependencies in
3958 # the current directory while Tru64 will put them in the object
3959 # directory.
3960 mkdir sub
3961
3962 am_cv_CC_dependencies_compiler_type=none
3963 if test "$am_compiler_list" = ""; then
3964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3965 fi
3966 am__universal=false
3967 case " $depcc " in #(
3968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3969 esac
3970
3971 for depmode in $am_compiler_list; do
3972 # Setup a source with many dependencies, because some compilers
3973 # like to wrap large dependency lists on column 80 (with \), and
3974 # we should not choose a depcomp mode which is confused by this.
3975 #
3976 # We need to recreate these files for each test, as the compiler may
3977 # overwrite some of them when testing with obscure command lines.
3978 # This happens at least with the AIX C compiler.
3979 : > sub/conftest.c
3980 for i in 1 2 3 4 5 6; do
3981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3983 # Solaris 10 /bin/sh.
3984 echo '/* dummy */' > sub/conftst$i.h
3985 done
3986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3987
3988 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3989 # mode. It turns out that the SunPro C++ compiler does not properly
3990 # handle '-M -o', and we need to detect this. Also, some Intel
3991 # versions had trouble with output in subdirs.
3992 am__obj=sub/conftest.${OBJEXT-o}
3993 am__minus_obj="-o $am__obj"
3994 case $depmode in
3995 gcc)
3996 # This depmode causes a compiler race in universal mode.
3997 test "$am__universal" = false || continue
3998 ;;
3999 nosideeffect)
4000 # After this tag, mechanisms are not by side-effect, so they'll
4001 # only be used when explicitly requested.
4002 if test "x$enable_dependency_tracking" = xyes; then
4003 continue
4004 else
4005 break
4006 fi
4007 ;;
4008 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4009 # This compiler won't grok '-c -o', but also, the minuso test has
4010 # not run yet. These depmodes are late enough in the game, and
4011 # so weak that their functioning should not be impacted.
4012 am__obj=conftest.${OBJEXT-o}
4013 am__minus_obj=
4014 ;;
4015 none) break ;;
4016 esac
4017 if depmode=$depmode \
4018 source=sub/conftest.c object=$am__obj \
4019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4021 >/dev/null 2>conftest.err &&
4022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4026 # icc doesn't choke on unknown options, it will just issue warnings
4027 # or remarks (even with -Werror). So we grep stderr for any message
4028 # that says an option was ignored or not supported.
4029 # When given -MP, icc 7.0 and 7.1 complain thusly:
4030 # icc: Command line warning: ignoring option '-M'; no argument required
4031 # The diagnosis changed in icc 8.0:
4032 # icc: Command line remark: option '-MP' not supported
4033 if (grep 'ignoring option' conftest.err ||
4034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4035 am_cv_CC_dependencies_compiler_type=$depmode
4036 break
4037 fi
4038 fi
4039 done
4040
4041 cd ..
4042 rm -rf conftest.dir
4043 else
4044 am_cv_CC_dependencies_compiler_type=none
4045 fi
4046
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4051
4052 if
4053 test "x$enable_dependency_tracking" != xno \
4054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4055 am__fastdepCC_TRUE=
4056 am__fastdepCC_FALSE='#'
4057 else
4058 am__fastdepCC_TRUE='#'
4059 am__fastdepCC_FALSE=
4060 fi
4061
4062
4063
4064 # Check whether --enable-largefile was given.
4065 if test "${enable_largefile+set}" = set; then :
4066 enableval=$enable_largefile;
4067 fi
4068
4069 if test "$enable_largefile" != no; then
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4072 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4073 if ${ac_cv_sys_largefile_CC+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_cv_sys_largefile_CC=no
4077 if test "$GCC" != yes; then
4078 ac_save_CC=$CC
4079 while :; do
4080 # IRIX 6.2 and later do not support large files by default,
4081 # so use the C compiler's -n32 option if that helps.
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <sys/types.h>
4085 /* Check that off_t can represent 2**63 - 1 correctly.
4086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4087 since some C++ compilers masquerading as C compilers
4088 incorrectly reject 9223372036854775807. */
4089 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4091 && LARGE_OFF_T % 2147483647 == 1)
4092 ? 1 : -1];
4093 int
4094 main ()
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 break
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext
4105 CC="$CC -n32"
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_sys_largefile_CC=' -n32'; break
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext
4110 break
4111 done
4112 CC=$ac_save_CC
4113 rm -f conftest.$ac_ext
4114 fi
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4117 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4118 if test "$ac_cv_sys_largefile_CC" != no; then
4119 CC=$CC$ac_cv_sys_largefile_CC
4120 fi
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4123 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4124 if ${ac_cv_sys_file_offset_bits+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 while :; do
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <sys/types.h>
4131 /* Check that off_t can represent 2**63 - 1 correctly.
4132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4133 since some C++ compilers masquerading as C compilers
4134 incorrectly reject 9223372036854775807. */
4135 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4137 && LARGE_OFF_T % 2147483647 == 1)
4138 ? 1 : -1];
4139 int
4140 main ()
4141 {
4142
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_sys_file_offset_bits=no; break
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #define _FILE_OFFSET_BITS 64
4154 #include <sys/types.h>
4155 /* Check that off_t can represent 2**63 - 1 correctly.
4156 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4157 since some C++ compilers masquerading as C compilers
4158 incorrectly reject 9223372036854775807. */
4159 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4161 && LARGE_OFF_T % 2147483647 == 1)
4162 ? 1 : -1];
4163 int
4164 main ()
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_sys_file_offset_bits=64; break
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_cv_sys_file_offset_bits=unknown
4176 break
4177 done
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4180 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4181 case $ac_cv_sys_file_offset_bits in #(
4182 no | unknown) ;;
4183 *)
4184 cat >>confdefs.h <<_ACEOF
4185 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4186 _ACEOF
4187 ;;
4188 esac
4189 rm -rf conftest*
4190 if test $ac_cv_sys_file_offset_bits = unknown; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4192 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4193 if ${ac_cv_sys_large_files+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 while :; do
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <sys/types.h>
4200 /* Check that off_t can represent 2**63 - 1 correctly.
4201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4202 since some C++ compilers masquerading as C compilers
4203 incorrectly reject 9223372036854775807. */
4204 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4206 && LARGE_OFF_T % 2147483647 == 1)
4207 ? 1 : -1];
4208 int
4209 main ()
4210 {
4211
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_sys_large_files=no; break
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #define _LARGE_FILES 1
4223 #include <sys/types.h>
4224 /* Check that off_t can represent 2**63 - 1 correctly.
4225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4226 since some C++ compilers masquerading as C compilers
4227 incorrectly reject 9223372036854775807. */
4228 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4230 && LARGE_OFF_T % 2147483647 == 1)
4231 ? 1 : -1];
4232 int
4233 main ()
4234 {
4235
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_cv_sys_large_files=1; break
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_sys_large_files=unknown
4245 break
4246 done
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4249 $as_echo "$ac_cv_sys_large_files" >&6; }
4250 case $ac_cv_sys_large_files in #(
4251 no | unknown) ;;
4252 *)
4253 cat >>confdefs.h <<_ACEOF
4254 #define _LARGE_FILES $ac_cv_sys_large_files
4255 _ACEOF
4256 ;;
4257 esac
4258 rm -rf conftest*
4259 fi
4260
4261
4262 fi
4263
4264
4265 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4278 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4279 if ${ac_cv_prog_cc_c99+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 ac_cv_prog_cc_c99=no
4283 ac_save_CC=$CC
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <stdarg.h>
4287 #include <stdbool.h>
4288 #include <stdlib.h>
4289 #include <wchar.h>
4290 #include <stdio.h>
4291
4292 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4293 #define debug(...) fprintf (stderr, __VA_ARGS__)
4294 #define showlist(...) puts (#__VA_ARGS__)
4295 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4296 static void
4297 test_varargs_macros (void)
4298 {
4299 int x = 1234;
4300 int y = 5678;
4301 debug ("Flag");
4302 debug ("X = %d\n", x);
4303 showlist (The first, second, and third items.);
4304 report (x>y, "x is %d but y is %d", x, y);
4305 }
4306
4307 // Check long long types.
4308 #define BIG64 18446744073709551615ull
4309 #define BIG32 4294967295ul
4310 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4311 #if !BIG_OK
4312 your preprocessor is broken;
4313 #endif
4314 #if BIG_OK
4315 #else
4316 your preprocessor is broken;
4317 #endif
4318 static long long int bignum = -9223372036854775807LL;
4319 static unsigned long long int ubignum = BIG64;
4320
4321 struct incomplete_array
4322 {
4323 int datasize;
4324 double data[];
4325 };
4326
4327 struct named_init {
4328 int number;
4329 const wchar_t *name;
4330 double average;
4331 };
4332
4333 typedef const char *ccp;
4334
4335 static inline int
4336 test_restrict (ccp restrict text)
4337 {
4338 // See if C++-style comments work.
4339 // Iterate through items via the restricted pointer.
4340 // Also check for declarations in for loops.
4341 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4342 continue;
4343 return 0;
4344 }
4345
4346 // Check varargs and va_copy.
4347 static void
4348 test_varargs (const char *format, ...)
4349 {
4350 va_list args;
4351 va_start (args, format);
4352 va_list args_copy;
4353 va_copy (args_copy, args);
4354
4355 const char *str;
4356 int number;
4357 float fnumber;
4358
4359 while (*format)
4360 {
4361 switch (*format++)
4362 {
4363 case 's': // string
4364 str = va_arg (args_copy, const char *);
4365 break;
4366 case 'd': // int
4367 number = va_arg (args_copy, int);
4368 break;
4369 case 'f': // float
4370 fnumber = va_arg (args_copy, double);
4371 break;
4372 default:
4373 break;
4374 }
4375 }
4376 va_end (args_copy);
4377 va_end (args);
4378 }
4379
4380 int
4381 main ()
4382 {
4383
4384 // Check bool.
4385 _Bool success = false;
4386
4387 // Check restrict.
4388 if (test_restrict ("String literal") == 0)
4389 success = true;
4390 char *restrict newvar = "Another string";
4391
4392 // Check varargs.
4393 test_varargs ("s, d' f .", "string", 65, 34.234);
4394 test_varargs_macros ();
4395
4396 // Check flexible array members.
4397 struct incomplete_array *ia =
4398 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4399 ia->datasize = 10;
4400 for (int i = 0; i < ia->datasize; ++i)
4401 ia->data[i] = i * 1.234;
4402
4403 // Check named initializers.
4404 struct named_init ni = {
4405 .number = 34,
4406 .name = L"Test wide string",
4407 .average = 543.34343,
4408 };
4409
4410 ni.number = 58;
4411
4412 int dynamic_array[ni.number];
4413 dynamic_array[ni.number - 1] = 543;
4414
4415 // work around unused variable warnings
4416 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4417 || dynamic_array[ni.number - 1] != 543);
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4424 do
4425 CC="$ac_save_CC $ac_arg"
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 ac_cv_prog_cc_c99=$ac_arg
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext
4430 test "x$ac_cv_prog_cc_c99" != "xno" && break
4431 done
4432 rm -f conftest.$ac_ext
4433 CC=$ac_save_CC
4434
4435 fi
4436 # AC_CACHE_VAL
4437 case "x$ac_cv_prog_cc_c99" in
4438 x)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4440 $as_echo "none needed" >&6; } ;;
4441 xno)
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4443 $as_echo "unsupported" >&6; } ;;
4444 *)
4445 CC="$CC $ac_cv_prog_cc_c99"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4447 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4448 esac
4449 if test "x$ac_cv_prog_cc_c99" != xno; then :
4450
4451 fi
4452
4453
4454 ac_ext=c
4455 ac_cpp='$CPP $CPPFLAGS'
4456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4460 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4461 # On Suns, sometimes $CPP names a directory.
4462 if test -n "$CPP" && test -d "$CPP"; then
4463 CPP=
4464 fi
4465 if test -z "$CPP"; then
4466 if ${ac_cv_prog_CPP+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 # Double quotes because CPP needs to be expanded
4470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4471 do
4472 ac_preproc_ok=false
4473 for ac_c_preproc_warn_flag in '' yes
4474 do
4475 # Use a header file that comes with gcc, so configuring glibc
4476 # with a fresh cross-compiler works.
4477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4478 # <limits.h> exists even on freestanding compilers.
4479 # On the NeXT, cc -E runs the code through the compiler's parser,
4480 # not just through cpp. "Syntax error" is here to catch this case.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #ifdef __STDC__
4484 # include <limits.h>
4485 #else
4486 # include <assert.h>
4487 #endif
4488 Syntax error
4489 _ACEOF
4490 if ac_fn_c_try_cpp "$LINENO"; then :
4491
4492 else
4493 # Broken: fails on valid input.
4494 continue
4495 fi
4496 rm -f conftest.err conftest.i conftest.$ac_ext
4497
4498 # OK, works on sane cases. Now check whether nonexistent headers
4499 # can be detected and how.
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #include <ac_nonexistent.h>
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4505 # Broken: success on invalid input.
4506 continue
4507 else
4508 # Passes both tests.
4509 ac_preproc_ok=:
4510 break
4511 fi
4512 rm -f conftest.err conftest.i conftest.$ac_ext
4513
4514 done
4515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4516 rm -f conftest.i conftest.err conftest.$ac_ext
4517 if $ac_preproc_ok; then :
4518 break
4519 fi
4520
4521 done
4522 ac_cv_prog_CPP=$CPP
4523
4524 fi
4525 CPP=$ac_cv_prog_CPP
4526 else
4527 ac_cv_prog_CPP=$CPP
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4530 $as_echo "$CPP" >&6; }
4531 ac_preproc_ok=false
4532 for ac_c_preproc_warn_flag in '' yes
4533 do
4534 # Use a header file that comes with gcc, so configuring glibc
4535 # with a fresh cross-compiler works.
4536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537 # <limits.h> exists even on freestanding compilers.
4538 # On the NeXT, cc -E runs the code through the compiler's parser,
4539 # not just through cpp. "Syntax error" is here to catch this case.
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #ifdef __STDC__
4543 # include <limits.h>
4544 #else
4545 # include <assert.h>
4546 #endif
4547 Syntax error
4548 _ACEOF
4549 if ac_fn_c_try_cpp "$LINENO"; then :
4550
4551 else
4552 # Broken: fails on valid input.
4553 continue
4554 fi
4555 rm -f conftest.err conftest.i conftest.$ac_ext
4556
4557 # OK, works on sane cases. Now check whether nonexistent headers
4558 # can be detected and how.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 #include <ac_nonexistent.h>
4562 _ACEOF
4563 if ac_fn_c_try_cpp "$LINENO"; then :
4564 # Broken: success on invalid input.
4565 continue
4566 else
4567 # Passes both tests.
4568 ac_preproc_ok=:
4569 break
4570 fi
4571 rm -f conftest.err conftest.i conftest.$ac_ext
4572
4573 done
4574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4575 rm -f conftest.i conftest.err conftest.$ac_ext
4576 if $ac_preproc_ok; then :
4577
4578 else
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4582 See \`config.log' for more details" "$LINENO" 5; }
4583 fi
4584
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4593 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4594 if ${ac_cv_path_GREP+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -z "$GREP"; then
4598 ac_path_GREP_found=false
4599 # Loop through the user's path and test for each of PROGNAME-LIST
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_prog in grep ggrep; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4608 as_fn_executable_p "$ac_path_GREP" || continue
4609 # Check for GNU ac_path_GREP and select it if it is found.
4610 # Check for GNU $ac_path_GREP
4611 case `"$ac_path_GREP" --version 2>&1` in
4612 *GNU*)
4613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4614 *)
4615 ac_count=0
4616 $as_echo_n 0123456789 >"conftest.in"
4617 while :
4618 do
4619 cat "conftest.in" "conftest.in" >"conftest.tmp"
4620 mv "conftest.tmp" "conftest.in"
4621 cp "conftest.in" "conftest.nl"
4622 $as_echo 'GREP' >> "conftest.nl"
4623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625 as_fn_arith $ac_count + 1 && ac_count=$as_val
4626 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4627 # Best one so far, save it but keep looking for a better one
4628 ac_cv_path_GREP="$ac_path_GREP"
4629 ac_path_GREP_max=$ac_count
4630 fi
4631 # 10*(2^10) chars as input seems more than enough
4632 test $ac_count -gt 10 && break
4633 done
4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 esac
4636
4637 $ac_path_GREP_found && break 3
4638 done
4639 done
4640 done
4641 IFS=$as_save_IFS
4642 if test -z "$ac_cv_path_GREP"; then
4643 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 fi
4645 else
4646 ac_cv_path_GREP=$GREP
4647 fi
4648
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4651 $as_echo "$ac_cv_path_GREP" >&6; }
4652 GREP="$ac_cv_path_GREP"
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4656 $as_echo_n "checking for egrep... " >&6; }
4657 if ${ac_cv_path_EGREP+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4661 then ac_cv_path_EGREP="$GREP -E"
4662 else
4663 if test -z "$EGREP"; then
4664 ac_path_EGREP_found=false
4665 # Loop through the user's path and test for each of PROGNAME-LIST
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_prog in egrep; do
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4674 as_fn_executable_p "$ac_path_EGREP" || continue
4675 # Check for GNU ac_path_EGREP and select it if it is found.
4676 # Check for GNU $ac_path_EGREP
4677 case `"$ac_path_EGREP" --version 2>&1` in
4678 *GNU*)
4679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4680 *)
4681 ac_count=0
4682 $as_echo_n 0123456789 >"conftest.in"
4683 while :
4684 do
4685 cat "conftest.in" "conftest.in" >"conftest.tmp"
4686 mv "conftest.tmp" "conftest.in"
4687 cp "conftest.in" "conftest.nl"
4688 $as_echo 'EGREP' >> "conftest.nl"
4689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4691 as_fn_arith $ac_count + 1 && ac_count=$as_val
4692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4693 # Best one so far, save it but keep looking for a better one
4694 ac_cv_path_EGREP="$ac_path_EGREP"
4695 ac_path_EGREP_max=$ac_count
4696 fi
4697 # 10*(2^10) chars as input seems more than enough
4698 test $ac_count -gt 10 && break
4699 done
4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 esac
4702
4703 $ac_path_EGREP_found && break 3
4704 done
4705 done
4706 done
4707 IFS=$as_save_IFS
4708 if test -z "$ac_cv_path_EGREP"; then
4709 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 fi
4711 else
4712 ac_cv_path_EGREP=$EGREP
4713 fi
4714
4715 fi
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4718 $as_echo "$ac_cv_path_EGREP" >&6; }
4719 EGREP="$ac_cv_path_EGREP"
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4723 $as_echo_n "checking for ANSI C header files... " >&6; }
4724 if ${ac_cv_header_stdc+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #include <stdlib.h>
4730 #include <stdarg.h>
4731 #include <string.h>
4732 #include <float.h>
4733
4734 int
4735 main ()
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_header_stdc=yes
4744 else
4745 ac_cv_header_stdc=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748
4749 if test $ac_cv_header_stdc = yes; then
4750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <string.h>
4754
4755 _ACEOF
4756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4757 $EGREP "memchr" >/dev/null 2>&1; then :
4758
4759 else
4760 ac_cv_header_stdc=no
4761 fi
4762 rm -f conftest*
4763
4764 fi
4765
4766 if test $ac_cv_header_stdc = yes; then
4767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #include <stdlib.h>
4771
4772 _ACEOF
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "free" >/dev/null 2>&1; then :
4775
4776 else
4777 ac_cv_header_stdc=no
4778 fi
4779 rm -f conftest*
4780
4781 fi
4782
4783 if test $ac_cv_header_stdc = yes; then
4784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4785 if test "$cross_compiling" = yes; then :
4786 :
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <ctype.h>
4791 #include <stdlib.h>
4792 #if ((' ' & 0x0FF) == 0x020)
4793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4795 #else
4796 # define ISLOWER(c) \
4797 (('a' <= (c) && (c) <= 'i') \
4798 || ('j' <= (c) && (c) <= 'r') \
4799 || ('s' <= (c) && (c) <= 'z'))
4800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4801 #endif
4802
4803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4804 int
4805 main ()
4806 {
4807 int i;
4808 for (i = 0; i < 256; i++)
4809 if (XOR (islower (i), ISLOWER (i))
4810 || toupper (i) != TOUPPER (i))
4811 return 2;
4812 return 0;
4813 }
4814 _ACEOF
4815 if ac_fn_c_try_run "$LINENO"; then :
4816
4817 else
4818 ac_cv_header_stdc=no
4819 fi
4820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4821 conftest.$ac_objext conftest.beam conftest.$ac_ext
4822 fi
4823
4824 fi
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4827 $as_echo "$ac_cv_header_stdc" >&6; }
4828 if test $ac_cv_header_stdc = yes; then
4829
4830 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4831
4832 fi
4833
4834 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4836 inttypes.h stdint.h unistd.h
4837 do :
4838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4840 "
4841 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4842 cat >>confdefs.h <<_ACEOF
4843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4844 _ACEOF
4845
4846 fi
4847
4848 done
4849
4850
4851
4852
4853
4854
4855 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4856 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4857 CLANGCC="yes"
4858 else
4859 CLANGCC="no"
4860 fi
4861
4862 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4863 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4864 INTELCC="yes"
4865 else
4866 INTELCC="no"
4867 fi
4868
4869 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4870 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4871 SUNCC="yes"
4872 else
4873 SUNCC="no"
4874 fi
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4885 if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 case $PKG_CONFIG in
4894 [\\/]* | ?:[\\/]*)
4895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4896 ;;
4897 *)
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 ;;
4914 esac
4915 fi
4916 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4917 if test -n "$PKG_CONFIG"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4919 $as_echo "$PKG_CONFIG" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925
4926 fi
4927 if test -z "$ac_cv_path_PKG_CONFIG"; then
4928 ac_pt_PKG_CONFIG=$PKG_CONFIG
4929 # Extract the first word of "pkg-config", so it can be a program name with args.
4930 set dummy pkg-config; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 case $ac_pt_PKG_CONFIG in
4937 [\\/]* | ?:[\\/]*)
4938 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4939 ;;
4940 *)
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4951 fi
4952 done
4953 done
4954 IFS=$as_save_IFS
4955
4956 ;;
4957 esac
4958 fi
4959 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4960 if test -n "$ac_pt_PKG_CONFIG"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4962 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968 if test "x$ac_pt_PKG_CONFIG" = x; then
4969 PKG_CONFIG=""
4970 else
4971 case $cross_compiling:$ac_tool_warned in
4972 yes:)
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975 ac_tool_warned=yes ;;
4976 esac
4977 PKG_CONFIG=$ac_pt_PKG_CONFIG
4978 fi
4979 else
4980 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4981 fi
4982
4983 fi
4984 if test -n "$PKG_CONFIG"; then
4985 _pkg_min_version=0.9.0
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4987 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4988 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990 $as_echo "yes" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 PKG_CONFIG=""
4995 fi
4996 fi
4997 # Make sure we can run config.sub.
4998 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4999 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5002 $as_echo_n "checking build system type... " >&6; }
5003 if ${ac_cv_build+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 ac_build_alias=$build_alias
5007 test "x$ac_build_alias" = x &&
5008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5009 test "x$ac_build_alias" = x &&
5010 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5011 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5012 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5013
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5016 $as_echo "$ac_cv_build" >&6; }
5017 case $ac_cv_build in
5018 *-*-*) ;;
5019 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5020 esac
5021 build=$ac_cv_build
5022 ac_save_IFS=$IFS; IFS='-'
5023 set x $ac_cv_build
5024 shift
5025 build_cpu=$1
5026 build_vendor=$2
5027 shift; shift
5028 # Remember, the first character of IFS is used to create $*,
5029 # except with old shells:
5030 build_os=$*
5031 IFS=$ac_save_IFS
5032 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5033
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5036 $as_echo_n "checking host system type... " >&6; }
5037 if ${ac_cv_host+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test "x$host_alias" = x; then
5041 ac_cv_host=$ac_cv_build
5042 else
5043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5044 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5045 fi
5046
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5049 $as_echo "$ac_cv_host" >&6; }
5050 case $ac_cv_host in
5051 *-*-*) ;;
5052 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5053 esac
5054 host=$ac_cv_host
5055 ac_save_IFS=$IFS; IFS='-'
5056 set x $ac_cv_host
5057 shift
5058 host_cpu=$1
5059 host_vendor=$2
5060 shift; shift
5061 # Remember, the first character of IFS is used to create $*,
5062 # except with old shells:
5063 host_os=$*
5064 IFS=$ac_save_IFS
5065 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5066
5067
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5069 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5070 if ${ac_cv_path_SED+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5074 for ac_i in 1 2 3 4 5 6 7; do
5075 ac_script="$ac_script$as_nl$ac_script"
5076 done
5077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5078 { ac_script=; unset ac_script;}
5079 if test -z "$SED"; then
5080 ac_path_SED_found=false
5081 # Loop through the user's path and test for each of PROGNAME-LIST
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_prog in sed gsed; do
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5090 as_fn_executable_p "$ac_path_SED" || continue
5091 # Check for GNU ac_path_SED and select it if it is found.
5092 # Check for GNU $ac_path_SED
5093 case `"$ac_path_SED" --version 2>&1` in
5094 *GNU*)
5095 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5096 *)
5097 ac_count=0
5098 $as_echo_n 0123456789 >"conftest.in"
5099 while :
5100 do
5101 cat "conftest.in" "conftest.in" >"conftest.tmp"
5102 mv "conftest.tmp" "conftest.in"
5103 cp "conftest.in" "conftest.nl"
5104 $as_echo '' >> "conftest.nl"
5105 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5107 as_fn_arith $ac_count + 1 && ac_count=$as_val
5108 if test $ac_count -gt ${ac_path_SED_max-0}; then
5109 # Best one so far, save it but keep looking for a better one
5110 ac_cv_path_SED="$ac_path_SED"
5111 ac_path_SED_max=$ac_count
5112 fi
5113 # 10*(2^10) chars as input seems more than enough
5114 test $ac_count -gt 10 && break
5115 done
5116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5117 esac
5118
5119 $ac_path_SED_found && break 3
5120 done
5121 done
5122 done
5123 IFS=$as_save_IFS
5124 if test -z "$ac_cv_path_SED"; then
5125 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5126 fi
5127 else
5128 ac_cv_path_SED=$SED
5129 fi
5130
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5133 $as_echo "$ac_cv_path_SED" >&6; }
5134 SED="$ac_cv_path_SED"
5135 rm -f conftest.sed
5136
5137
5138
5139
5140
5141
5142 # Check whether --enable-selective-werror was given.
5143 if test "${enable_selective_werror+set}" = set; then :
5144 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5145 else
5146 SELECTIVE_WERROR=yes
5147 fi
5148
5149
5150
5151
5152
5153 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5154 if test "x$SUNCC" = "xyes"; then
5155 BASE_CFLAGS="-v"
5156 else
5157 BASE_CFLAGS=""
5158 fi
5159
5160 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 xorg_testset_save_CFLAGS="$CFLAGS"
5175
5176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 int i;
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188 xorg_cv_cc_flag_unknown_warning_option=yes
5189 else
5190 xorg_cv_cc_flag_unknown_warning_option=no
5191 fi
5192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5197 CFLAGS="$xorg_testset_save_CFLAGS"
5198 fi
5199
5200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203 fi
5204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 int i;
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 xorg_cv_cc_flag_unused_command_line_argument=yes
5216 else
5217 xorg_cv_cc_flag_unused_command_line_argument=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225 fi
5226
5227 found="no"
5228
5229 if test $found = "no" ; then
5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232 fi
5233
5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236 fi
5237
5238 CFLAGS="$CFLAGS -Wall"
5239
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5241 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5242 cacheid=xorg_cv_cc_flag__Wall
5243 if eval \${$cacheid+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 int i;
5249 int
5250 main ()
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_link "$LINENO"; then :
5258 eval $cacheid=yes
5259 else
5260 eval $cacheid=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext \
5263 conftest$ac_exeext conftest.$ac_ext
5264 fi
5265
5266
5267 CFLAGS="$xorg_testset_save_CFLAGS"
5268
5269 eval supported=\$$cacheid
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5271 $as_echo "$supported" >&6; }
5272 if test "$supported" = "yes" ; then
5273 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5274 found="yes"
5275 fi
5276 fi
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 xorg_testset_save_CFLAGS="$CFLAGS"
5293
5294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 int i;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 xorg_cv_cc_flag_unknown_warning_option=yes
5307 else
5308 xorg_cv_cc_flag_unknown_warning_option=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5315 CFLAGS="$xorg_testset_save_CFLAGS"
5316 fi
5317
5318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321 fi
5322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 int i;
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 xorg_cv_cc_flag_unused_command_line_argument=yes
5334 else
5335 xorg_cv_cc_flag_unused_command_line_argument=no
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5342 CFLAGS="$xorg_testset_save_CFLAGS"
5343 fi
5344
5345 found="no"
5346
5347 if test $found = "no" ; then
5348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350 fi
5351
5352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5354 fi
5355
5356 CFLAGS="$CFLAGS -Wpointer-arith"
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5359 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5360 cacheid=xorg_cv_cc_flag__Wpointer_arith
5361 if eval \${$cacheid+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 int i;
5367 int
5368 main ()
5369 {
5370
5371 ;
5372 return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_link "$LINENO"; then :
5376 eval $cacheid=yes
5377 else
5378 eval $cacheid=no
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext \
5381 conftest$ac_exeext conftest.$ac_ext
5382 fi
5383
5384
5385 CFLAGS="$xorg_testset_save_CFLAGS"
5386
5387 eval supported=\$$cacheid
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5389 $as_echo "$supported" >&6; }
5390 if test "$supported" = "yes" ; then
5391 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5392 found="yes"
5393 fi
5394 fi
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 xorg_testset_save_CFLAGS="$CFLAGS"
5411
5412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 int i;
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424 xorg_cv_cc_flag_unknown_warning_option=yes
5425 else
5426 xorg_cv_cc_flag_unknown_warning_option=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5433 CFLAGS="$xorg_testset_save_CFLAGS"
5434 fi
5435
5436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439 fi
5440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 int i;
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 xorg_cv_cc_flag_unused_command_line_argument=yes
5452 else
5453 xorg_cv_cc_flag_unused_command_line_argument=no
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5460 CFLAGS="$xorg_testset_save_CFLAGS"
5461 fi
5462
5463 found="no"
5464
5465 if test $found = "no" ; then
5466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5468 fi
5469
5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5472 fi
5473
5474 CFLAGS="$CFLAGS -Wmissing-declarations"
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5477 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5478 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5479 if eval \${$cacheid+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 int i;
5485 int
5486 main ()
5487 {
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 if ac_fn_c_try_link "$LINENO"; then :
5494 eval $cacheid=yes
5495 else
5496 eval $cacheid=no
5497 fi
5498 rm -f core conftest.err conftest.$ac_objext \
5499 conftest$ac_exeext conftest.$ac_ext
5500 fi
5501
5502
5503 CFLAGS="$xorg_testset_save_CFLAGS"
5504
5505 eval supported=\$$cacheid
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5507 $as_echo "$supported" >&6; }
5508 if test "$supported" = "yes" ; then
5509 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5510 found="yes"
5511 fi
5512 fi
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 xorg_testset_save_CFLAGS="$CFLAGS"
5529
5530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5533 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5534 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 int i;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 xorg_cv_cc_flag_unknown_warning_option=yes
5543 else
5544 xorg_cv_cc_flag_unknown_warning_option=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5549 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5552 fi
5553
5554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557 fi
5558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5560 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5561 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 int i;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 xorg_cv_cc_flag_unused_command_line_argument=yes
5570 else
5571 xorg_cv_cc_flag_unused_command_line_argument=no
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5576 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5578 CFLAGS="$xorg_testset_save_CFLAGS"
5579 fi
5580
5581 found="no"
5582
5583 if test $found = "no" ; then
5584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586 fi
5587
5588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5590 fi
5591
5592 CFLAGS="$CFLAGS -Wformat=2"
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5595 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5596 cacheid=xorg_cv_cc_flag__Wformat_2
5597 if eval \${$cacheid+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 int i;
5603 int
5604 main ()
5605 {
5606
5607 ;
5608 return 0;
5609 }
5610 _ACEOF
5611 if ac_fn_c_try_link "$LINENO"; then :
5612 eval $cacheid=yes
5613 else
5614 eval $cacheid=no
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext \
5617 conftest$ac_exeext conftest.$ac_ext
5618 fi
5619
5620
5621 CFLAGS="$xorg_testset_save_CFLAGS"
5622
5623 eval supported=\$$cacheid
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5625 $as_echo "$supported" >&6; }
5626 if test "$supported" = "yes" ; then
5627 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5628 found="yes"
5629 fi
5630 fi
5631
5632 if test $found = "no" ; then
5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 fi
5636
5637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5639 fi
5640
5641 CFLAGS="$CFLAGS -Wformat"
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5644 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5645 cacheid=xorg_cv_cc_flag__Wformat
5646 if eval \${$cacheid+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 int
5653 main ()
5654 {
5655
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_c_try_link "$LINENO"; then :
5661 eval $cacheid=yes
5662 else
5663 eval $cacheid=no
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667 fi
5668
5669
5670 CFLAGS="$xorg_testset_save_CFLAGS"
5671
5672 eval supported=\$$cacheid
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5674 $as_echo "$supported" >&6; }
5675 if test "$supported" = "yes" ; then
5676 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5677 found="yes"
5678 fi
5679 fi
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697 xorg_testset_save_CFLAGS="$CFLAGS"
5698
5699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int i;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 xorg_cv_cc_flag_unknown_warning_option=yes
5712 else
5713 xorg_cv_cc_flag_unknown_warning_option=no
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5720 CFLAGS="$xorg_testset_save_CFLAGS"
5721 fi
5722
5723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5726 fi
5727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 int i;
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 xorg_cv_cc_flag_unused_command_line_argument=yes
5739 else
5740 xorg_cv_cc_flag_unused_command_line_argument=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5747 CFLAGS="$xorg_testset_save_CFLAGS"
5748 fi
5749
5750 found="no"
5751
5752 if test $found = "no" ; then
5753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755 fi
5756
5757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5759 fi
5760
5761 CFLAGS="$CFLAGS -Wstrict-prototypes"
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5764 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5765 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5766 if eval \${$cacheid+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 int i;
5772 int
5773 main ()
5774 {
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_link "$LINENO"; then :
5781 eval $cacheid=yes
5782 else
5783 eval $cacheid=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext \
5786 conftest$ac_exeext conftest.$ac_ext
5787 fi
5788
5789
5790 CFLAGS="$xorg_testset_save_CFLAGS"
5791
5792 eval supported=\$$cacheid
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5794 $as_echo "$supported" >&6; }
5795 if test "$supported" = "yes" ; then
5796 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5797 found="yes"
5798 fi
5799 fi
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 xorg_testset_save_CFLAGS="$CFLAGS"
5816
5817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 int i;
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"; then :
5829 xorg_cv_cc_flag_unknown_warning_option=yes
5830 else
5831 xorg_cv_cc_flag_unknown_warning_option=no
5832 fi
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5838 CFLAGS="$xorg_testset_save_CFLAGS"
5839 fi
5840
5841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5844 fi
5845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 int i;
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 xorg_cv_cc_flag_unused_command_line_argument=yes
5857 else
5858 xorg_cv_cc_flag_unused_command_line_argument=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5865 CFLAGS="$xorg_testset_save_CFLAGS"
5866 fi
5867
5868 found="no"
5869
5870 if test $found = "no" ; then
5871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873 fi
5874
5875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5877 fi
5878
5879 CFLAGS="$CFLAGS -Wmissing-prototypes"
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5882 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5883 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5884 if eval \${$cacheid+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 int i;
5890 int
5891 main ()
5892 {
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 eval $cacheid=yes
5900 else
5901 eval $cacheid=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905 fi
5906
5907
5908 CFLAGS="$xorg_testset_save_CFLAGS"
5909
5910 eval supported=\$$cacheid
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5912 $as_echo "$supported" >&6; }
5913 if test "$supported" = "yes" ; then
5914 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5915 found="yes"
5916 fi
5917 fi
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933 xorg_testset_save_CFLAGS="$CFLAGS"
5934
5935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 int i;
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947 xorg_cv_cc_flag_unknown_warning_option=yes
5948 else
5949 xorg_cv_cc_flag_unknown_warning_option=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5956 CFLAGS="$xorg_testset_save_CFLAGS"
5957 fi
5958
5959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962 fi
5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 int i;
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 xorg_cv_cc_flag_unused_command_line_argument=yes
5975 else
5976 xorg_cv_cc_flag_unused_command_line_argument=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5983 CFLAGS="$xorg_testset_save_CFLAGS"
5984 fi
5985
5986 found="no"
5987
5988 if test $found = "no" ; then
5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991 fi
5992
5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995 fi
5996
5997 CFLAGS="$CFLAGS -Wnested-externs"
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6000 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
6001 cacheid=xorg_cv_cc_flag__Wnested_externs
6002 if eval \${$cacheid+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007 int i;
6008 int
6009 main ()
6010 {
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_link "$LINENO"; then :
6017 eval $cacheid=yes
6018 else
6019 eval $cacheid=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 fi
6024
6025
6026 CFLAGS="$xorg_testset_save_CFLAGS"
6027
6028 eval supported=\$$cacheid
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6030 $as_echo "$supported" >&6; }
6031 if test "$supported" = "yes" ; then
6032 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6033 found="yes"
6034 fi
6035 fi
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 xorg_testset_save_CFLAGS="$CFLAGS"
6052
6053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 int i;
6063 _ACEOF
6064 if ac_fn_c_try_compile "$LINENO"; then :
6065 xorg_cv_cc_flag_unknown_warning_option=yes
6066 else
6067 xorg_cv_cc_flag_unknown_warning_option=no
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6074 CFLAGS="$xorg_testset_save_CFLAGS"
6075 fi
6076
6077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6080 fi
6081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 int i;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 xorg_cv_cc_flag_unused_command_line_argument=yes
6093 else
6094 xorg_cv_cc_flag_unused_command_line_argument=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6102 fi
6103
6104 found="no"
6105
6106 if test $found = "no" ; then
6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109 fi
6110
6111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113 fi
6114
6115 CFLAGS="$CFLAGS -Wbad-function-cast"
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6118 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6119 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6120 if eval \${$cacheid+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 int i;
6126 int
6127 main ()
6128 {
6129
6130 ;
6131 return 0;
6132 }
6133 _ACEOF
6134 if ac_fn_c_try_link "$LINENO"; then :
6135 eval $cacheid=yes
6136 else
6137 eval $cacheid=no
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext \
6140 conftest$ac_exeext conftest.$ac_ext
6141 fi
6142
6143
6144 CFLAGS="$xorg_testset_save_CFLAGS"
6145
6146 eval supported=\$$cacheid
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6148 $as_echo "$supported" >&6; }
6149 if test "$supported" = "yes" ; then
6150 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6151 found="yes"
6152 fi
6153 fi
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 xorg_testset_save_CFLAGS="$CFLAGS"
6170
6171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 int i;
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"; then :
6183 xorg_cv_cc_flag_unknown_warning_option=yes
6184 else
6185 xorg_cv_cc_flag_unknown_warning_option=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6192 CFLAGS="$xorg_testset_save_CFLAGS"
6193 fi
6194
6195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198 fi
6199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 int i;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 xorg_cv_cc_flag_unused_command_line_argument=yes
6211 else
6212 xorg_cv_cc_flag_unused_command_line_argument=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6220 fi
6221
6222 found="no"
6223
6224 if test $found = "no" ; then
6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 fi
6228
6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231 fi
6232
6233 CFLAGS="$CFLAGS -Wold-style-definition"
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6236 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6237 cacheid=xorg_cv_cc_flag__Wold_style_definition
6238 if eval \${$cacheid+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 int i;
6244 int
6245 main ()
6246 {
6247
6248 ;
6249 return 0;
6250 }
6251 _ACEOF
6252 if ac_fn_c_try_link "$LINENO"; then :
6253 eval $cacheid=yes
6254 else
6255 eval $cacheid=no
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6259 fi
6260
6261
6262 CFLAGS="$xorg_testset_save_CFLAGS"
6263
6264 eval supported=\$$cacheid
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6266 $as_echo "$supported" >&6; }
6267 if test "$supported" = "yes" ; then
6268 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6269 found="yes"
6270 fi
6271 fi
6272
6273 if test $found = "no" ; then
6274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276 fi
6277
6278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280 fi
6281
6282 CFLAGS="$CFLAGS -fd"
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6285 $as_echo_n "checking if $CC supports -fd... " >&6; }
6286 cacheid=xorg_cv_cc_flag__fd
6287 if eval \${$cacheid+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 int i;
6293 int
6294 main ()
6295 {
6296
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_c_try_link "$LINENO"; then :
6302 eval $cacheid=yes
6303 else
6304 eval $cacheid=no
6305 fi
6306 rm -f core conftest.err conftest.$ac_objext \
6307 conftest$ac_exeext conftest.$ac_ext
6308 fi
6309
6310
6311 CFLAGS="$xorg_testset_save_CFLAGS"
6312
6313 eval supported=\$$cacheid
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6315 $as_echo "$supported" >&6; }
6316 if test "$supported" = "yes" ; then
6317 BASE_CFLAGS="$BASE_CFLAGS -fd"
6318 found="yes"
6319 fi
6320 fi
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336 xorg_testset_save_CFLAGS="$CFLAGS"
6337
6338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 int i;
6348 _ACEOF
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 xorg_cv_cc_flag_unknown_warning_option=yes
6351 else
6352 xorg_cv_cc_flag_unknown_warning_option=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6357 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360 fi
6361
6362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365 fi
6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6368 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 int i;
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 xorg_cv_cc_flag_unused_command_line_argument=yes
6378 else
6379 xorg_cv_cc_flag_unused_command_line_argument=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6384 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387 fi
6388
6389 found="no"
6390
6391 if test $found = "no" ; then
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 fi
6395
6396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398 fi
6399
6400 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6403 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6404 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6405 if eval \${$cacheid+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 int i;
6411 int
6412 main ()
6413 {
6414
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_link "$LINENO"; then :
6420 eval $cacheid=yes
6421 else
6422 eval $cacheid=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6426 fi
6427
6428
6429 CFLAGS="$xorg_testset_save_CFLAGS"
6430
6431 eval supported=\$$cacheid
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6433 $as_echo "$supported" >&6; }
6434 if test "$supported" = "yes" ; then
6435 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6436 found="yes"
6437 fi
6438 fi
6439
6440
6441
6442
6443
6444 # This chunk adds additional warnings that could catch undesired effects.
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458 xorg_testset_save_CFLAGS="$CFLAGS"
6459
6460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6463 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6464 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 int i;
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 xorg_cv_cc_flag_unknown_warning_option=yes
6473 else
6474 xorg_cv_cc_flag_unknown_warning_option=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6479 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482 fi
6483
6484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487 fi
6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6491 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 int i;
6497 _ACEOF
6498 if ac_fn_c_try_compile "$LINENO"; then :
6499 xorg_cv_cc_flag_unused_command_line_argument=yes
6500 else
6501 xorg_cv_cc_flag_unused_command_line_argument=no
6502 fi
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6506 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6508 CFLAGS="$xorg_testset_save_CFLAGS"
6509 fi
6510
6511 found="no"
6512
6513 if test $found = "no" ; then
6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516 fi
6517
6518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6520 fi
6521
6522 CFLAGS="$CFLAGS -Wunused"
6523
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6525 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6526 cacheid=xorg_cv_cc_flag__Wunused
6527 if eval \${$cacheid+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 int i;
6533 int
6534 main ()
6535 {
6536
6537 ;
6538 return 0;
6539 }
6540 _ACEOF
6541 if ac_fn_c_try_link "$LINENO"; then :
6542 eval $cacheid=yes
6543 else
6544 eval $cacheid=no
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext \
6547 conftest$ac_exeext conftest.$ac_ext
6548 fi
6549
6550
6551 CFLAGS="$xorg_testset_save_CFLAGS"
6552
6553 eval supported=\$$cacheid
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6555 $as_echo "$supported" >&6; }
6556 if test "$supported" = "yes" ; then
6557 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6558 found="yes"
6559 fi
6560 fi
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576 xorg_testset_save_CFLAGS="$CFLAGS"
6577
6578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 int i;
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590 xorg_cv_cc_flag_unknown_warning_option=yes
6591 else
6592 xorg_cv_cc_flag_unknown_warning_option=no
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6599 CFLAGS="$xorg_testset_save_CFLAGS"
6600 fi
6601
6602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605 fi
6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614 int i;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 xorg_cv_cc_flag_unused_command_line_argument=yes
6618 else
6619 xorg_cv_cc_flag_unused_command_line_argument=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6626 CFLAGS="$xorg_testset_save_CFLAGS"
6627 fi
6628
6629 found="no"
6630
6631 if test $found = "no" ; then
6632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634 fi
6635
6636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6638 fi
6639
6640 CFLAGS="$CFLAGS -Wuninitialized"
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6643 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6644 cacheid=xorg_cv_cc_flag__Wuninitialized
6645 if eval \${$cacheid+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 int i;
6651 int
6652 main ()
6653 {
6654
6655 ;
6656 return 0;
6657 }
6658 _ACEOF
6659 if ac_fn_c_try_link "$LINENO"; then :
6660 eval $cacheid=yes
6661 else
6662 eval $cacheid=no
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext \
6665 conftest$ac_exeext conftest.$ac_ext
6666 fi
6667
6668
6669 CFLAGS="$xorg_testset_save_CFLAGS"
6670
6671 eval supported=\$$cacheid
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6673 $as_echo "$supported" >&6; }
6674 if test "$supported" = "yes" ; then
6675 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6676 found="yes"
6677 fi
6678 fi
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694 xorg_testset_save_CFLAGS="$CFLAGS"
6695
6696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6699 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6700 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 int i;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 xorg_cv_cc_flag_unknown_warning_option=yes
6709 else
6710 xorg_cv_cc_flag_unknown_warning_option=no
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6715 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6717 CFLAGS="$xorg_testset_save_CFLAGS"
6718 fi
6719
6720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6723 fi
6724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6726 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6727 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 int i;
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735 xorg_cv_cc_flag_unused_command_line_argument=yes
6736 else
6737 xorg_cv_cc_flag_unused_command_line_argument=no
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6742 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6744 CFLAGS="$xorg_testset_save_CFLAGS"
6745 fi
6746
6747 found="no"
6748
6749 if test $found = "no" ; then
6750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752 fi
6753
6754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6756 fi
6757
6758 CFLAGS="$CFLAGS -Wshadow"
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6761 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6762 cacheid=xorg_cv_cc_flag__Wshadow
6763 if eval \${$cacheid+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 int i;
6769 int
6770 main ()
6771 {
6772
6773 ;
6774 return 0;
6775 }
6776 _ACEOF
6777 if ac_fn_c_try_link "$LINENO"; then :
6778 eval $cacheid=yes
6779 else
6780 eval $cacheid=no
6781 fi
6782 rm -f core conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6784 fi
6785
6786
6787 CFLAGS="$xorg_testset_save_CFLAGS"
6788
6789 eval supported=\$$cacheid
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6791 $as_echo "$supported" >&6; }
6792 if test "$supported" = "yes" ; then
6793 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6794 found="yes"
6795 fi
6796 fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812 xorg_testset_save_CFLAGS="$CFLAGS"
6813
6814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6817 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6818 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 int i;
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 xorg_cv_cc_flag_unknown_warning_option=yes
6827 else
6828 xorg_cv_cc_flag_unknown_warning_option=no
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6833 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6835 CFLAGS="$xorg_testset_save_CFLAGS"
6836 fi
6837
6838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841 fi
6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6844 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6845 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 int i;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853 xorg_cv_cc_flag_unused_command_line_argument=yes
6854 else
6855 xorg_cv_cc_flag_unused_command_line_argument=no
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 fi
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6860 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6862 CFLAGS="$xorg_testset_save_CFLAGS"
6863 fi
6864
6865 found="no"
6866
6867 if test $found = "no" ; then
6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870 fi
6871
6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6874 fi
6875
6876 CFLAGS="$CFLAGS -Wmissing-noreturn"
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6879 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6880 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6881 if eval \${$cacheid+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 int i;
6887 int
6888 main ()
6889 {
6890
6891 ;
6892 return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_link "$LINENO"; then :
6896 eval $cacheid=yes
6897 else
6898 eval $cacheid=no
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext \
6901 conftest$ac_exeext conftest.$ac_ext
6902 fi
6903
6904
6905 CFLAGS="$xorg_testset_save_CFLAGS"
6906
6907 eval supported=\$$cacheid
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6909 $as_echo "$supported" >&6; }
6910 if test "$supported" = "yes" ; then
6911 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6912 found="yes"
6913 fi
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930 xorg_testset_save_CFLAGS="$CFLAGS"
6931
6932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6936 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 int i;
6942 _ACEOF
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944 xorg_cv_cc_flag_unknown_warning_option=yes
6945 else
6946 xorg_cv_cc_flag_unknown_warning_option=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6953 CFLAGS="$xorg_testset_save_CFLAGS"
6954 fi
6955
6956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6959 fi
6960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968 int i;
6969 _ACEOF
6970 if ac_fn_c_try_compile "$LINENO"; then :
6971 xorg_cv_cc_flag_unused_command_line_argument=yes
6972 else
6973 xorg_cv_cc_flag_unused_command_line_argument=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6980 CFLAGS="$xorg_testset_save_CFLAGS"
6981 fi
6982
6983 found="no"
6984
6985 if test $found = "no" ; then
6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6992 fi
6993
6994 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6995
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6997 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6998 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6999 if eval \${$cacheid+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 int i;
7005 int
7006 main ()
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"; then :
7014 eval $cacheid=yes
7015 else
7016 eval $cacheid=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 fi
7021
7022
7023 CFLAGS="$xorg_testset_save_CFLAGS"
7024
7025 eval supported=\$$cacheid
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7027 $as_echo "$supported" >&6; }
7028 if test "$supported" = "yes" ; then
7029 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7030 found="yes"
7031 fi
7032 fi
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 xorg_testset_save_CFLAGS="$CFLAGS"
7049
7050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 int i;
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 xorg_cv_cc_flag_unknown_warning_option=yes
7063 else
7064 xorg_cv_cc_flag_unknown_warning_option=no
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7071 CFLAGS="$xorg_testset_save_CFLAGS"
7072 fi
7073
7074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7077 fi
7078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 int i;
7087 _ACEOF
7088 if ac_fn_c_try_compile "$LINENO"; then :
7089 xorg_cv_cc_flag_unused_command_line_argument=yes
7090 else
7091 xorg_cv_cc_flag_unused_command_line_argument=no
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7098 CFLAGS="$xorg_testset_save_CFLAGS"
7099 fi
7100
7101 found="no"
7102
7103 if test $found = "no" ; then
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 fi
7107
7108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110 fi
7111
7112 CFLAGS="$CFLAGS -Wredundant-decls"
7113
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7115 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7116 cacheid=xorg_cv_cc_flag__Wredundant_decls
7117 if eval \${$cacheid+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 int i;
7123 int
7124 main ()
7125 {
7126
7127 ;
7128 return 0;
7129 }
7130 _ACEOF
7131 if ac_fn_c_try_link "$LINENO"; then :
7132 eval $cacheid=yes
7133 else
7134 eval $cacheid=no
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext \
7137 conftest$ac_exeext conftest.$ac_ext
7138 fi
7139
7140
7141 CFLAGS="$xorg_testset_save_CFLAGS"
7142
7143 eval supported=\$$cacheid
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7145 $as_echo "$supported" >&6; }
7146 if test "$supported" = "yes" ; then
7147 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7148 found="yes"
7149 fi
7150 fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 xorg_testset_save_CFLAGS="$CFLAGS"
7167
7168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180 xorg_cv_cc_flag_unknown_warning_option=yes
7181 else
7182 xorg_cv_cc_flag_unknown_warning_option=no
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7189 CFLAGS="$xorg_testset_save_CFLAGS"
7190 fi
7191
7192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7195 fi
7196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 int i;
7205 _ACEOF
7206 if ac_fn_c_try_compile "$LINENO"; then :
7207 xorg_cv_cc_flag_unused_command_line_argument=yes
7208 else
7209 xorg_cv_cc_flag_unused_command_line_argument=no
7210 fi
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7216 CFLAGS="$xorg_testset_save_CFLAGS"
7217 fi
7218
7219 found="no"
7220
7221 if test $found = "no" ; then
7222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224 fi
7225
7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7228 fi
7229
7230 CFLAGS="$CFLAGS -Wlogical-op"
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7233 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7234 cacheid=xorg_cv_cc_flag__Wlogical_op
7235 if eval \${$cacheid+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 int i;
7241 int
7242 main ()
7243 {
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 eval $cacheid=yes
7251 else
7252 eval $cacheid=no
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 fi
7257
7258
7259 CFLAGS="$xorg_testset_save_CFLAGS"
7260
7261 eval supported=\$$cacheid
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7263 $as_echo "$supported" >&6; }
7264 if test "$supported" = "yes" ; then
7265 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7266 found="yes"
7267 fi
7268 fi
7269
7270
7271
7272 # These are currently disabled because they are noisy. They will be enabled
7273 # in the future once the codebase is sufficiently modernized to silence
7274 # them. For now, I don't want them to drown out the other warnings.
7275 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7276 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7277 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7278
7279 # Turn some warnings into errors, so we don't accidently get successful builds
7280 # when there are problems that should be fixed.
7281
7282 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 xorg_testset_save_CFLAGS="$CFLAGS"
7297
7298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 int i;
7308 _ACEOF
7309 if ac_fn_c_try_compile "$LINENO"; then :
7310 xorg_cv_cc_flag_unknown_warning_option=yes
7311 else
7312 xorg_cv_cc_flag_unknown_warning_option=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7319 CFLAGS="$xorg_testset_save_CFLAGS"
7320 fi
7321
7322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325 fi
7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 int i;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 xorg_cv_cc_flag_unused_command_line_argument=yes
7338 else
7339 xorg_cv_cc_flag_unused_command_line_argument=no
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 fi
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7346 CFLAGS="$xorg_testset_save_CFLAGS"
7347 fi
7348
7349 found="no"
7350
7351 if test $found = "no" ; then
7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354 fi
7355
7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358 fi
7359
7360 CFLAGS="$CFLAGS -Werror=implicit"
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7363 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7364 cacheid=xorg_cv_cc_flag__Werror_implicit
7365 if eval \${$cacheid+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 int i;
7371 int
7372 main ()
7373 {
7374
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 if ac_fn_c_try_link "$LINENO"; then :
7380 eval $cacheid=yes
7381 else
7382 eval $cacheid=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
7386 fi
7387
7388
7389 CFLAGS="$xorg_testset_save_CFLAGS"
7390
7391 eval supported=\$$cacheid
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7393 $as_echo "$supported" >&6; }
7394 if test "$supported" = "yes" ; then
7395 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7396 found="yes"
7397 fi
7398 fi
7399
7400 if test $found = "no" ; then
7401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403 fi
7404
7405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7407 fi
7408
7409 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7412 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7413 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7414 if eval \${$cacheid+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 int i;
7420 int
7421 main ()
7422 {
7423
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_link "$LINENO"; then :
7429 eval $cacheid=yes
7430 else
7431 eval $cacheid=no
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 fi
7436
7437
7438 CFLAGS="$xorg_testset_save_CFLAGS"
7439
7440 eval supported=\$$cacheid
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7442 $as_echo "$supported" >&6; }
7443 if test "$supported" = "yes" ; then
7444 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7445 found="yes"
7446 fi
7447 fi
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463 xorg_testset_save_CFLAGS="$CFLAGS"
7464
7465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7468 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7469 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 int i;
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 xorg_cv_cc_flag_unknown_warning_option=yes
7478 else
7479 xorg_cv_cc_flag_unknown_warning_option=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7484 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7486 CFLAGS="$xorg_testset_save_CFLAGS"
7487 fi
7488
7489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492 fi
7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7495 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7496 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 int i;
7502 _ACEOF
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504 xorg_cv_cc_flag_unused_command_line_argument=yes
7505 else
7506 xorg_cv_cc_flag_unused_command_line_argument=no
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7511 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7513 CFLAGS="$xorg_testset_save_CFLAGS"
7514 fi
7515
7516 found="no"
7517
7518 if test $found = "no" ; then
7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521 fi
7522
7523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7525 fi
7526
7527 CFLAGS="$CFLAGS -Werror=nonnull"
7528
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7530 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7531 cacheid=xorg_cv_cc_flag__Werror_nonnull
7532 if eval \${$cacheid+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 int i;
7538 int
7539 main ()
7540 {
7541
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_link "$LINENO"; then :
7547 eval $cacheid=yes
7548 else
7549 eval $cacheid=no
7550 fi
7551 rm -f core conftest.err conftest.$ac_objext \
7552 conftest$ac_exeext conftest.$ac_ext
7553 fi
7554
7555
7556 CFLAGS="$xorg_testset_save_CFLAGS"
7557
7558 eval supported=\$$cacheid
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7560 $as_echo "$supported" >&6; }
7561 if test "$supported" = "yes" ; then
7562 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7563 found="yes"
7564 fi
7565 fi
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 xorg_testset_save_CFLAGS="$CFLAGS"
7582
7583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 int i;
7593 _ACEOF
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 xorg_cv_cc_flag_unknown_warning_option=yes
7596 else
7597 xorg_cv_cc_flag_unknown_warning_option=no
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7604 CFLAGS="$xorg_testset_save_CFLAGS"
7605 fi
7606
7607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7610 fi
7611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 int i;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 xorg_cv_cc_flag_unused_command_line_argument=yes
7623 else
7624 xorg_cv_cc_flag_unused_command_line_argument=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7631 CFLAGS="$xorg_testset_save_CFLAGS"
7632 fi
7633
7634 found="no"
7635
7636 if test $found = "no" ; then
7637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639 fi
7640
7641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7643 fi
7644
7645 CFLAGS="$CFLAGS -Werror=init-self"
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7648 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7649 cacheid=xorg_cv_cc_flag__Werror_init_self
7650 if eval \${$cacheid+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 int i;
7656 int
7657 main ()
7658 {
7659
7660 ;
7661 return 0;
7662 }
7663 _ACEOF
7664 if ac_fn_c_try_link "$LINENO"; then :
7665 eval $cacheid=yes
7666 else
7667 eval $cacheid=no
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671 fi
7672
7673
7674 CFLAGS="$xorg_testset_save_CFLAGS"
7675
7676 eval supported=\$$cacheid
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7678 $as_echo "$supported" >&6; }
7679 if test "$supported" = "yes" ; then
7680 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7681 found="yes"
7682 fi
7683 fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 xorg_testset_save_CFLAGS="$CFLAGS"
7700
7701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 int i;
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 xorg_cv_cc_flag_unknown_warning_option=yes
7714 else
7715 xorg_cv_cc_flag_unknown_warning_option=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723 fi
7724
7725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728 fi
7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 int i;
7738 _ACEOF
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740 xorg_cv_cc_flag_unused_command_line_argument=yes
7741 else
7742 xorg_cv_cc_flag_unused_command_line_argument=no
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7749 CFLAGS="$xorg_testset_save_CFLAGS"
7750 fi
7751
7752 found="no"
7753
7754 if test $found = "no" ; then
7755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757 fi
7758
7759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7761 fi
7762
7763 CFLAGS="$CFLAGS -Werror=main"
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7766 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7767 cacheid=xorg_cv_cc_flag__Werror_main
7768 if eval \${$cacheid+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 int
7775 main ()
7776 {
7777
7778 ;
7779 return 0;
7780 }
7781 _ACEOF
7782 if ac_fn_c_try_link "$LINENO"; then :
7783 eval $cacheid=yes
7784 else
7785 eval $cacheid=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7789 fi
7790
7791
7792 CFLAGS="$xorg_testset_save_CFLAGS"
7793
7794 eval supported=\$$cacheid
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7796 $as_echo "$supported" >&6; }
7797 if test "$supported" = "yes" ; then
7798 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7799 found="yes"
7800 fi
7801 fi
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817 xorg_testset_save_CFLAGS="$CFLAGS"
7818
7819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 int i;
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 xorg_cv_cc_flag_unknown_warning_option=yes
7832 else
7833 xorg_cv_cc_flag_unknown_warning_option=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841 fi
7842
7843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 fi
7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 int i;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 xorg_cv_cc_flag_unused_command_line_argument=yes
7859 else
7860 xorg_cv_cc_flag_unused_command_line_argument=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7867 CFLAGS="$xorg_testset_save_CFLAGS"
7868 fi
7869
7870 found="no"
7871
7872 if test $found = "no" ; then
7873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875 fi
7876
7877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879 fi
7880
7881 CFLAGS="$CFLAGS -Werror=missing-braces"
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7884 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7885 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7886 if eval \${$cacheid+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int i;
7892 int
7893 main ()
7894 {
7895
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_link "$LINENO"; then :
7901 eval $cacheid=yes
7902 else
7903 eval $cacheid=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 fi
7908
7909
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911
7912 eval supported=\$$cacheid
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7914 $as_echo "$supported" >&6; }
7915 if test "$supported" = "yes" ; then
7916 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7917 found="yes"
7918 fi
7919 fi
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935 xorg_testset_save_CFLAGS="$CFLAGS"
7936
7937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 int i;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 xorg_cv_cc_flag_unknown_warning_option=yes
7950 else
7951 xorg_cv_cc_flag_unknown_warning_option=no
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7958 CFLAGS="$xorg_testset_save_CFLAGS"
7959 fi
7960
7961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 fi
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int i;
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976 xorg_cv_cc_flag_unused_command_line_argument=yes
7977 else
7978 xorg_cv_cc_flag_unused_command_line_argument=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 found="no"
7989
7990 if test $found = "no" ; then
7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993 fi
7994
7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997 fi
7998
7999 CFLAGS="$CFLAGS -Werror=sequence-point"
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8002 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
8003 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8004 if eval \${$cacheid+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 int i;
8010 int
8011 main ()
8012 {
8013
8014 ;
8015 return 0;
8016 }
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"; then :
8019 eval $cacheid=yes
8020 else
8021 eval $cacheid=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 fi
8026
8027
8028 CFLAGS="$xorg_testset_save_CFLAGS"
8029
8030 eval supported=\$$cacheid
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8032 $as_echo "$supported" >&6; }
8033 if test "$supported" = "yes" ; then
8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8035 found="yes"
8036 fi
8037 fi
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 xorg_testset_save_CFLAGS="$CFLAGS"
8054
8055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 int i;
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 xorg_cv_cc_flag_unknown_warning_option=yes
8068 else
8069 xorg_cv_cc_flag_unknown_warning_option=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8076 CFLAGS="$xorg_testset_save_CFLAGS"
8077 fi
8078
8079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082 fi
8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 xorg_cv_cc_flag_unused_command_line_argument=yes
8095 else
8096 xorg_cv_cc_flag_unused_command_line_argument=no
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8104 fi
8105
8106 found="no"
8107
8108 if test $found = "no" ; then
8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8111 fi
8112
8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8115 fi
8116
8117 CFLAGS="$CFLAGS -Werror=return-type"
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8120 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8121 cacheid=xorg_cv_cc_flag__Werror_return_type
8122 if eval \${$cacheid+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 int i;
8128 int
8129 main ()
8130 {
8131
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_link "$LINENO"; then :
8137 eval $cacheid=yes
8138 else
8139 eval $cacheid=no
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143 fi
8144
8145
8146 CFLAGS="$xorg_testset_save_CFLAGS"
8147
8148 eval supported=\$$cacheid
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8150 $as_echo "$supported" >&6; }
8151 if test "$supported" = "yes" ; then
8152 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8153 found="yes"
8154 fi
8155 fi
8156
8157 if test $found = "no" ; then
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 fi
8161
8162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8164 fi
8165
8166 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8169 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8170 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8171 if eval \${$cacheid+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 int i;
8177 int
8178 main ()
8179 {
8180
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_link "$LINENO"; then :
8186 eval $cacheid=yes
8187 else
8188 eval $cacheid=no
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext \
8191 conftest$ac_exeext conftest.$ac_ext
8192 fi
8193
8194
8195 CFLAGS="$xorg_testset_save_CFLAGS"
8196
8197 eval supported=\$$cacheid
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8199 $as_echo "$supported" >&6; }
8200 if test "$supported" = "yes" ; then
8201 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8202 found="yes"
8203 fi
8204 fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220 xorg_testset_save_CFLAGS="$CFLAGS"
8221
8222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 int i;
8232 _ACEOF
8233 if ac_fn_c_try_compile "$LINENO"; then :
8234 xorg_cv_cc_flag_unknown_warning_option=yes
8235 else
8236 xorg_cv_cc_flag_unknown_warning_option=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8243 CFLAGS="$xorg_testset_save_CFLAGS"
8244 fi
8245
8246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8249 fi
8250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 int i;
8259 _ACEOF
8260 if ac_fn_c_try_compile "$LINENO"; then :
8261 xorg_cv_cc_flag_unused_command_line_argument=yes
8262 else
8263 xorg_cv_cc_flag_unused_command_line_argument=no
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8270 CFLAGS="$xorg_testset_save_CFLAGS"
8271 fi
8272
8273 found="no"
8274
8275 if test $found = "no" ; then
8276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278 fi
8279
8280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8282 fi
8283
8284 CFLAGS="$CFLAGS -Werror=trigraphs"
8285
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8287 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8288 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8289 if eval \${$cacheid+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 int i;
8295 int
8296 main ()
8297 {
8298
8299 ;
8300 return 0;
8301 }
8302 _ACEOF
8303 if ac_fn_c_try_link "$LINENO"; then :
8304 eval $cacheid=yes
8305 else
8306 eval $cacheid=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8310 fi
8311
8312
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314
8315 eval supported=\$$cacheid
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8317 $as_echo "$supported" >&6; }
8318 if test "$supported" = "yes" ; then
8319 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8320 found="yes"
8321 fi
8322 fi
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338 xorg_testset_save_CFLAGS="$CFLAGS"
8339
8340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 int i;
8350 _ACEOF
8351 if ac_fn_c_try_compile "$LINENO"; then :
8352 xorg_cv_cc_flag_unknown_warning_option=yes
8353 else
8354 xorg_cv_cc_flag_unknown_warning_option=no
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8361 CFLAGS="$xorg_testset_save_CFLAGS"
8362 fi
8363
8364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 fi
8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 int i;
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379 xorg_cv_cc_flag_unused_command_line_argument=yes
8380 else
8381 xorg_cv_cc_flag_unused_command_line_argument=no
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8388 CFLAGS="$xorg_testset_save_CFLAGS"
8389 fi
8390
8391 found="no"
8392
8393 if test $found = "no" ; then
8394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 fi
8397
8398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8400 fi
8401
8402 CFLAGS="$CFLAGS -Werror=array-bounds"
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8405 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8406 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8407 if eval \${$cacheid+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 int i;
8413 int
8414 main ()
8415 {
8416
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"; then :
8422 eval $cacheid=yes
8423 else
8424 eval $cacheid=no
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 fi
8429
8430
8431 CFLAGS="$xorg_testset_save_CFLAGS"
8432
8433 eval supported=\$$cacheid
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8435 $as_echo "$supported" >&6; }
8436 if test "$supported" = "yes" ; then
8437 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8438 found="yes"
8439 fi
8440 fi
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456 xorg_testset_save_CFLAGS="$CFLAGS"
8457
8458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8461 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 int i;
8468 _ACEOF
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470 xorg_cv_cc_flag_unknown_warning_option=yes
8471 else
8472 xorg_cv_cc_flag_unknown_warning_option=no
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8477 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8479 CFLAGS="$xorg_testset_save_CFLAGS"
8480 fi
8481
8482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485 fi
8486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8488 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 int i;
8495 _ACEOF
8496 if ac_fn_c_try_compile "$LINENO"; then :
8497 xorg_cv_cc_flag_unused_command_line_argument=yes
8498 else
8499 xorg_cv_cc_flag_unused_command_line_argument=no
8500 fi
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8504 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8506 CFLAGS="$xorg_testset_save_CFLAGS"
8507 fi
8508
8509 found="no"
8510
8511 if test $found = "no" ; then
8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514 fi
8515
8516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8518 fi
8519
8520 CFLAGS="$CFLAGS -Werror=write-strings"
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8523 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8524 cacheid=xorg_cv_cc_flag__Werror_write_strings
8525 if eval \${$cacheid+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 int i;
8531 int
8532 main ()
8533 {
8534
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 if ac_fn_c_try_link "$LINENO"; then :
8540 eval $cacheid=yes
8541 else
8542 eval $cacheid=no
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 fi
8547
8548
8549 CFLAGS="$xorg_testset_save_CFLAGS"
8550
8551 eval supported=\$$cacheid
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8553 $as_echo "$supported" >&6; }
8554 if test "$supported" = "yes" ; then
8555 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8556 found="yes"
8557 fi
8558 fi
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574 xorg_testset_save_CFLAGS="$CFLAGS"
8575
8576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8579 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8580 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 int i;
8586 _ACEOF
8587 if ac_fn_c_try_compile "$LINENO"; then :
8588 xorg_cv_cc_flag_unknown_warning_option=yes
8589 else
8590 xorg_cv_cc_flag_unknown_warning_option=no
8591 fi
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 fi
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8595 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8597 CFLAGS="$xorg_testset_save_CFLAGS"
8598 fi
8599
8600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 fi
8604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8606 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8607 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int i;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 xorg_cv_cc_flag_unused_command_line_argument=yes
8616 else
8617 xorg_cv_cc_flag_unused_command_line_argument=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8622 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8624 CFLAGS="$xorg_testset_save_CFLAGS"
8625 fi
8626
8627 found="no"
8628
8629 if test $found = "no" ; then
8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632 fi
8633
8634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636 fi
8637
8638 CFLAGS="$CFLAGS -Werror=address"
8639
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8641 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8642 cacheid=xorg_cv_cc_flag__Werror_address
8643 if eval \${$cacheid+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648 int i;
8649 int
8650 main ()
8651 {
8652
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 if ac_fn_c_try_link "$LINENO"; then :
8658 eval $cacheid=yes
8659 else
8660 eval $cacheid=no
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8664 fi
8665
8666
8667 CFLAGS="$xorg_testset_save_CFLAGS"
8668
8669 eval supported=\$$cacheid
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8671 $as_echo "$supported" >&6; }
8672 if test "$supported" = "yes" ; then
8673 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8674 found="yes"
8675 fi
8676 fi
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 xorg_testset_save_CFLAGS="$CFLAGS"
8693
8694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8697 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8698 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 int i;
8704 _ACEOF
8705 if ac_fn_c_try_compile "$LINENO"; then :
8706 xorg_cv_cc_flag_unknown_warning_option=yes
8707 else
8708 xorg_cv_cc_flag_unknown_warning_option=no
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8713 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8715 CFLAGS="$xorg_testset_save_CFLAGS"
8716 fi
8717
8718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721 fi
8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8724 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8725 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 int i;
8731 _ACEOF
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 xorg_cv_cc_flag_unused_command_line_argument=yes
8734 else
8735 xorg_cv_cc_flag_unused_command_line_argument=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 found="no"
8746
8747 if test $found = "no" ; then
8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750 fi
8751
8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754 fi
8755
8756 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8757
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8759 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8760 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8761 if eval \${$cacheid+:} false; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8766 int i;
8767 int
8768 main ()
8769 {
8770
8771 ;
8772 return 0;
8773 }
8774 _ACEOF
8775 if ac_fn_c_try_link "$LINENO"; then :
8776 eval $cacheid=yes
8777 else
8778 eval $cacheid=no
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782 fi
8783
8784
8785 CFLAGS="$xorg_testset_save_CFLAGS"
8786
8787 eval supported=\$$cacheid
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8789 $as_echo "$supported" >&6; }
8790 if test "$supported" = "yes" ; then
8791 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8792 found="yes"
8793 fi
8794 fi
8795
8796 if test $found = "no" ; then
8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8799 fi
8800
8801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8803 fi
8804
8805 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8808 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8809 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8810 if eval \${$cacheid+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 int i;
8816 int
8817 main ()
8818 {
8819
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_link "$LINENO"; then :
8825 eval $cacheid=yes
8826 else
8827 eval $cacheid=no
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8831 fi
8832
8833
8834 CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836 eval supported=\$$cacheid
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838 $as_echo "$supported" >&6; }
8839 if test "$supported" = "yes" ; then
8840 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8841 found="yes"
8842 fi
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"; then :
8873 xorg_cv_cc_flag_unknown_warning_option=yes
8874 else
8875 xorg_cv_cc_flag_unknown_warning_option=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883 fi
8884
8885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888 fi
8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897 int i;
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 xorg_cv_cc_flag_unused_command_line_argument=yes
8901 else
8902 xorg_cv_cc_flag_unused_command_line_argument=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909 CFLAGS="$xorg_testset_save_CFLAGS"
8910 fi
8911
8912 found="no"
8913
8914 if test $found = "no" ; then
8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917 fi
8918
8919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 fi
8922
8923 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8924
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8926 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8927 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8928 if eval \${$cacheid+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 int i;
8934 int
8935 main ()
8936 {
8937
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 eval $cacheid=yes
8944 else
8945 eval $cacheid=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 fi
8950
8951
8952 CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954 eval supported=\$$cacheid
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956 $as_echo "$supported" >&6; }
8957 if test "$supported" = "yes" ; then
8958 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8959 found="yes"
8960 fi
8961 fi
8962
8963 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8964 else
8965 { $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
8966 $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;}
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980 xorg_testset_save_CFLAGS="$CFLAGS"
8981
8982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8985 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8986 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 int i;
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 xorg_cv_cc_flag_unknown_warning_option=yes
8995 else
8996 xorg_cv_cc_flag_unknown_warning_option=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9001 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9003 CFLAGS="$xorg_testset_save_CFLAGS"
9004 fi
9005
9006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009 fi
9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9012 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9013 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 int i;
9019 _ACEOF
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021 xorg_cv_cc_flag_unused_command_line_argument=yes
9022 else
9023 xorg_cv_cc_flag_unused_command_line_argument=no
9024 fi
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9028 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9030 CFLAGS="$xorg_testset_save_CFLAGS"
9031 fi
9032
9033 found="no"
9034
9035 if test $found = "no" ; then
9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038 fi
9039
9040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9042 fi
9043
9044 CFLAGS="$CFLAGS -Wimplicit"
9045
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9047 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9048 cacheid=xorg_cv_cc_flag__Wimplicit
9049 if eval \${$cacheid+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 int i;
9055 int
9056 main ()
9057 {
9058
9059 ;
9060 return 0;
9061 }
9062 _ACEOF
9063 if ac_fn_c_try_link "$LINENO"; then :
9064 eval $cacheid=yes
9065 else
9066 eval $cacheid=no
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
9070 fi
9071
9072
9073 CFLAGS="$xorg_testset_save_CFLAGS"
9074
9075 eval supported=\$$cacheid
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9077 $as_echo "$supported" >&6; }
9078 if test "$supported" = "yes" ; then
9079 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9080 found="yes"
9081 fi
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098 xorg_testset_save_CFLAGS="$CFLAGS"
9099
9100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 int i;
9110 _ACEOF
9111 if ac_fn_c_try_compile "$LINENO"; then :
9112 xorg_cv_cc_flag_unknown_warning_option=yes
9113 else
9114 xorg_cv_cc_flag_unknown_warning_option=no
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9121 CFLAGS="$xorg_testset_save_CFLAGS"
9122 fi
9123
9124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9127 fi
9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136 int i;
9137 _ACEOF
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139 xorg_cv_cc_flag_unused_command_line_argument=yes
9140 else
9141 xorg_cv_cc_flag_unused_command_line_argument=no
9142 fi
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 fi
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9148 CFLAGS="$xorg_testset_save_CFLAGS"
9149 fi
9150
9151 found="no"
9152
9153 if test $found = "no" ; then
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 fi
9157
9158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9160 fi
9161
9162 CFLAGS="$CFLAGS -Wnonnull"
9163
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9165 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9166 cacheid=xorg_cv_cc_flag__Wnonnull
9167 if eval \${$cacheid+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172 int i;
9173 int
9174 main ()
9175 {
9176
9177 ;
9178 return 0;
9179 }
9180 _ACEOF
9181 if ac_fn_c_try_link "$LINENO"; then :
9182 eval $cacheid=yes
9183 else
9184 eval $cacheid=no
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext conftest.$ac_ext
9188 fi
9189
9190
9191 CFLAGS="$xorg_testset_save_CFLAGS"
9192
9193 eval supported=\$$cacheid
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9195 $as_echo "$supported" >&6; }
9196 if test "$supported" = "yes" ; then
9197 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9198 found="yes"
9199 fi
9200 fi
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216 xorg_testset_save_CFLAGS="$CFLAGS"
9217
9218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 int i;
9228 _ACEOF
9229 if ac_fn_c_try_compile "$LINENO"; then :
9230 xorg_cv_cc_flag_unknown_warning_option=yes
9231 else
9232 xorg_cv_cc_flag_unknown_warning_option=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240 fi
9241
9242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245 fi
9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 int i;
9255 _ACEOF
9256 if ac_fn_c_try_compile "$LINENO"; then :
9257 xorg_cv_cc_flag_unused_command_line_argument=yes
9258 else
9259 xorg_cv_cc_flag_unused_command_line_argument=no
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9266 CFLAGS="$xorg_testset_save_CFLAGS"
9267 fi
9268
9269 found="no"
9270
9271 if test $found = "no" ; then
9272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274 fi
9275
9276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9278 fi
9279
9280 CFLAGS="$CFLAGS -Winit-self"
9281
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9283 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9284 cacheid=xorg_cv_cc_flag__Winit_self
9285 if eval \${$cacheid+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int i;
9291 int
9292 main ()
9293 {
9294
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 if ac_fn_c_try_link "$LINENO"; then :
9300 eval $cacheid=yes
9301 else
9302 eval $cacheid=no
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 fi
9307
9308
9309 CFLAGS="$xorg_testset_save_CFLAGS"
9310
9311 eval supported=\$$cacheid
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9313 $as_echo "$supported" >&6; }
9314 if test "$supported" = "yes" ; then
9315 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9316 found="yes"
9317 fi
9318 fi
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334 xorg_testset_save_CFLAGS="$CFLAGS"
9335
9336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9339 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9340 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 int i;
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"; then :
9348 xorg_cv_cc_flag_unknown_warning_option=yes
9349 else
9350 xorg_cv_cc_flag_unknown_warning_option=no
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9355 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9357 CFLAGS="$xorg_testset_save_CFLAGS"
9358 fi
9359
9360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9363 fi
9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9366 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9367 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372 int i;
9373 _ACEOF
9374 if ac_fn_c_try_compile "$LINENO"; then :
9375 xorg_cv_cc_flag_unused_command_line_argument=yes
9376 else
9377 xorg_cv_cc_flag_unused_command_line_argument=no
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9382 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9384 CFLAGS="$xorg_testset_save_CFLAGS"
9385 fi
9386
9387 found="no"
9388
9389 if test $found = "no" ; then
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 fi
9393
9394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9396 fi
9397
9398 CFLAGS="$CFLAGS -Wmain"
9399
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9401 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9402 cacheid=xorg_cv_cc_flag__Wmain
9403 if eval \${$cacheid+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 int i;
9409 int
9410 main ()
9411 {
9412
9413 ;
9414 return 0;
9415 }
9416 _ACEOF
9417 if ac_fn_c_try_link "$LINENO"; then :
9418 eval $cacheid=yes
9419 else
9420 eval $cacheid=no
9421 fi
9422 rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
9424 fi
9425
9426
9427 CFLAGS="$xorg_testset_save_CFLAGS"
9428
9429 eval supported=\$$cacheid
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9431 $as_echo "$supported" >&6; }
9432 if test "$supported" = "yes" ; then
9433 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9434 found="yes"
9435 fi
9436 fi
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452 xorg_testset_save_CFLAGS="$CFLAGS"
9453
9454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int i;
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 xorg_cv_cc_flag_unknown_warning_option=yes
9467 else
9468 xorg_cv_cc_flag_unknown_warning_option=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9475 CFLAGS="$xorg_testset_save_CFLAGS"
9476 fi
9477
9478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9481 fi
9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 int i;
9491 _ACEOF
9492 if ac_fn_c_try_compile "$LINENO"; then :
9493 xorg_cv_cc_flag_unused_command_line_argument=yes
9494 else
9495 xorg_cv_cc_flag_unused_command_line_argument=no
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9502 CFLAGS="$xorg_testset_save_CFLAGS"
9503 fi
9504
9505 found="no"
9506
9507 if test $found = "no" ; then
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 fi
9511
9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9514 fi
9515
9516 CFLAGS="$CFLAGS -Wmissing-braces"
9517
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9519 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9520 cacheid=xorg_cv_cc_flag__Wmissing_braces
9521 if eval \${$cacheid+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 int i;
9527 int
9528 main ()
9529 {
9530
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536 eval $cacheid=yes
9537 else
9538 eval $cacheid=no
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 fi
9543
9544
9545 CFLAGS="$xorg_testset_save_CFLAGS"
9546
9547 eval supported=\$$cacheid
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9549 $as_echo "$supported" >&6; }
9550 if test "$supported" = "yes" ; then
9551 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9552 found="yes"
9553 fi
9554 fi
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570 xorg_testset_save_CFLAGS="$CFLAGS"
9571
9572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 xorg_cv_cc_flag_unknown_warning_option=yes
9585 else
9586 xorg_cv_cc_flag_unknown_warning_option=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594 fi
9595
9596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599 fi
9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 int i;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"; then :
9611 xorg_cv_cc_flag_unused_command_line_argument=yes
9612 else
9613 xorg_cv_cc_flag_unused_command_line_argument=no
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616 fi
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9620 CFLAGS="$xorg_testset_save_CFLAGS"
9621 fi
9622
9623 found="no"
9624
9625 if test $found = "no" ; then
9626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628 fi
9629
9630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9632 fi
9633
9634 CFLAGS="$CFLAGS -Wsequence-point"
9635
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9637 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9638 cacheid=xorg_cv_cc_flag__Wsequence_point
9639 if eval \${$cacheid+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9644 int i;
9645 int
9646 main ()
9647 {
9648
9649 ;
9650 return 0;
9651 }
9652 _ACEOF
9653 if ac_fn_c_try_link "$LINENO"; then :
9654 eval $cacheid=yes
9655 else
9656 eval $cacheid=no
9657 fi
9658 rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 fi
9661
9662
9663 CFLAGS="$xorg_testset_save_CFLAGS"
9664
9665 eval supported=\$$cacheid
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9667 $as_echo "$supported" >&6; }
9668 if test "$supported" = "yes" ; then
9669 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9670 found="yes"
9671 fi
9672 fi
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688 xorg_testset_save_CFLAGS="$CFLAGS"
9689
9690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"; then :
9702 xorg_cv_cc_flag_unknown_warning_option=yes
9703 else
9704 xorg_cv_cc_flag_unknown_warning_option=no
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 fi
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9711 CFLAGS="$xorg_testset_save_CFLAGS"
9712 fi
9713
9714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9717 fi
9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 int i;
9727 _ACEOF
9728 if ac_fn_c_try_compile "$LINENO"; then :
9729 xorg_cv_cc_flag_unused_command_line_argument=yes
9730 else
9731 xorg_cv_cc_flag_unused_command_line_argument=no
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9738 CFLAGS="$xorg_testset_save_CFLAGS"
9739 fi
9740
9741 found="no"
9742
9743 if test $found = "no" ; then
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 fi
9747
9748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9750 fi
9751
9752 CFLAGS="$CFLAGS -Wreturn-type"
9753
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9755 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9756 cacheid=xorg_cv_cc_flag__Wreturn_type
9757 if eval \${$cacheid+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 int i;
9763 int
9764 main ()
9765 {
9766
9767 ;
9768 return 0;
9769 }
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772 eval $cacheid=yes
9773 else
9774 eval $cacheid=no
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 fi
9779
9780
9781 CFLAGS="$xorg_testset_save_CFLAGS"
9782
9783 eval supported=\$$cacheid
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9785 $as_echo "$supported" >&6; }
9786 if test "$supported" = "yes" ; then
9787 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9788 found="yes"
9789 fi
9790 fi
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806 xorg_testset_save_CFLAGS="$CFLAGS"
9807
9808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 int i;
9818 _ACEOF
9819 if ac_fn_c_try_compile "$LINENO"; then :
9820 xorg_cv_cc_flag_unknown_warning_option=yes
9821 else
9822 xorg_cv_cc_flag_unknown_warning_option=no
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 fi
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9829 CFLAGS="$xorg_testset_save_CFLAGS"
9830 fi
9831
9832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9835 fi
9836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844 int i;
9845 _ACEOF
9846 if ac_fn_c_try_compile "$LINENO"; then :
9847 xorg_cv_cc_flag_unused_command_line_argument=yes
9848 else
9849 xorg_cv_cc_flag_unused_command_line_argument=no
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 fi
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9856 CFLAGS="$xorg_testset_save_CFLAGS"
9857 fi
9858
9859 found="no"
9860
9861 if test $found = "no" ; then
9862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864 fi
9865
9866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9868 fi
9869
9870 CFLAGS="$CFLAGS -Wtrigraphs"
9871
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9873 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9874 cacheid=xorg_cv_cc_flag__Wtrigraphs
9875 if eval \${$cacheid+:} false; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880 int i;
9881 int
9882 main ()
9883 {
9884
9885 ;
9886 return 0;
9887 }
9888 _ACEOF
9889 if ac_fn_c_try_link "$LINENO"; then :
9890 eval $cacheid=yes
9891 else
9892 eval $cacheid=no
9893 fi
9894 rm -f core conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896 fi
9897
9898
9899 CFLAGS="$xorg_testset_save_CFLAGS"
9900
9901 eval supported=\$$cacheid
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9903 $as_echo "$supported" >&6; }
9904 if test "$supported" = "yes" ; then
9905 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9906 found="yes"
9907 fi
9908 fi
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924 xorg_testset_save_CFLAGS="$CFLAGS"
9925
9926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9929 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9930 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935 int i;
9936 _ACEOF
9937 if ac_fn_c_try_compile "$LINENO"; then :
9938 xorg_cv_cc_flag_unknown_warning_option=yes
9939 else
9940 xorg_cv_cc_flag_unknown_warning_option=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9945 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9947 CFLAGS="$xorg_testset_save_CFLAGS"
9948 fi
9949
9950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953 fi
9954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9956 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9957 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962 int i;
9963 _ACEOF
9964 if ac_fn_c_try_compile "$LINENO"; then :
9965 xorg_cv_cc_flag_unused_command_line_argument=yes
9966 else
9967 xorg_cv_cc_flag_unused_command_line_argument=no
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9972 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9974 CFLAGS="$xorg_testset_save_CFLAGS"
9975 fi
9976
9977 found="no"
9978
9979 if test $found = "no" ; then
9980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982 fi
9983
9984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9986 fi
9987
9988 CFLAGS="$CFLAGS -Warray-bounds"
9989
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9991 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9992 cacheid=xorg_cv_cc_flag__Warray_bounds
9993 if eval \${$cacheid+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 int i;
9999 int
10000 main ()
10001 {
10002
10003 ;
10004 return 0;
10005 }
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008 eval $cacheid=yes
10009 else
10010 eval $cacheid=no
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 fi
10015
10016
10017 CFLAGS="$xorg_testset_save_CFLAGS"
10018
10019 eval supported=\$$cacheid
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10021 $as_echo "$supported" >&6; }
10022 if test "$supported" = "yes" ; then
10023 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10024 found="yes"
10025 fi
10026 fi
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042 xorg_testset_save_CFLAGS="$CFLAGS"
10043
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 int i;
10054 _ACEOF
10055 if ac_fn_c_try_compile "$LINENO"; then :
10056 xorg_cv_cc_flag_unknown_warning_option=yes
10057 else
10058 xorg_cv_cc_flag_unknown_warning_option=no
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10065 CFLAGS="$xorg_testset_save_CFLAGS"
10066 fi
10067
10068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071 fi
10072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 int i;
10081 _ACEOF
10082 if ac_fn_c_try_compile "$LINENO"; then :
10083 xorg_cv_cc_flag_unused_command_line_argument=yes
10084 else
10085 xorg_cv_cc_flag_unused_command_line_argument=no
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 fi
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10092 CFLAGS="$xorg_testset_save_CFLAGS"
10093 fi
10094
10095 found="no"
10096
10097 if test $found = "no" ; then
10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100 fi
10101
10102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10104 fi
10105
10106 CFLAGS="$CFLAGS -Wwrite-strings"
10107
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10109 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10110 cacheid=xorg_cv_cc_flag__Wwrite_strings
10111 if eval \${$cacheid+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 int i;
10117 int
10118 main ()
10119 {
10120
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"; then :
10126 eval $cacheid=yes
10127 else
10128 eval $cacheid=no
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 fi
10133
10134
10135 CFLAGS="$xorg_testset_save_CFLAGS"
10136
10137 eval supported=\$$cacheid
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10139 $as_echo "$supported" >&6; }
10140 if test "$supported" = "yes" ; then
10141 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10142 found="yes"
10143 fi
10144 fi
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160 xorg_testset_save_CFLAGS="$CFLAGS"
10161
10162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 int i;
10172 _ACEOF
10173 if ac_fn_c_try_compile "$LINENO"; then :
10174 xorg_cv_cc_flag_unknown_warning_option=yes
10175 else
10176 xorg_cv_cc_flag_unknown_warning_option=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10183 CFLAGS="$xorg_testset_save_CFLAGS"
10184 fi
10185
10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189 fi
10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 int i;
10199 _ACEOF
10200 if ac_fn_c_try_compile "$LINENO"; then :
10201 xorg_cv_cc_flag_unused_command_line_argument=yes
10202 else
10203 xorg_cv_cc_flag_unused_command_line_argument=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10211 fi
10212
10213 found="no"
10214
10215 if test $found = "no" ; then
10216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218 fi
10219
10220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10222 fi
10223
10224 CFLAGS="$CFLAGS -Waddress"
10225
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10227 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10228 cacheid=xorg_cv_cc_flag__Waddress
10229 if eval \${$cacheid+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 int i;
10235 int
10236 main ()
10237 {
10238
10239 ;
10240 return 0;
10241 }
10242 _ACEOF
10243 if ac_fn_c_try_link "$LINENO"; then :
10244 eval $cacheid=yes
10245 else
10246 eval $cacheid=no
10247 fi
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 fi
10251
10252
10253 CFLAGS="$xorg_testset_save_CFLAGS"
10254
10255 eval supported=\$$cacheid
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10257 $as_echo "$supported" >&6; }
10258 if test "$supported" = "yes" ; then
10259 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10260 found="yes"
10261 fi
10262 fi
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278 xorg_testset_save_CFLAGS="$CFLAGS"
10279
10280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10289 int i;
10290 _ACEOF
10291 if ac_fn_c_try_compile "$LINENO"; then :
10292 xorg_cv_cc_flag_unknown_warning_option=yes
10293 else
10294 xorg_cv_cc_flag_unknown_warning_option=no
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10301 CFLAGS="$xorg_testset_save_CFLAGS"
10302 fi
10303
10304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10307 fi
10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h. */
10316 int i;
10317 _ACEOF
10318 if ac_fn_c_try_compile "$LINENO"; then :
10319 xorg_cv_cc_flag_unused_command_line_argument=yes
10320 else
10321 xorg_cv_cc_flag_unused_command_line_argument=no
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10328 CFLAGS="$xorg_testset_save_CFLAGS"
10329 fi
10330
10331 found="no"
10332
10333 if test $found = "no" ; then
10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10336 fi
10337
10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10340 fi
10341
10342 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10343
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10345 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10346 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10347 if eval \${$cacheid+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 int
10354 main ()
10355 {
10356
10357 ;
10358 return 0;
10359 }
10360 _ACEOF
10361 if ac_fn_c_try_link "$LINENO"; then :
10362 eval $cacheid=yes
10363 else
10364 eval $cacheid=no
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10368 fi
10369
10370
10371 CFLAGS="$xorg_testset_save_CFLAGS"
10372
10373 eval supported=\$$cacheid
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10375 $as_echo "$supported" >&6; }
10376 if test "$supported" = "yes" ; then
10377 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10378 found="yes"
10379 fi
10380 fi
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396 xorg_testset_save_CFLAGS="$CFLAGS"
10397
10398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 int i;
10408 _ACEOF
10409 if ac_fn_c_try_compile "$LINENO"; then :
10410 xorg_cv_cc_flag_unknown_warning_option=yes
10411 else
10412 xorg_cv_cc_flag_unknown_warning_option=no
10413 fi
10414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415 fi
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10419 CFLAGS="$xorg_testset_save_CFLAGS"
10420 fi
10421
10422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10425 fi
10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 int i;
10435 _ACEOF
10436 if ac_fn_c_try_compile "$LINENO"; then :
10437 xorg_cv_cc_flag_unused_command_line_argument=yes
10438 else
10439 xorg_cv_cc_flag_unused_command_line_argument=no
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442 fi
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10446 CFLAGS="$xorg_testset_save_CFLAGS"
10447 fi
10448
10449 found="no"
10450
10451 if test $found = "no" ; then
10452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10454 fi
10455
10456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10458 fi
10459
10460 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10461
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10463 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10464 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10465 if eval \${$cacheid+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470 int i;
10471 int
10472 main ()
10473 {
10474
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 eval $cacheid=yes
10481 else
10482 eval $cacheid=no
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 fi
10487
10488
10489 CFLAGS="$xorg_testset_save_CFLAGS"
10490
10491 eval supported=\$$cacheid
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10493 $as_echo "$supported" >&6; }
10494 if test "$supported" = "yes" ; then
10495 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10496 found="yes"
10497 fi
10498 fi
10499
10500
10501 fi
10502
10503
10504
10505
10506
10507
10508
10509 CWARNFLAGS="$BASE_CFLAGS"
10510 if test "x$GCC" = xyes ; then
10511 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10512 fi
10513
10514
10515
10516
10517
10518
10519
10520
10521 # Check whether --enable-strict-compilation was given.
10522 if test "${enable_strict_compilation+set}" = set; then :
10523 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10524 else
10525 STRICT_COMPILE=no
10526 fi
10527
10528
10529
10530
10531
10532
10533 STRICT_CFLAGS=""
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 xorg_testset_save_CFLAGS="$CFLAGS"
10548
10549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10552 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10553 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 int i;
10559 _ACEOF
10560 if ac_fn_c_try_compile "$LINENO"; then :
10561 xorg_cv_cc_flag_unknown_warning_option=yes
10562 else
10563 xorg_cv_cc_flag_unknown_warning_option=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 fi
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10568 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10570 CFLAGS="$xorg_testset_save_CFLAGS"
10571 fi
10572
10573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10576 fi
10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10579 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10580 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 int i;
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"; then :
10588 xorg_cv_cc_flag_unused_command_line_argument=yes
10589 else
10590 xorg_cv_cc_flag_unused_command_line_argument=no
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10595 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10597 CFLAGS="$xorg_testset_save_CFLAGS"
10598 fi
10599
10600 found="no"
10601
10602 if test $found = "no" ; then
10603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10605 fi
10606
10607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10609 fi
10610
10611 CFLAGS="$CFLAGS -pedantic"
10612
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10614 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10615 cacheid=xorg_cv_cc_flag__pedantic
10616 if eval \${$cacheid+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621 int i;
10622 int
10623 main ()
10624 {
10625
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 if ac_fn_c_try_link "$LINENO"; then :
10631 eval $cacheid=yes
10632 else
10633 eval $cacheid=no
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 fi
10638
10639
10640 CFLAGS="$xorg_testset_save_CFLAGS"
10641
10642 eval supported=\$$cacheid
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10644 $as_echo "$supported" >&6; }
10645 if test "$supported" = "yes" ; then
10646 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10647 found="yes"
10648 fi
10649 fi
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665 xorg_testset_save_CFLAGS="$CFLAGS"
10666
10667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 int i;
10677 _ACEOF
10678 if ac_fn_c_try_compile "$LINENO"; then :
10679 xorg_cv_cc_flag_unknown_warning_option=yes
10680 else
10681 xorg_cv_cc_flag_unknown_warning_option=no
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10688 CFLAGS="$xorg_testset_save_CFLAGS"
10689 fi
10690
10691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10694 fi
10695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703 int i;
10704 _ACEOF
10705 if ac_fn_c_try_compile "$LINENO"; then :
10706 xorg_cv_cc_flag_unused_command_line_argument=yes
10707 else
10708 xorg_cv_cc_flag_unused_command_line_argument=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10715 CFLAGS="$xorg_testset_save_CFLAGS"
10716 fi
10717
10718 found="no"
10719
10720 if test $found = "no" ; then
10721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10723 fi
10724
10725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10727 fi
10728
10729 CFLAGS="$CFLAGS -Werror"
10730
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10732 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10733 cacheid=xorg_cv_cc_flag__Werror
10734 if eval \${$cacheid+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 int i;
10740 int
10741 main ()
10742 {
10743
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 if ac_fn_c_try_link "$LINENO"; then :
10749 eval $cacheid=yes
10750 else
10751 eval $cacheid=no
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 fi
10756
10757
10758 CFLAGS="$xorg_testset_save_CFLAGS"
10759
10760 eval supported=\$$cacheid
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10762 $as_echo "$supported" >&6; }
10763 if test "$supported" = "yes" ; then
10764 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10765 found="yes"
10766 fi
10767 fi
10768
10769 if test $found = "no" ; then
10770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10772 fi
10773
10774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10776 fi
10777
10778 CFLAGS="$CFLAGS -errwarn"
10779
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10781 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10782 cacheid=xorg_cv_cc_flag__errwarn
10783 if eval \${$cacheid+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 int i;
10789 int
10790 main ()
10791 {
10792
10793 ;
10794 return 0;
10795 }
10796 _ACEOF
10797 if ac_fn_c_try_link "$LINENO"; then :
10798 eval $cacheid=yes
10799 else
10800 eval $cacheid=no
10801 fi
10802 rm -f core conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 fi
10805
10806
10807 CFLAGS="$xorg_testset_save_CFLAGS"
10808
10809 eval supported=\$$cacheid
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10811 $as_echo "$supported" >&6; }
10812 if test "$supported" = "yes" ; then
10813 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10814 found="yes"
10815 fi
10816 fi
10817
10818
10819
10820 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10821 # activate it with -Werror, so we add it here explicitly.
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835 xorg_testset_save_CFLAGS="$CFLAGS"
10836
10837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 int i;
10847 _ACEOF
10848 if ac_fn_c_try_compile "$LINENO"; then :
10849 xorg_cv_cc_flag_unknown_warning_option=yes
10850 else
10851 xorg_cv_cc_flag_unknown_warning_option=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 fi
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10858 CFLAGS="$xorg_testset_save_CFLAGS"
10859 fi
10860
10861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10864 fi
10865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10873 int i;
10874 _ACEOF
10875 if ac_fn_c_try_compile "$LINENO"; then :
10876 xorg_cv_cc_flag_unused_command_line_argument=yes
10877 else
10878 xorg_cv_cc_flag_unused_command_line_argument=no
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 fi
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10885 CFLAGS="$xorg_testset_save_CFLAGS"
10886 fi
10887
10888 found="no"
10889
10890 if test $found = "no" ; then
10891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10893 fi
10894
10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10897 fi
10898
10899 CFLAGS="$CFLAGS -Werror=attributes"
10900
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10902 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10903 cacheid=xorg_cv_cc_flag__Werror_attributes
10904 if eval \${$cacheid+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909 int i;
10910 int
10911 main ()
10912 {
10913
10914 ;
10915 return 0;
10916 }
10917 _ACEOF
10918 if ac_fn_c_try_link "$LINENO"; then :
10919 eval $cacheid=yes
10920 else
10921 eval $cacheid=no
10922 fi
10923 rm -f core conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 fi
10926
10927
10928 CFLAGS="$xorg_testset_save_CFLAGS"
10929
10930 eval supported=\$$cacheid
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10932 $as_echo "$supported" >&6; }
10933 if test "$supported" = "yes" ; then
10934 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10935 found="yes"
10936 fi
10937 fi
10938
10939
10940
10941 if test "x$STRICT_COMPILE" = "xyes"; then
10942 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10943 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10944 fi
10945
10946
10947
10948
10949
10950
10951 cat >>confdefs.h <<_ACEOF
10952 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10953 _ACEOF
10954
10955 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10956 if test "x$PVM" = "x"; then
10957 PVM="0"
10958 fi
10959
10960 cat >>confdefs.h <<_ACEOF
10961 #define PACKAGE_VERSION_MINOR $PVM
10962 _ACEOF
10963
10964 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10965 if test "x$PVP" = "x"; then
10966 PVP="0"
10967 fi
10968
10969 cat >>confdefs.h <<_ACEOF
10970 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10971 _ACEOF
10972
10973
10974
10975 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10976 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10977 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10978 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10979
10980
10981
10982
10983 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10984 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10985 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10986 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10987 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10988
10989
10990
10991
10992
10993
10994 if test x$APP_MAN_SUFFIX = x ; then
10995 APP_MAN_SUFFIX=1
10996 fi
10997 if test x$APP_MAN_DIR = x ; then
10998 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10999 fi
11000
11001 if test x$LIB_MAN_SUFFIX = x ; then
11002 LIB_MAN_SUFFIX=3
11003 fi
11004 if test x$LIB_MAN_DIR = x ; then
11005 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11006 fi
11007
11008 if test x$FILE_MAN_SUFFIX = x ; then
11009 case $host_os in
11010 solaris*) FILE_MAN_SUFFIX=4 ;;
11011 *) FILE_MAN_SUFFIX=5 ;;
11012 esac
11013 fi
11014 if test x$FILE_MAN_DIR = x ; then
11015 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11016 fi
11017
11018 if test x$MISC_MAN_SUFFIX = x ; then
11019 case $host_os in
11020 solaris*) MISC_MAN_SUFFIX=5 ;;
11021 *) MISC_MAN_SUFFIX=7 ;;
11022 esac
11023 fi
11024 if test x$MISC_MAN_DIR = x ; then
11025 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11026 fi
11027
11028 if test x$DRIVER_MAN_SUFFIX = x ; then
11029 case $host_os in
11030 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11031 *) DRIVER_MAN_SUFFIX=4 ;;
11032 esac
11033 fi
11034 if test x$DRIVER_MAN_DIR = x ; then
11035 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11036 fi
11037
11038 if test x$ADMIN_MAN_SUFFIX = x ; then
11039 case $host_os in
11040 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11041 *) ADMIN_MAN_SUFFIX=8 ;;
11042 esac
11043 fi
11044 if test x$ADMIN_MAN_DIR = x ; then
11045 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11046 fi
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 XORG_MAN_PAGE="X Version 11"
11063
11064 MAN_SUBSTS="\
11065 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11066 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11067 -e 's|__xservername__|Xorg|g' \
11068 -e 's|__xconfigfile__|xorg.conf|g' \
11069 -e 's|__projectroot__|\$(prefix)|g' \
11070 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11071 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11072 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11073 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11074 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11075 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11076 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11077
11078
11079
11080 # Check whether --enable-silent-rules was given.
11081 if test "${enable_silent_rules+set}" = set; then :
11082 enableval=$enable_silent_rules;
11083 fi
11084
11085 case $enable_silent_rules in # (((
11086 yes) AM_DEFAULT_VERBOSITY=0;;
11087 no) AM_DEFAULT_VERBOSITY=1;;
11088 *) AM_DEFAULT_VERBOSITY=0;;
11089 esac
11090 am_make=${MAKE-make}
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11092 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11093 if ${am_cv_make_support_nested_variables+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 if $as_echo 'TRUE=$(BAR$(V))
11097 BAR0=false
11098 BAR1=true
11099 V=1
11100 am__doit:
11101 @$(TRUE)
11102 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11103 am_cv_make_support_nested_variables=yes
11104 else
11105 am_cv_make_support_nested_variables=no
11106 fi
11107 fi
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11109 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11110 if test $am_cv_make_support_nested_variables = yes; then
11111 AM_V='$(V)'
11112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11113 else
11114 AM_V=$AM_DEFAULT_VERBOSITY
11115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11116 fi
11117 AM_BACKSLASH='\'
11118
11119
11120
11121 # Initialize libtool
11122 # Check whether --enable-static was given.
11123 if test "${enable_static+set}" = set; then :
11124 enableval=$enable_static; p=${PACKAGE-default}
11125 case $enableval in
11126 yes) enable_static=yes ;;
11127 no) enable_static=no ;;
11128 *)
11129 enable_static=no
11130 # Look at the argument we got. We use all the common list separators.
11131 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11132 for pkg in $enableval; do
11133 IFS=$lt_save_ifs
11134 if test "X$pkg" = "X$p"; then
11135 enable_static=yes
11136 fi
11137 done
11138 IFS=$lt_save_ifs
11139 ;;
11140 esac
11141 else
11142 enable_static=no
11143 fi
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 case `pwd` in
11154 *\ * | *\ *)
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11156 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11157 esac
11158
11159
11160
11161 macro_version='2.4.6.40-6ca5'
11162 macro_revision='2.4.6.40'
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176 ltmain=$ac_aux_dir/ltmain.sh
11177
11178 # Backslashify metacharacters that are still active within
11179 # double-quoted strings.
11180 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11181
11182 # Same as above, but do not quote variable references.
11183 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11184
11185 # Sed substitution to delay expansion of an escaped shell variable in a
11186 # double_quote_subst'ed string.
11187 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11188
11189 # Sed substitution to delay expansion of an escaped single quote.
11190 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11191
11192 # Sed substitution to avoid accidental globbing in evaled expressions
11193 no_glob_subst='s/\*/\\\*/g'
11194
11195 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11198
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11200 $as_echo_n "checking how to print strings... " >&6; }
11201 # Test print first, because it will be a builtin if present.
11202 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11203 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11204 ECHO='print -r --'
11205 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11206 ECHO='printf %s\n'
11207 else
11208 # Use this function as a fallback that always works.
11209 func_fallback_echo ()
11210 {
11211 eval 'cat <<_LTECHO_EOF
11212 $1
11213 _LTECHO_EOF'
11214 }
11215 ECHO='func_fallback_echo'
11216 fi
11217
11218 # func_echo_all arg...
11219 # Invoke $ECHO with all args, space-separated.
11220 func_echo_all ()
11221 {
11222 $ECHO ""
11223 }
11224
11225 case $ECHO in
11226 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11227 $as_echo "printf" >&6; } ;;
11228 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11229 $as_echo "print -r" >&6; } ;;
11230 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11231 $as_echo "cat" >&6; } ;;
11232 esac
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11248 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11249 if ${ac_cv_path_SED+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11253 for ac_i in 1 2 3 4 5 6 7; do
11254 ac_script="$ac_script$as_nl$ac_script"
11255 done
11256 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11257 { ac_script=; unset ac_script;}
11258 if test -z "$SED"; then
11259 ac_path_SED_found=false
11260 # Loop through the user's path and test for each of PROGNAME-LIST
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11263 do
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_prog in sed gsed; do
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11269 as_fn_executable_p "$ac_path_SED" || continue
11270 # Check for GNU ac_path_SED and select it if it is found.
11271 # Check for GNU $ac_path_SED
11272 case `"$ac_path_SED" --version 2>&1` in
11273 *GNU*)
11274 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11275 *)
11276 ac_count=0
11277 $as_echo_n 0123456789 >"conftest.in"
11278 while :
11279 do
11280 cat "conftest.in" "conftest.in" >"conftest.tmp"
11281 mv "conftest.tmp" "conftest.in"
11282 cp "conftest.in" "conftest.nl"
11283 $as_echo '' >> "conftest.nl"
11284 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11286 as_fn_arith $ac_count + 1 && ac_count=$as_val
11287 if test $ac_count -gt ${ac_path_SED_max-0}; then
11288 # Best one so far, save it but keep looking for a better one
11289 ac_cv_path_SED="$ac_path_SED"
11290 ac_path_SED_max=$ac_count
11291 fi
11292 # 10*(2^10) chars as input seems more than enough
11293 test $ac_count -gt 10 && break
11294 done
11295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11296 esac
11297
11298 $ac_path_SED_found && break 3
11299 done
11300 done
11301 done
11302 IFS=$as_save_IFS
11303 if test -z "$ac_cv_path_SED"; then
11304 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11305 fi
11306 else
11307 ac_cv_path_SED=$SED
11308 fi
11309
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11312 $as_echo "$ac_cv_path_SED" >&6; }
11313 SED="$ac_cv_path_SED"
11314 rm -f conftest.sed
11315
11316 test -z "$SED" && SED=sed
11317 Xsed="$SED -e 1s/^X//"
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11330 $as_echo_n "checking for fgrep... " >&6; }
11331 if ${ac_cv_path_FGREP+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11335 then ac_cv_path_FGREP="$GREP -F"
11336 else
11337 if test -z "$FGREP"; then
11338 ac_path_FGREP_found=false
11339 # Loop through the user's path and test for each of PROGNAME-LIST
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11342 do
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
11345 for ac_prog in fgrep; do
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11348 as_fn_executable_p "$ac_path_FGREP" || continue
11349 # Check for GNU ac_path_FGREP and select it if it is found.
11350 # Check for GNU $ac_path_FGREP
11351 case `"$ac_path_FGREP" --version 2>&1` in
11352 *GNU*)
11353 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11354 *)
11355 ac_count=0
11356 $as_echo_n 0123456789 >"conftest.in"
11357 while :
11358 do
11359 cat "conftest.in" "conftest.in" >"conftest.tmp"
11360 mv "conftest.tmp" "conftest.in"
11361 cp "conftest.in" "conftest.nl"
11362 $as_echo 'FGREP' >> "conftest.nl"
11363 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11365 as_fn_arith $ac_count + 1 && ac_count=$as_val
11366 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11367 # Best one so far, save it but keep looking for a better one
11368 ac_cv_path_FGREP="$ac_path_FGREP"
11369 ac_path_FGREP_max=$ac_count
11370 fi
11371 # 10*(2^10) chars as input seems more than enough
11372 test $ac_count -gt 10 && break
11373 done
11374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11375 esac
11376
11377 $ac_path_FGREP_found && break 3
11378 done
11379 done
11380 done
11381 IFS=$as_save_IFS
11382 if test -z "$ac_cv_path_FGREP"; then
11383 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11384 fi
11385 else
11386 ac_cv_path_FGREP=$FGREP
11387 fi
11388
11389 fi
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11392 $as_echo "$ac_cv_path_FGREP" >&6; }
11393 FGREP="$ac_cv_path_FGREP"
11394
11395
11396 test -z "$GREP" && GREP=grep
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 # Check whether --with-gnu-ld was given.
11417 if test "${with_gnu_ld+set}" = set; then :
11418 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11419 else
11420 with_gnu_ld=no
11421 fi
11422
11423 ac_prog=ld
11424 if test yes = "$GCC"; then
11425 # Check if gcc -print-prog-name=ld gives a path.
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11427 $as_echo_n "checking for ld used by $CC... " >&6; }
11428 case $host in
11429 *-*-mingw*)
11430 # gcc leaves a trailing carriage return, which upsets mingw
11431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11432 *)
11433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11434 esac
11435 case $ac_prog in
11436 # Accept absolute paths.
11437 [\\/]* | ?:[\\/]*)
11438 re_direlt='/[^/][^/]*/\.\./'
11439 # Canonicalize the pathname of ld
11440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11443 done
11444 test -z "$LD" && LD=$ac_prog
11445 ;;
11446 "")
11447 # If it fails, then pretend we aren't using GCC.
11448 ac_prog=ld
11449 ;;
11450 *)
11451 # If it is relative, then search for the first ld in PATH.
11452 with_gnu_ld=unknown
11453 ;;
11454 esac
11455 elif test yes = "$with_gnu_ld"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11457 $as_echo_n "checking for GNU ld... " >&6; }
11458 else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11460 $as_echo_n "checking for non-GNU ld... " >&6; }
11461 fi
11462 if ${lt_cv_path_LD+:} false; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 if test -z "$LD"; then
11466 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11467 for ac_dir in $PATH; do
11468 IFS=$lt_save_ifs
11469 test -z "$ac_dir" && ac_dir=.
11470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11471 lt_cv_path_LD=$ac_dir/$ac_prog
11472 # Check to see if the program is GNU ld. I'd rather use --version,
11473 # but apparently some variants of GNU ld only accept -v.
11474 # Break only if it was the GNU/non-GNU ld that we prefer.
11475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11476 *GNU* | *'with BFD'*)
11477 test no != "$with_gnu_ld" && break
11478 ;;
11479 *)
11480 test yes != "$with_gnu_ld" && break
11481 ;;
11482 esac
11483 fi
11484 done
11485 IFS=$lt_save_ifs
11486 else
11487 lt_cv_path_LD=$LD # Let the user override the test with a path.
11488 fi
11489 fi
11490
11491 LD=$lt_cv_path_LD
11492 if test -n "$LD"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11494 $as_echo "$LD" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11498 fi
11499 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11501 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11502 if ${lt_cv_prog_gnu_ld+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11506 case `$LD -v 2>&1 </dev/null` in
11507 *GNU* | *'with BFD'*)
11508 lt_cv_prog_gnu_ld=yes
11509 ;;
11510 *)
11511 lt_cv_prog_gnu_ld=no
11512 ;;
11513 esac
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11516 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11517 with_gnu_ld=$lt_cv_prog_gnu_ld
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11528 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11529 if ${lt_cv_path_NM+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test -n "$NM"; then
11533 # Let the user override the test.
11534 lt_cv_path_NM=$NM
11535 else
11536 lt_nm_to_check=${ac_tool_prefix}nm
11537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11538 lt_nm_to_check="$lt_nm_to_check nm"
11539 fi
11540 for lt_tmp_nm in $lt_nm_to_check; do
11541 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11543 IFS=$lt_save_ifs
11544 test -z "$ac_dir" && ac_dir=.
11545 tmp_nm=$ac_dir/$lt_tmp_nm
11546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11547 # Check to see if the nm accepts a BSD-compat flag.
11548 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11549 # nm: unknown option "B" ignored
11550 # Tru64's nm complains that /dev/null is an invalid object file
11551 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11552 case $build_os in
11553 mingw*) lt_bad_file=conftest.nm/nofile ;;
11554 *) lt_bad_file=/dev/null ;;
11555 esac
11556 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11557 *$lt_bad_file* | *'Invalid file or object type'*)
11558 lt_cv_path_NM="$tmp_nm -B"
11559 break 2
11560 ;;
11561 *)
11562 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11563 */dev/null*)
11564 lt_cv_path_NM="$tmp_nm -p"
11565 break 2
11566 ;;
11567 *)
11568 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11569 continue # so that we can try to find one that supports BSD flags
11570 ;;
11571 esac
11572 ;;
11573 esac
11574 fi
11575 done
11576 IFS=$lt_save_ifs
11577 done
11578 : ${lt_cv_path_NM=no}
11579 fi
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11582 $as_echo "$lt_cv_path_NM" >&6; }
11583 if test no != "$lt_cv_path_NM"; then
11584 NM=$lt_cv_path_NM
11585 else
11586 # Didn't find any BSD compatible name lister, look for dumpbin.
11587 if test -n "$DUMPBIN"; then :
11588 # Let the user override the test.
11589 else
11590 if test -n "$ac_tool_prefix"; then
11591 for ac_prog in dumpbin "link -dump"
11592 do
11593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596 $as_echo_n "checking for $ac_word... " >&6; }
11597 if ${ac_cv_prog_DUMPBIN+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 if test -n "$DUMPBIN"; then
11601 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11602 else
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11605 do
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11613 fi
11614 done
11615 done
11616 IFS=$as_save_IFS
11617
11618 fi
11619 fi
11620 DUMPBIN=$ac_cv_prog_DUMPBIN
11621 if test -n "$DUMPBIN"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11623 $as_echo "$DUMPBIN" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11627 fi
11628
11629
11630 test -n "$DUMPBIN" && break
11631 done
11632 fi
11633 if test -z "$DUMPBIN"; then
11634 ac_ct_DUMPBIN=$DUMPBIN
11635 for ac_prog in dumpbin "link -dump"
11636 do
11637 # Extract the first word of "$ac_prog", so it can be a program name with args.
11638 set dummy $ac_prog; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 if test -n "$ac_ct_DUMPBIN"; then
11645 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658 done
11659 done
11660 IFS=$as_save_IFS
11661
11662 fi
11663 fi
11664 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11665 if test -n "$ac_ct_DUMPBIN"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11667 $as_echo "$ac_ct_DUMPBIN" >&6; }
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11671 fi
11672
11673
11674 test -n "$ac_ct_DUMPBIN" && break
11675 done
11676
11677 if test "x$ac_ct_DUMPBIN" = x; then
11678 DUMPBIN=":"
11679 else
11680 case $cross_compiling:$ac_tool_warned in
11681 yes:)
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11684 ac_tool_warned=yes ;;
11685 esac
11686 DUMPBIN=$ac_ct_DUMPBIN
11687 fi
11688 fi
11689
11690 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11691 *COFF*)
11692 DUMPBIN="$DUMPBIN -symbols -headers"
11693 ;;
11694 *)
11695 DUMPBIN=:
11696 ;;
11697 esac
11698 fi
11699
11700 if test : != "$DUMPBIN"; then
11701 NM=$DUMPBIN
11702 fi
11703 fi
11704 test -z "$NM" && NM=nm
11705
11706
11707
11708
11709
11710
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11712 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11713 if ${lt_cv_nm_interface+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 lt_cv_nm_interface="BSD nm"
11717 echo "int some_variable = 0;" > conftest.$ac_ext
11718 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11719 (eval "$ac_compile" 2>conftest.err)
11720 cat conftest.err >&5
11721 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11722 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11723 cat conftest.err >&5
11724 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11725 cat conftest.out >&5
11726 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11727 lt_cv_nm_interface="MS dumpbin"
11728 fi
11729 rm -f conftest*
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11732 $as_echo "$lt_cv_nm_interface" >&6; }
11733
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11735 $as_echo_n "checking whether ln -s works... " >&6; }
11736 LN_S=$as_ln_s
11737 if test "$LN_S" = "ln -s"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11742 $as_echo "no, using $LN_S" >&6; }
11743 fi
11744
11745 # find the maximum length of command line arguments
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11747 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11748 if ${lt_cv_sys_max_cmd_len+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 i=0
11752 teststring=ABCD
11753
11754 case $build_os in
11755 msdosdjgpp*)
11756 # On DJGPP, this test can blow up pretty badly due to problems in libc
11757 # (any single argument exceeding 2000 bytes causes a buffer overrun
11758 # during glob expansion). Even if it were fixed, the result of this
11759 # check would be larger than it should be.
11760 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11761 ;;
11762
11763 gnu*)
11764 # Under GNU Hurd, this test is not required because there is
11765 # no limit to the length of command line arguments.
11766 # Libtool will interpret -1 as no limit whatsoever
11767 lt_cv_sys_max_cmd_len=-1;
11768 ;;
11769
11770 cygwin* | mingw* | cegcc*)
11771 # On Win9x/ME, this test blows up -- it succeeds, but takes
11772 # about 5 minutes as the teststring grows exponentially.
11773 # Worse, since 9x/ME are not pre-emptively multitasking,
11774 # you end up with a "frozen" computer, even though with patience
11775 # the test eventually succeeds (with a max line length of 256k).
11776 # Instead, let's just punt: use the minimum linelength reported by
11777 # all of the supported platforms: 8192 (on NT/2K/XP).
11778 lt_cv_sys_max_cmd_len=8192;
11779 ;;
11780
11781 mint*)
11782 # On MiNT this can take a long time and run out of memory.
11783 lt_cv_sys_max_cmd_len=8192;
11784 ;;
11785
11786 amigaos*)
11787 # On AmigaOS with pdksh, this test takes hours, literally.
11788 # So we just punt and use a minimum line length of 8192.
11789 lt_cv_sys_max_cmd_len=8192;
11790 ;;
11791
11792 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11793 # This has been around since 386BSD, at least. Likely further.
11794 if test -x /sbin/sysctl; then
11795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11796 elif test -x /usr/sbin/sysctl; then
11797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11798 else
11799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11800 fi
11801 # And add a safety zone
11802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11804 ;;
11805
11806 interix*)
11807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11808 lt_cv_sys_max_cmd_len=196608
11809 ;;
11810
11811 os2*)
11812 # The test takes a long time on OS/2.
11813 lt_cv_sys_max_cmd_len=8192
11814 ;;
11815
11816 osf*)
11817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11819 # nice to cause kernel panics so lets avoid the loop below.
11820 # First set a reasonable default.
11821 lt_cv_sys_max_cmd_len=16384
11822 #
11823 if test -x /sbin/sysconfig; then
11824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11825 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11826 esac
11827 fi
11828 ;;
11829 sco3.2v5*)
11830 lt_cv_sys_max_cmd_len=102400
11831 ;;
11832 sysv5* | sco5v6* | sysv4.2uw2*)
11833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11834 if test -n "$kargmax"; then
11835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11836 else
11837 lt_cv_sys_max_cmd_len=32768
11838 fi
11839 ;;
11840 *)
11841 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11842 if test -n "$lt_cv_sys_max_cmd_len" && \
11843 test undefined != "$lt_cv_sys_max_cmd_len"; then
11844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11846 else
11847 # Make teststring a little bigger before we do anything with it.
11848 # a 1K string should be a reasonable start.
11849 for i in 1 2 3 4 5 6 7 8; do
11850 teststring=$teststring$teststring
11851 done
11852 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11853 # If test is not a shell built-in, we'll probably end up computing a
11854 # maximum length that is only half of the actual maximum length, but
11855 # we can't tell.
11856 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11857 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11858 test 17 != "$i" # 1/2 MB should be enough
11859 do
11860 i=`expr $i + 1`
11861 teststring=$teststring$teststring
11862 done
11863 # Only check the string length outside the loop.
11864 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11865 teststring=
11866 # Add a significant safety factor because C++ compilers can tack on
11867 # massive amounts of additional arguments before passing them to the
11868 # linker. It appears as though 1/2 is a usable value.
11869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11870 fi
11871 ;;
11872 esac
11873
11874 fi
11875
11876 if test -n "$lt_cv_sys_max_cmd_len"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11878 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11881 $as_echo "none" >&6; }
11882 fi
11883 max_cmd_len=$lt_cv_sys_max_cmd_len
11884
11885
11886
11887
11888
11889
11890 : ${CP="cp -f"}
11891 : ${MV="mv -f"}
11892 : ${RM="rm -f"}
11893
11894 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11895 lt_unset=unset
11896 else
11897 lt_unset=false
11898 fi
11899
11900
11901
11902
11903
11904 # test EBCDIC or ASCII
11905 case `echo X|tr X '\101'` in
11906 A) # ASCII based system
11907 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11908 lt_SP2NL='tr \040 \012'
11909 lt_NL2SP='tr \015\012 \040\040'
11910 ;;
11911 *) # EBCDIC based system
11912 lt_SP2NL='tr \100 \n'
11913 lt_NL2SP='tr \r\n \100\100'
11914 ;;
11915 esac
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11926 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11927 if ${lt_cv_to_host_file_cmd+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 case $host in
11931 *-*-mingw* )
11932 case $build in
11933 *-*-mingw* ) # actually msys
11934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11935 ;;
11936 *-*-cygwin* )
11937 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11938 ;;
11939 * ) # otherwise, assume *nix
11940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11941 ;;
11942 esac
11943 ;;
11944 *-*-cygwin* )
11945 case $build in
11946 *-*-mingw* ) # actually msys
11947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11948 ;;
11949 *-*-cygwin* )
11950 lt_cv_to_host_file_cmd=func_convert_file_noop
11951 ;;
11952 * ) # otherwise, assume *nix
11953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11954 ;;
11955 esac
11956 ;;
11957 * ) # unhandled hosts (and "normal" native builds)
11958 lt_cv_to_host_file_cmd=func_convert_file_noop
11959 ;;
11960 esac
11961
11962 fi
11963
11964 to_host_file_cmd=$lt_cv_to_host_file_cmd
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11966 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11967
11968
11969
11970
11971
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11973 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11974 if ${lt_cv_to_tool_file_cmd+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 #assume ordinary cross tools, or native build.
11978 lt_cv_to_tool_file_cmd=func_convert_file_noop
11979 case $host in
11980 *-*-mingw* )
11981 case $build in
11982 *-*-mingw* ) # actually msys
11983 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11984 ;;
11985 esac
11986 ;;
11987 esac
11988
11989 fi
11990
11991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11993 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11994
11995
11996
11997
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12000 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12001 if ${lt_cv_ld_reload_flag+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 lt_cv_ld_reload_flag='-r'
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12007 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12008 reload_flag=$lt_cv_ld_reload_flag
12009 case $reload_flag in
12010 "" | " "*) ;;
12011 *) reload_flag=" $reload_flag" ;;
12012 esac
12013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12014 case $host_os in
12015 cygwin* | mingw* | pw32* | cegcc*)
12016 if test yes != "$GCC"; then
12017 reload_cmds=false
12018 fi
12019 ;;
12020 darwin*)
12021 if test yes = "$GCC"; then
12022 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12023 else
12024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12025 fi
12026 ;;
12027 esac
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037 if test -n "$ac_tool_prefix"; then
12038 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12039 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_prog_OBJDUMP+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 if test -n "$OBJDUMP"; then
12046 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12047 else
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12050 do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059 done
12060 done
12061 IFS=$as_save_IFS
12062
12063 fi
12064 fi
12065 OBJDUMP=$ac_cv_prog_OBJDUMP
12066 if test -n "$OBJDUMP"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12068 $as_echo "$OBJDUMP" >&6; }
12069 else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073
12074
12075 fi
12076 if test -z "$ac_cv_prog_OBJDUMP"; then
12077 ac_ct_OBJDUMP=$OBJDUMP
12078 # Extract the first word of "objdump", so it can be a program name with args.
12079 set dummy objdump; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 if test -n "$ac_ct_OBJDUMP"; then
12086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12087 else
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097 break 2
12098 fi
12099 done
12100 done
12101 IFS=$as_save_IFS
12102
12103 fi
12104 fi
12105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12106 if test -n "$ac_ct_OBJDUMP"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12108 $as_echo "$ac_ct_OBJDUMP" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12112 fi
12113
12114 if test "x$ac_ct_OBJDUMP" = x; then
12115 OBJDUMP="false"
12116 else
12117 case $cross_compiling:$ac_tool_warned in
12118 yes:)
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12121 ac_tool_warned=yes ;;
12122 esac
12123 OBJDUMP=$ac_ct_OBJDUMP
12124 fi
12125 else
12126 OBJDUMP="$ac_cv_prog_OBJDUMP"
12127 fi
12128
12129 test -z "$OBJDUMP" && OBJDUMP=objdump
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12140 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12141 if ${lt_cv_deplibs_check_method+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 lt_cv_file_magic_cmd='$MAGIC_CMD'
12145 lt_cv_file_magic_test_file=
12146 lt_cv_deplibs_check_method='unknown'
12147 # Need to set the preceding variable on all platforms that support
12148 # interlibrary dependencies.
12149 # 'none' -- dependencies not supported.
12150 # 'unknown' -- same as none, but documents that we really don't know.
12151 # 'pass_all' -- all dependencies passed with no checks.
12152 # 'test_compile' -- check by making test program.
12153 # 'file_magic [[regex]]' -- check by looking for files in library path
12154 # that responds to the $file_magic_cmd with a given extended regex.
12155 # If you have 'file' or equivalent on your system and you're not sure
12156 # whether 'pass_all' will *always* work, you probably want this one.
12157
12158 case $host_os in
12159 aix[4-9]*)
12160 lt_cv_deplibs_check_method=pass_all
12161 ;;
12162
12163 beos*)
12164 lt_cv_deplibs_check_method=pass_all
12165 ;;
12166
12167 bsdi[45]*)
12168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12169 lt_cv_file_magic_cmd='/usr/bin/file -L'
12170 lt_cv_file_magic_test_file=/shlib/libc.so
12171 ;;
12172
12173 cygwin*)
12174 # func_win32_libid is a shell function defined in ltmain.sh
12175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12176 lt_cv_file_magic_cmd='func_win32_libid'
12177 ;;
12178
12179 mingw* | pw32*)
12180 # Base MSYS/MinGW do not provide the 'file' command needed by
12181 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12182 # unless we find 'file', for example because we are cross-compiling.
12183 if ( file / ) >/dev/null 2>&1; then
12184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12185 lt_cv_file_magic_cmd='func_win32_libid'
12186 else
12187 # Keep this pattern in sync with the one in func_win32_libid.
12188 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12189 lt_cv_file_magic_cmd='$OBJDUMP -f'
12190 fi
12191 ;;
12192
12193 cegcc*)
12194 # use the weaker test based on 'objdump'. See mingw*.
12195 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12196 lt_cv_file_magic_cmd='$OBJDUMP -f'
12197 ;;
12198
12199 darwin* | rhapsody*)
12200 lt_cv_deplibs_check_method=pass_all
12201 ;;
12202
12203 freebsd* | dragonfly*)
12204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12205 case $host_cpu in
12206 i*86 )
12207 # Not sure whether the presence of OpenBSD here was a mistake.
12208 # Let's accept both of them until this is cleared up.
12209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12210 lt_cv_file_magic_cmd=/usr/bin/file
12211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12212 ;;
12213 esac
12214 else
12215 lt_cv_deplibs_check_method=pass_all
12216 fi
12217 ;;
12218
12219 haiku*)
12220 lt_cv_deplibs_check_method=pass_all
12221 ;;
12222
12223 hpux10.20* | hpux11*)
12224 lt_cv_file_magic_cmd=/usr/bin/file
12225 case $host_cpu in
12226 ia64*)
12227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12229 ;;
12230 hppa*64*)
12231 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]'
12232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12233 ;;
12234 *)
12235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12237 ;;
12238 esac
12239 ;;
12240
12241 interix[3-9]*)
12242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12244 ;;
12245
12246 irix5* | irix6* | nonstopux*)
12247 case $LD in
12248 *-32|*"-32 ") libmagic=32-bit;;
12249 *-n32|*"-n32 ") libmagic=N32;;
12250 *-64|*"-64 ") libmagic=64-bit;;
12251 *) libmagic=never-match;;
12252 esac
12253 lt_cv_deplibs_check_method=pass_all
12254 ;;
12255
12256 # This must be glibc/ELF.
12257 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12258 lt_cv_deplibs_check_method=pass_all
12259 ;;
12260
12261 netbsd*)
12262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12264 else
12265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12266 fi
12267 ;;
12268
12269 newos6*)
12270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12271 lt_cv_file_magic_cmd=/usr/bin/file
12272 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12273 ;;
12274
12275 *nto* | *qnx*)
12276 lt_cv_deplibs_check_method=pass_all
12277 ;;
12278
12279 openbsd* | bitrig*)
12280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12282 else
12283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12284 fi
12285 ;;
12286
12287 osf3* | osf4* | osf5*)
12288 lt_cv_deplibs_check_method=pass_all
12289 ;;
12290
12291 rdos*)
12292 lt_cv_deplibs_check_method=pass_all
12293 ;;
12294
12295 solaris*)
12296 lt_cv_deplibs_check_method=pass_all
12297 ;;
12298
12299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12300 lt_cv_deplibs_check_method=pass_all
12301 ;;
12302
12303 sysv4 | sysv4.3*)
12304 case $host_vendor in
12305 motorola)
12306 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]'
12307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12308 ;;
12309 ncr)
12310 lt_cv_deplibs_check_method=pass_all
12311 ;;
12312 sequent)
12313 lt_cv_file_magic_cmd='/bin/file'
12314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12315 ;;
12316 sni)
12317 lt_cv_file_magic_cmd='/bin/file'
12318 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12319 lt_cv_file_magic_test_file=/lib/libc.so
12320 ;;
12321 siemens)
12322 lt_cv_deplibs_check_method=pass_all
12323 ;;
12324 pc)
12325 lt_cv_deplibs_check_method=pass_all
12326 ;;
12327 esac
12328 ;;
12329
12330 tpf*)
12331 lt_cv_deplibs_check_method=pass_all
12332 ;;
12333 os2*)
12334 lt_cv_deplibs_check_method=pass_all
12335 ;;
12336 esac
12337
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12340 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12341
12342 file_magic_glob=
12343 want_nocaseglob=no
12344 if test "$build" = "$host"; then
12345 case $host_os in
12346 mingw* | pw32*)
12347 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12348 want_nocaseglob=yes
12349 else
12350 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12351 fi
12352 ;;
12353 esac
12354 fi
12355
12356 file_magic_cmd=$lt_cv_file_magic_cmd
12357 deplibs_check_method=$lt_cv_deplibs_check_method
12358 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381 if test -n "$ac_tool_prefix"; then
12382 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12383 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385 $as_echo_n "checking for $ac_word... " >&6; }
12386 if ${ac_cv_prog_DLLTOOL+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 if test -n "$DLLTOOL"; then
12390 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12391 else
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12394 do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12402 fi
12403 done
12404 done
12405 IFS=$as_save_IFS
12406
12407 fi
12408 fi
12409 DLLTOOL=$ac_cv_prog_DLLTOOL
12410 if test -n "$DLLTOOL"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12412 $as_echo "$DLLTOOL" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416 fi
12417
12418
12419 fi
12420 if test -z "$ac_cv_prog_DLLTOOL"; then
12421 ac_ct_DLLTOOL=$DLLTOOL
12422 # Extract the first word of "dlltool", so it can be a program name with args.
12423 set dummy dlltool; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 if test -n "$ac_ct_DLLTOOL"; then
12430 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12431 else
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $PATH
12434 do
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12439 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441 break 2
12442 fi
12443 done
12444 done
12445 IFS=$as_save_IFS
12446
12447 fi
12448 fi
12449 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12450 if test -n "$ac_ct_DLLTOOL"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12452 $as_echo "$ac_ct_DLLTOOL" >&6; }
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12456 fi
12457
12458 if test "x$ac_ct_DLLTOOL" = x; then
12459 DLLTOOL="false"
12460 else
12461 case $cross_compiling:$ac_tool_warned in
12462 yes:)
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12465 ac_tool_warned=yes ;;
12466 esac
12467 DLLTOOL=$ac_ct_DLLTOOL
12468 fi
12469 else
12470 DLLTOOL="$ac_cv_prog_DLLTOOL"
12471 fi
12472
12473 test -z "$DLLTOOL" && DLLTOOL=dlltool
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12485 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12486 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 lt_cv_sharedlib_from_linklib_cmd='unknown'
12490
12491 case $host_os in
12492 cygwin* | mingw* | pw32* | cegcc*)
12493 # two different shell functions defined in ltmain.sh;
12494 # decide which one to use based on capabilities of $DLLTOOL
12495 case `$DLLTOOL --help 2>&1` in
12496 *--identify-strict*)
12497 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12498 ;;
12499 *)
12500 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12501 ;;
12502 esac
12503 ;;
12504 *)
12505 # fallback: assume linklib IS sharedlib
12506 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12507 ;;
12508 esac
12509
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12512 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12513 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12514 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12515
12516
12517
12518
12519
12520
12521
12522 if test -n "$ac_tool_prefix"; then
12523 for ac_prog in ar
12524 do
12525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if ${ac_cv_prog_AR+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 if test -n "$AR"; then
12533 ac_cv_prog_AR="$AR" # Let the user override the test.
12534 else
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538 IFS=$as_save_IFS
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
12541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 break 2
12545 fi
12546 done
12547 done
12548 IFS=$as_save_IFS
12549
12550 fi
12551 fi
12552 AR=$ac_cv_prog_AR
12553 if test -n "$AR"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12555 $as_echo "$AR" >&6; }
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559 fi
12560
12561
12562 test -n "$AR" && break
12563 done
12564 fi
12565 if test -z "$AR"; then
12566 ac_ct_AR=$AR
12567 for ac_prog in ar
12568 do
12569 # Extract the first word of "$ac_prog", so it can be a program name with args.
12570 set dummy $ac_prog; ac_word=$2
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572 $as_echo_n "checking for $ac_word... " >&6; }
12573 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 if test -n "$ac_ct_AR"; then
12577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12578 else
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in $PATH
12581 do
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12586 ac_cv_prog_ac_ct_AR="$ac_prog"
12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 break 2
12589 fi
12590 done
12591 done
12592 IFS=$as_save_IFS
12593
12594 fi
12595 fi
12596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12597 if test -n "$ac_ct_AR"; then
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12599 $as_echo "$ac_ct_AR" >&6; }
12600 else
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12603 fi
12604
12605
12606 test -n "$ac_ct_AR" && break
12607 done
12608
12609 if test "x$ac_ct_AR" = x; then
12610 AR="false"
12611 else
12612 case $cross_compiling:$ac_tool_warned in
12613 yes:)
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12616 ac_tool_warned=yes ;;
12617 esac
12618 AR=$ac_ct_AR
12619 fi
12620 fi
12621
12622 : ${AR=ar}
12623
12624
12625
12626
12627
12628
12629 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
12630 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
12631 # higher priority because thats what people were doing historically (setting
12632 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
12633 # variable obsoleted/removed.
12634
12635 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
12636 lt_ar_flags=$AR_FLAGS
12637
12638
12639
12640
12641
12642
12643 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
12644 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
12645
12646
12647
12648
12649
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12652 $as_echo_n "checking for archiver @FILE support... " >&6; }
12653 if ${lt_cv_ar_at_file+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 lt_cv_ar_at_file=no
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659
12660 int
12661 main ()
12662 {
12663
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_c_try_compile "$LINENO"; then :
12669 echo conftest.$ac_objext > conftest.lst
12670 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12672 (eval $lt_ar_try) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; }
12676 if test 0 -eq "$ac_status"; then
12677 # Ensure the archiver fails upon bogus file names.
12678 rm -f conftest.$ac_objext libconftest.a
12679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12680 (eval $lt_ar_try) 2>&5
12681 ac_status=$?
12682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12683 test $ac_status = 0; }
12684 if test 0 -ne "$ac_status"; then
12685 lt_cv_ar_at_file=@
12686 fi
12687 fi
12688 rm -f conftest.* libconftest.a
12689
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12695 $as_echo "$lt_cv_ar_at_file" >&6; }
12696
12697 if test no = "$lt_cv_ar_at_file"; then
12698 archiver_list_spec=
12699 else
12700 archiver_list_spec=$lt_cv_ar_at_file
12701 fi
12702
12703
12704
12705
12706
12707
12708
12709 if test -n "$ac_tool_prefix"; then
12710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12711 set dummy ${ac_tool_prefix}strip; ac_word=$2
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713 $as_echo_n "checking for $ac_word... " >&6; }
12714 if ${ac_cv_prog_STRIP+:} false; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 if test -n "$STRIP"; then
12718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12719 else
12720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721 for as_dir in $PATH
12722 do
12723 IFS=$as_save_IFS
12724 test -z "$as_dir" && as_dir=.
12725 for ac_exec_ext in '' $ac_executable_extensions; do
12726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12727 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 break 2
12730 fi
12731 done
12732 done
12733 IFS=$as_save_IFS
12734
12735 fi
12736 fi
12737 STRIP=$ac_cv_prog_STRIP
12738 if test -n "$STRIP"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12740 $as_echo "$STRIP" >&6; }
12741 else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12744 fi
12745
12746
12747 fi
12748 if test -z "$ac_cv_prog_STRIP"; then
12749 ac_ct_STRIP=$STRIP
12750 # Extract the first word of "strip", so it can be a program name with args.
12751 set dummy strip; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 if test -n "$ac_ct_STRIP"; then
12758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12759 else
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12762 do
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12767 ac_cv_prog_ac_ct_STRIP="strip"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 break 2
12770 fi
12771 done
12772 done
12773 IFS=$as_save_IFS
12774
12775 fi
12776 fi
12777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12778 if test -n "$ac_ct_STRIP"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12780 $as_echo "$ac_ct_STRIP" >&6; }
12781 else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784 fi
12785
12786 if test "x$ac_ct_STRIP" = x; then
12787 STRIP=":"
12788 else
12789 case $cross_compiling:$ac_tool_warned in
12790 yes:)
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12793 ac_tool_warned=yes ;;
12794 esac
12795 STRIP=$ac_ct_STRIP
12796 fi
12797 else
12798 STRIP="$ac_cv_prog_STRIP"
12799 fi
12800
12801 test -z "$STRIP" && STRIP=:
12802
12803
12804
12805
12806
12807
12808 if test -n "$ac_tool_prefix"; then
12809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812 $as_echo_n "checking for $ac_word... " >&6; }
12813 if ${ac_cv_prog_RANLIB+:} false; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 if test -n "$RANLIB"; then
12817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12818 else
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12821 do
12822 IFS=$as_save_IFS
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 break 2
12829 fi
12830 done
12831 done
12832 IFS=$as_save_IFS
12833
12834 fi
12835 fi
12836 RANLIB=$ac_cv_prog_RANLIB
12837 if test -n "$RANLIB"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12839 $as_echo "$RANLIB" >&6; }
12840 else
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12843 fi
12844
12845
12846 fi
12847 if test -z "$ac_cv_prog_RANLIB"; then
12848 ac_ct_RANLIB=$RANLIB
12849 # Extract the first word of "ranlib", so it can be a program name with args.
12850 set dummy ranlib; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$ac_ct_RANLIB"; then
12857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866 ac_cv_prog_ac_ct_RANLIB="ranlib"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12869 fi
12870 done
12871 done
12872 IFS=$as_save_IFS
12873
12874 fi
12875 fi
12876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12877 if test -n "$ac_ct_RANLIB"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12879 $as_echo "$ac_ct_RANLIB" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884
12885 if test "x$ac_ct_RANLIB" = x; then
12886 RANLIB=":"
12887 else
12888 case $cross_compiling:$ac_tool_warned in
12889 yes:)
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12892 ac_tool_warned=yes ;;
12893 esac
12894 RANLIB=$ac_ct_RANLIB
12895 fi
12896 else
12897 RANLIB="$ac_cv_prog_RANLIB"
12898 fi
12899
12900 test -z "$RANLIB" && RANLIB=:
12901
12902
12903
12904
12905
12906
12907 # Determine commands to create old-style static archives.
12908 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12909 old_postinstall_cmds='chmod 644 $oldlib'
12910 old_postuninstall_cmds=
12911
12912 if test -n "$RANLIB"; then
12913 case $host_os in
12914 bitrig* | openbsd*)
12915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12916 ;;
12917 *)
12918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12919 ;;
12920 esac
12921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12922 fi
12923
12924 case $host_os in
12925 darwin*)
12926 lock_old_archive_extraction=yes ;;
12927 *)
12928 lock_old_archive_extraction=no ;;
12929 esac
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969 # If no C compiler was specified, use CC.
12970 LTCC=${LTCC-"$CC"}
12971
12972 # If no C compiler flags were specified, use CFLAGS.
12973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12974
12975 # Allow CC to be a program name with arguments.
12976 compiler=$CC
12977
12978
12979 # Check for command to grab the raw symbol name followed by C symbol from nm.
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12981 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12982 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985
12986 # These are sane defaults that work on at least a few old systems.
12987 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12988
12989 # Character class describing NM global symbol codes.
12990 symcode='[BCDEGRST]'
12991
12992 # Regexp to match symbols that can be accessed directly from C.
12993 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12994
12995 # Define system-specific variables.
12996 case $host_os in
12997 aix*)
12998 symcode='[BCDT]'
12999 ;;
13000 cygwin* | mingw* | pw32* | cegcc*)
13001 symcode='[ABCDGISTW]'
13002 ;;
13003 hpux*)
13004 if test ia64 = "$host_cpu"; then
13005 symcode='[ABCDEGRST]'
13006 fi
13007 ;;
13008 irix* | nonstopux*)
13009 symcode='[BCDEGRST]'
13010 ;;
13011 osf*)
13012 symcode='[BCDEGQRST]'
13013 ;;
13014 solaris*)
13015 symcode='[BDRT]'
13016 ;;
13017 sco3.2v5*)
13018 symcode='[DT]'
13019 ;;
13020 sysv4.2uw2*)
13021 symcode='[DT]'
13022 ;;
13023 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13024 symcode='[ABDT]'
13025 ;;
13026 sysv4)
13027 symcode='[DFNSTU]'
13028 ;;
13029 esac
13030
13031 # If we're using GNU nm, then use its standard symbol codes.
13032 case `$NM -V 2>&1` in
13033 *GNU* | *'with BFD'*)
13034 symcode='[ABCDGIRSTW]' ;;
13035 esac
13036
13037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13038 # Gets list of data symbols to import.
13039 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13040 # Adjust the below global symbol transforms to fixup imported variables.
13041 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13042 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13043 lt_c_name_lib_hook="\
13044 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13045 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13046 else
13047 # Disable hooks by default.
13048 lt_cv_sys_global_symbol_to_import=
13049 lt_cdecl_hook=
13050 lt_c_name_hook=
13051 lt_c_name_lib_hook=
13052 fi
13053
13054 # Transform an extracted symbol line into a proper C declaration.
13055 # Some systems (esp. on ia64) link data and code symbols differently,
13056 # so use this general approach.
13057 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13058 $lt_cdecl_hook\
13059 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13060 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13061
13062 # Transform an extracted symbol line into symbol name and symbol address
13063 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13064 $lt_c_name_hook\
13065 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13066 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13067
13068 # Transform an extracted symbol line into symbol name with lib prefix and
13069 # symbol address.
13070 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13071 $lt_c_name_lib_hook\
13072 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13073 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13074 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13075
13076 # Handle CRLF in mingw tool chain
13077 opt_cr=
13078 case $build_os in
13079 mingw*)
13080 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13081 ;;
13082 esac
13083
13084 # Try without a prefix underscore, then with it.
13085 for ac_symprfx in "" "_"; do
13086
13087 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13088 symxfrm="\\1 $ac_symprfx\\2 \\2"
13089
13090 # Write the raw and C identifiers.
13091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13092 # Fake it for dumpbin and say T for any non-static function,
13093 # D for any global variable and I for any imported variable.
13094 # Also find C++ and __fastcall symbols from MSVC++,
13095 # which start with @ or ?.
13096 lt_cv_sys_global_symbol_pipe="$AWK '"\
13097 " {last_section=section; section=\$ 3};"\
13098 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13099 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13100 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13101 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13102 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13103 " \$ 0!~/External *\|/{next};"\
13104 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13105 " {if(hide[section]) next};"\
13106 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13107 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13108 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13109 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13110 " ' prfx=^$ac_symprfx"
13111 else
13112 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13113 fi
13114 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13115
13116 # Check to see that the pipe works correctly.
13117 pipe_works=no
13118
13119 rm -f conftest*
13120 cat > conftest.$ac_ext <<_LT_EOF
13121 #ifdef __cplusplus
13122 extern "C" {
13123 #endif
13124 char nm_test_var;
13125 void nm_test_func(void);
13126 void nm_test_func(void){}
13127 #ifdef __cplusplus
13128 }
13129 #endif
13130 int main(){nm_test_var='a';nm_test_func();return(0);}
13131 _LT_EOF
13132
13133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13134 (eval $ac_compile) 2>&5
13135 ac_status=$?
13136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13137 test $ac_status = 0; }; then
13138 # Now try to grab the symbols.
13139 nlist=conftest.nm
13140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13141 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13142 ac_status=$?
13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144 test $ac_status = 0; } && test -s "$nlist"; then
13145 # Try sorting and uniquifying the output.
13146 if sort "$nlist" | uniq > "$nlist"T; then
13147 mv -f "$nlist"T "$nlist"
13148 else
13149 rm -f "$nlist"T
13150 fi
13151
13152 # Make sure that we snagged all the symbols we need.
13153 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13154 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13155 cat <<_LT_EOF > conftest.$ac_ext
13156 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13157 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13158 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13159 relocations are performed -- see ld's documentation on pseudo-relocs. */
13160 # define LT_DLSYM_CONST
13161 #elif defined __osf__
13162 /* This system does not cope well with relocations in const data. */
13163 # define LT_DLSYM_CONST
13164 #else
13165 # define LT_DLSYM_CONST const
13166 #endif
13167
13168 #ifdef __cplusplus
13169 extern "C" {
13170 #endif
13171
13172 _LT_EOF
13173 # Now generate the symbol file.
13174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13175
13176 cat <<_LT_EOF >> conftest.$ac_ext
13177
13178 /* The mapping between symbol names and symbols. */
13179 LT_DLSYM_CONST struct {
13180 const char *name;
13181 void *address;
13182 }
13183 lt__PROGRAM__LTX_preloaded_symbols[] =
13184 {
13185 { "@PROGRAM@", (void *) 0 },
13186 _LT_EOF
13187 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13188 cat <<\_LT_EOF >> conftest.$ac_ext
13189 {0, (void *) 0}
13190 };
13191
13192 /* This works around a problem in FreeBSD linker */
13193 #ifdef FREEBSD_WORKAROUND
13194 static const void *lt_preloaded_setup() {
13195 return lt__PROGRAM__LTX_preloaded_symbols;
13196 }
13197 #endif
13198
13199 #ifdef __cplusplus
13200 }
13201 #endif
13202 _LT_EOF
13203 # Now try linking the two files.
13204 mv conftest.$ac_objext conftstm.$ac_objext
13205 lt_globsym_save_LIBS=$LIBS
13206 lt_globsym_save_CFLAGS=$CFLAGS
13207 LIBS=conftstm.$ac_objext
13208 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13210 (eval $ac_link) 2>&5
13211 ac_status=$?
13212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13213 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13214 pipe_works=yes
13215 fi
13216 LIBS=$lt_globsym_save_LIBS
13217 CFLAGS=$lt_globsym_save_CFLAGS
13218 else
13219 echo "cannot find nm_test_func in $nlist" >&5
13220 fi
13221 else
13222 echo "cannot find nm_test_var in $nlist" >&5
13223 fi
13224 else
13225 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13226 fi
13227 else
13228 echo "$progname: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13230 fi
13231 rm -rf conftest* conftst*
13232
13233 # Do not use the global_symbol_pipe unless it works.
13234 if test yes = "$pipe_works"; then
13235 break
13236 else
13237 lt_cv_sys_global_symbol_pipe=
13238 fi
13239 done
13240
13241 fi
13242
13243 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13244 lt_cv_sys_global_symbol_to_cdecl=
13245 fi
13246 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13248 $as_echo "failed" >&6; }
13249 else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13251 $as_echo "ok" >&6; }
13252 fi
13253
13254 # Response file support.
13255 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13256 nm_file_list_spec='@'
13257 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13258 nm_file_list_spec='@'
13259 fi
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13298 $as_echo_n "checking for sysroot... " >&6; }
13299
13300 # Check whether --with-sysroot was given.
13301 if test "${with_sysroot+set}" = set; then :
13302 withval=$with_sysroot;
13303 else
13304 with_sysroot=no
13305 fi
13306
13307
13308 lt_sysroot=
13309 case $with_sysroot in #(
13310 yes)
13311 if test yes = "$GCC"; then
13312 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13313 fi
13314 ;; #(
13315 /*)
13316 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13317 ;; #(
13318 no|'')
13319 ;; #(
13320 *)
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13322 $as_echo "$with_sysroot" >&6; }
13323 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13324 ;;
13325 esac
13326
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13328 $as_echo "${lt_sysroot:-no}" >&6; }
13329
13330
13331
13332
13333
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13335 $as_echo_n "checking for a working dd... " >&6; }
13336 if ${ac_cv_path_lt_DD+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 printf 0123456789abcdef0123456789abcdef >conftest.i
13340 cat conftest.i conftest.i >conftest2.i
13341 : ${lt_DD:=$DD}
13342 if test -z "$lt_DD"; then
13343 ac_path_lt_DD_found=false
13344 # Loop through the user's path and test for each of PROGNAME-LIST
13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13347 do
13348 IFS=$as_save_IFS
13349 test -z "$as_dir" && as_dir=.
13350 for ac_prog in dd; do
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13353 as_fn_executable_p "$ac_path_lt_DD" || continue
13354 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13355 cmp -s conftest.i conftest.out \
13356 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13357 fi
13358 $ac_path_lt_DD_found && break 3
13359 done
13360 done
13361 done
13362 IFS=$as_save_IFS
13363 if test -z "$ac_cv_path_lt_DD"; then
13364 :
13365 fi
13366 else
13367 ac_cv_path_lt_DD=$lt_DD
13368 fi
13369
13370 rm -f conftest.i conftest2.i conftest.out
13371 fi
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13373 $as_echo "$ac_cv_path_lt_DD" >&6; }
13374
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13377 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13378 if ${lt_cv_truncate_bin+:} false; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 printf 0123456789abcdef0123456789abcdef >conftest.i
13382 cat conftest.i conftest.i >conftest2.i
13383 lt_cv_truncate_bin=
13384 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13385 cmp -s conftest.i conftest.out \
13386 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13387 fi
13388 rm -f conftest.i conftest2.i conftest.out
13389 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13392 $as_echo "$lt_cv_truncate_bin" >&6; }
13393
13394
13395
13396
13397
13398
13399
13400 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13401 func_cc_basename ()
13402 {
13403 for cc_temp in $*""; do
13404 case $cc_temp in
13405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13407 \-*) ;;
13408 *) break;;
13409 esac
13410 done
13411 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13412 }
13413
13414 # Check whether --enable-libtool-lock was given.
13415 if test "${enable_libtool_lock+set}" = set; then :
13416 enableval=$enable_libtool_lock;
13417 fi
13418
13419 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13420
13421 # Some flags need to be propagated to the compiler or linker for good
13422 # libtool support.
13423 case $host in
13424 ia64-*-hpux*)
13425 # Find out what ABI is being produced by ac_compile, and set mode
13426 # options accordingly.
13427 echo 'int i;' > conftest.$ac_ext
13428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13429 (eval $ac_compile) 2>&5
13430 ac_status=$?
13431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13432 test $ac_status = 0; }; then
13433 case `/usr/bin/file conftest.$ac_objext` in
13434 *ELF-32*)
13435 HPUX_IA64_MODE=32
13436 ;;
13437 *ELF-64*)
13438 HPUX_IA64_MODE=64
13439 ;;
13440 esac
13441 fi
13442 rm -rf conftest*
13443 ;;
13444 *-*-irix6*)
13445 # Find out what ABI is being produced by ac_compile, and set linker
13446 # options accordingly.
13447 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13449 (eval $ac_compile) 2>&5
13450 ac_status=$?
13451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452 test $ac_status = 0; }; then
13453 if test yes = "$lt_cv_prog_gnu_ld"; then
13454 case `/usr/bin/file conftest.$ac_objext` in
13455 *32-bit*)
13456 LD="${LD-ld} -melf32bsmip"
13457 ;;
13458 *N32*)
13459 LD="${LD-ld} -melf32bmipn32"
13460 ;;
13461 *64-bit*)
13462 LD="${LD-ld} -melf64bmip"
13463 ;;
13464 esac
13465 else
13466 case `/usr/bin/file conftest.$ac_objext` in
13467 *32-bit*)
13468 LD="${LD-ld} -32"
13469 ;;
13470 *N32*)
13471 LD="${LD-ld} -n32"
13472 ;;
13473 *64-bit*)
13474 LD="${LD-ld} -64"
13475 ;;
13476 esac
13477 fi
13478 fi
13479 rm -rf conftest*
13480 ;;
13481
13482 mips64*-*linux*)
13483 # Find out what ABI is being produced by ac_compile, and set linker
13484 # options accordingly.
13485 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13487 (eval $ac_compile) 2>&5
13488 ac_status=$?
13489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13490 test $ac_status = 0; }; then
13491 emul=elf
13492 case `/usr/bin/file conftest.$ac_objext` in
13493 *32-bit*)
13494 emul="${emul}32"
13495 ;;
13496 *64-bit*)
13497 emul="${emul}64"
13498 ;;
13499 esac
13500 case `/usr/bin/file conftest.$ac_objext` in
13501 *MSB*)
13502 emul="${emul}btsmip"
13503 ;;
13504 *LSB*)
13505 emul="${emul}ltsmip"
13506 ;;
13507 esac
13508 case `/usr/bin/file conftest.$ac_objext` in
13509 *N32*)
13510 emul="${emul}n32"
13511 ;;
13512 esac
13513 LD="${LD-ld} -m $emul"
13514 fi
13515 rm -rf conftest*
13516 ;;
13517
13518 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13519 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13520 # Find out what ABI is being produced by ac_compile, and set linker
13521 # options accordingly. Note that the listed cases only cover the
13522 # situations where additional linker options are needed (such as when
13523 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13524 # vice versa); the common cases where no linker options are needed do
13525 # not appear in the list.
13526 echo 'int i;' > conftest.$ac_ext
13527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13528 (eval $ac_compile) 2>&5
13529 ac_status=$?
13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13531 test $ac_status = 0; }; then
13532 case `/usr/bin/file conftest.o` in
13533 *32-bit*)
13534 case $host in
13535 x86_64-*kfreebsd*-gnu)
13536 LD="${LD-ld} -m elf_i386_fbsd"
13537 ;;
13538 x86_64-*linux*)
13539 case `/usr/bin/file conftest.o` in
13540 *x86-64*)
13541 LD="${LD-ld} -m elf32_x86_64"
13542 ;;
13543 *)
13544 LD="${LD-ld} -m elf_i386"
13545 ;;
13546 esac
13547 ;;
13548 powerpc64le-*linux*)
13549 LD="${LD-ld} -m elf32lppclinux"
13550 ;;
13551 powerpc64-*linux*)
13552 LD="${LD-ld} -m elf32ppclinux"
13553 ;;
13554 s390x-*linux*)
13555 LD="${LD-ld} -m elf_s390"
13556 ;;
13557 sparc64-*linux*)
13558 LD="${LD-ld} -m elf32_sparc"
13559 ;;
13560 esac
13561 ;;
13562 *64-bit*)
13563 case $host in
13564 x86_64-*kfreebsd*-gnu)
13565 LD="${LD-ld} -m elf_x86_64_fbsd"
13566 ;;
13567 x86_64-*linux*)
13568 LD="${LD-ld} -m elf_x86_64"
13569 ;;
13570 powerpcle-*linux*)
13571 LD="${LD-ld} -m elf64lppc"
13572 ;;
13573 powerpc-*linux*)
13574 LD="${LD-ld} -m elf64ppc"
13575 ;;
13576 s390*-*linux*|s390*-*tpf*)
13577 LD="${LD-ld} -m elf64_s390"
13578 ;;
13579 sparc*-*linux*)
13580 LD="${LD-ld} -m elf64_sparc"
13581 ;;
13582 esac
13583 ;;
13584 esac
13585 fi
13586 rm -rf conftest*
13587 ;;
13588
13589 *-*-sco3.2v5*)
13590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13591 SAVE_CFLAGS=$CFLAGS
13592 CFLAGS="$CFLAGS -belf"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13594 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13595 if ${lt_cv_cc_needs_belf+:} false; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 ac_ext=c
13599 ac_cpp='$CPP $CPPFLAGS'
13600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13603
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606
13607 int
13608 main ()
13609 {
13610
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"; then :
13616 lt_cv_cc_needs_belf=yes
13617 else
13618 lt_cv_cc_needs_belf=no
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext \
13621 conftest$ac_exeext conftest.$ac_ext
13622 ac_ext=c
13623 ac_cpp='$CPP $CPPFLAGS'
13624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13627
13628 fi
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13630 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13631 if test yes != "$lt_cv_cc_needs_belf"; then
13632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13633 CFLAGS=$SAVE_CFLAGS
13634 fi
13635 ;;
13636 *-*solaris*)
13637 # Find out what ABI is being produced by ac_compile, and set linker
13638 # options accordingly.
13639 echo 'int i;' > conftest.$ac_ext
13640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13641 (eval $ac_compile) 2>&5
13642 ac_status=$?
13643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13644 test $ac_status = 0; }; then
13645 case `/usr/bin/file conftest.o` in
13646 *64-bit*)
13647 case $lt_cv_prog_gnu_ld in
13648 yes*)
13649 case $host in
13650 i?86-*-solaris*|x86_64-*-solaris*)
13651 LD="${LD-ld} -m elf_x86_64"
13652 ;;
13653 sparc*-*-solaris*)
13654 LD="${LD-ld} -m elf64_sparc"
13655 ;;
13656 esac
13657 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13658 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13659 LD=${LD-ld}_sol2
13660 fi
13661 ;;
13662 *)
13663 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13664 LD="${LD-ld} -64"
13665 fi
13666 ;;
13667 esac
13668 ;;
13669 esac
13670 fi
13671 rm -rf conftest*
13672 ;;
13673 esac
13674
13675 need_locks=$enable_libtool_lock
13676
13677 if test -n "$ac_tool_prefix"; then
13678 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13679 set dummy ${ac_tool_prefix}mt; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13681 $as_echo_n "checking for $ac_word... " >&6; }
13682 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 if test -n "$MANIFEST_TOOL"; then
13686 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13687 else
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13690 do
13691 IFS=$as_save_IFS
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 break 2
13698 fi
13699 done
13700 done
13701 IFS=$as_save_IFS
13702
13703 fi
13704 fi
13705 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13706 if test -n "$MANIFEST_TOOL"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13708 $as_echo "$MANIFEST_TOOL" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712 fi
13713
13714
13715 fi
13716 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13717 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13718 # Extract the first word of "mt", so it can be a program name with args.
13719 set dummy mt; ac_word=$2
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721 $as_echo_n "checking for $ac_word... " >&6; }
13722 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 if test -n "$ac_ct_MANIFEST_TOOL"; then
13726 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13727 else
13728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 for as_dir in $PATH
13730 do
13731 IFS=$as_save_IFS
13732 test -z "$as_dir" && as_dir=.
13733 for ac_exec_ext in '' $ac_executable_extensions; do
13734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13735 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13737 break 2
13738 fi
13739 done
13740 done
13741 IFS=$as_save_IFS
13742
13743 fi
13744 fi
13745 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13746 if test -n "$ac_ct_MANIFEST_TOOL"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13748 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13749 else
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752 fi
13753
13754 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13755 MANIFEST_TOOL=":"
13756 else
13757 case $cross_compiling:$ac_tool_warned in
13758 yes:)
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13761 ac_tool_warned=yes ;;
13762 esac
13763 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13764 fi
13765 else
13766 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13767 fi
13768
13769 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13771 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13772 if ${lt_cv_path_mainfest_tool+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 lt_cv_path_mainfest_tool=no
13776 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13777 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13778 cat conftest.err >&5
13779 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13780 lt_cv_path_mainfest_tool=yes
13781 fi
13782 rm -f conftest*
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13785 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13786 if test yes != "$lt_cv_path_mainfest_tool"; then
13787 MANIFEST_TOOL=:
13788 fi
13789
13790
13791
13792
13793
13794
13795 case $host_os in
13796 rhapsody* | darwin*)
13797 if test -n "$ac_tool_prefix"; then
13798 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13799 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13801 $as_echo_n "checking for $ac_word... " >&6; }
13802 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 if test -n "$DSYMUTIL"; then
13806 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13807 else
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13810 do
13811 IFS=$as_save_IFS
13812 test -z "$as_dir" && as_dir=.
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13815 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13817 break 2
13818 fi
13819 done
13820 done
13821 IFS=$as_save_IFS
13822
13823 fi
13824 fi
13825 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13826 if test -n "$DSYMUTIL"; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13828 $as_echo "$DSYMUTIL" >&6; }
13829 else
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13832 fi
13833
13834
13835 fi
13836 if test -z "$ac_cv_prog_DSYMUTIL"; then
13837 ac_ct_DSYMUTIL=$DSYMUTIL
13838 # Extract the first word of "dsymutil", so it can be a program name with args.
13839 set dummy dsymutil; ac_word=$2
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13841 $as_echo_n "checking for $ac_word... " >&6; }
13842 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 if test -n "$ac_ct_DSYMUTIL"; then
13846 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13847 else
13848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13850 do
13851 IFS=$as_save_IFS
13852 test -z "$as_dir" && as_dir=.
13853 for ac_exec_ext in '' $ac_executable_extensions; do
13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13857 break 2
13858 fi
13859 done
13860 done
13861 IFS=$as_save_IFS
13862
13863 fi
13864 fi
13865 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13866 if test -n "$ac_ct_DSYMUTIL"; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13868 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13872 fi
13873
13874 if test "x$ac_ct_DSYMUTIL" = x; then
13875 DSYMUTIL=":"
13876 else
13877 case $cross_compiling:$ac_tool_warned in
13878 yes:)
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13881 ac_tool_warned=yes ;;
13882 esac
13883 DSYMUTIL=$ac_ct_DSYMUTIL
13884 fi
13885 else
13886 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13887 fi
13888
13889 if test -n "$ac_tool_prefix"; then
13890 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13891 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13893 $as_echo_n "checking for $ac_word... " >&6; }
13894 if ${ac_cv_prog_NMEDIT+:} false; then :
13895 $as_echo_n "(cached) " >&6
13896 else
13897 if test -n "$NMEDIT"; then
13898 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13899 else
13900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13901 for as_dir in $PATH
13902 do
13903 IFS=$as_save_IFS
13904 test -z "$as_dir" && as_dir=.
13905 for ac_exec_ext in '' $ac_executable_extensions; do
13906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13907 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13909 break 2
13910 fi
13911 done
13912 done
13913 IFS=$as_save_IFS
13914
13915 fi
13916 fi
13917 NMEDIT=$ac_cv_prog_NMEDIT
13918 if test -n "$NMEDIT"; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13920 $as_echo "$NMEDIT" >&6; }
13921 else
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13924 fi
13925
13926
13927 fi
13928 if test -z "$ac_cv_prog_NMEDIT"; then
13929 ac_ct_NMEDIT=$NMEDIT
13930 # Extract the first word of "nmedit", so it can be a program name with args.
13931 set dummy nmedit; ac_word=$2
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13933 $as_echo_n "checking for $ac_word... " >&6; }
13934 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 if test -n "$ac_ct_NMEDIT"; then
13938 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13939 else
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13942 do
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13950 fi
13951 done
13952 done
13953 IFS=$as_save_IFS
13954
13955 fi
13956 fi
13957 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13958 if test -n "$ac_ct_NMEDIT"; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13960 $as_echo "$ac_ct_NMEDIT" >&6; }
13961 else
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 $as_echo "no" >&6; }
13964 fi
13965
13966 if test "x$ac_ct_NMEDIT" = x; then
13967 NMEDIT=":"
13968 else
13969 case $cross_compiling:$ac_tool_warned in
13970 yes:)
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13973 ac_tool_warned=yes ;;
13974 esac
13975 NMEDIT=$ac_ct_NMEDIT
13976 fi
13977 else
13978 NMEDIT="$ac_cv_prog_NMEDIT"
13979 fi
13980
13981 if test -n "$ac_tool_prefix"; then
13982 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13983 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13985 $as_echo_n "checking for $ac_word... " >&6; }
13986 if ${ac_cv_prog_LIPO+:} false; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 if test -n "$LIPO"; then
13990 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13991 else
13992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13993 for as_dir in $PATH
13994 do
13995 IFS=$as_save_IFS
13996 test -z "$as_dir" && as_dir=.
13997 for ac_exec_ext in '' $ac_executable_extensions; do
13998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13999 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14001 break 2
14002 fi
14003 done
14004 done
14005 IFS=$as_save_IFS
14006
14007 fi
14008 fi
14009 LIPO=$ac_cv_prog_LIPO
14010 if test -n "$LIPO"; then
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14012 $as_echo "$LIPO" >&6; }
14013 else
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 $as_echo "no" >&6; }
14016 fi
14017
14018
14019 fi
14020 if test -z "$ac_cv_prog_LIPO"; then
14021 ac_ct_LIPO=$LIPO
14022 # Extract the first word of "lipo", so it can be a program name with args.
14023 set dummy lipo; ac_word=$2
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025 $as_echo_n "checking for $ac_word... " >&6; }
14026 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14027 $as_echo_n "(cached) " >&6
14028 else
14029 if test -n "$ac_ct_LIPO"; then
14030 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14031 else
14032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033 for as_dir in $PATH
14034 do
14035 IFS=$as_save_IFS
14036 test -z "$as_dir" && as_dir=.
14037 for ac_exec_ext in '' $ac_executable_extensions; do
14038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039 ac_cv_prog_ac_ct_LIPO="lipo"
14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041 break 2
14042 fi
14043 done
14044 done
14045 IFS=$as_save_IFS
14046
14047 fi
14048 fi
14049 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14050 if test -n "$ac_ct_LIPO"; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14052 $as_echo "$ac_ct_LIPO" >&6; }
14053 else
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055 $as_echo "no" >&6; }
14056 fi
14057
14058 if test "x$ac_ct_LIPO" = x; then
14059 LIPO=":"
14060 else
14061 case $cross_compiling:$ac_tool_warned in
14062 yes:)
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14065 ac_tool_warned=yes ;;
14066 esac
14067 LIPO=$ac_ct_LIPO
14068 fi
14069 else
14070 LIPO="$ac_cv_prog_LIPO"
14071 fi
14072
14073 if test -n "$ac_tool_prefix"; then
14074 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14075 set dummy ${ac_tool_prefix}otool; ac_word=$2
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14077 $as_echo_n "checking for $ac_word... " >&6; }
14078 if ${ac_cv_prog_OTOOL+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 if test -n "$OTOOL"; then
14082 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14083 else
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14086 do
14087 IFS=$as_save_IFS
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 break 2
14094 fi
14095 done
14096 done
14097 IFS=$as_save_IFS
14098
14099 fi
14100 fi
14101 OTOOL=$ac_cv_prog_OTOOL
14102 if test -n "$OTOOL"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14104 $as_echo "$OTOOL" >&6; }
14105 else
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107 $as_echo "no" >&6; }
14108 fi
14109
14110
14111 fi
14112 if test -z "$ac_cv_prog_OTOOL"; then
14113 ac_ct_OTOOL=$OTOOL
14114 # Extract the first word of "otool", so it can be a program name with args.
14115 set dummy otool; ac_word=$2
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14117 $as_echo_n "checking for $ac_word... " >&6; }
14118 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 if test -n "$ac_ct_OTOOL"; then
14122 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14123 else
14124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14125 for as_dir in $PATH
14126 do
14127 IFS=$as_save_IFS
14128 test -z "$as_dir" && as_dir=.
14129 for ac_exec_ext in '' $ac_executable_extensions; do
14130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14131 ac_cv_prog_ac_ct_OTOOL="otool"
14132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14133 break 2
14134 fi
14135 done
14136 done
14137 IFS=$as_save_IFS
14138
14139 fi
14140 fi
14141 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14142 if test -n "$ac_ct_OTOOL"; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14144 $as_echo "$ac_ct_OTOOL" >&6; }
14145 else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147 $as_echo "no" >&6; }
14148 fi
14149
14150 if test "x$ac_ct_OTOOL" = x; then
14151 OTOOL=":"
14152 else
14153 case $cross_compiling:$ac_tool_warned in
14154 yes:)
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14157 ac_tool_warned=yes ;;
14158 esac
14159 OTOOL=$ac_ct_OTOOL
14160 fi
14161 else
14162 OTOOL="$ac_cv_prog_OTOOL"
14163 fi
14164
14165 if test -n "$ac_tool_prefix"; then
14166 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14167 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169 $as_echo_n "checking for $ac_word... " >&6; }
14170 if ${ac_cv_prog_OTOOL64+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test -n "$OTOOL64"; then
14174 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14175 else
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14178 do
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14186 fi
14187 done
14188 done
14189 IFS=$as_save_IFS
14190
14191 fi
14192 fi
14193 OTOOL64=$ac_cv_prog_OTOOL64
14194 if test -n "$OTOOL64"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14196 $as_echo "$OTOOL64" >&6; }
14197 else
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200 fi
14201
14202
14203 fi
14204 if test -z "$ac_cv_prog_OTOOL64"; then
14205 ac_ct_OTOOL64=$OTOOL64
14206 # Extract the first word of "otool64", so it can be a program name with args.
14207 set dummy otool64; ac_word=$2
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 if test -n "$ac_ct_OTOOL64"; then
14214 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14215 else
14216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14217 for as_dir in $PATH
14218 do
14219 IFS=$as_save_IFS
14220 test -z "$as_dir" && as_dir=.
14221 for ac_exec_ext in '' $ac_executable_extensions; do
14222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14223 ac_cv_prog_ac_ct_OTOOL64="otool64"
14224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14225 break 2
14226 fi
14227 done
14228 done
14229 IFS=$as_save_IFS
14230
14231 fi
14232 fi
14233 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14234 if test -n "$ac_ct_OTOOL64"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14236 $as_echo "$ac_ct_OTOOL64" >&6; }
14237 else
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14240 fi
14241
14242 if test "x$ac_ct_OTOOL64" = x; then
14243 OTOOL64=":"
14244 else
14245 case $cross_compiling:$ac_tool_warned in
14246 yes:)
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14249 ac_tool_warned=yes ;;
14250 esac
14251 OTOOL64=$ac_ct_OTOOL64
14252 fi
14253 else
14254 OTOOL64="$ac_cv_prog_OTOOL64"
14255 fi
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14284 $as_echo_n "checking for -single_module linker flag... " >&6; }
14285 if ${lt_cv_apple_cc_single_mod+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 lt_cv_apple_cc_single_mod=no
14289 if test -z "$LT_MULTI_MODULE"; then
14290 # By default we will add the -single_module flag. You can override
14291 # by either setting the environment variable LT_MULTI_MODULE
14292 # non-empty at configure time, or by adding -multi_module to the
14293 # link flags.
14294 rm -rf libconftest.dylib*
14295 echo "int foo(void){return 1;}" > conftest.c
14296 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14297 -dynamiclib -Wl,-single_module conftest.c" >&5
14298 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14299 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14300 _lt_result=$?
14301 # If there is a non-empty error log, and "single_module"
14302 # appears in it, assume the flag caused a linker warning
14303 if test -s conftest.err && $GREP single_module conftest.err; then
14304 cat conftest.err >&5
14305 # Otherwise, if the output was created with a 0 exit code from
14306 # the compiler, it worked.
14307 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14308 lt_cv_apple_cc_single_mod=yes
14309 else
14310 cat conftest.err >&5
14311 fi
14312 rm -rf libconftest.dylib*
14313 rm -f conftest.*
14314 fi
14315 fi
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14317 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14318
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14320 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14321 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 lt_cv_ld_exported_symbols_list=no
14325 save_LDFLAGS=$LDFLAGS
14326 echo "_main" > conftest.sym
14327 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14330
14331 int
14332 main ()
14333 {
14334
14335 ;
14336 return 0;
14337 }
14338 _ACEOF
14339 if ac_fn_c_try_link "$LINENO"; then :
14340 lt_cv_ld_exported_symbols_list=yes
14341 else
14342 lt_cv_ld_exported_symbols_list=no
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LDFLAGS=$save_LDFLAGS
14347
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14350 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14353 $as_echo_n "checking for -force_load linker flag... " >&6; }
14354 if ${lt_cv_ld_force_load+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 lt_cv_ld_force_load=no
14358 cat > conftest.c << _LT_EOF
14359 int forced_loaded() { return 2;}
14360 _LT_EOF
14361 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14362 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14363 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14364 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14365 echo "$RANLIB libconftest.a" >&5
14366 $RANLIB libconftest.a 2>&5
14367 cat > conftest.c << _LT_EOF
14368 int main() { return 0;}
14369 _LT_EOF
14370 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14371 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14372 _lt_result=$?
14373 if test -s conftest.err && $GREP force_load conftest.err; then
14374 cat conftest.err >&5
14375 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14376 lt_cv_ld_force_load=yes
14377 else
14378 cat conftest.err >&5
14379 fi
14380 rm -f conftest.err libconftest.a conftest conftest.c
14381 rm -rf conftest.dSYM
14382
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14385 $as_echo "$lt_cv_ld_force_load" >&6; }
14386 case $host_os in
14387 rhapsody* | darwin1.[012])
14388 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14389 darwin1.*)
14390 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14391 darwin*) # darwin 5.x on
14392 # if running on 10.5 or later, the deployment target defaults
14393 # to the OS version, if on x86, and 10.4, the deployment
14394 # target defaults to 10.4. Don't you love it?
14395 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14396 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14397 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14398 10.[012][,.]*)
14399 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14400 10.*)
14401 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14402 esac
14403 ;;
14404 esac
14405 if test yes = "$lt_cv_apple_cc_single_mod"; then
14406 _lt_dar_single_mod='$single_module'
14407 fi
14408 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14409 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14410 else
14411 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14412 fi
14413 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14414 _lt_dsymutil='~$DSYMUTIL $lib || :'
14415 else
14416 _lt_dsymutil=
14417 fi
14418 ;;
14419 esac
14420
14421 # func_munge_path_list VARIABLE PATH
14422 # -----------------------------------
14423 # VARIABLE is name of variable containing _space_ separated list of
14424 # directories to be munged by the contents of PATH, which is string
14425 # having a format:
14426 # "DIR[:DIR]:"
14427 # string "DIR[ DIR]" will be prepended to VARIABLE
14428 # ":DIR[:DIR]"
14429 # string "DIR[ DIR]" will be appended to VARIABLE
14430 # "DIRP[:DIRP]::[DIRA:]DIRA"
14431 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14432 # "DIRA[ DIRA]" will be appended to VARIABLE
14433 # "DIR[:DIR]"
14434 # VARIABLE will be replaced by "DIR[ DIR]"
14435 func_munge_path_list ()
14436 {
14437 case x$2 in
14438 x)
14439 ;;
14440 *:)
14441 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14442 ;;
14443 x:*)
14444 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14445 ;;
14446 *::*)
14447 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14448 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14449 ;;
14450 *)
14451 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14452 ;;
14453 esac
14454 }
14455
14456 for ac_header in dlfcn.h
14457 do :
14458 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14459 "
14460 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_DLFCN_H 1
14463 _ACEOF
14464
14465 fi
14466
14467 done
14468
14469
14470
14471
14472
14473 # Set options
14474
14475
14476
14477 enable_dlopen=no
14478
14479
14480 enable_win32_dll=no
14481
14482
14483 # Check whether --enable-shared was given.
14484 if test "${enable_shared+set}" = set; then :
14485 enableval=$enable_shared; p=${PACKAGE-default}
14486 case $enableval in
14487 yes) enable_shared=yes ;;
14488 no) enable_shared=no ;;
14489 *)
14490 enable_shared=no
14491 # Look at the argument we got. We use all the common list separators.
14492 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14493 for pkg in $enableval; do
14494 IFS=$lt_save_ifs
14495 if test "X$pkg" = "X$p"; then
14496 enable_shared=yes
14497 fi
14498 done
14499 IFS=$lt_save_ifs
14500 ;;
14501 esac
14502 else
14503 enable_shared=yes
14504 fi
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516 # Check whether --with-pic was given.
14517 if test "${with_pic+set}" = set; then :
14518 withval=$with_pic; lt_p=${PACKAGE-default}
14519 case $withval in
14520 yes|no) pic_mode=$withval ;;
14521 *)
14522 pic_mode=default
14523 # Look at the argument we got. We use all the common list separators.
14524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14525 for lt_pkg in $withval; do
14526 IFS=$lt_save_ifs
14527 if test "X$lt_pkg" = "X$lt_p"; then
14528 pic_mode=yes
14529 fi
14530 done
14531 IFS=$lt_save_ifs
14532 ;;
14533 esac
14534 else
14535 pic_mode=default
14536 fi
14537
14538
14539
14540
14541
14542
14543
14544
14545 # Check whether --enable-fast-install was given.
14546 if test "${enable_fast_install+set}" = set; then :
14547 enableval=$enable_fast_install; p=${PACKAGE-default}
14548 case $enableval in
14549 yes) enable_fast_install=yes ;;
14550 no) enable_fast_install=no ;;
14551 *)
14552 enable_fast_install=no
14553 # Look at the argument we got. We use all the common list separators.
14554 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14555 for pkg in $enableval; do
14556 IFS=$lt_save_ifs
14557 if test "X$pkg" = "X$p"; then
14558 enable_fast_install=yes
14559 fi
14560 done
14561 IFS=$lt_save_ifs
14562 ;;
14563 esac
14564 else
14565 enable_fast_install=yes
14566 fi
14567
14568
14569
14570
14571
14572
14573
14574
14575 shared_archive_member_spec=
14576 case $host,$enable_shared in
14577 power*-*-aix[5-9]*,yes)
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14579 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14580
14581 # Check whether --with-aix-soname was given.
14582 if test "${with_aix_soname+set}" = set; then :
14583 withval=$with_aix_soname; case $withval in
14584 aix|svr4|both)
14585 ;;
14586 *)
14587 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14588 ;;
14589 esac
14590 lt_cv_with_aix_soname=$with_aix_soname
14591 else
14592 if ${lt_cv_with_aix_soname+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595 lt_cv_with_aix_soname=aix
14596 fi
14597
14598 with_aix_soname=$lt_cv_with_aix_soname
14599 fi
14600
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14602 $as_echo "$with_aix_soname" >&6; }
14603 if test aix != "$with_aix_soname"; then
14604 # For the AIX way of multilib, we name the shared archive member
14605 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14606 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14607 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14608 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14609 if test 64 = "${OBJECT_MODE-32}"; then
14610 shared_archive_member_spec=shr_64
14611 else
14612 shared_archive_member_spec=shr
14613 fi
14614 fi
14615 ;;
14616 *)
14617 with_aix_soname=aix
14618 ;;
14619 esac
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630 # This can be used to rebuild libtool when needed
14631 LIBTOOL_DEPS=$ltmain
14632
14633 # Always use our own libtool.
14634 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665 test -z "$LN_S" && LN_S="ln -s"
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680 if test -n "${ZSH_VERSION+set}"; then
14681 setopt NO_GLOB_SUBST
14682 fi
14683
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14685 $as_echo_n "checking for objdir... " >&6; }
14686 if ${lt_cv_objdir+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 rm -f .libs 2>/dev/null
14690 mkdir .libs 2>/dev/null
14691 if test -d .libs; then
14692 lt_cv_objdir=.libs
14693 else
14694 # MS-DOS does not allow filenames that begin with a dot.
14695 lt_cv_objdir=_libs
14696 fi
14697 rmdir .libs 2>/dev/null
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14700 $as_echo "$lt_cv_objdir" >&6; }
14701 objdir=$lt_cv_objdir
14702
14703
14704
14705
14706
14707 cat >>confdefs.h <<_ACEOF
14708 #define LT_OBJDIR "$lt_cv_objdir/"
14709 _ACEOF
14710
14711
14712
14713
14714 case $host_os in
14715 aix3*)
14716 # AIX sometimes has problems with the GCC collect2 program. For some
14717 # reason, if we set the COLLECT_NAMES environment variable, the problems
14718 # vanish in a puff of smoke.
14719 if test set != "${COLLECT_NAMES+set}"; then
14720 COLLECT_NAMES=
14721 export COLLECT_NAMES
14722 fi
14723 ;;
14724 esac
14725
14726 # Global variables:
14727 ofile=libtool
14728 can_build_shared=yes
14729
14730 # All known linkers require a '.a' archive for static linking (except MSVC,
14731 # which needs '.lib').
14732 libext=a
14733
14734 with_gnu_ld=$lt_cv_prog_gnu_ld
14735
14736 old_CC=$CC
14737 old_CFLAGS=$CFLAGS
14738
14739 # Set sane defaults for various variables
14740 test -z "$CC" && CC=cc
14741 test -z "$LTCC" && LTCC=$CC
14742 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14743 test -z "$LD" && LD=ld
14744 test -z "$ac_objext" && ac_objext=o
14745
14746 func_cc_basename $compiler
14747 cc_basename=$func_cc_basename_result
14748
14749
14750 # Only perform the check for file, if the check method requires it
14751 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14752 case $deplibs_check_method in
14753 file_magic*)
14754 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14756 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14757 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14758 $as_echo_n "(cached) " >&6
14759 else
14760 case $MAGIC_CMD in
14761 [\\/*] | ?:[\\/]*)
14762 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14763 ;;
14764 *)
14765 lt_save_MAGIC_CMD=$MAGIC_CMD
14766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14768 for ac_dir in $ac_dummy; do
14769 IFS=$lt_save_ifs
14770 test -z "$ac_dir" && ac_dir=.
14771 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14772 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14773 if test -n "$file_magic_test_file"; then
14774 case $deplibs_check_method in
14775 "file_magic "*)
14776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14777 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14779 $EGREP "$file_magic_regex" > /dev/null; then
14780 :
14781 else
14782 cat <<_LT_EOF 1>&2
14783
14784 *** Warning: the command libtool uses to detect shared libraries,
14785 *** $file_magic_cmd, produces output that libtool cannot recognize.
14786 *** The result is that libtool may fail to recognize shared libraries
14787 *** as such. This will affect the creation of libtool libraries that
14788 *** depend on shared libraries, but programs linked with such libtool
14789 *** libraries will work regardless of this problem. Nevertheless, you
14790 *** may want to report the problem to your system manager and/or to
14791 *** bug-libtool (at] gnu.org
14792
14793 _LT_EOF
14794 fi ;;
14795 esac
14796 fi
14797 break
14798 fi
14799 done
14800 IFS=$lt_save_ifs
14801 MAGIC_CMD=$lt_save_MAGIC_CMD
14802 ;;
14803 esac
14804 fi
14805
14806 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14807 if test -n "$MAGIC_CMD"; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14809 $as_echo "$MAGIC_CMD" >&6; }
14810 else
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812 $as_echo "no" >&6; }
14813 fi
14814
14815
14816
14817
14818
14819 if test -z "$lt_cv_path_MAGIC_CMD"; then
14820 if test -n "$ac_tool_prefix"; then
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14822 $as_echo_n "checking for file... " >&6; }
14823 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 case $MAGIC_CMD in
14827 [\\/*] | ?:[\\/]*)
14828 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14829 ;;
14830 *)
14831 lt_save_MAGIC_CMD=$MAGIC_CMD
14832 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14833 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14834 for ac_dir in $ac_dummy; do
14835 IFS=$lt_save_ifs
14836 test -z "$ac_dir" && ac_dir=.
14837 if test -f "$ac_dir/file"; then
14838 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14839 if test -n "$file_magic_test_file"; then
14840 case $deplibs_check_method in
14841 "file_magic "*)
14842 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14843 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14845 $EGREP "$file_magic_regex" > /dev/null; then
14846 :
14847 else
14848 cat <<_LT_EOF 1>&2
14849
14850 *** Warning: the command libtool uses to detect shared libraries,
14851 *** $file_magic_cmd, produces output that libtool cannot recognize.
14852 *** The result is that libtool may fail to recognize shared libraries
14853 *** as such. This will affect the creation of libtool libraries that
14854 *** depend on shared libraries, but programs linked with such libtool
14855 *** libraries will work regardless of this problem. Nevertheless, you
14856 *** may want to report the problem to your system manager and/or to
14857 *** bug-libtool (at] gnu.org
14858
14859 _LT_EOF
14860 fi ;;
14861 esac
14862 fi
14863 break
14864 fi
14865 done
14866 IFS=$lt_save_ifs
14867 MAGIC_CMD=$lt_save_MAGIC_CMD
14868 ;;
14869 esac
14870 fi
14871
14872 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14873 if test -n "$MAGIC_CMD"; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14875 $as_echo "$MAGIC_CMD" >&6; }
14876 else
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14878 $as_echo "no" >&6; }
14879 fi
14880
14881
14882 else
14883 MAGIC_CMD=:
14884 fi
14885 fi
14886
14887 fi
14888 ;;
14889 esac
14890
14891 # Use C for the default configuration in the libtool script
14892
14893 lt_save_CC=$CC
14894 ac_ext=c
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899
14900
14901 # Source file extension for C test sources.
14902 ac_ext=c
14903
14904 # Object file extension for compiled C test sources.
14905 objext=o
14906 objext=$objext
14907
14908 # Code to be used in simple compile tests
14909 lt_simple_compile_test_code="int some_variable = 0;"
14910
14911 # Code to be used in simple link tests
14912 lt_simple_link_test_code='int main(){return(0);}'
14913
14914
14915
14916
14917
14918
14919
14920 # If no C compiler was specified, use CC.
14921 LTCC=${LTCC-"$CC"}
14922
14923 # If no C compiler flags were specified, use CFLAGS.
14924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14925
14926 # Allow CC to be a program name with arguments.
14927 compiler=$CC
14928
14929 # Save the default compiler, since it gets overwritten when the other
14930 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14931 compiler_DEFAULT=$CC
14932
14933 # save warnings/boilerplate of simple test code
14934 ac_outfile=conftest.$ac_objext
14935 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14936 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14937 _lt_compiler_boilerplate=`cat conftest.err`
14938 $RM conftest*
14939
14940 ac_outfile=conftest.$ac_objext
14941 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14942 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14943 _lt_linker_boilerplate=`cat conftest.err`
14944 $RM -r conftest*
14945
14946
14947 ## CAVEAT EMPTOR:
14948 ## There is no encapsulation within the following macros, do not change
14949 ## the running order or otherwise move them around unless you know exactly
14950 ## what you are doing...
14951 if test -n "$compiler"; then
14952
14953 lt_prog_compiler_no_builtin_flag=
14954
14955 if test yes = "$GCC"; then
14956 case $cc_basename in
14957 nvcc*)
14958 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14959 *)
14960 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14961 esac
14962
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14964 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14965 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 lt_cv_prog_compiler_rtti_exceptions=no
14969 ac_outfile=conftest.$ac_objext
14970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14971 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14972 # Insert the option either (1) after the last *FLAGS variable, or
14973 # (2) before a word containing "conftest.", or (3) at the end.
14974 # Note that $ac_compile itself does not contain backslashes and begins
14975 # with a dollar sign (not a hyphen), so the echo should work correctly.
14976 # The option is referenced via a variable to avoid confusing sed.
14977 lt_compile=`echo "$ac_compile" | $SED \
14978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14980 -e 's:$: $lt_compiler_flag:'`
14981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14982 (eval "$lt_compile" 2>conftest.err)
14983 ac_status=$?
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 if (exit $ac_status) && test -s "$ac_outfile"; then
14987 # The compiler can only warn and ignore the option if not recognized
14988 # So say no if there are warnings other than the usual output.
14989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14992 lt_cv_prog_compiler_rtti_exceptions=yes
14993 fi
14994 fi
14995 $RM conftest*
14996
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14999 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15000
15001 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15002 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15003 else
15004 :
15005 fi
15006
15007 fi
15008
15009
15010
15011
15012
15013
15014 lt_prog_compiler_wl=
15015 lt_prog_compiler_pic=
15016 lt_prog_compiler_static=
15017
15018
15019 if test yes = "$GCC"; then
15020 lt_prog_compiler_wl='-Wl,'
15021 lt_prog_compiler_static='-static'
15022
15023 case $host_os in
15024 aix*)
15025 # All AIX code is PIC.
15026 if test ia64 = "$host_cpu"; then
15027 # AIX 5 now supports IA64 processor
15028 lt_prog_compiler_static='-Bstatic'
15029 fi
15030 lt_prog_compiler_pic='-fPIC'
15031 ;;
15032
15033 amigaos*)
15034 case $host_cpu in
15035 powerpc)
15036 # see comment about AmigaOS4 .so support
15037 lt_prog_compiler_pic='-fPIC'
15038 ;;
15039 m68k)
15040 # FIXME: we need at least 68020 code to build shared libraries, but
15041 # adding the '-m68020' flag to GCC prevents building anything better,
15042 # like '-m68040'.
15043 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15044 ;;
15045 esac
15046 ;;
15047
15048 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15049 # PIC is the default for these OSes.
15050 ;;
15051
15052 mingw* | cygwin* | pw32* | os2* | cegcc*)
15053 # This hack is so that the source file can tell whether it is being
15054 # built for inclusion in a dll (and should export symbols for example).
15055 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15056 # (--disable-auto-import) libraries
15057 lt_prog_compiler_pic='-DDLL_EXPORT'
15058 case $host_os in
15059 os2*)
15060 lt_prog_compiler_static='$wl-static'
15061 ;;
15062 esac
15063 ;;
15064
15065 darwin* | rhapsody*)
15066 # PIC is the default on this platform
15067 # Common symbols not allowed in MH_DYLIB files
15068 lt_prog_compiler_pic='-fno-common'
15069 ;;
15070
15071 haiku*)
15072 # PIC is the default for Haiku.
15073 # The "-static" flag exists, but is broken.
15074 lt_prog_compiler_static=
15075 ;;
15076
15077 hpux*)
15078 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15079 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15080 # sets the default TLS model and affects inlining.
15081 case $host_cpu in
15082 hppa*64*)
15083 # +Z the default
15084 ;;
15085 *)
15086 lt_prog_compiler_pic='-fPIC'
15087 ;;
15088 esac
15089 ;;
15090
15091 interix[3-9]*)
15092 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15093 # Instead, we relocate shared libraries at runtime.
15094 ;;
15095
15096 msdosdjgpp*)
15097 # Just because we use GCC doesn't mean we suddenly get shared libraries
15098 # on systems that don't support them.
15099 lt_prog_compiler_can_build_shared=no
15100 enable_shared=no
15101 ;;
15102
15103 *nto* | *qnx*)
15104 # QNX uses GNU C++, but need to define -shared option too, otherwise
15105 # it will coredump.
15106 lt_prog_compiler_pic='-fPIC -shared'
15107 ;;
15108
15109 sysv4*MP*)
15110 if test -d /usr/nec; then
15111 lt_prog_compiler_pic=-Kconform_pic
15112 fi
15113 ;;
15114
15115 *)
15116 lt_prog_compiler_pic='-fPIC'
15117 ;;
15118 esac
15119
15120 case $cc_basename in
15121 nvcc*) # Cuda Compiler Driver 2.2
15122 lt_prog_compiler_wl='-Xlinker '
15123 if test -n "$lt_prog_compiler_pic"; then
15124 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15125 fi
15126 ;;
15127 esac
15128 else
15129 # PORTME Check for flag to pass linker flags through the system compiler.
15130 case $host_os in
15131 aix*)
15132 lt_prog_compiler_wl='-Wl,'
15133 if test ia64 = "$host_cpu"; then
15134 # AIX 5 now supports IA64 processor
15135 lt_prog_compiler_static='-Bstatic'
15136 else
15137 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15138 fi
15139 ;;
15140
15141 darwin* | rhapsody*)
15142 # PIC is the default on this platform
15143 # Common symbols not allowed in MH_DYLIB files
15144 lt_prog_compiler_pic='-fno-common'
15145 case $cc_basename in
15146 nagfor*)
15147 # NAG Fortran compiler
15148 lt_prog_compiler_wl='-Wl,-Wl,,'
15149 lt_prog_compiler_pic='-PIC'
15150 lt_prog_compiler_static='-Bstatic'
15151 ;;
15152 esac
15153 ;;
15154
15155 mingw* | cygwin* | pw32* | os2* | cegcc*)
15156 # This hack is so that the source file can tell whether it is being
15157 # built for inclusion in a dll (and should export symbols for example).
15158 lt_prog_compiler_pic='-DDLL_EXPORT'
15159 case $host_os in
15160 os2*)
15161 lt_prog_compiler_static='$wl-static'
15162 ;;
15163 esac
15164 ;;
15165
15166 hpux9* | hpux10* | hpux11*)
15167 lt_prog_compiler_wl='-Wl,'
15168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15169 # not for PA HP-UX.
15170 case $host_cpu in
15171 hppa*64*|ia64*)
15172 # +Z the default
15173 ;;
15174 *)
15175 lt_prog_compiler_pic='+Z'
15176 ;;
15177 esac
15178 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15179 lt_prog_compiler_static='$wl-a ${wl}archive'
15180 ;;
15181
15182 irix5* | irix6* | nonstopux*)
15183 lt_prog_compiler_wl='-Wl,'
15184 # PIC (with -KPIC) is the default.
15185 lt_prog_compiler_static='-non_shared'
15186 ;;
15187
15188 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15189 case $cc_basename in
15190 # old Intel for x86_64, which still supported -KPIC.
15191 ecc*)
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_pic='-KPIC'
15194 lt_prog_compiler_static='-static'
15195 ;;
15196 # icc used to be incompatible with GCC.
15197 # ICC 10 doesn't accept -KPIC any more.
15198 icc* | ifort*)
15199 lt_prog_compiler_wl='-Wl,'
15200 lt_prog_compiler_pic='-fPIC'
15201 lt_prog_compiler_static='-static'
15202 ;;
15203 # Lahey Fortran 8.1.
15204 lf95*)
15205 lt_prog_compiler_wl='-Wl,'
15206 lt_prog_compiler_pic='--shared'
15207 lt_prog_compiler_static='--static'
15208 ;;
15209 nagfor*)
15210 # NAG Fortran compiler
15211 lt_prog_compiler_wl='-Wl,-Wl,,'
15212 lt_prog_compiler_pic='-PIC'
15213 lt_prog_compiler_static='-Bstatic'
15214 ;;
15215 tcc*)
15216 # Fabrice Bellard et al's Tiny C Compiler
15217 lt_prog_compiler_wl='-Wl,'
15218 lt_prog_compiler_pic='-fPIC'
15219 lt_prog_compiler_static='-static'
15220 ;;
15221 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15222 # Portland Group compilers (*not* the Pentium gcc compiler,
15223 # which looks to be a dead project)
15224 lt_prog_compiler_wl='-Wl,'
15225 lt_prog_compiler_pic='-fpic'
15226 lt_prog_compiler_static='-Bstatic'
15227 ;;
15228 ccc*)
15229 lt_prog_compiler_wl='-Wl,'
15230 # All Alpha code is PIC.
15231 lt_prog_compiler_static='-non_shared'
15232 ;;
15233 xl* | bgxl* | bgf* | mpixl*)
15234 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15235 lt_prog_compiler_wl='-Wl,'
15236 lt_prog_compiler_pic='-qpic'
15237 lt_prog_compiler_static='-qstaticlink'
15238 ;;
15239 *)
15240 case `$CC -V 2>&1 | sed 5q` in
15241 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15242 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15243 lt_prog_compiler_pic='-KPIC'
15244 lt_prog_compiler_static='-Bstatic'
15245 lt_prog_compiler_wl=''
15246 ;;
15247 *Sun\ F* | *Sun*Fortran*)
15248 lt_prog_compiler_pic='-KPIC'
15249 lt_prog_compiler_static='-Bstatic'
15250 lt_prog_compiler_wl='-Qoption ld '
15251 ;;
15252 *Sun\ C*)
15253 # Sun C 5.9
15254 lt_prog_compiler_pic='-KPIC'
15255 lt_prog_compiler_static='-Bstatic'
15256 lt_prog_compiler_wl='-Wl,'
15257 ;;
15258 *Intel*\ [CF]*Compiler*)
15259 lt_prog_compiler_wl='-Wl,'
15260 lt_prog_compiler_pic='-fPIC'
15261 lt_prog_compiler_static='-static'
15262 ;;
15263 *Portland\ Group*)
15264 lt_prog_compiler_wl='-Wl,'
15265 lt_prog_compiler_pic='-fpic'
15266 lt_prog_compiler_static='-Bstatic'
15267 ;;
15268 esac
15269 ;;
15270 esac
15271 ;;
15272
15273 newsos6)
15274 lt_prog_compiler_pic='-KPIC'
15275 lt_prog_compiler_static='-Bstatic'
15276 ;;
15277
15278 *nto* | *qnx*)
15279 # QNX uses GNU C++, but need to define -shared option too, otherwise
15280 # it will coredump.
15281 lt_prog_compiler_pic='-fPIC -shared'
15282 ;;
15283
15284 osf3* | osf4* | osf5*)
15285 lt_prog_compiler_wl='-Wl,'
15286 # All OSF/1 code is PIC.
15287 lt_prog_compiler_static='-non_shared'
15288 ;;
15289
15290 rdos*)
15291 lt_prog_compiler_static='-non_shared'
15292 ;;
15293
15294 solaris*)
15295 lt_prog_compiler_pic='-KPIC'
15296 lt_prog_compiler_static='-Bstatic'
15297 case $cc_basename in
15298 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15299 lt_prog_compiler_wl='-Qoption ld ';;
15300 *)
15301 lt_prog_compiler_wl='-Wl,';;
15302 esac
15303 ;;
15304
15305 sunos4*)
15306 lt_prog_compiler_wl='-Qoption ld '
15307 lt_prog_compiler_pic='-PIC'
15308 lt_prog_compiler_static='-Bstatic'
15309 ;;
15310
15311 sysv4 | sysv4.2uw2* | sysv4.3*)
15312 lt_prog_compiler_wl='-Wl,'
15313 lt_prog_compiler_pic='-KPIC'
15314 lt_prog_compiler_static='-Bstatic'
15315 ;;
15316
15317 sysv4*MP*)
15318 if test -d /usr/nec; then
15319 lt_prog_compiler_pic='-Kconform_pic'
15320 lt_prog_compiler_static='-Bstatic'
15321 fi
15322 ;;
15323
15324 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15325 lt_prog_compiler_wl='-Wl,'
15326 lt_prog_compiler_pic='-KPIC'
15327 lt_prog_compiler_static='-Bstatic'
15328 ;;
15329
15330 unicos*)
15331 lt_prog_compiler_wl='-Wl,'
15332 lt_prog_compiler_can_build_shared=no
15333 ;;
15334
15335 uts4*)
15336 lt_prog_compiler_pic='-pic'
15337 lt_prog_compiler_static='-Bstatic'
15338 ;;
15339
15340 *)
15341 lt_prog_compiler_can_build_shared=no
15342 ;;
15343 esac
15344 fi
15345
15346 case $host_os in
15347 # For platforms that do not support PIC, -DPIC is meaningless:
15348 *djgpp*)
15349 lt_prog_compiler_pic=
15350 ;;
15351 *)
15352 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15353 ;;
15354 esac
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15358 if ${lt_cv_prog_compiler_pic+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15362 fi
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15364 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15365 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15366
15367 #
15368 # Check to make sure the PIC flag actually works.
15369 #
15370 if test -n "$lt_prog_compiler_pic"; then
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15372 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15373 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376 lt_cv_prog_compiler_pic_works=no
15377 ac_outfile=conftest.$ac_objext
15378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15379 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15380 # Insert the option either (1) after the last *FLAGS variable, or
15381 # (2) before a word containing "conftest.", or (3) at the end.
15382 # Note that $ac_compile itself does not contain backslashes and begins
15383 # with a dollar sign (not a hyphen), so the echo should work correctly.
15384 # The option is referenced via a variable to avoid confusing sed.
15385 lt_compile=`echo "$ac_compile" | $SED \
15386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15388 -e 's:$: $lt_compiler_flag:'`
15389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15390 (eval "$lt_compile" 2>conftest.err)
15391 ac_status=$?
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 if (exit $ac_status) && test -s "$ac_outfile"; then
15395 # The compiler can only warn and ignore the option if not recognized
15396 # So say no if there are warnings other than the usual output.
15397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15400 lt_cv_prog_compiler_pic_works=yes
15401 fi
15402 fi
15403 $RM conftest*
15404
15405 fi
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15407 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15408
15409 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15410 case $lt_prog_compiler_pic in
15411 "" | " "*) ;;
15412 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15413 esac
15414 else
15415 lt_prog_compiler_pic=
15416 lt_prog_compiler_can_build_shared=no
15417 fi
15418
15419 fi
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431 #
15432 # Check to make sure the static flag actually works.
15433 #
15434 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15436 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15437 if ${lt_cv_prog_compiler_static_works+:} false; then :
15438 $as_echo_n "(cached) " >&6
15439 else
15440 lt_cv_prog_compiler_static_works=no
15441 save_LDFLAGS=$LDFLAGS
15442 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15443 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15445 # The linker can only warn and ignore the option if not recognized
15446 # So say no if there are warnings
15447 if test -s conftest.err; then
15448 # Append any errors to the config.log.
15449 cat conftest.err 1>&5
15450 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15452 if diff conftest.exp conftest.er2 >/dev/null; then
15453 lt_cv_prog_compiler_static_works=yes
15454 fi
15455 else
15456 lt_cv_prog_compiler_static_works=yes
15457 fi
15458 fi
15459 $RM -r conftest*
15460 LDFLAGS=$save_LDFLAGS
15461
15462 fi
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15464 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15465
15466 if test yes = "$lt_cv_prog_compiler_static_works"; then
15467 :
15468 else
15469 lt_prog_compiler_static=
15470 fi
15471
15472
15473
15474
15475
15476
15477
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15480 if ${lt_cv_prog_compiler_c_o+:} false; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 lt_cv_prog_compiler_c_o=no
15484 $RM -r conftest 2>/dev/null
15485 mkdir conftest
15486 cd conftest
15487 mkdir out
15488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15489
15490 lt_compiler_flag="-o out/conftest2.$ac_objext"
15491 # Insert the option either (1) after the last *FLAGS variable, or
15492 # (2) before a word containing "conftest.", or (3) at the end.
15493 # Note that $ac_compile itself does not contain backslashes and begins
15494 # with a dollar sign (not a hyphen), so the echo should work correctly.
15495 lt_compile=`echo "$ac_compile" | $SED \
15496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15498 -e 's:$: $lt_compiler_flag:'`
15499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15500 (eval "$lt_compile" 2>out/conftest.err)
15501 ac_status=$?
15502 cat out/conftest.err >&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15505 then
15506 # The compiler can only warn and ignore the option if not recognized
15507 # So say no if there are warnings
15508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15511 lt_cv_prog_compiler_c_o=yes
15512 fi
15513 fi
15514 chmod u+w . 2>&5
15515 $RM conftest*
15516 # SGI C++ compiler will create directory out/ii_files/ for
15517 # template instantiation
15518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15519 $RM out/* && rmdir out
15520 cd ..
15521 $RM -r conftest
15522 $RM conftest*
15523
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15526 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15527
15528
15529
15530
15531
15532
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15535 if ${lt_cv_prog_compiler_c_o+:} false; then :
15536 $as_echo_n "(cached) " >&6
15537 else
15538 lt_cv_prog_compiler_c_o=no
15539 $RM -r conftest 2>/dev/null
15540 mkdir conftest
15541 cd conftest
15542 mkdir out
15543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15544
15545 lt_compiler_flag="-o out/conftest2.$ac_objext"
15546 # Insert the option either (1) after the last *FLAGS variable, or
15547 # (2) before a word containing "conftest.", or (3) at the end.
15548 # Note that $ac_compile itself does not contain backslashes and begins
15549 # with a dollar sign (not a hyphen), so the echo should work correctly.
15550 lt_compile=`echo "$ac_compile" | $SED \
15551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15553 -e 's:$: $lt_compiler_flag:'`
15554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15555 (eval "$lt_compile" 2>out/conftest.err)
15556 ac_status=$?
15557 cat out/conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15560 then
15561 # The compiler can only warn and ignore the option if not recognized
15562 # So say no if there are warnings
15563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15566 lt_cv_prog_compiler_c_o=yes
15567 fi
15568 fi
15569 chmod u+w . 2>&5
15570 $RM conftest*
15571 # SGI C++ compiler will create directory out/ii_files/ for
15572 # template instantiation
15573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15574 $RM out/* && rmdir out
15575 cd ..
15576 $RM -r conftest
15577 $RM conftest*
15578
15579 fi
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15581 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15582
15583
15584
15585
15586 hard_links=nottested
15587 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15588 # do not overwrite the value of need_locks provided by the user
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15590 $as_echo_n "checking if we can lock with hard links... " >&6; }
15591 hard_links=yes
15592 $RM conftest*
15593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15594 touch conftest.a
15595 ln conftest.a conftest.b 2>&5 || hard_links=no
15596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15598 $as_echo "$hard_links" >&6; }
15599 if test no = "$hard_links"; then
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15601 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15602 need_locks=warn
15603 fi
15604 else
15605 need_locks=no
15606 fi
15607
15608
15609
15610
15611
15612
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15614 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15615
15616 runpath_var=
15617 allow_undefined_flag=
15618 always_export_symbols=no
15619 archive_cmds=
15620 archive_expsym_cmds=
15621 compiler_needs_object=no
15622 enable_shared_with_static_runtimes=no
15623 export_dynamic_flag_spec=
15624 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15625 hardcode_automatic=no
15626 hardcode_direct=no
15627 hardcode_direct_absolute=no
15628 hardcode_libdir_flag_spec=
15629 hardcode_libdir_separator=
15630 hardcode_minus_L=no
15631 hardcode_shlibpath_var=unsupported
15632 inherit_rpath=no
15633 link_all_deplibs=unknown
15634 module_cmds=
15635 module_expsym_cmds=
15636 old_archive_from_new_cmds=
15637 old_archive_from_expsyms_cmds=
15638 thread_safe_flag_spec=
15639 whole_archive_flag_spec=
15640 # include_expsyms should be a list of space-separated symbols to be *always*
15641 # included in the symbol list
15642 include_expsyms=
15643 # exclude_expsyms can be an extended regexp of symbols to exclude
15644 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15645 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15646 # as well as any symbol that contains 'd'.
15647 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15649 # platforms (ab)use it in PIC code, but their linkers get confused if
15650 # the symbol is explicitly referenced. Since portable code cannot
15651 # rely on this symbol name, it's probably fine to never include it in
15652 # preloaded symbol tables.
15653 # Exclude shared library initialization/finalization symbols.
15654 extract_expsyms_cmds=
15655
15656 case $host_os in
15657 cygwin* | mingw* | pw32* | cegcc*)
15658 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15659 # When not using gcc, we currently assume that we are using
15660 # Microsoft Visual C++.
15661 if test yes != "$GCC"; then
15662 with_gnu_ld=no
15663 fi
15664 ;;
15665 interix*)
15666 # we just hope/assume this is gcc and not c89 (= MSVC++)
15667 with_gnu_ld=yes
15668 ;;
15669 openbsd* | bitrig*)
15670 with_gnu_ld=no
15671 ;;
15672 esac
15673
15674 ld_shlibs=yes
15675
15676 # On some targets, GNU ld is compatible enough with the native linker
15677 # that we're better off using the native interface for both.
15678 lt_use_gnu_ld_interface=no
15679 if test yes = "$with_gnu_ld"; then
15680 case $host_os in
15681 aix*)
15682 # The AIX port of GNU ld has always aspired to compatibility
15683 # with the native linker. However, as the warning in the GNU ld
15684 # block says, versions before 2.19.5* couldn't really create working
15685 # shared libraries, regardless of the interface used.
15686 case `$LD -v 2>&1` in
15687 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15688 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15689 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15690 *)
15691 lt_use_gnu_ld_interface=yes
15692 ;;
15693 esac
15694 ;;
15695 *)
15696 lt_use_gnu_ld_interface=yes
15697 ;;
15698 esac
15699 fi
15700
15701 if test yes = "$lt_use_gnu_ld_interface"; then
15702 # If archive_cmds runs LD, not CC, wlarc should be empty
15703 wlarc='$wl'
15704
15705 # Set some defaults for GNU ld with shared library support. These
15706 # are reset later if shared libraries are not supported. Putting them
15707 # here allows them to be overridden if necessary.
15708 runpath_var=LD_RUN_PATH
15709 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15710 export_dynamic_flag_spec='$wl--export-dynamic'
15711 # ancient GNU ld didn't support --whole-archive et. al.
15712 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15713 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15714 else
15715 whole_archive_flag_spec=
15716 fi
15717 supports_anon_versioning=no
15718 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15719 *GNU\ gold*) supports_anon_versioning=yes ;;
15720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15723 *\ 2.11.*) ;; # other 2.11 versions
15724 *) supports_anon_versioning=yes ;;
15725 esac
15726
15727 # See if GNU ld supports shared libraries.
15728 case $host_os in
15729 aix[3-9]*)
15730 # On AIX/PPC, the GNU linker is very broken
15731 if test ia64 != "$host_cpu"; then
15732 ld_shlibs=no
15733 cat <<_LT_EOF 1>&2
15734
15735 *** Warning: the GNU linker, at least up to release 2.19, is reported
15736 *** to be unable to reliably create shared libraries on AIX.
15737 *** Therefore, libtool is disabling shared libraries support. If you
15738 *** really care for shared libraries, you may want to install binutils
15739 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15740 *** You will then need to restart the configuration process.
15741
15742 _LT_EOF
15743 fi
15744 ;;
15745
15746 amigaos*)
15747 case $host_cpu in
15748 powerpc)
15749 # see comment about AmigaOS4 .so support
15750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15751 archive_expsym_cmds=''
15752 ;;
15753 m68k)
15754 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)'
15755 hardcode_libdir_flag_spec='-L$libdir'
15756 hardcode_minus_L=yes
15757 ;;
15758 esac
15759 ;;
15760
15761 beos*)
15762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15763 allow_undefined_flag=unsupported
15764 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15765 # support --undefined. This deserves some investigation. FIXME
15766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15767 else
15768 ld_shlibs=no
15769 fi
15770 ;;
15771
15772 cygwin* | mingw* | pw32* | cegcc*)
15773 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15774 # as there is no search path for DLLs.
15775 hardcode_libdir_flag_spec='-L$libdir'
15776 export_dynamic_flag_spec='$wl--export-all-symbols'
15777 allow_undefined_flag=unsupported
15778 always_export_symbols=no
15779 enable_shared_with_static_runtimes=yes
15780 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'
15781 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15782
15783 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15785 # If the export-symbols file already is a .def file, use it as
15786 # is; otherwise, prepend EXPORTS...
15787 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15788 cp $export_symbols $output_objdir/$soname.def;
15789 else
15790 echo EXPORTS > $output_objdir/$soname.def;
15791 cat $export_symbols >> $output_objdir/$soname.def;
15792 fi~
15793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15794 else
15795 ld_shlibs=no
15796 fi
15797 ;;
15798
15799 haiku*)
15800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15801 link_all_deplibs=yes
15802 ;;
15803
15804 os2*)
15805 hardcode_libdir_flag_spec='-L$libdir'
15806 hardcode_minus_L=yes
15807 allow_undefined_flag=unsupported
15808 shrext_cmds=.dll
15809 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15810 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15811 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15812 $ECHO EXPORTS >> $output_objdir/$libname.def~
15813 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15814 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15815 emximp -o $lib $output_objdir/$libname.def'
15816 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15817 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15818 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15819 $ECHO EXPORTS >> $output_objdir/$libname.def~
15820 prefix_cmds="$SED"~
15821 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15822 prefix_cmds="$prefix_cmds -e 1d";
15823 fi~
15824 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15825 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15826 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15827 emximp -o $lib $output_objdir/$libname.def'
15828 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15829 enable_shared_with_static_runtimes=yes
15830 file_list_spec='@'
15831 ;;
15832
15833 interix[3-9]*)
15834 hardcode_direct=no
15835 hardcode_shlibpath_var=no
15836 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15837 export_dynamic_flag_spec='$wl-E'
15838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15839 # Instead, shared libraries are loaded at an image base (0x10000000 by
15840 # default) and relocated if they conflict, which is a slow very memory
15841 # consuming and fragmenting process. To avoid this, we pick a random,
15842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15845 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'
15846 ;;
15847
15848 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15849 tmp_diet=no
15850 if test linux-dietlibc = "$host_os"; then
15851 case $cc_basename in
15852 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15853 esac
15854 fi
15855 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15856 && test no = "$tmp_diet"
15857 then
15858 tmp_addflag=' $pic_flag'
15859 tmp_sharedflag='-shared'
15860 case $cc_basename,$host_cpu in
15861 pgcc*) # Portland Group C compiler
15862 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'
15863 tmp_addflag=' $pic_flag'
15864 ;;
15865 pgf77* | pgf90* | pgf95* | pgfortran*)
15866 # Portland Group f77 and f90 compilers
15867 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'
15868 tmp_addflag=' $pic_flag -Mnomain' ;;
15869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15870 tmp_addflag=' -i_dynamic' ;;
15871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15872 tmp_addflag=' -i_dynamic -nofor_main' ;;
15873 ifc* | ifort*) # Intel Fortran compiler
15874 tmp_addflag=' -nofor_main' ;;
15875 lf95*) # Lahey Fortran 8.1
15876 whole_archive_flag_spec=
15877 tmp_sharedflag='--shared' ;;
15878 nagfor*) # NAGFOR 5.3
15879 tmp_sharedflag='-Wl,-shared' ;;
15880 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15881 tmp_sharedflag='-qmkshrobj'
15882 tmp_addflag= ;;
15883 nvcc*) # Cuda Compiler Driver 2.2
15884 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'
15885 compiler_needs_object=yes
15886 ;;
15887 esac
15888 case `$CC -V 2>&1 | sed 5q` in
15889 *Sun\ C*) # Sun C 5.9
15890 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'
15891 compiler_needs_object=yes
15892 tmp_sharedflag='-G' ;;
15893 *Sun\ F*) # Sun Fortran 8.3
15894 tmp_sharedflag='-G' ;;
15895 esac
15896 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15897
15898 if test yes = "$supports_anon_versioning"; then
15899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15901 echo "local: *; };" >> $output_objdir/$libname.ver~
15902 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15903 fi
15904
15905 case $cc_basename in
15906 tcc*)
15907 export_dynamic_flag_spec='-rdynamic'
15908 ;;
15909 xlf* | bgf* | bgxlf* | mpixlf*)
15910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15913 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15914 if test yes = "$supports_anon_versioning"; then
15915 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15917 echo "local: *; };" >> $output_objdir/$libname.ver~
15918 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15919 fi
15920 ;;
15921 esac
15922 else
15923 ld_shlibs=no
15924 fi
15925 ;;
15926
15927 netbsd*)
15928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15930 wlarc=
15931 else
15932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15934 fi
15935 ;;
15936
15937 solaris*)
15938 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15939 ld_shlibs=no
15940 cat <<_LT_EOF 1>&2
15941
15942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15943 *** create shared libraries on Solaris systems. Therefore, libtool
15944 *** is disabling shared libraries support. We urge you to upgrade GNU
15945 *** binutils to release 2.9.1 or newer. Another option is to modify
15946 *** your PATH or compiler configuration so that the native linker is
15947 *** used, and then restart.
15948
15949 _LT_EOF
15950 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15953 else
15954 ld_shlibs=no
15955 fi
15956 ;;
15957
15958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15959 case `$LD -v 2>&1` in
15960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15961 ld_shlibs=no
15962 cat <<_LT_EOF 1>&2
15963
15964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15965 *** reliably create shared libraries on SCO systems. Therefore, libtool
15966 *** is disabling shared libraries support. We urge you to upgrade GNU
15967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15968 *** your PATH or compiler configuration so that the native linker is
15969 *** used, and then restart.
15970
15971 _LT_EOF
15972 ;;
15973 *)
15974 # For security reasons, it is highly recommended that you always
15975 # use absolute paths for naming shared libraries, and exclude the
15976 # DT_RUNPATH tag from executables and libraries. But doing so
15977 # requires that you compile everything twice, which is a pain.
15978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15979 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15982 else
15983 ld_shlibs=no
15984 fi
15985 ;;
15986 esac
15987 ;;
15988
15989 sunos4*)
15990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15991 wlarc=
15992 hardcode_direct=yes
15993 hardcode_shlibpath_var=no
15994 ;;
15995
15996 *)
15997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15998 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15999 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16000 else
16001 ld_shlibs=no
16002 fi
16003 ;;
16004 esac
16005
16006 if test no = "$ld_shlibs"; then
16007 runpath_var=
16008 hardcode_libdir_flag_spec=
16009 export_dynamic_flag_spec=
16010 whole_archive_flag_spec=
16011 fi
16012 else
16013 # PORTME fill in a description of your system's linker (not GNU ld)
16014 case $host_os in
16015 aix3*)
16016 allow_undefined_flag=unsupported
16017 always_export_symbols=yes
16018 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'
16019 # Note: this linker hardcodes the directories in LIBPATH if there
16020 # are no directories specified by -L.
16021 hardcode_minus_L=yes
16022 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16023 # Neither direct hardcoding nor static linking is supported with a
16024 # broken collect2.
16025 hardcode_direct=unsupported
16026 fi
16027 ;;
16028
16029 aix[4-9]*)
16030 if test ia64 = "$host_cpu"; then
16031 # On IA64, the linker does run time linking by default, so we don't
16032 # have to do anything special.
16033 aix_use_runtimelinking=no
16034 exp_sym_flag='-Bexport'
16035 no_entry_flag=
16036 else
16037 # If we're using GNU nm, then we don't want the "-C" option.
16038 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16039 # Without the "-l" option, or with the "-B" option, AIX nm treats
16040 # weak defined symbols like other global defined symbols, whereas
16041 # GNU nm marks them as "W".
16042 # While the 'weak' keyword is ignored in the Export File, we need
16043 # it in the Import File for the 'aix-soname' feature, so we have
16044 # to replace the "-B" option with "-P" for AIX nm.
16045 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16046 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16047 else
16048 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16049 fi
16050 aix_use_runtimelinking=no
16051
16052 # Test if we are trying to use run time linking or normal
16053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16054 # have runtime linking enabled, and use it for executables.
16055 # For shared libraries, we enable/disable runtime linking
16056 # depending on the kind of the shared library created -
16057 # when "with_aix_soname,aix_use_runtimelinking" is:
16058 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16059 # "aix,yes" lib.so shared, rtl:yes, for executables
16060 # lib.a static archive
16061 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16062 # lib.a(lib.so.V) shared, rtl:no, for executables
16063 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16064 # lib.a(lib.so.V) shared, rtl:no
16065 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16066 # lib.a static archive
16067 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16068 for ld_flag in $LDFLAGS; do
16069 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16070 aix_use_runtimelinking=yes
16071 break
16072 fi
16073 done
16074 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16075 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16076 # so we don't have lib.a shared libs to link our executables.
16077 # We have to force runtime linking in this case.
16078 aix_use_runtimelinking=yes
16079 LDFLAGS="$LDFLAGS -Wl,-brtl"
16080 fi
16081 ;;
16082 esac
16083
16084 exp_sym_flag='-bexport'
16085 no_entry_flag='-bnoentry'
16086 fi
16087
16088 # When large executables or shared objects are built, AIX ld can
16089 # have problems creating the table of contents. If linking a library
16090 # or program results in "error TOC overflow" add -mminimal-toc to
16091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16093
16094 archive_cmds=''
16095 hardcode_direct=yes
16096 hardcode_direct_absolute=yes
16097 hardcode_libdir_separator=':'
16098 link_all_deplibs=yes
16099 file_list_spec='$wl-f,'
16100 case $with_aix_soname,$aix_use_runtimelinking in
16101 aix,*) ;; # traditional, no import file
16102 svr4,* | *,yes) # use import file
16103 # The Import File defines what to hardcode.
16104 hardcode_direct=no
16105 hardcode_direct_absolute=no
16106 ;;
16107 esac
16108
16109 if test yes = "$GCC"; then
16110 case $host_os in aix4.[012]|aix4.[012].*)
16111 # We only want to do this on AIX 4.2 and lower, the check
16112 # below for broken collect2 doesn't work under 4.3+
16113 collect2name=`$CC -print-prog-name=collect2`
16114 if test -f "$collect2name" &&
16115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16116 then
16117 # We have reworked collect2
16118 :
16119 else
16120 # We have old collect2
16121 hardcode_direct=unsupported
16122 # It fails to find uninstalled libraries when the uninstalled
16123 # path is not listed in the libpath. Setting hardcode_minus_L
16124 # to unsupported forces relinking
16125 hardcode_minus_L=yes
16126 hardcode_libdir_flag_spec='-L$libdir'
16127 hardcode_libdir_separator=
16128 fi
16129 ;;
16130 esac
16131 shared_flag='-shared'
16132 if test yes = "$aix_use_runtimelinking"; then
16133 shared_flag="$shared_flag "'$wl-G'
16134 fi
16135 # Need to ensure runtime linking is disabled for the traditional
16136 # shared library, or the linker may eventually find shared libraries
16137 # /with/ Import File - we do not want to mix them.
16138 shared_flag_aix='-shared'
16139 shared_flag_svr4='-shared $wl-G'
16140 else
16141 # not using gcc
16142 if test ia64 = "$host_cpu"; then
16143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16144 # chokes on -Wl,-G. The following line is correct:
16145 shared_flag='-G'
16146 else
16147 if test yes = "$aix_use_runtimelinking"; then
16148 shared_flag='$wl-G'
16149 else
16150 shared_flag='$wl-bM:SRE'
16151 fi
16152 shared_flag_aix='$wl-bM:SRE'
16153 shared_flag_svr4='$wl-G'
16154 fi
16155 fi
16156
16157 export_dynamic_flag_spec='$wl-bexpall'
16158 # It seems that -bexpall does not export symbols beginning with
16159 # underscore (_), so it is better to generate a list of symbols to export.
16160 always_export_symbols=yes
16161 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16162 # Warning - without using the other runtime loading flags (-brtl),
16163 # -berok will link without error, but may produce a broken library.
16164 allow_undefined_flag='-berok'
16165 # Determine the default libpath from the value encoded in an
16166 # empty executable.
16167 if test set = "${lt_cv_aix_libpath+set}"; then
16168 aix_libpath=$lt_cv_aix_libpath
16169 else
16170 if ${lt_cv_aix_libpath_+:} false; then :
16171 $as_echo_n "(cached) " >&6
16172 else
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175
16176 int
16177 main ()
16178 {
16179
16180 ;
16181 return 0;
16182 }
16183 _ACEOF
16184 if ac_fn_c_try_link "$LINENO"; then :
16185
16186 lt_aix_libpath_sed='
16187 /Import File Strings/,/^$/ {
16188 /^0/ {
16189 s/^0 *\([^ ]*\) *$/\1/
16190 p
16191 }
16192 }'
16193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16194 # Check for a 64-bit object if we didn't find anything.
16195 if test -z "$lt_cv_aix_libpath_"; then
16196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16197 fi
16198 fi
16199 rm -f core conftest.err conftest.$ac_objext \
16200 conftest$ac_exeext conftest.$ac_ext
16201 if test -z "$lt_cv_aix_libpath_"; then
16202 lt_cv_aix_libpath_=/usr/lib:/lib
16203 fi
16204
16205 fi
16206
16207 aix_libpath=$lt_cv_aix_libpath_
16208 fi
16209
16210 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16211 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16212 else
16213 if test ia64 = "$host_cpu"; then
16214 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16215 allow_undefined_flag="-z nodefs"
16216 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"
16217 else
16218 # Determine the default libpath from the value encoded in an
16219 # empty executable.
16220 if test set = "${lt_cv_aix_libpath+set}"; then
16221 aix_libpath=$lt_cv_aix_libpath
16222 else
16223 if ${lt_cv_aix_libpath_+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16228
16229 int
16230 main ()
16231 {
16232
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 if ac_fn_c_try_link "$LINENO"; then :
16238
16239 lt_aix_libpath_sed='
16240 /Import File Strings/,/^$/ {
16241 /^0/ {
16242 s/^0 *\([^ ]*\) *$/\1/
16243 p
16244 }
16245 }'
16246 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16247 # Check for a 64-bit object if we didn't find anything.
16248 if test -z "$lt_cv_aix_libpath_"; then
16249 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16250 fi
16251 fi
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 if test -z "$lt_cv_aix_libpath_"; then
16255 lt_cv_aix_libpath_=/usr/lib:/lib
16256 fi
16257
16258 fi
16259
16260 aix_libpath=$lt_cv_aix_libpath_
16261 fi
16262
16263 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16264 # Warning - without using the other run time loading flags,
16265 # -berok will link without error, but may produce a broken library.
16266 no_undefined_flag=' $wl-bernotok'
16267 allow_undefined_flag=' $wl-berok'
16268 if test yes = "$with_gnu_ld"; then
16269 # We only use this code for GNU lds that support --whole-archive.
16270 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16271 else
16272 # Exported symbols can be pulled into shared objects from archives
16273 whole_archive_flag_spec='$convenience'
16274 fi
16275 archive_cmds_need_lc=yes
16276 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16277 # -brtl affects multiple linker settings, -berok does not and is overridden later
16278 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16279 if test svr4 != "$with_aix_soname"; then
16280 # This is similar to how AIX traditionally builds its shared libraries.
16281 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16282 fi
16283 if test aix != "$with_aix_soname"; then
16284 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16285 else
16286 # used by -dlpreopen to get the symbols
16287 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16288 fi
16289 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16290 fi
16291 fi
16292 ;;
16293
16294 amigaos*)
16295 case $host_cpu in
16296 powerpc)
16297 # see comment about AmigaOS4 .so support
16298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16299 archive_expsym_cmds=''
16300 ;;
16301 m68k)
16302 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)'
16303 hardcode_libdir_flag_spec='-L$libdir'
16304 hardcode_minus_L=yes
16305 ;;
16306 esac
16307 ;;
16308
16309 bsdi[45]*)
16310 export_dynamic_flag_spec=-rdynamic
16311 ;;
16312
16313 cygwin* | mingw* | pw32* | cegcc*)
16314 # When not using gcc, we currently assume that we are using
16315 # Microsoft Visual C++.
16316 # hardcode_libdir_flag_spec is actually meaningless, as there is
16317 # no search path for DLLs.
16318 case $cc_basename in
16319 cl*)
16320 # Native MSVC
16321 hardcode_libdir_flag_spec=' '
16322 allow_undefined_flag=unsupported
16323 always_export_symbols=yes
16324 file_list_spec='@'
16325 # Tell ltmain to make .lib files, not .a files.
16326 libext=lib
16327 # Tell ltmain to make .dll files, not .so files.
16328 shrext_cmds=.dll
16329 # FIXME: Setting linknames here is a bad hack.
16330 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16331 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16332 cp "$export_symbols" "$output_objdir/$soname.def";
16333 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16334 else
16335 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16336 fi~
16337 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16338 linknames='
16339 # The linker will not automatically build a static lib if we build a DLL.
16340 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16341 enable_shared_with_static_runtimes=yes
16342 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16343 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16344 # Don't use ranlib
16345 old_postinstall_cmds='chmod 644 $oldlib'
16346 postlink_cmds='lt_outputfile="@OUTPUT@"~
16347 lt_tool_outputfile="@TOOL_OUTPUT@"~
16348 case $lt_outputfile in
16349 *.exe|*.EXE) ;;
16350 *)
16351 lt_outputfile=$lt_outputfile.exe
16352 lt_tool_outputfile=$lt_tool_outputfile.exe
16353 ;;
16354 esac~
16355 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16356 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16357 $RM "$lt_outputfile.manifest";
16358 fi'
16359 ;;
16360 *)
16361 # Assume MSVC wrapper
16362 hardcode_libdir_flag_spec=' '
16363 allow_undefined_flag=unsupported
16364 # Tell ltmain to make .lib files, not .a files.
16365 libext=lib
16366 # Tell ltmain to make .dll files, not .so files.
16367 shrext_cmds=.dll
16368 # FIXME: Setting linknames here is a bad hack.
16369 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16370 # The linker will automatically build a .lib file if we build a DLL.
16371 old_archive_from_new_cmds='true'
16372 # FIXME: Should let the user specify the lib program.
16373 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16374 enable_shared_with_static_runtimes=yes
16375 ;;
16376 esac
16377 ;;
16378
16379 darwin* | rhapsody*)
16380
16381
16382 archive_cmds_need_lc=no
16383 hardcode_direct=no
16384 hardcode_automatic=yes
16385 hardcode_shlibpath_var=unsupported
16386 if test yes = "$lt_cv_ld_force_load"; then
16387 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\"`'
16388
16389 else
16390 whole_archive_flag_spec=''
16391 fi
16392 link_all_deplibs=yes
16393 allow_undefined_flag=$_lt_dar_allow_undefined
16394 case $cc_basename in
16395 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16396 *) _lt_dar_can_shared=$GCC ;;
16397 esac
16398 if test yes = "$_lt_dar_can_shared"; then
16399 output_verbose_link_cmd=func_echo_all
16400 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16401 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16402 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"
16403 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"
16404
16405 else
16406 ld_shlibs=no
16407 fi
16408
16409 ;;
16410
16411 dgux*)
16412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16413 hardcode_libdir_flag_spec='-L$libdir'
16414 hardcode_shlibpath_var=no
16415 ;;
16416
16417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16418 # support. Future versions do this automatically, but an explicit c++rt0.o
16419 # does not break anything, and helps significantly (at the cost of a little
16420 # extra space).
16421 freebsd2.2*)
16422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16423 hardcode_libdir_flag_spec='-R$libdir'
16424 hardcode_direct=yes
16425 hardcode_shlibpath_var=no
16426 ;;
16427
16428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16429 freebsd2.*)
16430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16431 hardcode_direct=yes
16432 hardcode_minus_L=yes
16433 hardcode_shlibpath_var=no
16434 ;;
16435
16436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16437 freebsd* | dragonfly*)
16438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16439 hardcode_libdir_flag_spec='-R$libdir'
16440 hardcode_direct=yes
16441 hardcode_shlibpath_var=no
16442 ;;
16443
16444 hpux9*)
16445 if test yes = "$GCC"; then
16446 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16447 else
16448 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16449 fi
16450 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16451 hardcode_libdir_separator=:
16452 hardcode_direct=yes
16453
16454 # hardcode_minus_L: Not really in the search PATH,
16455 # but as the default location of the library.
16456 hardcode_minus_L=yes
16457 export_dynamic_flag_spec='$wl-E'
16458 ;;
16459
16460 hpux10*)
16461 if test yes,no = "$GCC,$with_gnu_ld"; then
16462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16463 else
16464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16465 fi
16466 if test no = "$with_gnu_ld"; then
16467 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16468 hardcode_libdir_separator=:
16469 hardcode_direct=yes
16470 hardcode_direct_absolute=yes
16471 export_dynamic_flag_spec='$wl-E'
16472 # hardcode_minus_L: Not really in the search PATH,
16473 # but as the default location of the library.
16474 hardcode_minus_L=yes
16475 fi
16476 ;;
16477
16478 hpux11*)
16479 if test yes,no = "$GCC,$with_gnu_ld"; then
16480 case $host_cpu in
16481 hppa*64*)
16482 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16483 ;;
16484 ia64*)
16485 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16486 ;;
16487 *)
16488 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16489 ;;
16490 esac
16491 else
16492 case $host_cpu in
16493 hppa*64*)
16494 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 ;;
16496 ia64*)
16497 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16498 ;;
16499 *)
16500
16501 # Older versions of the 11.00 compiler do not understand -b yet
16502 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16504 $as_echo_n "checking if $CC understands -b... " >&6; }
16505 if ${lt_cv_prog_compiler__b+:} false; then :
16506 $as_echo_n "(cached) " >&6
16507 else
16508 lt_cv_prog_compiler__b=no
16509 save_LDFLAGS=$LDFLAGS
16510 LDFLAGS="$LDFLAGS -b"
16511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16513 # The linker can only warn and ignore the option if not recognized
16514 # So say no if there are warnings
16515 if test -s conftest.err; then
16516 # Append any errors to the config.log.
16517 cat conftest.err 1>&5
16518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16520 if diff conftest.exp conftest.er2 >/dev/null; then
16521 lt_cv_prog_compiler__b=yes
16522 fi
16523 else
16524 lt_cv_prog_compiler__b=yes
16525 fi
16526 fi
16527 $RM -r conftest*
16528 LDFLAGS=$save_LDFLAGS
16529
16530 fi
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16532 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16533
16534 if test yes = "$lt_cv_prog_compiler__b"; then
16535 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16536 else
16537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16538 fi
16539
16540 ;;
16541 esac
16542 fi
16543 if test no = "$with_gnu_ld"; then
16544 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16545 hardcode_libdir_separator=:
16546
16547 case $host_cpu in
16548 hppa*64*|ia64*)
16549 hardcode_direct=no
16550 hardcode_shlibpath_var=no
16551 ;;
16552 *)
16553 hardcode_direct=yes
16554 hardcode_direct_absolute=yes
16555 export_dynamic_flag_spec='$wl-E'
16556
16557 # hardcode_minus_L: Not really in the search PATH,
16558 # but as the default location of the library.
16559 hardcode_minus_L=yes
16560 ;;
16561 esac
16562 fi
16563 ;;
16564
16565 irix5* | irix6* | nonstopux*)
16566 if test yes = "$GCC"; then
16567 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'
16568 # Try to use the -exported_symbol ld option, if it does not
16569 # work, assume that -exports_file does not work either and
16570 # implicitly export all symbols.
16571 # This should be the same for all languages, so no per-tag cache variable.
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16573 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16574 if ${lt_cv_irix_exported_symbol+:} false; then :
16575 $as_echo_n "(cached) " >&6
16576 else
16577 save_LDFLAGS=$LDFLAGS
16578 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16581 int foo (void) { return 0; }
16582 _ACEOF
16583 if ac_fn_c_try_link "$LINENO"; then :
16584 lt_cv_irix_exported_symbol=yes
16585 else
16586 lt_cv_irix_exported_symbol=no
16587 fi
16588 rm -f core conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext conftest.$ac_ext
16590 LDFLAGS=$save_LDFLAGS
16591 fi
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16593 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16594 if test yes = "$lt_cv_irix_exported_symbol"; then
16595 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'
16596 fi
16597 else
16598 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'
16599 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'
16600 fi
16601 archive_cmds_need_lc='no'
16602 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16603 hardcode_libdir_separator=:
16604 inherit_rpath=yes
16605 link_all_deplibs=yes
16606 ;;
16607
16608 linux*)
16609 case $cc_basename in
16610 tcc*)
16611 # Fabrice Bellard et al's Tiny C Compiler
16612 ld_shlibs=yes
16613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16614 ;;
16615 esac
16616 ;;
16617
16618 netbsd*)
16619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16621 else
16622 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16623 fi
16624 hardcode_libdir_flag_spec='-R$libdir'
16625 hardcode_direct=yes
16626 hardcode_shlibpath_var=no
16627 ;;
16628
16629 newsos6)
16630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_direct=yes
16632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16633 hardcode_libdir_separator=:
16634 hardcode_shlibpath_var=no
16635 ;;
16636
16637 *nto* | *qnx*)
16638 ;;
16639
16640 openbsd* | bitrig*)
16641 if test -f /usr/libexec/ld.so; then
16642 hardcode_direct=yes
16643 hardcode_shlibpath_var=no
16644 hardcode_direct_absolute=yes
16645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16647 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16648 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16649 export_dynamic_flag_spec='$wl-E'
16650 else
16651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16652 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16653 fi
16654 else
16655 ld_shlibs=no
16656 fi
16657 ;;
16658
16659 os2*)
16660 hardcode_libdir_flag_spec='-L$libdir'
16661 hardcode_minus_L=yes
16662 allow_undefined_flag=unsupported
16663 shrext_cmds=.dll
16664 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16665 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16666 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16667 $ECHO EXPORTS >> $output_objdir/$libname.def~
16668 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16669 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16670 emximp -o $lib $output_objdir/$libname.def'
16671 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16672 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16673 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16674 $ECHO EXPORTS >> $output_objdir/$libname.def~
16675 prefix_cmds="$SED"~
16676 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16677 prefix_cmds="$prefix_cmds -e 1d";
16678 fi~
16679 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16680 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16681 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16682 emximp -o $lib $output_objdir/$libname.def'
16683 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16684 enable_shared_with_static_runtimes=yes
16685 file_list_spec='@'
16686 ;;
16687
16688 osf3*)
16689 if test yes = "$GCC"; then
16690 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16691 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'
16692 else
16693 allow_undefined_flag=' -expect_unresolved \*'
16694 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'
16695 fi
16696 archive_cmds_need_lc='no'
16697 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16698 hardcode_libdir_separator=:
16699 ;;
16700
16701 osf4* | osf5*) # as osf3* with the addition of -msym flag
16702 if test yes = "$GCC"; then
16703 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16704 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'
16705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16706 else
16707 allow_undefined_flag=' -expect_unresolved \*'
16708 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'
16709 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~
16710 $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'
16711
16712 # Both c and cxx compiler support -rpath directly
16713 hardcode_libdir_flag_spec='-rpath $libdir'
16714 fi
16715 archive_cmds_need_lc='no'
16716 hardcode_libdir_separator=:
16717 ;;
16718
16719 solaris*)
16720 no_undefined_flag=' -z defs'
16721 if test yes = "$GCC"; then
16722 wlarc='$wl'
16723 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16724 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16725 $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'
16726 else
16727 case `$CC -V 2>&1` in
16728 *"Compilers 5.0"*)
16729 wlarc=''
16730 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16732 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16733 ;;
16734 *)
16735 wlarc='$wl'
16736 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16738 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16739 ;;
16740 esac
16741 fi
16742 hardcode_libdir_flag_spec='-R$libdir'
16743 hardcode_shlibpath_var=no
16744 case $host_os in
16745 solaris2.[0-5] | solaris2.[0-5].*) ;;
16746 *)
16747 # The compiler driver will combine and reorder linker options,
16748 # but understands '-z linker_flag'. GCC discards it without '$wl',
16749 # but is careful enough not to reorder.
16750 # Supported since Solaris 2.6 (maybe 2.5.1?)
16751 if test yes = "$GCC"; then
16752 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16753 else
16754 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16755 fi
16756 ;;
16757 esac
16758 link_all_deplibs=yes
16759 ;;
16760
16761 sunos4*)
16762 if test sequent = "$host_vendor"; then
16763 # Use $CC to link under sequent, because it throws in some extra .o
16764 # files that make .init and .fini sections work.
16765 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16766 else
16767 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16768 fi
16769 hardcode_libdir_flag_spec='-L$libdir'
16770 hardcode_direct=yes
16771 hardcode_minus_L=yes
16772 hardcode_shlibpath_var=no
16773 ;;
16774
16775 sysv4)
16776 case $host_vendor in
16777 sni)
16778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_direct=yes # is this really true???
16780 ;;
16781 siemens)
16782 ## LD is ld it makes a PLAMLIB
16783 ## CC just makes a GrossModule.
16784 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16785 reload_cmds='$CC -r -o $output$reload_objs'
16786 hardcode_direct=no
16787 ;;
16788 motorola)
16789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16790 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16791 ;;
16792 esac
16793 runpath_var='LD_RUN_PATH'
16794 hardcode_shlibpath_var=no
16795 ;;
16796
16797 sysv4.3*)
16798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 hardcode_shlibpath_var=no
16800 export_dynamic_flag_spec='-Bexport'
16801 ;;
16802
16803 sysv4*MP*)
16804 if test -d /usr/nec; then
16805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16806 hardcode_shlibpath_var=no
16807 runpath_var=LD_RUN_PATH
16808 hardcode_runpath_var=yes
16809 ld_shlibs=yes
16810 fi
16811 ;;
16812
16813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16814 no_undefined_flag='$wl-z,text'
16815 archive_cmds_need_lc=no
16816 hardcode_shlibpath_var=no
16817 runpath_var='LD_RUN_PATH'
16818
16819 if test yes = "$GCC"; then
16820 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16821 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16822 else
16823 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16824 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 fi
16826 ;;
16827
16828 sysv5* | sco3.2v5* | sco5v6*)
16829 # Note: We CANNOT use -z defs as we might desire, because we do not
16830 # link with -lc, and that would cause any symbols used from libc to
16831 # always be unresolved, which means just about no library would
16832 # ever link correctly. If we're not using GNU ld we use -z text
16833 # though, which does catch some bad symbols but isn't as heavy-handed
16834 # as -z defs.
16835 no_undefined_flag='$wl-z,text'
16836 allow_undefined_flag='$wl-z,nodefs'
16837 archive_cmds_need_lc=no
16838 hardcode_shlibpath_var=no
16839 hardcode_libdir_flag_spec='$wl-R,$libdir'
16840 hardcode_libdir_separator=':'
16841 link_all_deplibs=yes
16842 export_dynamic_flag_spec='$wl-Bexport'
16843 runpath_var='LD_RUN_PATH'
16844
16845 if test yes = "$GCC"; then
16846 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16847 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16848 else
16849 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16850 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16851 fi
16852 ;;
16853
16854 uts4*)
16855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16856 hardcode_libdir_flag_spec='-L$libdir'
16857 hardcode_shlibpath_var=no
16858 ;;
16859
16860 *)
16861 ld_shlibs=no
16862 ;;
16863 esac
16864
16865 if test sni = "$host_vendor"; then
16866 case $host in
16867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16868 export_dynamic_flag_spec='$wl-Blargedynsym'
16869 ;;
16870 esac
16871 fi
16872 fi
16873
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16875 $as_echo "$ld_shlibs" >&6; }
16876 test no = "$ld_shlibs" && can_build_shared=no
16877
16878 with_gnu_ld=$with_gnu_ld
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894 #
16895 # Do we need to explicitly link libc?
16896 #
16897 case "x$archive_cmds_need_lc" in
16898 x|xyes)
16899 # Assume -lc should be added
16900 archive_cmds_need_lc=yes
16901
16902 if test yes,yes = "$GCC,$enable_shared"; then
16903 case $archive_cmds in
16904 *'~'*)
16905 # FIXME: we may have to deal with multi-command sequences.
16906 ;;
16907 '$CC '*)
16908 # Test whether the compiler implicitly links with -lc since on some
16909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16910 # to ld, don't add -lc before -lgcc.
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16912 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16913 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16914 $as_echo_n "(cached) " >&6
16915 else
16916 $RM conftest*
16917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16918
16919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16920 (eval $ac_compile) 2>&5
16921 ac_status=$?
16922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16923 test $ac_status = 0; } 2>conftest.err; then
16924 soname=conftest
16925 lib=conftest
16926 libobjs=conftest.$ac_objext
16927 deplibs=
16928 wl=$lt_prog_compiler_wl
16929 pic_flag=$lt_prog_compiler_pic
16930 compiler_flags=-v
16931 linker_flags=-v
16932 verstring=
16933 output_objdir=.
16934 libname=conftest
16935 lt_save_allow_undefined_flag=$allow_undefined_flag
16936 allow_undefined_flag=
16937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16938 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16939 ac_status=$?
16940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16941 test $ac_status = 0; }
16942 then
16943 lt_cv_archive_cmds_need_lc=no
16944 else
16945 lt_cv_archive_cmds_need_lc=yes
16946 fi
16947 allow_undefined_flag=$lt_save_allow_undefined_flag
16948 else
16949 cat conftest.err 1>&5
16950 fi
16951 $RM conftest*
16952
16953 fi
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16955 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16956 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16957 ;;
16958 esac
16959 fi
16960 ;;
16961 esac
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
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
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17115 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17116
17117 if test yes = "$GCC"; then
17118 case $host_os in
17119 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17120 *) lt_awk_arg='/^libraries:/' ;;
17121 esac
17122 case $host_os in
17123 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17124 *) lt_sed_strip_eq='s|=/|/|g' ;;
17125 esac
17126 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17127 case $lt_search_path_spec in
17128 *\;*)
17129 # if the path contains ";" then we assume it to be the separator
17130 # otherwise default to the standard path separator (i.e. ":") - it is
17131 # assumed that no part of a normal pathname contains ";" but that should
17132 # okay in the real world where ";" in dirpaths is itself problematic.
17133 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17134 ;;
17135 *)
17136 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17137 ;;
17138 esac
17139 # Ok, now we have the path, separated by spaces, we can step through it
17140 # and add multilib dir if necessary...
17141 lt_tmp_lt_search_path_spec=
17142 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17143 # ...but if some path component already ends with the multilib dir we assume
17144 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17145 case "$lt_multi_os_dir; $lt_search_path_spec " in
17146 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17147 lt_multi_os_dir=
17148 ;;
17149 esac
17150 for lt_sys_path in $lt_search_path_spec; do
17151 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17153 elif test -n "$lt_multi_os_dir"; then
17154 test -d "$lt_sys_path" && \
17155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17156 fi
17157 done
17158 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17159 BEGIN {RS = " "; FS = "/|\n";} {
17160 lt_foo = "";
17161 lt_count = 0;
17162 for (lt_i = NF; lt_i > 0; lt_i--) {
17163 if ($lt_i != "" && $lt_i != ".") {
17164 if ($lt_i == "..") {
17165 lt_count++;
17166 } else {
17167 if (lt_count == 0) {
17168 lt_foo = "/" $lt_i lt_foo;
17169 } else {
17170 lt_count--;
17171 }
17172 }
17173 }
17174 }
17175 if (lt_foo != "") { lt_freq[lt_foo]++; }
17176 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17177 }'`
17178 # AWK program above erroneously prepends '/' to C:/dos/paths
17179 # for these hosts.
17180 case $host_os in
17181 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17182 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17183 esac
17184 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17185 else
17186 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17187 fi
17188 library_names_spec=
17189 libname_spec='lib$name'
17190 soname_spec=
17191 shrext_cmds=.so
17192 postinstall_cmds=
17193 postuninstall_cmds=
17194 finish_cmds=
17195 finish_eval=
17196 shlibpath_var=
17197 shlibpath_overrides_runpath=unknown
17198 version_type=none
17199 dynamic_linker="$host_os ld.so"
17200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17201 need_lib_prefix=unknown
17202 hardcode_into_libs=no
17203
17204 # when you set need_version to no, make sure it does not cause -set_version
17205 # flags to be left without arguments
17206 need_version=unknown
17207
17208
17209
17210 case $host_os in
17211 aix3*)
17212 version_type=linux # correct to gnu/linux during the next big refactor
17213 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17214 shlibpath_var=LIBPATH
17215
17216 # AIX 3 has no versioning support, so we append a major version to the name.
17217 soname_spec='$libname$release$shared_ext$major'
17218 ;;
17219
17220 aix[4-9]*)
17221 version_type=linux # correct to gnu/linux during the next big refactor
17222 need_lib_prefix=no
17223 need_version=no
17224 hardcode_into_libs=yes
17225 if test ia64 = "$host_cpu"; then
17226 # AIX 5 supports IA64
17227 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17228 shlibpath_var=LD_LIBRARY_PATH
17229 else
17230 # With GCC up to 2.95.x, collect2 would create an import file
17231 # for dependence libraries. The import file would start with
17232 # the line '#! .'. This would cause the generated library to
17233 # depend on '.', always an invalid library. This was fixed in
17234 # development snapshots of GCC prior to 3.0.
17235 case $host_os in
17236 aix4 | aix4.[01] | aix4.[01].*)
17237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17238 echo ' yes '
17239 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17240 :
17241 else
17242 can_build_shared=no
17243 fi
17244 ;;
17245 esac
17246 # Using Import Files as archive members, it is possible to support
17247 # filename-based versioning of shared library archives on AIX. While
17248 # this would work for both with and without runtime linking, it will
17249 # prevent static linking of such archives. So we do filename-based
17250 # shared library versioning with .so extension only, which is used
17251 # when both runtime linking and shared linking is enabled.
17252 # Unfortunately, runtime linking may impact performance, so we do
17253 # not want this to be the default eventually. Also, we use the
17254 # versioned .so libs for executables only if there is the -brtl
17255 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17256 # To allow for filename-based versioning support, we need to create
17257 # libNAME.so.V as an archive file, containing:
17258 # *) an Import File, referring to the versioned filename of the
17259 # archive as well as the shared archive member, telling the
17260 # bitwidth (32 or 64) of that shared object, and providing the
17261 # list of exported symbols of that shared object, eventually
17262 # decorated with the 'weak' keyword
17263 # *) the shared object with the F_LOADONLY flag set, to really avoid
17264 # it being seen by the linker.
17265 # At run time we better use the real file rather than another symlink,
17266 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17267
17268 case $with_aix_soname,$aix_use_runtimelinking in
17269 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17270 # soname into executable. Probably we can add versioning support to
17271 # collect2, so additional links can be useful in future.
17272 aix,yes) # traditional libtool
17273 dynamic_linker='AIX unversionable lib.so'
17274 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17275 # instead of lib<name>.a to let people know that these are not
17276 # typical AIX shared libraries.
17277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17278 ;;
17279 aix,no) # traditional AIX only
17280 dynamic_linker='AIX lib.a(lib.so.V)'
17281 # We preserve .a as extension for shared libraries through AIX4.2
17282 # and later when we are not doing run time linking.
17283 library_names_spec='$libname$release.a $libname.a'
17284 soname_spec='$libname$release$shared_ext$major'
17285 ;;
17286 svr4,*) # full svr4 only
17287 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17288 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17289 # We do not specify a path in Import Files, so LIBPATH fires.
17290 shlibpath_overrides_runpath=yes
17291 ;;
17292 *,yes) # both, prefer svr4
17293 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17294 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17295 # unpreferred sharedlib libNAME.a needs extra handling
17296 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17297 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17298 # We do not specify a path in Import Files, so LIBPATH fires.
17299 shlibpath_overrides_runpath=yes
17300 ;;
17301 *,no) # both, prefer aix
17302 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17303 library_names_spec='$libname$release.a $libname.a'
17304 soname_spec='$libname$release$shared_ext$major'
17305 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17306 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17307 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17308 ;;
17309 esac
17310 shlibpath_var=LIBPATH
17311 fi
17312 ;;
17313
17314 amigaos*)
17315 case $host_cpu in
17316 powerpc)
17317 # Since July 2007 AmigaOS4 officially supports .so libraries.
17318 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17320 ;;
17321 m68k)
17322 library_names_spec='$libname.ixlibrary $libname.a'
17323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17324 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17325 ;;
17326 esac
17327 ;;
17328
17329 beos*)
17330 library_names_spec='$libname$shared_ext'
17331 dynamic_linker="$host_os ld.so"
17332 shlibpath_var=LIBRARY_PATH
17333 ;;
17334
17335 bsdi[45]*)
17336 version_type=linux # correct to gnu/linux during the next big refactor
17337 need_version=no
17338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17339 soname_spec='$libname$release$shared_ext$major'
17340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17344 # the default ld.so.conf also contains /usr/contrib/lib and
17345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17346 # libtool to hard-code these into programs
17347 ;;
17348
17349 cygwin* | mingw* | pw32* | cegcc*)
17350 version_type=windows
17351 shrext_cmds=.dll
17352 need_version=no
17353 need_lib_prefix=no
17354
17355 case $GCC,$cc_basename in
17356 yes,*)
17357 # gcc
17358 library_names_spec='$libname.dll.a'
17359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17360 postinstall_cmds='base_file=`basename \$file`~
17361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17362 dldir=$destdir/`dirname \$dlpath`~
17363 test -d \$dldir || mkdir -p \$dldir~
17364 $install_prog $dir/$dlname \$dldir/$dlname~
17365 chmod a+x \$dldir/$dlname~
17366 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17367 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17368 fi'
17369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17370 dlpath=$dir/\$dldll~
17371 $RM \$dlpath'
17372 shlibpath_overrides_runpath=yes
17373
17374 case $host_os in
17375 cygwin*)
17376 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17377 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17378
17379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17380 ;;
17381 mingw* | cegcc*)
17382 # MinGW DLLs use traditional 'lib' prefix
17383 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17384 ;;
17385 pw32*)
17386 # pw32 DLLs use 'pw' prefix rather than 'lib'
17387 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17388 ;;
17389 esac
17390 dynamic_linker='Win32 ld.exe'
17391 ;;
17392
17393 *,cl*)
17394 # Native MSVC
17395 libname_spec='$name'
17396 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17397 library_names_spec='$libname.dll.lib'
17398
17399 case $build_os in
17400 mingw*)
17401 sys_lib_search_path_spec=
17402 lt_save_ifs=$IFS
17403 IFS=';'
17404 for lt_path in $LIB
17405 do
17406 IFS=$lt_save_ifs
17407 # Let DOS variable expansion print the short 8.3 style file name.
17408 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17409 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17410 done
17411 IFS=$lt_save_ifs
17412 # Convert to MSYS style.
17413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17414 ;;
17415 cygwin*)
17416 # Convert to unix form, then to dos form, then back to unix form
17417 # but this time dos style (no spaces!) so that the unix form looks
17418 # like /cygdrive/c/PROGRA~1:/cygdr...
17419 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17420 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17421 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17422 ;;
17423 *)
17424 sys_lib_search_path_spec=$LIB
17425 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17426 # It is most probably a Windows format PATH.
17427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17428 else
17429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17430 fi
17431 # FIXME: find the short name or the path components, as spaces are
17432 # common. (e.g. "Program Files" -> "PROGRA~1")
17433 ;;
17434 esac
17435
17436 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17437 postinstall_cmds='base_file=`basename \$file`~
17438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17439 dldir=$destdir/`dirname \$dlpath`~
17440 test -d \$dldir || mkdir -p \$dldir~
17441 $install_prog $dir/$dlname \$dldir/$dlname'
17442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17443 dlpath=$dir/\$dldll~
17444 $RM \$dlpath'
17445 shlibpath_overrides_runpath=yes
17446 dynamic_linker='Win32 link.exe'
17447 ;;
17448
17449 *)
17450 # Assume MSVC wrapper
17451 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17452 dynamic_linker='Win32 ld.exe'
17453 ;;
17454 esac
17455 # FIXME: first we should search . and the directory the executable is in
17456 shlibpath_var=PATH
17457 ;;
17458
17459 darwin* | rhapsody*)
17460 dynamic_linker="$host_os dyld"
17461 version_type=darwin
17462 need_lib_prefix=no
17463 need_version=no
17464 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17465 soname_spec='$libname$release$major$shared_ext'
17466 shlibpath_overrides_runpath=yes
17467 shlibpath_var=DYLD_LIBRARY_PATH
17468 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17469
17470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17472 ;;
17473
17474 dgux*)
17475 version_type=linux # correct to gnu/linux during the next big refactor
17476 need_lib_prefix=no
17477 need_version=no
17478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17479 soname_spec='$libname$release$shared_ext$major'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 ;;
17482
17483 freebsd* | dragonfly*)
17484 # DragonFly does not have aout. When/if they implement a new
17485 # versioning mechanism, adjust this.
17486 if test -x /usr/bin/objformat; then
17487 objformat=`/usr/bin/objformat`
17488 else
17489 case $host_os in
17490 freebsd[23].*) objformat=aout ;;
17491 *) objformat=elf ;;
17492 esac
17493 fi
17494 version_type=freebsd-$objformat
17495 case $version_type in
17496 freebsd-elf*)
17497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17498 soname_spec='$libname$release$shared_ext$major'
17499 need_version=no
17500 need_lib_prefix=no
17501 ;;
17502 freebsd-*)
17503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17504 need_version=yes
17505 ;;
17506 esac
17507 shlibpath_var=LD_LIBRARY_PATH
17508 case $host_os in
17509 freebsd2.*)
17510 shlibpath_overrides_runpath=yes
17511 ;;
17512 freebsd3.[01]* | freebsdelf3.[01]*)
17513 shlibpath_overrides_runpath=yes
17514 hardcode_into_libs=yes
17515 ;;
17516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17518 shlibpath_overrides_runpath=no
17519 hardcode_into_libs=yes
17520 ;;
17521 *) # from 4.6 on, and DragonFly
17522 shlibpath_overrides_runpath=yes
17523 hardcode_into_libs=yes
17524 ;;
17525 esac
17526 ;;
17527
17528 haiku*)
17529 version_type=linux # correct to gnu/linux during the next big refactor
17530 need_lib_prefix=no
17531 need_version=no
17532 dynamic_linker="$host_os runtime_loader"
17533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17534 soname_spec='$libname$release$shared_ext$major'
17535 shlibpath_var=LIBRARY_PATH
17536 shlibpath_overrides_runpath=no
17537 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17538 hardcode_into_libs=yes
17539 ;;
17540
17541 hpux9* | hpux10* | hpux11*)
17542 # Give a soname corresponding to the major version so that dld.sl refuses to
17543 # link against other versions.
17544 version_type=sunos
17545 need_lib_prefix=no
17546 need_version=no
17547 case $host_cpu in
17548 ia64*)
17549 shrext_cmds='.so'
17550 hardcode_into_libs=yes
17551 dynamic_linker="$host_os dld.so"
17552 shlibpath_var=LD_LIBRARY_PATH
17553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17555 soname_spec='$libname$release$shared_ext$major'
17556 if test 32 = "$HPUX_IA64_MODE"; then
17557 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17558 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17559 else
17560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17561 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17562 fi
17563 ;;
17564 hppa*64*)
17565 shrext_cmds='.sl'
17566 hardcode_into_libs=yes
17567 dynamic_linker="$host_os dld.sl"
17568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17571 soname_spec='$libname$release$shared_ext$major'
17572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17574 ;;
17575 *)
17576 shrext_cmds='.sl'
17577 dynamic_linker="$host_os dld.sl"
17578 shlibpath_var=SHLIB_PATH
17579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17581 soname_spec='$libname$release$shared_ext$major'
17582 ;;
17583 esac
17584 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17585 postinstall_cmds='chmod 555 $lib'
17586 # or fails outright, so override atomically:
17587 install_override_mode=555
17588 ;;
17589
17590 interix[3-9]*)
17591 version_type=linux # correct to gnu/linux during the next big refactor
17592 need_lib_prefix=no
17593 need_version=no
17594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17595 soname_spec='$libname$release$shared_ext$major'
17596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17597 shlibpath_var=LD_LIBRARY_PATH
17598 shlibpath_overrides_runpath=no
17599 hardcode_into_libs=yes
17600 ;;
17601
17602 irix5* | irix6* | nonstopux*)
17603 case $host_os in
17604 nonstopux*) version_type=nonstopux ;;
17605 *)
17606 if test yes = "$lt_cv_prog_gnu_ld"; then
17607 version_type=linux # correct to gnu/linux during the next big refactor
17608 else
17609 version_type=irix
17610 fi ;;
17611 esac
17612 need_lib_prefix=no
17613 need_version=no
17614 soname_spec='$libname$release$shared_ext$major'
17615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17616 case $host_os in
17617 irix5* | nonstopux*)
17618 libsuff= shlibsuff=
17619 ;;
17620 *)
17621 case $LD in # libtool.m4 will add one of these switches to LD
17622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17623 libsuff= shlibsuff= libmagic=32-bit;;
17624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17625 libsuff=32 shlibsuff=N32 libmagic=N32;;
17626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17628 *) libsuff= shlibsuff= libmagic=never-match;;
17629 esac
17630 ;;
17631 esac
17632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17633 shlibpath_overrides_runpath=no
17634 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17635 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17636 hardcode_into_libs=yes
17637 ;;
17638
17639 # No shared lib support for Linux oldld, aout, or coff.
17640 linux*oldld* | linux*aout* | linux*coff*)
17641 dynamic_linker=no
17642 ;;
17643
17644 linux*android*)
17645 version_type=none # Android doesn't support versioned libraries.
17646 need_lib_prefix=no
17647 need_version=no
17648 library_names_spec='$libname$release$shared_ext'
17649 soname_spec='$libname$release$shared_ext'
17650 finish_cmds=
17651 shlibpath_var=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath=yes
17653
17654 # This implies no fast_install, which is unacceptable.
17655 # Some rework will be needed to allow for fast_install
17656 # before this can be enabled.
17657 hardcode_into_libs=yes
17658
17659 dynamic_linker='Android linker'
17660 # Don't embed -rpath directories since the linker doesn't support them.
17661 hardcode_libdir_flag_spec='-L$libdir'
17662 ;;
17663
17664 # This must be glibc/ELF.
17665 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17666 version_type=linux # correct to gnu/linux during the next big refactor
17667 need_lib_prefix=no
17668 need_version=no
17669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17670 soname_spec='$libname$release$shared_ext$major'
17671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17672 shlibpath_var=LD_LIBRARY_PATH
17673 shlibpath_overrides_runpath=no
17674
17675 # Some binutils ld are patched to set DT_RUNPATH
17676 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 lt_cv_shlibpath_overrides_runpath=no
17680 save_LDFLAGS=$LDFLAGS
17681 save_libdir=$libdir
17682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686
17687 int
17688 main ()
17689 {
17690
17691 ;
17692 return 0;
17693 }
17694 _ACEOF
17695 if ac_fn_c_try_link "$LINENO"; then :
17696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17697 lt_cv_shlibpath_overrides_runpath=yes
17698 fi
17699 fi
17700 rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
17702 LDFLAGS=$save_LDFLAGS
17703 libdir=$save_libdir
17704
17705 fi
17706
17707 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17708
17709 # This implies no fast_install, which is unacceptable.
17710 # Some rework will be needed to allow for fast_install
17711 # before this can be enabled.
17712 hardcode_into_libs=yes
17713
17714 # Ideally, we could use ldconfig to report *all* directores which are
17715 # searched for libraries, however this is still not possible. Aside from not
17716 # being certain /sbin/ldconfig is available, command
17717 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17718 # even though it is searched at run-time. Try to do the best guess by
17719 # appending ld.so.conf contents (and includes) to the search path.
17720 if test -f /etc/ld.so.conf; then
17721 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' ' '`
17722 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17723 fi
17724
17725 # We used to test for /lib/ld.so.1 and disable shared libraries on
17726 # powerpc, because MkLinux only supported shared libraries with the
17727 # GNU dynamic linker. Since this was broken with cross compilers,
17728 # most powerpc-linux boxes support dynamic linking these days and
17729 # people can always --disable-shared, the test was removed, and we
17730 # assume the GNU/Linux dynamic linker is in use.
17731 dynamic_linker='GNU/Linux ld.so'
17732 ;;
17733
17734 netbsd*)
17735 version_type=sunos
17736 need_lib_prefix=no
17737 need_version=no
17738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17739 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17741 dynamic_linker='NetBSD (a.out) ld.so'
17742 else
17743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17744 soname_spec='$libname$release$shared_ext$major'
17745 dynamic_linker='NetBSD ld.elf_so'
17746 fi
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=yes
17749 hardcode_into_libs=yes
17750 ;;
17751
17752 newsos6)
17753 version_type=linux # correct to gnu/linux during the next big refactor
17754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17755 shlibpath_var=LD_LIBRARY_PATH
17756 shlibpath_overrides_runpath=yes
17757 ;;
17758
17759 *nto* | *qnx*)
17760 version_type=qnx
17761 need_lib_prefix=no
17762 need_version=no
17763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17764 soname_spec='$libname$release$shared_ext$major'
17765 shlibpath_var=LD_LIBRARY_PATH
17766 shlibpath_overrides_runpath=no
17767 hardcode_into_libs=yes
17768 dynamic_linker='ldqnx.so'
17769 ;;
17770
17771 openbsd* | bitrig*)
17772 version_type=sunos
17773 sys_lib_dlsearch_path_spec=/usr/lib
17774 need_lib_prefix=no
17775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17776 need_version=no
17777 else
17778 need_version=yes
17779 fi
17780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17782 shlibpath_var=LD_LIBRARY_PATH
17783 shlibpath_overrides_runpath=yes
17784 ;;
17785
17786 os2*)
17787 libname_spec='$name'
17788 version_type=windows
17789 shrext_cmds=.dll
17790 need_version=no
17791 need_lib_prefix=no
17792 # OS/2 can only load a DLL with a base name of 8 characters or less.
17793 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17794 v=$($ECHO $release$versuffix | tr -d .-);
17795 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17796 $ECHO $n$v`$shared_ext'
17797 library_names_spec='${libname}_dll.$libext'
17798 dynamic_linker='OS/2 ld.exe'
17799 shlibpath_var=BEGINLIBPATH
17800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17802 postinstall_cmds='base_file=`basename \$file`~
17803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17804 dldir=$destdir/`dirname \$dlpath`~
17805 test -d \$dldir || mkdir -p \$dldir~
17806 $install_prog $dir/$dlname \$dldir/$dlname~
17807 chmod a+x \$dldir/$dlname~
17808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17810 fi'
17811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17812 dlpath=$dir/\$dldll~
17813 $RM \$dlpath'
17814 ;;
17815
17816 osf3* | osf4* | osf5*)
17817 version_type=osf
17818 need_lib_prefix=no
17819 need_version=no
17820 soname_spec='$libname$release$shared_ext$major'
17821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17825 ;;
17826
17827 rdos*)
17828 dynamic_linker=no
17829 ;;
17830
17831 solaris*)
17832 version_type=linux # correct to gnu/linux during the next big refactor
17833 need_lib_prefix=no
17834 need_version=no
17835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17836 soname_spec='$libname$release$shared_ext$major'
17837 shlibpath_var=LD_LIBRARY_PATH
17838 shlibpath_overrides_runpath=yes
17839 hardcode_into_libs=yes
17840 # ldd complains unless libraries are executable
17841 postinstall_cmds='chmod +x $lib'
17842 ;;
17843
17844 sunos4*)
17845 version_type=sunos
17846 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17847 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 shlibpath_overrides_runpath=yes
17850 if test yes = "$with_gnu_ld"; then
17851 need_lib_prefix=no
17852 fi
17853 need_version=yes
17854 ;;
17855
17856 sysv4 | sysv4.3*)
17857 version_type=linux # correct to gnu/linux during the next big refactor
17858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17859 soname_spec='$libname$release$shared_ext$major'
17860 shlibpath_var=LD_LIBRARY_PATH
17861 case $host_vendor in
17862 sni)
17863 shlibpath_overrides_runpath=no
17864 need_lib_prefix=no
17865 runpath_var=LD_RUN_PATH
17866 ;;
17867 siemens)
17868 need_lib_prefix=no
17869 ;;
17870 motorola)
17871 need_lib_prefix=no
17872 need_version=no
17873 shlibpath_overrides_runpath=no
17874 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17875 ;;
17876 esac
17877 ;;
17878
17879 sysv4*MP*)
17880 if test -d /usr/nec; then
17881 version_type=linux # correct to gnu/linux during the next big refactor
17882 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17883 soname_spec='$libname$shared_ext.$major'
17884 shlibpath_var=LD_LIBRARY_PATH
17885 fi
17886 ;;
17887
17888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17889 version_type=sco
17890 need_lib_prefix=no
17891 need_version=no
17892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17893 soname_spec='$libname$release$shared_ext$major'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=yes
17896 hardcode_into_libs=yes
17897 if test yes = "$with_gnu_ld"; then
17898 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17899 else
17900 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17901 case $host_os in
17902 sco3.2v5*)
17903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17904 ;;
17905 esac
17906 fi
17907 sys_lib_dlsearch_path_spec='/usr/lib'
17908 ;;
17909
17910 tpf*)
17911 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17912 version_type=linux # correct to gnu/linux during the next big refactor
17913 need_lib_prefix=no
17914 need_version=no
17915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 shlibpath_overrides_runpath=no
17918 hardcode_into_libs=yes
17919 ;;
17920
17921 uts4*)
17922 version_type=linux # correct to gnu/linux during the next big refactor
17923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17924 soname_spec='$libname$release$shared_ext$major'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 ;;
17927
17928 *)
17929 dynamic_linker=no
17930 ;;
17931 esac
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17933 $as_echo "$dynamic_linker" >&6; }
17934 test no = "$dynamic_linker" && can_build_shared=no
17935
17936 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17937 if test yes = "$GCC"; then
17938 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17939 fi
17940
17941 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17942 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17943 fi
17944
17945 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17946 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17947 fi
17948
17949 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17950 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17951
17952 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17953 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17954
17955 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17956 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18055 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18056 hardcode_action=
18057 if test -n "$hardcode_libdir_flag_spec" ||
18058 test -n "$runpath_var" ||
18059 test yes = "$hardcode_automatic"; then
18060
18061 # We can hardcode non-existent directories.
18062 if test no != "$hardcode_direct" &&
18063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18064 # have to relink, otherwise we might link with an installed library
18065 # when we should be linking with a yet-to-be-installed one
18066 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18067 test no != "$hardcode_minus_L"; then
18068 # Linking always hardcodes the temporary library directory.
18069 hardcode_action=relink
18070 else
18071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18072 hardcode_action=immediate
18073 fi
18074 else
18075 # We cannot hardcode anything, or else we can only hardcode existing
18076 # directories.
18077 hardcode_action=unsupported
18078 fi
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18080 $as_echo "$hardcode_action" >&6; }
18081
18082 if test relink = "$hardcode_action" ||
18083 test yes = "$inherit_rpath"; then
18084 # Fast installation is not supported
18085 enable_fast_install=no
18086 elif test yes = "$shlibpath_overrides_runpath" ||
18087 test no = "$enable_shared"; then
18088 # Fast installation is not necessary
18089 enable_fast_install=needless
18090 fi
18091
18092
18093
18094
18095
18096
18097 if test yes != "$enable_dlopen"; then
18098 enable_dlopen=unknown
18099 enable_dlopen_self=unknown
18100 enable_dlopen_self_static=unknown
18101 else
18102 lt_cv_dlopen=no
18103 lt_cv_dlopen_libs=
18104
18105 case $host_os in
18106 beos*)
18107 lt_cv_dlopen=load_add_on
18108 lt_cv_dlopen_libs=
18109 lt_cv_dlopen_self=yes
18110 ;;
18111
18112 mingw* | pw32* | cegcc*)
18113 lt_cv_dlopen=LoadLibrary
18114 lt_cv_dlopen_libs=
18115 ;;
18116
18117 cygwin*)
18118 lt_cv_dlopen=dlopen
18119 lt_cv_dlopen_libs=
18120 ;;
18121
18122 darwin*)
18123 # if libdl is installed we need to link against it
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18125 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18126 if ${ac_cv_lib_dl_dlopen+:} false; then :
18127 $as_echo_n "(cached) " >&6
18128 else
18129 ac_check_lib_save_LIBS=$LIBS
18130 LIBS="-ldl $LIBS"
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133
18134 /* Override any GCC internal prototype to avoid an error.
18135 Use char because int might match the return type of a GCC
18136 builtin and then its argument prototype would still apply. */
18137 #ifdef __cplusplus
18138 extern "C"
18139 #endif
18140 char dlopen ();
18141 int
18142 main ()
18143 {
18144 return dlopen ();
18145 ;
18146 return 0;
18147 }
18148 _ACEOF
18149 if ac_fn_c_try_link "$LINENO"; then :
18150 ac_cv_lib_dl_dlopen=yes
18151 else
18152 ac_cv_lib_dl_dlopen=no
18153 fi
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18156 LIBS=$ac_check_lib_save_LIBS
18157 fi
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18160 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18161 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18162 else
18163
18164 lt_cv_dlopen=dyld
18165 lt_cv_dlopen_libs=
18166 lt_cv_dlopen_self=yes
18167
18168 fi
18169
18170 ;;
18171
18172 tpf*)
18173 # Don't try to run any link tests for TPF. We know it's impossible
18174 # because TPF is a cross-compiler, and we know how we open DSOs.
18175 lt_cv_dlopen=dlopen
18176 lt_cv_dlopen_libs=
18177 lt_cv_dlopen_self=no
18178 ;;
18179
18180 *)
18181 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18182 if test "x$ac_cv_func_shl_load" = xyes; then :
18183 lt_cv_dlopen=shl_load
18184 else
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18186 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18187 if ${ac_cv_lib_dld_shl_load+:} false; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 ac_check_lib_save_LIBS=$LIBS
18191 LIBS="-ldld $LIBS"
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194
18195 /* Override any GCC internal prototype to avoid an error.
18196 Use char because int might match the return type of a GCC
18197 builtin and then its argument prototype would still apply. */
18198 #ifdef __cplusplus
18199 extern "C"
18200 #endif
18201 char shl_load ();
18202 int
18203 main ()
18204 {
18205 return shl_load ();
18206 ;
18207 return 0;
18208 }
18209 _ACEOF
18210 if ac_fn_c_try_link "$LINENO"; then :
18211 ac_cv_lib_dld_shl_load=yes
18212 else
18213 ac_cv_lib_dld_shl_load=no
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext \
18216 conftest$ac_exeext conftest.$ac_ext
18217 LIBS=$ac_check_lib_save_LIBS
18218 fi
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18220 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18221 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18222 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18223 else
18224 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18225 if test "x$ac_cv_func_dlopen" = xyes; then :
18226 lt_cv_dlopen=dlopen
18227 else
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18230 if ${ac_cv_lib_dl_dlopen+:} false; then :
18231 $as_echo_n "(cached) " >&6
18232 else
18233 ac_check_lib_save_LIBS=$LIBS
18234 LIBS="-ldl $LIBS"
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18237
18238 /* Override any GCC internal prototype to avoid an error.
18239 Use char because int might match the return type of a GCC
18240 builtin and then its argument prototype would still apply. */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 char dlopen ();
18245 int
18246 main ()
18247 {
18248 return dlopen ();
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 if ac_fn_c_try_link "$LINENO"; then :
18254 ac_cv_lib_dl_dlopen=yes
18255 else
18256 ac_cv_lib_dl_dlopen=no
18257 fi
18258 rm -f core conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18260 LIBS=$ac_check_lib_save_LIBS
18261 fi
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18263 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18264 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18265 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18266 else
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18268 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18269 if ${ac_cv_lib_svld_dlopen+:} false; then :
18270 $as_echo_n "(cached) " >&6
18271 else
18272 ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-lsvld $LIBS"
18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18276
18277 /* Override any GCC internal prototype to avoid an error.
18278 Use char because int might match the return type of a GCC
18279 builtin and then its argument prototype would still apply. */
18280 #ifdef __cplusplus
18281 extern "C"
18282 #endif
18283 char dlopen ();
18284 int
18285 main ()
18286 {
18287 return dlopen ();
18288 ;
18289 return 0;
18290 }
18291 _ACEOF
18292 if ac_fn_c_try_link "$LINENO"; then :
18293 ac_cv_lib_svld_dlopen=yes
18294 else
18295 ac_cv_lib_svld_dlopen=no
18296 fi
18297 rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18299 LIBS=$ac_check_lib_save_LIBS
18300 fi
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18302 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18303 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18304 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18305 else
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18307 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18308 if ${ac_cv_lib_dld_dld_link+:} false; then :
18309 $as_echo_n "(cached) " >&6
18310 else
18311 ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-ldld $LIBS"
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 char dld_link ();
18323 int
18324 main ()
18325 {
18326 return dld_link ();
18327 ;
18328 return 0;
18329 }
18330 _ACEOF
18331 if ac_fn_c_try_link "$LINENO"; then :
18332 ac_cv_lib_dld_dld_link=yes
18333 else
18334 ac_cv_lib_dld_dld_link=no
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext \
18337 conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18339 fi
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18341 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18342 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18343 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18344 fi
18345
18346
18347 fi
18348
18349
18350 fi
18351
18352
18353 fi
18354
18355
18356 fi
18357
18358
18359 fi
18360
18361 ;;
18362 esac
18363
18364 if test no = "$lt_cv_dlopen"; then
18365 enable_dlopen=no
18366 else
18367 enable_dlopen=yes
18368 fi
18369
18370 case $lt_cv_dlopen in
18371 dlopen)
18372 save_CPPFLAGS=$CPPFLAGS
18373 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18374
18375 save_LDFLAGS=$LDFLAGS
18376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18377
18378 save_LIBS=$LIBS
18379 LIBS="$lt_cv_dlopen_libs $LIBS"
18380
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18382 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18383 if ${lt_cv_dlopen_self+:} false; then :
18384 $as_echo_n "(cached) " >&6
18385 else
18386 if test yes = "$cross_compiling"; then :
18387 lt_cv_dlopen_self=cross
18388 else
18389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18390 lt_status=$lt_dlunknown
18391 cat > conftest.$ac_ext <<_LT_EOF
18392 #line $LINENO "configure"
18393 #include "confdefs.h"
18394
18395 #if HAVE_DLFCN_H
18396 #include <dlfcn.h>
18397 #endif
18398
18399 #include <stdio.h>
18400
18401 #ifdef RTLD_GLOBAL
18402 # define LT_DLGLOBAL RTLD_GLOBAL
18403 #else
18404 # ifdef DL_GLOBAL
18405 # define LT_DLGLOBAL DL_GLOBAL
18406 # else
18407 # define LT_DLGLOBAL 0
18408 # endif
18409 #endif
18410
18411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18412 find out it does not work in some platform. */
18413 #ifndef LT_DLLAZY_OR_NOW
18414 # ifdef RTLD_LAZY
18415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18416 # else
18417 # ifdef DL_LAZY
18418 # define LT_DLLAZY_OR_NOW DL_LAZY
18419 # else
18420 # ifdef RTLD_NOW
18421 # define LT_DLLAZY_OR_NOW RTLD_NOW
18422 # else
18423 # ifdef DL_NOW
18424 # define LT_DLLAZY_OR_NOW DL_NOW
18425 # else
18426 # define LT_DLLAZY_OR_NOW 0
18427 # endif
18428 # endif
18429 # endif
18430 # endif
18431 #endif
18432
18433 /* When -fvisibility=hidden is used, assume the code has been annotated
18434 correspondingly for the symbols needed. */
18435 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18436 int fnord () __attribute__((visibility("default")));
18437 #endif
18438
18439 int fnord () { return 42; }
18440 int main ()
18441 {
18442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18443 int status = $lt_dlunknown;
18444
18445 if (self)
18446 {
18447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18448 else
18449 {
18450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18451 else puts (dlerror ());
18452 }
18453 /* dlclose (self); */
18454 }
18455 else
18456 puts (dlerror ());
18457
18458 return status;
18459 }
18460 _LT_EOF
18461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18462 (eval $ac_link) 2>&5
18463 ac_status=$?
18464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18465 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18466 (./conftest; exit; ) >&5 2>/dev/null
18467 lt_status=$?
18468 case x$lt_status in
18469 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18470 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18471 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18472 esac
18473 else :
18474 # compilation failed
18475 lt_cv_dlopen_self=no
18476 fi
18477 fi
18478 rm -fr conftest*
18479
18480
18481 fi
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18483 $as_echo "$lt_cv_dlopen_self" >&6; }
18484
18485 if test yes = "$lt_cv_dlopen_self"; then
18486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18488 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18489 if ${lt_cv_dlopen_self_static+:} false; then :
18490 $as_echo_n "(cached) " >&6
18491 else
18492 if test yes = "$cross_compiling"; then :
18493 lt_cv_dlopen_self_static=cross
18494 else
18495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18496 lt_status=$lt_dlunknown
18497 cat > conftest.$ac_ext <<_LT_EOF
18498 #line $LINENO "configure"
18499 #include "confdefs.h"
18500
18501 #if HAVE_DLFCN_H
18502 #include <dlfcn.h>
18503 #endif
18504
18505 #include <stdio.h>
18506
18507 #ifdef RTLD_GLOBAL
18508 # define LT_DLGLOBAL RTLD_GLOBAL
18509 #else
18510 # ifdef DL_GLOBAL
18511 # define LT_DLGLOBAL DL_GLOBAL
18512 # else
18513 # define LT_DLGLOBAL 0
18514 # endif
18515 #endif
18516
18517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18518 find out it does not work in some platform. */
18519 #ifndef LT_DLLAZY_OR_NOW
18520 # ifdef RTLD_LAZY
18521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18522 # else
18523 # ifdef DL_LAZY
18524 # define LT_DLLAZY_OR_NOW DL_LAZY
18525 # else
18526 # ifdef RTLD_NOW
18527 # define LT_DLLAZY_OR_NOW RTLD_NOW
18528 # else
18529 # ifdef DL_NOW
18530 # define LT_DLLAZY_OR_NOW DL_NOW
18531 # else
18532 # define LT_DLLAZY_OR_NOW 0
18533 # endif
18534 # endif
18535 # endif
18536 # endif
18537 #endif
18538
18539 /* When -fvisibility=hidden is used, assume the code has been annotated
18540 correspondingly for the symbols needed. */
18541 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18542 int fnord () __attribute__((visibility("default")));
18543 #endif
18544
18545 int fnord () { return 42; }
18546 int main ()
18547 {
18548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18549 int status = $lt_dlunknown;
18550
18551 if (self)
18552 {
18553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18554 else
18555 {
18556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18557 else puts (dlerror ());
18558 }
18559 /* dlclose (self); */
18560 }
18561 else
18562 puts (dlerror ());
18563
18564 return status;
18565 }
18566 _LT_EOF
18567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18568 (eval $ac_link) 2>&5
18569 ac_status=$?
18570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18571 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18572 (./conftest; exit; ) >&5 2>/dev/null
18573 lt_status=$?
18574 case x$lt_status in
18575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18577 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18578 esac
18579 else :
18580 # compilation failed
18581 lt_cv_dlopen_self_static=no
18582 fi
18583 fi
18584 rm -fr conftest*
18585
18586
18587 fi
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18589 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18590 fi
18591
18592 CPPFLAGS=$save_CPPFLAGS
18593 LDFLAGS=$save_LDFLAGS
18594 LIBS=$save_LIBS
18595 ;;
18596 esac
18597
18598 case $lt_cv_dlopen_self in
18599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18600 *) enable_dlopen_self=unknown ;;
18601 esac
18602
18603 case $lt_cv_dlopen_self_static in
18604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18605 *) enable_dlopen_self_static=unknown ;;
18606 esac
18607 fi
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625 striplib=
18626 old_striplib=
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18628 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18629 if test -z "$STRIP"; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632 else
18633 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18634 old_striplib="$STRIP --strip-debug"
18635 striplib="$STRIP --strip-unneeded"
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18637 $as_echo "yes" >&6; }
18638 else
18639 case $host_os in
18640 darwin*)
18641 # FIXME - insert some real tests, host_os isn't really good enough
18642 striplib="$STRIP -x"
18643 old_striplib="$STRIP -S"
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18645 $as_echo "yes" >&6; }
18646 ;;
18647 freebsd*)
18648 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
18649 old_striplib="$STRIP --strip-debug"
18650 striplib="$STRIP --strip-unneeded"
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18652 $as_echo "yes" >&6; }
18653 else
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18655 $as_echo "no" >&6; }
18656 fi
18657 ;;
18658 *)
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18660 $as_echo "no" >&6; }
18661 ;;
18662 esac
18663 fi
18664 fi
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677 # Report what library types will actually be built
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18679 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18681 $as_echo "$can_build_shared" >&6; }
18682
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18684 $as_echo_n "checking whether to build shared libraries... " >&6; }
18685 test no = "$can_build_shared" && enable_shared=no
18686
18687 # On AIX, shared libraries and static libraries use the same namespace, and
18688 # are all built from PIC.
18689 case $host_os in
18690 aix3*)
18691 test yes = "$enable_shared" && enable_static=no
18692 if test -n "$RANLIB"; then
18693 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18694 postinstall_cmds='$RANLIB $lib'
18695 fi
18696 ;;
18697
18698 aix[4-9]*)
18699 if test ia64 != "$host_cpu"; then
18700 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18701 yes,aix,yes) ;; # shared object as lib.so file only
18702 yes,svr4,*) ;; # shared object as lib.so archive member only
18703 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18704 esac
18705 fi
18706 ;;
18707 esac
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18709 $as_echo "$enable_shared" >&6; }
18710
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18712 $as_echo_n "checking whether to build static libraries... " >&6; }
18713 # Make sure either enable_shared or enable_static is yes.
18714 test yes = "$enable_shared" || enable_static=yes
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18716 $as_echo "$enable_static" >&6; }
18717
18718
18719
18720
18721 fi
18722 ac_ext=c
18723 ac_cpp='$CPP $CPPFLAGS'
18724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18727
18728 CC=$lt_save_CC
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744 ac_config_commands="$ac_config_commands libtool"
18745
18746
18747
18748
18749 # Only expand once:
18750
18751
18752
18753 # Checks for programs.
18754
18755
18756 if test "x$GCC" = "xyes"; then
18757 CPPFLAGS="$CPPFLAGS -Wall"
18758 fi
18759
18760
18761
18762 # Define a configure option for an alternate module directory
18763
18764 # Check whether --with-xorg-module-dir was given.
18765 if test "${with_xorg_module_dir+set}" = set; then :
18766 withval=$with_xorg_module_dir; moduledir="$withval"
18767 else
18768 moduledir="$libdir/xorg/modules"
18769 fi
18770
18771
18772 # Store the list of server defined optional extensions in REQUIRED_MODULES
18773
18774
18775 SAVE_CFLAGS="$CFLAGS"
18776 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779
18780 #include "xorg-server.h"
18781 #if !defined RANDR
18782 #error RANDR not defined
18783 #endif
18784
18785 int
18786 main ()
18787 {
18788
18789 ;
18790 return 0;
18791 }
18792 _ACEOF
18793 if ac_fn_c_try_compile "$LINENO"; then :
18794 _EXT_CHECK=yes
18795 else
18796 _EXT_CHECK=no
18797 fi
18798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799 CFLAGS="$SAVE_CFLAGS"
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18801 $as_echo_n "checking if RANDR is defined... " >&6; }
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18803 $as_echo "$_EXT_CHECK" >&6; }
18804 if test "$_EXT_CHECK" != no; then
18805 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18806 fi
18807
18808
18809
18810 SAVE_CFLAGS="$CFLAGS"
18811 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814
18815 #include "xorg-server.h"
18816 #if !defined RENDER
18817 #error RENDER not defined
18818 #endif
18819
18820 int
18821 main ()
18822 {
18823
18824 ;
18825 return 0;
18826 }
18827 _ACEOF
18828 if ac_fn_c_try_compile "$LINENO"; then :
18829 _EXT_CHECK=yes
18830 else
18831 _EXT_CHECK=no
18832 fi
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 CFLAGS="$SAVE_CFLAGS"
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18836 $as_echo_n "checking if RENDER is defined... " >&6; }
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18838 $as_echo "$_EXT_CHECK" >&6; }
18839 if test "$_EXT_CHECK" != no; then
18840 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18841 fi
18842
18843
18844
18845 SAVE_CFLAGS="$CFLAGS"
18846 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18849
18850 #include "xorg-server.h"
18851 #if !defined XV
18852 #error XV not defined
18853 #endif
18854
18855 int
18856 main ()
18857 {
18858
18859 ;
18860 return 0;
18861 }
18862 _ACEOF
18863 if ac_fn_c_try_compile "$LINENO"; then :
18864 _EXT_CHECK=yes
18865 else
18866 _EXT_CHECK=no
18867 fi
18868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18869 CFLAGS="$SAVE_CFLAGS"
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18871 $as_echo_n "checking if XV is defined... " >&6; }
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18873 $as_echo "$_EXT_CHECK" >&6; }
18874 if test "$_EXT_CHECK" != no; then
18875 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18876 fi
18877
18878
18879
18880 SAVE_CFLAGS="$CFLAGS"
18881 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h. */
18884
18885 #include "xorg-server.h"
18886 #if !defined DPMSExtension
18887 #error DPMSExtension not defined
18888 #endif
18889
18890 int
18891 main ()
18892 {
18893
18894 ;
18895 return 0;
18896 }
18897 _ACEOF
18898 if ac_fn_c_try_compile "$LINENO"; then :
18899 _EXT_CHECK=yes
18900 else
18901 _EXT_CHECK=no
18902 fi
18903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18904 CFLAGS="$SAVE_CFLAGS"
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18906 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18908 $as_echo "$_EXT_CHECK" >&6; }
18909 if test "$_EXT_CHECK" != no; then
18910 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18911 fi
18912
18913
18914 # Checks for libraries.
18915
18916 pkg_failed=no
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18918 $as_echo_n "checking for LIBDRM... " >&6; }
18919
18920 if test -n "$LIBDRM_CFLAGS"; then
18921 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18922 elif test -n "$PKG_CONFIG"; then
18923 if test -n "$PKG_CONFIG" && \
18924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
18925 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
18926 ac_status=$?
18927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18928 test $ac_status = 0; }; then
18929 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null`
18930 test "x$?" != "x0" && pkg_failed=yes
18931 else
18932 pkg_failed=yes
18933 fi
18934 else
18935 pkg_failed=untried
18936 fi
18937 if test -n "$LIBDRM_LIBS"; then
18938 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18939 elif test -n "$PKG_CONFIG"; then
18940 if test -n "$PKG_CONFIG" && \
18941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
18942 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
18943 ac_status=$?
18944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18945 test $ac_status = 0; }; then
18946 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null`
18947 test "x$?" != "x0" && pkg_failed=yes
18948 else
18949 pkg_failed=yes
18950 fi
18951 else
18952 pkg_failed=untried
18953 fi
18954
18955
18956
18957 if test $pkg_failed = yes; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959 $as_echo "no" >&6; }
18960
18961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18962 _pkg_short_errors_supported=yes
18963 else
18964 _pkg_short_errors_supported=no
18965 fi
18966 if test $_pkg_short_errors_supported = yes; then
18967 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
18968 else
18969 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
18970 fi
18971 # Put the nasty error message in config.log where it belongs
18972 echo "$LIBDRM_PKG_ERRORS" >&5
18973
18974 as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met:
18975
18976 $LIBDRM_PKG_ERRORS
18977
18978 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18979 installed software in a non-standard prefix.
18980
18981 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18982 and LIBDRM_LIBS to avoid the need to call pkg-config.
18983 See the pkg-config man page for more details." "$LINENO" 5
18984 elif test $pkg_failed = untried; then
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18986 $as_echo "no" >&6; }
18987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18989 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18990 is in your PATH or set the PKG_CONFIG environment variable to the full
18991 path to pkg-config.
18992
18993 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18994 and LIBDRM_LIBS to avoid the need to call pkg-config.
18995 See the pkg-config man page for more details.
18996
18997 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18998 See \`config.log' for more details" "$LINENO" 5; }
18999 else
19000 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
19001 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19003 $as_echo "yes" >&6; }
19004
19005 fi
19006
19007 pkg_failed=no
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
19009 $as_echo_n "checking for LIBDRM_RADEON... " >&6; }
19010
19011 if test -n "$LIBDRM_RADEON_CFLAGS"; then
19012 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
19013 elif test -n "$PKG_CONFIG"; then
19014 if test -n "$PKG_CONFIG" && \
19015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19016 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19017 ac_status=$?
19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19019 test $ac_status = 0; }; then
19020 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null`
19021 test "x$?" != "x0" && pkg_failed=yes
19022 else
19023 pkg_failed=yes
19024 fi
19025 else
19026 pkg_failed=untried
19027 fi
19028 if test -n "$LIBDRM_RADEON_LIBS"; then
19029 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
19030 elif test -n "$PKG_CONFIG"; then
19031 if test -n "$PKG_CONFIG" && \
19032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19033 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19034 ac_status=$?
19035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19036 test $ac_status = 0; }; then
19037 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null`
19038 test "x$?" != "x0" && pkg_failed=yes
19039 else
19040 pkg_failed=yes
19041 fi
19042 else
19043 pkg_failed=untried
19044 fi
19045
19046
19047
19048 if test $pkg_failed = yes; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051
19052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19053 _pkg_short_errors_supported=yes
19054 else
19055 _pkg_short_errors_supported=no
19056 fi
19057 if test $_pkg_short_errors_supported = yes; then
19058 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19059 else
19060 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19061 fi
19062 # Put the nasty error message in config.log where it belongs
19063 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
19064
19065 as_fn_error $? "Package requirements (libdrm_radeon) were not met:
19066
19067 $LIBDRM_RADEON_PKG_ERRORS
19068
19069 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19070 installed software in a non-standard prefix.
19071
19072 Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19073 and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19074 See the pkg-config man page for more details." "$LINENO" 5
19075 elif test $pkg_failed = untried; then
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 $as_echo "no" >&6; }
19078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19080 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19081 is in your PATH or set the PKG_CONFIG environment variable to the full
19082 path to pkg-config.
19083
19084 Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19085 and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19086 See the pkg-config man page for more details.
19087
19088 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19089 See \`config.log' for more details" "$LINENO" 5; }
19090 else
19091 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
19092 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19094 $as_echo "yes" >&6; }
19095
19096 fi
19097
19098 # Obtain compiler/linker options for the driver dependencies
19099
19100 pkg_failed=no
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19102 $as_echo_n "checking for XORG... " >&6; }
19103
19104 if test -n "$XORG_CFLAGS"; then
19105 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19106 elif test -n "$PKG_CONFIG"; then
19107 if test -n "$PKG_CONFIG" && \
19108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19109 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19110 ac_status=$?
19111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19112 test $ac_status = 0; }; then
19113 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19114 test "x$?" != "x0" && pkg_failed=yes
19115 else
19116 pkg_failed=yes
19117 fi
19118 else
19119 pkg_failed=untried
19120 fi
19121 if test -n "$XORG_LIBS"; then
19122 pkg_cv_XORG_LIBS="$XORG_LIBS"
19123 elif test -n "$PKG_CONFIG"; then
19124 if test -n "$PKG_CONFIG" && \
19125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19126 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19127 ac_status=$?
19128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129 test $ac_status = 0; }; then
19130 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19131 test "x$?" != "x0" && pkg_failed=yes
19132 else
19133 pkg_failed=yes
19134 fi
19135 else
19136 pkg_failed=untried
19137 fi
19138
19139
19140
19141 if test $pkg_failed = yes; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143 $as_echo "no" >&6; }
19144
19145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19146 _pkg_short_errors_supported=yes
19147 else
19148 _pkg_short_errors_supported=no
19149 fi
19150 if test $_pkg_short_errors_supported = yes; then
19151 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19152 else
19153 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19154 fi
19155 # Put the nasty error message in config.log where it belongs
19156 echo "$XORG_PKG_ERRORS" >&5
19157
19158 as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
19159
19160 $XORG_PKG_ERRORS
19161
19162 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19163 installed software in a non-standard prefix.
19164
19165 Alternatively, you may set the environment variables XORG_CFLAGS
19166 and XORG_LIBS to avoid the need to call pkg-config.
19167 See the pkg-config man page for more details." "$LINENO" 5
19168 elif test $pkg_failed = untried; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19170 $as_echo "no" >&6; }
19171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19173 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19174 is in your PATH or set the PKG_CONFIG environment variable to the full
19175 path to pkg-config.
19176
19177 Alternatively, you may set the environment variables XORG_CFLAGS
19178 and XORG_LIBS to avoid the need to call pkg-config.
19179 See the pkg-config man page for more details.
19180
19181 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19182 See \`config.log' for more details" "$LINENO" 5; }
19183 else
19184 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19185 XORG_LIBS=$pkg_cv_XORG_LIBS
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19187 $as_echo "yes" >&6; }
19188
19189 fi
19190
19191 pkg_failed=no
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19193 $as_echo_n "checking for XEXT... " >&6; }
19194
19195 if test -n "$XEXT_CFLAGS"; then
19196 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19197 elif test -n "$PKG_CONFIG"; then
19198 if test -n "$PKG_CONFIG" && \
19199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19200 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19201 ac_status=$?
19202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19203 test $ac_status = 0; }; then
19204 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19205 test "x$?" != "x0" && pkg_failed=yes
19206 else
19207 pkg_failed=yes
19208 fi
19209 else
19210 pkg_failed=untried
19211 fi
19212 if test -n "$XEXT_LIBS"; then
19213 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19214 elif test -n "$PKG_CONFIG"; then
19215 if test -n "$PKG_CONFIG" && \
19216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19217 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19218 ac_status=$?
19219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19220 test $ac_status = 0; }; then
19221 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19222 test "x$?" != "x0" && pkg_failed=yes
19223 else
19224 pkg_failed=yes
19225 fi
19226 else
19227 pkg_failed=untried
19228 fi
19229
19230
19231
19232 if test $pkg_failed = yes; then
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234 $as_echo "no" >&6; }
19235
19236 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19237 _pkg_short_errors_supported=yes
19238 else
19239 _pkg_short_errors_supported=no
19240 fi
19241 if test $_pkg_short_errors_supported = yes; then
19242 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19243 else
19244 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19245 fi
19246 # Put the nasty error message in config.log where it belongs
19247 echo "$XEXT_PKG_ERRORS" >&5
19248
19249 HAVE_XEXTPROTO_71="no"
19250 elif test $pkg_failed = untried; then
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19252 $as_echo "no" >&6; }
19253 HAVE_XEXTPROTO_71="no"
19254 else
19255 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19256 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19258 $as_echo "yes" >&6; }
19259 HAVE_XEXTPROTO_71="yes";
19260 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19261
19262 fi
19263 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
19264 HAVE_XEXTPROTO_71_TRUE=
19265 HAVE_XEXTPROTO_71_FALSE='#'
19266 else
19267 HAVE_XEXTPROTO_71_TRUE='#'
19268 HAVE_XEXTPROTO_71_FALSE=
19269 fi
19270
19271
19272 # Section "OutputClass" is only supported as of xserver 1.16
19273 if test -n "$PKG_CONFIG" && \
19274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
19275 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
19276 ac_status=$?
19277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19278 test $ac_status = 0; }; then
19279 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
19280 else
19281 sysconfigdir=""
19282 fi
19283 if test "x$sysconfigdir" != "x"; then
19284 HAS_XORG_CONF_DIR_TRUE=
19285 HAS_XORG_CONF_DIR_FALSE='#'
19286 else
19287 HAS_XORG_CONF_DIR_TRUE='#'
19288 HAS_XORG_CONF_DIR_FALSE=
19289 fi
19290
19291
19292 # Define a configure option for an alternate X Server configuration directory
19293
19294 # Check whether --with-xorg-conf-dir was given.
19295 if test "${with_xorg_conf_dir+set}" = set; then :
19296 withval=$with_xorg_conf_dir; configdir="$withval"
19297 else
19298 configdir='${prefix}/share/X11/xorg.conf.d'
19299 fi
19300
19301
19302
19303 # Check whether --enable-udev was given.
19304 if test "${enable_udev+set}" = set; then :
19305 enableval=$enable_udev; enable_udev="$enableval"
19306 else
19307 enable_udev=auto
19308 fi
19309
19310 if test "x$enable_udev" != "xno"; then
19311
19312 pkg_failed=no
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19314 $as_echo_n "checking for LIBUDEV... " >&6; }
19315
19316 if test -n "$LIBUDEV_CFLAGS"; then
19317 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19318 elif test -n "$PKG_CONFIG"; then
19319 if test -n "$PKG_CONFIG" && \
19320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19321 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19322 ac_status=$?
19323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19324 test $ac_status = 0; }; then
19325 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19326 test "x$?" != "x0" && pkg_failed=yes
19327 else
19328 pkg_failed=yes
19329 fi
19330 else
19331 pkg_failed=untried
19332 fi
19333 if test -n "$LIBUDEV_LIBS"; then
19334 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19335 elif test -n "$PKG_CONFIG"; then
19336 if test -n "$PKG_CONFIG" && \
19337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19338 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19339 ac_status=$?
19340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19341 test $ac_status = 0; }; then
19342 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19343 test "x$?" != "x0" && pkg_failed=yes
19344 else
19345 pkg_failed=yes
19346 fi
19347 else
19348 pkg_failed=untried
19349 fi
19350
19351
19352
19353 if test $pkg_failed = yes; then
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19355 $as_echo "no" >&6; }
19356
19357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19358 _pkg_short_errors_supported=yes
19359 else
19360 _pkg_short_errors_supported=no
19361 fi
19362 if test $_pkg_short_errors_supported = yes; then
19363 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19364 else
19365 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19366 fi
19367 # Put the nasty error message in config.log where it belongs
19368 echo "$LIBUDEV_PKG_ERRORS" >&5
19369
19370 LIBUDEV=no
19371 elif test $pkg_failed = untried; then
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19373 $as_echo "no" >&6; }
19374 LIBUDEV=no
19375 else
19376 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19377 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19379 $as_echo "yes" >&6; }
19380 LIBUDEV=yes
19381 fi
19382 if test "x$LIBUDEV" = xyes; then
19383
19384 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19385
19386 elif test "x$enable_udev" != "xauto"; then
19387 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
19388 fi
19389 fi
19390 if test x$LIBUDEV = xyes; then
19391 LIBUDEV_TRUE=
19392 LIBUDEV_FALSE='#'
19393 else
19394 LIBUDEV_TRUE='#'
19395 LIBUDEV_FALSE=
19396 fi
19397
19398
19399 SAVE_CPPFLAGS="$CPPFLAGS"
19400 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19401
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
19403 $as_echo_n "checking whether to include GLAMOR support... " >&6; }
19404 # Check whether --enable-glamor was given.
19405 if test "${enable_glamor+set}" = set; then :
19406 enableval=$enable_glamor; GLAMOR="$enableval"
19407 else
19408 GLAMOR=yes
19409 fi
19410
19411
19412 if test "x$GLAMOR" != "xno"; then
19413 for ac_header in glamor.h
19414 do :
19415 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
19416 "
19417 if test "x$ac_cv_header_glamor_h" = xyes; then :
19418 cat >>confdefs.h <<_ACEOF
19419 #define HAVE_GLAMOR_H 1
19420 _ACEOF
19421 GLAMOR_H="yes"
19422 else
19423 GLAMOR_H="no"
19424 fi
19425
19426 done
19427
19428
19429 if test "x$GLAMOR_H" = xyes; then
19430 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
19431 #include \"glamor.h\"
19432 "
19433 if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then :
19434 GLAMOR_XSERVER="yes"
19435 else
19436 GLAMOR_XSERVER="no"
19437 fi
19438
19439
19440 ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
19441 #include \"glamor.h\"
19442 "
19443 if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then :
19444
19445 $as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
19446
19447 fi
19448
19449
19450 ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
19451 #include \"glamor.h\"
19452 "
19453 if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then :
19454
19455 $as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
19456
19457 fi
19458
19459
19460 ac_fn_c_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\"
19461 #include \"glamor.h\"
19462 "
19463 if test "x$ac_cv_have_decl_glamor_finish" = xyes; then :
19464
19465 $as_echo "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h
19466
19467 else
19468
19469 pkg_failed=no
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5
19471 $as_echo_n "checking for LIBGL... " >&6; }
19472
19473 if test -n "$LIBGL_CFLAGS"; then
19474 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
19475 elif test -n "$PKG_CONFIG"; then
19476 if test -n "$PKG_CONFIG" && \
19477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
19478 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
19479 ac_status=$?
19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19481 test $ac_status = 0; }; then
19482 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
19483 test "x$?" != "x0" && pkg_failed=yes
19484 else
19485 pkg_failed=yes
19486 fi
19487 else
19488 pkg_failed=untried
19489 fi
19490 if test -n "$LIBGL_LIBS"; then
19491 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
19492 elif test -n "$PKG_CONFIG"; then
19493 if test -n "$PKG_CONFIG" && \
19494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
19495 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
19496 ac_status=$?
19497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19498 test $ac_status = 0; }; then
19499 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
19500 test "x$?" != "x0" && pkg_failed=yes
19501 else
19502 pkg_failed=yes
19503 fi
19504 else
19505 pkg_failed=untried
19506 fi
19507
19508
19509
19510 if test $pkg_failed = yes; then
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19512 $as_echo "no" >&6; }
19513
19514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19515 _pkg_short_errors_supported=yes
19516 else
19517 _pkg_short_errors_supported=no
19518 fi
19519 if test $_pkg_short_errors_supported = yes; then
19520 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
19521 else
19522 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
19523 fi
19524 # Put the nasty error message in config.log where it belongs
19525 echo "$LIBGL_PKG_ERRORS" >&5
19526
19527 as_fn_error $? "Package requirements (gl) were not met:
19528
19529 $LIBGL_PKG_ERRORS
19530
19531 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19532 installed software in a non-standard prefix.
19533
19534 Alternatively, you may set the environment variables LIBGL_CFLAGS
19535 and LIBGL_LIBS to avoid the need to call pkg-config.
19536 See the pkg-config man page for more details." "$LINENO" 5
19537 elif test $pkg_failed = untried; then
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19542 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19543 is in your PATH or set the PKG_CONFIG environment variable to the full
19544 path to pkg-config.
19545
19546 Alternatively, you may set the environment variables LIBGL_CFLAGS
19547 and LIBGL_LIBS to avoid the need to call pkg-config.
19548 See the pkg-config man page for more details.
19549
19550 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19551 See \`config.log' for more details" "$LINENO" 5; }
19552 else
19553 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
19554 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19556 $as_echo "yes" >&6; }
19557
19558 fi
19559 fi
19560
19561 fi
19562
19563 if test "x$GLAMOR_XSERVER" != xyes; then
19564
19565 pkg_failed=no
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
19567 $as_echo_n "checking for LIBGLAMOR... " >&6; }
19568
19569 if test -n "$LIBGLAMOR_CFLAGS"; then
19570 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
19571 elif test -n "$PKG_CONFIG"; then
19572 if test -n "$PKG_CONFIG" && \
19573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19574 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19575 ac_status=$?
19576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19577 test $ac_status = 0; }; then
19578 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
19579 test "x$?" != "x0" && pkg_failed=yes
19580 else
19581 pkg_failed=yes
19582 fi
19583 else
19584 pkg_failed=untried
19585 fi
19586 if test -n "$LIBGLAMOR_LIBS"; then
19587 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
19588 elif test -n "$PKG_CONFIG"; then
19589 if test -n "$PKG_CONFIG" && \
19590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19591 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19592 ac_status=$?
19593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19594 test $ac_status = 0; }; then
19595 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
19596 test "x$?" != "x0" && pkg_failed=yes
19597 else
19598 pkg_failed=yes
19599 fi
19600 else
19601 pkg_failed=untried
19602 fi
19603
19604
19605
19606 if test $pkg_failed = yes; then
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608 $as_echo "no" >&6; }
19609
19610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19611 _pkg_short_errors_supported=yes
19612 else
19613 _pkg_short_errors_supported=no
19614 fi
19615 if test $_pkg_short_errors_supported = yes; then
19616 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19617 else
19618 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19619 fi
19620 # Put the nasty error message in config.log where it belongs
19621 echo "$LIBGLAMOR_PKG_ERRORS" >&5
19622
19623 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
19624
19625 $LIBGLAMOR_PKG_ERRORS
19626
19627 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19628 installed software in a non-standard prefix.
19629
19630 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19631 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19632 See the pkg-config man page for more details." "$LINENO" 5
19633 elif test $pkg_failed = untried; then
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635 $as_echo "no" >&6; }
19636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19638 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19639 is in your PATH or set the PKG_CONFIG environment variable to the full
19640 path to pkg-config.
19641
19642 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19643 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19644 See the pkg-config man page for more details.
19645
19646 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19647 See \`config.log' for more details" "$LINENO" 5; }
19648 else
19649 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
19650 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19652 $as_echo "yes" >&6; }
19653
19654 fi
19655
19656 pkg_failed=no
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
19658 $as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
19659
19660 if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
19661 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
19662 elif test -n "$PKG_CONFIG"; then
19663 if test -n "$PKG_CONFIG" && \
19664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19665 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19666 ac_status=$?
19667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19668 test $ac_status = 0; }; then
19669 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
19670 test "x$?" != "x0" && pkg_failed=yes
19671 else
19672 pkg_failed=yes
19673 fi
19674 else
19675 pkg_failed=untried
19676 fi
19677 if test -n "$LIBGLAMOR_EGL_LIBS"; then
19678 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
19679 elif test -n "$PKG_CONFIG"; then
19680 if test -n "$PKG_CONFIG" && \
19681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19682 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19683 ac_status=$?
19684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19685 test $ac_status = 0; }; then
19686 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
19687 test "x$?" != "x0" && pkg_failed=yes
19688 else
19689 pkg_failed=yes
19690 fi
19691 else
19692 pkg_failed=untried
19693 fi
19694
19695
19696
19697 if test $pkg_failed = yes; then
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19699 $as_echo "no" >&6; }
19700
19701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19702 _pkg_short_errors_supported=yes
19703 else
19704 _pkg_short_errors_supported=no
19705 fi
19706 if test $_pkg_short_errors_supported = yes; then
19707 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
19708 else
19709 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
19710 fi
19711 # Put the nasty error message in config.log where it belongs
19712 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
19713
19714 as_fn_error $? "Package requirements (glamor-egl) were not met:
19715
19716 $LIBGLAMOR_EGL_PKG_ERRORS
19717
19718 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19719 installed software in a non-standard prefix.
19720
19721 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19722 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19723 See the pkg-config man page for more details." "$LINENO" 5
19724 elif test $pkg_failed = untried; then
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19726 $as_echo "no" >&6; }
19727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19729 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19730 is in your PATH or set the PKG_CONFIG environment variable to the full
19731 path to pkg-config.
19732
19733 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19734 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19735 See the pkg-config man page for more details.
19736
19737 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19738 See \`config.log' for more details" "$LINENO" 5; }
19739 else
19740 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
19741 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19743 $as_echo "yes" >&6; }
19744
19745 fi
19746 fi
19747
19748
19749 pkg_failed=no
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
19751 $as_echo_n "checking for GBM... " >&6; }
19752
19753 if test -n "$GBM_CFLAGS"; then
19754 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
19755 elif test -n "$PKG_CONFIG"; then
19756 if test -n "$PKG_CONFIG" && \
19757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5
19758 ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5
19759 ac_status=$?
19760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19761 test $ac_status = 0; }; then
19762 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 10.6" 2>/dev/null`
19763 test "x$?" != "x0" && pkg_failed=yes
19764 else
19765 pkg_failed=yes
19766 fi
19767 else
19768 pkg_failed=untried
19769 fi
19770 if test -n "$GBM_LIBS"; then
19771 pkg_cv_GBM_LIBS="$GBM_LIBS"
19772 elif test -n "$PKG_CONFIG"; then
19773 if test -n "$PKG_CONFIG" && \
19774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5
19775 ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5
19776 ac_status=$?
19777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19778 test $ac_status = 0; }; then
19779 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm >= 10.6" 2>/dev/null`
19780 test "x$?" != "x0" && pkg_failed=yes
19781 else
19782 pkg_failed=yes
19783 fi
19784 else
19785 pkg_failed=untried
19786 fi
19787
19788
19789
19790 if test $pkg_failed = yes; then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19792 $as_echo "no" >&6; }
19793
19794 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19795 _pkg_short_errors_supported=yes
19796 else
19797 _pkg_short_errors_supported=no
19798 fi
19799 if test $_pkg_short_errors_supported = yes; then
19800 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 10.6" 2>&1`
19801 else
19802 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 10.6" 2>&1`
19803 fi
19804 # Put the nasty error message in config.log where it belongs
19805 echo "$GBM_PKG_ERRORS" >&5
19806
19807 as_fn_error $? "Package requirements (gbm >= 10.6) were not met:
19808
19809 $GBM_PKG_ERRORS
19810
19811 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19812 installed software in a non-standard prefix.
19813
19814 Alternatively, you may set the environment variables GBM_CFLAGS
19815 and GBM_LIBS to avoid the need to call pkg-config.
19816 See the pkg-config man page for more details." "$LINENO" 5
19817 elif test $pkg_failed = untried; then
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19819 $as_echo "no" >&6; }
19820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19822 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19823 is in your PATH or set the PKG_CONFIG environment variable to the full
19824 path to pkg-config.
19825
19826 Alternatively, you may set the environment variables GBM_CFLAGS
19827 and GBM_LIBS to avoid the need to call pkg-config.
19828 See the pkg-config man page for more details.
19829
19830 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19831 See \`config.log' for more details" "$LINENO" 5; }
19832 else
19833 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
19834 GBM_LIBS=$pkg_cv_GBM_LIBS
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19836 $as_echo "yes" >&6; }
19837
19838 fi
19839
19840
19841 $as_echo "#define USE_GLAMOR 1" >>confdefs.h
19842
19843 else
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
19845 $as_echo "$GLAMOR" >&6; }
19846 fi
19847 if test x$GLAMOR != xno; then
19848 GLAMOR_TRUE=
19849 GLAMOR_FALSE='#'
19850 else
19851 GLAMOR_TRUE='#'
19852 GLAMOR_FALSE=
19853 fi
19854
19855
19856 ac_fn_c_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h>
19857 #include <regionstr.h>
19858 "
19859 if test "x$ac_cv_have_decl_RegionDuplicate" = xyes; then :
19860
19861 $as_echo "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h
19862
19863 fi
19864
19865
19866 ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
19867 #include <X11/Xfuncproto.h>
19868 #include <X11/extensions/renderproto.h>
19869 #include <xorg-server.h>
19870 #include <picture.h>
19871 #include <glyphstr.h>
19872 #include <fbpict.h>
19873 "
19874 if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then :
19875
19876 $as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h
19877
19878 fi
19879
19880
19881 ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
19882 #include <xf86Cursor.h>
19883 "
19884 if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then :
19885
19886 $as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
19887
19888 fi
19889
19890
19891 for ac_header in misyncshm.h
19892 do :
19893 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
19894 #include <X11/Xfuncproto.h>
19895 #include <xorg-server.h>
19896 #include <screenint.h>
19897 "
19898 if test "x$ac_cv_header_misyncshm_h" = xyes; then :
19899 cat >>confdefs.h <<_ACEOF
19900 #define HAVE_MISYNCSHM_H 1
19901 _ACEOF
19902
19903 fi
19904
19905 done
19906
19907
19908 for ac_header in present.h
19909 do :
19910 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
19911 #include <X11/Xproto.h>
19912 #include \"xorg-server.h\"
19913 #include <X11/X.h>
19914 "
19915 if test "x$ac_cv_header_present_h" = xyes; then :
19916 cat >>confdefs.h <<_ACEOF
19917 #define HAVE_PRESENT_H 1
19918 _ACEOF
19919
19920 fi
19921
19922 done
19923
19924
19925 for ac_header in dri3.h
19926 do :
19927 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
19928 #include <xorg-server.h>
19929 "
19930 if test "x$ac_cv_header_dri3_h" = xyes; then :
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_DRI3_H 1
19933 _ACEOF
19934
19935 fi
19936
19937 done
19938
19939
19940 CPPFLAGS="$SAVE_CPPFLAGS"
19941
19942
19943 pkg_failed=no
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19945 $as_echo_n "checking for PCIACCESS... " >&6; }
19946
19947 if test -n "$PCIACCESS_CFLAGS"; then
19948 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19949 elif test -n "$PKG_CONFIG"; then
19950 if test -n "$PKG_CONFIG" && \
19951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19952 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19953 ac_status=$?
19954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19955 test $ac_status = 0; }; then
19956 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19957 test "x$?" != "x0" && pkg_failed=yes
19958 else
19959 pkg_failed=yes
19960 fi
19961 else
19962 pkg_failed=untried
19963 fi
19964 if test -n "$PCIACCESS_LIBS"; then
19965 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19966 elif test -n "$PKG_CONFIG"; then
19967 if test -n "$PKG_CONFIG" && \
19968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19969 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19970 ac_status=$?
19971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19972 test $ac_status = 0; }; then
19973 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19974 test "x$?" != "x0" && pkg_failed=yes
19975 else
19976 pkg_failed=yes
19977 fi
19978 else
19979 pkg_failed=untried
19980 fi
19981
19982
19983
19984 if test $pkg_failed = yes; then
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19986 $as_echo "no" >&6; }
19987
19988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19989 _pkg_short_errors_supported=yes
19990 else
19991 _pkg_short_errors_supported=no
19992 fi
19993 if test $_pkg_short_errors_supported = yes; then
19994 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19995 else
19996 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19997 fi
19998 # Put the nasty error message in config.log where it belongs
19999 echo "$PCIACCESS_PKG_ERRORS" >&5
20000
20001 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
20002
20003 $PCIACCESS_PKG_ERRORS
20004
20005 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20006 installed software in a non-standard prefix.
20007
20008 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20009 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20010 See the pkg-config man page for more details." "$LINENO" 5
20011 elif test $pkg_failed = untried; then
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20013 $as_echo "no" >&6; }
20014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20016 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20017 is in your PATH or set the PKG_CONFIG environment variable to the full
20018 path to pkg-config.
20019
20020 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20021 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20022 See the pkg-config man page for more details.
20023
20024 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20025 See \`config.log' for more details" "$LINENO" 5; }
20026 else
20027 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20028 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20030 $as_echo "yes" >&6; }
20031
20032 fi
20033 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20034
20035 # Checks for headers/macros for byte swapping
20036 # Known variants:
20037 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
20038 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
20039 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
20040 # and a fallback to local macros if none of the above are found
20041
20042 # if <byteswap.h> is found, assume it's the correct version
20043 for ac_header in byteswap.h
20044 do :
20045 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
20046 if test "x$ac_cv_header_byteswap_h" = xyes; then :
20047 cat >>confdefs.h <<_ACEOF
20048 #define HAVE_BYTESWAP_H 1
20049 _ACEOF
20050
20051 fi
20052
20053 done
20054
20055
20056 # if <sys/endian.h> is found, have to check which version
20057 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
20058 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
20059 HAVE_SYS_ENDIAN_H="yes"
20060 else
20061 HAVE_SYS_ENDIAN_H="no"
20062 fi
20063
20064
20065
20066 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
20068 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20071
20072 #include <sys/types.h>
20073 #include <sys/endian.h>
20074
20075 int
20076 main ()
20077 {
20078
20079 int a = 1, b;
20080 b = __swap16(a);
20081
20082 ;
20083 return 0;
20084 }
20085
20086 _ACEOF
20087 if ac_fn_c_try_link "$LINENO"; then :
20088 SYS_ENDIAN__SWAP='yes'
20089 else
20090 SYS_ENDIAN__SWAP='no'
20091 fi
20092 rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
20095 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
20096
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
20098 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20100 /* end confdefs.h. */
20101
20102 #include <sys/types.h>
20103 #include <sys/endian.h>
20104
20105 int
20106 main ()
20107 {
20108
20109 int a = 1, b;
20110 b = bswap16(a);
20111
20112 ;
20113 return 0;
20114 }
20115
20116 _ACEOF
20117 if ac_fn_c_try_link "$LINENO"; then :
20118 SYS_ENDIAN_BSWAP='yes'
20119 else
20120 SYS_ENDIAN_BSWAP='no'
20121 fi
20122 rm -f core conftest.err conftest.$ac_objext \
20123 conftest$ac_exeext conftest.$ac_ext
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
20125 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
20126
20127 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
20128 USE_SYS_ENDIAN_H=yes
20129 BSWAP=bswap
20130 else
20131 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
20132 USE_SYS_ENDIAN_H=yes
20133 BSWAP=__swap
20134 else
20135 USE_SYS_ENDIAN_H=no
20136 fi
20137 fi
20138
20139 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
20140
20141 $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
20142
20143
20144 cat >>confdefs.h <<_ACEOF
20145 #define bswap_16 ${BSWAP}16
20146 _ACEOF
20147
20148
20149 cat >>confdefs.h <<_ACEOF
20150 #define bswap_32 ${BSWAP}32
20151 _ACEOF
20152
20153
20154 cat >>confdefs.h <<_ACEOF
20155 #define bswap_64 ${BSWAP}64
20156 _ACEOF
20157
20158 fi
20159 fi
20160
20161
20162
20163 DRIVER_NAME=ati
20164
20165
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
20167 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
20168 Please install that driver as well for mach64-based cards.
20169 " >&5
20170 $as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
20171 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
20172 Please install that driver as well for mach64-based cards.
20173 " >&6;}
20174
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
20176 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
20177 Please install that driver as well for rage128-based cards.
20178 " >&5
20179 $as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
20180 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
20181 Please install that driver as well for rage128-based cards.
20182 " >&6;}
20183
20184 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
20185
20186 cat >confcache <<\_ACEOF
20187 # This file is a shell script that caches the results of configure
20188 # tests run on this system so they can be shared between configure
20189 # scripts and configure runs, see configure's option --config-cache.
20190 # It is not useful on other systems. If it contains results you don't
20191 # want to keep, you may remove or edit it.
20192 #
20193 # config.status only pays attention to the cache file if you give it
20194 # the --recheck option to rerun configure.
20195 #
20196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20198 # following values.
20199
20200 _ACEOF
20201
20202 # The following way of writing the cache mishandles newlines in values,
20203 # but we know of no workaround that is simple, portable, and efficient.
20204 # So, we kill variables containing newlines.
20205 # Ultrix sh set writes to stderr and can't be redirected directly,
20206 # and sets the high bit in the cache file unless we assign to the vars.
20207 (
20208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20209 eval ac_val=\$$ac_var
20210 case $ac_val in #(
20211 *${as_nl}*)
20212 case $ac_var in #(
20213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20215 esac
20216 case $ac_var in #(
20217 _ | IFS | as_nl) ;; #(
20218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20219 *) { eval $ac_var=; unset $ac_var;} ;;
20220 esac ;;
20221 esac
20222 done
20223
20224 (set) 2>&1 |
20225 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20226 *${as_nl}ac_space=\ *)
20227 # `set' does not quote correctly, so add quotes: double-quote
20228 # substitution turns \\\\ into \\, and sed turns \\ into \.
20229 sed -n \
20230 "s/'/'\\\\''/g;
20231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20232 ;; #(
20233 *)
20234 # `set' quotes correctly as required by POSIX, so do not add quotes.
20235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20236 ;;
20237 esac |
20238 sort
20239 ) |
20240 sed '
20241 /^ac_cv_env_/b end
20242 t clear
20243 :clear
20244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20245 t end
20246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20247 :end' >>confcache
20248 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20249 if test -w "$cache_file"; then
20250 if test "x$cache_file" != "x/dev/null"; then
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20252 $as_echo "$as_me: updating cache $cache_file" >&6;}
20253 if test ! -f "$cache_file" || test -h "$cache_file"; then
20254 cat confcache >"$cache_file"
20255 else
20256 case $cache_file in #(
20257 */* | ?:*)
20258 mv -f confcache "$cache_file"$$ &&
20259 mv -f "$cache_file"$$ "$cache_file" ;; #(
20260 *)
20261 mv -f confcache "$cache_file" ;;
20262 esac
20263 fi
20264 fi
20265 else
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20268 fi
20269 fi
20270 rm -f confcache
20271
20272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20273 # Let make expand exec_prefix.
20274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20275
20276 DEFS=-DHAVE_CONFIG_H
20277
20278 ac_libobjs=
20279 ac_ltlibobjs=
20280 U=
20281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20282 # 1. Remove the extension, and $U if already installed.
20283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20284 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20286 # will be set to the directory where LIBOBJS objects are built.
20287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20289 done
20290 LIBOBJS=$ac_libobjs
20291
20292 LTLIBOBJS=$ac_ltlibobjs
20293
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20296 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20297 if test -n "$am_sleep_pid"; then
20298 # Hide warnings about reused PIDs.
20299 wait $am_sleep_pid 2>/dev/null
20300 fi
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20302 $as_echo "done" >&6; }
20303 if test -n "$EXEEXT"; then
20304 am__EXEEXT_TRUE=
20305 am__EXEEXT_FALSE='#'
20306 else
20307 am__EXEEXT_TRUE='#'
20308 am__EXEEXT_FALSE=
20309 fi
20310
20311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20312 as_fn_error $? "conditional \"AMDEP\" was never defined.
20313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20314 fi
20315 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20316 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20318 fi
20319 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20320 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20322 fi
20323 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
20324 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
20325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20326 fi
20327 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20328 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20330 fi
20331 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20332 as_fn_error $? "conditional \"GLAMOR\" was never defined.
20333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20334 fi
20335
20336 : "${CONFIG_STATUS=./config.status}"
20337 ac_write_fail=0
20338 ac_clean_files_save=$ac_clean_files
20339 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20341 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20342 as_write_fail=0
20343 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20344 #! $SHELL
20345 # Generated by $as_me.
20346 # Run this file to recreate the current configuration.
20347 # Compiler output produced by configure, useful for debugging
20348 # configure, is in config.log if it exists.
20349
20350 debug=false
20351 ac_cs_recheck=false
20352 ac_cs_silent=false
20353
20354 SHELL=\${CONFIG_SHELL-$SHELL}
20355 export SHELL
20356 _ASEOF
20357 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20358 ## -------------------- ##
20359 ## M4sh Initialization. ##
20360 ## -------------------- ##
20361
20362 # Be more Bourne compatible
20363 DUALCASE=1; export DUALCASE # for MKS sh
20364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20365 emulate sh
20366 NULLCMD=:
20367 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20368 # is contrary to our usage. Disable this feature.
20369 alias -g '${1+"$@"}'='"$@"'
20370 setopt NO_GLOB_SUBST
20371 else
20372 case `(set -o) 2>/dev/null` in #(
20373 *posix*) :
20374 set -o posix ;; #(
20375 *) :
20376 ;;
20377 esac
20378 fi
20379
20380
20381 as_nl='
20382 '
20383 export as_nl
20384 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20385 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20388 # Prefer a ksh shell builtin over an external printf program on Solaris,
20389 # but without wasting forks for bash or zsh.
20390 if test -z "$BASH_VERSION$ZSH_VERSION" \
20391 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20392 as_echo='print -r --'
20393 as_echo_n='print -rn --'
20394 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20395 as_echo='printf %s\n'
20396 as_echo_n='printf %s'
20397 else
20398 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20399 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20400 as_echo_n='/usr/ucb/echo -n'
20401 else
20402 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20403 as_echo_n_body='eval
20404 arg=$1;
20405 case $arg in #(
20406 *"$as_nl"*)
20407 expr "X$arg" : "X\\(.*\\)$as_nl";
20408 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20409 esac;
20410 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20411 '
20412 export as_echo_n_body
20413 as_echo_n='sh -c $as_echo_n_body as_echo'
20414 fi
20415 export as_echo_body
20416 as_echo='sh -c $as_echo_body as_echo'
20417 fi
20418
20419 # The user is always right.
20420 if test "${PATH_SEPARATOR+set}" != set; then
20421 PATH_SEPARATOR=:
20422 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20423 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20424 PATH_SEPARATOR=';'
20425 }
20426 fi
20427
20428
20429 # IFS
20430 # We need space, tab and new line, in precisely that order. Quoting is
20431 # there to prevent editors from complaining about space-tab.
20432 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20433 # splitting by setting IFS to empty value.)
20434 IFS=" "" $as_nl"
20435
20436 # Find who we are. Look in the path if we contain no directory separator.
20437 as_myself=
20438 case $0 in #((
20439 *[\\/]* ) as_myself=$0 ;;
20440 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20441 for as_dir in $PATH
20442 do
20443 IFS=$as_save_IFS
20444 test -z "$as_dir" && as_dir=.
20445 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20446 done
20447 IFS=$as_save_IFS
20448
20449 ;;
20450 esac
20451 # We did not find ourselves, most probably we were run as `sh COMMAND'
20452 # in which case we are not to be found in the path.
20453 if test "x$as_myself" = x; then
20454 as_myself=$0
20455 fi
20456 if test ! -f "$as_myself"; then
20457 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20458 exit 1
20459 fi
20460
20461 # Unset variables that we do not need and which cause bugs (e.g. in
20462 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20463 # suppresses any "Segmentation fault" message there. '((' could
20464 # trigger a bug in pdksh 5.2.14.
20465 for as_var in BASH_ENV ENV MAIL MAILPATH
20466 do eval test x\${$as_var+set} = xset \
20467 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20468 done
20469 PS1='$ '
20470 PS2='> '
20471 PS4='+ '
20472
20473 # NLS nuisances.
20474 LC_ALL=C
20475 export LC_ALL
20476 LANGUAGE=C
20477 export LANGUAGE
20478
20479 # CDPATH.
20480 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20481
20482
20483 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20484 # ----------------------------------------
20485 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20486 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20487 # script with STATUS, using 1 if that was 0.
20488 as_fn_error ()
20489 {
20490 as_status=$1; test $as_status -eq 0 && as_status=1
20491 if test "$4"; then
20492 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20493 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20494 fi
20495 $as_echo "$as_me: error: $2" >&2
20496 as_fn_exit $as_status
20497 } # as_fn_error
20498
20499
20500 # as_fn_set_status STATUS
20501 # -----------------------
20502 # Set $? to STATUS, without forking.
20503 as_fn_set_status ()
20504 {
20505 return $1
20506 } # as_fn_set_status
20507
20508 # as_fn_exit STATUS
20509 # -----------------
20510 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20511 as_fn_exit ()
20512 {
20513 set +e
20514 as_fn_set_status $1
20515 exit $1
20516 } # as_fn_exit
20517
20518 # as_fn_unset VAR
20519 # ---------------
20520 # Portably unset VAR.
20521 as_fn_unset ()
20522 {
20523 { eval $1=; unset $1;}
20524 }
20525 as_unset=as_fn_unset
20526 # as_fn_append VAR VALUE
20527 # ----------------------
20528 # Append the text in VALUE to the end of the definition contained in VAR. Take
20529 # advantage of any shell optimizations that allow amortized linear growth over
20530 # repeated appends, instead of the typical quadratic growth present in naive
20531 # implementations.
20532 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20533 eval 'as_fn_append ()
20534 {
20535 eval $1+=\$2
20536 }'
20537 else
20538 as_fn_append ()
20539 {
20540 eval $1=\$$1\$2
20541 }
20542 fi # as_fn_append
20543
20544 # as_fn_arith ARG...
20545 # ------------------
20546 # Perform arithmetic evaluation on the ARGs, and store the result in the
20547 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20548 # must be portable across $(()) and expr.
20549 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20550 eval 'as_fn_arith ()
20551 {
20552 as_val=$(( $* ))
20553 }'
20554 else
20555 as_fn_arith ()
20556 {
20557 as_val=`expr "$@" || test $? -eq 1`
20558 }
20559 fi # as_fn_arith
20560
20561
20562 if expr a : '\(a\)' >/dev/null 2>&1 &&
20563 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20564 as_expr=expr
20565 else
20566 as_expr=false
20567 fi
20568
20569 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20570 as_basename=basename
20571 else
20572 as_basename=false
20573 fi
20574
20575 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20576 as_dirname=dirname
20577 else
20578 as_dirname=false
20579 fi
20580
20581 as_me=`$as_basename -- "$0" ||
20582 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20583 X"$0" : 'X\(//\)$' \| \
20584 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20585 $as_echo X/"$0" |
20586 sed '/^.*\/\([^/][^/]*\)\/*$/{
20587 s//\1/
20588 q
20589 }
20590 /^X\/\(\/\/\)$/{
20591 s//\1/
20592 q
20593 }
20594 /^X\/\(\/\).*/{
20595 s//\1/
20596 q
20597 }
20598 s/.*/./; q'`
20599
20600 # Avoid depending upon Character Ranges.
20601 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20602 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20603 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20604 as_cr_digits='0123456789'
20605 as_cr_alnum=$as_cr_Letters$as_cr_digits
20606
20607 ECHO_C= ECHO_N= ECHO_T=
20608 case `echo -n x` in #(((((
20609 -n*)
20610 case `echo 'xy\c'` in
20611 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20612 xy) ECHO_C='\c';;
20613 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20614 ECHO_T=' ';;
20615 esac;;
20616 *)
20617 ECHO_N='-n';;
20618 esac
20619
20620 rm -f conf$$ conf$$.exe conf$$.file
20621 if test -d conf$$.dir; then
20622 rm -f conf$$.dir/conf$$.file
20623 else
20624 rm -f conf$$.dir
20625 mkdir conf$$.dir 2>/dev/null
20626 fi
20627 if (echo >conf$$.file) 2>/dev/null; then
20628 if ln -s conf$$.file conf$$ 2>/dev/null; then
20629 as_ln_s='ln -s'
20630 # ... but there are two gotchas:
20631 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20632 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20633 # In both cases, we have to default to `cp -pR'.
20634 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20635 as_ln_s='cp -pR'
20636 elif ln conf$$.file conf$$ 2>/dev/null; then
20637 as_ln_s=ln
20638 else
20639 as_ln_s='cp -pR'
20640 fi
20641 else
20642 as_ln_s='cp -pR'
20643 fi
20644 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20645 rmdir conf$$.dir 2>/dev/null
20646
20647
20648 # as_fn_mkdir_p
20649 # -------------
20650 # Create "$as_dir" as a directory, including parents if necessary.
20651 as_fn_mkdir_p ()
20652 {
20653
20654 case $as_dir in #(
20655 -*) as_dir=./$as_dir;;
20656 esac
20657 test -d "$as_dir" || eval $as_mkdir_p || {
20658 as_dirs=
20659 while :; do
20660 case $as_dir in #(
20661 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20662 *) as_qdir=$as_dir;;
20663 esac
20664 as_dirs="'$as_qdir' $as_dirs"
20665 as_dir=`$as_dirname -- "$as_dir" ||
20666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20667 X"$as_dir" : 'X\(//\)[^/]' \| \
20668 X"$as_dir" : 'X\(//\)$' \| \
20669 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20670 $as_echo X"$as_dir" |
20671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20672 s//\1/
20673 q
20674 }
20675 /^X\(\/\/\)[^/].*/{
20676 s//\1/
20677 q
20678 }
20679 /^X\(\/\/\)$/{
20680 s//\1/
20681 q
20682 }
20683 /^X\(\/\).*/{
20684 s//\1/
20685 q
20686 }
20687 s/.*/./; q'`
20688 test -d "$as_dir" && break
20689 done
20690 test -z "$as_dirs" || eval "mkdir $as_dirs"
20691 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20692
20693
20694 } # as_fn_mkdir_p
20695 if mkdir -p . 2>/dev/null; then
20696 as_mkdir_p='mkdir -p "$as_dir"'
20697 else
20698 test -d ./-p && rmdir ./-p
20699 as_mkdir_p=false
20700 fi
20701
20702
20703 # as_fn_executable_p FILE
20704 # -----------------------
20705 # Test if FILE is an executable regular file.
20706 as_fn_executable_p ()
20707 {
20708 test -f "$1" && test -x "$1"
20709 } # as_fn_executable_p
20710 as_test_x='test -x'
20711 as_executable_p=as_fn_executable_p
20712
20713 # Sed expression to map a string onto a valid CPP name.
20714 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20715
20716 # Sed expression to map a string onto a valid variable name.
20717 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20718
20719
20720 exec 6>&1
20721 ## ----------------------------------- ##
20722 ## Main body of $CONFIG_STATUS script. ##
20723 ## ----------------------------------- ##
20724 _ASEOF
20725 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20726
20727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20728 # Save the log message, to keep $0 and so on meaningful, and to
20729 # report actual input values of CONFIG_FILES etc. instead of their
20730 # values after options handling.
20731 ac_log="
20732 This file was extended by xf86-video-ati $as_me 19.1.0, which was
20733 generated by GNU Autoconf 2.69. Invocation command line was
20734
20735 CONFIG_FILES = $CONFIG_FILES
20736 CONFIG_HEADERS = $CONFIG_HEADERS
20737 CONFIG_LINKS = $CONFIG_LINKS
20738 CONFIG_COMMANDS = $CONFIG_COMMANDS
20739 $ $0 $@
20740
20741 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20742 "
20743
20744 _ACEOF
20745
20746 case $ac_config_files in *"
20747 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20748 esac
20749
20750 case $ac_config_headers in *"
20751 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20752 esac
20753
20754
20755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20756 # Files that config.status was made for.
20757 config_files="$ac_config_files"
20758 config_headers="$ac_config_headers"
20759 config_commands="$ac_config_commands"
20760
20761 _ACEOF
20762
20763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20764 ac_cs_usage="\
20765 \`$as_me' instantiates files and other configuration actions
20766 from templates according to the current configuration. Unless the files
20767 and actions are specified as TAGs, all are instantiated by default.
20768
20769 Usage: $0 [OPTION]... [TAG]...
20770
20771 -h, --help print this help, then exit
20772 -V, --version print version number and configuration settings, then exit
20773 --config print configuration, then exit
20774 -q, --quiet, --silent
20775 do not print progress messages
20776 -d, --debug don't remove temporary files
20777 --recheck update $as_me by reconfiguring in the same conditions
20778 --file=FILE[:TEMPLATE]
20779 instantiate the configuration file FILE
20780 --header=FILE[:TEMPLATE]
20781 instantiate the configuration header FILE
20782
20783 Configuration files:
20784 $config_files
20785
20786 Configuration headers:
20787 $config_headers
20788
20789 Configuration commands:
20790 $config_commands
20791
20792 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>."
20793
20794 _ACEOF
20795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20796 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20797 ac_cs_version="\\
20798 xf86-video-ati config.status 19.1.0
20799 configured by $0, generated by GNU Autoconf 2.69,
20800 with options \\"\$ac_cs_config\\"
20801
20802 Copyright (C) 2012 Free Software Foundation, Inc.
20803 This config.status script is free software; the Free Software Foundation
20804 gives unlimited permission to copy, distribute and modify it."
20805
20806 ac_pwd='$ac_pwd'
20807 srcdir='$srcdir'
20808 INSTALL='$INSTALL'
20809 MKDIR_P='$MKDIR_P'
20810 AWK='$AWK'
20811 test -n "\$AWK" || AWK=awk
20812 _ACEOF
20813
20814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20815 # The default lists apply if the user does not specify any file.
20816 ac_need_defaults=:
20817 while test $# != 0
20818 do
20819 case $1 in
20820 --*=?*)
20821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20823 ac_shift=:
20824 ;;
20825 --*=)
20826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20827 ac_optarg=
20828 ac_shift=:
20829 ;;
20830 *)
20831 ac_option=$1
20832 ac_optarg=$2
20833 ac_shift=shift
20834 ;;
20835 esac
20836
20837 case $ac_option in
20838 # Handling of the options.
20839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20840 ac_cs_recheck=: ;;
20841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20842 $as_echo "$ac_cs_version"; exit ;;
20843 --config | --confi | --conf | --con | --co | --c )
20844 $as_echo "$ac_cs_config"; exit ;;
20845 --debug | --debu | --deb | --de | --d | -d )
20846 debug=: ;;
20847 --file | --fil | --fi | --f )
20848 $ac_shift
20849 case $ac_optarg in
20850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20851 '') as_fn_error $? "missing file argument" ;;
20852 esac
20853 as_fn_append CONFIG_FILES " '$ac_optarg'"
20854 ac_need_defaults=false;;
20855 --header | --heade | --head | --hea )
20856 $ac_shift
20857 case $ac_optarg in
20858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20859 esac
20860 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20861 ac_need_defaults=false;;
20862 --he | --h)
20863 # Conflict between --help and --header
20864 as_fn_error $? "ambiguous option: \`$1'
20865 Try \`$0 --help' for more information.";;
20866 --help | --hel | -h )
20867 $as_echo "$ac_cs_usage"; exit ;;
20868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20870 ac_cs_silent=: ;;
20871
20872 # This is an error.
20873 -*) as_fn_error $? "unrecognized option: \`$1'
20874 Try \`$0 --help' for more information." ;;
20875
20876 *) as_fn_append ac_config_targets " $1"
20877 ac_need_defaults=false ;;
20878
20879 esac
20880 shift
20881 done
20882
20883 ac_configure_extra_args=
20884
20885 if $ac_cs_silent; then
20886 exec 6>/dev/null
20887 ac_configure_extra_args="$ac_configure_extra_args --silent"
20888 fi
20889
20890 _ACEOF
20891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20892 if \$ac_cs_recheck; then
20893 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20894 shift
20895 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20896 CONFIG_SHELL='$SHELL'
20897 export CONFIG_SHELL
20898 exec "\$@"
20899 fi
20900
20901 _ACEOF
20902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903 exec 5>>config.log
20904 {
20905 echo
20906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20907 ## Running $as_me. ##
20908 _ASBOX
20909 $as_echo "$ac_log"
20910 } >&5
20911
20912 _ACEOF
20913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20914 #
20915 # INIT-COMMANDS
20916 #
20917 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20918
20919
20920 # The HP-UX ksh and POSIX shell print the target directory to stdout
20921 # if CDPATH is set.
20922 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20923
20924 sed_quote_subst='$sed_quote_subst'
20925 double_quote_subst='$double_quote_subst'
20926 delay_variable_subst='$delay_variable_subst'
20927 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20928 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20929 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20930 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20931 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20932 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20933 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20934 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20935 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20936 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20937 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20938 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20939 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20940 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20941 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20942 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20943 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20944 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20945 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20946 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20947 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20948 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20949 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20950 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20951 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20952 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20953 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20954 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20955 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20956 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20957 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20958 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20961 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20964 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20965 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20966 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20967 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20968 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20969 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20970 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20971 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20972 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20973 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20974 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20975 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20976 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20977 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20978 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20979 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20980 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20981 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20982 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20983 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20984 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20985 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20986 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"`'
20987 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20988 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20989 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20990 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20991 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20992 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20993 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20994 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20995 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20996 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20997 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20998 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20999 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21000 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21001 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21002 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21003 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21004 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21005 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21006 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21007 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21008 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21009 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21010 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21011 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21012 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21013 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21014 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21015 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21016 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21017 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21018 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21019 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21020 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21021 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21022 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21023 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21024 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21025 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21026 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21027 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21028 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21029 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21030 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21031 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21032 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21033 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21034 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21035 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21036 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21037 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21038 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21039 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21040 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21041 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21042 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21043 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21044 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21045 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21046 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21047 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21048 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21049 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21050 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21051 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21052 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21053 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21054 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21055 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21056 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21057 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21058 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21059 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21060 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21061 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21062 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21063
21064 LTCC='$LTCC'
21065 LTCFLAGS='$LTCFLAGS'
21066 compiler='$compiler_DEFAULT'
21067
21068 # A function that is used when there is no print builtin or printf.
21069 func_fallback_echo ()
21070 {
21071 eval 'cat <<_LTECHO_EOF
21072 \$1
21073 _LTECHO_EOF'
21074 }
21075
21076 # Quote evaled strings.
21077 for var in SHELL \
21078 ECHO \
21079 PATH_SEPARATOR \
21080 SED \
21081 GREP \
21082 EGREP \
21083 FGREP \
21084 LD \
21085 NM \
21086 LN_S \
21087 lt_SP2NL \
21088 lt_NL2SP \
21089 reload_flag \
21090 OBJDUMP \
21091 deplibs_check_method \
21092 file_magic_cmd \
21093 file_magic_glob \
21094 want_nocaseglob \
21095 DLLTOOL \
21096 sharedlib_from_linklib_cmd \
21097 AR \
21098 archiver_list_spec \
21099 STRIP \
21100 RANLIB \
21101 CC \
21102 CFLAGS \
21103 compiler \
21104 lt_cv_sys_global_symbol_pipe \
21105 lt_cv_sys_global_symbol_to_cdecl \
21106 lt_cv_sys_global_symbol_to_import \
21107 lt_cv_sys_global_symbol_to_c_name_address \
21108 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21109 lt_cv_nm_interface \
21110 nm_file_list_spec \
21111 lt_cv_truncate_bin \
21112 lt_prog_compiler_no_builtin_flag \
21113 lt_prog_compiler_pic \
21114 lt_prog_compiler_wl \
21115 lt_prog_compiler_static \
21116 lt_cv_prog_compiler_c_o \
21117 need_locks \
21118 MANIFEST_TOOL \
21119 DSYMUTIL \
21120 NMEDIT \
21121 LIPO \
21122 OTOOL \
21123 OTOOL64 \
21124 shrext_cmds \
21125 export_dynamic_flag_spec \
21126 whole_archive_flag_spec \
21127 compiler_needs_object \
21128 with_gnu_ld \
21129 allow_undefined_flag \
21130 no_undefined_flag \
21131 hardcode_libdir_flag_spec \
21132 hardcode_libdir_separator \
21133 exclude_expsyms \
21134 include_expsyms \
21135 file_list_spec \
21136 variables_saved_for_relink \
21137 libname_spec \
21138 library_names_spec \
21139 soname_spec \
21140 install_override_mode \
21141 finish_eval \
21142 old_striplib \
21143 striplib; do
21144 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21145 *[\\\\\\\`\\"\\\$]*)
21146 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21147 ;;
21148 *)
21149 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21150 ;;
21151 esac
21152 done
21153
21154 # Double-quote double-evaled strings.
21155 for var in reload_cmds \
21156 old_postinstall_cmds \
21157 old_postuninstall_cmds \
21158 old_archive_cmds \
21159 extract_expsyms_cmds \
21160 old_archive_from_new_cmds \
21161 old_archive_from_expsyms_cmds \
21162 archive_cmds \
21163 archive_expsym_cmds \
21164 module_cmds \
21165 module_expsym_cmds \
21166 export_symbols_cmds \
21167 prelink_cmds \
21168 postlink_cmds \
21169 postinstall_cmds \
21170 postuninstall_cmds \
21171 finish_cmds \
21172 sys_lib_search_path_spec \
21173 configure_time_dlsearch_path \
21174 configure_time_lt_sys_library_path; do
21175 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21176 *[\\\\\\\`\\"\\\$]*)
21177 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21178 ;;
21179 *)
21180 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21181 ;;
21182 esac
21183 done
21184
21185 ac_aux_dir='$ac_aux_dir'
21186
21187 # See if we are running on zsh, and set the options that allow our
21188 # commands through without removal of \ escapes INIT.
21189 if test -n "\${ZSH_VERSION+set}"; then
21190 setopt NO_GLOB_SUBST
21191 fi
21192
21193
21194 PACKAGE='$PACKAGE'
21195 VERSION='$VERSION'
21196 RM='$RM'
21197 ofile='$ofile'
21198
21199
21200
21201
21202 _ACEOF
21203
21204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21205
21206 # Handling of arguments.
21207 for ac_config_target in $ac_config_targets
21208 do
21209 case $ac_config_target in
21210 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21211 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21212 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21213 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21214 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21215 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21216 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
21217
21218 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21219 esac
21220 done
21221
21222
21223 # If the user did not use the arguments to specify the items to instantiate,
21224 # then the envvar interface is used. Set only those that are not.
21225 # We use the long form for the default assignment because of an extremely
21226 # bizarre bug on SunOS 4.1.3.
21227 if $ac_need_defaults; then
21228 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21229 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21230 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21231 fi
21232
21233 # Have a temporary directory for convenience. Make it in the build tree
21234 # simply because there is no reason against having it here, and in addition,
21235 # creating and moving files from /tmp can sometimes cause problems.
21236 # Hook for its removal unless debugging.
21237 # Note that there is a small window in which the directory will not be cleaned:
21238 # after its creation but before its name has been assigned to `$tmp'.
21239 $debug ||
21240 {
21241 tmp= ac_tmp=
21242 trap 'exit_status=$?
21243 : "${ac_tmp:=$tmp}"
21244 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21245 ' 0
21246 trap 'as_fn_exit 1' 1 2 13 15
21247 }
21248 # Create a (secure) tmp directory for tmp files.
21249
21250 {
21251 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21252 test -d "$tmp"
21253 } ||
21254 {
21255 tmp=./conf$$-$RANDOM
21256 (umask 077 && mkdir "$tmp")
21257 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21258 ac_tmp=$tmp
21259
21260 # Set up the scripts for CONFIG_FILES section.
21261 # No need to generate them if there are no CONFIG_FILES.
21262 # This happens for instance with `./config.status config.h'.
21263 if test -n "$CONFIG_FILES"; then
21264
21265
21266 ac_cr=`echo X | tr X '\015'`
21267 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21268 # But we know of no other shell where ac_cr would be empty at this
21269 # point, so we can use a bashism as a fallback.
21270 if test "x$ac_cr" = x; then
21271 eval ac_cr=\$\'\\r\'
21272 fi
21273 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21275 ac_cs_awk_cr='\\r'
21276 else
21277 ac_cs_awk_cr=$ac_cr
21278 fi
21279
21280 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21281 _ACEOF
21282
21283
21284 {
21285 echo "cat >conf$$subs.awk <<_ACEOF" &&
21286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21287 echo "_ACEOF"
21288 } >conf$$subs.sh ||
21289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21291 ac_delim='%!_!# '
21292 for ac_last_try in false false false false false :; do
21293 . ./conf$$subs.sh ||
21294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21295
21296 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21297 if test $ac_delim_n = $ac_delim_num; then
21298 break
21299 elif $ac_last_try; then
21300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21301 else
21302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21303 fi
21304 done
21305 rm -f conf$$subs.sh
21306
21307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21308 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21309 _ACEOF
21310 sed -n '
21311 h
21312 s/^/S["/; s/!.*/"]=/
21313 p
21314 g
21315 s/^[^!]*!//
21316 :repl
21317 t repl
21318 s/'"$ac_delim"'$//
21319 t delim
21320 :nl
21321 h
21322 s/\(.\{148\}\)..*/\1/
21323 t more1
21324 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21325 p
21326 n
21327 b repl
21328 :more1
21329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21330 p
21331 g
21332 s/.\{148\}//
21333 t nl
21334 :delim
21335 h
21336 s/\(.\{148\}\)..*/\1/
21337 t more2
21338 s/["\\]/\\&/g; s/^/"/; s/$/"/
21339 p
21340 b
21341 :more2
21342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21343 p
21344 g
21345 s/.\{148\}//
21346 t delim
21347 ' <conf$$subs.awk | sed '
21348 /^[^""]/{
21349 N
21350 s/\n//
21351 }
21352 ' >>$CONFIG_STATUS || ac_write_fail=1
21353 rm -f conf$$subs.awk
21354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21355 _ACAWK
21356 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21357 for (key in S) S_is_set[key] = 1
21358 FS = ""
21359
21360 }
21361 {
21362 line = $ 0
21363 nfields = split(line, field, "@")
21364 substed = 0
21365 len = length(field[1])
21366 for (i = 2; i < nfields; i++) {
21367 key = field[i]
21368 keylen = length(key)
21369 if (S_is_set[key]) {
21370 value = S[key]
21371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21372 len += length(value) + length(field[++i])
21373 substed = 1
21374 } else
21375 len += 1 + keylen
21376 }
21377
21378 print line
21379 }
21380
21381 _ACAWK
21382 _ACEOF
21383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21386 else
21387 cat
21388 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21389 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21390 _ACEOF
21391
21392 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21393 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21394 # trailing colons and then remove the whole line if VPATH becomes empty
21395 # (actually we leave an empty line to preserve line numbers).
21396 if test "x$srcdir" = x.; then
21397 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21398 h
21399 s///
21400 s/^/:/
21401 s/[ ]*$/:/
21402 s/:\$(srcdir):/:/g
21403 s/:\${srcdir}:/:/g
21404 s/:@srcdir@:/:/g
21405 s/^:*//
21406 s/:*$//
21407 x
21408 s/\(=[ ]*\).*/\1/
21409 G
21410 s/\n//
21411 s/^[^=]*=[ ]*$//
21412 }'
21413 fi
21414
21415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21416 fi # test -n "$CONFIG_FILES"
21417
21418 # Set up the scripts for CONFIG_HEADERS section.
21419 # No need to generate them if there are no CONFIG_HEADERS.
21420 # This happens for instance with `./config.status Makefile'.
21421 if test -n "$CONFIG_HEADERS"; then
21422 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21423 BEGIN {
21424 _ACEOF
21425
21426 # Transform confdefs.h into an awk script `defines.awk', embedded as
21427 # here-document in config.status, that substitutes the proper values into
21428 # config.h.in to produce config.h.
21429
21430 # Create a delimiter string that does not exist in confdefs.h, to ease
21431 # handling of long lines.
21432 ac_delim='%!_!# '
21433 for ac_last_try in false false :; do
21434 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21435 if test -z "$ac_tt"; then
21436 break
21437 elif $ac_last_try; then
21438 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21439 else
21440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21441 fi
21442 done
21443
21444 # For the awk script, D is an array of macro values keyed by name,
21445 # likewise P contains macro parameters if any. Preserve backslash
21446 # newline sequences.
21447
21448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21449 sed -n '
21450 s/.\{148\}/&'"$ac_delim"'/g
21451 t rset
21452 :rset
21453 s/^[ ]*#[ ]*define[ ][ ]*/ /
21454 t def
21455 d
21456 :def
21457 s/\\$//
21458 t bsnl
21459 s/["\\]/\\&/g
21460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21461 D["\1"]=" \3"/p
21462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21463 d
21464 :bsnl
21465 s/["\\]/\\&/g
21466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21467 D["\1"]=" \3\\\\\\n"\\/p
21468 t cont
21469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21470 t cont
21471 d
21472 :cont
21473 n
21474 s/.\{148\}/&'"$ac_delim"'/g
21475 t clear
21476 :clear
21477 s/\\$//
21478 t bsnlc
21479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21480 d
21481 :bsnlc
21482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21483 b cont
21484 ' <confdefs.h | sed '
21485 s/'"$ac_delim"'/"\\\
21486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21487
21488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21489 for (key in D) D_is_set[key] = 1
21490 FS = ""
21491 }
21492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21493 line = \$ 0
21494 split(line, arg, " ")
21495 if (arg[1] == "#") {
21496 defundef = arg[2]
21497 mac1 = arg[3]
21498 } else {
21499 defundef = substr(arg[1], 2)
21500 mac1 = arg[2]
21501 }
21502 split(mac1, mac2, "(") #)
21503 macro = mac2[1]
21504 prefix = substr(line, 1, index(line, defundef) - 1)
21505 if (D_is_set[macro]) {
21506 # Preserve the white space surrounding the "#".
21507 print prefix "define", macro P[macro] D[macro]
21508 next
21509 } else {
21510 # Replace #undef with comments. This is necessary, for example,
21511 # in the case of _POSIX_SOURCE, which is predefined and required
21512 # on some systems where configure will not decide to define it.
21513 if (defundef == "undef") {
21514 print "/*", prefix defundef, macro, "*/"
21515 next
21516 }
21517 }
21518 }
21519 { print }
21520 _ACAWK
21521 _ACEOF
21522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21523 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21524 fi # test -n "$CONFIG_HEADERS"
21525
21526
21527 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21528 shift
21529 for ac_tag
21530 do
21531 case $ac_tag in
21532 :[FHLC]) ac_mode=$ac_tag; continue;;
21533 esac
21534 case $ac_mode$ac_tag in
21535 :[FHL]*:*);;
21536 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21537 :[FH]-) ac_tag=-:-;;
21538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21539 esac
21540 ac_save_IFS=$IFS
21541 IFS=:
21542 set x $ac_tag
21543 IFS=$ac_save_IFS
21544 shift
21545 ac_file=$1
21546 shift
21547
21548 case $ac_mode in
21549 :L) ac_source=$1;;
21550 :[FH])
21551 ac_file_inputs=
21552 for ac_f
21553 do
21554 case $ac_f in
21555 -) ac_f="$ac_tmp/stdin";;
21556 *) # Look for the file first in the build tree, then in the source tree
21557 # (if the path is not absolute). The absolute path cannot be DOS-style,
21558 # because $ac_f cannot contain `:'.
21559 test -f "$ac_f" ||
21560 case $ac_f in
21561 [\\/$]*) false;;
21562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21563 esac ||
21564 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21565 esac
21566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21567 as_fn_append ac_file_inputs " '$ac_f'"
21568 done
21569
21570 # Let's still pretend it is `configure' which instantiates (i.e., don't
21571 # use $as_me), people would be surprised to read:
21572 # /* config.h. Generated by config.status. */
21573 configure_input='Generated from '`
21574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21575 `' by configure.'
21576 if test x"$ac_file" != x-; then
21577 configure_input="$ac_file. $configure_input"
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21579 $as_echo "$as_me: creating $ac_file" >&6;}
21580 fi
21581 # Neutralize special characters interpreted by sed in replacement strings.
21582 case $configure_input in #(
21583 *\&* | *\|* | *\\* )
21584 ac_sed_conf_input=`$as_echo "$configure_input" |
21585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21586 *) ac_sed_conf_input=$configure_input;;
21587 esac
21588
21589 case $ac_tag in
21590 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21592 esac
21593 ;;
21594 esac
21595
21596 ac_dir=`$as_dirname -- "$ac_file" ||
21597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21598 X"$ac_file" : 'X\(//\)[^/]' \| \
21599 X"$ac_file" : 'X\(//\)$' \| \
21600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21601 $as_echo X"$ac_file" |
21602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21603 s//\1/
21604 q
21605 }
21606 /^X\(\/\/\)[^/].*/{
21607 s//\1/
21608 q
21609 }
21610 /^X\(\/\/\)$/{
21611 s//\1/
21612 q
21613 }
21614 /^X\(\/\).*/{
21615 s//\1/
21616 q
21617 }
21618 s/.*/./; q'`
21619 as_dir="$ac_dir"; as_fn_mkdir_p
21620 ac_builddir=.
21621
21622 case "$ac_dir" in
21623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21624 *)
21625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21626 # A ".." for each directory in $ac_dir_suffix.
21627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21628 case $ac_top_builddir_sub in
21629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21631 esac ;;
21632 esac
21633 ac_abs_top_builddir=$ac_pwd
21634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21635 # for backward compatibility:
21636 ac_top_builddir=$ac_top_build_prefix
21637
21638 case $srcdir in
21639 .) # We are building in place.
21640 ac_srcdir=.
21641 ac_top_srcdir=$ac_top_builddir_sub
21642 ac_abs_top_srcdir=$ac_pwd ;;
21643 [\\/]* | ?:[\\/]* ) # Absolute name.
21644 ac_srcdir=$srcdir$ac_dir_suffix;
21645 ac_top_srcdir=$srcdir
21646 ac_abs_top_srcdir=$srcdir ;;
21647 *) # Relative name.
21648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21649 ac_top_srcdir=$ac_top_build_prefix$srcdir
21650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21651 esac
21652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21653
21654
21655 case $ac_mode in
21656 :F)
21657 #
21658 # CONFIG_FILE
21659 #
21660
21661 case $INSTALL in
21662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21664 esac
21665 ac_MKDIR_P=$MKDIR_P
21666 case $MKDIR_P in
21667 [\\/$]* | ?:[\\/]* ) ;;
21668 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21669 esac
21670 _ACEOF
21671
21672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21673 # If the template does not know about datarootdir, expand it.
21674 # FIXME: This hack should be removed a few years after 2.60.
21675 ac_datarootdir_hack=; ac_datarootdir_seen=
21676 ac_sed_dataroot='
21677 /datarootdir/ {
21678 p
21679 q
21680 }
21681 /@datadir@/p
21682 /@docdir@/p
21683 /@infodir@/p
21684 /@localedir@/p
21685 /@mandir@/p'
21686 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21687 *datarootdir*) ac_datarootdir_seen=yes;;
21688 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21690 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21691 _ACEOF
21692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21693 ac_datarootdir_hack='
21694 s&@datadir@&$datadir&g
21695 s&@docdir@&$docdir&g
21696 s&@infodir@&$infodir&g
21697 s&@localedir@&$localedir&g
21698 s&@mandir@&$mandir&g
21699 s&\\\${datarootdir}&$datarootdir&g' ;;
21700 esac
21701 _ACEOF
21702
21703 # Neutralize VPATH when `$srcdir' = `.'.
21704 # Shell code in configure.ac might set extrasub.
21705 # FIXME: do we really want to maintain this feature?
21706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21707 ac_sed_extra="$ac_vpsub
21708 $extrasub
21709 _ACEOF
21710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21711 :t
21712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21713 s|@configure_input@|$ac_sed_conf_input|;t t
21714 s&@top_builddir@&$ac_top_builddir_sub&;t t
21715 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21716 s&@srcdir@&$ac_srcdir&;t t
21717 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21718 s&@top_srcdir@&$ac_top_srcdir&;t t
21719 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21720 s&@builddir@&$ac_builddir&;t t
21721 s&@abs_builddir@&$ac_abs_builddir&;t t
21722 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21723 s&@INSTALL@&$ac_INSTALL&;t t
21724 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21725 $ac_datarootdir_hack
21726 "
21727 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21728 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21729
21730 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21731 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21733 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21735 which seems to be undefined. Please make sure it is defined" >&5
21736 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21737 which seems to be undefined. Please make sure it is defined" >&2;}
21738
21739 rm -f "$ac_tmp/stdin"
21740 case $ac_file in
21741 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21742 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21743 esac \
21744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21745 ;;
21746 :H)
21747 #
21748 # CONFIG_HEADER
21749 #
21750 if test x"$ac_file" != x-; then
21751 {
21752 $as_echo "/* $configure_input */" \
21753 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21754 } >"$ac_tmp/config.h" \
21755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21756 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21758 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21759 else
21760 rm -f "$ac_file"
21761 mv "$ac_tmp/config.h" "$ac_file" \
21762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21763 fi
21764 else
21765 $as_echo "/* $configure_input */" \
21766 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21767 || as_fn_error $? "could not create -" "$LINENO" 5
21768 fi
21769 # Compute "$ac_file"'s index in $config_headers.
21770 _am_arg="$ac_file"
21771 _am_stamp_count=1
21772 for _am_header in $config_headers :; do
21773 case $_am_header in
21774 $_am_arg | $_am_arg:* )
21775 break ;;
21776 * )
21777 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21778 esac
21779 done
21780 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21781 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21782 X"$_am_arg" : 'X\(//\)[^/]' \| \
21783 X"$_am_arg" : 'X\(//\)$' \| \
21784 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21785 $as_echo X"$_am_arg" |
21786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21787 s//\1/
21788 q
21789 }
21790 /^X\(\/\/\)[^/].*/{
21791 s//\1/
21792 q
21793 }
21794 /^X\(\/\/\)$/{
21795 s//\1/
21796 q
21797 }
21798 /^X\(\/\).*/{
21799 s//\1/
21800 q
21801 }
21802 s/.*/./; q'`/stamp-h$_am_stamp_count
21803 ;;
21804
21805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21806 $as_echo "$as_me: executing $ac_file commands" >&6;}
21807 ;;
21808 esac
21809
21810
21811 case $ac_file$ac_mode in
21812 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21813 # Older Autoconf quotes --file arguments for eval, but not when files
21814 # are listed without --file. Let's play safe and only enable the eval
21815 # if we detect the quoting.
21816 # TODO: see whether this extra hack can be removed once we start
21817 # requiring Autoconf 2.70 or later.
21818 case $CONFIG_FILES in #(
21819 *\'*) :
21820 eval set x "$CONFIG_FILES" ;; #(
21821 *) :
21822 set x $CONFIG_FILES ;; #(
21823 *) :
21824 ;;
21825 esac
21826 shift
21827 # Used to flag and report bootstrapping failures.
21828 am_rc=0
21829 for am_mf
21830 do
21831 # Strip MF so we end up with the name of the file.
21832 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21833 # Check whether this is an Automake generated Makefile which includes
21834 # dependency-tracking related rules and includes.
21835 # Grep'ing the whole file directly is not great: AIX grep has a line
21836 # limit of 2048, but all sed's we know have understand at least 4000.
21837 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21838 || continue
21839 am_dirpart=`$as_dirname -- "$am_mf" ||
21840 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21841 X"$am_mf" : 'X\(//\)[^/]' \| \
21842 X"$am_mf" : 'X\(//\)$' \| \
21843 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21844 $as_echo X"$am_mf" |
21845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21846 s//\1/
21847 q
21848 }
21849 /^X\(\/\/\)[^/].*/{
21850 s//\1/
21851 q
21852 }
21853 /^X\(\/\/\)$/{
21854 s//\1/
21855 q
21856 }
21857 /^X\(\/\).*/{
21858 s//\1/
21859 q
21860 }
21861 s/.*/./; q'`
21862 am_filepart=`$as_basename -- "$am_mf" ||
21863 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21864 X"$am_mf" : 'X\(//\)$' \| \
21865 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21866 $as_echo X/"$am_mf" |
21867 sed '/^.*\/\([^/][^/]*\)\/*$/{
21868 s//\1/
21869 q
21870 }
21871 /^X\/\(\/\/\)$/{
21872 s//\1/
21873 q
21874 }
21875 /^X\/\(\/\).*/{
21876 s//\1/
21877 q
21878 }
21879 s/.*/./; q'`
21880 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21881 && sed -e '/# am--include-marker/d' "$am_filepart" \
21882 | $MAKE -f - am--depfiles" >&5
21883 (cd "$am_dirpart" \
21884 && sed -e '/# am--include-marker/d' "$am_filepart" \
21885 | $MAKE -f - am--depfiles) >&5 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } || am_rc=$?
21889 done
21890 if test $am_rc -ne 0; then
21891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21893 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21894 for automatic dependency tracking. Try re-running configure with the
21895 '--disable-dependency-tracking' option to at least be able to build
21896 the package (albeit without support for automatic dependency tracking).
21897 See \`config.log' for more details" "$LINENO" 5; }
21898 fi
21899 { am_dirpart=; unset am_dirpart;}
21900 { am_filepart=; unset am_filepart;}
21901 { am_mf=; unset am_mf;}
21902 { am_rc=; unset am_rc;}
21903 rm -f conftest-deps.mk
21904 }
21905 ;;
21906 "libtool":C)
21907
21908 # See if we are running on zsh, and set the options that allow our
21909 # commands through without removal of \ escapes.
21910 if test -n "${ZSH_VERSION+set}"; then
21911 setopt NO_GLOB_SUBST
21912 fi
21913
21914 cfgfile=${ofile}T
21915 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21916 $RM "$cfgfile"
21917
21918 cat <<_LT_EOF >> "$cfgfile"
21919 #! $SHELL
21920 # Generated automatically by $as_me ($PACKAGE) $VERSION
21921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21923
21924 # Provide generalized library-building support services.
21925 # Written by Gordon Matzigkeit, 1996
21926
21927 # Copyright (C) 2014 Free Software Foundation, Inc.
21928 # This is free software; see the source for copying conditions. There is NO
21929 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21930
21931 # GNU Libtool is free software; you can redistribute it and/or modify
21932 # it under the terms of the GNU General Public License as published by
21933 # the Free Software Foundation; either version 2 of of the License, or
21934 # (at your option) any later version.
21935 #
21936 # As a special exception to the GNU General Public License, if you
21937 # distribute this file as part of a program or library that is built
21938 # using GNU Libtool, you may include this file under the same
21939 # distribution terms that you use for the rest of that program.
21940 #
21941 # GNU Libtool is distributed in the hope that it will be useful, but
21942 # WITHOUT ANY WARRANTY; without even the implied warranty of
21943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21944 # GNU General Public License for more details.
21945 #
21946 # You should have received a copy of the GNU General Public License
21947 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21948
21949
21950 # The names of the tagged configurations supported by this script.
21951 available_tags=''
21952
21953 # Configured defaults for sys_lib_dlsearch_path munging.
21954 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21955
21956 # ### BEGIN LIBTOOL CONFIG
21957
21958 # Whether or not to build static libraries.
21959 build_old_libs=$enable_static
21960
21961 # Which release of libtool.m4 was used?
21962 macro_version=$macro_version
21963 macro_revision=$macro_revision
21964
21965 # Whether or not to build shared libraries.
21966 build_libtool_libs=$enable_shared
21967
21968 # What type of objects to build.
21969 pic_mode=$pic_mode
21970
21971 # Whether or not to optimize for fast installation.
21972 fast_install=$enable_fast_install
21973
21974 # Shared archive member basename,for filename based shared library versioning on AIX.
21975 shared_archive_member_spec=$shared_archive_member_spec
21976
21977 # Shell to use when invoking shell scripts.
21978 SHELL=$lt_SHELL
21979
21980 # An echo program that protects backslashes.
21981 ECHO=$lt_ECHO
21982
21983 # The PATH separator for the build system.
21984 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21985
21986 # The host system.
21987 host_alias=$host_alias
21988 host=$host
21989 host_os=$host_os
21990
21991 # The build system.
21992 build_alias=$build_alias
21993 build=$build
21994 build_os=$build_os
21995
21996 # A sed program that does not truncate output.
21997 SED=$lt_SED
21998
21999 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22000 Xsed="\$SED -e 1s/^X//"
22001
22002 # A grep program that handles long lines.
22003 GREP=$lt_GREP
22004
22005 # An ERE matcher.
22006 EGREP=$lt_EGREP
22007
22008 # A literal string matcher.
22009 FGREP=$lt_FGREP
22010
22011 # A BSD- or MS-compatible name lister.
22012 NM=$lt_NM
22013
22014 # Whether we need soft or hard links.
22015 LN_S=$lt_LN_S
22016
22017 # What is the maximum length of a command?
22018 max_cmd_len=$max_cmd_len
22019
22020 # Object file suffix (normally "o").
22021 objext=$ac_objext
22022
22023 # Executable file suffix (normally "").
22024 exeext=$exeext
22025
22026 # whether the shell understands "unset".
22027 lt_unset=$lt_unset
22028
22029 # turn spaces into newlines.
22030 SP2NL=$lt_lt_SP2NL
22031
22032 # turn newlines into spaces.
22033 NL2SP=$lt_lt_NL2SP
22034
22035 # convert \$build file names to \$host format.
22036 to_host_file_cmd=$lt_cv_to_host_file_cmd
22037
22038 # convert \$build files to toolchain format.
22039 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22040
22041 # An object symbol dumper.
22042 OBJDUMP=$lt_OBJDUMP
22043
22044 # Method to check whether dependent libraries are shared objects.
22045 deplibs_check_method=$lt_deplibs_check_method
22046
22047 # Command to use when deplibs_check_method = "file_magic".
22048 file_magic_cmd=$lt_file_magic_cmd
22049
22050 # How to find potential files when deplibs_check_method = "file_magic".
22051 file_magic_glob=$lt_file_magic_glob
22052
22053 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22054 want_nocaseglob=$lt_want_nocaseglob
22055
22056 # DLL creation program.
22057 DLLTOOL=$lt_DLLTOOL
22058
22059 # Command to associate shared and link libraries.
22060 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22061
22062 # The archiver.
22063 AR=$lt_AR
22064
22065 # Flags to create an archive (by configure).
22066 lt_ar_flags=$lt_ar_flags
22067
22068 # Flags to create an archive.
22069 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22070
22071 # How to feed a file listing to the archiver.
22072 archiver_list_spec=$lt_archiver_list_spec
22073
22074 # A symbol stripping program.
22075 STRIP=$lt_STRIP
22076
22077 # Commands used to install an old-style archive.
22078 RANLIB=$lt_RANLIB
22079 old_postinstall_cmds=$lt_old_postinstall_cmds
22080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22081
22082 # Whether to use a lock for old archive extraction.
22083 lock_old_archive_extraction=$lock_old_archive_extraction
22084
22085 # A C compiler.
22086 LTCC=$lt_CC
22087
22088 # LTCC compiler flags.
22089 LTCFLAGS=$lt_CFLAGS
22090
22091 # Take the output of nm and produce a listing of raw symbols and C names.
22092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22093
22094 # Transform the output of nm in a proper C declaration.
22095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22096
22097 # Transform the output of nm into a list of symbols to manually relocate.
22098 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22099
22100 # Transform the output of nm in a C name address pair.
22101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22102
22103 # Transform the output of nm in a C name address pair when lib prefix is needed.
22104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22105
22106 # The name lister interface.
22107 nm_interface=$lt_lt_cv_nm_interface
22108
22109 # Specify filename containing input files for \$NM.
22110 nm_file_list_spec=$lt_nm_file_list_spec
22111
22112 # The root where to search for dependent libraries,and where our libraries should be installed.
22113 lt_sysroot=$lt_sysroot
22114
22115 # Command to truncate a binary pipe.
22116 lt_truncate_bin=$lt_lt_cv_truncate_bin
22117
22118 # The name of the directory that contains temporary libtool files.
22119 objdir=$objdir
22120
22121 # Used to examine libraries when file_magic_cmd begins with "file".
22122 MAGIC_CMD=$MAGIC_CMD
22123
22124 # Must we lock files when doing compilation?
22125 need_locks=$lt_need_locks
22126
22127 # Manifest tool.
22128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22129
22130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22131 DSYMUTIL=$lt_DSYMUTIL
22132
22133 # Tool to change global to local symbols on Mac OS X.
22134 NMEDIT=$lt_NMEDIT
22135
22136 # Tool to manipulate fat objects and archives on Mac OS X.
22137 LIPO=$lt_LIPO
22138
22139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22140 OTOOL=$lt_OTOOL
22141
22142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22143 OTOOL64=$lt_OTOOL64
22144
22145 # Old archive suffix (normally "a").
22146 libext=$libext
22147
22148 # Shared library suffix (normally ".so").
22149 shrext_cmds=$lt_shrext_cmds
22150
22151 # The commands to extract the exported symbol list from a shared archive.
22152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22153
22154 # Variables whose values should be saved in libtool wrapper scripts and
22155 # restored at link time.
22156 variables_saved_for_relink=$lt_variables_saved_for_relink
22157
22158 # Do we need the "lib" prefix for modules?
22159 need_lib_prefix=$need_lib_prefix
22160
22161 # Do we need a version for libraries?
22162 need_version=$need_version
22163
22164 # Library versioning type.
22165 version_type=$version_type
22166
22167 # Shared library runtime path variable.
22168 runpath_var=$runpath_var
22169
22170 # Shared library path variable.
22171 shlibpath_var=$shlibpath_var
22172
22173 # Is shlibpath searched before the hard-coded library search path?
22174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22175
22176 # Format of library name prefix.
22177 libname_spec=$lt_libname_spec
22178
22179 # List of archive names. First name is the real one, the rest are links.
22180 # The last name is the one that the linker finds with -lNAME
22181 library_names_spec=$lt_library_names_spec
22182
22183 # The coded name of the library, if different from the real name.
22184 soname_spec=$lt_soname_spec
22185
22186 # Permission mode override for installation of shared libraries.
22187 install_override_mode=$lt_install_override_mode
22188
22189 # Command to use after installation of a shared archive.
22190 postinstall_cmds=$lt_postinstall_cmds
22191
22192 # Command to use after uninstallation of a shared archive.
22193 postuninstall_cmds=$lt_postuninstall_cmds
22194
22195 # Commands used to finish a libtool library installation in a directory.
22196 finish_cmds=$lt_finish_cmds
22197
22198 # As "finish_cmds", except a single script fragment to be evaled but
22199 # not shown.
22200 finish_eval=$lt_finish_eval
22201
22202 # Whether we should hardcode library paths into libraries.
22203 hardcode_into_libs=$hardcode_into_libs
22204
22205 # Compile-time system search path for libraries.
22206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22207
22208 # Detected run-time system search path for libraries.
22209 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22210
22211 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22212 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22213
22214 # Whether dlopen is supported.
22215 dlopen_support=$enable_dlopen
22216
22217 # Whether dlopen of programs is supported.
22218 dlopen_self=$enable_dlopen_self
22219
22220 # Whether dlopen of statically linked programs is supported.
22221 dlopen_self_static=$enable_dlopen_self_static
22222
22223 # Commands to strip libraries.
22224 old_striplib=$lt_old_striplib
22225 striplib=$lt_striplib
22226
22227
22228 # The linker used to build libraries.
22229 LD=$lt_LD
22230
22231 # How to create reloadable object files.
22232 reload_flag=$lt_reload_flag
22233 reload_cmds=$lt_reload_cmds
22234
22235 # Commands used to build an old-style archive.
22236 old_archive_cmds=$lt_old_archive_cmds
22237
22238 # A language specific compiler.
22239 CC=$lt_compiler
22240
22241 # Is the compiler the GNU compiler?
22242 with_gcc=$GCC
22243
22244 # Compiler flag to turn off builtin functions.
22245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22246
22247 # Additional compiler flags for building library objects.
22248 pic_flag=$lt_lt_prog_compiler_pic
22249
22250 # How to pass a linker flag through the compiler.
22251 wl=$lt_lt_prog_compiler_wl
22252
22253 # Compiler flag to prevent dynamic linking.
22254 link_static_flag=$lt_lt_prog_compiler_static
22255
22256 # Does compiler simultaneously support -c and -o options?
22257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22258
22259 # Whether or not to add -lc for building shared libraries.
22260 build_libtool_need_lc=$archive_cmds_need_lc
22261
22262 # Whether or not to disallow shared libs when runtime libs are static.
22263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22264
22265 # Compiler flag to allow reflexive dlopens.
22266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22267
22268 # Compiler flag to generate shared objects directly from archives.
22269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22270
22271 # Whether the compiler copes with passing no objects directly.
22272 compiler_needs_object=$lt_compiler_needs_object
22273
22274 # Create an old-style archive from a shared archive.
22275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22276
22277 # Create a temporary old-style archive to link instead of a shared archive.
22278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22279
22280 # Commands used to build a shared archive.
22281 archive_cmds=$lt_archive_cmds
22282 archive_expsym_cmds=$lt_archive_expsym_cmds
22283
22284 # Commands used to build a loadable module if different from building
22285 # a shared archive.
22286 module_cmds=$lt_module_cmds
22287 module_expsym_cmds=$lt_module_expsym_cmds
22288
22289 # Whether we are building with GNU ld or not.
22290 with_gnu_ld=$lt_with_gnu_ld
22291
22292 # Flag that allows shared libraries with undefined symbols to be built.
22293 allow_undefined_flag=$lt_allow_undefined_flag
22294
22295 # Flag that enforces no undefined symbols.
22296 no_undefined_flag=$lt_no_undefined_flag
22297
22298 # Flag to hardcode \$libdir into a binary during linking.
22299 # This must work even if \$libdir does not exist
22300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22301
22302 # Whether we need a single "-rpath" flag with a separated argument.
22303 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22304
22305 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22306 # DIR into the resulting binary.
22307 hardcode_direct=$hardcode_direct
22308
22309 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22310 # DIR into the resulting binary and the resulting library dependency is
22311 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22312 # library is relocated.
22313 hardcode_direct_absolute=$hardcode_direct_absolute
22314
22315 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22316 # into the resulting binary.
22317 hardcode_minus_L=$hardcode_minus_L
22318
22319 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22320 # into the resulting binary.
22321 hardcode_shlibpath_var=$hardcode_shlibpath_var
22322
22323 # Set to "yes" if building a shared library automatically hardcodes DIR
22324 # into the library and all subsequent libraries and executables linked
22325 # against it.
22326 hardcode_automatic=$hardcode_automatic
22327
22328 # Set to yes if linker adds runtime paths of dependent libraries
22329 # to runtime path list.
22330 inherit_rpath=$inherit_rpath
22331
22332 # Whether libtool must link a program against all its dependency libraries.
22333 link_all_deplibs=$link_all_deplibs
22334
22335 # Set to "yes" if exported symbols are required.
22336 always_export_symbols=$always_export_symbols
22337
22338 # The commands to list exported symbols.
22339 export_symbols_cmds=$lt_export_symbols_cmds
22340
22341 # Symbols that should not be listed in the preloaded symbols.
22342 exclude_expsyms=$lt_exclude_expsyms
22343
22344 # Symbols that must always be exported.
22345 include_expsyms=$lt_include_expsyms
22346
22347 # Commands necessary for linking programs (against libraries) with templates.
22348 prelink_cmds=$lt_prelink_cmds
22349
22350 # Commands necessary for finishing linking programs.
22351 postlink_cmds=$lt_postlink_cmds
22352
22353 # Specify filename containing input files.
22354 file_list_spec=$lt_file_list_spec
22355
22356 # How to hardcode a shared library path into an executable.
22357 hardcode_action=$hardcode_action
22358
22359 # ### END LIBTOOL CONFIG
22360
22361 _LT_EOF
22362
22363 cat <<'_LT_EOF' >> "$cfgfile"
22364
22365 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22366
22367 # func_munge_path_list VARIABLE PATH
22368 # -----------------------------------
22369 # VARIABLE is name of variable containing _space_ separated list of
22370 # directories to be munged by the contents of PATH, which is string
22371 # having a format:
22372 # "DIR[:DIR]:"
22373 # string "DIR[ DIR]" will be prepended to VARIABLE
22374 # ":DIR[:DIR]"
22375 # string "DIR[ DIR]" will be appended to VARIABLE
22376 # "DIRP[:DIRP]::[DIRA:]DIRA"
22377 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22378 # "DIRA[ DIRA]" will be appended to VARIABLE
22379 # "DIR[:DIR]"
22380 # VARIABLE will be replaced by "DIR[ DIR]"
22381 func_munge_path_list ()
22382 {
22383 case x$2 in
22384 x)
22385 ;;
22386 *:)
22387 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22388 ;;
22389 x:*)
22390 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22391 ;;
22392 *::*)
22393 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22394 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22395 ;;
22396 *)
22397 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22398 ;;
22399 esac
22400 }
22401
22402
22403 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22404 func_cc_basename ()
22405 {
22406 for cc_temp in $*""; do
22407 case $cc_temp in
22408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22410 \-*) ;;
22411 *) break;;
22412 esac
22413 done
22414 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22415 }
22416
22417
22418 # ### END FUNCTIONS SHARED WITH CONFIGURE
22419
22420 _LT_EOF
22421
22422 case $host_os in
22423 aix3*)
22424 cat <<\_LT_EOF >> "$cfgfile"
22425 # AIX sometimes has problems with the GCC collect2 program. For some
22426 # reason, if we set the COLLECT_NAMES environment variable, the problems
22427 # vanish in a puff of smoke.
22428 if test set != "${COLLECT_NAMES+set}"; then
22429 COLLECT_NAMES=
22430 export COLLECT_NAMES
22431 fi
22432 _LT_EOF
22433 ;;
22434 esac
22435
22436
22437 ltmain=$ac_aux_dir/ltmain.sh
22438
22439
22440 # We use sed instead of cat because bash on DJGPP gets confused if
22441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22442 # text mode, it properly converts lines to CR/LF. This bash problem
22443 # is reportedly fixed, but why not run on old versions too?
22444 sed '$q' "$ltmain" >> "$cfgfile" \
22445 || (rm -f "$cfgfile"; exit 1)
22446
22447 mv -f "$cfgfile" "$ofile" ||
22448 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22449 chmod +x "$ofile"
22450
22451 ;;
22452
22453 esac
22454 done # for ac_tag
22455
22456
22457 as_fn_exit 0
22458 _ACEOF
22459 ac_clean_files=$ac_clean_files_save
22460
22461 test $ac_write_fail = 0 ||
22462 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22463
22464
22465 # configure is writing to config.log, and then calls config.status.
22466 # config.status does its own redirection, appending to config.log.
22467 # Unfortunately, on DOS this fails, as config.log is still kept open
22468 # by configure, so config.status won't be able to write to it; its
22469 # output is simply discarded. So we exec the FD to /dev/null,
22470 # effectively closing config.log, so it can be properly (re)opened and
22471 # appended to by config.status. When coming back to configure, we
22472 # need to make the FD available again.
22473 if test "$no_create" != yes; then
22474 ac_cs_success=:
22475 ac_config_status_args=
22476 test "$silent" = yes &&
22477 ac_config_status_args="$ac_config_status_args --quiet"
22478 exec 5>/dev/null
22479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22480 exec 5>>config.log
22481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22482 # would make configure fail if this is the last instruction.
22483 $ac_cs_success || as_fn_exit 1
22484 fi
22485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22488 fi
22489
22490
22491 echo ""
22492 echo " prefix: $prefix"
22493 echo " exec_prefix: $exec_prefix"
22494 echo " libdir: $libdir"
22495 echo " includedir: $includedir"
22496 echo " configdir: $configdir"
22497
22498 echo ""
22499 echo " CFLAGS: $CFLAGS"
22500 echo " CXXFLAGS: $CXXFLAGS"
22501 echo " Macros: $DEFINES"
22502
22503 echo ""
22504 echo " Run '${MAKE-make}' to build xf86-video-ati"
22505 echo ""
22506