configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-ati 7.5.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-ati'
593 PACKAGE_TARNAME='xf86-video-ati'
594 PACKAGE_VERSION='7.5.0'
595 PACKAGE_STRING='xf86-video-ati 7.5.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 PCIACCESS_LIBS
643 PCIACCESS_CFLAGS
644 GLAMOR_FALSE
645 GLAMOR_TRUE
646 LIBGLAMOR_EGL_LIBS
647 LIBGLAMOR_EGL_CFLAGS
648 LIBGLAMOR_LIBS
649 LIBGLAMOR_CFLAGS
650 LIBUDEV_FALSE
651 LIBUDEV_TRUE
652 LIBUDEV_LIBS
653 LIBUDEV_CFLAGS
654 HAVE_XEXTPROTO_71_FALSE
655 HAVE_XEXTPROTO_71_TRUE
656 XEXT_LIBS
657 XEXT_CFLAGS
658 XORG_LIBS
659 XORG_CFLAGS
660 LIBDRM_RADEON_LIBS
661 LIBDRM_RADEON_CFLAGS
662 LIBDRM_LIBS
663 LIBDRM_CFLAGS
664 OTOOL64
665 OTOOL
666 LIPO
667 NMEDIT
668 DSYMUTIL
669 MANIFEST_TOOL
670 RANLIB
671 ac_ct_AR
672 AR
673 DLLTOOL
674 OBJDUMP
675 LN_S
676 NM
677 ac_ct_DUMPBIN
678 DUMPBIN
679 LD
680 FGREP
681 LIBTOOL
682 MAN_SUBSTS
683 XORG_MAN_PAGE
684 ADMIN_MAN_DIR
685 DRIVER_MAN_DIR
686 MISC_MAN_DIR
687 FILE_MAN_DIR
688 LIB_MAN_DIR
689 APP_MAN_DIR
690 ADMIN_MAN_SUFFIX
691 DRIVER_MAN_SUFFIX
692 MISC_MAN_SUFFIX
693 FILE_MAN_SUFFIX
694 LIB_MAN_SUFFIX
695 APP_MAN_SUFFIX
696 SED
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 INSTALL_CMD
706 PKG_CONFIG_LIBDIR
707 PKG_CONFIG_PATH
708 PKG_CONFIG
709 CHANGELOG_CMD
710 STRICT_CFLAGS
711 CWARNFLAGS
712 BASE_CFLAGS
713 EGREP
714 GREP
715 CPP
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__quote
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
745 AWK
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_silent_rules
805 enable_largefile
806 enable_dependency_tracking
807 enable_maintainer_mode
808 enable_selective_werror
809 enable_strict_compilation
810 enable_static
811 enable_shared
812 with_pic
813 enable_fast_install
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 with_xorg_module_dir
818 enable_udev
819 enable_glamor
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CPP
830 PKG_CONFIG
831 PKG_CONFIG_PATH
832 PKG_CONFIG_LIBDIR
833 LIBDRM_CFLAGS
834 LIBDRM_LIBS
835 LIBDRM_RADEON_CFLAGS
836 LIBDRM_RADEON_LIBS
837 XORG_CFLAGS
838 XORG_LIBS
839 XEXT_CFLAGS
840 XEXT_LIBS
841 LIBUDEV_CFLAGS
842 LIBUDEV_LIBS
843 LIBGLAMOR_CFLAGS
844 LIBGLAMOR_LIBS
845 LIBGLAMOR_EGL_CFLAGS
846 LIBGLAMOR_EGL_LIBS
847 PCIACCESS_CFLAGS
848 PCIACCESS_LIBS'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
908 fi
909
910 case $ac_option in
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *=) ac_optarg= ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 # Accept the important Cygnus configure options, so we can diagnose typos.
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235 Try \`$0 --help' for more information"
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 ;;
1255
1256 esac
1257 done
1258
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error $? "missing argument to $ac_option"
1262 fi
1263
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270 fi
1271
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277 do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error $? "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354 else
1355 ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364 pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures xf86-video-ati 7.5.0 to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking ...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1443
1444 cat <<\_ACEOF
1445
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of xf86-video-ati 7.5.0:";;
1460 esac
1461 cat <<\_ACEOF
1462
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --disable-largefile omit support for large files
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
1477 --disable-selective-werror
1478 Turn off selective compiler errors. (default:
1479 enabled)
1480 --enable-strict-compilation
1481 Enable all warnings from compiler and make them
1482 errors (default: disabled)
1483 --enable-static[=PKGS] build static libraries [default=no]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --disable-udev Disable libudev support [default=auto]
1489 --disable-glamor Disable glamor, a new GL-based acceleration
1490 [default=enabled]
1491
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-sysroot=DIR Search for dependent libraries within DIR
1499 (or the compiler's sysroot if not specified).
1500 --with-xorg-module-dir=DIR
1501 Default xorg module directory
1502 [[default=$libdir/xorg/modules]]
1503
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 CPP C preprocessor
1513 PKG_CONFIG path to pkg-config utility
1514 PKG_CONFIG_PATH
1515 directories to add to pkg-config's search path
1516 PKG_CONFIG_LIBDIR
1517 path overriding pkg-config's built-in search path
1518 LIBDRM_CFLAGS
1519 C compiler flags for LIBDRM, overriding pkg-config
1520 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1521 LIBDRM_RADEON_CFLAGS
1522 C compiler flags for LIBDRM_RADEON, overriding pkg-config
1523 LIBDRM_RADEON_LIBS
1524 linker flags for LIBDRM_RADEON, overriding pkg-config
1525 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1526 XORG_LIBS linker flags for XORG, overriding pkg-config
1527 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1528 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1529 LIBUDEV_CFLAGS
1530 C compiler flags for LIBUDEV, overriding pkg-config
1531 LIBUDEV_LIBS
1532 linker flags for LIBUDEV, overriding pkg-config
1533 LIBGLAMOR_CFLAGS
1534 C compiler flags for LIBGLAMOR, overriding pkg-config
1535 LIBGLAMOR_LIBS
1536 linker flags for LIBGLAMOR, overriding pkg-config
1537 LIBGLAMOR_EGL_CFLAGS
1538 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1539 LIBGLAMOR_EGL_LIBS
1540 linker flags for LIBGLAMOR_EGL, overriding pkg-config
1541 PCIACCESS_CFLAGS
1542 C compiler flags for PCIACCESS, overriding pkg-config
1543 PCIACCESS_LIBS
1544 linker flags for PCIACCESS, overriding pkg-config
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 xf86-video-ati configure 7.5.0
1613 generated by GNU Autoconf 2.69
1614
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1665 # ---------------------------------------------
1666 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1667 # accordingly.
1668 ac_fn_c_check_decl ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 as_decl_name=`echo $2|sed 's/ *(.*//'`
1672 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1674 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1680 $4
1681 int
1682 main ()
1683 {
1684 #ifndef $as_decl_name
1685 #ifdef __cplusplus
1686 (void) $as_decl_use;
1687 #else
1688 (void) $as_decl_name;
1689 #endif
1690 #endif
1691
1692 ;
1693 return 0;
1694 }
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 eval "$3=yes"
1698 else
1699 eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_decl
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=$ac_status
1782 fi
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_run
1788
1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists and can be compiled using the include files in
1792 # INCLUDES, setting the cache variable VAR accordingly.
1793 ac_fn_c_check_header_compile ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_header_compile
1819
1820 # ac_fn_c_try_link LINENO
1821 # -----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_link ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext conftest$ac_exeext
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest$ac_exeext && {
1846 test "$cross_compiling" = yes ||
1847 test -x conftest$ac_exeext
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=1
1855 fi
1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858 # interfere with the next link command; also delete a directory that is
1859 # left behind by Apple's compiler. We do this before executing the actions.
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1863
1864 } # ac_fn_c_try_link
1865
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881 #define $2 innocuous_$2
1882
1883 /* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1887
1888 #ifdef __STDC__
1889 # include <limits.h>
1890 #else
1891 # include <assert.h>
1892 #endif
1893
1894 #undef $2
1895
1896 /* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1899 #ifdef __cplusplus
1900 extern "C"
1901 #endif
1902 char $2 ();
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined __stub_$2 || defined __stub___$2
1907 choke me
1908 #endif
1909
1910 int
1911 main ()
1912 {
1913 return $2 ();
1914 ;
1915 return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_link "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_func
1932
1933 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936 # the include files in INCLUDES and setting the cache variable VAR
1937 # accordingly.
1938 ac_fn_c_check_header_mongrel ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if eval \${$3+:} false; then :
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 fi
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 else
1951 # Is the header compilable?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953 $as_echo_n "checking $2 usability... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_header_compiler=yes
1961 else
1962 ac_header_compiler=no
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966 $as_echo "$ac_header_compiler" >&6; }
1967
1968 # Is the header present?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970 $as_echo_n "checking $2 presence... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 ac_header_preproc=yes
1977 else
1978 ac_header_preproc=no
1979 fi
1980 rm -f conftest.err conftest.i conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982 $as_echo "$ac_header_preproc" >&6; }
1983
1984 # So? What about this header?
1985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1986 yes:no: )
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 ;;
1992 no:yes:* )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1996 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2000 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 ( $as_echo "## ---------------------------------------------------------------------- ##
2004 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2005 ## ---------------------------------------------------------------------- ##"
2006 ) | sed "s/^/$as_me: WARNING: /" >&2
2007 ;;
2008 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 fi
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022 } # ac_fn_c_check_header_mongrel
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2026
2027 It was created by xf86-video-ati $as_me 7.5.0, which was
2028 generated by GNU Autoconf 2.69. Invocation command line was
2029
2030 $ $0 $@
2031
2032 _ACEOF
2033 exec 5>>config.log
2034 {
2035 cat <<_ASUNAME
2036 ## --------- ##
2037 ## Platform. ##
2038 ## --------- ##
2039
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2048
2049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2056
2057 _ASUNAME
2058
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 $as_echo "PATH: $as_dir"
2065 done
2066 IFS=$as_save_IFS
2067
2068 } >&5
2069
2070 cat >&5 <<_ACEOF
2071
2072
2073 ## ----------- ##
2074 ## Core tests. ##
2075 ## ----------- ##
2076
2077 _ACEOF
2078
2079
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_configure_args=
2086 ac_configure_args0=
2087 ac_configure_args1=
2088 ac_must_keep_next=false
2089 for ac_pass in 1 2
2090 do
2091 for ac_arg
2092 do
2093 case $ac_arg in
2094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096 | -silent | --silent | --silen | --sile | --sil)
2097 continue ;;
2098 *\'*)
2099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 esac
2101 case $ac_pass in
2102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103 2)
2104 as_fn_append ac_configure_args1 " '$ac_arg'"
2105 if test $ac_must_keep_next = true; then
2106 ac_must_keep_next=false # Got value, back to normal.
2107 else
2108 case $ac_arg in
2109 *=* | --config-cache | -C | -disable-* | --disable-* \
2110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112 | -with-* | --with-* | -without-* | --without-* | --x)
2113 case "$ac_configure_args0 " in
2114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115 esac
2116 ;;
2117 -* ) ac_must_keep_next=true ;;
2118 esac
2119 fi
2120 as_fn_append ac_configure_args " '$ac_arg'"
2121 ;;
2122 esac
2123 done
2124 done
2125 { ac_configure_args0=; unset ac_configure_args0;}
2126 { ac_configure_args1=; unset ac_configure_args1;}
2127
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log. We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134 # Save into config.log some information that might help in debugging.
2135 {
2136 echo
2137
2138 $as_echo "## ---------------- ##
2139 ## Cache variables. ##
2140 ## ---------------- ##"
2141 echo
2142 # The following way of writing the cache mishandles newlines in values,
2143 (
2144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in #(
2147 *${as_nl}*)
2148 case $ac_var in #(
2149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151 esac
2152 case $ac_var in #(
2153 _ | IFS | as_nl) ;; #(
2154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2155 *) { eval $ac_var=; unset $ac_var;} ;;
2156 esac ;;
2157 esac
2158 done
2159 (set) 2>&1 |
2160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2161 *${as_nl}ac_space=\ *)
2162 sed -n \
2163 "s/'\''/'\''\\\\'\'''\''/g;
2164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165 ;; #(
2166 *)
2167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 ;;
2169 esac |
2170 sort
2171 )
2172 echo
2173
2174 $as_echo "## ----------------- ##
2175 ## Output variables. ##
2176 ## ----------------- ##"
2177 echo
2178 for ac_var in $ac_subst_vars
2179 do
2180 eval ac_val=\$$ac_var
2181 case $ac_val in
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183 esac
2184 $as_echo "$ac_var='\''$ac_val'\''"
2185 done | sort
2186 echo
2187
2188 if test -n "$ac_subst_files"; then
2189 $as_echo "## ------------------- ##
2190 ## File substitutions. ##
2191 ## ------------------- ##"
2192 echo
2193 for ac_var in $ac_subst_files
2194 do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in
2197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198 esac
2199 $as_echo "$ac_var='\''$ac_val'\''"
2200 done | sort
2201 echo
2202 fi
2203
2204 if test -s confdefs.h; then
2205 $as_echo "## ----------- ##
2206 ## confdefs.h. ##
2207 ## ----------- ##"
2208 echo
2209 cat confdefs.h
2210 echo
2211 fi
2212 test "$ac_signal" != 0 &&
2213 $as_echo "$as_me: caught signal $ac_signal"
2214 $as_echo "$as_me: exit $exit_status"
2215 } >&5
2216 rm -f core *.core core.conftest.* &&
2217 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218 exit $exit_status
2219 ' 0
2220 for ac_signal in 1 2 13 15; do
2221 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222 done
2223 ac_signal=0
2224
2225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2226 rm -f -r conftest* confdefs.h
2227
2228 $as_echo "/* confdefs.h */" > confdefs.h
2229
2230 # Predefined preprocessor variables.
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_NAME "$PACKAGE_NAME"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_STRING "$PACKAGE_STRING"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_URL "$PACKAGE_URL"
2254 _ACEOF
2255
2256
2257 # Let the site file select an alternate cache file if it wants to.
2258 # Prefer an explicitly selected file to automatically selected ones.
2259 ac_site_file1=NONE
2260 ac_site_file2=NONE
2261 if test -n "$CONFIG_SITE"; then
2262 # We do not want a PATH search for config.site.
2263 case $CONFIG_SITE in #((
2264 -*) ac_site_file1=./$CONFIG_SITE;;
2265 */*) ac_site_file1=$CONFIG_SITE;;
2266 *) ac_site_file1=./$CONFIG_SITE;;
2267 esac
2268 elif test "x$prefix" != xNONE; then
2269 ac_site_file1=$prefix/share/config.site
2270 ac_site_file2=$prefix/etc/config.site
2271 else
2272 ac_site_file1=$ac_default_prefix/share/config.site
2273 ac_site_file2=$ac_default_prefix/etc/config.site
2274 fi
2275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276 do
2277 test "x$ac_site_file" = xNONE && continue
2278 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2281 sed 's/^/| /' "$ac_site_file" >&5
2282 . "$ac_site_file" \
2283 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 as_fn_error $? "failed to load site script $ac_site_file
2286 See \`config.log' for more details" "$LINENO" 5; }
2287 fi
2288 done
2289
2290 if test -r "$cache_file"; then
2291 # Some versions of bash will fail to source /dev/null (special files
2292 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2293 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 $as_echo "$as_me: loading cache $cache_file" >&6;}
2296 case $cache_file in
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
2299 esac
2300 fi
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 $as_echo "$as_me: creating cache $cache_file" >&6;}
2304 >$cache_file
2305 fi
2306
2307 # Check that the precious variables saved in the cache have kept the same
2308 # value.
2309 ac_cache_corrupted=false
2310 for ac_var in $ac_precious_vars; do
2311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312 eval ac_new_set=\$ac_env_${ac_var}_set
2313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314 eval ac_new_val=\$ac_env_${ac_var}_value
2315 case $ac_old_set,$ac_new_set in
2316 set,)
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319 ac_cache_corrupted=: ;;
2320 ,set)
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2324 ,);;
2325 *)
2326 if test "x$ac_old_val" != "x$ac_new_val"; then
2327 # differences in whitespace do not lead to failure.
2328 ac_old_val_w=`echo x $ac_old_val`
2329 ac_new_val_w=`echo x $ac_new_val`
2330 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333 ac_cache_corrupted=:
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337 eval $ac_var=\$ac_old_val
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2340 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2342 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2343 fi;;
2344 esac
2345 # Pass precious variables to config.status.
2346 if test "$ac_new_set" = set; then
2347 case $ac_new_val in
2348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 *) ac_arg=$ac_var=$ac_new_val ;;
2350 esac
2351 case " $ac_configure_args " in
2352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354 esac
2355 fi
2356 done
2357 if $ac_cache_corrupted; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 fi
2364 ## -------------------- ##
2365 ## Main body of script. ##
2366 ## -------------------- ##
2367
2368 ac_ext=c
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376
2377 ac_config_headers="$ac_config_headers config.h"
2378
2379
2380 ac_aux_dir=
2381 for ac_dir in . "$srcdir"/.; do
2382 if test -f "$ac_dir/install-sh"; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/install-sh -c"
2385 break
2386 elif test -f "$ac_dir/install.sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install.sh -c"
2389 break
2390 elif test -f "$ac_dir/shtool"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/shtool install -c"
2393 break
2394 fi
2395 done
2396 if test -z "$ac_aux_dir"; then
2397 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2398 fi
2399
2400 # These three variables are undocumented and unsupported,
2401 # and are intended to be withdrawn in a future Autoconf release.
2402 # They can cause serious problems if a builder's source tree is in a directory
2403 # whose full name contains unusual characters.
2404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2406 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2407
2408
2409
2410 # Initialize Automake
2411 am__api_version='1.13'
2412
2413 # Find a good install program. We prefer a C program (faster),
2414 # so one script is as good as another. But avoid the broken or
2415 # incompatible versions:
2416 # SysV /etc/install, /usr/sbin/install
2417 # SunOS /usr/etc/install
2418 # IRIX /sbin/install
2419 # AIX /bin/install
2420 # AmigaOS /C/install, which installs bootblocks on floppy discs
2421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424 # OS/2's system install, which has a completely different semantic
2425 # ./install, which can be erroneously created by make from ./install.sh.
2426 # Reject install programs that cannot install multiple files.
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2429 if test -z "$INSTALL"; then
2430 if ${ac_cv_path_install+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 # Account for people who put trailing slashes in PATH elements.
2439 case $as_dir/ in #((
2440 ./ | .// | /[cC]/* | \
2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2443 /usr/ucb/* ) ;;
2444 *)
2445 # OSF1 and SCO ODT 3.0 have their own names for install.
2446 # Don't use installbsd from OSF since it installs stuff as root
2447 # by default.
2448 for ac_prog in ginstall scoinst install; do
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451 if test $ac_prog = install &&
2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # AIX install. It has an incompatible calling convention.
2454 :
2455 elif test $ac_prog = install &&
2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # program-specific install script used by HP pwplus--don't use.
2458 :
2459 else
2460 rm -rf conftest.one conftest.two conftest.dir
2461 echo one > conftest.one
2462 echo two > conftest.two
2463 mkdir conftest.dir
2464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465 test -s conftest.one && test -s conftest.two &&
2466 test -s conftest.dir/conftest.one &&
2467 test -s conftest.dir/conftest.two
2468 then
2469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470 break 3
2471 fi
2472 fi
2473 fi
2474 done
2475 done
2476 ;;
2477 esac
2478
2479 done
2480 IFS=$as_save_IFS
2481
2482 rm -rf conftest.one conftest.two conftest.dir
2483
2484 fi
2485 if test "${ac_cv_path_install+set}" = set; then
2486 INSTALL=$ac_cv_path_install
2487 else
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 INSTALL=$ac_install_sh
2493 fi
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496 $as_echo "$INSTALL" >&6; }
2497
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507 $as_echo_n "checking whether build environment is sane... " >&6; }
2508 # Reject unsafe characters in $srcdir or the absolute working directory
2509 # name. Accept space and tab only in the latter.
2510 am_lf='
2511 '
2512 case `pwd` in
2513 *[\\\"\#\$\&\'\`$am_lf]*)
2514 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2515 esac
2516 case $srcdir in
2517 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2518 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2519 esac
2520
2521 # Do 'set' in a subshell so we don't clobber the current shell's
2522 # arguments. Must try -L first in case configure is actually a
2523 # symlink; some systems play weird games with the mod time of symlinks
2524 # (eg FreeBSD returns the mod time of the symlink's containing
2525 # directory).
2526 if (
2527 am_has_slept=no
2528 for am_try in 1 2; do
2529 echo "timestamp, slept: $am_has_slept" > conftest.file
2530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531 if test "$*" = "X"; then
2532 # -L didn't work.
2533 set X `ls -t "$srcdir/configure" conftest.file`
2534 fi
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544 fi
2545 if test "$2" = conftest.file || test $am_try -eq 2; then
2546 break
2547 fi
2548 # Just in case.
2549 sleep 1
2550 am_has_slept=yes
2551 done
2552 test "$2" = conftest.file
2553 )
2554 then
2555 # Ok.
2556 :
2557 else
2558 as_fn_error $? "newly created file is older than distributed files!
2559 Check your system clock" "$LINENO" 5
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562 $as_echo "yes" >&6; }
2563 # If we didn't sleep, we still need to ensure time stamps of config.status and
2564 # generated files are strictly newer.
2565 am_sleep_pid=
2566 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2567 ( sleep 1 ) &
2568 am_sleep_pid=$!
2569 fi
2570
2571 rm -f conftest.file
2572
2573 test "$program_prefix" != NONE &&
2574 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2575 # Use a double $ so make ignores it.
2576 test "$program_suffix" != NONE &&
2577 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2578 # Double any \ or $.
2579 # By default was `s,x,x', remove it if useless.
2580 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2581 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2582
2583 # expand $ac_aux_dir to an absolute path
2584 am_aux_dir=`cd $ac_aux_dir && pwd`
2585
2586 if test x"${MISSING+set}" != xset; then
2587 case $am_aux_dir in
2588 *\ * | *\ *)
2589 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2590 *)
2591 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2592 esac
2593 fi
2594 # Use eval to expand $SHELL
2595 if eval "$MISSING --is-lightweight"; then
2596 am_missing_run="$MISSING "
2597 else
2598 am_missing_run=
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2600 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2601 fi
2602
2603 if test x"${install_sh}" != xset; then
2604 case $am_aux_dir in
2605 *\ * | *\ *)
2606 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2607 *)
2608 install_sh="\${SHELL} $am_aux_dir/install-sh"
2609 esac
2610 fi
2611
2612 # Installed binaries are usually stripped using 'strip' when the user
2613 # run "make install-strip". However 'strip' might not be the right
2614 # tool to use in cross-compilation environments, therefore Automake
2615 # will honor the 'STRIP' environment variable to overrule this program.
2616 if test "$cross_compiling" != no; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}strip; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_STRIP+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$STRIP"; then
2626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 STRIP=$ac_cv_prog_STRIP
2646 if test -n "$STRIP"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2648 $as_echo "$STRIP" >&6; }
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655 fi
2656 if test -z "$ac_cv_prog_STRIP"; then
2657 ac_ct_STRIP=$STRIP
2658 # Extract the first word of "strip", so it can be a program name with args.
2659 set dummy strip; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test -n "$ac_ct_STRIP"; then
2666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_STRIP="strip"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2686 if test -n "$ac_ct_STRIP"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2688 $as_echo "$ac_ct_STRIP" >&6; }
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694 if test "x$ac_ct_STRIP" = x; then
2695 STRIP=":"
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698 yes:)
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701 ac_tool_warned=yes ;;
2702 esac
2703 STRIP=$ac_ct_STRIP
2704 fi
2705 else
2706 STRIP="$ac_cv_prog_STRIP"
2707 fi
2708
2709 fi
2710 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2711
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2713 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2714 if test -z "$MKDIR_P"; then
2715 if ${ac_cv_path_mkdir+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_prog in mkdir gmkdir; do
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2726 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2727 'mkdir (GNU coreutils) '* | \
2728 'mkdir (coreutils) '* | \
2729 'mkdir (fileutils) '4.1*)
2730 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2731 break 3;;
2732 esac
2733 done
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739
2740 test -d ./--version && rmdir ./--version
2741 if test "${ac_cv_path_mkdir+set}" = set; then
2742 MKDIR_P="$ac_cv_path_mkdir -p"
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for MKDIR_P within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 MKDIR_P="$ac_install_sh -d"
2749 fi
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2752 $as_echo "$MKDIR_P" >&6; }
2753
2754 for ac_prog in gawk mawk nawk awk
2755 do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_AWK+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_AWK="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 AWK=$ac_cv_prog_AWK
2784 if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786 $as_echo "$AWK" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 test -n "$AWK" && break
2794 done
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798 set x ${MAKE-make}
2799 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 cat >conftest.make <<\_ACEOF
2804 SHELL = /bin/sh
2805 all:
2806 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807 _ACEOF
2808 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 *@@@%%%=?*=@@@%%%*)
2811 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 *)
2813 eval ac_cv_prog_make_${ac_make}_set=no;;
2814 esac
2815 rm -f conftest.make
2816 fi
2817 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819 $as_echo "yes" >&6; }
2820 SET_MAKE=
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 SET_MAKE="MAKE=${MAKE-make}"
2825 fi
2826
2827 rm -rf .tst 2>/dev/null
2828 mkdir .tst 2>/dev/null
2829 if test -d .tst; then
2830 am__leading_dot=.
2831 else
2832 am__leading_dot=_
2833 fi
2834 rmdir .tst 2>/dev/null
2835
2836 # Check whether --enable-silent-rules was given.
2837 if test "${enable_silent_rules+set}" = set; then :
2838 enableval=$enable_silent_rules;
2839 fi
2840
2841 case $enable_silent_rules in # (((
2842 yes) AM_DEFAULT_VERBOSITY=0;;
2843 no) AM_DEFAULT_VERBOSITY=1;;
2844 *) AM_DEFAULT_VERBOSITY=1;;
2845 esac
2846 am_make=${MAKE-make}
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2848 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2849 if ${am_cv_make_support_nested_variables+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if $as_echo 'TRUE=$(BAR$(V))
2853 BAR0=false
2854 BAR1=true
2855 V=1
2856 am__doit:
2857 @$(TRUE)
2858 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2859 am_cv_make_support_nested_variables=yes
2860 else
2861 am_cv_make_support_nested_variables=no
2862 fi
2863 fi
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2865 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2866 if test $am_cv_make_support_nested_variables = yes; then
2867 AM_V='$(V)'
2868 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2869 else
2870 AM_V=$AM_DEFAULT_VERBOSITY
2871 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2872 fi
2873 AM_BACKSLASH='\'
2874
2875 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2877 # is not polluted with repeated "-I."
2878 am__isrc=' -I$(srcdir)'
2879 # test to see if srcdir already configured
2880 if test -f $srcdir/config.status; then
2881 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2882 fi
2883 fi
2884
2885 # test whether we have cygpath
2886 if test -z "$CYGPATH_W"; then
2887 if (cygpath --version) >/dev/null 2>/dev/null; then
2888 CYGPATH_W='cygpath -w'
2889 else
2890 CYGPATH_W=echo
2891 fi
2892 fi
2893
2894
2895 # Define the identity of the package.
2896 PACKAGE='xf86-video-ati'
2897 VERSION='7.5.0'
2898
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE "$PACKAGE"
2902 _ACEOF
2903
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define VERSION "$VERSION"
2907 _ACEOF
2908
2909 # Some tools Automake needs.
2910
2911 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2912
2913
2914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2915
2916
2917 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2918
2919
2920 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2921
2922
2923 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2924
2925 # For better backward compatibility. To be removed once Automake 1.9.x
2926 # dies out for good. For more background, see:
2927 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2928 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2929 mkdir_p='$(MKDIR_P)'
2930
2931 # We need awk for the "check" target. The system "awk" is bad on
2932 # some platforms.
2933 # Always define AMTAR for backward compatibility. Yes, it's still used
2934 # in the wild :-( We should find a proper way to deprecate it ...
2935 AMTAR='$${TAR-tar}'
2936
2937
2938 # We'll loop over all known methods to create a tar archive until one works.
2939 _am_tools='gnutar pax cpio none'
2940
2941 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2942
2943
2944
2945
2946
2947
2948 DEPDIR="${am__leading_dot}deps"
2949
2950 ac_config_commands="$ac_config_commands depfiles"
2951
2952
2953 am_make=${MAKE-make}
2954 cat > confinc << 'END'
2955 am__doit:
2956 @echo this is the am__doit target
2957 .PHONY: am__doit
2958 END
2959 # If we don't find an include directive, just comment out the code.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2961 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2962 am__include="#"
2963 am__quote=
2964 _am_result=none
2965 # First try GNU make style include.
2966 echo "include confinc" > confmf
2967 # Ignore all kinds of additional output from 'make'.
2968 case `$am_make -s -f confmf 2> /dev/null` in #(
2969 *the\ am__doit\ target*)
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2973 ;;
2974 esac
2975 # Now try BSD make style include.
2976 if test "$am__include" = "#"; then
2977 echo '.include "confinc"' > confmf
2978 case `$am_make -s -f confmf 2> /dev/null` in #(
2979 *the\ am__doit\ target*)
2980 am__include=.include
2981 am__quote="\""
2982 _am_result=BSD
2983 ;;
2984 esac
2985 fi
2986
2987
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2989 $as_echo "$_am_result" >&6; }
2990 rm -f confinc confmf
2991
2992 # Check whether --enable-dependency-tracking was given.
2993 if test "${enable_dependency_tracking+set}" = set; then :
2994 enableval=$enable_dependency_tracking;
2995 fi
2996
2997 if test "x$enable_dependency_tracking" != xno; then
2998 am_depcomp="$ac_aux_dir/depcomp"
2999 AMDEPBACKSLASH='\'
3000 am__nodep='_no'
3001 fi
3002 if test "x$enable_dependency_tracking" != xno; then
3003 AMDEP_TRUE=
3004 AMDEP_FALSE='#'
3005 else
3006 AMDEP_TRUE='#'
3007 AMDEP_FALSE=
3008 fi
3009
3010
3011 ac_ext=c
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 fi
3055 if test -z "$ac_cv_prog_CC"; then
3056 ac_ct_CC=$CC
3057 # Extract the first word of "gcc", so it can be a program name with args.
3058 set dummy gcc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$ac_ct_CC"; then
3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_ac_ct_CC="gcc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078 done
3079 done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 $as_echo "$ac_ct_CC" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093 if test "x$ac_ct_CC" = x; then
3094 CC=""
3095 else
3096 case $cross_compiling:$ac_tool_warned in
3097 yes:)
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102 CC=$ac_ct_CC
3103 fi
3104 else
3105 CC="$ac_cv_prog_CC"
3106 fi
3107
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}cc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_CC="${ac_tool_prefix}cc"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 fi
3149 if test -z "$CC"; then
3150 # Extract the first word of "cc", so it can be a program name with args.
3151 set dummy cc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 ac_prog_rejected=no
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3169 ac_prog_rejected=yes
3170 continue
3171 fi
3172 ac_cv_prog_CC="cc"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 if test $ac_prog_rejected = yes; then
3181 # We found a bogon in the path, so make sure we never use it.
3182 set dummy $ac_cv_prog_CC
3183 shift
3184 if test $# != 0; then
3185 # We chose a different compiler from the bogus one.
3186 # However, it has the same basename, so the bogon will be chosen
3187 # first if we set CC to just the basename; use the full file name.
3188 shift
3189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3190 fi
3191 fi
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 fi
3205 if test -z "$CC"; then
3206 if test -n "$ac_tool_prefix"; then
3207 for ac_prog in cl.exe
3208 do
3209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 test -n "$CC" && break
3247 done
3248 fi
3249 if test -z "$CC"; then
3250 ac_ct_CC=$CC
3251 for ac_prog in cl.exe
3252 do
3253 # Extract the first word of "$ac_prog", so it can be a program name with args.
3254 set dummy $ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_ac_ct_CC="$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283 $as_echo "$ac_ct_CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 test -n "$ac_ct_CC" && break
3291 done
3292
3293 if test "x$ac_ct_CC" = x; then
3294 CC=""
3295 else
3296 case $cross_compiling:$ac_tool_warned in
3297 yes:)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3301 esac
3302 CC=$ac_ct_CC
3303 fi
3304 fi
3305
3306 fi
3307
3308
3309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "no acceptable C compiler found in \$PATH
3312 See \`config.log' for more details" "$LINENO" 5; }
3313
3314 # Provide some information about the compiler.
3315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3316 set X $ac_compile
3317 ac_compiler=$2
3318 for ac_option in --version -v -V -qversion; do
3319 { { ac_try="$ac_compiler $ac_option >&5"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3327 ac_status=$?
3328 if test -s conftest.err; then
3329 sed '10a\
3330 ... rest of stderr output deleted ...
3331 10q' conftest.err >conftest.er1
3332 cat conftest.er1 >&5
3333 fi
3334 rm -f conftest.er1 conftest.err
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337 done
3338
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 ac_clean_files_save=$ac_clean_files
3351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3352 # Try to create an executable without -o first, disregard a.out.
3353 # It will help us diagnose broken compilers, and finding out an intuition
3354 # of exeext.
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3356 $as_echo_n "checking whether the C compiler works... " >&6; }
3357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358
3359 # The possible output files:
3360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3361
3362 ac_rmfiles=
3363 for ac_file in $ac_files
3364 do
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368 esac
3369 done
3370 rm -f $ac_rmfiles
3371
3372 if { { ac_try="$ac_link_default"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link_default") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3386 # so that the user can short-circuit this test for compilers unknown to
3387 # Autoconf.
3388 for ac_file in $ac_files ''
3389 do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3393 ;;
3394 [ab].out )
3395 # We found the default executable, but exeext='' is most
3396 # certainly right.
3397 break;;
3398 *.* )
3399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400 then :; else
3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 fi
3403 # We set ac_cv_exeext here because the later test for it is not
3404 # safe: cross compilers may not add the suffix if given an `-o'
3405 # argument, so we may need to know it at that point already.
3406 # Even if this section looks crufty: it has the advantage of
3407 # actually working.
3408 break;;
3409 * )
3410 break;;
3411 esac
3412 done
3413 test "$ac_cv_exeext" = no && ac_cv_exeext=
3414
3415 else
3416 ac_file=''
3417 fi
3418 if test -z "$ac_file"; then :
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error 77 "C compiler cannot create executables
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3433 $as_echo_n "checking for C compiler default output file name... " >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3435 $as_echo "$ac_file" >&6; }
3436 ac_exeext=$ac_cv_exeext
3437
3438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3439 ac_clean_files=$ac_clean_files_save
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3441 $as_echo_n "checking for suffix of executables... " >&6; }
3442 if { { ac_try="$ac_link"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3455 # work properly (i.e., refer to `conftest.exe'), while it won't with
3456 # `rm'.
3457 for ac_file in conftest.exe conftest conftest.*; do
3458 test -f "$ac_file" || continue
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462 break;;
3463 * ) break;;
3464 esac
3465 done
3466 else
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details" "$LINENO" 5; }
3471 fi
3472 rm -f conftest conftest$ac_cv_exeext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3475
3476 rm -f conftest.$ac_ext
3477 EXEEXT=$ac_cv_exeext
3478 ac_exeext=$EXEEXT
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #include <stdio.h>
3482 int
3483 main ()
3484 {
3485 FILE *f = fopen ("conftest.out", "w");
3486 return ferror (f) || fclose (f) != 0;
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 ac_clean_files="$ac_clean_files conftest.out"
3493 # Check that the compiler produces executables we can run. If not, either
3494 # the compiler is broken, or we cross compile.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3496 $as_echo_n "checking whether we are cross compiling... " >&6; }
3497 if test "$cross_compiling" != yes; then
3498 { { ac_try="$ac_link"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_link") 2>&5
3506 ac_status=$?
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }
3509 if { ac_try='./conftest$ac_cv_exeext'
3510 { { case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_try") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; }; then
3520 cross_compiling=no
3521 else
3522 if test "$cross_compiling" = maybe; then
3523 cross_compiling=yes
3524 else
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot run C compiled programs.
3528 If you meant to cross compile, use \`--host'.
3529 See \`config.log' for more details" "$LINENO" 5; }
3530 fi
3531 fi
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3534 $as_echo "$cross_compiling" >&6; }
3535
3536 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3537 ac_clean_files=$ac_clean_files_save
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3539 $as_echo_n "checking for suffix of object files... " >&6; }
3540 if ${ac_cv_objext+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.o conftest.obj
3555 if { { ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_compile") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 for ac_file in conftest.o conftest.obj conftest.*; do
3567 test -f "$ac_file" || continue;
3568 case $ac_file in
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3571 break;;
3572 esac
3573 done
3574 else
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3586 $as_echo "$ac_cv_objext" >&6; }
3587 OBJEXT=$ac_cv_objext
3588 ac_objext=$OBJEXT
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3591 if ${ac_cv_c_compiler_gnu+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600 #ifndef __GNUC__
3601 choke me
3602 #endif
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609 ac_compiler_gnu=yes
3610 else
3611 ac_compiler_gnu=no
3612 fi
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3615
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3619 if test $ac_compiler_gnu = yes; then
3620 GCC=yes
3621 else
3622 GCC=
3623 fi
3624 ac_test_CFLAGS=${CFLAGS+set}
3625 ac_save_CFLAGS=$CFLAGS
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3628 if ${ac_cv_prog_cc_g+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 ac_save_c_werror_flag=$ac_c_werror_flag
3632 ac_c_werror_flag=yes
3633 ac_cv_prog_cc_g=no
3634 CFLAGS="-g"
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641
3642 ;
3643 return 0;
3644 }
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_cv_prog_cc_g=yes
3648 else
3649 CFLAGS=""
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662
3663 else
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3665 CFLAGS="-g"
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_g=yes
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3688 $as_echo "$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3693 CFLAGS="-g -O2"
3694 else
3695 CFLAGS="-g"
3696 fi
3697 else
3698 if test "$GCC" = yes; then
3699 CFLAGS="-O2"
3700 else
3701 CFLAGS=
3702 fi
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3706 if ${ac_cv_prog_cc_c89+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 #include <stdarg.h>
3714 #include <stdio.h>
3715 struct stat;
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3720 char **p;
3721 int i;
3722 {
3723 return p[i];
3724 }
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3726 {
3727 char *s;
3728 va_list v;
3729 va_start (v,p);
3730 s = g (p, va_arg (v,int));
3731 va_end (v);
3732 return s;
3733 }
3734
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3736 function prototypes and stuff, but not '\xHH' hex character constants.
3737 These don't provoke an error unfortunately, instead are silently treated
3738 as 'x'. The following induces an error, until -std is added to get
3739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3740 array size at least. It's necessary to write '\x00'==0 to get something
3741 that's true only with -std. */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745 inside strings and character constants. */
3746 #define FOO(x) 'x'
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3753 int argc;
3754 char **argv;
3755 int
3756 main ()
3757 {
3758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 do
3766 CC="$ac_save_CC $ac_arg"
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_c89=$ac_arg
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext
3771 test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 done
3773 rm -f conftest.$ac_ext
3774 CC=$ac_save_CC
3775
3776 fi
3777 # AC_CACHE_VAL
3778 case "x$ac_cv_prog_cc_c89" in
3779 x)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3781 $as_echo "none needed" >&6; } ;;
3782 xno)
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 $as_echo "unsupported" >&6; } ;;
3785 *)
3786 CC="$CC $ac_cv_prog_cc_c89"
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789 esac
3790 if test "x$ac_cv_prog_cc_c89" != xno; then :
3791
3792 fi
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799
3800 depcc="$CC" am_compiler_list=
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3803 $as_echo_n "checking dependency style of $depcc... " >&6; }
3804 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3808 # We make a subdir and do the tests there. Otherwise we can end up
3809 # making bogus files that we don't know about and never remove. For
3810 # instance it was reported that on HP-UX the gcc test will end up
3811 # making a dummy file named 'D' -- because '-MD' means "put the output
3812 # in D".
3813 rm -rf conftest.dir
3814 mkdir conftest.dir
3815 # Copy depcomp to subdir because otherwise we won't find it if we're
3816 # using a relative directory.
3817 cp "$am_depcomp" conftest.dir
3818 cd conftest.dir
3819 # We will build objects and dependencies in a subdirectory because
3820 # it helps to detect inapplicable dependency modes. For instance
3821 # both Tru64's cc and ICC support -MD to output dependencies as a
3822 # side effect of compilation, but ICC will put the dependencies in
3823 # the current directory while Tru64 will put them in the object
3824 # directory.
3825 mkdir sub
3826
3827 am_cv_CC_dependencies_compiler_type=none
3828 if test "$am_compiler_list" = ""; then
3829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3830 fi
3831 am__universal=false
3832 case " $depcc " in #(
3833 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3834 esac
3835
3836 for depmode in $am_compiler_list; do
3837 # Setup a source with many dependencies, because some compilers
3838 # like to wrap large dependency lists on column 80 (with \), and
3839 # we should not choose a depcomp mode which is confused by this.
3840 #
3841 # We need to recreate these files for each test, as the compiler may
3842 # overwrite some of them when testing with obscure command lines.
3843 # This happens at least with the AIX C compiler.
3844 : > sub/conftest.c
3845 for i in 1 2 3 4 5 6; do
3846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3847 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3848 # Solaris 10 /bin/sh.
3849 echo '/* dummy */' > sub/conftst$i.h
3850 done
3851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3852
3853 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3854 # mode. It turns out that the SunPro C++ compiler does not properly
3855 # handle '-M -o', and we need to detect this. Also, some Intel
3856 # versions had trouble with output in subdirs.
3857 am__obj=sub/conftest.${OBJEXT-o}
3858 am__minus_obj="-o $am__obj"
3859 case $depmode in
3860 gcc)
3861 # This depmode causes a compiler race in universal mode.
3862 test "$am__universal" = false || continue
3863 ;;
3864 nosideeffect)
3865 # After this tag, mechanisms are not by side-effect, so they'll
3866 # only be used when explicitly requested.
3867 if test "x$enable_dependency_tracking" = xyes; then
3868 continue
3869 else
3870 break
3871 fi
3872 ;;
3873 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3874 # This compiler won't grok '-c -o', but also, the minuso test has
3875 # not run yet. These depmodes are late enough in the game, and
3876 # so weak that their functioning should not be impacted.
3877 am__obj=conftest.${OBJEXT-o}
3878 am__minus_obj=
3879 ;;
3880 none) break ;;
3881 esac
3882 if depmode=$depmode \
3883 source=sub/conftest.c object=$am__obj \
3884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3886 >/dev/null 2>conftest.err &&
3887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3891 # icc doesn't choke on unknown options, it will just issue warnings
3892 # or remarks (even with -Werror). So we grep stderr for any message
3893 # that says an option was ignored or not supported.
3894 # When given -MP, icc 7.0 and 7.1 complain thusly:
3895 # icc: Command line warning: ignoring option '-M'; no argument required
3896 # The diagnosis changed in icc 8.0:
3897 # icc: Command line remark: option '-MP' not supported
3898 if (grep 'ignoring option' conftest.err ||
3899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3900 am_cv_CC_dependencies_compiler_type=$depmode
3901 break
3902 fi
3903 fi
3904 done
3905
3906 cd ..
3907 rm -rf conftest.dir
3908 else
3909 am_cv_CC_dependencies_compiler_type=none
3910 fi
3911
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3914 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3915 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3916
3917 if
3918 test "x$enable_dependency_tracking" != xno \
3919 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3920 am__fastdepCC_TRUE=
3921 am__fastdepCC_FALSE='#'
3922 else
3923 am__fastdepCC_TRUE='#'
3924 am__fastdepCC_FALSE=
3925 fi
3926
3927
3928
3929 # Check whether --enable-largefile was given.
3930 if test "${enable_largefile+set}" = set; then :
3931 enableval=$enable_largefile;
3932 fi
3933
3934 if test "$enable_largefile" != no; then
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3937 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3938 if ${ac_cv_sys_largefile_CC+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 ac_cv_sys_largefile_CC=no
3942 if test "$GCC" != yes; then
3943 ac_save_CC=$CC
3944 while :; do
3945 # IRIX 6.2 and later do not support large files by default,
3946 # so use the C compiler's -n32 option if that helps.
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 /* Check that off_t can represent 2**63 - 1 correctly.
3951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952 since some C++ compilers masquerading as C compilers
3953 incorrectly reject 9223372036854775807. */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956 && LARGE_OFF_T % 2147483647 == 1)
3957 ? 1 : -1];
3958 int
3959 main ()
3960 {
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 break
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext
3970 CC="$CC -n32"
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_cv_sys_largefile_CC=' -n32'; break
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext
3975 break
3976 done
3977 CC=$ac_save_CC
3978 rm -f conftest.$ac_ext
3979 fi
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3982 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3983 if test "$ac_cv_sys_largefile_CC" != no; then
3984 CC=$CC$ac_cv_sys_largefile_CC
3985 fi
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3988 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3989 if ${ac_cv_sys_file_offset_bits+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 while :; do
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <sys/types.h>
3996 /* Check that off_t can represent 2**63 - 1 correctly.
3997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3998 since some C++ compilers masquerading as C compilers
3999 incorrectly reject 9223372036854775807. */
4000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4002 && LARGE_OFF_T % 2147483647 == 1)
4003 ? 1 : -1];
4004 int
4005 main ()
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_cv_sys_file_offset_bits=no; break
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #define _FILE_OFFSET_BITS 64
4019 #include <sys/types.h>
4020 /* Check that off_t can represent 2**63 - 1 correctly.
4021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4022 since some C++ compilers masquerading as C compilers
4023 incorrectly reject 9223372036854775807. */
4024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4026 && LARGE_OFF_T % 2147483647 == 1)
4027 ? 1 : -1];
4028 int
4029 main ()
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_sys_file_offset_bits=64; break
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 ac_cv_sys_file_offset_bits=unknown
4041 break
4042 done
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4045 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4046 case $ac_cv_sys_file_offset_bits in #(
4047 no | unknown) ;;
4048 *)
4049 cat >>confdefs.h <<_ACEOF
4050 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4051 _ACEOF
4052 ;;
4053 esac
4054 rm -rf conftest*
4055 if test $ac_cv_sys_file_offset_bits = unknown; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4057 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4058 if ${ac_cv_sys_large_files+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 while :; do
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #include <sys/types.h>
4065 /* Check that off_t can represent 2**63 - 1 correctly.
4066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4067 since some C++ compilers masquerading as C compilers
4068 incorrectly reject 9223372036854775807. */
4069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4071 && LARGE_OFF_T % 2147483647 == 1)
4072 ? 1 : -1];
4073 int
4074 main ()
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_cv_sys_large_files=no; break
4083 fi
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #define _LARGE_FILES 1
4088 #include <sys/types.h>
4089 /* Check that off_t can represent 2**63 - 1 correctly.
4090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4091 since some C++ compilers masquerading as C compilers
4092 incorrectly reject 9223372036854775807. */
4093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4095 && LARGE_OFF_T % 2147483647 == 1)
4096 ? 1 : -1];
4097 int
4098 main ()
4099 {
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_sys_large_files=1; break
4107 fi
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_cv_sys_large_files=unknown
4110 break
4111 done
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4114 $as_echo "$ac_cv_sys_large_files" >&6; }
4115 case $ac_cv_sys_large_files in #(
4116 no | unknown) ;;
4117 *)
4118 cat >>confdefs.h <<_ACEOF
4119 #define _LARGE_FILES $ac_cv_sys_large_files
4120 _ACEOF
4121 ;;
4122 esac
4123 rm -rf conftest*
4124 fi
4125
4126
4127 fi
4128
4129
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4132 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4133 # Check whether --enable-maintainer-mode was given.
4134 if test "${enable_maintainer_mode+set}" = set; then :
4135 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4136 else
4137 USE_MAINTAINER_MODE=no
4138 fi
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4141 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4142 if test $USE_MAINTAINER_MODE = yes; then
4143 MAINTAINER_MODE_TRUE=
4144 MAINTAINER_MODE_FALSE='#'
4145 else
4146 MAINTAINER_MODE_TRUE='#'
4147 MAINTAINER_MODE_FALSE=
4148 fi
4149
4150 MAINT=$MAINTAINER_MODE_TRUE
4151
4152
4153
4154 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4167 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4168 if ${ac_cv_prog_cc_c99+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 ac_cv_prog_cc_c99=no
4172 ac_save_CC=$CC
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <stdarg.h>
4176 #include <stdbool.h>
4177 #include <stdlib.h>
4178 #include <wchar.h>
4179 #include <stdio.h>
4180
4181 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4182 #define debug(...) fprintf (stderr, __VA_ARGS__)
4183 #define showlist(...) puts (#__VA_ARGS__)
4184 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4185 static void
4186 test_varargs_macros (void)
4187 {
4188 int x = 1234;
4189 int y = 5678;
4190 debug ("Flag");
4191 debug ("X = %d\n", x);
4192 showlist (The first, second, and third items.);
4193 report (x>y, "x is %d but y is %d", x, y);
4194 }
4195
4196 // Check long long types.
4197 #define BIG64 18446744073709551615ull
4198 #define BIG32 4294967295ul
4199 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4200 #if !BIG_OK
4201 your preprocessor is broken;
4202 #endif
4203 #if BIG_OK
4204 #else
4205 your preprocessor is broken;
4206 #endif
4207 static long long int bignum = -9223372036854775807LL;
4208 static unsigned long long int ubignum = BIG64;
4209
4210 struct incomplete_array
4211 {
4212 int datasize;
4213 double data[];
4214 };
4215
4216 struct named_init {
4217 int number;
4218 const wchar_t *name;
4219 double average;
4220 };
4221
4222 typedef const char *ccp;
4223
4224 static inline int
4225 test_restrict (ccp restrict text)
4226 {
4227 // See if C++-style comments work.
4228 // Iterate through items via the restricted pointer.
4229 // Also check for declarations in for loops.
4230 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4231 continue;
4232 return 0;
4233 }
4234
4235 // Check varargs and va_copy.
4236 static void
4237 test_varargs (const char *format, ...)
4238 {
4239 va_list args;
4240 va_start (args, format);
4241 va_list args_copy;
4242 va_copy (args_copy, args);
4243
4244 const char *str;
4245 int number;
4246 float fnumber;
4247
4248 while (*format)
4249 {
4250 switch (*format++)
4251 {
4252 case 's': // string
4253 str = va_arg (args_copy, const char *);
4254 break;
4255 case 'd': // int
4256 number = va_arg (args_copy, int);
4257 break;
4258 case 'f': // float
4259 fnumber = va_arg (args_copy, double);
4260 break;
4261 default:
4262 break;
4263 }
4264 }
4265 va_end (args_copy);
4266 va_end (args);
4267 }
4268
4269 int
4270 main ()
4271 {
4272
4273 // Check bool.
4274 _Bool success = false;
4275
4276 // Check restrict.
4277 if (test_restrict ("String literal") == 0)
4278 success = true;
4279 char *restrict newvar = "Another string";
4280
4281 // Check varargs.
4282 test_varargs ("s, d' f .", "string", 65, 34.234);
4283 test_varargs_macros ();
4284
4285 // Check flexible array members.
4286 struct incomplete_array *ia =
4287 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4288 ia->datasize = 10;
4289 for (int i = 0; i < ia->datasize; ++i)
4290 ia->data[i] = i * 1.234;
4291
4292 // Check named initializers.
4293 struct named_init ni = {
4294 .number = 34,
4295 .name = L"Test wide string",
4296 .average = 543.34343,
4297 };
4298
4299 ni.number = 58;
4300
4301 int dynamic_array[ni.number];
4302 dynamic_array[ni.number - 1] = 543;
4303
4304 // work around unused variable warnings
4305 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4306 || dynamic_array[ni.number - 1] != 543);
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4313 do
4314 CC="$ac_save_CC $ac_arg"
4315 if ac_fn_c_try_compile "$LINENO"; then :
4316 ac_cv_prog_cc_c99=$ac_arg
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext
4319 test "x$ac_cv_prog_cc_c99" != "xno" && break
4320 done
4321 rm -f conftest.$ac_ext
4322 CC=$ac_save_CC
4323
4324 fi
4325 # AC_CACHE_VAL
4326 case "x$ac_cv_prog_cc_c99" in
4327 x)
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4329 $as_echo "none needed" >&6; } ;;
4330 xno)
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4332 $as_echo "unsupported" >&6; } ;;
4333 *)
4334 CC="$CC $ac_cv_prog_cc_c99"
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4336 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4337 esac
4338 if test "x$ac_cv_prog_cc_c99" != xno; then :
4339
4340 fi
4341
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4349 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4350 # On Suns, sometimes $CPP names a directory.
4351 if test -n "$CPP" && test -d "$CPP"; then
4352 CPP=
4353 fi
4354 if test -z "$CPP"; then
4355 if ${ac_cv_prog_CPP+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 # Double quotes because CPP needs to be expanded
4359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4360 do
4361 ac_preproc_ok=false
4362 for ac_c_preproc_warn_flag in '' yes
4363 do
4364 # Use a header file that comes with gcc, so configuring glibc
4365 # with a fresh cross-compiler works.
4366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367 # <limits.h> exists even on freestanding compilers.
4368 # On the NeXT, cc -E runs the code through the compiler's parser,
4369 # not just through cpp. "Syntax error" is here to catch this case.
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377 Syntax error
4378 _ACEOF
4379 if ac_fn_c_try_cpp "$LINENO"; then :
4380
4381 else
4382 # Broken: fails on valid input.
4383 continue
4384 fi
4385 rm -f conftest.err conftest.i conftest.$ac_ext
4386
4387 # OK, works on sane cases. Now check whether nonexistent headers
4388 # can be detected and how.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <ac_nonexistent.h>
4392 _ACEOF
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4394 # Broken: success on invalid input.
4395 continue
4396 else
4397 # Passes both tests.
4398 ac_preproc_ok=:
4399 break
4400 fi
4401 rm -f conftest.err conftest.i conftest.$ac_ext
4402
4403 done
4404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4405 rm -f conftest.i conftest.err conftest.$ac_ext
4406 if $ac_preproc_ok; then :
4407 break
4408 fi
4409
4410 done
4411 ac_cv_prog_CPP=$CPP
4412
4413 fi
4414 CPP=$ac_cv_prog_CPP
4415 else
4416 ac_cv_prog_CPP=$CPP
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4419 $as_echo "$CPP" >&6; }
4420 ac_preproc_ok=false
4421 for ac_c_preproc_warn_flag in '' yes
4422 do
4423 # Use a header file that comes with gcc, so configuring glibc
4424 # with a fresh cross-compiler works.
4425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426 # <limits.h> exists even on freestanding compilers.
4427 # On the NeXT, cc -E runs the code through the compiler's parser,
4428 # not just through cpp. "Syntax error" is here to catch this case.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #ifdef __STDC__
4432 # include <limits.h>
4433 #else
4434 # include <assert.h>
4435 #endif
4436 Syntax error
4437 _ACEOF
4438 if ac_fn_c_try_cpp "$LINENO"; then :
4439
4440 else
4441 # Broken: fails on valid input.
4442 continue
4443 fi
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4445
4446 # OK, works on sane cases. Now check whether nonexistent headers
4447 # can be detected and how.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4451 _ACEOF
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4453 # Broken: success on invalid input.
4454 continue
4455 else
4456 # Passes both tests.
4457 ac_preproc_ok=:
4458 break
4459 fi
4460 rm -f conftest.err conftest.i conftest.$ac_ext
4461
4462 done
4463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4464 rm -f conftest.i conftest.err conftest.$ac_ext
4465 if $ac_preproc_ok; then :
4466
4467 else
4468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4470 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4471 See \`config.log' for more details" "$LINENO" 5; }
4472 fi
4473
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4482 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4483 if ${ac_cv_path_GREP+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 if test -z "$GREP"; then
4487 ac_path_GREP_found=false
4488 # Loop through the user's path and test for each of PROGNAME-LIST
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_prog in grep ggrep; do
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4497 as_fn_executable_p "$ac_path_GREP" || continue
4498 # Check for GNU ac_path_GREP and select it if it is found.
4499 # Check for GNU $ac_path_GREP
4500 case `"$ac_path_GREP" --version 2>&1` in
4501 *GNU*)
4502 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4503 *)
4504 ac_count=0
4505 $as_echo_n 0123456789 >"conftest.in"
4506 while :
4507 do
4508 cat "conftest.in" "conftest.in" >"conftest.tmp"
4509 mv "conftest.tmp" "conftest.in"
4510 cp "conftest.in" "conftest.nl"
4511 $as_echo 'GREP' >> "conftest.nl"
4512 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514 as_fn_arith $ac_count + 1 && ac_count=$as_val
4515 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4516 # Best one so far, save it but keep looking for a better one
4517 ac_cv_path_GREP="$ac_path_GREP"
4518 ac_path_GREP_max=$ac_count
4519 fi
4520 # 10*(2^10) chars as input seems more than enough
4521 test $ac_count -gt 10 && break
4522 done
4523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526 $ac_path_GREP_found && break 3
4527 done
4528 done
4529 done
4530 IFS=$as_save_IFS
4531 if test -z "$ac_cv_path_GREP"; then
4532 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533 fi
4534 else
4535 ac_cv_path_GREP=$GREP
4536 fi
4537
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4540 $as_echo "$ac_cv_path_GREP" >&6; }
4541 GREP="$ac_cv_path_GREP"
4542
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4545 $as_echo_n "checking for egrep... " >&6; }
4546 if ${ac_cv_path_EGREP+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4550 then ac_cv_path_EGREP="$GREP -E"
4551 else
4552 if test -z "$EGREP"; then
4553 ac_path_EGREP_found=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_prog in egrep; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4563 as_fn_executable_p "$ac_path_EGREP" || continue
4564 # Check for GNU ac_path_EGREP and select it if it is found.
4565 # Check for GNU $ac_path_EGREP
4566 case `"$ac_path_EGREP" --version 2>&1` in
4567 *GNU*)
4568 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4569 *)
4570 ac_count=0
4571 $as_echo_n 0123456789 >"conftest.in"
4572 while :
4573 do
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo 'EGREP' >> "conftest.nl"
4578 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_EGREP="$ac_path_EGREP"
4584 ac_path_EGREP_max=$ac_count
4585 fi
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4588 done
4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592 $ac_path_EGREP_found && break 3
4593 done
4594 done
4595 done
4596 IFS=$as_save_IFS
4597 if test -z "$ac_cv_path_EGREP"; then
4598 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599 fi
4600 else
4601 ac_cv_path_EGREP=$EGREP
4602 fi
4603
4604 fi
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4607 $as_echo "$ac_cv_path_EGREP" >&6; }
4608 EGREP="$ac_cv_path_EGREP"
4609
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4612 $as_echo_n "checking for ANSI C header files... " >&6; }
4613 if ${ac_cv_header_stdc+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <stdlib.h>
4619 #include <stdarg.h>
4620 #include <string.h>
4621 #include <float.h>
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_header_stdc=yes
4633 else
4634 ac_cv_header_stdc=no
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637
4638 if test $ac_cv_header_stdc = yes; then
4639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #include <string.h>
4643
4644 _ACEOF
4645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4646 $EGREP "memchr" >/dev/null 2>&1; then :
4647
4648 else
4649 ac_cv_header_stdc=no
4650 fi
4651 rm -f conftest*
4652
4653 fi
4654
4655 if test $ac_cv_header_stdc = yes; then
4656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <stdlib.h>
4660
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "free" >/dev/null 2>&1; then :
4664
4665 else
4666 ac_cv_header_stdc=no
4667 fi
4668 rm -f conftest*
4669
4670 fi
4671
4672 if test $ac_cv_header_stdc = yes; then
4673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674 if test "$cross_compiling" = yes; then :
4675 :
4676 else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <ctype.h>
4680 #include <stdlib.h>
4681 #if ((' ' & 0x0FF) == 0x020)
4682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4684 #else
4685 # define ISLOWER(c) \
4686 (('a' <= (c) && (c) <= 'i') \
4687 || ('j' <= (c) && (c) <= 'r') \
4688 || ('s' <= (c) && (c) <= 'z'))
4689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690 #endif
4691
4692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693 int
4694 main ()
4695 {
4696 int i;
4697 for (i = 0; i < 256; i++)
4698 if (XOR (islower (i), ISLOWER (i))
4699 || toupper (i) != TOUPPER (i))
4700 return 2;
4701 return 0;
4702 }
4703 _ACEOF
4704 if ac_fn_c_try_run "$LINENO"; then :
4705
4706 else
4707 ac_cv_header_stdc=no
4708 fi
4709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4710 conftest.$ac_objext conftest.beam conftest.$ac_ext
4711 fi
4712
4713 fi
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4716 $as_echo "$ac_cv_header_stdc" >&6; }
4717 if test $ac_cv_header_stdc = yes; then
4718
4719 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4720
4721 fi
4722
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4725 inttypes.h stdint.h unistd.h
4726 do :
4727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4729 "
4730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4731 cat >>confdefs.h <<_ACEOF
4732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4733 _ACEOF
4734
4735 fi
4736
4737 done
4738
4739
4740
4741
4742
4743
4744 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4745 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4746 CLANGCC="yes"
4747 else
4748 CLANGCC="no"
4749 fi
4750
4751 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4752 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4753 INTELCC="yes"
4754 else
4755 INTELCC="no"
4756 fi
4757
4758 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4759 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4760 SUNCC="yes"
4761 else
4762 SUNCC="no"
4763 fi
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 case $PKG_CONFIG in
4783 [\\/]* | ?:[\\/]*)
4784 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4785 ;;
4786 *)
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 ;;
4803 esac
4804 fi
4805 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4806 if test -n "$PKG_CONFIG"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4808 $as_echo "$PKG_CONFIG" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815 fi
4816 if test -z "$ac_cv_path_PKG_CONFIG"; then
4817 ac_pt_PKG_CONFIG=$PKG_CONFIG
4818 # Extract the first word of "pkg-config", so it can be a program name with args.
4819 set dummy pkg-config; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 case $ac_pt_PKG_CONFIG in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4828 ;;
4829 *)
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 ;;
4846 esac
4847 fi
4848 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4849 if test -n "$ac_pt_PKG_CONFIG"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4851 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 fi
4856
4857 if test "x$ac_pt_PKG_CONFIG" = x; then
4858 PKG_CONFIG=""
4859 else
4860 case $cross_compiling:$ac_tool_warned in
4861 yes:)
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4864 ac_tool_warned=yes ;;
4865 esac
4866 PKG_CONFIG=$ac_pt_PKG_CONFIG
4867 fi
4868 else
4869 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4870 fi
4871
4872 fi
4873 if test -n "$PKG_CONFIG"; then
4874 _pkg_min_version=0.9.0
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4876 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4877 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4879 $as_echo "yes" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 PKG_CONFIG=""
4884 fi
4885 fi
4886 # Make sure we can run config.sub.
4887 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4888 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4891 $as_echo_n "checking build system type... " >&6; }
4892 if ${ac_cv_build+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 ac_build_alias=$build_alias
4896 test "x$ac_build_alias" = x &&
4897 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4898 test "x$ac_build_alias" = x &&
4899 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4900 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4901 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4902
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4905 $as_echo "$ac_cv_build" >&6; }
4906 case $ac_cv_build in
4907 *-*-*) ;;
4908 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4909 esac
4910 build=$ac_cv_build
4911 ac_save_IFS=$IFS; IFS='-'
4912 set x $ac_cv_build
4913 shift
4914 build_cpu=$1
4915 build_vendor=$2
4916 shift; shift
4917 # Remember, the first character of IFS is used to create $*,
4918 # except with old shells:
4919 build_os=$*
4920 IFS=$ac_save_IFS
4921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4925 $as_echo_n "checking host system type... " >&6; }
4926 if ${ac_cv_host+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test "x$host_alias" = x; then
4930 ac_cv_host=$ac_cv_build
4931 else
4932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4933 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4934 fi
4935
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4938 $as_echo "$ac_cv_host" >&6; }
4939 case $ac_cv_host in
4940 *-*-*) ;;
4941 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4942 esac
4943 host=$ac_cv_host
4944 ac_save_IFS=$IFS; IFS='-'
4945 set x $ac_cv_host
4946 shift
4947 host_cpu=$1
4948 host_vendor=$2
4949 shift; shift
4950 # Remember, the first character of IFS is used to create $*,
4951 # except with old shells:
4952 host_os=$*
4953 IFS=$ac_save_IFS
4954 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4955
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4958 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4959 if ${ac_cv_path_SED+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4963 for ac_i in 1 2 3 4 5 6 7; do
4964 ac_script="$ac_script$as_nl$ac_script"
4965 done
4966 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4967 { ac_script=; unset ac_script;}
4968 if test -z "$SED"; then
4969 ac_path_SED_found=false
4970 # Loop through the user's path and test for each of PROGNAME-LIST
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_prog in sed gsed; do
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4979 as_fn_executable_p "$ac_path_SED" || continue
4980 # Check for GNU ac_path_SED and select it if it is found.
4981 # Check for GNU $ac_path_SED
4982 case `"$ac_path_SED" --version 2>&1` in
4983 *GNU*)
4984 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4985 *)
4986 ac_count=0
4987 $as_echo_n 0123456789 >"conftest.in"
4988 while :
4989 do
4990 cat "conftest.in" "conftest.in" >"conftest.tmp"
4991 mv "conftest.tmp" "conftest.in"
4992 cp "conftest.in" "conftest.nl"
4993 $as_echo '' >> "conftest.nl"
4994 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996 as_fn_arith $ac_count + 1 && ac_count=$as_val
4997 if test $ac_count -gt ${ac_path_SED_max-0}; then
4998 # Best one so far, save it but keep looking for a better one
4999 ac_cv_path_SED="$ac_path_SED"
5000 ac_path_SED_max=$ac_count
5001 fi
5002 # 10*(2^10) chars as input seems more than enough
5003 test $ac_count -gt 10 && break
5004 done
5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006 esac
5007
5008 $ac_path_SED_found && break 3
5009 done
5010 done
5011 done
5012 IFS=$as_save_IFS
5013 if test -z "$ac_cv_path_SED"; then
5014 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5015 fi
5016 else
5017 ac_cv_path_SED=$SED
5018 fi
5019
5020 fi
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5022 $as_echo "$ac_cv_path_SED" >&6; }
5023 SED="$ac_cv_path_SED"
5024 rm -f conftest.sed
5025
5026
5027
5028
5029
5030
5031 # Check whether --enable-selective-werror was given.
5032 if test "${enable_selective_werror+set}" = set; then :
5033 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5034 else
5035 SELECTIVE_WERROR=yes
5036 fi
5037
5038
5039
5040
5041
5042 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5043 if test "x$SUNCC" = "xyes"; then
5044 BASE_CFLAGS="-v"
5045 else
5046 BASE_CFLAGS=""
5047 fi
5048
5049 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063 xorg_testset_save_CFLAGS="$CFLAGS"
5064
5065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5068 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5069 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 int i;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 xorg_cv_cc_flag_unknown_warning_option=yes
5078 else
5079 xorg_cv_cc_flag_unknown_warning_option=no
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5084 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5086 CFLAGS="$xorg_testset_save_CFLAGS"
5087 fi
5088
5089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092 fi
5093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5095 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5096 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 int i;
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 xorg_cv_cc_flag_unused_command_line_argument=yes
5105 else
5106 xorg_cv_cc_flag_unused_command_line_argument=no
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5111 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5113 CFLAGS="$xorg_testset_save_CFLAGS"
5114 fi
5115
5116 found="no"
5117
5118 if test $found = "no" ; then
5119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121 fi
5122
5123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5125 fi
5126
5127 CFLAGS="$CFLAGS -Wall"
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5130 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5131 cacheid=xorg_cv_cc_flag__Wall
5132 if eval \${$cacheid+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 int i;
5138 int
5139 main ()
5140 {
5141
5142 ;
5143 return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_c_try_link "$LINENO"; then :
5147 eval $cacheid=yes
5148 else
5149 eval $cacheid=no
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext \
5152 conftest$ac_exeext conftest.$ac_ext
5153 fi
5154
5155
5156 CFLAGS="$xorg_testset_save_CFLAGS"
5157
5158 eval supported=\$$cacheid
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5160 $as_echo "$supported" >&6; }
5161 if test "$supported" = "yes" ; then
5162 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5163 found="yes"
5164 fi
5165 fi
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181 xorg_testset_save_CFLAGS="$CFLAGS"
5182
5183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 int i;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 xorg_cv_cc_flag_unknown_warning_option=yes
5196 else
5197 xorg_cv_cc_flag_unknown_warning_option=no
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5204 CFLAGS="$xorg_testset_save_CFLAGS"
5205 fi
5206
5207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210 fi
5211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 int i;
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"; then :
5222 xorg_cv_cc_flag_unused_command_line_argument=yes
5223 else
5224 xorg_cv_cc_flag_unused_command_line_argument=no
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5231 CFLAGS="$xorg_testset_save_CFLAGS"
5232 fi
5233
5234 found="no"
5235
5236 if test $found = "no" ; then
5237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5239 fi
5240
5241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5243 fi
5244
5245 CFLAGS="$CFLAGS -Wpointer-arith"
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5248 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5249 cacheid=xorg_cv_cc_flag__Wpointer_arith
5250 if eval \${$cacheid+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 int i;
5256 int
5257 main ()
5258 {
5259
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 if ac_fn_c_try_link "$LINENO"; then :
5265 eval $cacheid=yes
5266 else
5267 eval $cacheid=no
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
5271 fi
5272
5273
5274 CFLAGS="$xorg_testset_save_CFLAGS"
5275
5276 eval supported=\$$cacheid
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5278 $as_echo "$supported" >&6; }
5279 if test "$supported" = "yes" ; then
5280 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5281 found="yes"
5282 fi
5283 fi
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 xorg_testset_save_CFLAGS="$CFLAGS"
5300
5301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 int i;
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 xorg_cv_cc_flag_unknown_warning_option=yes
5314 else
5315 xorg_cv_cc_flag_unknown_warning_option=no
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5322 CFLAGS="$xorg_testset_save_CFLAGS"
5323 fi
5324
5325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328 fi
5329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 int i;
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"; then :
5340 xorg_cv_cc_flag_unused_command_line_argument=yes
5341 else
5342 xorg_cv_cc_flag_unused_command_line_argument=no
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5349 CFLAGS="$xorg_testset_save_CFLAGS"
5350 fi
5351
5352 found="no"
5353
5354 if test $found = "no" ; then
5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357 fi
5358
5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361 fi
5362
5363 CFLAGS="$CFLAGS -Wmissing-declarations"
5364
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5366 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5367 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5368 if eval \${$cacheid+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 int i;
5374 int
5375 main ()
5376 {
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_link "$LINENO"; then :
5383 eval $cacheid=yes
5384 else
5385 eval $cacheid=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5389 fi
5390
5391
5392 CFLAGS="$xorg_testset_save_CFLAGS"
5393
5394 eval supported=\$$cacheid
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5396 $as_echo "$supported" >&6; }
5397 if test "$supported" = "yes" ; then
5398 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5399 found="yes"
5400 fi
5401 fi
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 xorg_testset_save_CFLAGS="$CFLAGS"
5418
5419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 int i;
5429 _ACEOF
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 xorg_cv_cc_flag_unknown_warning_option=yes
5432 else
5433 xorg_cv_cc_flag_unknown_warning_option=no
5434 fi
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5440 CFLAGS="$xorg_testset_save_CFLAGS"
5441 fi
5442
5443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 fi
5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 int i;
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 xorg_cv_cc_flag_unused_command_line_argument=yes
5459 else
5460 xorg_cv_cc_flag_unused_command_line_argument=no
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5467 CFLAGS="$xorg_testset_save_CFLAGS"
5468 fi
5469
5470 found="no"
5471
5472 if test $found = "no" ; then
5473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5475 fi
5476
5477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479 fi
5480
5481 CFLAGS="$CFLAGS -Wformat=2"
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5484 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5485 cacheid=xorg_cv_cc_flag__Wformat_2
5486 if eval \${$cacheid+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5491 int i;
5492 int
5493 main ()
5494 {
5495
5496 ;
5497 return 0;
5498 }
5499 _ACEOF
5500 if ac_fn_c_try_link "$LINENO"; then :
5501 eval $cacheid=yes
5502 else
5503 eval $cacheid=no
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507 fi
5508
5509
5510 CFLAGS="$xorg_testset_save_CFLAGS"
5511
5512 eval supported=\$$cacheid
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5514 $as_echo "$supported" >&6; }
5515 if test "$supported" = "yes" ; then
5516 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5517 found="yes"
5518 fi
5519 fi
5520
5521 if test $found = "no" ; then
5522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5524 fi
5525
5526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5528 fi
5529
5530 CFLAGS="$CFLAGS -Wformat"
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5533 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5534 cacheid=xorg_cv_cc_flag__Wformat
5535 if eval \${$cacheid+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 int i;
5541 int
5542 main ()
5543 {
5544
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_c_try_link "$LINENO"; then :
5550 eval $cacheid=yes
5551 else
5552 eval $cacheid=no
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext \
5555 conftest$ac_exeext conftest.$ac_ext
5556 fi
5557
5558
5559 CFLAGS="$xorg_testset_save_CFLAGS"
5560
5561 eval supported=\$$cacheid
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5563 $as_echo "$supported" >&6; }
5564 if test "$supported" = "yes" ; then
5565 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5566 found="yes"
5567 fi
5568 fi
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 xorg_testset_save_CFLAGS="$CFLAGS"
5587
5588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5591 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5592 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 int i;
5598 _ACEOF
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 xorg_cv_cc_flag_unknown_warning_option=yes
5601 else
5602 xorg_cv_cc_flag_unknown_warning_option=no
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5607 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5609 CFLAGS="$xorg_testset_save_CFLAGS"
5610 fi
5611
5612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615 fi
5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5618 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5619 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 int i;
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 xorg_cv_cc_flag_unused_command_line_argument=yes
5628 else
5629 xorg_cv_cc_flag_unused_command_line_argument=no
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 fi
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5634 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5636 CFLAGS="$xorg_testset_save_CFLAGS"
5637 fi
5638
5639 found="no"
5640
5641 if test $found = "no" ; then
5642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 fi
5645
5646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5648 fi
5649
5650 CFLAGS="$CFLAGS -Wstrict-prototypes"
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5653 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5654 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5655 if eval \${$cacheid+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 int
5662 main ()
5663 {
5664
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 if ac_fn_c_try_link "$LINENO"; then :
5670 eval $cacheid=yes
5671 else
5672 eval $cacheid=no
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5676 fi
5677
5678
5679 CFLAGS="$xorg_testset_save_CFLAGS"
5680
5681 eval supported=\$$cacheid
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5683 $as_echo "$supported" >&6; }
5684 if test "$supported" = "yes" ; then
5685 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5686 found="yes"
5687 fi
5688 fi
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 xorg_testset_save_CFLAGS="$CFLAGS"
5705
5706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5709 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5710 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 int i;
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 xorg_cv_cc_flag_unknown_warning_option=yes
5719 else
5720 xorg_cv_cc_flag_unknown_warning_option=no
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5725 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5727 CFLAGS="$xorg_testset_save_CFLAGS"
5728 fi
5729
5730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733 fi
5734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5736 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5737 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 int i;
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 xorg_cv_cc_flag_unused_command_line_argument=yes
5746 else
5747 xorg_cv_cc_flag_unused_command_line_argument=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754 CFLAGS="$xorg_testset_save_CFLAGS"
5755 fi
5756
5757 found="no"
5758
5759 if test $found = "no" ; then
5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 fi
5763
5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766 fi
5767
5768 CFLAGS="$CFLAGS -Wmissing-prototypes"
5769
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5771 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5772 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5773 if eval \${$cacheid+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 int i;
5779 int
5780 main ()
5781 {
5782
5783 ;
5784 return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_c_try_link "$LINENO"; then :
5788 eval $cacheid=yes
5789 else
5790 eval $cacheid=no
5791 fi
5792 rm -f core conftest.err conftest.$ac_objext \
5793 conftest$ac_exeext conftest.$ac_ext
5794 fi
5795
5796
5797 CFLAGS="$xorg_testset_save_CFLAGS"
5798
5799 eval supported=\$$cacheid
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5801 $as_echo "$supported" >&6; }
5802 if test "$supported" = "yes" ; then
5803 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5804 found="yes"
5805 fi
5806 fi
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822 xorg_testset_save_CFLAGS="$CFLAGS"
5823
5824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 int i;
5834 _ACEOF
5835 if ac_fn_c_try_compile "$LINENO"; then :
5836 xorg_cv_cc_flag_unknown_warning_option=yes
5837 else
5838 xorg_cv_cc_flag_unknown_warning_option=no
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5846 fi
5847
5848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5851 fi
5852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 int i;
5861 _ACEOF
5862 if ac_fn_c_try_compile "$LINENO"; then :
5863 xorg_cv_cc_flag_unused_command_line_argument=yes
5864 else
5865 xorg_cv_cc_flag_unused_command_line_argument=no
5866 fi
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5872 CFLAGS="$xorg_testset_save_CFLAGS"
5873 fi
5874
5875 found="no"
5876
5877 if test $found = "no" ; then
5878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880 fi
5881
5882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5884 fi
5885
5886 CFLAGS="$CFLAGS -Wnested-externs"
5887
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5889 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5890 cacheid=xorg_cv_cc_flag__Wnested_externs
5891 if eval \${$cacheid+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896 int i;
5897 int
5898 main ()
5899 {
5900
5901 ;
5902 return 0;
5903 }
5904 _ACEOF
5905 if ac_fn_c_try_link "$LINENO"; then :
5906 eval $cacheid=yes
5907 else
5908 eval $cacheid=no
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5912 fi
5913
5914
5915 CFLAGS="$xorg_testset_save_CFLAGS"
5916
5917 eval supported=\$$cacheid
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5919 $as_echo "$supported" >&6; }
5920 if test "$supported" = "yes" ; then
5921 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5922 found="yes"
5923 fi
5924 fi
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 xorg_testset_save_CFLAGS="$CFLAGS"
5941
5942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 int i;
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 xorg_cv_cc_flag_unknown_warning_option=yes
5955 else
5956 xorg_cv_cc_flag_unknown_warning_option=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964 fi
5965
5966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969 fi
5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 int i;
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 xorg_cv_cc_flag_unused_command_line_argument=yes
5982 else
5983 xorg_cv_cc_flag_unused_command_line_argument=no
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5990 CFLAGS="$xorg_testset_save_CFLAGS"
5991 fi
5992
5993 found="no"
5994
5995 if test $found = "no" ; then
5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998 fi
5999
6000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002 fi
6003
6004 CFLAGS="$CFLAGS -Wbad-function-cast"
6005
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6007 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6008 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6009 if eval \${$cacheid+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 int i;
6015 int
6016 main ()
6017 {
6018
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024 eval $cacheid=yes
6025 else
6026 eval $cacheid=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 fi
6031
6032
6033 CFLAGS="$xorg_testset_save_CFLAGS"
6034
6035 eval supported=\$$cacheid
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6037 $as_echo "$supported" >&6; }
6038 if test "$supported" = "yes" ; then
6039 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6040 found="yes"
6041 fi
6042 fi
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 xorg_testset_save_CFLAGS="$CFLAGS"
6059
6060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 int i;
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 xorg_cv_cc_flag_unknown_warning_option=yes
6073 else
6074 xorg_cv_cc_flag_unknown_warning_option=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6081 CFLAGS="$xorg_testset_save_CFLAGS"
6082 fi
6083
6084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6087 fi
6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 xorg_cv_cc_flag_unused_command_line_argument=yes
6100 else
6101 xorg_cv_cc_flag_unused_command_line_argument=no
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6108 CFLAGS="$xorg_testset_save_CFLAGS"
6109 fi
6110
6111 found="no"
6112
6113 if test $found = "no" ; then
6114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6116 fi
6117
6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6120 fi
6121
6122 CFLAGS="$CFLAGS -Wold-style-definition"
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6125 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6126 cacheid=xorg_cv_cc_flag__Wold_style_definition
6127 if eval \${$cacheid+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 int
6134 main ()
6135 {
6136
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_c_try_link "$LINENO"; then :
6142 eval $cacheid=yes
6143 else
6144 eval $cacheid=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6148 fi
6149
6150
6151 CFLAGS="$xorg_testset_save_CFLAGS"
6152
6153 eval supported=\$$cacheid
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6155 $as_echo "$supported" >&6; }
6156 if test "$supported" = "yes" ; then
6157 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6158 found="yes"
6159 fi
6160 fi
6161
6162 if test $found = "no" ; then
6163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165 fi
6166
6167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6169 fi
6170
6171 CFLAGS="$CFLAGS -fd"
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6174 $as_echo_n "checking if $CC supports -fd... " >&6; }
6175 cacheid=xorg_cv_cc_flag__fd
6176 if eval \${$cacheid+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 int i;
6182 int
6183 main ()
6184 {
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 if ac_fn_c_try_link "$LINENO"; then :
6191 eval $cacheid=yes
6192 else
6193 eval $cacheid=no
6194 fi
6195 rm -f core conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
6197 fi
6198
6199
6200 CFLAGS="$xorg_testset_save_CFLAGS"
6201
6202 eval supported=\$$cacheid
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6204 $as_echo "$supported" >&6; }
6205 if test "$supported" = "yes" ; then
6206 BASE_CFLAGS="$BASE_CFLAGS -fd"
6207 found="yes"
6208 fi
6209 fi
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 xorg_testset_save_CFLAGS="$CFLAGS"
6226
6227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6230 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6231 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 xorg_cv_cc_flag_unknown_warning_option=yes
6240 else
6241 xorg_cv_cc_flag_unknown_warning_option=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6246 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6249 fi
6250
6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254 fi
6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6257 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6258 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 int i;
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 xorg_cv_cc_flag_unused_command_line_argument=yes
6267 else
6268 xorg_cv_cc_flag_unused_command_line_argument=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6273 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276 fi
6277
6278 found="no"
6279
6280 if test $found = "no" ; then
6281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283 fi
6284
6285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6287 fi
6288
6289 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6292 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6293 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6294 if eval \${$cacheid+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 int i;
6300 int
6301 main ()
6302 {
6303
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"; then :
6309 eval $cacheid=yes
6310 else
6311 eval $cacheid=no
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 fi
6316
6317
6318 CFLAGS="$xorg_testset_save_CFLAGS"
6319
6320 eval supported=\$$cacheid
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6322 $as_echo "$supported" >&6; }
6323 if test "$supported" = "yes" ; then
6324 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6325 found="yes"
6326 fi
6327 fi
6328
6329
6330
6331
6332
6333 # This chunk adds additional warnings that could catch undesired effects.
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 xorg_testset_save_CFLAGS="$CFLAGS"
6348
6349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6352 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6353 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 int i;
6359 _ACEOF
6360 if ac_fn_c_try_compile "$LINENO"; then :
6361 xorg_cv_cc_flag_unknown_warning_option=yes
6362 else
6363 xorg_cv_cc_flag_unknown_warning_option=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6368 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6370 CFLAGS="$xorg_testset_save_CFLAGS"
6371 fi
6372
6373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376 fi
6377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6379 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6380 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 int i;
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388 xorg_cv_cc_flag_unused_command_line_argument=yes
6389 else
6390 xorg_cv_cc_flag_unused_command_line_argument=no
6391 fi
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 fi
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6395 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6397 CFLAGS="$xorg_testset_save_CFLAGS"
6398 fi
6399
6400 found="no"
6401
6402 if test $found = "no" ; then
6403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405 fi
6406
6407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6409 fi
6410
6411 CFLAGS="$CFLAGS -Wunused"
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6414 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6415 cacheid=xorg_cv_cc_flag__Wunused
6416 if eval \${$cacheid+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 int i;
6422 int
6423 main ()
6424 {
6425
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_link "$LINENO"; then :
6431 eval $cacheid=yes
6432 else
6433 eval $cacheid=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext \
6436 conftest$ac_exeext conftest.$ac_ext
6437 fi
6438
6439
6440 CFLAGS="$xorg_testset_save_CFLAGS"
6441
6442 eval supported=\$$cacheid
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6444 $as_echo "$supported" >&6; }
6445 if test "$supported" = "yes" ; then
6446 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6447 found="yes"
6448 fi
6449 fi
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465 xorg_testset_save_CFLAGS="$CFLAGS"
6466
6467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6470 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6471 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 int i;
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 xorg_cv_cc_flag_unknown_warning_option=yes
6480 else
6481 xorg_cv_cc_flag_unknown_warning_option=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6486 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6488 CFLAGS="$xorg_testset_save_CFLAGS"
6489 fi
6490
6491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494 fi
6495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6497 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6498 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 int i;
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 xorg_cv_cc_flag_unused_command_line_argument=yes
6507 else
6508 xorg_cv_cc_flag_unused_command_line_argument=no
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 fi
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6513 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6515 CFLAGS="$xorg_testset_save_CFLAGS"
6516 fi
6517
6518 found="no"
6519
6520 if test $found = "no" ; then
6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6523 fi
6524
6525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6527 fi
6528
6529 CFLAGS="$CFLAGS -Wuninitialized"
6530
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6532 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6533 cacheid=xorg_cv_cc_flag__Wuninitialized
6534 if eval \${$cacheid+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 int i;
6540 int
6541 main ()
6542 {
6543
6544 ;
6545 return 0;
6546 }
6547 _ACEOF
6548 if ac_fn_c_try_link "$LINENO"; then :
6549 eval $cacheid=yes
6550 else
6551 eval $cacheid=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555 fi
6556
6557
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559
6560 eval supported=\$$cacheid
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6562 $as_echo "$supported" >&6; }
6563 if test "$supported" = "yes" ; then
6564 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6565 found="yes"
6566 fi
6567 fi
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 xorg_testset_save_CFLAGS="$CFLAGS"
6584
6585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6588 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6589 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 xorg_cv_cc_flag_unknown_warning_option=yes
6598 else
6599 xorg_cv_cc_flag_unknown_warning_option=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6604 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6606 CFLAGS="$xorg_testset_save_CFLAGS"
6607 fi
6608
6609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612 fi
6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6615 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6616 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 int i;
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 xorg_cv_cc_flag_unused_command_line_argument=yes
6625 else
6626 xorg_cv_cc_flag_unused_command_line_argument=no
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6631 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6633 CFLAGS="$xorg_testset_save_CFLAGS"
6634 fi
6635
6636 found="no"
6637
6638 if test $found = "no" ; then
6639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641 fi
6642
6643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6645 fi
6646
6647 CFLAGS="$CFLAGS -Wshadow"
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6650 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6651 cacheid=xorg_cv_cc_flag__Wshadow
6652 if eval \${$cacheid+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 int i;
6658 int
6659 main ()
6660 {
6661
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_link "$LINENO"; then :
6667 eval $cacheid=yes
6668 else
6669 eval $cacheid=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6673 fi
6674
6675
6676 CFLAGS="$xorg_testset_save_CFLAGS"
6677
6678 eval supported=\$$cacheid
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6680 $as_echo "$supported" >&6; }
6681 if test "$supported" = "yes" ; then
6682 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6683 found="yes"
6684 fi
6685 fi
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701 xorg_testset_save_CFLAGS="$CFLAGS"
6702
6703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6706 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6707 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 int i;
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 xorg_cv_cc_flag_unknown_warning_option=yes
6716 else
6717 xorg_cv_cc_flag_unknown_warning_option=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6722 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6724 CFLAGS="$xorg_testset_save_CFLAGS"
6725 fi
6726
6727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730 fi
6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6733 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6734 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739 int i;
6740 _ACEOF
6741 if ac_fn_c_try_compile "$LINENO"; then :
6742 xorg_cv_cc_flag_unused_command_line_argument=yes
6743 else
6744 xorg_cv_cc_flag_unused_command_line_argument=no
6745 fi
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6749 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6751 CFLAGS="$xorg_testset_save_CFLAGS"
6752 fi
6753
6754 found="no"
6755
6756 if test $found = "no" ; then
6757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6759 fi
6760
6761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6763 fi
6764
6765 CFLAGS="$CFLAGS -Wmissing-noreturn"
6766
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6768 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6769 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6770 if eval \${$cacheid+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 int i;
6776 int
6777 main ()
6778 {
6779
6780 ;
6781 return 0;
6782 }
6783 _ACEOF
6784 if ac_fn_c_try_link "$LINENO"; then :
6785 eval $cacheid=yes
6786 else
6787 eval $cacheid=no
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6791 fi
6792
6793
6794 CFLAGS="$xorg_testset_save_CFLAGS"
6795
6796 eval supported=\$$cacheid
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6798 $as_echo "$supported" >&6; }
6799 if test "$supported" = "yes" ; then
6800 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6801 found="yes"
6802 fi
6803 fi
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 xorg_testset_save_CFLAGS="$CFLAGS"
6820
6821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 int i;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 xorg_cv_cc_flag_unknown_warning_option=yes
6834 else
6835 xorg_cv_cc_flag_unknown_warning_option=no
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843 fi
6844
6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848 fi
6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 xorg_cv_cc_flag_unused_command_line_argument=yes
6861 else
6862 xorg_cv_cc_flag_unused_command_line_argument=no
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870 fi
6871
6872 found="no"
6873
6874 if test $found = "no" ; then
6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877 fi
6878
6879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6881 fi
6882
6883 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6884
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6886 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6887 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6888 if eval \${$cacheid+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 int i;
6894 int
6895 main ()
6896 {
6897
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_link "$LINENO"; then :
6903 eval $cacheid=yes
6904 else
6905 eval $cacheid=no
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 fi
6910
6911
6912 CFLAGS="$xorg_testset_save_CFLAGS"
6913
6914 eval supported=\$$cacheid
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6916 $as_echo "$supported" >&6; }
6917 if test "$supported" = "yes" ; then
6918 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6919 found="yes"
6920 fi
6921 fi
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937 xorg_testset_save_CFLAGS="$CFLAGS"
6938
6939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 int i;
6949 _ACEOF
6950 if ac_fn_c_try_compile "$LINENO"; then :
6951 xorg_cv_cc_flag_unknown_warning_option=yes
6952 else
6953 xorg_cv_cc_flag_unknown_warning_option=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6960 CFLAGS="$xorg_testset_save_CFLAGS"
6961 fi
6962
6963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 fi
6967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 int i;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"; then :
6978 xorg_cv_cc_flag_unused_command_line_argument=yes
6979 else
6980 xorg_cv_cc_flag_unused_command_line_argument=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988 fi
6989
6990 found="no"
6991
6992 if test $found = "no" ; then
6993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6995 fi
6996
6997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6999 fi
7000
7001 CFLAGS="$CFLAGS -Wredundant-decls"
7002
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7004 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7005 cacheid=xorg_cv_cc_flag__Wredundant_decls
7006 if eval \${$cacheid+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7011 int i;
7012 int
7013 main ()
7014 {
7015
7016 ;
7017 return 0;
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_link "$LINENO"; then :
7021 eval $cacheid=yes
7022 else
7023 eval $cacheid=no
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7027 fi
7028
7029
7030 CFLAGS="$xorg_testset_save_CFLAGS"
7031
7032 eval supported=\$$cacheid
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7034 $as_echo "$supported" >&6; }
7035 if test "$supported" = "yes" ; then
7036 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7037 found="yes"
7038 fi
7039 fi
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 xorg_testset_save_CFLAGS="$CFLAGS"
7056
7057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 int i;
7067 _ACEOF
7068 if ac_fn_c_try_compile "$LINENO"; then :
7069 xorg_cv_cc_flag_unknown_warning_option=yes
7070 else
7071 xorg_cv_cc_flag_unknown_warning_option=no
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 fi
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7078 CFLAGS="$xorg_testset_save_CFLAGS"
7079 fi
7080
7081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084 fi
7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 int i;
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096 xorg_cv_cc_flag_unused_command_line_argument=yes
7097 else
7098 xorg_cv_cc_flag_unused_command_line_argument=no
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7105 CFLAGS="$xorg_testset_save_CFLAGS"
7106 fi
7107
7108 found="no"
7109
7110 if test $found = "no" ; then
7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113 fi
7114
7115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117 fi
7118
7119 CFLAGS="$CFLAGS -Wlogical-op"
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7122 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7123 cacheid=xorg_cv_cc_flag__Wlogical_op
7124 if eval \${$cacheid+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129 int i;
7130 int
7131 main ()
7132 {
7133
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 if ac_fn_c_try_link "$LINENO"; then :
7139 eval $cacheid=yes
7140 else
7141 eval $cacheid=no
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 fi
7146
7147
7148 CFLAGS="$xorg_testset_save_CFLAGS"
7149
7150 eval supported=\$$cacheid
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7152 $as_echo "$supported" >&6; }
7153 if test "$supported" = "yes" ; then
7154 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7155 found="yes"
7156 fi
7157 fi
7158
7159
7160
7161 # These are currently disabled because they are noisy. They will be enabled
7162 # in the future once the codebase is sufficiently modernized to silence
7163 # them. For now, I don't want them to drown out the other warnings.
7164 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7165 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7166 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7167
7168 # Turn some warnings into errors, so we don't accidently get successful builds
7169 # when there are problems that should be fixed.
7170
7171 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 xorg_testset_save_CFLAGS="$CFLAGS"
7186
7187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7190 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7191 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 int i;
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 xorg_cv_cc_flag_unknown_warning_option=yes
7200 else
7201 xorg_cv_cc_flag_unknown_warning_option=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7206 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7209 fi
7210
7211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214 fi
7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7217 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7218 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7219 $as_echo_n "(cached) " >&6
7220 else
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 int i;
7224 _ACEOF
7225 if ac_fn_c_try_compile "$LINENO"; then :
7226 xorg_cv_cc_flag_unused_command_line_argument=yes
7227 else
7228 xorg_cv_cc_flag_unused_command_line_argument=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7233 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7235 CFLAGS="$xorg_testset_save_CFLAGS"
7236 fi
7237
7238 found="no"
7239
7240 if test $found = "no" ; then
7241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243 fi
7244
7245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247 fi
7248
7249 CFLAGS="$CFLAGS -Werror=implicit"
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7252 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7253 cacheid=xorg_cv_cc_flag__Werror_implicit
7254 if eval \${$cacheid+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 int i;
7260 int
7261 main ()
7262 {
7263
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 if ac_fn_c_try_link "$LINENO"; then :
7269 eval $cacheid=yes
7270 else
7271 eval $cacheid=no
7272 fi
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 fi
7276
7277
7278 CFLAGS="$xorg_testset_save_CFLAGS"
7279
7280 eval supported=\$$cacheid
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7282 $as_echo "$supported" >&6; }
7283 if test "$supported" = "yes" ; then
7284 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7285 found="yes"
7286 fi
7287 fi
7288
7289 if test $found = "no" ; then
7290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292 fi
7293
7294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296 fi
7297
7298 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7301 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7302 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7303 if eval \${$cacheid+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 int i;
7309 int
7310 main ()
7311 {
7312
7313 ;
7314 return 0;
7315 }
7316 _ACEOF
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 eval $cacheid=yes
7319 else
7320 eval $cacheid=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
7324 fi
7325
7326
7327 CFLAGS="$xorg_testset_save_CFLAGS"
7328
7329 eval supported=\$$cacheid
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7331 $as_echo "$supported" >&6; }
7332 if test "$supported" = "yes" ; then
7333 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7334 found="yes"
7335 fi
7336 fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352 xorg_testset_save_CFLAGS="$CFLAGS"
7353
7354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7357 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7358 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 int i;
7364 _ACEOF
7365 if ac_fn_c_try_compile "$LINENO"; then :
7366 xorg_cv_cc_flag_unknown_warning_option=yes
7367 else
7368 xorg_cv_cc_flag_unknown_warning_option=no
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7373 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7375 CFLAGS="$xorg_testset_save_CFLAGS"
7376 fi
7377
7378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 fi
7382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7384 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7385 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 int i;
7391 _ACEOF
7392 if ac_fn_c_try_compile "$LINENO"; then :
7393 xorg_cv_cc_flag_unused_command_line_argument=yes
7394 else
7395 xorg_cv_cc_flag_unused_command_line_argument=no
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7400 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7402 CFLAGS="$xorg_testset_save_CFLAGS"
7403 fi
7404
7405 found="no"
7406
7407 if test $found = "no" ; then
7408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7410 fi
7411
7412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7414 fi
7415
7416 CFLAGS="$CFLAGS -Werror=nonnull"
7417
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7419 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7420 cacheid=xorg_cv_cc_flag__Werror_nonnull
7421 if eval \${$cacheid+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 int i;
7427 int
7428 main ()
7429 {
7430
7431 ;
7432 return 0;
7433 }
7434 _ACEOF
7435 if ac_fn_c_try_link "$LINENO"; then :
7436 eval $cacheid=yes
7437 else
7438 eval $cacheid=no
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext \
7441 conftest$ac_exeext conftest.$ac_ext
7442 fi
7443
7444
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446
7447 eval supported=\$$cacheid
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7449 $as_echo "$supported" >&6; }
7450 if test "$supported" = "yes" ; then
7451 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7452 found="yes"
7453 fi
7454 fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 xorg_testset_save_CFLAGS="$CFLAGS"
7471
7472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 int i;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 xorg_cv_cc_flag_unknown_warning_option=yes
7485 else
7486 xorg_cv_cc_flag_unknown_warning_option=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7493 CFLAGS="$xorg_testset_save_CFLAGS"
7494 fi
7495
7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 fi
7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 int i;
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 xorg_cv_cc_flag_unused_command_line_argument=yes
7512 else
7513 xorg_cv_cc_flag_unused_command_line_argument=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7520 CFLAGS="$xorg_testset_save_CFLAGS"
7521 fi
7522
7523 found="no"
7524
7525 if test $found = "no" ; then
7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528 fi
7529
7530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7532 fi
7533
7534 CFLAGS="$CFLAGS -Werror=init-self"
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7537 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7538 cacheid=xorg_cv_cc_flag__Werror_init_self
7539 if eval \${$cacheid+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 int i;
7545 int
7546 main ()
7547 {
7548
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then :
7554 eval $cacheid=yes
7555 else
7556 eval $cacheid=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext \
7559 conftest$ac_exeext conftest.$ac_ext
7560 fi
7561
7562
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564
7565 eval supported=\$$cacheid
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7567 $as_echo "$supported" >&6; }
7568 if test "$supported" = "yes" ; then
7569 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7570 found="yes"
7571 fi
7572 fi
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 xorg_testset_save_CFLAGS="$CFLAGS"
7589
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 int i;
7600 _ACEOF
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602 xorg_cv_cc_flag_unknown_warning_option=yes
7603 else
7604 xorg_cv_cc_flag_unknown_warning_option=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7612 fi
7613
7614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617 fi
7618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 int i;
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"; then :
7629 xorg_cv_cc_flag_unused_command_line_argument=yes
7630 else
7631 xorg_cv_cc_flag_unused_command_line_argument=no
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7638 CFLAGS="$xorg_testset_save_CFLAGS"
7639 fi
7640
7641 found="no"
7642
7643 if test $found = "no" ; then
7644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7646 fi
7647
7648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7650 fi
7651
7652 CFLAGS="$CFLAGS -Werror=main"
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7655 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7656 cacheid=xorg_cv_cc_flag__Werror_main
7657 if eval \${$cacheid+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 int i;
7663 int
7664 main ()
7665 {
7666
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_link "$LINENO"; then :
7672 eval $cacheid=yes
7673 else
7674 eval $cacheid=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext \
7677 conftest$ac_exeext conftest.$ac_ext
7678 fi
7679
7680
7681 CFLAGS="$xorg_testset_save_CFLAGS"
7682
7683 eval supported=\$$cacheid
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7685 $as_echo "$supported" >&6; }
7686 if test "$supported" = "yes" ; then
7687 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7688 found="yes"
7689 fi
7690 fi
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 xorg_testset_save_CFLAGS="$CFLAGS"
7707
7708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 int i;
7718 _ACEOF
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720 xorg_cv_cc_flag_unknown_warning_option=yes
7721 else
7722 xorg_cv_cc_flag_unknown_warning_option=no
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7729 CFLAGS="$xorg_testset_save_CFLAGS"
7730 fi
7731
7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735 fi
7736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 int i;
7745 _ACEOF
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747 xorg_cv_cc_flag_unused_command_line_argument=yes
7748 else
7749 xorg_cv_cc_flag_unused_command_line_argument=no
7750 fi
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7756 CFLAGS="$xorg_testset_save_CFLAGS"
7757 fi
7758
7759 found="no"
7760
7761 if test $found = "no" ; then
7762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7764 fi
7765
7766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7768 fi
7769
7770 CFLAGS="$CFLAGS -Werror=missing-braces"
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7773 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7774 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7775 if eval \${$cacheid+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 int i;
7781 int
7782 main ()
7783 {
7784
7785 ;
7786 return 0;
7787 }
7788 _ACEOF
7789 if ac_fn_c_try_link "$LINENO"; then :
7790 eval $cacheid=yes
7791 else
7792 eval $cacheid=no
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796 fi
7797
7798
7799 CFLAGS="$xorg_testset_save_CFLAGS"
7800
7801 eval supported=\$$cacheid
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7803 $as_echo "$supported" >&6; }
7804 if test "$supported" = "yes" ; then
7805 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7806 found="yes"
7807 fi
7808 fi
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824 xorg_testset_save_CFLAGS="$CFLAGS"
7825
7826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 int i;
7836 _ACEOF
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 xorg_cv_cc_flag_unknown_warning_option=yes
7839 else
7840 xorg_cv_cc_flag_unknown_warning_option=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7848 fi
7849
7850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7853 fi
7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 int i;
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"; then :
7865 xorg_cv_cc_flag_unused_command_line_argument=yes
7866 else
7867 xorg_cv_cc_flag_unused_command_line_argument=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7874 CFLAGS="$xorg_testset_save_CFLAGS"
7875 fi
7876
7877 found="no"
7878
7879 if test $found = "no" ; then
7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882 fi
7883
7884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886 fi
7887
7888 CFLAGS="$CFLAGS -Werror=sequence-point"
7889
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7891 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7892 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7893 if eval \${$cacheid+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 int i;
7899 int
7900 main ()
7901 {
7902
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 if ac_fn_c_try_link "$LINENO"; then :
7908 eval $cacheid=yes
7909 else
7910 eval $cacheid=no
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 fi
7915
7916
7917 CFLAGS="$xorg_testset_save_CFLAGS"
7918
7919 eval supported=\$$cacheid
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7921 $as_echo "$supported" >&6; }
7922 if test "$supported" = "yes" ; then
7923 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7924 found="yes"
7925 fi
7926 fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942 xorg_testset_save_CFLAGS="$CFLAGS"
7943
7944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 int i;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 xorg_cv_cc_flag_unknown_warning_option=yes
7957 else
7958 xorg_cv_cc_flag_unknown_warning_option=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7966 fi
7967
7968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971 fi
7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 int i;
7981 _ACEOF
7982 if ac_fn_c_try_compile "$LINENO"; then :
7983 xorg_cv_cc_flag_unused_command_line_argument=yes
7984 else
7985 xorg_cv_cc_flag_unused_command_line_argument=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7992 CFLAGS="$xorg_testset_save_CFLAGS"
7993 fi
7994
7995 found="no"
7996
7997 if test $found = "no" ; then
7998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8000 fi
8001
8002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004 fi
8005
8006 CFLAGS="$CFLAGS -Werror=return-type"
8007
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8009 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8010 cacheid=xorg_cv_cc_flag__Werror_return_type
8011 if eval \${$cacheid+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 int i;
8017 int
8018 main ()
8019 {
8020
8021 ;
8022 return 0;
8023 }
8024 _ACEOF
8025 if ac_fn_c_try_link "$LINENO"; then :
8026 eval $cacheid=yes
8027 else
8028 eval $cacheid=no
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext \
8031 conftest$ac_exeext conftest.$ac_ext
8032 fi
8033
8034
8035 CFLAGS="$xorg_testset_save_CFLAGS"
8036
8037 eval supported=\$$cacheid
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8039 $as_echo "$supported" >&6; }
8040 if test "$supported" = "yes" ; then
8041 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8042 found="yes"
8043 fi
8044 fi
8045
8046 if test $found = "no" ; then
8047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049 fi
8050
8051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8053 fi
8054
8055 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8058 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8059 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8060 if eval \${$cacheid+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 int i;
8066 int
8067 main ()
8068 {
8069
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075 eval $cacheid=yes
8076 else
8077 eval $cacheid=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
8081 fi
8082
8083
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085
8086 eval supported=\$$cacheid
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8088 $as_echo "$supported" >&6; }
8089 if test "$supported" = "yes" ; then
8090 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8091 found="yes"
8092 fi
8093 fi
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109 xorg_testset_save_CFLAGS="$CFLAGS"
8110
8111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8114 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8115 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int i;
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"; then :
8123 xorg_cv_cc_flag_unknown_warning_option=yes
8124 else
8125 xorg_cv_cc_flag_unknown_warning_option=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8130 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8132 CFLAGS="$xorg_testset_save_CFLAGS"
8133 fi
8134
8135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138 fi
8139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8141 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8142 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 int i;
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150 xorg_cv_cc_flag_unused_command_line_argument=yes
8151 else
8152 xorg_cv_cc_flag_unused_command_line_argument=no
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8157 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8159 CFLAGS="$xorg_testset_save_CFLAGS"
8160 fi
8161
8162 found="no"
8163
8164 if test $found = "no" ; then
8165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167 fi
8168
8169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8171 fi
8172
8173 CFLAGS="$CFLAGS -Werror=trigraphs"
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8176 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8177 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8178 if eval \${$cacheid+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 int i;
8184 int
8185 main ()
8186 {
8187
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_link "$LINENO"; then :
8193 eval $cacheid=yes
8194 else
8195 eval $cacheid=no
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 fi
8200
8201
8202 CFLAGS="$xorg_testset_save_CFLAGS"
8203
8204 eval supported=\$$cacheid
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8206 $as_echo "$supported" >&6; }
8207 if test "$supported" = "yes" ; then
8208 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8209 found="yes"
8210 fi
8211 fi
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 xorg_testset_save_CFLAGS="$CFLAGS"
8228
8229 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8232 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8233 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 int i;
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 xorg_cv_cc_flag_unknown_warning_option=yes
8242 else
8243 xorg_cv_cc_flag_unknown_warning_option=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8248 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8251 fi
8252
8253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8259 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8260 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 int i;
8266 _ACEOF
8267 if ac_fn_c_try_compile "$LINENO"; then :
8268 xorg_cv_cc_flag_unused_command_line_argument=yes
8269 else
8270 xorg_cv_cc_flag_unused_command_line_argument=no
8271 fi
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8275 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8277 CFLAGS="$xorg_testset_save_CFLAGS"
8278 fi
8279
8280 found="no"
8281
8282 if test $found = "no" ; then
8283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285 fi
8286
8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8289 fi
8290
8291 CFLAGS="$CFLAGS -Werror=array-bounds"
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8294 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8295 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8296 if eval \${$cacheid+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 int i;
8302 int
8303 main ()
8304 {
8305
8306 ;
8307 return 0;
8308 }
8309 _ACEOF
8310 if ac_fn_c_try_link "$LINENO"; then :
8311 eval $cacheid=yes
8312 else
8313 eval $cacheid=no
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8317 fi
8318
8319
8320 CFLAGS="$xorg_testset_save_CFLAGS"
8321
8322 eval supported=\$$cacheid
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8324 $as_echo "$supported" >&6; }
8325 if test "$supported" = "yes" ; then
8326 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8327 found="yes"
8328 fi
8329 fi
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345 xorg_testset_save_CFLAGS="$CFLAGS"
8346
8347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8350 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8351 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 int i;
8357 _ACEOF
8358 if ac_fn_c_try_compile "$LINENO"; then :
8359 xorg_cv_cc_flag_unknown_warning_option=yes
8360 else
8361 xorg_cv_cc_flag_unknown_warning_option=no
8362 fi
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8366 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8369 fi
8370
8371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374 fi
8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8377 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8378 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 int i;
8384 _ACEOF
8385 if ac_fn_c_try_compile "$LINENO"; then :
8386 xorg_cv_cc_flag_unused_command_line_argument=yes
8387 else
8388 xorg_cv_cc_flag_unused_command_line_argument=no
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8393 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8395 CFLAGS="$xorg_testset_save_CFLAGS"
8396 fi
8397
8398 found="no"
8399
8400 if test $found = "no" ; then
8401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403 fi
8404
8405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407 fi
8408
8409 CFLAGS="$CFLAGS -Werror=write-strings"
8410
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8412 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8413 cacheid=xorg_cv_cc_flag__Werror_write_strings
8414 if eval \${$cacheid+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 int i;
8420 int
8421 main ()
8422 {
8423
8424 ;
8425 return 0;
8426 }
8427 _ACEOF
8428 if ac_fn_c_try_link "$LINENO"; then :
8429 eval $cacheid=yes
8430 else
8431 eval $cacheid=no
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 fi
8436
8437
8438 CFLAGS="$xorg_testset_save_CFLAGS"
8439
8440 eval supported=\$$cacheid
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8442 $as_echo "$supported" >&6; }
8443 if test "$supported" = "yes" ; then
8444 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8445 found="yes"
8446 fi
8447 fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463 xorg_testset_save_CFLAGS="$CFLAGS"
8464
8465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8468 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8469 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 int i;
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 xorg_cv_cc_flag_unknown_warning_option=yes
8478 else
8479 xorg_cv_cc_flag_unknown_warning_option=no
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 fi
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8484 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8486 CFLAGS="$xorg_testset_save_CFLAGS"
8487 fi
8488
8489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492 fi
8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8495 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8496 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 int i;
8502 _ACEOF
8503 if ac_fn_c_try_compile "$LINENO"; then :
8504 xorg_cv_cc_flag_unused_command_line_argument=yes
8505 else
8506 xorg_cv_cc_flag_unused_command_line_argument=no
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8511 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8513 CFLAGS="$xorg_testset_save_CFLAGS"
8514 fi
8515
8516 found="no"
8517
8518 if test $found = "no" ; then
8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521 fi
8522
8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 fi
8526
8527 CFLAGS="$CFLAGS -Werror=address"
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8530 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8531 cacheid=xorg_cv_cc_flag__Werror_address
8532 if eval \${$cacheid+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 int i;
8538 int
8539 main ()
8540 {
8541
8542 ;
8543 return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_link "$LINENO"; then :
8547 eval $cacheid=yes
8548 else
8549 eval $cacheid=no
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8553 fi
8554
8555
8556 CFLAGS="$xorg_testset_save_CFLAGS"
8557
8558 eval supported=\$$cacheid
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8560 $as_echo "$supported" >&6; }
8561 if test "$supported" = "yes" ; then
8562 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8563 found="yes"
8564 fi
8565 fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 xorg_testset_save_CFLAGS="$CFLAGS"
8582
8583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 int i;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 xorg_cv_cc_flag_unknown_warning_option=yes
8596 else
8597 xorg_cv_cc_flag_unknown_warning_option=no
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8604 CFLAGS="$xorg_testset_save_CFLAGS"
8605 fi
8606
8607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610 fi
8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 int i;
8620 _ACEOF
8621 if ac_fn_c_try_compile "$LINENO"; then :
8622 xorg_cv_cc_flag_unused_command_line_argument=yes
8623 else
8624 xorg_cv_cc_flag_unused_command_line_argument=no
8625 fi
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8631 CFLAGS="$xorg_testset_save_CFLAGS"
8632 fi
8633
8634 found="no"
8635
8636 if test $found = "no" ; then
8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639 fi
8640
8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643 fi
8644
8645 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8648 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8649 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8650 if eval \${$cacheid+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 int i;
8656 int
8657 main ()
8658 {
8659
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_link "$LINENO"; then :
8665 eval $cacheid=yes
8666 else
8667 eval $cacheid=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 fi
8672
8673
8674 CFLAGS="$xorg_testset_save_CFLAGS"
8675
8676 eval supported=\$$cacheid
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8678 $as_echo "$supported" >&6; }
8679 if test "$supported" = "yes" ; then
8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8681 found="yes"
8682 fi
8683 fi
8684
8685 if test $found = "no" ; then
8686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8688 fi
8689
8690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8692 fi
8693
8694 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8695
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8697 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8698 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8699 if eval \${$cacheid+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 int i;
8705 int
8706 main ()
8707 {
8708
8709 ;
8710 return 0;
8711 }
8712 _ACEOF
8713 if ac_fn_c_try_link "$LINENO"; then :
8714 eval $cacheid=yes
8715 else
8716 eval $cacheid=no
8717 fi
8718 rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 fi
8721
8722
8723 CFLAGS="$xorg_testset_save_CFLAGS"
8724
8725 eval supported=\$$cacheid
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8727 $as_echo "$supported" >&6; }
8728 if test "$supported" = "yes" ; then
8729 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8730 found="yes"
8731 fi
8732 fi
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 xorg_testset_save_CFLAGS="$CFLAGS"
8749
8750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 int i;
8760 _ACEOF
8761 if ac_fn_c_try_compile "$LINENO"; then :
8762 xorg_cv_cc_flag_unknown_warning_option=yes
8763 else
8764 xorg_cv_cc_flag_unknown_warning_option=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8771 CFLAGS="$xorg_testset_save_CFLAGS"
8772 fi
8773
8774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777 fi
8778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 int i;
8787 _ACEOF
8788 if ac_fn_c_try_compile "$LINENO"; then :
8789 xorg_cv_cc_flag_unused_command_line_argument=yes
8790 else
8791 xorg_cv_cc_flag_unused_command_line_argument=no
8792 fi
8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 fi
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8798 CFLAGS="$xorg_testset_save_CFLAGS"
8799 fi
8800
8801 found="no"
8802
8803 if test $found = "no" ; then
8804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8806 fi
8807
8808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810 fi
8811
8812 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8815 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8816 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8817 if eval \${$cacheid+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 int i;
8823 int
8824 main ()
8825 {
8826
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 eval $cacheid=yes
8833 else
8834 eval $cacheid=no
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 fi
8839
8840
8841 CFLAGS="$xorg_testset_save_CFLAGS"
8842
8843 eval supported=\$$cacheid
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8845 $as_echo "$supported" >&6; }
8846 if test "$supported" = "yes" ; then
8847 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8848 found="yes"
8849 fi
8850 fi
8851
8852 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8853 else
8854 { $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
8855 $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;}
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869 xorg_testset_save_CFLAGS="$CFLAGS"
8870
8871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8874 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8875 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 int i;
8881 _ACEOF
8882 if ac_fn_c_try_compile "$LINENO"; then :
8883 xorg_cv_cc_flag_unknown_warning_option=yes
8884 else
8885 xorg_cv_cc_flag_unknown_warning_option=no
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8890 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8892 CFLAGS="$xorg_testset_save_CFLAGS"
8893 fi
8894
8895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898 fi
8899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8901 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8902 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 int i;
8908 _ACEOF
8909 if ac_fn_c_try_compile "$LINENO"; then :
8910 xorg_cv_cc_flag_unused_command_line_argument=yes
8911 else
8912 xorg_cv_cc_flag_unused_command_line_argument=no
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8917 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8919 CFLAGS="$xorg_testset_save_CFLAGS"
8920 fi
8921
8922 found="no"
8923
8924 if test $found = "no" ; then
8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8927 fi
8928
8929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931 fi
8932
8933 CFLAGS="$CFLAGS -Wimplicit"
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8936 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8937 cacheid=xorg_cv_cc_flag__Wimplicit
8938 if eval \${$cacheid+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 int i;
8944 int
8945 main ()
8946 {
8947
8948 ;
8949 return 0;
8950 }
8951 _ACEOF
8952 if ac_fn_c_try_link "$LINENO"; then :
8953 eval $cacheid=yes
8954 else
8955 eval $cacheid=no
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 fi
8960
8961
8962 CFLAGS="$xorg_testset_save_CFLAGS"
8963
8964 eval supported=\$$cacheid
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8966 $as_echo "$supported" >&6; }
8967 if test "$supported" = "yes" ; then
8968 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8969 found="yes"
8970 fi
8971 fi
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987 xorg_testset_save_CFLAGS="$CFLAGS"
8988
8989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8992 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8993 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 int i;
8999 _ACEOF
9000 if ac_fn_c_try_compile "$LINENO"; then :
9001 xorg_cv_cc_flag_unknown_warning_option=yes
9002 else
9003 xorg_cv_cc_flag_unknown_warning_option=no
9004 fi
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9008 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9010 CFLAGS="$xorg_testset_save_CFLAGS"
9011 fi
9012
9013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016 fi
9017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9019 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9020 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 int i;
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"; then :
9028 xorg_cv_cc_flag_unused_command_line_argument=yes
9029 else
9030 xorg_cv_cc_flag_unused_command_line_argument=no
9031 fi
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 fi
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9035 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9037 CFLAGS="$xorg_testset_save_CFLAGS"
9038 fi
9039
9040 found="no"
9041
9042 if test $found = "no" ; then
9043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9045 fi
9046
9047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9049 fi
9050
9051 CFLAGS="$CFLAGS -Wnonnull"
9052
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9054 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9055 cacheid=xorg_cv_cc_flag__Wnonnull
9056 if eval \${$cacheid+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061 int i;
9062 int
9063 main ()
9064 {
9065
9066 ;
9067 return 0;
9068 }
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071 eval $cacheid=yes
9072 else
9073 eval $cacheid=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 fi
9078
9079
9080 CFLAGS="$xorg_testset_save_CFLAGS"
9081
9082 eval supported=\$$cacheid
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9084 $as_echo "$supported" >&6; }
9085 if test "$supported" = "yes" ; then
9086 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9087 found="yes"
9088 fi
9089 fi
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105 xorg_testset_save_CFLAGS="$CFLAGS"
9106
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9110 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9111 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 int i;
9117 _ACEOF
9118 if ac_fn_c_try_compile "$LINENO"; then :
9119 xorg_cv_cc_flag_unknown_warning_option=yes
9120 else
9121 xorg_cv_cc_flag_unknown_warning_option=no
9122 fi
9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9126 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9128 CFLAGS="$xorg_testset_save_CFLAGS"
9129 fi
9130
9131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 fi
9135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9137 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9138 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143 int i;
9144 _ACEOF
9145 if ac_fn_c_try_compile "$LINENO"; then :
9146 xorg_cv_cc_flag_unused_command_line_argument=yes
9147 else
9148 xorg_cv_cc_flag_unused_command_line_argument=no
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9153 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9155 CFLAGS="$xorg_testset_save_CFLAGS"
9156 fi
9157
9158 found="no"
9159
9160 if test $found = "no" ; then
9161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9163 fi
9164
9165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9167 fi
9168
9169 CFLAGS="$CFLAGS -Winit-self"
9170
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9172 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9173 cacheid=xorg_cv_cc_flag__Winit_self
9174 if eval \${$cacheid+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 int i;
9180 int
9181 main ()
9182 {
9183
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_link "$LINENO"; then :
9189 eval $cacheid=yes
9190 else
9191 eval $cacheid=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext \
9194 conftest$ac_exeext conftest.$ac_ext
9195 fi
9196
9197
9198 CFLAGS="$xorg_testset_save_CFLAGS"
9199
9200 eval supported=\$$cacheid
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9202 $as_echo "$supported" >&6; }
9203 if test "$supported" = "yes" ; then
9204 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9205 found="yes"
9206 fi
9207 fi
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223 xorg_testset_save_CFLAGS="$CFLAGS"
9224
9225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9228 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9229 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 int i;
9235 _ACEOF
9236 if ac_fn_c_try_compile "$LINENO"; then :
9237 xorg_cv_cc_flag_unknown_warning_option=yes
9238 else
9239 xorg_cv_cc_flag_unknown_warning_option=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9244 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9246 CFLAGS="$xorg_testset_save_CFLAGS"
9247 fi
9248
9249 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 fi
9253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9255 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9256 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 int i;
9262 _ACEOF
9263 if ac_fn_c_try_compile "$LINENO"; then :
9264 xorg_cv_cc_flag_unused_command_line_argument=yes
9265 else
9266 xorg_cv_cc_flag_unused_command_line_argument=no
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 fi
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9271 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9273 CFLAGS="$xorg_testset_save_CFLAGS"
9274 fi
9275
9276 found="no"
9277
9278 if test $found = "no" ; then
9279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9281 fi
9282
9283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9285 fi
9286
9287 CFLAGS="$CFLAGS -Wmain"
9288
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9290 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9291 cacheid=xorg_cv_cc_flag__Wmain
9292 if eval \${$cacheid+:} false; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297 int i;
9298 int
9299 main ()
9300 {
9301
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_c_try_link "$LINENO"; then :
9307 eval $cacheid=yes
9308 else
9309 eval $cacheid=no
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 fi
9314
9315
9316 CFLAGS="$xorg_testset_save_CFLAGS"
9317
9318 eval supported=\$$cacheid
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9320 $as_echo "$supported" >&6; }
9321 if test "$supported" = "yes" ; then
9322 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9323 found="yes"
9324 fi
9325 fi
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341 xorg_testset_save_CFLAGS="$CFLAGS"
9342
9343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 int i;
9353 _ACEOF
9354 if ac_fn_c_try_compile "$LINENO"; then :
9355 xorg_cv_cc_flag_unknown_warning_option=yes
9356 else
9357 xorg_cv_cc_flag_unknown_warning_option=no
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 fi
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9364 CFLAGS="$xorg_testset_save_CFLAGS"
9365 fi
9366
9367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370 fi
9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 int i;
9380 _ACEOF
9381 if ac_fn_c_try_compile "$LINENO"; then :
9382 xorg_cv_cc_flag_unused_command_line_argument=yes
9383 else
9384 xorg_cv_cc_flag_unused_command_line_argument=no
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 fi
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9391 CFLAGS="$xorg_testset_save_CFLAGS"
9392 fi
9393
9394 found="no"
9395
9396 if test $found = "no" ; then
9397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399 fi
9400
9401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9403 fi
9404
9405 CFLAGS="$CFLAGS -Wmissing-braces"
9406
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9408 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9409 cacheid=xorg_cv_cc_flag__Wmissing_braces
9410 if eval \${$cacheid+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 int i;
9416 int
9417 main ()
9418 {
9419
9420 ;
9421 return 0;
9422 }
9423 _ACEOF
9424 if ac_fn_c_try_link "$LINENO"; then :
9425 eval $cacheid=yes
9426 else
9427 eval $cacheid=no
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431 fi
9432
9433
9434 CFLAGS="$xorg_testset_save_CFLAGS"
9435
9436 eval supported=\$$cacheid
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9438 $as_echo "$supported" >&6; }
9439 if test "$supported" = "yes" ; then
9440 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9441 found="yes"
9442 fi
9443 fi
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459 xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int i;
9471 _ACEOF
9472 if ac_fn_c_try_compile "$LINENO"; then :
9473 xorg_cv_cc_flag_unknown_warning_option=yes
9474 else
9475 xorg_cv_cc_flag_unknown_warning_option=no
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 fi
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9480 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9482 CFLAGS="$xorg_testset_save_CFLAGS"
9483 fi
9484
9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488 fi
9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9492 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 int i;
9498 _ACEOF
9499 if ac_fn_c_try_compile "$LINENO"; then :
9500 xorg_cv_cc_flag_unused_command_line_argument=yes
9501 else
9502 xorg_cv_cc_flag_unused_command_line_argument=no
9503 fi
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9507 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9509 CFLAGS="$xorg_testset_save_CFLAGS"
9510 fi
9511
9512 found="no"
9513
9514 if test $found = "no" ; then
9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517 fi
9518
9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521 fi
9522
9523 CFLAGS="$CFLAGS -Wsequence-point"
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9526 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9527 cacheid=xorg_cv_cc_flag__Wsequence_point
9528 if eval \${$cacheid+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533 int i;
9534 int
9535 main ()
9536 {
9537
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_c_try_link "$LINENO"; then :
9543 eval $cacheid=yes
9544 else
9545 eval $cacheid=no
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9549 fi
9550
9551
9552 CFLAGS="$xorg_testset_save_CFLAGS"
9553
9554 eval supported=\$$cacheid
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9556 $as_echo "$supported" >&6; }
9557 if test "$supported" = "yes" ; then
9558 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9559 found="yes"
9560 fi
9561 fi
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577 xorg_testset_save_CFLAGS="$CFLAGS"
9578
9579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 int i;
9589 _ACEOF
9590 if ac_fn_c_try_compile "$LINENO"; then :
9591 xorg_cv_cc_flag_unknown_warning_option=yes
9592 else
9593 xorg_cv_cc_flag_unknown_warning_option=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9600 CFLAGS="$xorg_testset_save_CFLAGS"
9601 fi
9602
9603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 fi
9607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615 int i;
9616 _ACEOF
9617 if ac_fn_c_try_compile "$LINENO"; then :
9618 xorg_cv_cc_flag_unused_command_line_argument=yes
9619 else
9620 xorg_cv_cc_flag_unused_command_line_argument=no
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 fi
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9627 CFLAGS="$xorg_testset_save_CFLAGS"
9628 fi
9629
9630 found="no"
9631
9632 if test $found = "no" ; then
9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635 fi
9636
9637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9639 fi
9640
9641 CFLAGS="$CFLAGS -Wreturn-type"
9642
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9644 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9645 cacheid=xorg_cv_cc_flag__Wreturn_type
9646 if eval \${$cacheid+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 int i;
9652 int
9653 main ()
9654 {
9655
9656 ;
9657 return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_c_try_link "$LINENO"; then :
9661 eval $cacheid=yes
9662 else
9663 eval $cacheid=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667 fi
9668
9669
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671
9672 eval supported=\$$cacheid
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9674 $as_echo "$supported" >&6; }
9675 if test "$supported" = "yes" ; then
9676 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9677 found="yes"
9678 fi
9679 fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695 xorg_testset_save_CFLAGS="$CFLAGS"
9696
9697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 int i;
9707 _ACEOF
9708 if ac_fn_c_try_compile "$LINENO"; then :
9709 xorg_cv_cc_flag_unknown_warning_option=yes
9710 else
9711 xorg_cv_cc_flag_unknown_warning_option=no
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 fi
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9718 CFLAGS="$xorg_testset_save_CFLAGS"
9719 fi
9720
9721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 fi
9725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9733 int i;
9734 _ACEOF
9735 if ac_fn_c_try_compile "$LINENO"; then :
9736 xorg_cv_cc_flag_unused_command_line_argument=yes
9737 else
9738 xorg_cv_cc_flag_unused_command_line_argument=no
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9741 fi
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9745 CFLAGS="$xorg_testset_save_CFLAGS"
9746 fi
9747
9748 found="no"
9749
9750 if test $found = "no" ; then
9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753 fi
9754
9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757 fi
9758
9759 CFLAGS="$CFLAGS -Wtrigraphs"
9760
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9762 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9763 cacheid=xorg_cv_cc_flag__Wtrigraphs
9764 if eval \${$cacheid+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 int i;
9770 int
9771 main ()
9772 {
9773
9774 ;
9775 return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_link "$LINENO"; then :
9779 eval $cacheid=yes
9780 else
9781 eval $cacheid=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 fi
9786
9787
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789
9790 eval supported=\$$cacheid
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9792 $as_echo "$supported" >&6; }
9793 if test "$supported" = "yes" ; then
9794 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9795 found="yes"
9796 fi
9797 fi
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 xorg_testset_save_CFLAGS="$CFLAGS"
9814
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 int i;
9825 _ACEOF
9826 if ac_fn_c_try_compile "$LINENO"; then :
9827 xorg_cv_cc_flag_unknown_warning_option=yes
9828 else
9829 xorg_cv_cc_flag_unknown_warning_option=no
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9836 CFLAGS="$xorg_testset_save_CFLAGS"
9837 fi
9838
9839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842 fi
9843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 int i;
9852 _ACEOF
9853 if ac_fn_c_try_compile "$LINENO"; then :
9854 xorg_cv_cc_flag_unused_command_line_argument=yes
9855 else
9856 xorg_cv_cc_flag_unused_command_line_argument=no
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9863 CFLAGS="$xorg_testset_save_CFLAGS"
9864 fi
9865
9866 found="no"
9867
9868 if test $found = "no" ; then
9869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9871 fi
9872
9873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9875 fi
9876
9877 CFLAGS="$CFLAGS -Warray-bounds"
9878
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9880 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9881 cacheid=xorg_cv_cc_flag__Warray_bounds
9882 if eval \${$cacheid+:} false; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9887 int i;
9888 int
9889 main ()
9890 {
9891
9892 ;
9893 return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897 eval $cacheid=yes
9898 else
9899 eval $cacheid=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 fi
9904
9905
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9907
9908 eval supported=\$$cacheid
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9910 $as_echo "$supported" >&6; }
9911 if test "$supported" = "yes" ; then
9912 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9913 found="yes"
9914 fi
9915 fi
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931 xorg_testset_save_CFLAGS="$CFLAGS"
9932
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 int i;
9943 _ACEOF
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945 xorg_cv_cc_flag_unknown_warning_option=yes
9946 else
9947 xorg_cv_cc_flag_unknown_warning_option=no
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9954 CFLAGS="$xorg_testset_save_CFLAGS"
9955 fi
9956
9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960 fi
9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969 int i;
9970 _ACEOF
9971 if ac_fn_c_try_compile "$LINENO"; then :
9972 xorg_cv_cc_flag_unused_command_line_argument=yes
9973 else
9974 xorg_cv_cc_flag_unused_command_line_argument=no
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9981 CFLAGS="$xorg_testset_save_CFLAGS"
9982 fi
9983
9984 found="no"
9985
9986 if test $found = "no" ; then
9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989 fi
9990
9991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9993 fi
9994
9995 CFLAGS="$CFLAGS -Wwrite-strings"
9996
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9998 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9999 cacheid=xorg_cv_cc_flag__Wwrite_strings
10000 if eval \${$cacheid+:} false; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 int i;
10006 int
10007 main ()
10008 {
10009
10010 ;
10011 return 0;
10012 }
10013 _ACEOF
10014 if ac_fn_c_try_link "$LINENO"; then :
10015 eval $cacheid=yes
10016 else
10017 eval $cacheid=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 fi
10022
10023
10024 CFLAGS="$xorg_testset_save_CFLAGS"
10025
10026 eval supported=\$$cacheid
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10028 $as_echo "$supported" >&6; }
10029 if test "$supported" = "yes" ; then
10030 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10031 found="yes"
10032 fi
10033 fi
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049 xorg_testset_save_CFLAGS="$CFLAGS"
10050
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10060 int i;
10061 _ACEOF
10062 if ac_fn_c_try_compile "$LINENO"; then :
10063 xorg_cv_cc_flag_unknown_warning_option=yes
10064 else
10065 xorg_cv_cc_flag_unknown_warning_option=no
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10072 CFLAGS="$xorg_testset_save_CFLAGS"
10073 fi
10074
10075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078 fi
10079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10087 int i;
10088 _ACEOF
10089 if ac_fn_c_try_compile "$LINENO"; then :
10090 xorg_cv_cc_flag_unused_command_line_argument=yes
10091 else
10092 xorg_cv_cc_flag_unused_command_line_argument=no
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 fi
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10099 CFLAGS="$xorg_testset_save_CFLAGS"
10100 fi
10101
10102 found="no"
10103
10104 if test $found = "no" ; then
10105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10107 fi
10108
10109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10111 fi
10112
10113 CFLAGS="$CFLAGS -Waddress"
10114
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10116 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10117 cacheid=xorg_cv_cc_flag__Waddress
10118 if eval \${$cacheid+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123 int i;
10124 int
10125 main ()
10126 {
10127
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10133 eval $cacheid=yes
10134 else
10135 eval $cacheid=no
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 fi
10140
10141
10142 CFLAGS="$xorg_testset_save_CFLAGS"
10143
10144 eval supported=\$$cacheid
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10146 $as_echo "$supported" >&6; }
10147 if test "$supported" = "yes" ; then
10148 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10149 found="yes"
10150 fi
10151 fi
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167 xorg_testset_save_CFLAGS="$CFLAGS"
10168
10169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 int i;
10179 _ACEOF
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181 xorg_cv_cc_flag_unknown_warning_option=yes
10182 else
10183 xorg_cv_cc_flag_unknown_warning_option=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191 fi
10192
10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196 fi
10197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 int i;
10206 _ACEOF
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208 xorg_cv_cc_flag_unused_command_line_argument=yes
10209 else
10210 xorg_cv_cc_flag_unused_command_line_argument=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10217 CFLAGS="$xorg_testset_save_CFLAGS"
10218 fi
10219
10220 found="no"
10221
10222 if test $found = "no" ; then
10223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225 fi
10226
10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10229 fi
10230
10231 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10234 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10235 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10236 if eval \${$cacheid+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 int i;
10242 int
10243 main ()
10244 {
10245
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 eval $cacheid=yes
10252 else
10253 eval $cacheid=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 fi
10258
10259
10260 CFLAGS="$xorg_testset_save_CFLAGS"
10261
10262 eval supported=\$$cacheid
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10264 $as_echo "$supported" >&6; }
10265 if test "$supported" = "yes" ; then
10266 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10267 found="yes"
10268 fi
10269 fi
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285 xorg_testset_save_CFLAGS="$CFLAGS"
10286
10287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10296 int i;
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 xorg_cv_cc_flag_unknown_warning_option=yes
10300 else
10301 xorg_cv_cc_flag_unknown_warning_option=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10308 CFLAGS="$xorg_testset_save_CFLAGS"
10309 fi
10310
10311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314 fi
10315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 int i;
10324 _ACEOF
10325 if ac_fn_c_try_compile "$LINENO"; then :
10326 xorg_cv_cc_flag_unused_command_line_argument=yes
10327 else
10328 xorg_cv_cc_flag_unused_command_line_argument=no
10329 fi
10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10335 CFLAGS="$xorg_testset_save_CFLAGS"
10336 fi
10337
10338 found="no"
10339
10340 if test $found = "no" ; then
10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343 fi
10344
10345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347 fi
10348
10349 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10352 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10353 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10354 if eval \${$cacheid+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359 int i;
10360 int
10361 main ()
10362 {
10363
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 eval $cacheid=yes
10370 else
10371 eval $cacheid=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 fi
10376
10377
10378 CFLAGS="$xorg_testset_save_CFLAGS"
10379
10380 eval supported=\$$cacheid
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10382 $as_echo "$supported" >&6; }
10383 if test "$supported" = "yes" ; then
10384 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10385 found="yes"
10386 fi
10387 fi
10388
10389
10390 fi
10391
10392
10393
10394
10395
10396
10397
10398 CWARNFLAGS="$BASE_CFLAGS"
10399 if test "x$GCC" = xyes ; then
10400 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10401 fi
10402
10403
10404
10405
10406
10407
10408
10409
10410 # Check whether --enable-strict-compilation was given.
10411 if test "${enable_strict_compilation+set}" = set; then :
10412 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10413 else
10414 STRICT_COMPILE=no
10415 fi
10416
10417
10418
10419
10420
10421
10422 STRICT_CFLAGS=""
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436 xorg_testset_save_CFLAGS="$CFLAGS"
10437
10438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 int i;
10448 _ACEOF
10449 if ac_fn_c_try_compile "$LINENO"; then :
10450 xorg_cv_cc_flag_unknown_warning_option=yes
10451 else
10452 xorg_cv_cc_flag_unknown_warning_option=no
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10459 CFLAGS="$xorg_testset_save_CFLAGS"
10460 fi
10461
10462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10465 fi
10466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10474 int i;
10475 _ACEOF
10476 if ac_fn_c_try_compile "$LINENO"; then :
10477 xorg_cv_cc_flag_unused_command_line_argument=yes
10478 else
10479 xorg_cv_cc_flag_unused_command_line_argument=no
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 fi
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10486 CFLAGS="$xorg_testset_save_CFLAGS"
10487 fi
10488
10489 found="no"
10490
10491 if test $found = "no" ; then
10492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10494 fi
10495
10496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10498 fi
10499
10500 CFLAGS="$CFLAGS -pedantic"
10501
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10503 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10504 cacheid=xorg_cv_cc_flag__pedantic
10505 if eval \${$cacheid+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 int i;
10511 int
10512 main ()
10513 {
10514
10515 ;
10516 return 0;
10517 }
10518 _ACEOF
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 eval $cacheid=yes
10521 else
10522 eval $cacheid=no
10523 fi
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 fi
10527
10528
10529 CFLAGS="$xorg_testset_save_CFLAGS"
10530
10531 eval supported=\$$cacheid
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10533 $as_echo "$supported" >&6; }
10534 if test "$supported" = "yes" ; then
10535 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10536 found="yes"
10537 fi
10538 fi
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554 xorg_testset_save_CFLAGS="$CFLAGS"
10555
10556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 int i;
10566 _ACEOF
10567 if ac_fn_c_try_compile "$LINENO"; then :
10568 xorg_cv_cc_flag_unknown_warning_option=yes
10569 else
10570 xorg_cv_cc_flag_unknown_warning_option=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 fi
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10577 CFLAGS="$xorg_testset_save_CFLAGS"
10578 fi
10579
10580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583 fi
10584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 int i;
10593 _ACEOF
10594 if ac_fn_c_try_compile "$LINENO"; then :
10595 xorg_cv_cc_flag_unused_command_line_argument=yes
10596 else
10597 xorg_cv_cc_flag_unused_command_line_argument=no
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 fi
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10604 CFLAGS="$xorg_testset_save_CFLAGS"
10605 fi
10606
10607 found="no"
10608
10609 if test $found = "no" ; then
10610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612 fi
10613
10614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10616 fi
10617
10618 CFLAGS="$CFLAGS -Werror"
10619
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10621 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10622 cacheid=xorg_cv_cc_flag__Werror
10623 if eval \${$cacheid+:} false; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 int i;
10629 int
10630 main ()
10631 {
10632
10633 ;
10634 return 0;
10635 }
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 eval $cacheid=yes
10639 else
10640 eval $cacheid=no
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 fi
10645
10646
10647 CFLAGS="$xorg_testset_save_CFLAGS"
10648
10649 eval supported=\$$cacheid
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10651 $as_echo "$supported" >&6; }
10652 if test "$supported" = "yes" ; then
10653 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10654 found="yes"
10655 fi
10656 fi
10657
10658 if test $found = "no" ; then
10659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10661 fi
10662
10663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10665 fi
10666
10667 CFLAGS="$CFLAGS -errwarn"
10668
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10670 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10671 cacheid=xorg_cv_cc_flag__errwarn
10672 if eval \${$cacheid+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 int i;
10678 int
10679 main ()
10680 {
10681
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 eval $cacheid=yes
10688 else
10689 eval $cacheid=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 fi
10694
10695
10696 CFLAGS="$xorg_testset_save_CFLAGS"
10697
10698 eval supported=\$$cacheid
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10700 $as_echo "$supported" >&6; }
10701 if test "$supported" = "yes" ; then
10702 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10703 found="yes"
10704 fi
10705 fi
10706
10707
10708
10709 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10710 # activate it with -Werror, so we add it here explicitly.
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724 xorg_testset_save_CFLAGS="$CFLAGS"
10725
10726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 int i;
10736 _ACEOF
10737 if ac_fn_c_try_compile "$LINENO"; then :
10738 xorg_cv_cc_flag_unknown_warning_option=yes
10739 else
10740 xorg_cv_cc_flag_unknown_warning_option=no
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10747 CFLAGS="$xorg_testset_save_CFLAGS"
10748 fi
10749
10750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10753 fi
10754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 int i;
10763 _ACEOF
10764 if ac_fn_c_try_compile "$LINENO"; then :
10765 xorg_cv_cc_flag_unused_command_line_argument=yes
10766 else
10767 xorg_cv_cc_flag_unused_command_line_argument=no
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10774 CFLAGS="$xorg_testset_save_CFLAGS"
10775 fi
10776
10777 found="no"
10778
10779 if test $found = "no" ; then
10780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10782 fi
10783
10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10786 fi
10787
10788 CFLAGS="$CFLAGS -Werror=attributes"
10789
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10791 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10792 cacheid=xorg_cv_cc_flag__Werror_attributes
10793 if eval \${$cacheid+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798 int i;
10799 int
10800 main ()
10801 {
10802
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 eval $cacheid=yes
10809 else
10810 eval $cacheid=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 fi
10815
10816
10817 CFLAGS="$xorg_testset_save_CFLAGS"
10818
10819 eval supported=\$$cacheid
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10821 $as_echo "$supported" >&6; }
10822 if test "$supported" = "yes" ; then
10823 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10824 found="yes"
10825 fi
10826 fi
10827
10828
10829
10830 if test "x$STRICT_COMPILE" = "xyes"; then
10831 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10832 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10833 fi
10834
10835
10836
10837
10838
10839
10840 cat >>confdefs.h <<_ACEOF
10841 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10842 _ACEOF
10843
10844 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10845 if test "x$PVM" = "x"; then
10846 PVM="0"
10847 fi
10848
10849 cat >>confdefs.h <<_ACEOF
10850 #define PACKAGE_VERSION_MINOR $PVM
10851 _ACEOF
10852
10853 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10854 if test "x$PVP" = "x"; then
10855 PVP="0"
10856 fi
10857
10858 cat >>confdefs.h <<_ACEOF
10859 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10860 _ACEOF
10861
10862
10863
10864 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10865 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10866 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10867 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10868
10869
10870
10871
10872 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10873 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10874 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10875 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10876 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10877
10878
10879
10880
10881
10882
10883 if test x$APP_MAN_SUFFIX = x ; then
10884 APP_MAN_SUFFIX=1
10885 fi
10886 if test x$APP_MAN_DIR = x ; then
10887 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10888 fi
10889
10890 if test x$LIB_MAN_SUFFIX = x ; then
10891 LIB_MAN_SUFFIX=3
10892 fi
10893 if test x$LIB_MAN_DIR = x ; then
10894 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10895 fi
10896
10897 if test x$FILE_MAN_SUFFIX = x ; then
10898 case $host_os in
10899 solaris*) FILE_MAN_SUFFIX=4 ;;
10900 *) FILE_MAN_SUFFIX=5 ;;
10901 esac
10902 fi
10903 if test x$FILE_MAN_DIR = x ; then
10904 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10905 fi
10906
10907 if test x$MISC_MAN_SUFFIX = x ; then
10908 case $host_os in
10909 solaris*) MISC_MAN_SUFFIX=5 ;;
10910 *) MISC_MAN_SUFFIX=7 ;;
10911 esac
10912 fi
10913 if test x$MISC_MAN_DIR = x ; then
10914 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10915 fi
10916
10917 if test x$DRIVER_MAN_SUFFIX = x ; then
10918 case $host_os in
10919 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10920 *) DRIVER_MAN_SUFFIX=4 ;;
10921 esac
10922 fi
10923 if test x$DRIVER_MAN_DIR = x ; then
10924 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10925 fi
10926
10927 if test x$ADMIN_MAN_SUFFIX = x ; then
10928 case $host_os in
10929 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10930 *) ADMIN_MAN_SUFFIX=8 ;;
10931 esac
10932 fi
10933 if test x$ADMIN_MAN_DIR = x ; then
10934 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10935 fi
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951 XORG_MAN_PAGE="X Version 11"
10952
10953 MAN_SUBSTS="\
10954 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10955 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10956 -e 's|__xservername__|Xorg|g' \
10957 -e 's|__xconfigfile__|xorg.conf|g' \
10958 -e 's|__projectroot__|\$(prefix)|g' \
10959 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10960 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10961 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10962 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10963 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10964 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10965 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10966
10967
10968
10969 # Check whether --enable-silent-rules was given.
10970 if test "${enable_silent_rules+set}" = set; then :
10971 enableval=$enable_silent_rules;
10972 fi
10973
10974 case $enable_silent_rules in # (((
10975 yes) AM_DEFAULT_VERBOSITY=0;;
10976 no) AM_DEFAULT_VERBOSITY=1;;
10977 *) AM_DEFAULT_VERBOSITY=0;;
10978 esac
10979 am_make=${MAKE-make}
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10981 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10982 if ${am_cv_make_support_nested_variables+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 if $as_echo 'TRUE=$(BAR$(V))
10986 BAR0=false
10987 BAR1=true
10988 V=1
10989 am__doit:
10990 @$(TRUE)
10991 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10992 am_cv_make_support_nested_variables=yes
10993 else
10994 am_cv_make_support_nested_variables=no
10995 fi
10996 fi
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10998 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10999 if test $am_cv_make_support_nested_variables = yes; then
11000 AM_V='$(V)'
11001 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11002 else
11003 AM_V=$AM_DEFAULT_VERBOSITY
11004 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11005 fi
11006 AM_BACKSLASH='\'
11007
11008
11009
11010 # Initialize libtool
11011 # Check whether --enable-static was given.
11012 if test "${enable_static+set}" = set; then :
11013 enableval=$enable_static; p=${PACKAGE-default}
11014 case $enableval in
11015 yes) enable_static=yes ;;
11016 no) enable_static=no ;;
11017 *)
11018 enable_static=no
11019 # Look at the argument we got. We use all the common list separators.
11020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11021 for pkg in $enableval; do
11022 IFS="$lt_save_ifs"
11023 if test "X$pkg" = "X$p"; then
11024 enable_static=yes
11025 fi
11026 done
11027 IFS="$lt_save_ifs"
11028 ;;
11029 esac
11030 else
11031 enable_static=no
11032 fi
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042 case `pwd` in
11043 *\ * | *\ *)
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11045 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11046 esac
11047
11048
11049
11050 macro_version='2.4.2'
11051 macro_revision='1.3337'
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 ltmain="$ac_aux_dir/ltmain.sh"
11066
11067 # Backslashify metacharacters that are still active within
11068 # double-quoted strings.
11069 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11070
11071 # Same as above, but do not quote variable references.
11072 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11073
11074 # Sed substitution to delay expansion of an escaped shell variable in a
11075 # double_quote_subst'ed string.
11076 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11077
11078 # Sed substitution to delay expansion of an escaped single quote.
11079 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11080
11081 # Sed substitution to avoid accidental globbing in evaled expressions
11082 no_glob_subst='s/\*/\\\*/g'
11083
11084 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11085 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11087
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11089 $as_echo_n "checking how to print strings... " >&6; }
11090 # Test print first, because it will be a builtin if present.
11091 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11092 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11093 ECHO='print -r --'
11094 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11095 ECHO='printf %s\n'
11096 else
11097 # Use this function as a fallback that always works.
11098 func_fallback_echo ()
11099 {
11100 eval 'cat <<_LTECHO_EOF
11101 $1
11102 _LTECHO_EOF'
11103 }
11104 ECHO='func_fallback_echo'
11105 fi
11106
11107 # func_echo_all arg...
11108 # Invoke $ECHO with all args, space-separated.
11109 func_echo_all ()
11110 {
11111 $ECHO ""
11112 }
11113
11114 case "$ECHO" in
11115 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11116 $as_echo "printf" >&6; } ;;
11117 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11118 $as_echo "print -r" >&6; } ;;
11119 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11120 $as_echo "cat" >&6; } ;;
11121 esac
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11137 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11138 if ${ac_cv_path_SED+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11142 for ac_i in 1 2 3 4 5 6 7; do
11143 ac_script="$ac_script$as_nl$ac_script"
11144 done
11145 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11146 { ac_script=; unset ac_script;}
11147 if test -z "$SED"; then
11148 ac_path_SED_found=false
11149 # Loop through the user's path and test for each of PROGNAME-LIST
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH
11152 do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_prog in sed gsed; do
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11158 as_fn_executable_p "$ac_path_SED" || continue
11159 # Check for GNU ac_path_SED and select it if it is found.
11160 # Check for GNU $ac_path_SED
11161 case `"$ac_path_SED" --version 2>&1` in
11162 *GNU*)
11163 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11164 *)
11165 ac_count=0
11166 $as_echo_n 0123456789 >"conftest.in"
11167 while :
11168 do
11169 cat "conftest.in" "conftest.in" >"conftest.tmp"
11170 mv "conftest.tmp" "conftest.in"
11171 cp "conftest.in" "conftest.nl"
11172 $as_echo '' >> "conftest.nl"
11173 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11175 as_fn_arith $ac_count + 1 && ac_count=$as_val
11176 if test $ac_count -gt ${ac_path_SED_max-0}; then
11177 # Best one so far, save it but keep looking for a better one
11178 ac_cv_path_SED="$ac_path_SED"
11179 ac_path_SED_max=$ac_count
11180 fi
11181 # 10*(2^10) chars as input seems more than enough
11182 test $ac_count -gt 10 && break
11183 done
11184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11185 esac
11186
11187 $ac_path_SED_found && break 3
11188 done
11189 done
11190 done
11191 IFS=$as_save_IFS
11192 if test -z "$ac_cv_path_SED"; then
11193 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11194 fi
11195 else
11196 ac_cv_path_SED=$SED
11197 fi
11198
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11201 $as_echo "$ac_cv_path_SED" >&6; }
11202 SED="$ac_cv_path_SED"
11203 rm -f conftest.sed
11204
11205 test -z "$SED" && SED=sed
11206 Xsed="$SED -e 1s/^X//"
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11219 $as_echo_n "checking for fgrep... " >&6; }
11220 if ${ac_cv_path_FGREP+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11224 then ac_cv_path_FGREP="$GREP -F"
11225 else
11226 if test -z "$FGREP"; then
11227 ac_path_FGREP_found=false
11228 # Loop through the user's path and test for each of PROGNAME-LIST
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11231 do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_prog in fgrep; do
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11237 as_fn_executable_p "$ac_path_FGREP" || continue
11238 # Check for GNU ac_path_FGREP and select it if it is found.
11239 # Check for GNU $ac_path_FGREP
11240 case `"$ac_path_FGREP" --version 2>&1` in
11241 *GNU*)
11242 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11243 *)
11244 ac_count=0
11245 $as_echo_n 0123456789 >"conftest.in"
11246 while :
11247 do
11248 cat "conftest.in" "conftest.in" >"conftest.tmp"
11249 mv "conftest.tmp" "conftest.in"
11250 cp "conftest.in" "conftest.nl"
11251 $as_echo 'FGREP' >> "conftest.nl"
11252 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11254 as_fn_arith $ac_count + 1 && ac_count=$as_val
11255 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11256 # Best one so far, save it but keep looking for a better one
11257 ac_cv_path_FGREP="$ac_path_FGREP"
11258 ac_path_FGREP_max=$ac_count
11259 fi
11260 # 10*(2^10) chars as input seems more than enough
11261 test $ac_count -gt 10 && break
11262 done
11263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11264 esac
11265
11266 $ac_path_FGREP_found && break 3
11267 done
11268 done
11269 done
11270 IFS=$as_save_IFS
11271 if test -z "$ac_cv_path_FGREP"; then
11272 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11273 fi
11274 else
11275 ac_cv_path_FGREP=$FGREP
11276 fi
11277
11278 fi
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11281 $as_echo "$ac_cv_path_FGREP" >&6; }
11282 FGREP="$ac_cv_path_FGREP"
11283
11284
11285 test -z "$GREP" && GREP=grep
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305 # Check whether --with-gnu-ld was given.
11306 if test "${with_gnu_ld+set}" = set; then :
11307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11308 else
11309 with_gnu_ld=no
11310 fi
11311
11312 ac_prog=ld
11313 if test "$GCC" = yes; then
11314 # Check if gcc -print-prog-name=ld gives a path.
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11316 $as_echo_n "checking for ld used by $CC... " >&6; }
11317 case $host in
11318 *-*-mingw*)
11319 # gcc leaves a trailing carriage return which upsets mingw
11320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11321 *)
11322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11323 esac
11324 case $ac_prog in
11325 # Accept absolute paths.
11326 [\\/]* | ?:[\\/]*)
11327 re_direlt='/[^/][^/]*/\.\./'
11328 # Canonicalize the pathname of ld
11329 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11330 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11331 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11332 done
11333 test -z "$LD" && LD="$ac_prog"
11334 ;;
11335 "")
11336 # If it fails, then pretend we aren't using GCC.
11337 ac_prog=ld
11338 ;;
11339 *)
11340 # If it is relative, then search for the first ld in PATH.
11341 with_gnu_ld=unknown
11342 ;;
11343 esac
11344 elif test "$with_gnu_ld" = yes; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11346 $as_echo_n "checking for GNU ld... " >&6; }
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11349 $as_echo_n "checking for non-GNU ld... " >&6; }
11350 fi
11351 if ${lt_cv_path_LD+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 if test -z "$LD"; then
11355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11356 for ac_dir in $PATH; do
11357 IFS="$lt_save_ifs"
11358 test -z "$ac_dir" && ac_dir=.
11359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11360 lt_cv_path_LD="$ac_dir/$ac_prog"
11361 # Check to see if the program is GNU ld. I'd rather use --version,
11362 # but apparently some variants of GNU ld only accept -v.
11363 # Break only if it was the GNU/non-GNU ld that we prefer.
11364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11365 *GNU* | *'with BFD'*)
11366 test "$with_gnu_ld" != no && break
11367 ;;
11368 *)
11369 test "$with_gnu_ld" != yes && break
11370 ;;
11371 esac
11372 fi
11373 done
11374 IFS="$lt_save_ifs"
11375 else
11376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11377 fi
11378 fi
11379
11380 LD="$lt_cv_path_LD"
11381 if test -n "$LD"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11383 $as_echo "$LD" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11391 if ${lt_cv_prog_gnu_ld+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11395 case `$LD -v 2>&1 </dev/null` in
11396 *GNU* | *'with BFD'*)
11397 lt_cv_prog_gnu_ld=yes
11398 ;;
11399 *)
11400 lt_cv_prog_gnu_ld=no
11401 ;;
11402 esac
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11406 with_gnu_ld=$lt_cv_prog_gnu_ld
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11417 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11418 if ${lt_cv_path_NM+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 if test -n "$NM"; then
11422 # Let the user override the test.
11423 lt_cv_path_NM="$NM"
11424 else
11425 lt_nm_to_check="${ac_tool_prefix}nm"
11426 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11427 lt_nm_to_check="$lt_nm_to_check nm"
11428 fi
11429 for lt_tmp_nm in $lt_nm_to_check; do
11430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11431 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11432 IFS="$lt_save_ifs"
11433 test -z "$ac_dir" && ac_dir=.
11434 tmp_nm="$ac_dir/$lt_tmp_nm"
11435 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11436 # Check to see if the nm accepts a BSD-compat flag.
11437 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11438 # nm: unknown option "B" ignored
11439 # Tru64's nm complains that /dev/null is an invalid object file
11440 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11441 */dev/null* | *'Invalid file or object type'*)
11442 lt_cv_path_NM="$tmp_nm -B"
11443 break
11444 ;;
11445 *)
11446 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11447 */dev/null*)
11448 lt_cv_path_NM="$tmp_nm -p"
11449 break
11450 ;;
11451 *)
11452 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11453 continue # so that we can try to find one that supports BSD flags
11454 ;;
11455 esac
11456 ;;
11457 esac
11458 fi
11459 done
11460 IFS="$lt_save_ifs"
11461 done
11462 : ${lt_cv_path_NM=no}
11463 fi
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11466 $as_echo "$lt_cv_path_NM" >&6; }
11467 if test "$lt_cv_path_NM" != "no"; then
11468 NM="$lt_cv_path_NM"
11469 else
11470 # Didn't find any BSD compatible name lister, look for dumpbin.
11471 if test -n "$DUMPBIN"; then :
11472 # Let the user override the test.
11473 else
11474 if test -n "$ac_tool_prefix"; then
11475 for ac_prog in dumpbin "link -dump"
11476 do
11477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_prog_DUMPBIN+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 if test -n "$DUMPBIN"; then
11485 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11486 else
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11494 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 break 2
11497 fi
11498 done
11499 done
11500 IFS=$as_save_IFS
11501
11502 fi
11503 fi
11504 DUMPBIN=$ac_cv_prog_DUMPBIN
11505 if test -n "$DUMPBIN"; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11507 $as_echo "$DUMPBIN" >&6; }
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511 fi
11512
11513
11514 test -n "$DUMPBIN" && break
11515 done
11516 fi
11517 if test -z "$DUMPBIN"; then
11518 ac_ct_DUMPBIN=$DUMPBIN
11519 for ac_prog in dumpbin "link -dump"
11520 do
11521 # Extract the first word of "$ac_prog", so it can be a program name with args.
11522 set dummy $ac_prog; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 if test -n "$ac_ct_DUMPBIN"; then
11529 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11530 else
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11533 do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11538 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11541 fi
11542 done
11543 done
11544 IFS=$as_save_IFS
11545
11546 fi
11547 fi
11548 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11549 if test -n "$ac_ct_DUMPBIN"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11551 $as_echo "$ac_ct_DUMPBIN" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555 fi
11556
11557
11558 test -n "$ac_ct_DUMPBIN" && break
11559 done
11560
11561 if test "x$ac_ct_DUMPBIN" = x; then
11562 DUMPBIN=":"
11563 else
11564 case $cross_compiling:$ac_tool_warned in
11565 yes:)
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11568 ac_tool_warned=yes ;;
11569 esac
11570 DUMPBIN=$ac_ct_DUMPBIN
11571 fi
11572 fi
11573
11574 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11575 *COFF*)
11576 DUMPBIN="$DUMPBIN -symbols"
11577 ;;
11578 *)
11579 DUMPBIN=:
11580 ;;
11581 esac
11582 fi
11583
11584 if test "$DUMPBIN" != ":"; then
11585 NM="$DUMPBIN"
11586 fi
11587 fi
11588 test -z "$NM" && NM=nm
11589
11590
11591
11592
11593
11594
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11596 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11597 if ${lt_cv_nm_interface+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 lt_cv_nm_interface="BSD nm"
11601 echo "int some_variable = 0;" > conftest.$ac_ext
11602 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11603 (eval "$ac_compile" 2>conftest.err)
11604 cat conftest.err >&5
11605 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11606 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11607 cat conftest.err >&5
11608 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11609 cat conftest.out >&5
11610 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11611 lt_cv_nm_interface="MS dumpbin"
11612 fi
11613 rm -f conftest*
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11616 $as_echo "$lt_cv_nm_interface" >&6; }
11617
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11619 $as_echo_n "checking whether ln -s works... " >&6; }
11620 LN_S=$as_ln_s
11621 if test "$LN_S" = "ln -s"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11626 $as_echo "no, using $LN_S" >&6; }
11627 fi
11628
11629 # find the maximum length of command line arguments
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11631 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11632 if ${lt_cv_sys_max_cmd_len+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 i=0
11636 teststring="ABCD"
11637
11638 case $build_os in
11639 msdosdjgpp*)
11640 # On DJGPP, this test can blow up pretty badly due to problems in libc
11641 # (any single argument exceeding 2000 bytes causes a buffer overrun
11642 # during glob expansion). Even if it were fixed, the result of this
11643 # check would be larger than it should be.
11644 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11645 ;;
11646
11647 gnu*)
11648 # Under GNU Hurd, this test is not required because there is
11649 # no limit to the length of command line arguments.
11650 # Libtool will interpret -1 as no limit whatsoever
11651 lt_cv_sys_max_cmd_len=-1;
11652 ;;
11653
11654 cygwin* | mingw* | cegcc*)
11655 # On Win9x/ME, this test blows up -- it succeeds, but takes
11656 # about 5 minutes as the teststring grows exponentially.
11657 # Worse, since 9x/ME are not pre-emptively multitasking,
11658 # you end up with a "frozen" computer, even though with patience
11659 # the test eventually succeeds (with a max line length of 256k).
11660 # Instead, let's just punt: use the minimum linelength reported by
11661 # all of the supported platforms: 8192 (on NT/2K/XP).
11662 lt_cv_sys_max_cmd_len=8192;
11663 ;;
11664
11665 mint*)
11666 # On MiNT this can take a long time and run out of memory.
11667 lt_cv_sys_max_cmd_len=8192;
11668 ;;
11669
11670 amigaos*)
11671 # On AmigaOS with pdksh, this test takes hours, literally.
11672 # So we just punt and use a minimum line length of 8192.
11673 lt_cv_sys_max_cmd_len=8192;
11674 ;;
11675
11676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11677 # This has been around since 386BSD, at least. Likely further.
11678 if test -x /sbin/sysctl; then
11679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11680 elif test -x /usr/sbin/sysctl; then
11681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11682 else
11683 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11684 fi
11685 # And add a safety zone
11686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11688 ;;
11689
11690 interix*)
11691 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11692 lt_cv_sys_max_cmd_len=196608
11693 ;;
11694
11695 os2*)
11696 # The test takes a long time on OS/2.
11697 lt_cv_sys_max_cmd_len=8192
11698 ;;
11699
11700 osf*)
11701 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11702 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11703 # nice to cause kernel panics so lets avoid the loop below.
11704 # First set a reasonable default.
11705 lt_cv_sys_max_cmd_len=16384
11706 #
11707 if test -x /sbin/sysconfig; then
11708 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11709 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11710 esac
11711 fi
11712 ;;
11713 sco3.2v5*)
11714 lt_cv_sys_max_cmd_len=102400
11715 ;;
11716 sysv5* | sco5v6* | sysv4.2uw2*)
11717 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11718 if test -n "$kargmax"; then
11719 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11720 else
11721 lt_cv_sys_max_cmd_len=32768
11722 fi
11723 ;;
11724 *)
11725 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11726 if test -n "$lt_cv_sys_max_cmd_len"; then
11727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11729 else
11730 # Make teststring a little bigger before we do anything with it.
11731 # a 1K string should be a reasonable start.
11732 for i in 1 2 3 4 5 6 7 8 ; do
11733 teststring=$teststring$teststring
11734 done
11735 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11736 # If test is not a shell built-in, we'll probably end up computing a
11737 # maximum length that is only half of the actual maximum length, but
11738 # we can't tell.
11739 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11740 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11741 test $i != 17 # 1/2 MB should be enough
11742 do
11743 i=`expr $i + 1`
11744 teststring=$teststring$teststring
11745 done
11746 # Only check the string length outside the loop.
11747 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11748 teststring=
11749 # Add a significant safety factor because C++ compilers can tack on
11750 # massive amounts of additional arguments before passing them to the
11751 # linker. It appears as though 1/2 is a usable value.
11752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11753 fi
11754 ;;
11755 esac
11756
11757 fi
11758
11759 if test -n $lt_cv_sys_max_cmd_len ; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11761 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11764 $as_echo "none" >&6; }
11765 fi
11766 max_cmd_len=$lt_cv_sys_max_cmd_len
11767
11768
11769
11770
11771
11772
11773 : ${CP="cp -f"}
11774 : ${MV="mv -f"}
11775 : ${RM="rm -f"}
11776
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11778 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11779 # Try some XSI features
11780 xsi_shell=no
11781 ( _lt_dummy="a/b/c"
11782 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11783 = c,a/b,b/c, \
11784 && eval 'test $(( 1 + 1 )) -eq 2 \
11785 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11786 && xsi_shell=yes
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11788 $as_echo "$xsi_shell" >&6; }
11789
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11792 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11793 lt_shell_append=no
11794 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11795 >/dev/null 2>&1 \
11796 && lt_shell_append=yes
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11798 $as_echo "$lt_shell_append" >&6; }
11799
11800
11801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11802 lt_unset=unset
11803 else
11804 lt_unset=false
11805 fi
11806
11807
11808
11809
11810
11811 # test EBCDIC or ASCII
11812 case `echo X|tr X '\101'` in
11813 A) # ASCII based system
11814 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11815 lt_SP2NL='tr \040 \012'
11816 lt_NL2SP='tr \015\012 \040\040'
11817 ;;
11818 *) # EBCDIC based system
11819 lt_SP2NL='tr \100 \n'
11820 lt_NL2SP='tr \r\n \100\100'
11821 ;;
11822 esac
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11833 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11834 if ${lt_cv_to_host_file_cmd+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 case $host in
11838 *-*-mingw* )
11839 case $build in
11840 *-*-mingw* ) # actually msys
11841 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11842 ;;
11843 *-*-cygwin* )
11844 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11845 ;;
11846 * ) # otherwise, assume *nix
11847 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11848 ;;
11849 esac
11850 ;;
11851 *-*-cygwin* )
11852 case $build in
11853 *-*-mingw* ) # actually msys
11854 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11855 ;;
11856 *-*-cygwin* )
11857 lt_cv_to_host_file_cmd=func_convert_file_noop
11858 ;;
11859 * ) # otherwise, assume *nix
11860 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11861 ;;
11862 esac
11863 ;;
11864 * ) # unhandled hosts (and "normal" native builds)
11865 lt_cv_to_host_file_cmd=func_convert_file_noop
11866 ;;
11867 esac
11868
11869 fi
11870
11871 to_host_file_cmd=$lt_cv_to_host_file_cmd
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11873 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11874
11875
11876
11877
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11880 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11881 if ${lt_cv_to_tool_file_cmd+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 #assume ordinary cross tools, or native build.
11885 lt_cv_to_tool_file_cmd=func_convert_file_noop
11886 case $host in
11887 *-*-mingw* )
11888 case $build in
11889 *-*-mingw* ) # actually msys
11890 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11891 ;;
11892 esac
11893 ;;
11894 esac
11895
11896 fi
11897
11898 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11900 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11901
11902
11903
11904
11905
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11907 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11908 if ${lt_cv_ld_reload_flag+:} false; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 lt_cv_ld_reload_flag='-r'
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11914 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11915 reload_flag=$lt_cv_ld_reload_flag
11916 case $reload_flag in
11917 "" | " "*) ;;
11918 *) reload_flag=" $reload_flag" ;;
11919 esac
11920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11921 case $host_os in
11922 cygwin* | mingw* | pw32* | cegcc*)
11923 if test "$GCC" != yes; then
11924 reload_cmds=false
11925 fi
11926 ;;
11927 darwin*)
11928 if test "$GCC" = yes; then
11929 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11930 else
11931 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11932 fi
11933 ;;
11934 esac
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944 if test -n "$ac_tool_prefix"; then
11945 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11946 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if ${ac_cv_prog_OBJDUMP+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test -n "$OBJDUMP"; then
11953 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11954 else
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11957 do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11962 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11965 fi
11966 done
11967 done
11968 IFS=$as_save_IFS
11969
11970 fi
11971 fi
11972 OBJDUMP=$ac_cv_prog_OBJDUMP
11973 if test -n "$OBJDUMP"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11975 $as_echo "$OBJDUMP" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979 fi
11980
11981
11982 fi
11983 if test -z "$ac_cv_prog_OBJDUMP"; then
11984 ac_ct_OBJDUMP=$OBJDUMP
11985 # Extract the first word of "objdump", so it can be a program name with args.
11986 set dummy objdump; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 if test -n "$ac_ct_OBJDUMP"; then
11993 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11994 else
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11997 do
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12002 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12005 fi
12006 done
12007 done
12008 IFS=$as_save_IFS
12009
12010 fi
12011 fi
12012 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12013 if test -n "$ac_ct_OBJDUMP"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12015 $as_echo "$ac_ct_OBJDUMP" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12019 fi
12020
12021 if test "x$ac_ct_OBJDUMP" = x; then
12022 OBJDUMP="false"
12023 else
12024 case $cross_compiling:$ac_tool_warned in
12025 yes:)
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12028 ac_tool_warned=yes ;;
12029 esac
12030 OBJDUMP=$ac_ct_OBJDUMP
12031 fi
12032 else
12033 OBJDUMP="$ac_cv_prog_OBJDUMP"
12034 fi
12035
12036 test -z "$OBJDUMP" && OBJDUMP=objdump
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12047 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12048 if ${lt_cv_deplibs_check_method+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 lt_cv_file_magic_cmd='$MAGIC_CMD'
12052 lt_cv_file_magic_test_file=
12053 lt_cv_deplibs_check_method='unknown'
12054 # Need to set the preceding variable on all platforms that support
12055 # interlibrary dependencies.
12056 # 'none' -- dependencies not supported.
12057 # `unknown' -- same as none, but documents that we really don't know.
12058 # 'pass_all' -- all dependencies passed with no checks.
12059 # 'test_compile' -- check by making test program.
12060 # 'file_magic [[regex]]' -- check by looking for files in library path
12061 # which responds to the $file_magic_cmd with a given extended regex.
12062 # If you have `file' or equivalent on your system and you're not sure
12063 # whether `pass_all' will *always* work, you probably want this one.
12064
12065 case $host_os in
12066 aix[4-9]*)
12067 lt_cv_deplibs_check_method=pass_all
12068 ;;
12069
12070 beos*)
12071 lt_cv_deplibs_check_method=pass_all
12072 ;;
12073
12074 bsdi[45]*)
12075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12076 lt_cv_file_magic_cmd='/usr/bin/file -L'
12077 lt_cv_file_magic_test_file=/shlib/libc.so
12078 ;;
12079
12080 cygwin*)
12081 # func_win32_libid is a shell function defined in ltmain.sh
12082 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12083 lt_cv_file_magic_cmd='func_win32_libid'
12084 ;;
12085
12086 mingw* | pw32*)
12087 # Base MSYS/MinGW do not provide the 'file' command needed by
12088 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12089 # unless we find 'file', for example because we are cross-compiling.
12090 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12091 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12093 lt_cv_file_magic_cmd='func_win32_libid'
12094 else
12095 # Keep this pattern in sync with the one in func_win32_libid.
12096 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12097 lt_cv_file_magic_cmd='$OBJDUMP -f'
12098 fi
12099 ;;
12100
12101 cegcc*)
12102 # use the weaker test based on 'objdump'. See mingw*.
12103 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12104 lt_cv_file_magic_cmd='$OBJDUMP -f'
12105 ;;
12106
12107 darwin* | rhapsody*)
12108 lt_cv_deplibs_check_method=pass_all
12109 ;;
12110
12111 freebsd* | dragonfly*)
12112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12113 case $host_cpu in
12114 i*86 )
12115 # Not sure whether the presence of OpenBSD here was a mistake.
12116 # Let's accept both of them until this is cleared up.
12117 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12118 lt_cv_file_magic_cmd=/usr/bin/file
12119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12120 ;;
12121 esac
12122 else
12123 lt_cv_deplibs_check_method=pass_all
12124 fi
12125 ;;
12126
12127 gnu*)
12128 lt_cv_deplibs_check_method=pass_all
12129 ;;
12130
12131 haiku*)
12132 lt_cv_deplibs_check_method=pass_all
12133 ;;
12134
12135 hpux10.20* | hpux11*)
12136 lt_cv_file_magic_cmd=/usr/bin/file
12137 case $host_cpu in
12138 ia64*)
12139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12141 ;;
12142 hppa*64*)
12143 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]'
12144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12145 ;;
12146 *)
12147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12149 ;;
12150 esac
12151 ;;
12152
12153 interix[3-9]*)
12154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12156 ;;
12157
12158 irix5* | irix6* | nonstopux*)
12159 case $LD in
12160 *-32|*"-32 ") libmagic=32-bit;;
12161 *-n32|*"-n32 ") libmagic=N32;;
12162 *-64|*"-64 ") libmagic=64-bit;;
12163 *) libmagic=never-match;;
12164 esac
12165 lt_cv_deplibs_check_method=pass_all
12166 ;;
12167
12168 # This must be glibc/ELF.
12169 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12170 lt_cv_deplibs_check_method=pass_all
12171 ;;
12172
12173 netbsd*)
12174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12176 else
12177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12178 fi
12179 ;;
12180
12181 newos6*)
12182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12183 lt_cv_file_magic_cmd=/usr/bin/file
12184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12185 ;;
12186
12187 *nto* | *qnx*)
12188 lt_cv_deplibs_check_method=pass_all
12189 ;;
12190
12191 openbsd*)
12192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12194 else
12195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12196 fi
12197 ;;
12198
12199 osf3* | osf4* | osf5*)
12200 lt_cv_deplibs_check_method=pass_all
12201 ;;
12202
12203 rdos*)
12204 lt_cv_deplibs_check_method=pass_all
12205 ;;
12206
12207 solaris*)
12208 lt_cv_deplibs_check_method=pass_all
12209 ;;
12210
12211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12212 lt_cv_deplibs_check_method=pass_all
12213 ;;
12214
12215 sysv4 | sysv4.3*)
12216 case $host_vendor in
12217 motorola)
12218 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]'
12219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12220 ;;
12221 ncr)
12222 lt_cv_deplibs_check_method=pass_all
12223 ;;
12224 sequent)
12225 lt_cv_file_magic_cmd='/bin/file'
12226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12227 ;;
12228 sni)
12229 lt_cv_file_magic_cmd='/bin/file'
12230 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12231 lt_cv_file_magic_test_file=/lib/libc.so
12232 ;;
12233 siemens)
12234 lt_cv_deplibs_check_method=pass_all
12235 ;;
12236 pc)
12237 lt_cv_deplibs_check_method=pass_all
12238 ;;
12239 esac
12240 ;;
12241
12242 tpf*)
12243 lt_cv_deplibs_check_method=pass_all
12244 ;;
12245 esac
12246
12247 fi
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12249 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12250
12251 file_magic_glob=
12252 want_nocaseglob=no
12253 if test "$build" = "$host"; then
12254 case $host_os in
12255 mingw* | pw32*)
12256 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12257 want_nocaseglob=yes
12258 else
12259 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12260 fi
12261 ;;
12262 esac
12263 fi
12264
12265 file_magic_cmd=$lt_cv_file_magic_cmd
12266 deplibs_check_method=$lt_cv_deplibs_check_method
12267 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 if test -n "$ac_tool_prefix"; then
12291 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12292 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if ${ac_cv_prog_DLLTOOL+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 if test -n "$DLLTOOL"; then
12299 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12300 else
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12303 do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12311 fi
12312 done
12313 done
12314 IFS=$as_save_IFS
12315
12316 fi
12317 fi
12318 DLLTOOL=$ac_cv_prog_DLLTOOL
12319 if test -n "$DLLTOOL"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12321 $as_echo "$DLLTOOL" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326
12327
12328 fi
12329 if test -z "$ac_cv_prog_DLLTOOL"; then
12330 ac_ct_DLLTOOL=$DLLTOOL
12331 # Extract the first word of "dlltool", so it can be a program name with args.
12332 set dummy dlltool; ac_word=$2
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 $as_echo_n "checking for $ac_word... " >&6; }
12335 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 if test -n "$ac_ct_DLLTOOL"; then
12339 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12340 else
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12343 do
12344 IFS=$as_save_IFS
12345 test -z "$as_dir" && as_dir=.
12346 for ac_exec_ext in '' $ac_executable_extensions; do
12347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12348 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 break 2
12351 fi
12352 done
12353 done
12354 IFS=$as_save_IFS
12355
12356 fi
12357 fi
12358 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12359 if test -n "$ac_ct_DLLTOOL"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12361 $as_echo "$ac_ct_DLLTOOL" >&6; }
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12365 fi
12366
12367 if test "x$ac_ct_DLLTOOL" = x; then
12368 DLLTOOL="false"
12369 else
12370 case $cross_compiling:$ac_tool_warned in
12371 yes:)
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12374 ac_tool_warned=yes ;;
12375 esac
12376 DLLTOOL=$ac_ct_DLLTOOL
12377 fi
12378 else
12379 DLLTOOL="$ac_cv_prog_DLLTOOL"
12380 fi
12381
12382 test -z "$DLLTOOL" && DLLTOOL=dlltool
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12394 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12395 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 lt_cv_sharedlib_from_linklib_cmd='unknown'
12399
12400 case $host_os in
12401 cygwin* | mingw* | pw32* | cegcc*)
12402 # two different shell functions defined in ltmain.sh
12403 # decide which to use based on capabilities of $DLLTOOL
12404 case `$DLLTOOL --help 2>&1` in
12405 *--identify-strict*)
12406 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12407 ;;
12408 *)
12409 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12410 ;;
12411 esac
12412 ;;
12413 *)
12414 # fallback: assume linklib IS sharedlib
12415 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12416 ;;
12417 esac
12418
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12421 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12422 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12423 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12424
12425
12426
12427
12428
12429
12430
12431 if test -n "$ac_tool_prefix"; then
12432 for ac_prog in ar
12433 do
12434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_prog_AR+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test -n "$AR"; then
12442 ac_cv_prog_AR="$AR" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12454 fi
12455 done
12456 done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 AR=$ac_cv_prog_AR
12462 if test -n "$AR"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12464 $as_echo "$AR" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 test -n "$AR" && break
12472 done
12473 fi
12474 if test -z "$AR"; then
12475 ac_ct_AR=$AR
12476 for ac_prog in ar
12477 do
12478 # Extract the first word of "$ac_prog", so it can be a program name with args.
12479 set dummy $ac_prog; ac_word=$2
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481 $as_echo_n "checking for $ac_word... " >&6; }
12482 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 if test -n "$ac_ct_AR"; then
12486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12487 else
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12490 do
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12495 ac_cv_prog_ac_ct_AR="$ac_prog"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 break 2
12498 fi
12499 done
12500 done
12501 IFS=$as_save_IFS
12502
12503 fi
12504 fi
12505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12506 if test -n "$ac_ct_AR"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12508 $as_echo "$ac_ct_AR" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512 fi
12513
12514
12515 test -n "$ac_ct_AR" && break
12516 done
12517
12518 if test "x$ac_ct_AR" = x; then
12519 AR="false"
12520 else
12521 case $cross_compiling:$ac_tool_warned in
12522 yes:)
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12525 ac_tool_warned=yes ;;
12526 esac
12527 AR=$ac_ct_AR
12528 fi
12529 fi
12530
12531 : ${AR=ar}
12532 : ${AR_FLAGS=cru}
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12545 $as_echo_n "checking for archiver @FILE support... " >&6; }
12546 if ${lt_cv_ar_at_file+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 lt_cv_ar_at_file=no
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552
12553 int
12554 main ()
12555 {
12556
12557 ;
12558 return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_compile "$LINENO"; then :
12562 echo conftest.$ac_objext > conftest.lst
12563 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12565 (eval $lt_ar_try) 2>&5
12566 ac_status=$?
12567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12568 test $ac_status = 0; }
12569 if test "$ac_status" -eq 0; then
12570 # Ensure the archiver fails upon bogus file names.
12571 rm -f conftest.$ac_objext libconftest.a
12572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12573 (eval $lt_ar_try) 2>&5
12574 ac_status=$?
12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576 test $ac_status = 0; }
12577 if test "$ac_status" -ne 0; then
12578 lt_cv_ar_at_file=@
12579 fi
12580 fi
12581 rm -f conftest.* libconftest.a
12582
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12588 $as_echo "$lt_cv_ar_at_file" >&6; }
12589
12590 if test "x$lt_cv_ar_at_file" = xno; then
12591 archiver_list_spec=
12592 else
12593 archiver_list_spec=$lt_cv_ar_at_file
12594 fi
12595
12596
12597
12598
12599
12600
12601
12602 if test -n "$ac_tool_prefix"; then
12603 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12604 set dummy ${ac_tool_prefix}strip; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if ${ac_cv_prog_STRIP+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12610 if test -n "$STRIP"; then
12611 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12612 else
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in $PATH
12615 do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12620 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624 done
12625 done
12626 IFS=$as_save_IFS
12627
12628 fi
12629 fi
12630 STRIP=$ac_cv_prog_STRIP
12631 if test -n "$STRIP"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12633 $as_echo "$STRIP" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638
12639
12640 fi
12641 if test -z "$ac_cv_prog_STRIP"; then
12642 ac_ct_STRIP=$STRIP
12643 # Extract the first word of "strip", so it can be a program name with args.
12644 set dummy strip; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$ac_ct_STRIP"; then
12651 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_prog_ac_ct_STRIP="strip"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664 done
12665 done
12666 IFS=$as_save_IFS
12667
12668 fi
12669 fi
12670 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12671 if test -n "$ac_ct_STRIP"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12673 $as_echo "$ac_ct_STRIP" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679 if test "x$ac_ct_STRIP" = x; then
12680 STRIP=":"
12681 else
12682 case $cross_compiling:$ac_tool_warned in
12683 yes:)
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686 ac_tool_warned=yes ;;
12687 esac
12688 STRIP=$ac_ct_STRIP
12689 fi
12690 else
12691 STRIP="$ac_cv_prog_STRIP"
12692 fi
12693
12694 test -z "$STRIP" && STRIP=:
12695
12696
12697
12698
12699
12700
12701 if test -n "$ac_tool_prefix"; then
12702 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12703 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if ${ac_cv_prog_RANLIB+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 if test -n "$RANLIB"; then
12710 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12711 else
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12714 do
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12719 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12721 break 2
12722 fi
12723 done
12724 done
12725 IFS=$as_save_IFS
12726
12727 fi
12728 fi
12729 RANLIB=$ac_cv_prog_RANLIB
12730 if test -n "$RANLIB"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12732 $as_echo "$RANLIB" >&6; }
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737
12738
12739 fi
12740 if test -z "$ac_cv_prog_RANLIB"; then
12741 ac_ct_RANLIB=$RANLIB
12742 # Extract the first word of "ranlib", so it can be a program name with args.
12743 set dummy ranlib; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 if test -n "$ac_ct_RANLIB"; then
12750 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12751 else
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12754 do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759 ac_cv_prog_ac_ct_RANLIB="ranlib"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12762 fi
12763 done
12764 done
12765 IFS=$as_save_IFS
12766
12767 fi
12768 fi
12769 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12770 if test -n "$ac_ct_RANLIB"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12772 $as_echo "$ac_ct_RANLIB" >&6; }
12773 else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777
12778 if test "x$ac_ct_RANLIB" = x; then
12779 RANLIB=":"
12780 else
12781 case $cross_compiling:$ac_tool_warned in
12782 yes:)
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12785 ac_tool_warned=yes ;;
12786 esac
12787 RANLIB=$ac_ct_RANLIB
12788 fi
12789 else
12790 RANLIB="$ac_cv_prog_RANLIB"
12791 fi
12792
12793 test -z "$RANLIB" && RANLIB=:
12794
12795
12796
12797
12798
12799
12800 # Determine commands to create old-style static archives.
12801 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12802 old_postinstall_cmds='chmod 644 $oldlib'
12803 old_postuninstall_cmds=
12804
12805 if test -n "$RANLIB"; then
12806 case $host_os in
12807 openbsd*)
12808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12809 ;;
12810 *)
12811 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12812 ;;
12813 esac
12814 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12815 fi
12816
12817 case $host_os in
12818 darwin*)
12819 lock_old_archive_extraction=yes ;;
12820 *)
12821 lock_old_archive_extraction=no ;;
12822 esac
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862 # If no C compiler was specified, use CC.
12863 LTCC=${LTCC-"$CC"}
12864
12865 # If no C compiler flags were specified, use CFLAGS.
12866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12867
12868 # Allow CC to be a program name with arguments.
12869 compiler=$CC
12870
12871
12872 # Check for command to grab the raw symbol name followed by C symbol from nm.
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12874 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12875 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878
12879 # These are sane defaults that work on at least a few old systems.
12880 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12881
12882 # Character class describing NM global symbol codes.
12883 symcode='[BCDEGRST]'
12884
12885 # Regexp to match symbols that can be accessed directly from C.
12886 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12887
12888 # Define system-specific variables.
12889 case $host_os in
12890 aix*)
12891 symcode='[BCDT]'
12892 ;;
12893 cygwin* | mingw* | pw32* | cegcc*)
12894 symcode='[ABCDGISTW]'
12895 ;;
12896 hpux*)
12897 if test "$host_cpu" = ia64; then
12898 symcode='[ABCDEGRST]'
12899 fi
12900 ;;
12901 irix* | nonstopux*)
12902 symcode='[BCDEGRST]'
12903 ;;
12904 osf*)
12905 symcode='[BCDEGQRST]'
12906 ;;
12907 solaris*)
12908 symcode='[BDRT]'
12909 ;;
12910 sco3.2v5*)
12911 symcode='[DT]'
12912 ;;
12913 sysv4.2uw2*)
12914 symcode='[DT]'
12915 ;;
12916 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12917 symcode='[ABDT]'
12918 ;;
12919 sysv4)
12920 symcode='[DFNSTU]'
12921 ;;
12922 esac
12923
12924 # If we're using GNU nm, then use its standard symbol codes.
12925 case `$NM -V 2>&1` in
12926 *GNU* | *'with BFD'*)
12927 symcode='[ABCDGIRSTW]' ;;
12928 esac
12929
12930 # Transform an extracted symbol line into a proper C declaration.
12931 # Some systems (esp. on ia64) link data and code symbols differently,
12932 # so use this general approach.
12933 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12934
12935 # Transform an extracted symbol line into symbol name and symbol address
12936 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12937 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12938
12939 # Handle CRLF in mingw tool chain
12940 opt_cr=
12941 case $build_os in
12942 mingw*)
12943 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12944 ;;
12945 esac
12946
12947 # Try without a prefix underscore, then with it.
12948 for ac_symprfx in "" "_"; do
12949
12950 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12951 symxfrm="\\1 $ac_symprfx\\2 \\2"
12952
12953 # Write the raw and C identifiers.
12954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12955 # Fake it for dumpbin and say T for any non-static function
12956 # and D for any global variable.
12957 # Also find C++ and __fastcall symbols from MSVC++,
12958 # which start with @ or ?.
12959 lt_cv_sys_global_symbol_pipe="$AWK '"\
12960 " {last_section=section; section=\$ 3};"\
12961 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12962 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12963 " \$ 0!~/External *\|/{next};"\
12964 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12965 " {if(hide[section]) next};"\
12966 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12967 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12968 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12969 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12970 " ' prfx=^$ac_symprfx"
12971 else
12972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12973 fi
12974 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12975
12976 # Check to see that the pipe works correctly.
12977 pipe_works=no
12978
12979 rm -f conftest*
12980 cat > conftest.$ac_ext <<_LT_EOF
12981 #ifdef __cplusplus
12982 extern "C" {
12983 #endif
12984 char nm_test_var;
12985 void nm_test_func(void);
12986 void nm_test_func(void){}
12987 #ifdef __cplusplus
12988 }
12989 #endif
12990 int main(){nm_test_var='a';nm_test_func();return(0);}
12991 _LT_EOF
12992
12993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12994 (eval $ac_compile) 2>&5
12995 ac_status=$?
12996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997 test $ac_status = 0; }; then
12998 # Now try to grab the symbols.
12999 nlist=conftest.nm
13000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13001 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13002 ac_status=$?
13003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13004 test $ac_status = 0; } && test -s "$nlist"; then
13005 # Try sorting and uniquifying the output.
13006 if sort "$nlist" | uniq > "$nlist"T; then
13007 mv -f "$nlist"T "$nlist"
13008 else
13009 rm -f "$nlist"T
13010 fi
13011
13012 # Make sure that we snagged all the symbols we need.
13013 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13014 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13015 cat <<_LT_EOF > conftest.$ac_ext
13016 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13017 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13018 /* DATA imports from DLLs on WIN32 con't be const, because runtime
13019 relocations are performed -- see ld's documentation on pseudo-relocs. */
13020 # define LT_DLSYM_CONST
13021 #elif defined(__osf__)
13022 /* This system does not cope well with relocations in const data. */
13023 # define LT_DLSYM_CONST
13024 #else
13025 # define LT_DLSYM_CONST const
13026 #endif
13027
13028 #ifdef __cplusplus
13029 extern "C" {
13030 #endif
13031
13032 _LT_EOF
13033 # Now generate the symbol file.
13034 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13035
13036 cat <<_LT_EOF >> conftest.$ac_ext
13037
13038 /* The mapping between symbol names and symbols. */
13039 LT_DLSYM_CONST struct {
13040 const char *name;
13041 void *address;
13042 }
13043 lt__PROGRAM__LTX_preloaded_symbols[] =
13044 {
13045 { "@PROGRAM@", (void *) 0 },
13046 _LT_EOF
13047 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13048 cat <<\_LT_EOF >> conftest.$ac_ext
13049 {0, (void *) 0}
13050 };
13051
13052 /* This works around a problem in FreeBSD linker */
13053 #ifdef FREEBSD_WORKAROUND
13054 static const void *lt_preloaded_setup() {
13055 return lt__PROGRAM__LTX_preloaded_symbols;
13056 }
13057 #endif
13058
13059 #ifdef __cplusplus
13060 }
13061 #endif
13062 _LT_EOF
13063 # Now try linking the two files.
13064 mv conftest.$ac_objext conftstm.$ac_objext
13065 lt_globsym_save_LIBS=$LIBS
13066 lt_globsym_save_CFLAGS=$CFLAGS
13067 LIBS="conftstm.$ac_objext"
13068 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13070 (eval $ac_link) 2>&5
13071 ac_status=$?
13072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13074 pipe_works=yes
13075 fi
13076 LIBS=$lt_globsym_save_LIBS
13077 CFLAGS=$lt_globsym_save_CFLAGS
13078 else
13079 echo "cannot find nm_test_func in $nlist" >&5
13080 fi
13081 else
13082 echo "cannot find nm_test_var in $nlist" >&5
13083 fi
13084 else
13085 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13086 fi
13087 else
13088 echo "$progname: failed program was:" >&5
13089 cat conftest.$ac_ext >&5
13090 fi
13091 rm -rf conftest* conftst*
13092
13093 # Do not use the global_symbol_pipe unless it works.
13094 if test "$pipe_works" = yes; then
13095 break
13096 else
13097 lt_cv_sys_global_symbol_pipe=
13098 fi
13099 done
13100
13101 fi
13102
13103 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13104 lt_cv_sys_global_symbol_to_cdecl=
13105 fi
13106 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13108 $as_echo "failed" >&6; }
13109 else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13111 $as_echo "ok" >&6; }
13112 fi
13113
13114 # Response file support.
13115 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13116 nm_file_list_spec='@'
13117 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13118 nm_file_list_spec='@'
13119 fi
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13148 $as_echo_n "checking for sysroot... " >&6; }
13149
13150 # Check whether --with-sysroot was given.
13151 if test "${with_sysroot+set}" = set; then :
13152 withval=$with_sysroot;
13153 else
13154 with_sysroot=no
13155 fi
13156
13157
13158 lt_sysroot=
13159 case ${with_sysroot} in #(
13160 yes)
13161 if test "$GCC" = yes; then
13162 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13163 fi
13164 ;; #(
13165 /*)
13166 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13167 ;; #(
13168 no|'')
13169 ;; #(
13170 *)
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13172 $as_echo "${with_sysroot}" >&6; }
13173 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13174 ;;
13175 esac
13176
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13178 $as_echo "${lt_sysroot:-no}" >&6; }
13179
13180
13181
13182
13183
13184 # Check whether --enable-libtool-lock was given.
13185 if test "${enable_libtool_lock+set}" = set; then :
13186 enableval=$enable_libtool_lock;
13187 fi
13188
13189 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13190
13191 # Some flags need to be propagated to the compiler or linker for good
13192 # libtool support.
13193 case $host in
13194 ia64-*-hpux*)
13195 # Find out which ABI we are using.
13196 echo 'int i;' > conftest.$ac_ext
13197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13198 (eval $ac_compile) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; }; then
13202 case `/usr/bin/file conftest.$ac_objext` in
13203 *ELF-32*)
13204 HPUX_IA64_MODE="32"
13205 ;;
13206 *ELF-64*)
13207 HPUX_IA64_MODE="64"
13208 ;;
13209 esac
13210 fi
13211 rm -rf conftest*
13212 ;;
13213 *-*-irix6*)
13214 # Find out which ABI we are using.
13215 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13217 (eval $ac_compile) 2>&5
13218 ac_status=$?
13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220 test $ac_status = 0; }; then
13221 if test "$lt_cv_prog_gnu_ld" = yes; then
13222 case `/usr/bin/file conftest.$ac_objext` in
13223 *32-bit*)
13224 LD="${LD-ld} -melf32bsmip"
13225 ;;
13226 *N32*)
13227 LD="${LD-ld} -melf32bmipn32"
13228 ;;
13229 *64-bit*)
13230 LD="${LD-ld} -melf64bmip"
13231 ;;
13232 esac
13233 else
13234 case `/usr/bin/file conftest.$ac_objext` in
13235 *32-bit*)
13236 LD="${LD-ld} -32"
13237 ;;
13238 *N32*)
13239 LD="${LD-ld} -n32"
13240 ;;
13241 *64-bit*)
13242 LD="${LD-ld} -64"
13243 ;;
13244 esac
13245 fi
13246 fi
13247 rm -rf conftest*
13248 ;;
13249
13250 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13251 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13252 # Find out which ABI we are using.
13253 echo 'int i;' > conftest.$ac_ext
13254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13255 (eval $ac_compile) 2>&5
13256 ac_status=$?
13257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13258 test $ac_status = 0; }; then
13259 case `/usr/bin/file conftest.o` in
13260 *32-bit*)
13261 case $host in
13262 x86_64-*kfreebsd*-gnu)
13263 LD="${LD-ld} -m elf_i386_fbsd"
13264 ;;
13265 x86_64-*linux*)
13266 LD="${LD-ld} -m elf_i386"
13267 ;;
13268 powerpc64le-*linux*)
13269 LD="${LD-ld} -m elf32lppclinux"
13270 ;;
13271 powerpc64-*linux*)
13272 LD="${LD-ld} -m elf32ppclinux"
13273 ;;
13274 s390x-*linux*)
13275 LD="${LD-ld} -m elf_s390"
13276 ;;
13277 sparc64-*linux*)
13278 LD="${LD-ld} -m elf32_sparc"
13279 ;;
13280 esac
13281 ;;
13282 *64-bit*)
13283 case $host in
13284 x86_64-*kfreebsd*-gnu)
13285 LD="${LD-ld} -m elf_x86_64_fbsd"
13286 ;;
13287 x86_64-*linux*)
13288 LD="${LD-ld} -m elf_x86_64"
13289 ;;
13290 powerpcle-*linux*)
13291 LD="${LD-ld} -m elf64lppc"
13292 ;;
13293 powerpc-*linux*)
13294 LD="${LD-ld} -m elf64ppc"
13295 ;;
13296 s390*-*linux*|s390*-*tpf*)
13297 LD="${LD-ld} -m elf64_s390"
13298 ;;
13299 sparc*-*linux*)
13300 LD="${LD-ld} -m elf64_sparc"
13301 ;;
13302 esac
13303 ;;
13304 esac
13305 fi
13306 rm -rf conftest*
13307 ;;
13308
13309 *-*-sco3.2v5*)
13310 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13311 SAVE_CFLAGS="$CFLAGS"
13312 CFLAGS="$CFLAGS -belf"
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13314 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13315 if ${lt_cv_cc_needs_belf+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 ac_ext=c
13319 ac_cpp='$CPP $CPPFLAGS'
13320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13326
13327 int
13328 main ()
13329 {
13330
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 lt_cv_cc_needs_belf=yes
13337 else
13338 lt_cv_cc_needs_belf=no
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext \
13341 conftest$ac_exeext conftest.$ac_ext
13342 ac_ext=c
13343 ac_cpp='$CPP $CPPFLAGS'
13344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13347
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13350 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13351 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13352 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13353 CFLAGS="$SAVE_CFLAGS"
13354 fi
13355 ;;
13356 *-*solaris*)
13357 # Find out which ABI we are using.
13358 echo 'int i;' > conftest.$ac_ext
13359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13360 (eval $ac_compile) 2>&5
13361 ac_status=$?
13362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363 test $ac_status = 0; }; then
13364 case `/usr/bin/file conftest.o` in
13365 *64-bit*)
13366 case $lt_cv_prog_gnu_ld in
13367 yes*)
13368 case $host in
13369 i?86-*-solaris*)
13370 LD="${LD-ld} -m elf_x86_64"
13371 ;;
13372 sparc*-*-solaris*)
13373 LD="${LD-ld} -m elf64_sparc"
13374 ;;
13375 esac
13376 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13377 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13378 LD="${LD-ld}_sol2"
13379 fi
13380 ;;
13381 *)
13382 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13383 LD="${LD-ld} -64"
13384 fi
13385 ;;
13386 esac
13387 ;;
13388 esac
13389 fi
13390 rm -rf conftest*
13391 ;;
13392 esac
13393
13394 need_locks="$enable_libtool_lock"
13395
13396 if test -n "$ac_tool_prefix"; then
13397 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13398 set dummy ${ac_tool_prefix}mt; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13402 $as_echo_n "(cached) " >&6
13403 else
13404 if test -n "$MANIFEST_TOOL"; then
13405 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13406 else
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13409 do
13410 IFS=$as_save_IFS
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416 break 2
13417 fi
13418 done
13419 done
13420 IFS=$as_save_IFS
13421
13422 fi
13423 fi
13424 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13425 if test -n "$MANIFEST_TOOL"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13427 $as_echo "$MANIFEST_TOOL" >&6; }
13428 else
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432
13433
13434 fi
13435 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13436 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13437 # Extract the first word of "mt", so it can be a program name with args.
13438 set dummy mt; ac_word=$2
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440 $as_echo_n "checking for $ac_word... " >&6; }
13441 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 if test -n "$ac_ct_MANIFEST_TOOL"; then
13445 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13446 else
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13449 do
13450 IFS=$as_save_IFS
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456 break 2
13457 fi
13458 done
13459 done
13460 IFS=$as_save_IFS
13461
13462 fi
13463 fi
13464 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13465 if test -n "$ac_ct_MANIFEST_TOOL"; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13467 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13468 else
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470 $as_echo "no" >&6; }
13471 fi
13472
13473 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13474 MANIFEST_TOOL=":"
13475 else
13476 case $cross_compiling:$ac_tool_warned in
13477 yes:)
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13480 ac_tool_warned=yes ;;
13481 esac
13482 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13483 fi
13484 else
13485 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13486 fi
13487
13488 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13490 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13491 if ${lt_cv_path_mainfest_tool+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 lt_cv_path_mainfest_tool=no
13495 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13496 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13497 cat conftest.err >&5
13498 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13499 lt_cv_path_mainfest_tool=yes
13500 fi
13501 rm -f conftest*
13502 fi
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13504 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13505 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13506 MANIFEST_TOOL=:
13507 fi
13508
13509
13510
13511
13512
13513
13514 case $host_os in
13515 rhapsody* | darwin*)
13516 if test -n "$ac_tool_prefix"; then
13517 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13518 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13522 $as_echo_n "(cached) " >&6
13523 else
13524 if test -n "$DSYMUTIL"; then
13525 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13529 do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13537 fi
13538 done
13539 done
13540 IFS=$as_save_IFS
13541
13542 fi
13543 fi
13544 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13545 if test -n "$DSYMUTIL"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13547 $as_echo "$DSYMUTIL" >&6; }
13548 else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13551 fi
13552
13553
13554 fi
13555 if test -z "$ac_cv_prog_DSYMUTIL"; then
13556 ac_ct_DSYMUTIL=$DSYMUTIL
13557 # Extract the first word of "dsymutil", so it can be a program name with args.
13558 set dummy dsymutil; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 $as_echo_n "checking for $ac_word... " >&6; }
13561 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 if test -n "$ac_ct_DSYMUTIL"; then
13565 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13566 else
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13569 do
13570 IFS=$as_save_IFS
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13574 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 break 2
13577 fi
13578 done
13579 done
13580 IFS=$as_save_IFS
13581
13582 fi
13583 fi
13584 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13585 if test -n "$ac_ct_DSYMUTIL"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13587 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13588 else
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13591 fi
13592
13593 if test "x$ac_ct_DSYMUTIL" = x; then
13594 DSYMUTIL=":"
13595 else
13596 case $cross_compiling:$ac_tool_warned in
13597 yes:)
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13600 ac_tool_warned=yes ;;
13601 esac
13602 DSYMUTIL=$ac_ct_DSYMUTIL
13603 fi
13604 else
13605 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13606 fi
13607
13608 if test -n "$ac_tool_prefix"; then
13609 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13610 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13612 $as_echo_n "checking for $ac_word... " >&6; }
13613 if ${ac_cv_prog_NMEDIT+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 if test -n "$NMEDIT"; then
13617 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13618 else
13619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620 for as_dir in $PATH
13621 do
13622 IFS=$as_save_IFS
13623 test -z "$as_dir" && as_dir=.
13624 for ac_exec_ext in '' $ac_executable_extensions; do
13625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13626 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13628 break 2
13629 fi
13630 done
13631 done
13632 IFS=$as_save_IFS
13633
13634 fi
13635 fi
13636 NMEDIT=$ac_cv_prog_NMEDIT
13637 if test -n "$NMEDIT"; then
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13639 $as_echo "$NMEDIT" >&6; }
13640 else
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13643 fi
13644
13645
13646 fi
13647 if test -z "$ac_cv_prog_NMEDIT"; then
13648 ac_ct_NMEDIT=$NMEDIT
13649 # Extract the first word of "nmedit", so it can be a program name with args.
13650 set dummy nmedit; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 if test -n "$ac_ct_NMEDIT"; then
13657 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13658 else
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13661 do
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13666 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13669 fi
13670 done
13671 done
13672 IFS=$as_save_IFS
13673
13674 fi
13675 fi
13676 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13677 if test -n "$ac_ct_NMEDIT"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13679 $as_echo "$ac_ct_NMEDIT" >&6; }
13680 else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13683 fi
13684
13685 if test "x$ac_ct_NMEDIT" = x; then
13686 NMEDIT=":"
13687 else
13688 case $cross_compiling:$ac_tool_warned in
13689 yes:)
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13692 ac_tool_warned=yes ;;
13693 esac
13694 NMEDIT=$ac_ct_NMEDIT
13695 fi
13696 else
13697 NMEDIT="$ac_cv_prog_NMEDIT"
13698 fi
13699
13700 if test -n "$ac_tool_prefix"; then
13701 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13702 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13704 $as_echo_n "checking for $ac_word... " >&6; }
13705 if ${ac_cv_prog_LIPO+:} false; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 if test -n "$LIPO"; then
13709 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13710 else
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13713 do
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
13721 fi
13722 done
13723 done
13724 IFS=$as_save_IFS
13725
13726 fi
13727 fi
13728 LIPO=$ac_cv_prog_LIPO
13729 if test -n "$LIPO"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13731 $as_echo "$LIPO" >&6; }
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13735 fi
13736
13737
13738 fi
13739 if test -z "$ac_cv_prog_LIPO"; then
13740 ac_ct_LIPO=$LIPO
13741 # Extract the first word of "lipo", so it can be a program name with args.
13742 set dummy lipo; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 if test -n "$ac_ct_LIPO"; then
13749 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13750 else
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13753 do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_ac_ct_LIPO="lipo"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13761 fi
13762 done
13763 done
13764 IFS=$as_save_IFS
13765
13766 fi
13767 fi
13768 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13769 if test -n "$ac_ct_LIPO"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13771 $as_echo "$ac_ct_LIPO" >&6; }
13772 else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13775 fi
13776
13777 if test "x$ac_ct_LIPO" = x; then
13778 LIPO=":"
13779 else
13780 case $cross_compiling:$ac_tool_warned in
13781 yes:)
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13784 ac_tool_warned=yes ;;
13785 esac
13786 LIPO=$ac_ct_LIPO
13787 fi
13788 else
13789 LIPO="$ac_cv_prog_LIPO"
13790 fi
13791
13792 if test -n "$ac_tool_prefix"; then
13793 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13794 set dummy ${ac_tool_prefix}otool; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if ${ac_cv_prog_OTOOL+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 if test -n "$OTOOL"; then
13801 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13802 else
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812 break 2
13813 fi
13814 done
13815 done
13816 IFS=$as_save_IFS
13817
13818 fi
13819 fi
13820 OTOOL=$ac_cv_prog_OTOOL
13821 if test -n "$OTOOL"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13823 $as_echo "$OTOOL" >&6; }
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 fi
13828
13829
13830 fi
13831 if test -z "$ac_cv_prog_OTOOL"; then
13832 ac_ct_OTOOL=$OTOOL
13833 # Extract the first word of "otool", so it can be a program name with args.
13834 set dummy otool; ac_word=$2
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 if test -n "$ac_ct_OTOOL"; then
13841 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13842 else
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13845 do
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13850 ac_cv_prog_ac_ct_OTOOL="otool"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13853 fi
13854 done
13855 done
13856 IFS=$as_save_IFS
13857
13858 fi
13859 fi
13860 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13861 if test -n "$ac_ct_OTOOL"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13863 $as_echo "$ac_ct_OTOOL" >&6; }
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866 $as_echo "no" >&6; }
13867 fi
13868
13869 if test "x$ac_ct_OTOOL" = x; then
13870 OTOOL=":"
13871 else
13872 case $cross_compiling:$ac_tool_warned in
13873 yes:)
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13876 ac_tool_warned=yes ;;
13877 esac
13878 OTOOL=$ac_ct_OTOOL
13879 fi
13880 else
13881 OTOOL="$ac_cv_prog_OTOOL"
13882 fi
13883
13884 if test -n "$ac_tool_prefix"; then
13885 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13886 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888 $as_echo_n "checking for $ac_word... " >&6; }
13889 if ${ac_cv_prog_OTOOL64+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 if test -n "$OTOOL64"; then
13893 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13897 do
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13905 fi
13906 done
13907 done
13908 IFS=$as_save_IFS
13909
13910 fi
13911 fi
13912 OTOOL64=$ac_cv_prog_OTOOL64
13913 if test -n "$OTOOL64"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13915 $as_echo "$OTOOL64" >&6; }
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13919 fi
13920
13921
13922 fi
13923 if test -z "$ac_cv_prog_OTOOL64"; then
13924 ac_ct_OTOOL64=$OTOOL64
13925 # Extract the first word of "otool64", so it can be a program name with args.
13926 set dummy otool64; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 if test -n "$ac_ct_OTOOL64"; then
13933 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13937 do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_prog_ac_ct_OTOOL64="otool64"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13945 fi
13946 done
13947 done
13948 IFS=$as_save_IFS
13949
13950 fi
13951 fi
13952 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13953 if test -n "$ac_ct_OTOOL64"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13955 $as_echo "$ac_ct_OTOOL64" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13959 fi
13960
13961 if test "x$ac_ct_OTOOL64" = x; then
13962 OTOOL64=":"
13963 else
13964 case $cross_compiling:$ac_tool_warned in
13965 yes:)
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13968 ac_tool_warned=yes ;;
13969 esac
13970 OTOOL64=$ac_ct_OTOOL64
13971 fi
13972 else
13973 OTOOL64="$ac_cv_prog_OTOOL64"
13974 fi
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14003 $as_echo_n "checking for -single_module linker flag... " >&6; }
14004 if ${lt_cv_apple_cc_single_mod+:} false; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 lt_cv_apple_cc_single_mod=no
14008 if test -z "${LT_MULTI_MODULE}"; then
14009 # By default we will add the -single_module flag. You can override
14010 # by either setting the environment variable LT_MULTI_MODULE
14011 # non-empty at configure time, or by adding -multi_module to the
14012 # link flags.
14013 rm -rf libconftest.dylib*
14014 echo "int foo(void){return 1;}" > conftest.c
14015 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14016 -dynamiclib -Wl,-single_module conftest.c" >&5
14017 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14018 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14019 _lt_result=$?
14020 # If there is a non-empty error log, and "single_module"
14021 # appears in it, assume the flag caused a linker warning
14022 if test -s conftest.err && $GREP single_module conftest.err; then
14023 cat conftest.err >&5
14024 # Otherwise, if the output was created with a 0 exit code from
14025 # the compiler, it worked.
14026 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14027 lt_cv_apple_cc_single_mod=yes
14028 else
14029 cat conftest.err >&5
14030 fi
14031 rm -rf libconftest.dylib*
14032 rm -f conftest.*
14033 fi
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14036 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14037
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14039 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14040 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 lt_cv_ld_exported_symbols_list=no
14044 save_LDFLAGS=$LDFLAGS
14045 echo "_main" > conftest.sym
14046 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049
14050 int
14051 main ()
14052 {
14053
14054 ;
14055 return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_link "$LINENO"; then :
14059 lt_cv_ld_exported_symbols_list=yes
14060 else
14061 lt_cv_ld_exported_symbols_list=no
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14065 LDFLAGS="$save_LDFLAGS"
14066
14067 fi
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14069 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14070
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14072 $as_echo_n "checking for -force_load linker flag... " >&6; }
14073 if ${lt_cv_ld_force_load+:} false; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 lt_cv_ld_force_load=no
14077 cat > conftest.c << _LT_EOF
14078 int forced_loaded() { return 2;}
14079 _LT_EOF
14080 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14081 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14082 echo "$AR cru libconftest.a conftest.o" >&5
14083 $AR cru libconftest.a conftest.o 2>&5
14084 echo "$RANLIB libconftest.a" >&5
14085 $RANLIB libconftest.a 2>&5
14086 cat > conftest.c << _LT_EOF
14087 int main() { return 0;}
14088 _LT_EOF
14089 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14090 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14091 _lt_result=$?
14092 if test -s conftest.err && $GREP force_load conftest.err; then
14093 cat conftest.err >&5
14094 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14095 lt_cv_ld_force_load=yes
14096 else
14097 cat conftest.err >&5
14098 fi
14099 rm -f conftest.err libconftest.a conftest conftest.c
14100 rm -rf conftest.dSYM
14101
14102 fi
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14104 $as_echo "$lt_cv_ld_force_load" >&6; }
14105 case $host_os in
14106 rhapsody* | darwin1.[012])
14107 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14108 darwin1.*)
14109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14110 darwin*) # darwin 5.x on
14111 # if running on 10.5 or later, the deployment target defaults
14112 # to the OS version, if on x86, and 10.4, the deployment
14113 # target defaults to 10.4. Don't you love it?
14114 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14115 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14116 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14117 10.[012]*)
14118 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14119 10.*)
14120 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14121 esac
14122 ;;
14123 esac
14124 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14125 _lt_dar_single_mod='$single_module'
14126 fi
14127 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14128 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14129 else
14130 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14131 fi
14132 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14133 _lt_dsymutil='~$DSYMUTIL $lib || :'
14134 else
14135 _lt_dsymutil=
14136 fi
14137 ;;
14138 esac
14139
14140 for ac_header in dlfcn.h
14141 do :
14142 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14143 "
14144 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14145 cat >>confdefs.h <<_ACEOF
14146 #define HAVE_DLFCN_H 1
14147 _ACEOF
14148
14149 fi
14150
14151 done
14152
14153
14154
14155
14156
14157 # Set options
14158
14159
14160
14161 enable_dlopen=no
14162
14163
14164 enable_win32_dll=no
14165
14166
14167 # Check whether --enable-shared was given.
14168 if test "${enable_shared+set}" = set; then :
14169 enableval=$enable_shared; p=${PACKAGE-default}
14170 case $enableval in
14171 yes) enable_shared=yes ;;
14172 no) enable_shared=no ;;
14173 *)
14174 enable_shared=no
14175 # Look at the argument we got. We use all the common list separators.
14176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14177 for pkg in $enableval; do
14178 IFS="$lt_save_ifs"
14179 if test "X$pkg" = "X$p"; then
14180 enable_shared=yes
14181 fi
14182 done
14183 IFS="$lt_save_ifs"
14184 ;;
14185 esac
14186 else
14187 enable_shared=yes
14188 fi
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200 # Check whether --with-pic was given.
14201 if test "${with_pic+set}" = set; then :
14202 withval=$with_pic; lt_p=${PACKAGE-default}
14203 case $withval in
14204 yes|no) pic_mode=$withval ;;
14205 *)
14206 pic_mode=default
14207 # Look at the argument we got. We use all the common list separators.
14208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14209 for lt_pkg in $withval; do
14210 IFS="$lt_save_ifs"
14211 if test "X$lt_pkg" = "X$lt_p"; then
14212 pic_mode=yes
14213 fi
14214 done
14215 IFS="$lt_save_ifs"
14216 ;;
14217 esac
14218 else
14219 pic_mode=default
14220 fi
14221
14222
14223 test -z "$pic_mode" && pic_mode=default
14224
14225
14226
14227
14228
14229
14230
14231 # Check whether --enable-fast-install was given.
14232 if test "${enable_fast_install+set}" = set; then :
14233 enableval=$enable_fast_install; p=${PACKAGE-default}
14234 case $enableval in
14235 yes) enable_fast_install=yes ;;
14236 no) enable_fast_install=no ;;
14237 *)
14238 enable_fast_install=no
14239 # Look at the argument we got. We use all the common list separators.
14240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14241 for pkg in $enableval; do
14242 IFS="$lt_save_ifs"
14243 if test "X$pkg" = "X$p"; then
14244 enable_fast_install=yes
14245 fi
14246 done
14247 IFS="$lt_save_ifs"
14248 ;;
14249 esac
14250 else
14251 enable_fast_install=yes
14252 fi
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264 # This can be used to rebuild libtool when needed
14265 LIBTOOL_DEPS="$ltmain"
14266
14267 # Always use our own libtool.
14268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299 test -z "$LN_S" && LN_S="ln -s"
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314 if test -n "${ZSH_VERSION+set}" ; then
14315 setopt NO_GLOB_SUBST
14316 fi
14317
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14319 $as_echo_n "checking for objdir... " >&6; }
14320 if ${lt_cv_objdir+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 rm -f .libs 2>/dev/null
14324 mkdir .libs 2>/dev/null
14325 if test -d .libs; then
14326 lt_cv_objdir=.libs
14327 else
14328 # MS-DOS does not allow filenames that begin with a dot.
14329 lt_cv_objdir=_libs
14330 fi
14331 rmdir .libs 2>/dev/null
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14334 $as_echo "$lt_cv_objdir" >&6; }
14335 objdir=$lt_cv_objdir
14336
14337
14338
14339
14340
14341 cat >>confdefs.h <<_ACEOF
14342 #define LT_OBJDIR "$lt_cv_objdir/"
14343 _ACEOF
14344
14345
14346
14347
14348 case $host_os in
14349 aix3*)
14350 # AIX sometimes has problems with the GCC collect2 program. For some
14351 # reason, if we set the COLLECT_NAMES environment variable, the problems
14352 # vanish in a puff of smoke.
14353 if test "X${COLLECT_NAMES+set}" != Xset; then
14354 COLLECT_NAMES=
14355 export COLLECT_NAMES
14356 fi
14357 ;;
14358 esac
14359
14360 # Global variables:
14361 ofile=libtool
14362 can_build_shared=yes
14363
14364 # All known linkers require a `.a' archive for static linking (except MSVC,
14365 # which needs '.lib').
14366 libext=a
14367
14368 with_gnu_ld="$lt_cv_prog_gnu_ld"
14369
14370 old_CC="$CC"
14371 old_CFLAGS="$CFLAGS"
14372
14373 # Set sane defaults for various variables
14374 test -z "$CC" && CC=cc
14375 test -z "$LTCC" && LTCC=$CC
14376 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14377 test -z "$LD" && LD=ld
14378 test -z "$ac_objext" && ac_objext=o
14379
14380 for cc_temp in $compiler""; do
14381 case $cc_temp in
14382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14384 \-*) ;;
14385 *) break;;
14386 esac
14387 done
14388 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14389
14390
14391 # Only perform the check for file, if the check method requires it
14392 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14393 case $deplibs_check_method in
14394 file_magic*)
14395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14397 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401 case $MAGIC_CMD in
14402 [\\/*] | ?:[\\/]*)
14403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14404 ;;
14405 *)
14406 lt_save_MAGIC_CMD="$MAGIC_CMD"
14407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14409 for ac_dir in $ac_dummy; do
14410 IFS="$lt_save_ifs"
14411 test -z "$ac_dir" && ac_dir=.
14412 if test -f $ac_dir/${ac_tool_prefix}file; then
14413 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14414 if test -n "$file_magic_test_file"; then
14415 case $deplibs_check_method in
14416 "file_magic "*)
14417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14420 $EGREP "$file_magic_regex" > /dev/null; then
14421 :
14422 else
14423 cat <<_LT_EOF 1>&2
14424
14425 *** Warning: the command libtool uses to detect shared libraries,
14426 *** $file_magic_cmd, produces output that libtool cannot recognize.
14427 *** The result is that libtool may fail to recognize shared libraries
14428 *** as such. This will affect the creation of libtool libraries that
14429 *** depend on shared libraries, but programs linked with such libtool
14430 *** libraries will work regardless of this problem. Nevertheless, you
14431 *** may want to report the problem to your system manager and/or to
14432 *** bug-libtool@gnu.org
14433
14434 _LT_EOF
14435 fi ;;
14436 esac
14437 fi
14438 break
14439 fi
14440 done
14441 IFS="$lt_save_ifs"
14442 MAGIC_CMD="$lt_save_MAGIC_CMD"
14443 ;;
14444 esac
14445 fi
14446
14447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14448 if test -n "$MAGIC_CMD"; then
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14450 $as_echo "$MAGIC_CMD" >&6; }
14451 else
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14453 $as_echo "no" >&6; }
14454 fi
14455
14456
14457
14458
14459
14460 if test -z "$lt_cv_path_MAGIC_CMD"; then
14461 if test -n "$ac_tool_prefix"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14463 $as_echo_n "checking for file... " >&6; }
14464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 case $MAGIC_CMD in
14468 [\\/*] | ?:[\\/]*)
14469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14470 ;;
14471 *)
14472 lt_save_MAGIC_CMD="$MAGIC_CMD"
14473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14475 for ac_dir in $ac_dummy; do
14476 IFS="$lt_save_ifs"
14477 test -z "$ac_dir" && ac_dir=.
14478 if test -f $ac_dir/file; then
14479 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14480 if test -n "$file_magic_test_file"; then
14481 case $deplibs_check_method in
14482 "file_magic "*)
14483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14486 $EGREP "$file_magic_regex" > /dev/null; then
14487 :
14488 else
14489 cat <<_LT_EOF 1>&2
14490
14491 *** Warning: the command libtool uses to detect shared libraries,
14492 *** $file_magic_cmd, produces output that libtool cannot recognize.
14493 *** The result is that libtool may fail to recognize shared libraries
14494 *** as such. This will affect the creation of libtool libraries that
14495 *** depend on shared libraries, but programs linked with such libtool
14496 *** libraries will work regardless of this problem. Nevertheless, you
14497 *** may want to report the problem to your system manager and/or to
14498 *** bug-libtool@gnu.org
14499
14500 _LT_EOF
14501 fi ;;
14502 esac
14503 fi
14504 break
14505 fi
14506 done
14507 IFS="$lt_save_ifs"
14508 MAGIC_CMD="$lt_save_MAGIC_CMD"
14509 ;;
14510 esac
14511 fi
14512
14513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14514 if test -n "$MAGIC_CMD"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14516 $as_echo "$MAGIC_CMD" >&6; }
14517 else
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519 $as_echo "no" >&6; }
14520 fi
14521
14522
14523 else
14524 MAGIC_CMD=:
14525 fi
14526 fi
14527
14528 fi
14529 ;;
14530 esac
14531
14532 # Use C for the default configuration in the libtool script
14533
14534 lt_save_CC="$CC"
14535 ac_ext=c
14536 ac_cpp='$CPP $CPPFLAGS'
14537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14540
14541
14542 # Source file extension for C test sources.
14543 ac_ext=c
14544
14545 # Object file extension for compiled C test sources.
14546 objext=o
14547 objext=$objext
14548
14549 # Code to be used in simple compile tests
14550 lt_simple_compile_test_code="int some_variable = 0;"
14551
14552 # Code to be used in simple link tests
14553 lt_simple_link_test_code='int main(){return(0);}'
14554
14555
14556
14557
14558
14559
14560
14561 # If no C compiler was specified, use CC.
14562 LTCC=${LTCC-"$CC"}
14563
14564 # If no C compiler flags were specified, use CFLAGS.
14565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14566
14567 # Allow CC to be a program name with arguments.
14568 compiler=$CC
14569
14570 # Save the default compiler, since it gets overwritten when the other
14571 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14572 compiler_DEFAULT=$CC
14573
14574 # save warnings/boilerplate of simple test code
14575 ac_outfile=conftest.$ac_objext
14576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14578 _lt_compiler_boilerplate=`cat conftest.err`
14579 $RM conftest*
14580
14581 ac_outfile=conftest.$ac_objext
14582 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14584 _lt_linker_boilerplate=`cat conftest.err`
14585 $RM -r conftest*
14586
14587
14588 if test -n "$compiler"; then
14589
14590 lt_prog_compiler_no_builtin_flag=
14591
14592 if test "$GCC" = yes; then
14593 case $cc_basename in
14594 nvcc*)
14595 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14596 *)
14597 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14598 esac
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14601 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14602 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 lt_cv_prog_compiler_rtti_exceptions=no
14606 ac_outfile=conftest.$ac_objext
14607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14608 lt_compiler_flag="-fno-rtti -fno-exceptions"
14609 # Insert the option either (1) after the last *FLAGS variable, or
14610 # (2) before a word containing "conftest.", or (3) at the end.
14611 # Note that $ac_compile itself does not contain backslashes and begins
14612 # with a dollar sign (not a hyphen), so the echo should work correctly.
14613 # The option is referenced via a variable to avoid confusing sed.
14614 lt_compile=`echo "$ac_compile" | $SED \
14615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14617 -e 's:$: $lt_compiler_flag:'`
14618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14619 (eval "$lt_compile" 2>conftest.err)
14620 ac_status=$?
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 if (exit $ac_status) && test -s "$ac_outfile"; then
14624 # The compiler can only warn and ignore the option if not recognized
14625 # So say no if there are warnings other than the usual output.
14626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14629 lt_cv_prog_compiler_rtti_exceptions=yes
14630 fi
14631 fi
14632 $RM conftest*
14633
14634 fi
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14636 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14637
14638 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14639 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14640 else
14641 :
14642 fi
14643
14644 fi
14645
14646
14647
14648
14649
14650
14651 lt_prog_compiler_wl=
14652 lt_prog_compiler_pic=
14653 lt_prog_compiler_static=
14654
14655
14656 if test "$GCC" = yes; then
14657 lt_prog_compiler_wl='-Wl,'
14658 lt_prog_compiler_static='-static'
14659
14660 case $host_os in
14661 aix*)
14662 # All AIX code is PIC.
14663 if test "$host_cpu" = ia64; then
14664 # AIX 5 now supports IA64 processor
14665 lt_prog_compiler_static='-Bstatic'
14666 fi
14667 ;;
14668
14669 amigaos*)
14670 case $host_cpu in
14671 powerpc)
14672 # see comment about AmigaOS4 .so support
14673 lt_prog_compiler_pic='-fPIC'
14674 ;;
14675 m68k)
14676 # FIXME: we need at least 68020 code to build shared libraries, but
14677 # adding the `-m68020' flag to GCC prevents building anything better,
14678 # like `-m68040'.
14679 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14680 ;;
14681 esac
14682 ;;
14683
14684 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14685 # PIC is the default for these OSes.
14686 ;;
14687
14688 mingw* | cygwin* | pw32* | os2* | cegcc*)
14689 # This hack is so that the source file can tell whether it is being
14690 # built for inclusion in a dll (and should export symbols for example).
14691 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14692 # (--disable-auto-import) libraries
14693 lt_prog_compiler_pic='-DDLL_EXPORT'
14694 ;;
14695
14696 darwin* | rhapsody*)
14697 # PIC is the default on this platform
14698 # Common symbols not allowed in MH_DYLIB files
14699 lt_prog_compiler_pic='-fno-common'
14700 ;;
14701
14702 haiku*)
14703 # PIC is the default for Haiku.
14704 # The "-static" flag exists, but is broken.
14705 lt_prog_compiler_static=
14706 ;;
14707
14708 hpux*)
14709 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14710 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14711 # sets the default TLS model and affects inlining.
14712 case $host_cpu in
14713 hppa*64*)
14714 # +Z the default
14715 ;;
14716 *)
14717 lt_prog_compiler_pic='-fPIC'
14718 ;;
14719 esac
14720 ;;
14721
14722 interix[3-9]*)
14723 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14724 # Instead, we relocate shared libraries at runtime.
14725 ;;
14726
14727 msdosdjgpp*)
14728 # Just because we use GCC doesn't mean we suddenly get shared libraries
14729 # on systems that don't support them.
14730 lt_prog_compiler_can_build_shared=no
14731 enable_shared=no
14732 ;;
14733
14734 *nto* | *qnx*)
14735 # QNX uses GNU C++, but need to define -shared option too, otherwise
14736 # it will coredump.
14737 lt_prog_compiler_pic='-fPIC -shared'
14738 ;;
14739
14740 sysv4*MP*)
14741 if test -d /usr/nec; then
14742 lt_prog_compiler_pic=-Kconform_pic
14743 fi
14744 ;;
14745
14746 *)
14747 lt_prog_compiler_pic='-fPIC'
14748 ;;
14749 esac
14750
14751 case $cc_basename in
14752 nvcc*) # Cuda Compiler Driver 2.2
14753 lt_prog_compiler_wl='-Xlinker '
14754 if test -n "$lt_prog_compiler_pic"; then
14755 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14756 fi
14757 ;;
14758 esac
14759 else
14760 # PORTME Check for flag to pass linker flags through the system compiler.
14761 case $host_os in
14762 aix*)
14763 lt_prog_compiler_wl='-Wl,'
14764 if test "$host_cpu" = ia64; then
14765 # AIX 5 now supports IA64 processor
14766 lt_prog_compiler_static='-Bstatic'
14767 else
14768 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14769 fi
14770 ;;
14771
14772 mingw* | cygwin* | pw32* | os2* | cegcc*)
14773 # This hack is so that the source file can tell whether it is being
14774 # built for inclusion in a dll (and should export symbols for example).
14775 lt_prog_compiler_pic='-DDLL_EXPORT'
14776 ;;
14777
14778 hpux9* | hpux10* | hpux11*)
14779 lt_prog_compiler_wl='-Wl,'
14780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14781 # not for PA HP-UX.
14782 case $host_cpu in
14783 hppa*64*|ia64*)
14784 # +Z the default
14785 ;;
14786 *)
14787 lt_prog_compiler_pic='+Z'
14788 ;;
14789 esac
14790 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14791 lt_prog_compiler_static='${wl}-a ${wl}archive'
14792 ;;
14793
14794 irix5* | irix6* | nonstopux*)
14795 lt_prog_compiler_wl='-Wl,'
14796 # PIC (with -KPIC) is the default.
14797 lt_prog_compiler_static='-non_shared'
14798 ;;
14799
14800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14801 case $cc_basename in
14802 # old Intel for x86_64 which still supported -KPIC.
14803 ecc*)
14804 lt_prog_compiler_wl='-Wl,'
14805 lt_prog_compiler_pic='-KPIC'
14806 lt_prog_compiler_static='-static'
14807 ;;
14808 # icc used to be incompatible with GCC.
14809 # ICC 10 doesn't accept -KPIC any more.
14810 icc* | ifort*)
14811 lt_prog_compiler_wl='-Wl,'
14812 lt_prog_compiler_pic='-fPIC'
14813 lt_prog_compiler_static='-static'
14814 ;;
14815 # Lahey Fortran 8.1.
14816 lf95*)
14817 lt_prog_compiler_wl='-Wl,'
14818 lt_prog_compiler_pic='--shared'
14819 lt_prog_compiler_static='--static'
14820 ;;
14821 nagfor*)
14822 # NAG Fortran compiler
14823 lt_prog_compiler_wl='-Wl,-Wl,,'
14824 lt_prog_compiler_pic='-PIC'
14825 lt_prog_compiler_static='-Bstatic'
14826 ;;
14827 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14828 # Portland Group compilers (*not* the Pentium gcc compiler,
14829 # which looks to be a dead project)
14830 lt_prog_compiler_wl='-Wl,'
14831 lt_prog_compiler_pic='-fpic'
14832 lt_prog_compiler_static='-Bstatic'
14833 ;;
14834 ccc*)
14835 lt_prog_compiler_wl='-Wl,'
14836 # All Alpha code is PIC.
14837 lt_prog_compiler_static='-non_shared'
14838 ;;
14839 xl* | bgxl* | bgf* | mpixl*)
14840 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14841 lt_prog_compiler_wl='-Wl,'
14842 lt_prog_compiler_pic='-qpic'
14843 lt_prog_compiler_static='-qstaticlink'
14844 ;;
14845 *)
14846 case `$CC -V 2>&1 | sed 5q` in
14847 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14848 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14849 lt_prog_compiler_pic='-KPIC'
14850 lt_prog_compiler_static='-Bstatic'
14851 lt_prog_compiler_wl=''
14852 ;;
14853 *Sun\ F* | *Sun*Fortran*)
14854 lt_prog_compiler_pic='-KPIC'
14855 lt_prog_compiler_static='-Bstatic'
14856 lt_prog_compiler_wl='-Qoption ld '
14857 ;;
14858 *Sun\ C*)
14859 # Sun C 5.9
14860 lt_prog_compiler_pic='-KPIC'
14861 lt_prog_compiler_static='-Bstatic'
14862 lt_prog_compiler_wl='-Wl,'
14863 ;;
14864 *Intel*\ [CF]*Compiler*)
14865 lt_prog_compiler_wl='-Wl,'
14866 lt_prog_compiler_pic='-fPIC'
14867 lt_prog_compiler_static='-static'
14868 ;;
14869 *Portland\ Group*)
14870 lt_prog_compiler_wl='-Wl,'
14871 lt_prog_compiler_pic='-fpic'
14872 lt_prog_compiler_static='-Bstatic'
14873 ;;
14874 esac
14875 ;;
14876 esac
14877 ;;
14878
14879 newsos6)
14880 lt_prog_compiler_pic='-KPIC'
14881 lt_prog_compiler_static='-Bstatic'
14882 ;;
14883
14884 *nto* | *qnx*)
14885 # QNX uses GNU C++, but need to define -shared option too, otherwise
14886 # it will coredump.
14887 lt_prog_compiler_pic='-fPIC -shared'
14888 ;;
14889
14890 osf3* | osf4* | osf5*)
14891 lt_prog_compiler_wl='-Wl,'
14892 # All OSF/1 code is PIC.
14893 lt_prog_compiler_static='-non_shared'
14894 ;;
14895
14896 rdos*)
14897 lt_prog_compiler_static='-non_shared'
14898 ;;
14899
14900 solaris*)
14901 lt_prog_compiler_pic='-KPIC'
14902 lt_prog_compiler_static='-Bstatic'
14903 case $cc_basename in
14904 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14905 lt_prog_compiler_wl='-Qoption ld ';;
14906 *)
14907 lt_prog_compiler_wl='-Wl,';;
14908 esac
14909 ;;
14910
14911 sunos4*)
14912 lt_prog_compiler_wl='-Qoption ld '
14913 lt_prog_compiler_pic='-PIC'
14914 lt_prog_compiler_static='-Bstatic'
14915 ;;
14916
14917 sysv4 | sysv4.2uw2* | sysv4.3*)
14918 lt_prog_compiler_wl='-Wl,'
14919 lt_prog_compiler_pic='-KPIC'
14920 lt_prog_compiler_static='-Bstatic'
14921 ;;
14922
14923 sysv4*MP*)
14924 if test -d /usr/nec ;then
14925 lt_prog_compiler_pic='-Kconform_pic'
14926 lt_prog_compiler_static='-Bstatic'
14927 fi
14928 ;;
14929
14930 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14931 lt_prog_compiler_wl='-Wl,'
14932 lt_prog_compiler_pic='-KPIC'
14933 lt_prog_compiler_static='-Bstatic'
14934 ;;
14935
14936 unicos*)
14937 lt_prog_compiler_wl='-Wl,'
14938 lt_prog_compiler_can_build_shared=no
14939 ;;
14940
14941 uts4*)
14942 lt_prog_compiler_pic='-pic'
14943 lt_prog_compiler_static='-Bstatic'
14944 ;;
14945
14946 *)
14947 lt_prog_compiler_can_build_shared=no
14948 ;;
14949 esac
14950 fi
14951
14952 case $host_os in
14953 # For platforms which do not support PIC, -DPIC is meaningless:
14954 *djgpp*)
14955 lt_prog_compiler_pic=
14956 ;;
14957 *)
14958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14959 ;;
14960 esac
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14963 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14964 if ${lt_cv_prog_compiler_pic+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14970 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14971 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14972
14973 #
14974 # Check to make sure the PIC flag actually works.
14975 #
14976 if test -n "$lt_prog_compiler_pic"; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14978 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14979 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 lt_cv_prog_compiler_pic_works=no
14983 ac_outfile=conftest.$ac_objext
14984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14986 # Insert the option either (1) after the last *FLAGS variable, or
14987 # (2) before a word containing "conftest.", or (3) at the end.
14988 # Note that $ac_compile itself does not contain backslashes and begins
14989 # with a dollar sign (not a hyphen), so the echo should work correctly.
14990 # The option is referenced via a variable to avoid confusing sed.
14991 lt_compile=`echo "$ac_compile" | $SED \
14992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994 -e 's:$: $lt_compiler_flag:'`
14995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14996 (eval "$lt_compile" 2>conftest.err)
14997 ac_status=$?
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 if (exit $ac_status) && test -s "$ac_outfile"; then
15001 # The compiler can only warn and ignore the option if not recognized
15002 # So say no if there are warnings other than the usual output.
15003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15006 lt_cv_prog_compiler_pic_works=yes
15007 fi
15008 fi
15009 $RM conftest*
15010
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15013 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15014
15015 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15016 case $lt_prog_compiler_pic in
15017 "" | " "*) ;;
15018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15019 esac
15020 else
15021 lt_prog_compiler_pic=
15022 lt_prog_compiler_can_build_shared=no
15023 fi
15024
15025 fi
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037 #
15038 # Check to make sure the static flag actually works.
15039 #
15040 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15042 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15043 if ${lt_cv_prog_compiler_static_works+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 lt_cv_prog_compiler_static_works=no
15047 save_LDFLAGS="$LDFLAGS"
15048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15051 # The linker can only warn and ignore the option if not recognized
15052 # So say no if there are warnings
15053 if test -s conftest.err; then
15054 # Append any errors to the config.log.
15055 cat conftest.err 1>&5
15056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15058 if diff conftest.exp conftest.er2 >/dev/null; then
15059 lt_cv_prog_compiler_static_works=yes
15060 fi
15061 else
15062 lt_cv_prog_compiler_static_works=yes
15063 fi
15064 fi
15065 $RM -r conftest*
15066 LDFLAGS="$save_LDFLAGS"
15067
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15070 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15071
15072 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15073 :
15074 else
15075 lt_prog_compiler_static=
15076 fi
15077
15078
15079
15080
15081
15082
15083
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15086 if ${lt_cv_prog_compiler_c_o+:} false; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 lt_cv_prog_compiler_c_o=no
15090 $RM -r conftest 2>/dev/null
15091 mkdir conftest
15092 cd conftest
15093 mkdir out
15094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15095
15096 lt_compiler_flag="-o out/conftest2.$ac_objext"
15097 # Insert the option either (1) after the last *FLAGS variable, or
15098 # (2) before a word containing "conftest.", or (3) at the end.
15099 # Note that $ac_compile itself does not contain backslashes and begins
15100 # with a dollar sign (not a hyphen), so the echo should work correctly.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>out/conftest.err)
15107 ac_status=$?
15108 cat out/conftest.err >&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15111 then
15112 # The compiler can only warn and ignore the option if not recognized
15113 # So say no if there are warnings
15114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15117 lt_cv_prog_compiler_c_o=yes
15118 fi
15119 fi
15120 chmod u+w . 2>&5
15121 $RM conftest*
15122 # SGI C++ compiler will create directory out/ii_files/ for
15123 # template instantiation
15124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15125 $RM out/* && rmdir out
15126 cd ..
15127 $RM -r conftest
15128 $RM conftest*
15129
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15132 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15133
15134
15135
15136
15137
15138
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15141 if ${lt_cv_prog_compiler_c_o+:} false; then :
15142 $as_echo_n "(cached) " >&6
15143 else
15144 lt_cv_prog_compiler_c_o=no
15145 $RM -r conftest 2>/dev/null
15146 mkdir conftest
15147 cd conftest
15148 mkdir out
15149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15150
15151 lt_compiler_flag="-o out/conftest2.$ac_objext"
15152 # Insert the option either (1) after the last *FLAGS variable, or
15153 # (2) before a word containing "conftest.", or (3) at the end.
15154 # Note that $ac_compile itself does not contain backslashes and begins
15155 # with a dollar sign (not a hyphen), so the echo should work correctly.
15156 lt_compile=`echo "$ac_compile" | $SED \
15157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15159 -e 's:$: $lt_compiler_flag:'`
15160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15161 (eval "$lt_compile" 2>out/conftest.err)
15162 ac_status=$?
15163 cat out/conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15166 then
15167 # The compiler can only warn and ignore the option if not recognized
15168 # So say no if there are warnings
15169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15172 lt_cv_prog_compiler_c_o=yes
15173 fi
15174 fi
15175 chmod u+w . 2>&5
15176 $RM conftest*
15177 # SGI C++ compiler will create directory out/ii_files/ for
15178 # template instantiation
15179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15180 $RM out/* && rmdir out
15181 cd ..
15182 $RM -r conftest
15183 $RM conftest*
15184
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15188
15189
15190
15191
15192 hard_links="nottested"
15193 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15194 # do not overwrite the value of need_locks provided by the user
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15196 $as_echo_n "checking if we can lock with hard links... " >&6; }
15197 hard_links=yes
15198 $RM conftest*
15199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15200 touch conftest.a
15201 ln conftest.a conftest.b 2>&5 || hard_links=no
15202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15204 $as_echo "$hard_links" >&6; }
15205 if test "$hard_links" = no; then
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15207 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15208 need_locks=warn
15209 fi
15210 else
15211 need_locks=no
15212 fi
15213
15214
15215
15216
15217
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15220 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15221
15222 runpath_var=
15223 allow_undefined_flag=
15224 always_export_symbols=no
15225 archive_cmds=
15226 archive_expsym_cmds=
15227 compiler_needs_object=no
15228 enable_shared_with_static_runtimes=no
15229 export_dynamic_flag_spec=
15230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15231 hardcode_automatic=no
15232 hardcode_direct=no
15233 hardcode_direct_absolute=no
15234 hardcode_libdir_flag_spec=
15235 hardcode_libdir_separator=
15236 hardcode_minus_L=no
15237 hardcode_shlibpath_var=unsupported
15238 inherit_rpath=no
15239 link_all_deplibs=unknown
15240 module_cmds=
15241 module_expsym_cmds=
15242 old_archive_from_new_cmds=
15243 old_archive_from_expsyms_cmds=
15244 thread_safe_flag_spec=
15245 whole_archive_flag_spec=
15246 # include_expsyms should be a list of space-separated symbols to be *always*
15247 # included in the symbol list
15248 include_expsyms=
15249 # exclude_expsyms can be an extended regexp of symbols to exclude
15250 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15251 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15252 # as well as any symbol that contains `d'.
15253 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15254 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15255 # platforms (ab)use it in PIC code, but their linkers get confused if
15256 # the symbol is explicitly referenced. Since portable code cannot
15257 # rely on this symbol name, it's probably fine to never include it in
15258 # preloaded symbol tables.
15259 # Exclude shared library initialization/finalization symbols.
15260 extract_expsyms_cmds=
15261
15262 case $host_os in
15263 cygwin* | mingw* | pw32* | cegcc*)
15264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15265 # When not using gcc, we currently assume that we are using
15266 # Microsoft Visual C++.
15267 if test "$GCC" != yes; then
15268 with_gnu_ld=no
15269 fi
15270 ;;
15271 interix*)
15272 # we just hope/assume this is gcc and not c89 (= MSVC++)
15273 with_gnu_ld=yes
15274 ;;
15275 openbsd*)
15276 with_gnu_ld=no
15277 ;;
15278 esac
15279
15280 ld_shlibs=yes
15281
15282 # On some targets, GNU ld is compatible enough with the native linker
15283 # that we're better off using the native interface for both.
15284 lt_use_gnu_ld_interface=no
15285 if test "$with_gnu_ld" = yes; then
15286 case $host_os in
15287 aix*)
15288 # The AIX port of GNU ld has always aspired to compatibility
15289 # with the native linker. However, as the warning in the GNU ld
15290 # block says, versions before 2.19.5* couldn't really create working
15291 # shared libraries, regardless of the interface used.
15292 case `$LD -v 2>&1` in
15293 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15294 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15295 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15296 *)
15297 lt_use_gnu_ld_interface=yes
15298 ;;
15299 esac
15300 ;;
15301 *)
15302 lt_use_gnu_ld_interface=yes
15303 ;;
15304 esac
15305 fi
15306
15307 if test "$lt_use_gnu_ld_interface" = yes; then
15308 # If archive_cmds runs LD, not CC, wlarc should be empty
15309 wlarc='${wl}'
15310
15311 # Set some defaults for GNU ld with shared library support. These
15312 # are reset later if shared libraries are not supported. Putting them
15313 # here allows them to be overridden if necessary.
15314 runpath_var=LD_RUN_PATH
15315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15316 export_dynamic_flag_spec='${wl}--export-dynamic'
15317 # ancient GNU ld didn't support --whole-archive et. al.
15318 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15319 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15320 else
15321 whole_archive_flag_spec=
15322 fi
15323 supports_anon_versioning=no
15324 case `$LD -v 2>&1` in
15325 *GNU\ gold*) supports_anon_versioning=yes ;;
15326 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15327 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15328 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15329 *\ 2.11.*) ;; # other 2.11 versions
15330 *) supports_anon_versioning=yes ;;
15331 esac
15332
15333 # See if GNU ld supports shared libraries.
15334 case $host_os in
15335 aix[3-9]*)
15336 # On AIX/PPC, the GNU linker is very broken
15337 if test "$host_cpu" != ia64; then
15338 ld_shlibs=no
15339 cat <<_LT_EOF 1>&2
15340
15341 *** Warning: the GNU linker, at least up to release 2.19, is reported
15342 *** to be unable to reliably create shared libraries on AIX.
15343 *** Therefore, libtool is disabling shared libraries support. If you
15344 *** really care for shared libraries, you may want to install binutils
15345 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15346 *** You will then need to restart the configuration process.
15347
15348 _LT_EOF
15349 fi
15350 ;;
15351
15352 amigaos*)
15353 case $host_cpu in
15354 powerpc)
15355 # see comment about AmigaOS4 .so support
15356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15357 archive_expsym_cmds=''
15358 ;;
15359 m68k)
15360 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)'
15361 hardcode_libdir_flag_spec='-L$libdir'
15362 hardcode_minus_L=yes
15363 ;;
15364 esac
15365 ;;
15366
15367 beos*)
15368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15369 allow_undefined_flag=unsupported
15370 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15371 # support --undefined. This deserves some investigation. FIXME
15372 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15373 else
15374 ld_shlibs=no
15375 fi
15376 ;;
15377
15378 cygwin* | mingw* | pw32* | cegcc*)
15379 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15380 # as there is no search path for DLLs.
15381 hardcode_libdir_flag_spec='-L$libdir'
15382 export_dynamic_flag_spec='${wl}--export-all-symbols'
15383 allow_undefined_flag=unsupported
15384 always_export_symbols=no
15385 enable_shared_with_static_runtimes=yes
15386 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'
15387 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15388
15389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15391 # If the export-symbols file already is a .def file (1st line
15392 # is EXPORTS), use it as is; otherwise, prepend...
15393 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15394 cp $export_symbols $output_objdir/$soname.def;
15395 else
15396 echo EXPORTS > $output_objdir/$soname.def;
15397 cat $export_symbols >> $output_objdir/$soname.def;
15398 fi~
15399 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15400 else
15401 ld_shlibs=no
15402 fi
15403 ;;
15404
15405 haiku*)
15406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15407 link_all_deplibs=yes
15408 ;;
15409
15410 interix[3-9]*)
15411 hardcode_direct=no
15412 hardcode_shlibpath_var=no
15413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15414 export_dynamic_flag_spec='${wl}-E'
15415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15416 # Instead, shared libraries are loaded at an image base (0x10000000 by
15417 # default) and relocated if they conflict, which is a slow very memory
15418 # consuming and fragmenting process. To avoid this, we pick a random,
15419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15422 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'
15423 ;;
15424
15425 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15426 tmp_diet=no
15427 if test "$host_os" = linux-dietlibc; then
15428 case $cc_basename in
15429 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15430 esac
15431 fi
15432 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15433 && test "$tmp_diet" = no
15434 then
15435 tmp_addflag=' $pic_flag'
15436 tmp_sharedflag='-shared'
15437 case $cc_basename,$host_cpu in
15438 pgcc*) # Portland Group C compiler
15439 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'
15440 tmp_addflag=' $pic_flag'
15441 ;;
15442 pgf77* | pgf90* | pgf95* | pgfortran*)
15443 # Portland Group f77 and f90 compilers
15444 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'
15445 tmp_addflag=' $pic_flag -Mnomain' ;;
15446 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15447 tmp_addflag=' -i_dynamic' ;;
15448 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15449 tmp_addflag=' -i_dynamic -nofor_main' ;;
15450 ifc* | ifort*) # Intel Fortran compiler
15451 tmp_addflag=' -nofor_main' ;;
15452 lf95*) # Lahey Fortran 8.1
15453 whole_archive_flag_spec=
15454 tmp_sharedflag='--shared' ;;
15455 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15456 tmp_sharedflag='-qmkshrobj'
15457 tmp_addflag= ;;
15458 nvcc*) # Cuda Compiler Driver 2.2
15459 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'
15460 compiler_needs_object=yes
15461 ;;
15462 esac
15463 case `$CC -V 2>&1 | sed 5q` in
15464 *Sun\ C*) # Sun C 5.9
15465 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'
15466 compiler_needs_object=yes
15467 tmp_sharedflag='-G' ;;
15468 *Sun\ F*) # Sun Fortran 8.3
15469 tmp_sharedflag='-G' ;;
15470 esac
15471 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15472
15473 if test "x$supports_anon_versioning" = xyes; then
15474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15476 echo "local: *; };" >> $output_objdir/$libname.ver~
15477 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15478 fi
15479
15480 case $cc_basename in
15481 xlf* | bgf* | bgxlf* | mpixlf*)
15482 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15483 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15485 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15486 if test "x$supports_anon_versioning" = xyes; then
15487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15489 echo "local: *; };" >> $output_objdir/$libname.ver~
15490 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15491 fi
15492 ;;
15493 esac
15494 else
15495 ld_shlibs=no
15496 fi
15497 ;;
15498
15499 netbsd*)
15500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15501 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15502 wlarc=
15503 else
15504 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15506 fi
15507 ;;
15508
15509 solaris*)
15510 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15511 ld_shlibs=no
15512 cat <<_LT_EOF 1>&2
15513
15514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15515 *** create shared libraries on Solaris systems. Therefore, libtool
15516 *** is disabling shared libraries support. We urge you to upgrade GNU
15517 *** binutils to release 2.9.1 or newer. Another option is to modify
15518 *** your PATH or compiler configuration so that the native linker is
15519 *** used, and then restart.
15520
15521 _LT_EOF
15522 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15524 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15525 else
15526 ld_shlibs=no
15527 fi
15528 ;;
15529
15530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15531 case `$LD -v 2>&1` in
15532 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15533 ld_shlibs=no
15534 cat <<_LT_EOF 1>&2
15535
15536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15537 *** reliably create shared libraries on SCO systems. Therefore, libtool
15538 *** is disabling shared libraries support. We urge you to upgrade GNU
15539 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15540 *** your PATH or compiler configuration so that the native linker is
15541 *** used, and then restart.
15542
15543 _LT_EOF
15544 ;;
15545 *)
15546 # For security reasons, it is highly recommended that you always
15547 # use absolute paths for naming shared libraries, and exclude the
15548 # DT_RUNPATH tag from executables and libraries. But doing so
15549 # requires that you compile everything twice, which is a pain.
15550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15554 else
15555 ld_shlibs=no
15556 fi
15557 ;;
15558 esac
15559 ;;
15560
15561 sunos4*)
15562 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15563 wlarc=
15564 hardcode_direct=yes
15565 hardcode_shlibpath_var=no
15566 ;;
15567
15568 *)
15569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15571 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15572 else
15573 ld_shlibs=no
15574 fi
15575 ;;
15576 esac
15577
15578 if test "$ld_shlibs" = no; then
15579 runpath_var=
15580 hardcode_libdir_flag_spec=
15581 export_dynamic_flag_spec=
15582 whole_archive_flag_spec=
15583 fi
15584 else
15585 # PORTME fill in a description of your system's linker (not GNU ld)
15586 case $host_os in
15587 aix3*)
15588 allow_undefined_flag=unsupported
15589 always_export_symbols=yes
15590 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'
15591 # Note: this linker hardcodes the directories in LIBPATH if there
15592 # are no directories specified by -L.
15593 hardcode_minus_L=yes
15594 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15595 # Neither direct hardcoding nor static linking is supported with a
15596 # broken collect2.
15597 hardcode_direct=unsupported
15598 fi
15599 ;;
15600
15601 aix[4-9]*)
15602 if test "$host_cpu" = ia64; then
15603 # On IA64, the linker does run time linking by default, so we don't
15604 # have to do anything special.
15605 aix_use_runtimelinking=no
15606 exp_sym_flag='-Bexport'
15607 no_entry_flag=""
15608 else
15609 # If we're using GNU nm, then we don't want the "-C" option.
15610 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15611 # Also, AIX nm treats weak defined symbols like other global
15612 # defined symbols, whereas GNU nm marks them as "W".
15613 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15614 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15615 else
15616 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15617 fi
15618 aix_use_runtimelinking=no
15619
15620 # Test if we are trying to use run time linking or normal
15621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15622 # need to do runtime linking.
15623 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15624 for ld_flag in $LDFLAGS; do
15625 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15626 aix_use_runtimelinking=yes
15627 break
15628 fi
15629 done
15630 ;;
15631 esac
15632
15633 exp_sym_flag='-bexport'
15634 no_entry_flag='-bnoentry'
15635 fi
15636
15637 # When large executables or shared objects are built, AIX ld can
15638 # have problems creating the table of contents. If linking a library
15639 # or program results in "error TOC overflow" add -mminimal-toc to
15640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15642
15643 archive_cmds=''
15644 hardcode_direct=yes
15645 hardcode_direct_absolute=yes
15646 hardcode_libdir_separator=':'
15647 link_all_deplibs=yes
15648 file_list_spec='${wl}-f,'
15649
15650 if test "$GCC" = yes; then
15651 case $host_os in aix4.[012]|aix4.[012].*)
15652 # We only want to do this on AIX 4.2 and lower, the check
15653 # below for broken collect2 doesn't work under 4.3+
15654 collect2name=`${CC} -print-prog-name=collect2`
15655 if test -f "$collect2name" &&
15656 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15657 then
15658 # We have reworked collect2
15659 :
15660 else
15661 # We have old collect2
15662 hardcode_direct=unsupported
15663 # It fails to find uninstalled libraries when the uninstalled
15664 # path is not listed in the libpath. Setting hardcode_minus_L
15665 # to unsupported forces relinking
15666 hardcode_minus_L=yes
15667 hardcode_libdir_flag_spec='-L$libdir'
15668 hardcode_libdir_separator=
15669 fi
15670 ;;
15671 esac
15672 shared_flag='-shared'
15673 if test "$aix_use_runtimelinking" = yes; then
15674 shared_flag="$shared_flag "'${wl}-G'
15675 fi
15676 else
15677 # not using gcc
15678 if test "$host_cpu" = ia64; then
15679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15680 # chokes on -Wl,-G. The following line is correct:
15681 shared_flag='-G'
15682 else
15683 if test "$aix_use_runtimelinking" = yes; then
15684 shared_flag='${wl}-G'
15685 else
15686 shared_flag='${wl}-bM:SRE'
15687 fi
15688 fi
15689 fi
15690
15691 export_dynamic_flag_spec='${wl}-bexpall'
15692 # It seems that -bexpall does not export symbols beginning with
15693 # underscore (_), so it is better to generate a list of symbols to export.
15694 always_export_symbols=yes
15695 if test "$aix_use_runtimelinking" = yes; then
15696 # Warning - without using the other runtime loading flags (-brtl),
15697 # -berok will link without error, but may produce a broken library.
15698 allow_undefined_flag='-berok'
15699 # Determine the default libpath from the value encoded in an
15700 # empty executable.
15701 if test "${lt_cv_aix_libpath+set}" = set; then
15702 aix_libpath=$lt_cv_aix_libpath
15703 else
15704 if ${lt_cv_aix_libpath_+:} false; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709
15710 int
15711 main ()
15712 {
15713
15714 ;
15715 return 0;
15716 }
15717 _ACEOF
15718 if ac_fn_c_try_link "$LINENO"; then :
15719
15720 lt_aix_libpath_sed='
15721 /Import File Strings/,/^$/ {
15722 /^0/ {
15723 s/^0 *\([^ ]*\) *$/\1/
15724 p
15725 }
15726 }'
15727 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15728 # Check for a 64-bit object if we didn't find anything.
15729 if test -z "$lt_cv_aix_libpath_"; then
15730 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15731 fi
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735 if test -z "$lt_cv_aix_libpath_"; then
15736 lt_cv_aix_libpath_="/usr/lib:/lib"
15737 fi
15738
15739 fi
15740
15741 aix_libpath=$lt_cv_aix_libpath_
15742 fi
15743
15744 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15745 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15746 else
15747 if test "$host_cpu" = ia64; then
15748 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15749 allow_undefined_flag="-z nodefs"
15750 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"
15751 else
15752 # Determine the default libpath from the value encoded in an
15753 # empty executable.
15754 if test "${lt_cv_aix_libpath+set}" = set; then
15755 aix_libpath=$lt_cv_aix_libpath
15756 else
15757 if ${lt_cv_aix_libpath_+:} false; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762
15763 int
15764 main ()
15765 {
15766
15767 ;
15768 return 0;
15769 }
15770 _ACEOF
15771 if ac_fn_c_try_link "$LINENO"; then :
15772
15773 lt_aix_libpath_sed='
15774 /Import File Strings/,/^$/ {
15775 /^0/ {
15776 s/^0 *\([^ ]*\) *$/\1/
15777 p
15778 }
15779 }'
15780 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15781 # Check for a 64-bit object if we didn't find anything.
15782 if test -z "$lt_cv_aix_libpath_"; then
15783 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15784 fi
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext \
15787 conftest$ac_exeext conftest.$ac_ext
15788 if test -z "$lt_cv_aix_libpath_"; then
15789 lt_cv_aix_libpath_="/usr/lib:/lib"
15790 fi
15791
15792 fi
15793
15794 aix_libpath=$lt_cv_aix_libpath_
15795 fi
15796
15797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15798 # Warning - without using the other run time loading flags,
15799 # -berok will link without error, but may produce a broken library.
15800 no_undefined_flag=' ${wl}-bernotok'
15801 allow_undefined_flag=' ${wl}-berok'
15802 if test "$with_gnu_ld" = yes; then
15803 # We only use this code for GNU lds that support --whole-archive.
15804 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15805 else
15806 # Exported symbols can be pulled into shared objects from archives
15807 whole_archive_flag_spec='$convenience'
15808 fi
15809 archive_cmds_need_lc=yes
15810 # This is similar to how AIX traditionally builds its shared libraries.
15811 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15812 fi
15813 fi
15814 ;;
15815
15816 amigaos*)
15817 case $host_cpu in
15818 powerpc)
15819 # see comment about AmigaOS4 .so support
15820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15821 archive_expsym_cmds=''
15822 ;;
15823 m68k)
15824 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)'
15825 hardcode_libdir_flag_spec='-L$libdir'
15826 hardcode_minus_L=yes
15827 ;;
15828 esac
15829 ;;
15830
15831 bsdi[45]*)
15832 export_dynamic_flag_spec=-rdynamic
15833 ;;
15834
15835 cygwin* | mingw* | pw32* | cegcc*)
15836 # When not using gcc, we currently assume that we are using
15837 # Microsoft Visual C++.
15838 # hardcode_libdir_flag_spec is actually meaningless, as there is
15839 # no search path for DLLs.
15840 case $cc_basename in
15841 cl*)
15842 # Native MSVC
15843 hardcode_libdir_flag_spec=' '
15844 allow_undefined_flag=unsupported
15845 always_export_symbols=yes
15846 file_list_spec='@'
15847 # Tell ltmain to make .lib files, not .a files.
15848 libext=lib
15849 # Tell ltmain to make .dll files, not .so files.
15850 shrext_cmds=".dll"
15851 # FIXME: Setting linknames here is a bad hack.
15852 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15853 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15854 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15855 else
15856 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15857 fi~
15858 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15859 linknames='
15860 # The linker will not automatically build a static lib if we build a DLL.
15861 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15862 enable_shared_with_static_runtimes=yes
15863 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15865 # Don't use ranlib
15866 old_postinstall_cmds='chmod 644 $oldlib'
15867 postlink_cmds='lt_outputfile="@OUTPUT@"~
15868 lt_tool_outputfile="@TOOL_OUTPUT@"~
15869 case $lt_outputfile in
15870 *.exe|*.EXE) ;;
15871 *)
15872 lt_outputfile="$lt_outputfile.exe"
15873 lt_tool_outputfile="$lt_tool_outputfile.exe"
15874 ;;
15875 esac~
15876 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15877 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15878 $RM "$lt_outputfile.manifest";
15879 fi'
15880 ;;
15881 *)
15882 # Assume MSVC wrapper
15883 hardcode_libdir_flag_spec=' '
15884 allow_undefined_flag=unsupported
15885 # Tell ltmain to make .lib files, not .a files.
15886 libext=lib
15887 # Tell ltmain to make .dll files, not .so files.
15888 shrext_cmds=".dll"
15889 # FIXME: Setting linknames here is a bad hack.
15890 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15891 # The linker will automatically build a .lib file if we build a DLL.
15892 old_archive_from_new_cmds='true'
15893 # FIXME: Should let the user specify the lib program.
15894 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15895 enable_shared_with_static_runtimes=yes
15896 ;;
15897 esac
15898 ;;
15899
15900 darwin* | rhapsody*)
15901
15902
15903 archive_cmds_need_lc=no
15904 hardcode_direct=no
15905 hardcode_automatic=yes
15906 hardcode_shlibpath_var=unsupported
15907 if test "$lt_cv_ld_force_load" = "yes"; then
15908 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\"`'
15909
15910 else
15911 whole_archive_flag_spec=''
15912 fi
15913 link_all_deplibs=yes
15914 allow_undefined_flag="$_lt_dar_allow_undefined"
15915 case $cc_basename in
15916 ifort*) _lt_dar_can_shared=yes ;;
15917 *) _lt_dar_can_shared=$GCC ;;
15918 esac
15919 if test "$_lt_dar_can_shared" = "yes"; then
15920 output_verbose_link_cmd=func_echo_all
15921 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15922 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15923 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}"
15924 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}"
15925
15926 else
15927 ld_shlibs=no
15928 fi
15929
15930 ;;
15931
15932 dgux*)
15933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_libdir_flag_spec='-L$libdir'
15935 hardcode_shlibpath_var=no
15936 ;;
15937
15938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15939 # support. Future versions do this automatically, but an explicit c++rt0.o
15940 # does not break anything, and helps significantly (at the cost of a little
15941 # extra space).
15942 freebsd2.2*)
15943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15944 hardcode_libdir_flag_spec='-R$libdir'
15945 hardcode_direct=yes
15946 hardcode_shlibpath_var=no
15947 ;;
15948
15949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15950 freebsd2.*)
15951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_direct=yes
15953 hardcode_minus_L=yes
15954 hardcode_shlibpath_var=no
15955 ;;
15956
15957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15958 freebsd* | dragonfly*)
15959 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15960 hardcode_libdir_flag_spec='-R$libdir'
15961 hardcode_direct=yes
15962 hardcode_shlibpath_var=no
15963 ;;
15964
15965 hpux9*)
15966 if test "$GCC" = yes; then
15967 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15968 else
15969 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15970 fi
15971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15972 hardcode_libdir_separator=:
15973 hardcode_direct=yes
15974
15975 # hardcode_minus_L: Not really in the search PATH,
15976 # but as the default location of the library.
15977 hardcode_minus_L=yes
15978 export_dynamic_flag_spec='${wl}-E'
15979 ;;
15980
15981 hpux10*)
15982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15983 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15984 else
15985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15986 fi
15987 if test "$with_gnu_ld" = no; then
15988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15989 hardcode_libdir_separator=:
15990 hardcode_direct=yes
15991 hardcode_direct_absolute=yes
15992 export_dynamic_flag_spec='${wl}-E'
15993 # hardcode_minus_L: Not really in the search PATH,
15994 # but as the default location of the library.
15995 hardcode_minus_L=yes
15996 fi
15997 ;;
15998
15999 hpux11*)
16000 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16001 case $host_cpu in
16002 hppa*64*)
16003 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004 ;;
16005 ia64*)
16006 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16007 ;;
16008 *)
16009 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16010 ;;
16011 esac
16012 else
16013 case $host_cpu in
16014 hppa*64*)
16015 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16016 ;;
16017 ia64*)
16018 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16019 ;;
16020 *)
16021
16022 # Older versions of the 11.00 compiler do not understand -b yet
16023 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16025 $as_echo_n "checking if $CC understands -b... " >&6; }
16026 if ${lt_cv_prog_compiler__b+:} false; then :
16027 $as_echo_n "(cached) " >&6
16028 else
16029 lt_cv_prog_compiler__b=no
16030 save_LDFLAGS="$LDFLAGS"
16031 LDFLAGS="$LDFLAGS -b"
16032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16034 # The linker can only warn and ignore the option if not recognized
16035 # So say no if there are warnings
16036 if test -s conftest.err; then
16037 # Append any errors to the config.log.
16038 cat conftest.err 1>&5
16039 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16041 if diff conftest.exp conftest.er2 >/dev/null; then
16042 lt_cv_prog_compiler__b=yes
16043 fi
16044 else
16045 lt_cv_prog_compiler__b=yes
16046 fi
16047 fi
16048 $RM -r conftest*
16049 LDFLAGS="$save_LDFLAGS"
16050
16051 fi
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16053 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16054
16055 if test x"$lt_cv_prog_compiler__b" = xyes; then
16056 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16057 else
16058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16059 fi
16060
16061 ;;
16062 esac
16063 fi
16064 if test "$with_gnu_ld" = no; then
16065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16066 hardcode_libdir_separator=:
16067
16068 case $host_cpu in
16069 hppa*64*|ia64*)
16070 hardcode_direct=no
16071 hardcode_shlibpath_var=no
16072 ;;
16073 *)
16074 hardcode_direct=yes
16075 hardcode_direct_absolute=yes
16076 export_dynamic_flag_spec='${wl}-E'
16077
16078 # hardcode_minus_L: Not really in the search PATH,
16079 # but as the default location of the library.
16080 hardcode_minus_L=yes
16081 ;;
16082 esac
16083 fi
16084 ;;
16085
16086 irix5* | irix6* | nonstopux*)
16087 if test "$GCC" = yes; then
16088 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'
16089 # Try to use the -exported_symbol ld option, if it does not
16090 # work, assume that -exports_file does not work either and
16091 # implicitly export all symbols.
16092 # This should be the same for all languages, so no per-tag cache variable.
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16094 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16095 if ${lt_cv_irix_exported_symbol+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 save_LDFLAGS="$LDFLAGS"
16099 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102 int foo (void) { return 0; }
16103 _ACEOF
16104 if ac_fn_c_try_link "$LINENO"; then :
16105 lt_cv_irix_exported_symbol=yes
16106 else
16107 lt_cv_irix_exported_symbol=no
16108 fi
16109 rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16111 LDFLAGS="$save_LDFLAGS"
16112 fi
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16114 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16115 if test "$lt_cv_irix_exported_symbol" = yes; then
16116 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'
16117 fi
16118 else
16119 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'
16120 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'
16121 fi
16122 archive_cmds_need_lc='no'
16123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16124 hardcode_libdir_separator=:
16125 inherit_rpath=yes
16126 link_all_deplibs=yes
16127 ;;
16128
16129 netbsd*)
16130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16132 else
16133 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16134 fi
16135 hardcode_libdir_flag_spec='-R$libdir'
16136 hardcode_direct=yes
16137 hardcode_shlibpath_var=no
16138 ;;
16139
16140 newsos6)
16141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_direct=yes
16143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16144 hardcode_libdir_separator=:
16145 hardcode_shlibpath_var=no
16146 ;;
16147
16148 *nto* | *qnx*)
16149 ;;
16150
16151 openbsd*)
16152 if test -f /usr/libexec/ld.so; then
16153 hardcode_direct=yes
16154 hardcode_shlibpath_var=no
16155 hardcode_direct_absolute=yes
16156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16158 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16160 export_dynamic_flag_spec='${wl}-E'
16161 else
16162 case $host_os in
16163 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16165 hardcode_libdir_flag_spec='-R$libdir'
16166 ;;
16167 *)
16168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16170 ;;
16171 esac
16172 fi
16173 else
16174 ld_shlibs=no
16175 fi
16176 ;;
16177
16178 os2*)
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_minus_L=yes
16181 allow_undefined_flag=unsupported
16182 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16183 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16184 ;;
16185
16186 osf3*)
16187 if test "$GCC" = yes; then
16188 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16189 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'
16190 else
16191 allow_undefined_flag=' -expect_unresolved \*'
16192 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'
16193 fi
16194 archive_cmds_need_lc='no'
16195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16196 hardcode_libdir_separator=:
16197 ;;
16198
16199 osf4* | osf5*) # as osf3* with the addition of -msym flag
16200 if test "$GCC" = yes; then
16201 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16202 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'
16203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16204 else
16205 allow_undefined_flag=' -expect_unresolved \*'
16206 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'
16207 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~
16208 $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'
16209
16210 # Both c and cxx compiler support -rpath directly
16211 hardcode_libdir_flag_spec='-rpath $libdir'
16212 fi
16213 archive_cmds_need_lc='no'
16214 hardcode_libdir_separator=:
16215 ;;
16216
16217 solaris*)
16218 no_undefined_flag=' -z defs'
16219 if test "$GCC" = yes; then
16220 wlarc='${wl}'
16221 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16223 $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'
16224 else
16225 case `$CC -V 2>&1` in
16226 *"Compilers 5.0"*)
16227 wlarc=''
16228 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16231 ;;
16232 *)
16233 wlarc='${wl}'
16234 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16236 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16237 ;;
16238 esac
16239 fi
16240 hardcode_libdir_flag_spec='-R$libdir'
16241 hardcode_shlibpath_var=no
16242 case $host_os in
16243 solaris2.[0-5] | solaris2.[0-5].*) ;;
16244 *)
16245 # The compiler driver will combine and reorder linker options,
16246 # but understands `-z linker_flag'. GCC discards it without `$wl',
16247 # but is careful enough not to reorder.
16248 # Supported since Solaris 2.6 (maybe 2.5.1?)
16249 if test "$GCC" = yes; then
16250 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16251 else
16252 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16253 fi
16254 ;;
16255 esac
16256 link_all_deplibs=yes
16257 ;;
16258
16259 sunos4*)
16260 if test "x$host_vendor" = xsequent; then
16261 # Use $CC to link under sequent, because it throws in some extra .o
16262 # files that make .init and .fini sections work.
16263 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16264 else
16265 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16266 fi
16267 hardcode_libdir_flag_spec='-L$libdir'
16268 hardcode_direct=yes
16269 hardcode_minus_L=yes
16270 hardcode_shlibpath_var=no
16271 ;;
16272
16273 sysv4)
16274 case $host_vendor in
16275 sni)
16276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16277 hardcode_direct=yes # is this really true???
16278 ;;
16279 siemens)
16280 ## LD is ld it makes a PLAMLIB
16281 ## CC just makes a GrossModule.
16282 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16283 reload_cmds='$CC -r -o $output$reload_objs'
16284 hardcode_direct=no
16285 ;;
16286 motorola)
16287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16288 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16289 ;;
16290 esac
16291 runpath_var='LD_RUN_PATH'
16292 hardcode_shlibpath_var=no
16293 ;;
16294
16295 sysv4.3*)
16296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16297 hardcode_shlibpath_var=no
16298 export_dynamic_flag_spec='-Bexport'
16299 ;;
16300
16301 sysv4*MP*)
16302 if test -d /usr/nec; then
16303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16304 hardcode_shlibpath_var=no
16305 runpath_var=LD_RUN_PATH
16306 hardcode_runpath_var=yes
16307 ld_shlibs=yes
16308 fi
16309 ;;
16310
16311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16312 no_undefined_flag='${wl}-z,text'
16313 archive_cmds_need_lc=no
16314 hardcode_shlibpath_var=no
16315 runpath_var='LD_RUN_PATH'
16316
16317 if test "$GCC" = yes; then
16318 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16319 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16320 else
16321 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16322 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16323 fi
16324 ;;
16325
16326 sysv5* | sco3.2v5* | sco5v6*)
16327 # Note: We can NOT use -z defs as we might desire, because we do not
16328 # link with -lc, and that would cause any symbols used from libc to
16329 # always be unresolved, which means just about no library would
16330 # ever link correctly. If we're not using GNU ld we use -z text
16331 # though, which does catch some bad symbols but isn't as heavy-handed
16332 # as -z defs.
16333 no_undefined_flag='${wl}-z,text'
16334 allow_undefined_flag='${wl}-z,nodefs'
16335 archive_cmds_need_lc=no
16336 hardcode_shlibpath_var=no
16337 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16338 hardcode_libdir_separator=':'
16339 link_all_deplibs=yes
16340 export_dynamic_flag_spec='${wl}-Bexport'
16341 runpath_var='LD_RUN_PATH'
16342
16343 if test "$GCC" = yes; then
16344 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16345 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16346 else
16347 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16348 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16349 fi
16350 ;;
16351
16352 uts4*)
16353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_libdir_flag_spec='-L$libdir'
16355 hardcode_shlibpath_var=no
16356 ;;
16357
16358 *)
16359 ld_shlibs=no
16360 ;;
16361 esac
16362
16363 if test x$host_vendor = xsni; then
16364 case $host in
16365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16366 export_dynamic_flag_spec='${wl}-Blargedynsym'
16367 ;;
16368 esac
16369 fi
16370 fi
16371
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16373 $as_echo "$ld_shlibs" >&6; }
16374 test "$ld_shlibs" = no && can_build_shared=no
16375
16376 with_gnu_ld=$with_gnu_ld
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392 #
16393 # Do we need to explicitly link libc?
16394 #
16395 case "x$archive_cmds_need_lc" in
16396 x|xyes)
16397 # Assume -lc should be added
16398 archive_cmds_need_lc=yes
16399
16400 if test "$enable_shared" = yes && test "$GCC" = yes; then
16401 case $archive_cmds in
16402 *'~'*)
16403 # FIXME: we may have to deal with multi-command sequences.
16404 ;;
16405 '$CC '*)
16406 # Test whether the compiler implicitly links with -lc since on some
16407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16408 # to ld, don't add -lc before -lgcc.
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16410 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16411 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 $RM conftest*
16415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16416
16417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16418 (eval $ac_compile) 2>&5
16419 ac_status=$?
16420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16421 test $ac_status = 0; } 2>conftest.err; then
16422 soname=conftest
16423 lib=conftest
16424 libobjs=conftest.$ac_objext
16425 deplibs=
16426 wl=$lt_prog_compiler_wl
16427 pic_flag=$lt_prog_compiler_pic
16428 compiler_flags=-v
16429 linker_flags=-v
16430 verstring=
16431 output_objdir=.
16432 libname=conftest
16433 lt_save_allow_undefined_flag=$allow_undefined_flag
16434 allow_undefined_flag=
16435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16436 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16437 ac_status=$?
16438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16439 test $ac_status = 0; }
16440 then
16441 lt_cv_archive_cmds_need_lc=no
16442 else
16443 lt_cv_archive_cmds_need_lc=yes
16444 fi
16445 allow_undefined_flag=$lt_save_allow_undefined_flag
16446 else
16447 cat conftest.err 1>&5
16448 fi
16449 $RM conftest*
16450
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16453 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16454 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16455 ;;
16456 esac
16457 fi
16458 ;;
16459 esac
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16613 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16614
16615 if test "$GCC" = yes; then
16616 case $host_os in
16617 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16618 *) lt_awk_arg="/^libraries:/" ;;
16619 esac
16620 case $host_os in
16621 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16622 *) lt_sed_strip_eq="s,=/,/,g" ;;
16623 esac
16624 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16625 case $lt_search_path_spec in
16626 *\;*)
16627 # if the path contains ";" then we assume it to be the separator
16628 # otherwise default to the standard path separator (i.e. ":") - it is
16629 # assumed that no part of a normal pathname contains ";" but that should
16630 # okay in the real world where ";" in dirpaths is itself problematic.
16631 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16632 ;;
16633 *)
16634 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16635 ;;
16636 esac
16637 # Ok, now we have the path, separated by spaces, we can step through it
16638 # and add multilib dir if necessary.
16639 lt_tmp_lt_search_path_spec=
16640 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16641 for lt_sys_path in $lt_search_path_spec; do
16642 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16644 else
16645 test -d "$lt_sys_path" && \
16646 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16647 fi
16648 done
16649 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16650 BEGIN {RS=" "; FS="/|\n";} {
16651 lt_foo="";
16652 lt_count=0;
16653 for (lt_i = NF; lt_i > 0; lt_i--) {
16654 if ($lt_i != "" && $lt_i != ".") {
16655 if ($lt_i == "..") {
16656 lt_count++;
16657 } else {
16658 if (lt_count == 0) {
16659 lt_foo="/" $lt_i lt_foo;
16660 } else {
16661 lt_count--;
16662 }
16663 }
16664 }
16665 }
16666 if (lt_foo != "") { lt_freq[lt_foo]++; }
16667 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16668 }'`
16669 # AWK program above erroneously prepends '/' to C:/dos/paths
16670 # for these hosts.
16671 case $host_os in
16672 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16673 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16674 esac
16675 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16676 else
16677 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16678 fi
16679 library_names_spec=
16680 libname_spec='lib$name'
16681 soname_spec=
16682 shrext_cmds=".so"
16683 postinstall_cmds=
16684 postuninstall_cmds=
16685 finish_cmds=
16686 finish_eval=
16687 shlibpath_var=
16688 shlibpath_overrides_runpath=unknown
16689 version_type=none
16690 dynamic_linker="$host_os ld.so"
16691 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16692 need_lib_prefix=unknown
16693 hardcode_into_libs=no
16694
16695 # when you set need_version to no, make sure it does not cause -set_version
16696 # flags to be left without arguments
16697 need_version=unknown
16698
16699 case $host_os in
16700 aix3*)
16701 version_type=linux # correct to gnu/linux during the next big refactor
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16703 shlibpath_var=LIBPATH
16704
16705 # AIX 3 has no versioning support, so we append a major version to the name.
16706 soname_spec='${libname}${release}${shared_ext}$major'
16707 ;;
16708
16709 aix[4-9]*)
16710 version_type=linux # correct to gnu/linux during the next big refactor
16711 need_lib_prefix=no
16712 need_version=no
16713 hardcode_into_libs=yes
16714 if test "$host_cpu" = ia64; then
16715 # AIX 5 supports IA64
16716 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 else
16719 # With GCC up to 2.95.x, collect2 would create an import file
16720 # for dependence libraries. The import file would start with
16721 # the line `#! .'. This would cause the generated library to
16722 # depend on `.', always an invalid library. This was fixed in
16723 # development snapshots of GCC prior to 3.0.
16724 case $host_os in
16725 aix4 | aix4.[01] | aix4.[01].*)
16726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16727 echo ' yes '
16728 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16729 :
16730 else
16731 can_build_shared=no
16732 fi
16733 ;;
16734 esac
16735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16736 # soname into executable. Probably we can add versioning support to
16737 # collect2, so additional links can be useful in future.
16738 if test "$aix_use_runtimelinking" = yes; then
16739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16740 # instead of lib<name>.a to let people know that these are not
16741 # typical AIX shared libraries.
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16743 else
16744 # We preserve .a as extension for shared libraries through AIX4.2
16745 # and later when we are not doing run time linking.
16746 library_names_spec='${libname}${release}.a $libname.a'
16747 soname_spec='${libname}${release}${shared_ext}$major'
16748 fi
16749 shlibpath_var=LIBPATH
16750 fi
16751 ;;
16752
16753 amigaos*)
16754 case $host_cpu in
16755 powerpc)
16756 # Since July 2007 AmigaOS4 officially supports .so libraries.
16757 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 ;;
16760 m68k)
16761 library_names_spec='$libname.ixlibrary $libname.a'
16762 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16763 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16764 ;;
16765 esac
16766 ;;
16767
16768 beos*)
16769 library_names_spec='${libname}${shared_ext}'
16770 dynamic_linker="$host_os ld.so"
16771 shlibpath_var=LIBRARY_PATH
16772 ;;
16773
16774 bsdi[45]*)
16775 version_type=linux # correct to gnu/linux during the next big refactor
16776 need_version=no
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16782 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16783 # the default ld.so.conf also contains /usr/contrib/lib and
16784 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16785 # libtool to hard-code these into programs
16786 ;;
16787
16788 cygwin* | mingw* | pw32* | cegcc*)
16789 version_type=windows
16790 shrext_cmds=".dll"
16791 need_version=no
16792 need_lib_prefix=no
16793
16794 case $GCC,$cc_basename in
16795 yes,*)
16796 # gcc
16797 library_names_spec='$libname.dll.a'
16798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16799 postinstall_cmds='base_file=`basename \${file}`~
16800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16801 dldir=$destdir/`dirname \$dlpath`~
16802 test -d \$dldir || mkdir -p \$dldir~
16803 $install_prog $dir/$dlname \$dldir/$dlname~
16804 chmod a+x \$dldir/$dlname~
16805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16807 fi'
16808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16809 dlpath=$dir/\$dldll~
16810 $RM \$dlpath'
16811 shlibpath_overrides_runpath=yes
16812
16813 case $host_os in
16814 cygwin*)
16815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16817
16818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16819 ;;
16820 mingw* | cegcc*)
16821 # MinGW DLLs use traditional 'lib' prefix
16822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16823 ;;
16824 pw32*)
16825 # pw32 DLLs use 'pw' prefix rather than 'lib'
16826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16827 ;;
16828 esac
16829 dynamic_linker='Win32 ld.exe'
16830 ;;
16831
16832 *,cl*)
16833 # Native MSVC
16834 libname_spec='$name'
16835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16836 library_names_spec='${libname}.dll.lib'
16837
16838 case $build_os in
16839 mingw*)
16840 sys_lib_search_path_spec=
16841 lt_save_ifs=$IFS
16842 IFS=';'
16843 for lt_path in $LIB
16844 do
16845 IFS=$lt_save_ifs
16846 # Let DOS variable expansion print the short 8.3 style file name.
16847 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16848 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16849 done
16850 IFS=$lt_save_ifs
16851 # Convert to MSYS style.
16852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16853 ;;
16854 cygwin*)
16855 # Convert to unix form, then to dos form, then back to unix form
16856 # but this time dos style (no spaces!) so that the unix form looks
16857 # like /cygdrive/c/PROGRA~1:/cygdr...
16858 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16859 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16860 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16861 ;;
16862 *)
16863 sys_lib_search_path_spec="$LIB"
16864 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16865 # It is most probably a Windows format PATH.
16866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16867 else
16868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16869 fi
16870 # FIXME: find the short name or the path components, as spaces are
16871 # common. (e.g. "Program Files" -> "PROGRA~1")
16872 ;;
16873 esac
16874
16875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16876 postinstall_cmds='base_file=`basename \${file}`~
16877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16878 dldir=$destdir/`dirname \$dlpath`~
16879 test -d \$dldir || mkdir -p \$dldir~
16880 $install_prog $dir/$dlname \$dldir/$dlname'
16881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16882 dlpath=$dir/\$dldll~
16883 $RM \$dlpath'
16884 shlibpath_overrides_runpath=yes
16885 dynamic_linker='Win32 link.exe'
16886 ;;
16887
16888 *)
16889 # Assume MSVC wrapper
16890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16891 dynamic_linker='Win32 ld.exe'
16892 ;;
16893 esac
16894 # FIXME: first we should search . and the directory the executable is in
16895 shlibpath_var=PATH
16896 ;;
16897
16898 darwin* | rhapsody*)
16899 dynamic_linker="$host_os dyld"
16900 version_type=darwin
16901 need_lib_prefix=no
16902 need_version=no
16903 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16904 soname_spec='${libname}${release}${major}$shared_ext'
16905 shlibpath_overrides_runpath=yes
16906 shlibpath_var=DYLD_LIBRARY_PATH
16907 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16908
16909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16911 ;;
16912
16913 dgux*)
16914 version_type=linux # correct to gnu/linux during the next big refactor
16915 need_lib_prefix=no
16916 need_version=no
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 ;;
16921
16922 freebsd* | dragonfly*)
16923 # DragonFly does not have aout. When/if they implement a new
16924 # versioning mechanism, adjust this.
16925 if test -x /usr/bin/objformat; then
16926 objformat=`/usr/bin/objformat`
16927 else
16928 case $host_os in
16929 freebsd[23].*) objformat=aout ;;
16930 *) objformat=elf ;;
16931 esac
16932 fi
16933 version_type=freebsd-$objformat
16934 case $version_type in
16935 freebsd-elf*)
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16937 need_version=no
16938 need_lib_prefix=no
16939 ;;
16940 freebsd-*)
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16942 need_version=yes
16943 ;;
16944 esac
16945 shlibpath_var=LD_LIBRARY_PATH
16946 case $host_os in
16947 freebsd2.*)
16948 shlibpath_overrides_runpath=yes
16949 ;;
16950 freebsd3.[01]* | freebsdelf3.[01]*)
16951 shlibpath_overrides_runpath=yes
16952 hardcode_into_libs=yes
16953 ;;
16954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16956 shlibpath_overrides_runpath=no
16957 hardcode_into_libs=yes
16958 ;;
16959 *) # from 4.6 on, and DragonFly
16960 shlibpath_overrides_runpath=yes
16961 hardcode_into_libs=yes
16962 ;;
16963 esac
16964 ;;
16965
16966 gnu*)
16967 version_type=linux # correct to gnu/linux during the next big refactor
16968 need_lib_prefix=no
16969 need_version=no
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 shlibpath_var=LD_LIBRARY_PATH
16973 shlibpath_overrides_runpath=no
16974 hardcode_into_libs=yes
16975 ;;
16976
16977 haiku*)
16978 version_type=linux # correct to gnu/linux during the next big refactor
16979 need_lib_prefix=no
16980 need_version=no
16981 dynamic_linker="$host_os runtime_loader"
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 shlibpath_var=LIBRARY_PATH
16985 shlibpath_overrides_runpath=yes
16986 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16987 hardcode_into_libs=yes
16988 ;;
16989
16990 hpux9* | hpux10* | hpux11*)
16991 # Give a soname corresponding to the major version so that dld.sl refuses to
16992 # link against other versions.
16993 version_type=sunos
16994 need_lib_prefix=no
16995 need_version=no
16996 case $host_cpu in
16997 ia64*)
16998 shrext_cmds='.so'
16999 hardcode_into_libs=yes
17000 dynamic_linker="$host_os dld.so"
17001 shlibpath_var=LD_LIBRARY_PATH
17002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 if test "X$HPUX_IA64_MODE" = X32; then
17006 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17007 else
17008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17009 fi
17010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17011 ;;
17012 hppa*64*)
17013 shrext_cmds='.sl'
17014 hardcode_into_libs=yes
17015 dynamic_linker="$host_os dld.sl"
17016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17019 soname_spec='${libname}${release}${shared_ext}$major'
17020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17022 ;;
17023 *)
17024 shrext_cmds='.sl'
17025 dynamic_linker="$host_os dld.sl"
17026 shlibpath_var=SHLIB_PATH
17027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17029 soname_spec='${libname}${release}${shared_ext}$major'
17030 ;;
17031 esac
17032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17033 postinstall_cmds='chmod 555 $lib'
17034 # or fails outright, so override atomically:
17035 install_override_mode=555
17036 ;;
17037
17038 interix[3-9]*)
17039 version_type=linux # correct to gnu/linux during the next big refactor
17040 need_lib_prefix=no
17041 need_version=no
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17045 shlibpath_var=LD_LIBRARY_PATH
17046 shlibpath_overrides_runpath=no
17047 hardcode_into_libs=yes
17048 ;;
17049
17050 irix5* | irix6* | nonstopux*)
17051 case $host_os in
17052 nonstopux*) version_type=nonstopux ;;
17053 *)
17054 if test "$lt_cv_prog_gnu_ld" = yes; then
17055 version_type=linux # correct to gnu/linux during the next big refactor
17056 else
17057 version_type=irix
17058 fi ;;
17059 esac
17060 need_lib_prefix=no
17061 need_version=no
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17064 case $host_os in
17065 irix5* | nonstopux*)
17066 libsuff= shlibsuff=
17067 ;;
17068 *)
17069 case $LD in # libtool.m4 will add one of these switches to LD
17070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17071 libsuff= shlibsuff= libmagic=32-bit;;
17072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17073 libsuff=32 shlibsuff=N32 libmagic=N32;;
17074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17076 *) libsuff= shlibsuff= libmagic=never-match;;
17077 esac
17078 ;;
17079 esac
17080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17081 shlibpath_overrides_runpath=no
17082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17084 hardcode_into_libs=yes
17085 ;;
17086
17087 # No shared lib support for Linux oldld, aout, or coff.
17088 linux*oldld* | linux*aout* | linux*coff*)
17089 dynamic_linker=no
17090 ;;
17091
17092 # This must be glibc/ELF.
17093 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17094 version_type=linux # correct to gnu/linux during the next big refactor
17095 need_lib_prefix=no
17096 need_version=no
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=no
17102
17103 # Some binutils ld are patched to set DT_RUNPATH
17104 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17105 $as_echo_n "(cached) " >&6
17106 else
17107 lt_cv_shlibpath_overrides_runpath=no
17108 save_LDFLAGS=$LDFLAGS
17109 save_libdir=$libdir
17110 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17111 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17114
17115 int
17116 main ()
17117 {
17118
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_c_try_link "$LINENO"; then :
17124 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17125 lt_cv_shlibpath_overrides_runpath=yes
17126 fi
17127 fi
17128 rm -f core conftest.err conftest.$ac_objext \
17129 conftest$ac_exeext conftest.$ac_ext
17130 LDFLAGS=$save_LDFLAGS
17131 libdir=$save_libdir
17132
17133 fi
17134
17135 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17136
17137 # This implies no fast_install, which is unacceptable.
17138 # Some rework will be needed to allow for fast_install
17139 # before this can be enabled.
17140 hardcode_into_libs=yes
17141
17142 # Add ABI-specific directories to the system library path.
17143 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17144
17145 # Append ld.so.conf contents to the search path
17146 if test -f /etc/ld.so.conf; then
17147 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' ' '`
17148 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17149
17150 fi
17151
17152 # We used to test for /lib/ld.so.1 and disable shared libraries on
17153 # powerpc, because MkLinux only supported shared libraries with the
17154 # GNU dynamic linker. Since this was broken with cross compilers,
17155 # most powerpc-linux boxes support dynamic linking these days and
17156 # people can always --disable-shared, the test was removed, and we
17157 # assume the GNU/Linux dynamic linker is in use.
17158 dynamic_linker='GNU/Linux ld.so'
17159 ;;
17160
17161 netbsd*)
17162 version_type=sunos
17163 need_lib_prefix=no
17164 need_version=no
17165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17168 dynamic_linker='NetBSD (a.out) ld.so'
17169 else
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 dynamic_linker='NetBSD ld.elf_so'
17173 fi
17174 shlibpath_var=LD_LIBRARY_PATH
17175 shlibpath_overrides_runpath=yes
17176 hardcode_into_libs=yes
17177 ;;
17178
17179 newsos6)
17180 version_type=linux # correct to gnu/linux during the next big refactor
17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=yes
17184 ;;
17185
17186 *nto* | *qnx*)
17187 version_type=qnx
17188 need_lib_prefix=no
17189 need_version=no
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=no
17194 hardcode_into_libs=yes
17195 dynamic_linker='ldqnx.so'
17196 ;;
17197
17198 openbsd*)
17199 version_type=sunos
17200 sys_lib_dlsearch_path_spec="/usr/lib"
17201 need_lib_prefix=no
17202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17203 case $host_os in
17204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17205 *) need_version=no ;;
17206 esac
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17211 case $host_os in
17212 openbsd2.[89] | openbsd2.[89].*)
17213 shlibpath_overrides_runpath=no
17214 ;;
17215 *)
17216 shlibpath_overrides_runpath=yes
17217 ;;
17218 esac
17219 else
17220 shlibpath_overrides_runpath=yes
17221 fi
17222 ;;
17223
17224 os2*)
17225 libname_spec='$name'
17226 shrext_cmds=".dll"
17227 need_lib_prefix=no
17228 library_names_spec='$libname${shared_ext} $libname.a'
17229 dynamic_linker='OS/2 ld.exe'
17230 shlibpath_var=LIBPATH
17231 ;;
17232
17233 osf3* | osf4* | osf5*)
17234 version_type=osf
17235 need_lib_prefix=no
17236 need_version=no
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17242 ;;
17243
17244 rdos*)
17245 dynamic_linker=no
17246 ;;
17247
17248 solaris*)
17249 version_type=linux # correct to gnu/linux during the next big refactor
17250 need_lib_prefix=no
17251 need_version=no
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=yes
17256 hardcode_into_libs=yes
17257 # ldd complains unless libraries are executable
17258 postinstall_cmds='chmod +x $lib'
17259 ;;
17260
17261 sunos4*)
17262 version_type=sunos
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17265 shlibpath_var=LD_LIBRARY_PATH
17266 shlibpath_overrides_runpath=yes
17267 if test "$with_gnu_ld" = yes; then
17268 need_lib_prefix=no
17269 fi
17270 need_version=yes
17271 ;;
17272
17273 sysv4 | sysv4.3*)
17274 version_type=linux # correct to gnu/linux during the next big refactor
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 shlibpath_var=LD_LIBRARY_PATH
17278 case $host_vendor in
17279 sni)
17280 shlibpath_overrides_runpath=no
17281 need_lib_prefix=no
17282 runpath_var=LD_RUN_PATH
17283 ;;
17284 siemens)
17285 need_lib_prefix=no
17286 ;;
17287 motorola)
17288 need_lib_prefix=no
17289 need_version=no
17290 shlibpath_overrides_runpath=no
17291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17292 ;;
17293 esac
17294 ;;
17295
17296 sysv4*MP*)
17297 if test -d /usr/nec ;then
17298 version_type=linux # correct to gnu/linux during the next big refactor
17299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17300 soname_spec='$libname${shared_ext}.$major'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 fi
17303 ;;
17304
17305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17306 version_type=freebsd-elf
17307 need_lib_prefix=no
17308 need_version=no
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=yes
17313 hardcode_into_libs=yes
17314 if test "$with_gnu_ld" = yes; then
17315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17316 else
17317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17318 case $host_os in
17319 sco3.2v5*)
17320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17321 ;;
17322 esac
17323 fi
17324 sys_lib_dlsearch_path_spec='/usr/lib'
17325 ;;
17326
17327 tpf*)
17328 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17329 version_type=linux # correct to gnu/linux during the next big refactor
17330 need_lib_prefix=no
17331 need_version=no
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 shlibpath_var=LD_LIBRARY_PATH
17334 shlibpath_overrides_runpath=no
17335 hardcode_into_libs=yes
17336 ;;
17337
17338 uts4*)
17339 version_type=linux # correct to gnu/linux during the next big refactor
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 ;;
17344
17345 *)
17346 dynamic_linker=no
17347 ;;
17348 esac
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17350 $as_echo "$dynamic_linker" >&6; }
17351 test "$dynamic_linker" = no && can_build_shared=no
17352
17353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17354 if test "$GCC" = yes; then
17355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17356 fi
17357
17358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17359 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17360 fi
17361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17362 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17363 fi
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17457 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17458 hardcode_action=
17459 if test -n "$hardcode_libdir_flag_spec" ||
17460 test -n "$runpath_var" ||
17461 test "X$hardcode_automatic" = "Xyes" ; then
17462
17463 # We can hardcode non-existent directories.
17464 if test "$hardcode_direct" != no &&
17465 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17466 # have to relink, otherwise we might link with an installed library
17467 # when we should be linking with a yet-to-be-installed one
17468 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17469 test "$hardcode_minus_L" != no; then
17470 # Linking always hardcodes the temporary library directory.
17471 hardcode_action=relink
17472 else
17473 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17474 hardcode_action=immediate
17475 fi
17476 else
17477 # We cannot hardcode anything, or else we can only hardcode existing
17478 # directories.
17479 hardcode_action=unsupported
17480 fi
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17482 $as_echo "$hardcode_action" >&6; }
17483
17484 if test "$hardcode_action" = relink ||
17485 test "$inherit_rpath" = yes; then
17486 # Fast installation is not supported
17487 enable_fast_install=no
17488 elif test "$shlibpath_overrides_runpath" = yes ||
17489 test "$enable_shared" = no; then
17490 # Fast installation is not necessary
17491 enable_fast_install=needless
17492 fi
17493
17494
17495
17496
17497
17498
17499 if test "x$enable_dlopen" != xyes; then
17500 enable_dlopen=unknown
17501 enable_dlopen_self=unknown
17502 enable_dlopen_self_static=unknown
17503 else
17504 lt_cv_dlopen=no
17505 lt_cv_dlopen_libs=
17506
17507 case $host_os in
17508 beos*)
17509 lt_cv_dlopen="load_add_on"
17510 lt_cv_dlopen_libs=
17511 lt_cv_dlopen_self=yes
17512 ;;
17513
17514 mingw* | pw32* | cegcc*)
17515 lt_cv_dlopen="LoadLibrary"
17516 lt_cv_dlopen_libs=
17517 ;;
17518
17519 cygwin*)
17520 lt_cv_dlopen="dlopen"
17521 lt_cv_dlopen_libs=
17522 ;;
17523
17524 darwin*)
17525 # if libdl is installed we need to link against it
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17527 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17528 if ${ac_cv_lib_dl_dlopen+:} false; then :
17529 $as_echo_n "(cached) " >&6
17530 else
17531 ac_check_lib_save_LIBS=$LIBS
17532 LIBS="-ldl $LIBS"
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534 /* end confdefs.h. */
17535
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17539 #ifdef __cplusplus
17540 extern "C"
17541 #endif
17542 char dlopen ();
17543 int
17544 main ()
17545 {
17546 return dlopen ();
17547 ;
17548 return 0;
17549 }
17550 _ACEOF
17551 if ac_fn_c_try_link "$LINENO"; then :
17552 ac_cv_lib_dl_dlopen=yes
17553 else
17554 ac_cv_lib_dl_dlopen=no
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17558 LIBS=$ac_check_lib_save_LIBS
17559 fi
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17562 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17564 else
17565
17566 lt_cv_dlopen="dyld"
17567 lt_cv_dlopen_libs=
17568 lt_cv_dlopen_self=yes
17569
17570 fi
17571
17572 ;;
17573
17574 *)
17575 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17576 if test "x$ac_cv_func_shl_load" = xyes; then :
17577 lt_cv_dlopen="shl_load"
17578 else
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17580 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17581 if ${ac_cv_lib_dld_shl_load+:} false; then :
17582 $as_echo_n "(cached) " >&6
17583 else
17584 ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-ldld $LIBS"
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588
17589 /* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17592 #ifdef __cplusplus
17593 extern "C"
17594 #endif
17595 char shl_load ();
17596 int
17597 main ()
17598 {
17599 return shl_load ();
17600 ;
17601 return 0;
17602 }
17603 _ACEOF
17604 if ac_fn_c_try_link "$LINENO"; then :
17605 ac_cv_lib_dld_shl_load=yes
17606 else
17607 ac_cv_lib_dld_shl_load=no
17608 fi
17609 rm -f core conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17612 fi
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17614 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17615 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17616 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17617 else
17618 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17619 if test "x$ac_cv_func_dlopen" = xyes; then :
17620 lt_cv_dlopen="dlopen"
17621 else
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17624 if ${ac_cv_lib_dl_dlopen+:} false; then :
17625 $as_echo_n "(cached) " >&6
17626 else
17627 ac_check_lib_save_LIBS=$LIBS
17628 LIBS="-ldl $LIBS"
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h. */
17631
17632 /* Override any GCC internal prototype to avoid an error.
17633 Use char because int might match the return type of a GCC
17634 builtin and then its argument prototype would still apply. */
17635 #ifdef __cplusplus
17636 extern "C"
17637 #endif
17638 char dlopen ();
17639 int
17640 main ()
17641 {
17642 return dlopen ();
17643 ;
17644 return 0;
17645 }
17646 _ACEOF
17647 if ac_fn_c_try_link "$LINENO"; then :
17648 ac_cv_lib_dl_dlopen=yes
17649 else
17650 ac_cv_lib_dl_dlopen=no
17651 fi
17652 rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17654 LIBS=$ac_check_lib_save_LIBS
17655 fi
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17660 else
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17662 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17663 if ${ac_cv_lib_svld_dlopen+:} false; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 ac_check_lib_save_LIBS=$LIBS
17667 LIBS="-lsvld $LIBS"
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17670
17671 /* Override any GCC internal prototype to avoid an error.
17672 Use char because int might match the return type of a GCC
17673 builtin and then its argument prototype would still apply. */
17674 #ifdef __cplusplus
17675 extern "C"
17676 #endif
17677 char dlopen ();
17678 int
17679 main ()
17680 {
17681 return dlopen ();
17682 ;
17683 return 0;
17684 }
17685 _ACEOF
17686 if ac_fn_c_try_link "$LINENO"; then :
17687 ac_cv_lib_svld_dlopen=yes
17688 else
17689 ac_cv_lib_svld_dlopen=no
17690 fi
17691 rm -f core conftest.err conftest.$ac_objext \
17692 conftest$ac_exeext conftest.$ac_ext
17693 LIBS=$ac_check_lib_save_LIBS
17694 fi
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17696 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17697 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17699 else
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17701 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17702 if ${ac_cv_lib_dld_dld_link+:} false; then :
17703 $as_echo_n "(cached) " >&6
17704 else
17705 ac_check_lib_save_LIBS=$LIBS
17706 LIBS="-ldld $LIBS"
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char dld_link ();
17717 int
17718 main ()
17719 {
17720 return dld_link ();
17721 ;
17722 return 0;
17723 }
17724 _ACEOF
17725 if ac_fn_c_try_link "$LINENO"; then :
17726 ac_cv_lib_dld_dld_link=yes
17727 else
17728 ac_cv_lib_dld_dld_link=no
17729 fi
17730 rm -f core conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17732 LIBS=$ac_check_lib_save_LIBS
17733 fi
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17735 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17736 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17737 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17738 fi
17739
17740
17741 fi
17742
17743
17744 fi
17745
17746
17747 fi
17748
17749
17750 fi
17751
17752
17753 fi
17754
17755 ;;
17756 esac
17757
17758 if test "x$lt_cv_dlopen" != xno; then
17759 enable_dlopen=yes
17760 else
17761 enable_dlopen=no
17762 fi
17763
17764 case $lt_cv_dlopen in
17765 dlopen)
17766 save_CPPFLAGS="$CPPFLAGS"
17767 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17768
17769 save_LDFLAGS="$LDFLAGS"
17770 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17771
17772 save_LIBS="$LIBS"
17773 LIBS="$lt_cv_dlopen_libs $LIBS"
17774
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17776 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17777 if ${lt_cv_dlopen_self+:} false; then :
17778 $as_echo_n "(cached) " >&6
17779 else
17780 if test "$cross_compiling" = yes; then :
17781 lt_cv_dlopen_self=cross
17782 else
17783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17784 lt_status=$lt_dlunknown
17785 cat > conftest.$ac_ext <<_LT_EOF
17786 #line $LINENO "configure"
17787 #include "confdefs.h"
17788
17789 #if HAVE_DLFCN_H
17790 #include <dlfcn.h>
17791 #endif
17792
17793 #include <stdio.h>
17794
17795 #ifdef RTLD_GLOBAL
17796 # define LT_DLGLOBAL RTLD_GLOBAL
17797 #else
17798 # ifdef DL_GLOBAL
17799 # define LT_DLGLOBAL DL_GLOBAL
17800 # else
17801 # define LT_DLGLOBAL 0
17802 # endif
17803 #endif
17804
17805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17806 find out it does not work in some platform. */
17807 #ifndef LT_DLLAZY_OR_NOW
17808 # ifdef RTLD_LAZY
17809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17810 # else
17811 # ifdef DL_LAZY
17812 # define LT_DLLAZY_OR_NOW DL_LAZY
17813 # else
17814 # ifdef RTLD_NOW
17815 # define LT_DLLAZY_OR_NOW RTLD_NOW
17816 # else
17817 # ifdef DL_NOW
17818 # define LT_DLLAZY_OR_NOW DL_NOW
17819 # else
17820 # define LT_DLLAZY_OR_NOW 0
17821 # endif
17822 # endif
17823 # endif
17824 # endif
17825 #endif
17826
17827 /* When -fvisbility=hidden is used, assume the code has been annotated
17828 correspondingly for the symbols needed. */
17829 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17830 int fnord () __attribute__((visibility("default")));
17831 #endif
17832
17833 int fnord () { return 42; }
17834 int main ()
17835 {
17836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17837 int status = $lt_dlunknown;
17838
17839 if (self)
17840 {
17841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17842 else
17843 {
17844 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17845 else puts (dlerror ());
17846 }
17847 /* dlclose (self); */
17848 }
17849 else
17850 puts (dlerror ());
17851
17852 return status;
17853 }
17854 _LT_EOF
17855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17856 (eval $ac_link) 2>&5
17857 ac_status=$?
17858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17859 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17860 (./conftest; exit; ) >&5 2>/dev/null
17861 lt_status=$?
17862 case x$lt_status in
17863 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17864 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17865 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17866 esac
17867 else :
17868 # compilation failed
17869 lt_cv_dlopen_self=no
17870 fi
17871 fi
17872 rm -fr conftest*
17873
17874
17875 fi
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17877 $as_echo "$lt_cv_dlopen_self" >&6; }
17878
17879 if test "x$lt_cv_dlopen_self" = xyes; then
17880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17882 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17883 if ${lt_cv_dlopen_self_static+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 if test "$cross_compiling" = yes; then :
17887 lt_cv_dlopen_self_static=cross
17888 else
17889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17890 lt_status=$lt_dlunknown
17891 cat > conftest.$ac_ext <<_LT_EOF
17892 #line $LINENO "configure"
17893 #include "confdefs.h"
17894
17895 #if HAVE_DLFCN_H
17896 #include <dlfcn.h>
17897 #endif
17898
17899 #include <stdio.h>
17900
17901 #ifdef RTLD_GLOBAL
17902 # define LT_DLGLOBAL RTLD_GLOBAL
17903 #else
17904 # ifdef DL_GLOBAL
17905 # define LT_DLGLOBAL DL_GLOBAL
17906 # else
17907 # define LT_DLGLOBAL 0
17908 # endif
17909 #endif
17910
17911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17912 find out it does not work in some platform. */
17913 #ifndef LT_DLLAZY_OR_NOW
17914 # ifdef RTLD_LAZY
17915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17916 # else
17917 # ifdef DL_LAZY
17918 # define LT_DLLAZY_OR_NOW DL_LAZY
17919 # else
17920 # ifdef RTLD_NOW
17921 # define LT_DLLAZY_OR_NOW RTLD_NOW
17922 # else
17923 # ifdef DL_NOW
17924 # define LT_DLLAZY_OR_NOW DL_NOW
17925 # else
17926 # define LT_DLLAZY_OR_NOW 0
17927 # endif
17928 # endif
17929 # endif
17930 # endif
17931 #endif
17932
17933 /* When -fvisbility=hidden is used, assume the code has been annotated
17934 correspondingly for the symbols needed. */
17935 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17936 int fnord () __attribute__((visibility("default")));
17937 #endif
17938
17939 int fnord () { return 42; }
17940 int main ()
17941 {
17942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17943 int status = $lt_dlunknown;
17944
17945 if (self)
17946 {
17947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17948 else
17949 {
17950 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17951 else puts (dlerror ());
17952 }
17953 /* dlclose (self); */
17954 }
17955 else
17956 puts (dlerror ());
17957
17958 return status;
17959 }
17960 _LT_EOF
17961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17962 (eval $ac_link) 2>&5
17963 ac_status=$?
17964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17965 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17966 (./conftest; exit; ) >&5 2>/dev/null
17967 lt_status=$?
17968 case x$lt_status in
17969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17971 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17972 esac
17973 else :
17974 # compilation failed
17975 lt_cv_dlopen_self_static=no
17976 fi
17977 fi
17978 rm -fr conftest*
17979
17980
17981 fi
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17983 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17984 fi
17985
17986 CPPFLAGS="$save_CPPFLAGS"
17987 LDFLAGS="$save_LDFLAGS"
17988 LIBS="$save_LIBS"
17989 ;;
17990 esac
17991
17992 case $lt_cv_dlopen_self in
17993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17994 *) enable_dlopen_self=unknown ;;
17995 esac
17996
17997 case $lt_cv_dlopen_self_static in
17998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17999 *) enable_dlopen_self_static=unknown ;;
18000 esac
18001 fi
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019 striplib=
18020 old_striplib=
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18022 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18023 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18024 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18025 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18027 $as_echo "yes" >&6; }
18028 else
18029 # FIXME - insert some real tests, host_os isn't really good enough
18030 case $host_os in
18031 darwin*)
18032 if test -n "$STRIP" ; then
18033 striplib="$STRIP -x"
18034 old_striplib="$STRIP -S"
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18036 $as_echo "yes" >&6; }
18037 else
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039 $as_echo "no" >&6; }
18040 fi
18041 ;;
18042 *)
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18044 $as_echo "no" >&6; }
18045 ;;
18046 esac
18047 fi
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060 # Report which library types will actually be built
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18062 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18064 $as_echo "$can_build_shared" >&6; }
18065
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18067 $as_echo_n "checking whether to build shared libraries... " >&6; }
18068 test "$can_build_shared" = "no" && enable_shared=no
18069
18070 # On AIX, shared libraries and static libraries use the same namespace, and
18071 # are all built from PIC.
18072 case $host_os in
18073 aix3*)
18074 test "$enable_shared" = yes && enable_static=no
18075 if test -n "$RANLIB"; then
18076 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18077 postinstall_cmds='$RANLIB $lib'
18078 fi
18079 ;;
18080
18081 aix[4-9]*)
18082 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18083 test "$enable_shared" = yes && enable_static=no
18084 fi
18085 ;;
18086 esac
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18088 $as_echo "$enable_shared" >&6; }
18089
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18091 $as_echo_n "checking whether to build static libraries... " >&6; }
18092 # Make sure either enable_shared or enable_static is yes.
18093 test "$enable_shared" = yes || enable_static=yes
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18095 $as_echo "$enable_static" >&6; }
18096
18097
18098
18099
18100 fi
18101 ac_ext=c
18102 ac_cpp='$CPP $CPPFLAGS'
18103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18106
18107 CC="$lt_save_CC"
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123 ac_config_commands="$ac_config_commands libtool"
18124
18125
18126
18127
18128 # Only expand once:
18129
18130
18131
18132 # Checks for programs.
18133 if test "x$CC" != xcc; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18135 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18136 else
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18138 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18139 fi
18140 set dummy $CC; ac_cc=`$as_echo "$2" |
18141 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18142 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
18143 $as_echo_n "(cached) " >&6
18144 else
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18147
18148 int
18149 main ()
18150 {
18151
18152 ;
18153 return 0;
18154 }
18155 _ACEOF
18156 # Make sure it works both with $CC and with simple cc.
18157 # We do the test twice because some compilers refuse to overwrite an
18158 # existing .o file with -o, though they will create one.
18159 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18160 rm -f conftest2.*
18161 if { { case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164 esac
18165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18166 $as_echo "$ac_try_echo"; } >&5
18167 (eval "$ac_try") 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170 test $ac_status = 0; } &&
18171 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18174 esac
18175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18176 $as_echo "$ac_try_echo"; } >&5
18177 (eval "$ac_try") 2>&5
18178 ac_status=$?
18179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18180 test $ac_status = 0; };
18181 then
18182 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18183 if test "x$CC" != xcc; then
18184 # Test first that cc exists at all.
18185 if { ac_try='cc -c conftest.$ac_ext >&5'
18186 { { case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189 esac
18190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18191 $as_echo "$ac_try_echo"; } >&5
18192 (eval "$ac_try") 2>&5
18193 ac_status=$?
18194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18195 test $ac_status = 0; }; }; then
18196 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18197 rm -f conftest2.*
18198 if { { case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201 esac
18202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18203 $as_echo "$ac_try_echo"; } >&5
18204 (eval "$ac_try") 2>&5
18205 ac_status=$?
18206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207 test $ac_status = 0; } &&
18208 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211 esac
18212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18213 $as_echo "$ac_try_echo"; } >&5
18214 (eval "$ac_try") 2>&5
18215 ac_status=$?
18216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18217 test $ac_status = 0; };
18218 then
18219 # cc works too.
18220 :
18221 else
18222 # cc exists but doesn't like -o.
18223 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18224 fi
18225 fi
18226 fi
18227 else
18228 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18229 fi
18230 rm -f core conftest*
18231
18232 fi
18233 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18235 $as_echo "yes" >&6; }
18236 else
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18238 $as_echo "no" >&6; }
18239
18240 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
18241
18242 fi
18243
18244 # FIXME: we rely on the cache variable name because
18245 # there is no other way.
18246 set dummy $CC
18247 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18248 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18249 if test "$am_t" != yes; then
18250 # Losing compiler, so override with the script.
18251 # FIXME: It is wrong to rewrite CC.
18252 # But if we don't then we get into trouble of one sort or another.
18253 # A longer-term fix would be to have automake use am__CC in this case,
18254 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18255 CC="$am_aux_dir/compile $CC"
18256 fi
18257
18258
18259
18260 if test "x$GCC" = "xyes"; then
18261 CPPFLAGS="$CPPFLAGS -Wall"
18262 fi
18263
18264
18265
18266 # Define a configure option for an alternate module directory
18267
18268 # Check whether --with-xorg-module-dir was given.
18269 if test "${with_xorg_module_dir+set}" = set; then :
18270 withval=$with_xorg_module_dir; moduledir="$withval"
18271 else
18272 moduledir="$libdir/xorg/modules"
18273 fi
18274
18275
18276 # Store the list of server defined optional extensions in REQUIRED_MODULES
18277
18278
18279 SAVE_CFLAGS="$CFLAGS"
18280 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282 /* end confdefs.h. */
18283
18284 #include "xorg-server.h"
18285 #if !defined RANDR
18286 #error RANDR not defined
18287 #endif
18288
18289 int
18290 main ()
18291 {
18292
18293 ;
18294 return 0;
18295 }
18296 _ACEOF
18297 if ac_fn_c_try_compile "$LINENO"; then :
18298 _EXT_CHECK=yes
18299 else
18300 _EXT_CHECK=no
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 CFLAGS="$SAVE_CFLAGS"
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18305 $as_echo_n "checking if RANDR is defined... " >&6; }
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18307 $as_echo "$_EXT_CHECK" >&6; }
18308 if test "$_EXT_CHECK" != no; then
18309 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18310 fi
18311
18312
18313
18314 SAVE_CFLAGS="$CFLAGS"
18315 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18318
18319 #include "xorg-server.h"
18320 #if !defined RENDER
18321 #error RENDER not defined
18322 #endif
18323
18324 int
18325 main ()
18326 {
18327
18328 ;
18329 return 0;
18330 }
18331 _ACEOF
18332 if ac_fn_c_try_compile "$LINENO"; then :
18333 _EXT_CHECK=yes
18334 else
18335 _EXT_CHECK=no
18336 fi
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338 CFLAGS="$SAVE_CFLAGS"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18340 $as_echo_n "checking if RENDER is defined... " >&6; }
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18342 $as_echo "$_EXT_CHECK" >&6; }
18343 if test "$_EXT_CHECK" != no; then
18344 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18345 fi
18346
18347
18348
18349 SAVE_CFLAGS="$CFLAGS"
18350 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353
18354 #include "xorg-server.h"
18355 #if !defined XV
18356 #error XV not defined
18357 #endif
18358
18359 int
18360 main ()
18361 {
18362
18363 ;
18364 return 0;
18365 }
18366 _ACEOF
18367 if ac_fn_c_try_compile "$LINENO"; then :
18368 _EXT_CHECK=yes
18369 else
18370 _EXT_CHECK=no
18371 fi
18372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18373 CFLAGS="$SAVE_CFLAGS"
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18375 $as_echo_n "checking if XV is defined... " >&6; }
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18377 $as_echo "$_EXT_CHECK" >&6; }
18378 if test "$_EXT_CHECK" != no; then
18379 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18380 fi
18381
18382
18383
18384 SAVE_CFLAGS="$CFLAGS"
18385 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18388
18389 #include "xorg-server.h"
18390 #if !defined DPMSExtension
18391 #error DPMSExtension not defined
18392 #endif
18393
18394 int
18395 main ()
18396 {
18397
18398 ;
18399 return 0;
18400 }
18401 _ACEOF
18402 if ac_fn_c_try_compile "$LINENO"; then :
18403 _EXT_CHECK=yes
18404 else
18405 _EXT_CHECK=no
18406 fi
18407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18408 CFLAGS="$SAVE_CFLAGS"
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18410 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18412 $as_echo "$_EXT_CHECK" >&6; }
18413 if test "$_EXT_CHECK" != no; then
18414 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18415 fi
18416
18417
18418 # Checks for libraries.
18419
18420 pkg_failed=no
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18422 $as_echo_n "checking for LIBDRM... " >&6; }
18423
18424 if test -n "$LIBDRM_CFLAGS"; then
18425 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18426 elif test -n "$PKG_CONFIG"; then
18427 if test -n "$PKG_CONFIG" && \
18428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5
18429 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5
18430 ac_status=$?
18431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18432 test $ac_status = 0; }; then
18433 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.58" 2>/dev/null`
18434 test "x$?" != "x0" && pkg_failed=yes
18435 else
18436 pkg_failed=yes
18437 fi
18438 else
18439 pkg_failed=untried
18440 fi
18441 if test -n "$LIBDRM_LIBS"; then
18442 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18443 elif test -n "$PKG_CONFIG"; then
18444 if test -n "$PKG_CONFIG" && \
18445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5
18446 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5
18447 ac_status=$?
18448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18449 test $ac_status = 0; }; then
18450 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.58" 2>/dev/null`
18451 test "x$?" != "x0" && pkg_failed=yes
18452 else
18453 pkg_failed=yes
18454 fi
18455 else
18456 pkg_failed=untried
18457 fi
18458
18459
18460
18461 if test $pkg_failed = yes; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18463 $as_echo "no" >&6; }
18464
18465 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18466 _pkg_short_errors_supported=yes
18467 else
18468 _pkg_short_errors_supported=no
18469 fi
18470 if test $_pkg_short_errors_supported = yes; then
18471 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1`
18472 else
18473 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1`
18474 fi
18475 # Put the nasty error message in config.log where it belongs
18476 echo "$LIBDRM_PKG_ERRORS" >&5
18477
18478 as_fn_error $? "Package requirements (libdrm >= 2.4.58) were not met:
18479
18480 $LIBDRM_PKG_ERRORS
18481
18482 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18483 installed software in a non-standard prefix.
18484
18485 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18486 and LIBDRM_LIBS to avoid the need to call pkg-config.
18487 See the pkg-config man page for more details." "$LINENO" 5
18488 elif test $pkg_failed = untried; then
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18490 $as_echo "no" >&6; }
18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18493 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18494 is in your PATH or set the PKG_CONFIG environment variable to the full
18495 path to pkg-config.
18496
18497 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18498 and LIBDRM_LIBS to avoid the need to call pkg-config.
18499 See the pkg-config man page for more details.
18500
18501 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18502 See \`config.log' for more details" "$LINENO" 5; }
18503 else
18504 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18505 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18507 $as_echo "yes" >&6; }
18508
18509 fi
18510
18511 pkg_failed=no
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
18513 $as_echo_n "checking for LIBDRM_RADEON... " >&6; }
18514
18515 if test -n "$LIBDRM_RADEON_CFLAGS"; then
18516 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
18517 elif test -n "$PKG_CONFIG"; then
18518 if test -n "$PKG_CONFIG" && \
18519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
18520 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
18521 ac_status=$?
18522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18523 test $ac_status = 0; }; then
18524 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null`
18525 test "x$?" != "x0" && pkg_failed=yes
18526 else
18527 pkg_failed=yes
18528 fi
18529 else
18530 pkg_failed=untried
18531 fi
18532 if test -n "$LIBDRM_RADEON_LIBS"; then
18533 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
18534 elif test -n "$PKG_CONFIG"; then
18535 if test -n "$PKG_CONFIG" && \
18536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
18537 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
18538 ac_status=$?
18539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18540 test $ac_status = 0; }; then
18541 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null`
18542 test "x$?" != "x0" && pkg_failed=yes
18543 else
18544 pkg_failed=yes
18545 fi
18546 else
18547 pkg_failed=untried
18548 fi
18549
18550
18551
18552 if test $pkg_failed = yes; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18555
18556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18557 _pkg_short_errors_supported=yes
18558 else
18559 _pkg_short_errors_supported=no
18560 fi
18561 if test $_pkg_short_errors_supported = yes; then
18562 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1`
18563 else
18564 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1`
18565 fi
18566 # Put the nasty error message in config.log where it belongs
18567 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
18568
18569 as_fn_error $? "Package requirements (libdrm_radeon) were not met:
18570
18571 $LIBDRM_RADEON_PKG_ERRORS
18572
18573 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18574 installed software in a non-standard prefix.
18575
18576 Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
18577 and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
18578 See the pkg-config man page for more details." "$LINENO" 5
18579 elif test $pkg_failed = untried; then
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18581 $as_echo "no" >&6; }
18582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18584 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18585 is in your PATH or set the PKG_CONFIG environment variable to the full
18586 path to pkg-config.
18587
18588 Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
18589 and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
18590 See the pkg-config man page for more details.
18591
18592 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18593 See \`config.log' for more details" "$LINENO" 5; }
18594 else
18595 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
18596 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18598 $as_echo "yes" >&6; }
18599
18600 fi
18601
18602 # Obtain compiler/linker options for the driver dependencies
18603
18604 pkg_failed=no
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18606 $as_echo_n "checking for XORG... " >&6; }
18607
18608 if test -n "$XORG_CFLAGS"; then
18609 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18610 elif test -n "$PKG_CONFIG"; then
18611 if test -n "$PKG_CONFIG" && \
18612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
18613 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
18614 ac_status=$?
18615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18616 test $ac_status = 0; }; then
18617 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
18618 test "x$?" != "x0" && pkg_failed=yes
18619 else
18620 pkg_failed=yes
18621 fi
18622 else
18623 pkg_failed=untried
18624 fi
18625 if test -n "$XORG_LIBS"; then
18626 pkg_cv_XORG_LIBS="$XORG_LIBS"
18627 elif test -n "$PKG_CONFIG"; then
18628 if test -n "$PKG_CONFIG" && \
18629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
18630 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
18631 ac_status=$?
18632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18633 test $ac_status = 0; }; then
18634 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
18635 test "x$?" != "x0" && pkg_failed=yes
18636 else
18637 pkg_failed=yes
18638 fi
18639 else
18640 pkg_failed=untried
18641 fi
18642
18643
18644
18645 if test $pkg_failed = yes; then
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647 $as_echo "no" >&6; }
18648
18649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18650 _pkg_short_errors_supported=yes
18651 else
18652 _pkg_short_errors_supported=no
18653 fi
18654 if test $_pkg_short_errors_supported = yes; then
18655 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
18656 else
18657 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
18658 fi
18659 # Put the nasty error message in config.log where it belongs
18660 echo "$XORG_PKG_ERRORS" >&5
18661
18662 as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
18663
18664 $XORG_PKG_ERRORS
18665
18666 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18667 installed software in a non-standard prefix.
18668
18669 Alternatively, you may set the environment variables XORG_CFLAGS
18670 and XORG_LIBS to avoid the need to call pkg-config.
18671 See the pkg-config man page for more details." "$LINENO" 5
18672 elif test $pkg_failed = untried; then
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18674 $as_echo "no" >&6; }
18675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18677 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18678 is in your PATH or set the PKG_CONFIG environment variable to the full
18679 path to pkg-config.
18680
18681 Alternatively, you may set the environment variables XORG_CFLAGS
18682 and XORG_LIBS to avoid the need to call pkg-config.
18683 See the pkg-config man page for more details.
18684
18685 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18686 See \`config.log' for more details" "$LINENO" 5; }
18687 else
18688 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18689 XORG_LIBS=$pkg_cv_XORG_LIBS
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18691 $as_echo "yes" >&6; }
18692
18693 fi
18694
18695 pkg_failed=no
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18697 $as_echo_n "checking for XEXT... " >&6; }
18698
18699 if test -n "$XEXT_CFLAGS"; then
18700 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18701 elif test -n "$PKG_CONFIG"; then
18702 if test -n "$PKG_CONFIG" && \
18703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18704 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18705 ac_status=$?
18706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18707 test $ac_status = 0; }; then
18708 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18709 test "x$?" != "x0" && pkg_failed=yes
18710 else
18711 pkg_failed=yes
18712 fi
18713 else
18714 pkg_failed=untried
18715 fi
18716 if test -n "$XEXT_LIBS"; then
18717 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18718 elif test -n "$PKG_CONFIG"; then
18719 if test -n "$PKG_CONFIG" && \
18720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18721 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18722 ac_status=$?
18723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18724 test $ac_status = 0; }; then
18725 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18726 test "x$?" != "x0" && pkg_failed=yes
18727 else
18728 pkg_failed=yes
18729 fi
18730 else
18731 pkg_failed=untried
18732 fi
18733
18734
18735
18736 if test $pkg_failed = yes; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18738 $as_echo "no" >&6; }
18739
18740 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18741 _pkg_short_errors_supported=yes
18742 else
18743 _pkg_short_errors_supported=no
18744 fi
18745 if test $_pkg_short_errors_supported = yes; then
18746 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18747 else
18748 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18749 fi
18750 # Put the nasty error message in config.log where it belongs
18751 echo "$XEXT_PKG_ERRORS" >&5
18752
18753 HAVE_XEXTPROTO_71="no"
18754 elif test $pkg_failed = untried; then
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18757 HAVE_XEXTPROTO_71="no"
18758 else
18759 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18760 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18762 $as_echo "yes" >&6; }
18763 HAVE_XEXTPROTO_71="yes";
18764 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18765
18766 fi
18767 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18768 HAVE_XEXTPROTO_71_TRUE=
18769 HAVE_XEXTPROTO_71_FALSE='#'
18770 else
18771 HAVE_XEXTPROTO_71_TRUE='#'
18772 HAVE_XEXTPROTO_71_FALSE=
18773 fi
18774
18775
18776 # Check whether --enable-udev was given.
18777 if test "${enable_udev+set}" = set; then :
18778 enableval=$enable_udev; enable_udev="$enableval"
18779 else
18780 enable_udev=auto
18781 fi
18782
18783 if test "x$enable_udev" != "xno"; then
18784
18785 pkg_failed=no
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
18787 $as_echo_n "checking for LIBUDEV... " >&6; }
18788
18789 if test -n "$LIBUDEV_CFLAGS"; then
18790 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
18791 elif test -n "$PKG_CONFIG"; then
18792 if test -n "$PKG_CONFIG" && \
18793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18794 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18795 ac_status=$?
18796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18797 test $ac_status = 0; }; then
18798 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
18799 test "x$?" != "x0" && pkg_failed=yes
18800 else
18801 pkg_failed=yes
18802 fi
18803 else
18804 pkg_failed=untried
18805 fi
18806 if test -n "$LIBUDEV_LIBS"; then
18807 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
18808 elif test -n "$PKG_CONFIG"; then
18809 if test -n "$PKG_CONFIG" && \
18810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18811 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18812 ac_status=$?
18813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18814 test $ac_status = 0; }; then
18815 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
18816 test "x$?" != "x0" && pkg_failed=yes
18817 else
18818 pkg_failed=yes
18819 fi
18820 else
18821 pkg_failed=untried
18822 fi
18823
18824
18825
18826 if test $pkg_failed = yes; then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18829
18830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18831 _pkg_short_errors_supported=yes
18832 else
18833 _pkg_short_errors_supported=no
18834 fi
18835 if test $_pkg_short_errors_supported = yes; then
18836 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
18837 else
18838 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
18839 fi
18840 # Put the nasty error message in config.log where it belongs
18841 echo "$LIBUDEV_PKG_ERRORS" >&5
18842
18843 LIBUDEV=no
18844 elif test $pkg_failed = untried; then
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846 $as_echo "no" >&6; }
18847 LIBUDEV=no
18848 else
18849 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
18850 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18852 $as_echo "yes" >&6; }
18853 LIBUDEV=yes
18854 fi
18855 if test "x$LIBUDEV" = xyes; then
18856
18857 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
18858
18859 elif test "x$enable_udev" != "xauto"; then
18860 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
18861 fi
18862 fi
18863 if test x$LIBUDEV = xyes; then
18864 LIBUDEV_TRUE=
18865 LIBUDEV_FALSE='#'
18866 else
18867 LIBUDEV_TRUE='#'
18868 LIBUDEV_FALSE=
18869 fi
18870
18871
18872 SAVE_CPPFLAGS="$CPPFLAGS"
18873 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18874
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
18876 $as_echo_n "checking whether to include GLAMOR support... " >&6; }
18877 # Check whether --enable-glamor was given.
18878 if test "${enable_glamor+set}" = set; then :
18879 enableval=$enable_glamor; GLAMOR="$enableval"
18880 else
18881 GLAMOR=yes
18882 fi
18883
18884
18885 if test "x$GLAMOR" != "xno"; then
18886 for ac_header in glamor.h
18887 do :
18888 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
18889 "
18890 if test "x$ac_cv_header_glamor_h" = xyes; then :
18891 cat >>confdefs.h <<_ACEOF
18892 #define HAVE_GLAMOR_H 1
18893 _ACEOF
18894 GLAMOR_H="yes"
18895 else
18896 GLAMOR_H="no"
18897 fi
18898
18899 done
18900
18901
18902 if test "x$GLAMOR_H" = xyes; then
18903 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
18904 #include \"glamor.h\"
18905 "
18906 if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then :
18907 GLAMOR_XSERVER="yes"
18908 else
18909 GLAMOR_XSERVER="no"
18910 fi
18911
18912 fi
18913
18914 if test "x$GLAMOR_XSERVER" != xyes; then
18915
18916 pkg_failed=no
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
18918 $as_echo_n "checking for LIBGLAMOR... " >&6; }
18919
18920 if test -n "$LIBGLAMOR_CFLAGS"; then
18921 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_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 \"glamor >= 0.6.0\""; } >&5
18925 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 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_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 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 "$LIBGLAMOR_LIBS"; then
18938 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_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 \"glamor >= 0.6.0\""; } >&5
18942 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 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_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 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 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
18968 else
18969 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
18970 fi
18971 # Put the nasty error message in config.log where it belongs
18972 echo "$LIBGLAMOR_PKG_ERRORS" >&5
18973
18974 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
18975
18976 $LIBGLAMOR_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 LIBGLAMOR_CFLAGS
18982 and LIBGLAMOR_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 LIBGLAMOR_CFLAGS
18994 and LIBGLAMOR_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 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
19001 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_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 LIBGLAMOR_EGL" >&5
19009 $as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
19010
19011 if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
19012 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_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 \"glamor-egl\""; } >&5
19016 ($PKG_CONFIG --exists --print-errors "glamor-egl") 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_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 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 "$LIBGLAMOR_EGL_LIBS"; then
19029 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_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 \"glamor-egl\""; } >&5
19033 ($PKG_CONFIG --exists --print-errors "glamor-egl") 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_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 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 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
19059 else
19060 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
19061 fi
19062 # Put the nasty error message in config.log where it belongs
19063 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
19064
19065 as_fn_error $? "Package requirements (glamor-egl) were not met:
19066
19067 $LIBGLAMOR_EGL_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 LIBGLAMOR_EGL_CFLAGS
19073 and LIBGLAMOR_EGL_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 LIBGLAMOR_EGL_CFLAGS
19085 and LIBGLAMOR_EGL_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 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
19092 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19094 $as_echo "yes" >&6; }
19095
19096 fi
19097 fi
19098
19099 $as_echo "#define USE_GLAMOR 1" >>confdefs.h
19100
19101 else
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
19103 $as_echo "$GLAMOR" >&6; }
19104 fi
19105 if test x$GLAMOR != xno; then
19106 GLAMOR_TRUE=
19107 GLAMOR_FALSE='#'
19108 else
19109 GLAMOR_TRUE='#'
19110 GLAMOR_FALSE=
19111 fi
19112
19113
19114 for ac_header in list.h
19115 do :
19116 ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h>
19117 #include \"xorg-server.h\"
19118 "
19119 if test "x$ac_cv_header_list_h" = xyes; then :
19120 cat >>confdefs.h <<_ACEOF
19121 #define HAVE_LIST_H 1
19122 _ACEOF
19123 have_list_h="yes"
19124 else
19125 have_list_h="no"
19126 fi
19127
19128 done
19129
19130
19131 if test "x$have_list_h" = xyes; then
19132 ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
19133 #include \"xorg-server.h\"
19134 #include \"list.h\"
19135 "
19136 if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
19137
19138 $as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
19139
19140 fi
19141
19142 fi
19143
19144 CPPFLAGS="$SAVE_CPPFLAGS"
19145
19146
19147 pkg_failed=no
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19149 $as_echo_n "checking for PCIACCESS... " >&6; }
19150
19151 if test -n "$PCIACCESS_CFLAGS"; then
19152 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19153 elif test -n "$PKG_CONFIG"; then
19154 if test -n "$PKG_CONFIG" && \
19155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19156 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19157 ac_status=$?
19158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159 test $ac_status = 0; }; then
19160 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19161 test "x$?" != "x0" && pkg_failed=yes
19162 else
19163 pkg_failed=yes
19164 fi
19165 else
19166 pkg_failed=untried
19167 fi
19168 if test -n "$PCIACCESS_LIBS"; then
19169 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19170 elif test -n "$PKG_CONFIG"; then
19171 if test -n "$PKG_CONFIG" && \
19172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19173 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19174 ac_status=$?
19175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19176 test $ac_status = 0; }; then
19177 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19178 test "x$?" != "x0" && pkg_failed=yes
19179 else
19180 pkg_failed=yes
19181 fi
19182 else
19183 pkg_failed=untried
19184 fi
19185
19186
19187
19188 if test $pkg_failed = yes; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19190 $as_echo "no" >&6; }
19191
19192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19193 _pkg_short_errors_supported=yes
19194 else
19195 _pkg_short_errors_supported=no
19196 fi
19197 if test $_pkg_short_errors_supported = yes; then
19198 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19199 else
19200 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19201 fi
19202 # Put the nasty error message in config.log where it belongs
19203 echo "$PCIACCESS_PKG_ERRORS" >&5
19204
19205 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19206
19207 $PCIACCESS_PKG_ERRORS
19208
19209 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19210 installed software in a non-standard prefix.
19211
19212 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19213 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19214 See the pkg-config man page for more details." "$LINENO" 5
19215 elif test $pkg_failed = untried; then
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 $as_echo "no" >&6; }
19218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19221 is in your PATH or set the PKG_CONFIG environment variable to the full
19222 path to pkg-config.
19223
19224 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19225 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19226 See the pkg-config man page for more details.
19227
19228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19229 See \`config.log' for more details" "$LINENO" 5; }
19230 else
19231 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19232 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19234 $as_echo "yes" >&6; }
19235
19236 fi
19237 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19238
19239 # Checks for headers/macros for byte swapping
19240 # Known variants:
19241 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
19242 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
19243 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
19244 # and a fallback to local macros if none of the above are found
19245
19246 # if <byteswap.h> is found, assume it's the correct version
19247 for ac_header in byteswap.h
19248 do :
19249 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19250 if test "x$ac_cv_header_byteswap_h" = xyes; then :
19251 cat >>confdefs.h <<_ACEOF
19252 #define HAVE_BYTESWAP_H 1
19253 _ACEOF
19254
19255 fi
19256
19257 done
19258
19259
19260 # if <sys/endian.h> is found, have to check which version
19261 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19262 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
19263 HAVE_SYS_ENDIAN_H="yes"
19264 else
19265 HAVE_SYS_ENDIAN_H="no"
19266 fi
19267
19268
19269
19270 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
19272 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19275
19276 #include <sys/types.h>
19277 #include <sys/endian.h>
19278
19279 int
19280 main ()
19281 {
19282
19283 int a = 1, b;
19284 b = __swap16(a);
19285
19286 ;
19287 return 0;
19288 }
19289
19290 _ACEOF
19291 if ac_fn_c_try_link "$LINENO"; then :
19292 SYS_ENDIAN__SWAP='yes'
19293 else
19294 SYS_ENDIAN__SWAP='no'
19295 fi
19296 rm -f core conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
19299 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
19300
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
19302 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19305
19306 #include <sys/types.h>
19307 #include <sys/endian.h>
19308
19309 int
19310 main ()
19311 {
19312
19313 int a = 1, b;
19314 b = bswap16(a);
19315
19316 ;
19317 return 0;
19318 }
19319
19320 _ACEOF
19321 if ac_fn_c_try_link "$LINENO"; then :
19322 SYS_ENDIAN_BSWAP='yes'
19323 else
19324 SYS_ENDIAN_BSWAP='no'
19325 fi
19326 rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
19329 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
19330
19331 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
19332 USE_SYS_ENDIAN_H=yes
19333 BSWAP=bswap
19334 else
19335 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
19336 USE_SYS_ENDIAN_H=yes
19337 BSWAP=__swap
19338 else
19339 USE_SYS_ENDIAN_H=no
19340 fi
19341 fi
19342
19343 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
19344
19345 $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
19346
19347
19348 cat >>confdefs.h <<_ACEOF
19349 #define bswap_16 ${BSWAP}16
19350 _ACEOF
19351
19352
19353 cat >>confdefs.h <<_ACEOF
19354 #define bswap_32 ${BSWAP}32
19355 _ACEOF
19356
19357
19358 cat >>confdefs.h <<_ACEOF
19359 #define bswap_64 ${BSWAP}64
19360 _ACEOF
19361
19362 fi
19363 fi
19364
19365
19366
19367 DRIVER_NAME=ati
19368
19369
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
19371 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
19372 Please install that driver as well for mach64-based cards.
19373 " >&5
19374 $as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
19375 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
19376 Please install that driver as well for mach64-based cards.
19377 " >&6;}
19378
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
19380 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
19381 Please install that driver as well for rage128-based cards.
19382 " >&5
19383 $as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
19384 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
19385 Please install that driver as well for rage128-based cards.
19386 " >&6;}
19387
19388 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19389
19390 cat >confcache <<\_ACEOF
19391 # This file is a shell script that caches the results of configure
19392 # tests run on this system so they can be shared between configure
19393 # scripts and configure runs, see configure's option --config-cache.
19394 # It is not useful on other systems. If it contains results you don't
19395 # want to keep, you may remove or edit it.
19396 #
19397 # config.status only pays attention to the cache file if you give it
19398 # the --recheck option to rerun configure.
19399 #
19400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19402 # following values.
19403
19404 _ACEOF
19405
19406 # The following way of writing the cache mishandles newlines in values,
19407 # but we know of no workaround that is simple, portable, and efficient.
19408 # So, we kill variables containing newlines.
19409 # Ultrix sh set writes to stderr and can't be redirected directly,
19410 # and sets the high bit in the cache file unless we assign to the vars.
19411 (
19412 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19413 eval ac_val=\$$ac_var
19414 case $ac_val in #(
19415 *${as_nl}*)
19416 case $ac_var in #(
19417 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19419 esac
19420 case $ac_var in #(
19421 _ | IFS | as_nl) ;; #(
19422 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19423 *) { eval $ac_var=; unset $ac_var;} ;;
19424 esac ;;
19425 esac
19426 done
19427
19428 (set) 2>&1 |
19429 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19430 *${as_nl}ac_space=\ *)
19431 # `set' does not quote correctly, so add quotes: double-quote
19432 # substitution turns \\\\ into \\, and sed turns \\ into \.
19433 sed -n \
19434 "s/'/'\\\\''/g;
19435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19436 ;; #(
19437 *)
19438 # `set' quotes correctly as required by POSIX, so do not add quotes.
19439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19440 ;;
19441 esac |
19442 sort
19443 ) |
19444 sed '
19445 /^ac_cv_env_/b end
19446 t clear
19447 :clear
19448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19449 t end
19450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19451 :end' >>confcache
19452 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19453 if test -w "$cache_file"; then
19454 if test "x$cache_file" != "x/dev/null"; then
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19456 $as_echo "$as_me: updating cache $cache_file" >&6;}
19457 if test ! -f "$cache_file" || test -h "$cache_file"; then
19458 cat confcache >"$cache_file"
19459 else
19460 case $cache_file in #(
19461 */* | ?:*)
19462 mv -f confcache "$cache_file"$$ &&
19463 mv -f "$cache_file"$$ "$cache_file" ;; #(
19464 *)
19465 mv -f confcache "$cache_file" ;;
19466 esac
19467 fi
19468 fi
19469 else
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19471 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19472 fi
19473 fi
19474 rm -f confcache
19475
19476 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19477 # Let make expand exec_prefix.
19478 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19479
19480 DEFS=-DHAVE_CONFIG_H
19481
19482 ac_libobjs=
19483 ac_ltlibobjs=
19484 U=
19485 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19486 # 1. Remove the extension, and $U if already installed.
19487 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19488 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19489 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19490 # will be set to the directory where LIBOBJS objects are built.
19491 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19492 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19493 done
19494 LIBOBJS=$ac_libobjs
19495
19496 LTLIBOBJS=$ac_ltlibobjs
19497
19498
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19500 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19501 if test -n "$am_sleep_pid"; then
19502 # Hide warnings about reused PIDs.
19503 wait $am_sleep_pid 2>/dev/null
19504 fi
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19506 $as_echo "done" >&6; }
19507 if test -n "$EXEEXT"; then
19508 am__EXEEXT_TRUE=
19509 am__EXEEXT_FALSE='#'
19510 else
19511 am__EXEEXT_TRUE='#'
19512 am__EXEEXT_FALSE=
19513 fi
19514
19515 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19516 as_fn_error $? "conditional \"AMDEP\" was never defined.
19517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19518 fi
19519 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19520 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19522 fi
19523 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19524 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19526 fi
19527 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19528 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19530 fi
19531 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
19532 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
19533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19534 fi
19535 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
19536 as_fn_error $? "conditional \"GLAMOR\" was never defined.
19537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19538 fi
19539
19540 : "${CONFIG_STATUS=./config.status}"
19541 ac_write_fail=0
19542 ac_clean_files_save=$ac_clean_files
19543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19545 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19546 as_write_fail=0
19547 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19548 #! $SHELL
19549 # Generated by $as_me.
19550 # Run this file to recreate the current configuration.
19551 # Compiler output produced by configure, useful for debugging
19552 # configure, is in config.log if it exists.
19553
19554 debug=false
19555 ac_cs_recheck=false
19556 ac_cs_silent=false
19557
19558 SHELL=\${CONFIG_SHELL-$SHELL}
19559 export SHELL
19560 _ASEOF
19561 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19562 ## -------------------- ##
19563 ## M4sh Initialization. ##
19564 ## -------------------- ##
19565
19566 # Be more Bourne compatible
19567 DUALCASE=1; export DUALCASE # for MKS sh
19568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19569 emulate sh
19570 NULLCMD=:
19571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19572 # is contrary to our usage. Disable this feature.
19573 alias -g '${1+"$@"}'='"$@"'
19574 setopt NO_GLOB_SUBST
19575 else
19576 case `(set -o) 2>/dev/null` in #(
19577 *posix*) :
19578 set -o posix ;; #(
19579 *) :
19580 ;;
19581 esac
19582 fi
19583
19584
19585 as_nl='
19586 '
19587 export as_nl
19588 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19589 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19592 # Prefer a ksh shell builtin over an external printf program on Solaris,
19593 # but without wasting forks for bash or zsh.
19594 if test -z "$BASH_VERSION$ZSH_VERSION" \
19595 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19596 as_echo='print -r --'
19597 as_echo_n='print -rn --'
19598 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19599 as_echo='printf %s\n'
19600 as_echo_n='printf %s'
19601 else
19602 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19603 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19604 as_echo_n='/usr/ucb/echo -n'
19605 else
19606 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19607 as_echo_n_body='eval
19608 arg=$1;
19609 case $arg in #(
19610 *"$as_nl"*)
19611 expr "X$arg" : "X\\(.*\\)$as_nl";
19612 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19613 esac;
19614 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19615 '
19616 export as_echo_n_body
19617 as_echo_n='sh -c $as_echo_n_body as_echo'
19618 fi
19619 export as_echo_body
19620 as_echo='sh -c $as_echo_body as_echo'
19621 fi
19622
19623 # The user is always right.
19624 if test "${PATH_SEPARATOR+set}" != set; then
19625 PATH_SEPARATOR=:
19626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19628 PATH_SEPARATOR=';'
19629 }
19630 fi
19631
19632
19633 # IFS
19634 # We need space, tab and new line, in precisely that order. Quoting is
19635 # there to prevent editors from complaining about space-tab.
19636 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19637 # splitting by setting IFS to empty value.)
19638 IFS=" "" $as_nl"
19639
19640 # Find who we are. Look in the path if we contain no directory separator.
19641 as_myself=
19642 case $0 in #((
19643 *[\\/]* ) as_myself=$0 ;;
19644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19645 for as_dir in $PATH
19646 do
19647 IFS=$as_save_IFS
19648 test -z "$as_dir" && as_dir=.
19649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19650 done
19651 IFS=$as_save_IFS
19652
19653 ;;
19654 esac
19655 # We did not find ourselves, most probably we were run as `sh COMMAND'
19656 # in which case we are not to be found in the path.
19657 if test "x$as_myself" = x; then
19658 as_myself=$0
19659 fi
19660 if test ! -f "$as_myself"; then
19661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19662 exit 1
19663 fi
19664
19665 # Unset variables that we do not need and which cause bugs (e.g. in
19666 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19667 # suppresses any "Segmentation fault" message there. '((' could
19668 # trigger a bug in pdksh 5.2.14.
19669 for as_var in BASH_ENV ENV MAIL MAILPATH
19670 do eval test x\${$as_var+set} = xset \
19671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19672 done
19673 PS1='$ '
19674 PS2='> '
19675 PS4='+ '
19676
19677 # NLS nuisances.
19678 LC_ALL=C
19679 export LC_ALL
19680 LANGUAGE=C
19681 export LANGUAGE
19682
19683 # CDPATH.
19684 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19685
19686
19687 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19688 # ----------------------------------------
19689 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19690 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19691 # script with STATUS, using 1 if that was 0.
19692 as_fn_error ()
19693 {
19694 as_status=$1; test $as_status -eq 0 && as_status=1
19695 if test "$4"; then
19696 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19698 fi
19699 $as_echo "$as_me: error: $2" >&2
19700 as_fn_exit $as_status
19701 } # as_fn_error
19702
19703
19704 # as_fn_set_status STATUS
19705 # -----------------------
19706 # Set $? to STATUS, without forking.
19707 as_fn_set_status ()
19708 {
19709 return $1
19710 } # as_fn_set_status
19711
19712 # as_fn_exit STATUS
19713 # -----------------
19714 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19715 as_fn_exit ()
19716 {
19717 set +e
19718 as_fn_set_status $1
19719 exit $1
19720 } # as_fn_exit
19721
19722 # as_fn_unset VAR
19723 # ---------------
19724 # Portably unset VAR.
19725 as_fn_unset ()
19726 {
19727 { eval $1=; unset $1;}
19728 }
19729 as_unset=as_fn_unset
19730 # as_fn_append VAR VALUE
19731 # ----------------------
19732 # Append the text in VALUE to the end of the definition contained in VAR. Take
19733 # advantage of any shell optimizations that allow amortized linear growth over
19734 # repeated appends, instead of the typical quadratic growth present in naive
19735 # implementations.
19736 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19737 eval 'as_fn_append ()
19738 {
19739 eval $1+=\$2
19740 }'
19741 else
19742 as_fn_append ()
19743 {
19744 eval $1=\$$1\$2
19745 }
19746 fi # as_fn_append
19747
19748 # as_fn_arith ARG...
19749 # ------------------
19750 # Perform arithmetic evaluation on the ARGs, and store the result in the
19751 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19752 # must be portable across $(()) and expr.
19753 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19754 eval 'as_fn_arith ()
19755 {
19756 as_val=$(( $* ))
19757 }'
19758 else
19759 as_fn_arith ()
19760 {
19761 as_val=`expr "$@" || test $? -eq 1`
19762 }
19763 fi # as_fn_arith
19764
19765
19766 if expr a : '\(a\)' >/dev/null 2>&1 &&
19767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19768 as_expr=expr
19769 else
19770 as_expr=false
19771 fi
19772
19773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19774 as_basename=basename
19775 else
19776 as_basename=false
19777 fi
19778
19779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19780 as_dirname=dirname
19781 else
19782 as_dirname=false
19783 fi
19784
19785 as_me=`$as_basename -- "$0" ||
19786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19787 X"$0" : 'X\(//\)$' \| \
19788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19789 $as_echo X/"$0" |
19790 sed '/^.*\/\([^/][^/]*\)\/*$/{
19791 s//\1/
19792 q
19793 }
19794 /^X\/\(\/\/\)$/{
19795 s//\1/
19796 q
19797 }
19798 /^X\/\(\/\).*/{
19799 s//\1/
19800 q
19801 }
19802 s/.*/./; q'`
19803
19804 # Avoid depending upon Character Ranges.
19805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19808 as_cr_digits='0123456789'
19809 as_cr_alnum=$as_cr_Letters$as_cr_digits
19810
19811 ECHO_C= ECHO_N= ECHO_T=
19812 case `echo -n x` in #(((((
19813 -n*)
19814 case `echo 'xy\c'` in
19815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19816 xy) ECHO_C='\c';;
19817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19818 ECHO_T=' ';;
19819 esac;;
19820 *)
19821 ECHO_N='-n';;
19822 esac
19823
19824 rm -f conf$$ conf$$.exe conf$$.file
19825 if test -d conf$$.dir; then
19826 rm -f conf$$.dir/conf$$.file
19827 else
19828 rm -f conf$$.dir
19829 mkdir conf$$.dir 2>/dev/null
19830 fi
19831 if (echo >conf$$.file) 2>/dev/null; then
19832 if ln -s conf$$.file conf$$ 2>/dev/null; then
19833 as_ln_s='ln -s'
19834 # ... but there are two gotchas:
19835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19837 # In both cases, we have to default to `cp -pR'.
19838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19839 as_ln_s='cp -pR'
19840 elif ln conf$$.file conf$$ 2>/dev/null; then
19841 as_ln_s=ln
19842 else
19843 as_ln_s='cp -pR'
19844 fi
19845 else
19846 as_ln_s='cp -pR'
19847 fi
19848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19849 rmdir conf$$.dir 2>/dev/null
19850
19851
19852 # as_fn_mkdir_p
19853 # -------------
19854 # Create "$as_dir" as a directory, including parents if necessary.
19855 as_fn_mkdir_p ()
19856 {
19857
19858 case $as_dir in #(
19859 -*) as_dir=./$as_dir;;
19860 esac
19861 test -d "$as_dir" || eval $as_mkdir_p || {
19862 as_dirs=
19863 while :; do
19864 case $as_dir in #(
19865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19866 *) as_qdir=$as_dir;;
19867 esac
19868 as_dirs="'$as_qdir' $as_dirs"
19869 as_dir=`$as_dirname -- "$as_dir" ||
19870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19871 X"$as_dir" : 'X\(//\)[^/]' \| \
19872 X"$as_dir" : 'X\(//\)$' \| \
19873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19874 $as_echo X"$as_dir" |
19875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19876 s//\1/
19877 q
19878 }
19879 /^X\(\/\/\)[^/].*/{
19880 s//\1/
19881 q
19882 }
19883 /^X\(\/\/\)$/{
19884 s//\1/
19885 q
19886 }
19887 /^X\(\/\).*/{
19888 s//\1/
19889 q
19890 }
19891 s/.*/./; q'`
19892 test -d "$as_dir" && break
19893 done
19894 test -z "$as_dirs" || eval "mkdir $as_dirs"
19895 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19896
19897
19898 } # as_fn_mkdir_p
19899 if mkdir -p . 2>/dev/null; then
19900 as_mkdir_p='mkdir -p "$as_dir"'
19901 else
19902 test -d ./-p && rmdir ./-p
19903 as_mkdir_p=false
19904 fi
19905
19906
19907 # as_fn_executable_p FILE
19908 # -----------------------
19909 # Test if FILE is an executable regular file.
19910 as_fn_executable_p ()
19911 {
19912 test -f "$1" && test -x "$1"
19913 } # as_fn_executable_p
19914 as_test_x='test -x'
19915 as_executable_p=as_fn_executable_p
19916
19917 # Sed expression to map a string onto a valid CPP name.
19918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19919
19920 # Sed expression to map a string onto a valid variable name.
19921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19922
19923
19924 exec 6>&1
19925 ## ----------------------------------- ##
19926 ## Main body of $CONFIG_STATUS script. ##
19927 ## ----------------------------------- ##
19928 _ASEOF
19929 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19930
19931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19932 # Save the log message, to keep $0 and so on meaningful, and to
19933 # report actual input values of CONFIG_FILES etc. instead of their
19934 # values after options handling.
19935 ac_log="
19936 This file was extended by xf86-video-ati $as_me 7.5.0, which was
19937 generated by GNU Autoconf 2.69. Invocation command line was
19938
19939 CONFIG_FILES = $CONFIG_FILES
19940 CONFIG_HEADERS = $CONFIG_HEADERS
19941 CONFIG_LINKS = $CONFIG_LINKS
19942 CONFIG_COMMANDS = $CONFIG_COMMANDS
19943 $ $0 $@
19944
19945 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19946 "
19947
19948 _ACEOF
19949
19950 case $ac_config_files in *"
19951 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19952 esac
19953
19954 case $ac_config_headers in *"
19955 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19956 esac
19957
19958
19959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19960 # Files that config.status was made for.
19961 config_files="$ac_config_files"
19962 config_headers="$ac_config_headers"
19963 config_commands="$ac_config_commands"
19964
19965 _ACEOF
19966
19967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19968 ac_cs_usage="\
19969 \`$as_me' instantiates files and other configuration actions
19970 from templates according to the current configuration. Unless the files
19971 and actions are specified as TAGs, all are instantiated by default.
19972
19973 Usage: $0 [OPTION]... [TAG]...
19974
19975 -h, --help print this help, then exit
19976 -V, --version print version number and configuration settings, then exit
19977 --config print configuration, then exit
19978 -q, --quiet, --silent
19979 do not print progress messages
19980 -d, --debug don't remove temporary files
19981 --recheck update $as_me by reconfiguring in the same conditions
19982 --file=FILE[:TEMPLATE]
19983 instantiate the configuration file FILE
19984 --header=FILE[:TEMPLATE]
19985 instantiate the configuration header FILE
19986
19987 Configuration files:
19988 $config_files
19989
19990 Configuration headers:
19991 $config_headers
19992
19993 Configuration commands:
19994 $config_commands
19995
19996 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19997
19998 _ACEOF
19999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20000 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20001 ac_cs_version="\\
20002 xf86-video-ati config.status 7.5.0
20003 configured by $0, generated by GNU Autoconf 2.69,
20004 with options \\"\$ac_cs_config\\"
20005
20006 Copyright (C) 2012 Free Software Foundation, Inc.
20007 This config.status script is free software; the Free Software Foundation
20008 gives unlimited permission to copy, distribute and modify it."
20009
20010 ac_pwd='$ac_pwd'
20011 srcdir='$srcdir'
20012 INSTALL='$INSTALL'
20013 MKDIR_P='$MKDIR_P'
20014 AWK='$AWK'
20015 test -n "\$AWK" || AWK=awk
20016 _ACEOF
20017
20018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20019 # The default lists apply if the user does not specify any file.
20020 ac_need_defaults=:
20021 while test $# != 0
20022 do
20023 case $1 in
20024 --*=?*)
20025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20027 ac_shift=:
20028 ;;
20029 --*=)
20030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20031 ac_optarg=
20032 ac_shift=:
20033 ;;
20034 *)
20035 ac_option=$1
20036 ac_optarg=$2
20037 ac_shift=shift
20038 ;;
20039 esac
20040
20041 case $ac_option in
20042 # Handling of the options.
20043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20044 ac_cs_recheck=: ;;
20045 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20046 $as_echo "$ac_cs_version"; exit ;;
20047 --config | --confi | --conf | --con | --co | --c )
20048 $as_echo "$ac_cs_config"; exit ;;
20049 --debug | --debu | --deb | --de | --d | -d )
20050 debug=: ;;
20051 --file | --fil | --fi | --f )
20052 $ac_shift
20053 case $ac_optarg in
20054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20055 '') as_fn_error $? "missing file argument" ;;
20056 esac
20057 as_fn_append CONFIG_FILES " '$ac_optarg'"
20058 ac_need_defaults=false;;
20059 --header | --heade | --head | --hea )
20060 $ac_shift
20061 case $ac_optarg in
20062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20063 esac
20064 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20065 ac_need_defaults=false;;
20066 --he | --h)
20067 # Conflict between --help and --header
20068 as_fn_error $? "ambiguous option: \`$1'
20069 Try \`$0 --help' for more information.";;
20070 --help | --hel | -h )
20071 $as_echo "$ac_cs_usage"; exit ;;
20072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20073 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20074 ac_cs_silent=: ;;
20075
20076 # This is an error.
20077 -*) as_fn_error $? "unrecognized option: \`$1'
20078 Try \`$0 --help' for more information." ;;
20079
20080 *) as_fn_append ac_config_targets " $1"
20081 ac_need_defaults=false ;;
20082
20083 esac
20084 shift
20085 done
20086
20087 ac_configure_extra_args=
20088
20089 if $ac_cs_silent; then
20090 exec 6>/dev/null
20091 ac_configure_extra_args="$ac_configure_extra_args --silent"
20092 fi
20093
20094 _ACEOF
20095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20096 if \$ac_cs_recheck; then
20097 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20098 shift
20099 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20100 CONFIG_SHELL='$SHELL'
20101 export CONFIG_SHELL
20102 exec "\$@"
20103 fi
20104
20105 _ACEOF
20106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20107 exec 5>>config.log
20108 {
20109 echo
20110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20111 ## Running $as_me. ##
20112 _ASBOX
20113 $as_echo "$ac_log"
20114 } >&5
20115
20116 _ACEOF
20117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20118 #
20119 # INIT-COMMANDS
20120 #
20121 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20122
20123
20124 # The HP-UX ksh and POSIX shell print the target directory to stdout
20125 # if CDPATH is set.
20126 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20127
20128 sed_quote_subst='$sed_quote_subst'
20129 double_quote_subst='$double_quote_subst'
20130 delay_variable_subst='$delay_variable_subst'
20131 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20132 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20133 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20134 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20135 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20136 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20137 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20138 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20139 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20140 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20141 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20142 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20143 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20144 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20145 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20146 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20147 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20148 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20149 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20150 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20151 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20152 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20153 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20154 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20155 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20156 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20157 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20158 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20159 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20160 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20161 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20162 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20163 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20164 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20165 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20166 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20167 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20168 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20169 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20170 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20171 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20172 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20173 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20174 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20175 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20176 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20177 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20178 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20179 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20180 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20181 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20182 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20183 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20184 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20185 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20186 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20187 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"`'
20188 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20189 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20190 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20191 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20192 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20193 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20194 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20195 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20196 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20197 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20198 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20199 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20200 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20201 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20202 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20203 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20204 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20205 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20206 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20207 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20208 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20209 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20210 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20211 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20212 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20213 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20214 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20215 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20216 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20217 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20218 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20219 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20220 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20221 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20222 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20223 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20224 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20225 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20226 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20227 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20228 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20229 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20230 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20231 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20232 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20233 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20234 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20235 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20236 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20237 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20238 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20239 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20240 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20241 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20242 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20243 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20244 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20245 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20246 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20247 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20248 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20249 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20250 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20251 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20252 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20253 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20254 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20255 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20256 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20257 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20258 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20259 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20260 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20261
20262 LTCC='$LTCC'
20263 LTCFLAGS='$LTCFLAGS'
20264 compiler='$compiler_DEFAULT'
20265
20266 # A function that is used when there is no print builtin or printf.
20267 func_fallback_echo ()
20268 {
20269 eval 'cat <<_LTECHO_EOF
20270 \$1
20271 _LTECHO_EOF'
20272 }
20273
20274 # Quote evaled strings.
20275 for var in SHELL \
20276 ECHO \
20277 PATH_SEPARATOR \
20278 SED \
20279 GREP \
20280 EGREP \
20281 FGREP \
20282 LD \
20283 NM \
20284 LN_S \
20285 lt_SP2NL \
20286 lt_NL2SP \
20287 reload_flag \
20288 OBJDUMP \
20289 deplibs_check_method \
20290 file_magic_cmd \
20291 file_magic_glob \
20292 want_nocaseglob \
20293 DLLTOOL \
20294 sharedlib_from_linklib_cmd \
20295 AR \
20296 AR_FLAGS \
20297 archiver_list_spec \
20298 STRIP \
20299 RANLIB \
20300 CC \
20301 CFLAGS \
20302 compiler \
20303 lt_cv_sys_global_symbol_pipe \
20304 lt_cv_sys_global_symbol_to_cdecl \
20305 lt_cv_sys_global_symbol_to_c_name_address \
20306 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20307 nm_file_list_spec \
20308 lt_prog_compiler_no_builtin_flag \
20309 lt_prog_compiler_pic \
20310 lt_prog_compiler_wl \
20311 lt_prog_compiler_static \
20312 lt_cv_prog_compiler_c_o \
20313 need_locks \
20314 MANIFEST_TOOL \
20315 DSYMUTIL \
20316 NMEDIT \
20317 LIPO \
20318 OTOOL \
20319 OTOOL64 \
20320 shrext_cmds \
20321 export_dynamic_flag_spec \
20322 whole_archive_flag_spec \
20323 compiler_needs_object \
20324 with_gnu_ld \
20325 allow_undefined_flag \
20326 no_undefined_flag \
20327 hardcode_libdir_flag_spec \
20328 hardcode_libdir_separator \
20329 exclude_expsyms \
20330 include_expsyms \
20331 file_list_spec \
20332 variables_saved_for_relink \
20333 libname_spec \
20334 library_names_spec \
20335 soname_spec \
20336 install_override_mode \
20337 finish_eval \
20338 old_striplib \
20339 striplib; do
20340 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20341 *[\\\\\\\`\\"\\\$]*)
20342 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20343 ;;
20344 *)
20345 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20346 ;;
20347 esac
20348 done
20349
20350 # Double-quote double-evaled strings.
20351 for var in reload_cmds \
20352 old_postinstall_cmds \
20353 old_postuninstall_cmds \
20354 old_archive_cmds \
20355 extract_expsyms_cmds \
20356 old_archive_from_new_cmds \
20357 old_archive_from_expsyms_cmds \
20358 archive_cmds \
20359 archive_expsym_cmds \
20360 module_cmds \
20361 module_expsym_cmds \
20362 export_symbols_cmds \
20363 prelink_cmds \
20364 postlink_cmds \
20365 postinstall_cmds \
20366 postuninstall_cmds \
20367 finish_cmds \
20368 sys_lib_search_path_spec \
20369 sys_lib_dlsearch_path_spec; do
20370 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20371 *[\\\\\\\`\\"\\\$]*)
20372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20373 ;;
20374 *)
20375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20376 ;;
20377 esac
20378 done
20379
20380 ac_aux_dir='$ac_aux_dir'
20381 xsi_shell='$xsi_shell'
20382 lt_shell_append='$lt_shell_append'
20383
20384 # See if we are running on zsh, and set the options which allow our
20385 # commands through without removal of \ escapes INIT.
20386 if test -n "\${ZSH_VERSION+set}" ; then
20387 setopt NO_GLOB_SUBST
20388 fi
20389
20390
20391 PACKAGE='$PACKAGE'
20392 VERSION='$VERSION'
20393 TIMESTAMP='$TIMESTAMP'
20394 RM='$RM'
20395 ofile='$ofile'
20396
20397
20398
20399
20400 _ACEOF
20401
20402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20403
20404 # Handling of arguments.
20405 for ac_config_target in $ac_config_targets
20406 do
20407 case $ac_config_target in
20408 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20409 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20410 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20411 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20412 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20413 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20414
20415 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20416 esac
20417 done
20418
20419
20420 # If the user did not use the arguments to specify the items to instantiate,
20421 # then the envvar interface is used. Set only those that are not.
20422 # We use the long form for the default assignment because of an extremely
20423 # bizarre bug on SunOS 4.1.3.
20424 if $ac_need_defaults; then
20425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20428 fi
20429
20430 # Have a temporary directory for convenience. Make it in the build tree
20431 # simply because there is no reason against having it here, and in addition,
20432 # creating and moving files from /tmp can sometimes cause problems.
20433 # Hook for its removal unless debugging.
20434 # Note that there is a small window in which the directory will not be cleaned:
20435 # after its creation but before its name has been assigned to `$tmp'.
20436 $debug ||
20437 {
20438 tmp= ac_tmp=
20439 trap 'exit_status=$?
20440 : "${ac_tmp:=$tmp}"
20441 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20442 ' 0
20443 trap 'as_fn_exit 1' 1 2 13 15
20444 }
20445 # Create a (secure) tmp directory for tmp files.
20446
20447 {
20448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20449 test -d "$tmp"
20450 } ||
20451 {
20452 tmp=./conf$$-$RANDOM
20453 (umask 077 && mkdir "$tmp")
20454 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20455 ac_tmp=$tmp
20456
20457 # Set up the scripts for CONFIG_FILES section.
20458 # No need to generate them if there are no CONFIG_FILES.
20459 # This happens for instance with `./config.status config.h'.
20460 if test -n "$CONFIG_FILES"; then
20461
20462
20463 ac_cr=`echo X | tr X '\015'`
20464 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20465 # But we know of no other shell where ac_cr would be empty at this
20466 # point, so we can use a bashism as a fallback.
20467 if test "x$ac_cr" = x; then
20468 eval ac_cr=\$\'\\r\'
20469 fi
20470 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20471 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20472 ac_cs_awk_cr='\\r'
20473 else
20474 ac_cs_awk_cr=$ac_cr
20475 fi
20476
20477 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20478 _ACEOF
20479
20480
20481 {
20482 echo "cat >conf$$subs.awk <<_ACEOF" &&
20483 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20484 echo "_ACEOF"
20485 } >conf$$subs.sh ||
20486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20487 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20488 ac_delim='%!_!# '
20489 for ac_last_try in false false false false false :; do
20490 . ./conf$$subs.sh ||
20491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20492
20493 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20494 if test $ac_delim_n = $ac_delim_num; then
20495 break
20496 elif $ac_last_try; then
20497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20498 else
20499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20500 fi
20501 done
20502 rm -f conf$$subs.sh
20503
20504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20505 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20506 _ACEOF
20507 sed -n '
20508 h
20509 s/^/S["/; s/!.*/"]=/
20510 p
20511 g
20512 s/^[^!]*!//
20513 :repl
20514 t repl
20515 s/'"$ac_delim"'$//
20516 t delim
20517 :nl
20518 h
20519 s/\(.\{148\}\)..*/\1/
20520 t more1
20521 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20522 p
20523 n
20524 b repl
20525 :more1
20526 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20527 p
20528 g
20529 s/.\{148\}//
20530 t nl
20531 :delim
20532 h
20533 s/\(.\{148\}\)..*/\1/
20534 t more2
20535 s/["\\]/\\&/g; s/^/"/; s/$/"/
20536 p
20537 b
20538 :more2
20539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20540 p
20541 g
20542 s/.\{148\}//
20543 t delim
20544 ' <conf$$subs.awk | sed '
20545 /^[^""]/{
20546 N
20547 s/\n//
20548 }
20549 ' >>$CONFIG_STATUS || ac_write_fail=1
20550 rm -f conf$$subs.awk
20551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20552 _ACAWK
20553 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20554 for (key in S) S_is_set[key] = 1
20555 FS = ""
20556
20557 }
20558 {
20559 line = $ 0
20560 nfields = split(line, field, "@")
20561 substed = 0
20562 len = length(field[1])
20563 for (i = 2; i < nfields; i++) {
20564 key = field[i]
20565 keylen = length(key)
20566 if (S_is_set[key]) {
20567 value = S[key]
20568 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20569 len += length(value) + length(field[++i])
20570 substed = 1
20571 } else
20572 len += 1 + keylen
20573 }
20574
20575 print line
20576 }
20577
20578 _ACAWK
20579 _ACEOF
20580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20581 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20582 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20583 else
20584 cat
20585 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20586 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20587 _ACEOF
20588
20589 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20590 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20591 # trailing colons and then remove the whole line if VPATH becomes empty
20592 # (actually we leave an empty line to preserve line numbers).
20593 if test "x$srcdir" = x.; then
20594 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20595 h
20596 s///
20597 s/^/:/
20598 s/[ ]*$/:/
20599 s/:\$(srcdir):/:/g
20600 s/:\${srcdir}:/:/g
20601 s/:@srcdir@:/:/g
20602 s/^:*//
20603 s/:*$//
20604 x
20605 s/\(=[ ]*\).*/\1/
20606 G
20607 s/\n//
20608 s/^[^=]*=[ ]*$//
20609 }'
20610 fi
20611
20612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20613 fi # test -n "$CONFIG_FILES"
20614
20615 # Set up the scripts for CONFIG_HEADERS section.
20616 # No need to generate them if there are no CONFIG_HEADERS.
20617 # This happens for instance with `./config.status Makefile'.
20618 if test -n "$CONFIG_HEADERS"; then
20619 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20620 BEGIN {
20621 _ACEOF
20622
20623 # Transform confdefs.h into an awk script `defines.awk', embedded as
20624 # here-document in config.status, that substitutes the proper values into
20625 # config.h.in to produce config.h.
20626
20627 # Create a delimiter string that does not exist in confdefs.h, to ease
20628 # handling of long lines.
20629 ac_delim='%!_!# '
20630 for ac_last_try in false false :; do
20631 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20632 if test -z "$ac_tt"; then
20633 break
20634 elif $ac_last_try; then
20635 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20636 else
20637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20638 fi
20639 done
20640
20641 # For the awk script, D is an array of macro values keyed by name,
20642 # likewise P contains macro parameters if any. Preserve backslash
20643 # newline sequences.
20644
20645 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20646 sed -n '
20647 s/.\{148\}/&'"$ac_delim"'/g
20648 t rset
20649 :rset
20650 s/^[ ]*#[ ]*define[ ][ ]*/ /
20651 t def
20652 d
20653 :def
20654 s/\\$//
20655 t bsnl
20656 s/["\\]/\\&/g
20657 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20658 D["\1"]=" \3"/p
20659 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20660 d
20661 :bsnl
20662 s/["\\]/\\&/g
20663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20664 D["\1"]=" \3\\\\\\n"\\/p
20665 t cont
20666 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20667 t cont
20668 d
20669 :cont
20670 n
20671 s/.\{148\}/&'"$ac_delim"'/g
20672 t clear
20673 :clear
20674 s/\\$//
20675 t bsnlc
20676 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20677 d
20678 :bsnlc
20679 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20680 b cont
20681 ' <confdefs.h | sed '
20682 s/'"$ac_delim"'/"\\\
20683 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20684
20685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20686 for (key in D) D_is_set[key] = 1
20687 FS = ""
20688 }
20689 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20690 line = \$ 0
20691 split(line, arg, " ")
20692 if (arg[1] == "#") {
20693 defundef = arg[2]
20694 mac1 = arg[3]
20695 } else {
20696 defundef = substr(arg[1], 2)
20697 mac1 = arg[2]
20698 }
20699 split(mac1, mac2, "(") #)
20700 macro = mac2[1]
20701 prefix = substr(line, 1, index(line, defundef) - 1)
20702 if (D_is_set[macro]) {
20703 # Preserve the white space surrounding the "#".
20704 print prefix "define", macro P[macro] D[macro]
20705 next
20706 } else {
20707 # Replace #undef with comments. This is necessary, for example,
20708 # in the case of _POSIX_SOURCE, which is predefined and required
20709 # on some systems where configure will not decide to define it.
20710 if (defundef == "undef") {
20711 print "/*", prefix defundef, macro, "*/"
20712 next
20713 }
20714 }
20715 }
20716 { print }
20717 _ACAWK
20718 _ACEOF
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20721 fi # test -n "$CONFIG_HEADERS"
20722
20723
20724 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20725 shift
20726 for ac_tag
20727 do
20728 case $ac_tag in
20729 :[FHLC]) ac_mode=$ac_tag; continue;;
20730 esac
20731 case $ac_mode$ac_tag in
20732 :[FHL]*:*);;
20733 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20734 :[FH]-) ac_tag=-:-;;
20735 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20736 esac
20737 ac_save_IFS=$IFS
20738 IFS=:
20739 set x $ac_tag
20740 IFS=$ac_save_IFS
20741 shift
20742 ac_file=$1
20743 shift
20744
20745 case $ac_mode in
20746 :L) ac_source=$1;;
20747 :[FH])
20748 ac_file_inputs=
20749 for ac_f
20750 do
20751 case $ac_f in
20752 -) ac_f="$ac_tmp/stdin";;
20753 *) # Look for the file first in the build tree, then in the source tree
20754 # (if the path is not absolute). The absolute path cannot be DOS-style,
20755 # because $ac_f cannot contain `:'.
20756 test -f "$ac_f" ||
20757 case $ac_f in
20758 [\\/$]*) false;;
20759 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20760 esac ||
20761 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20762 esac
20763 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20764 as_fn_append ac_file_inputs " '$ac_f'"
20765 done
20766
20767 # Let's still pretend it is `configure' which instantiates (i.e., don't
20768 # use $as_me), people would be surprised to read:
20769 # /* config.h. Generated by config.status. */
20770 configure_input='Generated from '`
20771 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20772 `' by configure.'
20773 if test x"$ac_file" != x-; then
20774 configure_input="$ac_file. $configure_input"
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20776 $as_echo "$as_me: creating $ac_file" >&6;}
20777 fi
20778 # Neutralize special characters interpreted by sed in replacement strings.
20779 case $configure_input in #(
20780 *\&* | *\|* | *\\* )
20781 ac_sed_conf_input=`$as_echo "$configure_input" |
20782 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20783 *) ac_sed_conf_input=$configure_input;;
20784 esac
20785
20786 case $ac_tag in
20787 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20789 esac
20790 ;;
20791 esac
20792
20793 ac_dir=`$as_dirname -- "$ac_file" ||
20794 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20795 X"$ac_file" : 'X\(//\)[^/]' \| \
20796 X"$ac_file" : 'X\(//\)$' \| \
20797 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20798 $as_echo X"$ac_file" |
20799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20800 s//\1/
20801 q
20802 }
20803 /^X\(\/\/\)[^/].*/{
20804 s//\1/
20805 q
20806 }
20807 /^X\(\/\/\)$/{
20808 s//\1/
20809 q
20810 }
20811 /^X\(\/\).*/{
20812 s//\1/
20813 q
20814 }
20815 s/.*/./; q'`
20816 as_dir="$ac_dir"; as_fn_mkdir_p
20817 ac_builddir=.
20818
20819 case "$ac_dir" in
20820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20821 *)
20822 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20823 # A ".." for each directory in $ac_dir_suffix.
20824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20825 case $ac_top_builddir_sub in
20826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20828 esac ;;
20829 esac
20830 ac_abs_top_builddir=$ac_pwd
20831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20832 # for backward compatibility:
20833 ac_top_builddir=$ac_top_build_prefix
20834
20835 case $srcdir in
20836 .) # We are building in place.
20837 ac_srcdir=.
20838 ac_top_srcdir=$ac_top_builddir_sub
20839 ac_abs_top_srcdir=$ac_pwd ;;
20840 [\\/]* | ?:[\\/]* ) # Absolute name.
20841 ac_srcdir=$srcdir$ac_dir_suffix;
20842 ac_top_srcdir=$srcdir
20843 ac_abs_top_srcdir=$srcdir ;;
20844 *) # Relative name.
20845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20846 ac_top_srcdir=$ac_top_build_prefix$srcdir
20847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20848 esac
20849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20850
20851
20852 case $ac_mode in
20853 :F)
20854 #
20855 # CONFIG_FILE
20856 #
20857
20858 case $INSTALL in
20859 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20860 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20861 esac
20862 ac_MKDIR_P=$MKDIR_P
20863 case $MKDIR_P in
20864 [\\/$]* | ?:[\\/]* ) ;;
20865 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20866 esac
20867 _ACEOF
20868
20869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20870 # If the template does not know about datarootdir, expand it.
20871 # FIXME: This hack should be removed a few years after 2.60.
20872 ac_datarootdir_hack=; ac_datarootdir_seen=
20873 ac_sed_dataroot='
20874 /datarootdir/ {
20875 p
20876 q
20877 }
20878 /@datadir@/p
20879 /@docdir@/p
20880 /@infodir@/p
20881 /@localedir@/p
20882 /@mandir@/p'
20883 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20884 *datarootdir*) ac_datarootdir_seen=yes;;
20885 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20887 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20888 _ACEOF
20889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20890 ac_datarootdir_hack='
20891 s&@datadir@&$datadir&g
20892 s&@docdir@&$docdir&g
20893 s&@infodir@&$infodir&g
20894 s&@localedir@&$localedir&g
20895 s&@mandir@&$mandir&g
20896 s&\\\${datarootdir}&$datarootdir&g' ;;
20897 esac
20898 _ACEOF
20899
20900 # Neutralize VPATH when `$srcdir' = `.'.
20901 # Shell code in configure.ac might set extrasub.
20902 # FIXME: do we really want to maintain this feature?
20903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20904 ac_sed_extra="$ac_vpsub
20905 $extrasub
20906 _ACEOF
20907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20908 :t
20909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20910 s|@configure_input@|$ac_sed_conf_input|;t t
20911 s&@top_builddir@&$ac_top_builddir_sub&;t t
20912 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20913 s&@srcdir@&$ac_srcdir&;t t
20914 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20915 s&@top_srcdir@&$ac_top_srcdir&;t t
20916 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20917 s&@builddir@&$ac_builddir&;t t
20918 s&@abs_builddir@&$ac_abs_builddir&;t t
20919 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20920 s&@INSTALL@&$ac_INSTALL&;t t
20921 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20922 $ac_datarootdir_hack
20923 "
20924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20925 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20926
20927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20928 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20930 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20932 which seems to be undefined. Please make sure it is defined" >&5
20933 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20934 which seems to be undefined. Please make sure it is defined" >&2;}
20935
20936 rm -f "$ac_tmp/stdin"
20937 case $ac_file in
20938 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20939 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20940 esac \
20941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20942 ;;
20943 :H)
20944 #
20945 # CONFIG_HEADER
20946 #
20947 if test x"$ac_file" != x-; then
20948 {
20949 $as_echo "/* $configure_input */" \
20950 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20951 } >"$ac_tmp/config.h" \
20952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20953 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20955 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20956 else
20957 rm -f "$ac_file"
20958 mv "$ac_tmp/config.h" "$ac_file" \
20959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20960 fi
20961 else
20962 $as_echo "/* $configure_input */" \
20963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20964 || as_fn_error $? "could not create -" "$LINENO" 5
20965 fi
20966 # Compute "$ac_file"'s index in $config_headers.
20967 _am_arg="$ac_file"
20968 _am_stamp_count=1
20969 for _am_header in $config_headers :; do
20970 case $_am_header in
20971 $_am_arg | $_am_arg:* )
20972 break ;;
20973 * )
20974 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20975 esac
20976 done
20977 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20978 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20979 X"$_am_arg" : 'X\(//\)[^/]' \| \
20980 X"$_am_arg" : 'X\(//\)$' \| \
20981 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20982 $as_echo X"$_am_arg" |
20983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20984 s//\1/
20985 q
20986 }
20987 /^X\(\/\/\)[^/].*/{
20988 s//\1/
20989 q
20990 }
20991 /^X\(\/\/\)$/{
20992 s//\1/
20993 q
20994 }
20995 /^X\(\/\).*/{
20996 s//\1/
20997 q
20998 }
20999 s/.*/./; q'`/stamp-h$_am_stamp_count
21000 ;;
21001
21002 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21003 $as_echo "$as_me: executing $ac_file commands" >&6;}
21004 ;;
21005 esac
21006
21007
21008 case $ac_file$ac_mode in
21009 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21010 # Older Autoconf quotes --file arguments for eval, but not when files
21011 # are listed without --file. Let's play safe and only enable the eval
21012 # if we detect the quoting.
21013 case $CONFIG_FILES in
21014 *\'*) eval set x "$CONFIG_FILES" ;;
21015 *) set x $CONFIG_FILES ;;
21016 esac
21017 shift
21018 for mf
21019 do
21020 # Strip MF so we end up with the name of the file.
21021 mf=`echo "$mf" | sed -e 's/:.*$//'`
21022 # Check whether this is an Automake generated Makefile or not.
21023 # We used to match only the files named 'Makefile.in', but
21024 # some people rename them; so instead we look at the file content.
21025 # Grep'ing the first line is not enough: some people post-process
21026 # each Makefile.in and add a new line on top of each file to say so.
21027 # Grep'ing the whole file is not good either: AIX grep has a line
21028 # limit of 2048, but all sed's we know have understand at least 4000.
21029 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21030 dirpart=`$as_dirname -- "$mf" ||
21031 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21032 X"$mf" : 'X\(//\)[^/]' \| \
21033 X"$mf" : 'X\(//\)$' \| \
21034 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21035 $as_echo X"$mf" |
21036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21037 s//\1/
21038 q
21039 }
21040 /^X\(\/\/\)[^/].*/{
21041 s//\1/
21042 q
21043 }
21044 /^X\(\/\/\)$/{
21045 s//\1/
21046 q
21047 }
21048 /^X\(\/\).*/{
21049 s//\1/
21050 q
21051 }
21052 s/.*/./; q'`
21053 else
21054 continue
21055 fi
21056 # Extract the definition of DEPDIR, am__include, and am__quote
21057 # from the Makefile without running 'make'.
21058 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21059 test -z "$DEPDIR" && continue
21060 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21061 test -z "$am__include" && continue
21062 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21063 # Find all dependency output files, they are included files with
21064 # $(DEPDIR) in their names. We invoke sed twice because it is the
21065 # simplest approach to changing $(DEPDIR) to its actual value in the
21066 # expansion.
21067 for file in `sed -n "
21068 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21069 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21070 # Make sure the directory exists.
21071 test -f "$dirpart/$file" && continue
21072 fdir=`$as_dirname -- "$file" ||
21073 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21074 X"$file" : 'X\(//\)[^/]' \| \
21075 X"$file" : 'X\(//\)$' \| \
21076 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21077 $as_echo X"$file" |
21078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21079 s//\1/
21080 q
21081 }
21082 /^X\(\/\/\)[^/].*/{
21083 s//\1/
21084 q
21085 }
21086 /^X\(\/\/\)$/{
21087 s//\1/
21088 q
21089 }
21090 /^X\(\/\).*/{
21091 s//\1/
21092 q
21093 }
21094 s/.*/./; q'`
21095 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21096 # echo "creating $dirpart/$file"
21097 echo '# dummy' > "$dirpart/$file"
21098 done
21099 done
21100 }
21101 ;;
21102 "libtool":C)
21103
21104 # See if we are running on zsh, and set the options which allow our
21105 # commands through without removal of \ escapes.
21106 if test -n "${ZSH_VERSION+set}" ; then
21107 setopt NO_GLOB_SUBST
21108 fi
21109
21110 cfgfile="${ofile}T"
21111 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21112 $RM "$cfgfile"
21113
21114 cat <<_LT_EOF >> "$cfgfile"
21115 #! $SHELL
21116
21117 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21118 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21120 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21121 #
21122 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21123 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21124 # Foundation, Inc.
21125 # Written by Gordon Matzigkeit, 1996
21126 #
21127 # This file is part of GNU Libtool.
21128 #
21129 # GNU Libtool is free software; you can redistribute it and/or
21130 # modify it under the terms of the GNU General Public License as
21131 # published by the Free Software Foundation; either version 2 of
21132 # the License, or (at your option) any later version.
21133 #
21134 # As a special exception to the GNU General Public License,
21135 # if you distribute this file as part of a program or library that
21136 # is built using GNU Libtool, you may include this file under the
21137 # same distribution terms that you use for the rest of that program.
21138 #
21139 # GNU Libtool is distributed in the hope that it will be useful,
21140 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21141 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21142 # GNU General Public License for more details.
21143 #
21144 # You should have received a copy of the GNU General Public License
21145 # along with GNU Libtool; see the file COPYING. If not, a copy
21146 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21147 # obtained by writing to the Free Software Foundation, Inc.,
21148 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21149
21150
21151 # The names of the tagged configurations supported by this script.
21152 available_tags=""
21153
21154 # ### BEGIN LIBTOOL CONFIG
21155
21156 # Whether or not to build static libraries.
21157 build_old_libs=$enable_static
21158
21159 # Which release of libtool.m4 was used?
21160 macro_version=$macro_version
21161 macro_revision=$macro_revision
21162
21163 # Whether or not to build shared libraries.
21164 build_libtool_libs=$enable_shared
21165
21166 # What type of objects to build.
21167 pic_mode=$pic_mode
21168
21169 # Whether or not to optimize for fast installation.
21170 fast_install=$enable_fast_install
21171
21172 # Shell to use when invoking shell scripts.
21173 SHELL=$lt_SHELL
21174
21175 # An echo program that protects backslashes.
21176 ECHO=$lt_ECHO
21177
21178 # The PATH separator for the build system.
21179 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21180
21181 # The host system.
21182 host_alias=$host_alias
21183 host=$host
21184 host_os=$host_os
21185
21186 # The build system.
21187 build_alias=$build_alias
21188 build=$build
21189 build_os=$build_os
21190
21191 # A sed program that does not truncate output.
21192 SED=$lt_SED
21193
21194 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21195 Xsed="\$SED -e 1s/^X//"
21196
21197 # A grep program that handles long lines.
21198 GREP=$lt_GREP
21199
21200 # An ERE matcher.
21201 EGREP=$lt_EGREP
21202
21203 # A literal string matcher.
21204 FGREP=$lt_FGREP
21205
21206 # A BSD- or MS-compatible name lister.
21207 NM=$lt_NM
21208
21209 # Whether we need soft or hard links.
21210 LN_S=$lt_LN_S
21211
21212 # What is the maximum length of a command?
21213 max_cmd_len=$max_cmd_len
21214
21215 # Object file suffix (normally "o").
21216 objext=$ac_objext
21217
21218 # Executable file suffix (normally "").
21219 exeext=$exeext
21220
21221 # whether the shell understands "unset".
21222 lt_unset=$lt_unset
21223
21224 # turn spaces into newlines.
21225 SP2NL=$lt_lt_SP2NL
21226
21227 # turn newlines into spaces.
21228 NL2SP=$lt_lt_NL2SP
21229
21230 # convert \$build file names to \$host format.
21231 to_host_file_cmd=$lt_cv_to_host_file_cmd
21232
21233 # convert \$build files to toolchain format.
21234 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21235
21236 # An object symbol dumper.
21237 OBJDUMP=$lt_OBJDUMP
21238
21239 # Method to check whether dependent libraries are shared objects.
21240 deplibs_check_method=$lt_deplibs_check_method
21241
21242 # Command to use when deplibs_check_method = "file_magic".
21243 file_magic_cmd=$lt_file_magic_cmd
21244
21245 # How to find potential files when deplibs_check_method = "file_magic".
21246 file_magic_glob=$lt_file_magic_glob
21247
21248 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21249 want_nocaseglob=$lt_want_nocaseglob
21250
21251 # DLL creation program.
21252 DLLTOOL=$lt_DLLTOOL
21253
21254 # Command to associate shared and link libraries.
21255 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21256
21257 # The archiver.
21258 AR=$lt_AR
21259
21260 # Flags to create an archive.
21261 AR_FLAGS=$lt_AR_FLAGS
21262
21263 # How to feed a file listing to the archiver.
21264 archiver_list_spec=$lt_archiver_list_spec
21265
21266 # A symbol stripping program.
21267 STRIP=$lt_STRIP
21268
21269 # Commands used to install an old-style archive.
21270 RANLIB=$lt_RANLIB
21271 old_postinstall_cmds=$lt_old_postinstall_cmds
21272 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21273
21274 # Whether to use a lock for old archive extraction.
21275 lock_old_archive_extraction=$lock_old_archive_extraction
21276
21277 # A C compiler.
21278 LTCC=$lt_CC
21279
21280 # LTCC compiler flags.
21281 LTCFLAGS=$lt_CFLAGS
21282
21283 # Take the output of nm and produce a listing of raw symbols and C names.
21284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21285
21286 # Transform the output of nm in a proper C declaration.
21287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21288
21289 # Transform the output of nm in a C name address pair.
21290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21291
21292 # Transform the output of nm in a C name address pair when lib prefix is needed.
21293 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21294
21295 # Specify filename containing input files for \$NM.
21296 nm_file_list_spec=$lt_nm_file_list_spec
21297
21298 # The root where to search for dependent libraries,and in which our libraries should be installed.
21299 lt_sysroot=$lt_sysroot
21300
21301 # The name of the directory that contains temporary libtool files.
21302 objdir=$objdir
21303
21304 # Used to examine libraries when file_magic_cmd begins with "file".
21305 MAGIC_CMD=$MAGIC_CMD
21306
21307 # Must we lock files when doing compilation?
21308 need_locks=$lt_need_locks
21309
21310 # Manifest tool.
21311 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21312
21313 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21314 DSYMUTIL=$lt_DSYMUTIL
21315
21316 # Tool to change global to local symbols on Mac OS X.
21317 NMEDIT=$lt_NMEDIT
21318
21319 # Tool to manipulate fat objects and archives on Mac OS X.
21320 LIPO=$lt_LIPO
21321
21322 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21323 OTOOL=$lt_OTOOL
21324
21325 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21326 OTOOL64=$lt_OTOOL64
21327
21328 # Old archive suffix (normally "a").
21329 libext=$libext
21330
21331 # Shared library suffix (normally ".so").
21332 shrext_cmds=$lt_shrext_cmds
21333
21334 # The commands to extract the exported symbol list from a shared archive.
21335 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21336
21337 # Variables whose values should be saved in libtool wrapper scripts and
21338 # restored at link time.
21339 variables_saved_for_relink=$lt_variables_saved_for_relink
21340
21341 # Do we need the "lib" prefix for modules?
21342 need_lib_prefix=$need_lib_prefix
21343
21344 # Do we need a version for libraries?
21345 need_version=$need_version
21346
21347 # Library versioning type.
21348 version_type=$version_type
21349
21350 # Shared library runtime path variable.
21351 runpath_var=$runpath_var
21352
21353 # Shared library path variable.
21354 shlibpath_var=$shlibpath_var
21355
21356 # Is shlibpath searched before the hard-coded library search path?
21357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21358
21359 # Format of library name prefix.
21360 libname_spec=$lt_libname_spec
21361
21362 # List of archive names. First name is the real one, the rest are links.
21363 # The last name is the one that the linker finds with -lNAME
21364 library_names_spec=$lt_library_names_spec
21365
21366 # The coded name of the library, if different from the real name.
21367 soname_spec=$lt_soname_spec
21368
21369 # Permission mode override for installation of shared libraries.
21370 install_override_mode=$lt_install_override_mode
21371
21372 # Command to use after installation of a shared archive.
21373 postinstall_cmds=$lt_postinstall_cmds
21374
21375 # Command to use after uninstallation of a shared archive.
21376 postuninstall_cmds=$lt_postuninstall_cmds
21377
21378 # Commands used to finish a libtool library installation in a directory.
21379 finish_cmds=$lt_finish_cmds
21380
21381 # As "finish_cmds", except a single script fragment to be evaled but
21382 # not shown.
21383 finish_eval=$lt_finish_eval
21384
21385 # Whether we should hardcode library paths into libraries.
21386 hardcode_into_libs=$hardcode_into_libs
21387
21388 # Compile-time system search path for libraries.
21389 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21390
21391 # Run-time system search path for libraries.
21392 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21393
21394 # Whether dlopen is supported.
21395 dlopen_support=$enable_dlopen
21396
21397 # Whether dlopen of programs is supported.
21398 dlopen_self=$enable_dlopen_self
21399
21400 # Whether dlopen of statically linked programs is supported.
21401 dlopen_self_static=$enable_dlopen_self_static
21402
21403 # Commands to strip libraries.
21404 old_striplib=$lt_old_striplib
21405 striplib=$lt_striplib
21406
21407
21408 # The linker used to build libraries.
21409 LD=$lt_LD
21410
21411 # How to create reloadable object files.
21412 reload_flag=$lt_reload_flag
21413 reload_cmds=$lt_reload_cmds
21414
21415 # Commands used to build an old-style archive.
21416 old_archive_cmds=$lt_old_archive_cmds
21417
21418 # A language specific compiler.
21419 CC=$lt_compiler
21420
21421 # Is the compiler the GNU compiler?
21422 with_gcc=$GCC
21423
21424 # Compiler flag to turn off builtin functions.
21425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21426
21427 # Additional compiler flags for building library objects.
21428 pic_flag=$lt_lt_prog_compiler_pic
21429
21430 # How to pass a linker flag through the compiler.
21431 wl=$lt_lt_prog_compiler_wl
21432
21433 # Compiler flag to prevent dynamic linking.
21434 link_static_flag=$lt_lt_prog_compiler_static
21435
21436 # Does compiler simultaneously support -c and -o options?
21437 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21438
21439 # Whether or not to add -lc for building shared libraries.
21440 build_libtool_need_lc=$archive_cmds_need_lc
21441
21442 # Whether or not to disallow shared libs when runtime libs are static.
21443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21444
21445 # Compiler flag to allow reflexive dlopens.
21446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21447
21448 # Compiler flag to generate shared objects directly from archives.
21449 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21450
21451 # Whether the compiler copes with passing no objects directly.
21452 compiler_needs_object=$lt_compiler_needs_object
21453
21454 # Create an old-style archive from a shared archive.
21455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21456
21457 # Create a temporary old-style archive to link instead of a shared archive.
21458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21459
21460 # Commands used to build a shared archive.
21461 archive_cmds=$lt_archive_cmds
21462 archive_expsym_cmds=$lt_archive_expsym_cmds
21463
21464 # Commands used to build a loadable module if different from building
21465 # a shared archive.
21466 module_cmds=$lt_module_cmds
21467 module_expsym_cmds=$lt_module_expsym_cmds
21468
21469 # Whether we are building with GNU ld or not.
21470 with_gnu_ld=$lt_with_gnu_ld
21471
21472 # Flag that allows shared libraries with undefined symbols to be built.
21473 allow_undefined_flag=$lt_allow_undefined_flag
21474
21475 # Flag that enforces no undefined symbols.
21476 no_undefined_flag=$lt_no_undefined_flag
21477
21478 # Flag to hardcode \$libdir into a binary during linking.
21479 # This must work even if \$libdir does not exist
21480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21481
21482 # Whether we need a single "-rpath" flag with a separated argument.
21483 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21484
21485 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21486 # DIR into the resulting binary.
21487 hardcode_direct=$hardcode_direct
21488
21489 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21490 # DIR into the resulting binary and the resulting library dependency is
21491 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21492 # library is relocated.
21493 hardcode_direct_absolute=$hardcode_direct_absolute
21494
21495 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21496 # into the resulting binary.
21497 hardcode_minus_L=$hardcode_minus_L
21498
21499 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21500 # into the resulting binary.
21501 hardcode_shlibpath_var=$hardcode_shlibpath_var
21502
21503 # Set to "yes" if building a shared library automatically hardcodes DIR
21504 # into the library and all subsequent libraries and executables linked
21505 # against it.
21506 hardcode_automatic=$hardcode_automatic
21507
21508 # Set to yes if linker adds runtime paths of dependent libraries
21509 # to runtime path list.
21510 inherit_rpath=$inherit_rpath
21511
21512 # Whether libtool must link a program against all its dependency libraries.
21513 link_all_deplibs=$link_all_deplibs
21514
21515 # Set to "yes" if exported symbols are required.
21516 always_export_symbols=$always_export_symbols
21517
21518 # The commands to list exported symbols.
21519 export_symbols_cmds=$lt_export_symbols_cmds
21520
21521 # Symbols that should not be listed in the preloaded symbols.
21522 exclude_expsyms=$lt_exclude_expsyms
21523
21524 # Symbols that must always be exported.
21525 include_expsyms=$lt_include_expsyms
21526
21527 # Commands necessary for linking programs (against libraries) with templates.
21528 prelink_cmds=$lt_prelink_cmds
21529
21530 # Commands necessary for finishing linking programs.
21531 postlink_cmds=$lt_postlink_cmds
21532
21533 # Specify filename containing input files.
21534 file_list_spec=$lt_file_list_spec
21535
21536 # How to hardcode a shared library path into an executable.
21537 hardcode_action=$hardcode_action
21538
21539 # ### END LIBTOOL CONFIG
21540
21541 _LT_EOF
21542
21543 case $host_os in
21544 aix3*)
21545 cat <<\_LT_EOF >> "$cfgfile"
21546 # AIX sometimes has problems with the GCC collect2 program. For some
21547 # reason, if we set the COLLECT_NAMES environment variable, the problems
21548 # vanish in a puff of smoke.
21549 if test "X${COLLECT_NAMES+set}" != Xset; then
21550 COLLECT_NAMES=
21551 export COLLECT_NAMES
21552 fi
21553 _LT_EOF
21554 ;;
21555 esac
21556
21557
21558 ltmain="$ac_aux_dir/ltmain.sh"
21559
21560
21561 # We use sed instead of cat because bash on DJGPP gets confused if
21562 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21563 # text mode, it properly converts lines to CR/LF. This bash problem
21564 # is reportedly fixed, but why not run on old versions too?
21565 sed '$q' "$ltmain" >> "$cfgfile" \
21566 || (rm -f "$cfgfile"; exit 1)
21567
21568 if test x"$xsi_shell" = xyes; then
21569 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21570 func_dirname ()\
21571 {\
21572 \ case ${1} in\
21573 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21574 \ * ) func_dirname_result="${3}" ;;\
21575 \ esac\
21576 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21577 && mv -f "$cfgfile.tmp" "$cfgfile" \
21578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21579 test 0 -eq $? || _lt_function_replace_fail=:
21580
21581
21582 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21583 func_basename ()\
21584 {\
21585 \ func_basename_result="${1##*/}"\
21586 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21587 && mv -f "$cfgfile.tmp" "$cfgfile" \
21588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21589 test 0 -eq $? || _lt_function_replace_fail=:
21590
21591
21592 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21593 func_dirname_and_basename ()\
21594 {\
21595 \ case ${1} in\
21596 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21597 \ * ) func_dirname_result="${3}" ;;\
21598 \ esac\
21599 \ func_basename_result="${1##*/}"\
21600 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21601 && mv -f "$cfgfile.tmp" "$cfgfile" \
21602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21603 test 0 -eq $? || _lt_function_replace_fail=:
21604
21605
21606 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21607 func_stripname ()\
21608 {\
21609 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21610 \ # positional parameters, so assign one to ordinary parameter first.\
21611 \ func_stripname_result=${3}\
21612 \ func_stripname_result=${func_stripname_result#"${1}"}\
21613 \ func_stripname_result=${func_stripname_result%"${2}"}\
21614 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21615 && mv -f "$cfgfile.tmp" "$cfgfile" \
21616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21617 test 0 -eq $? || _lt_function_replace_fail=:
21618
21619
21620 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21621 func_split_long_opt ()\
21622 {\
21623 \ func_split_long_opt_name=${1%%=*}\
21624 \ func_split_long_opt_arg=${1#*=}\
21625 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21626 && mv -f "$cfgfile.tmp" "$cfgfile" \
21627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21628 test 0 -eq $? || _lt_function_replace_fail=:
21629
21630
21631 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21632 func_split_short_opt ()\
21633 {\
21634 \ func_split_short_opt_arg=${1#??}\
21635 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21636 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21637 && mv -f "$cfgfile.tmp" "$cfgfile" \
21638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21639 test 0 -eq $? || _lt_function_replace_fail=:
21640
21641
21642 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21643 func_lo2o ()\
21644 {\
21645 \ case ${1} in\
21646 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21647 \ *) func_lo2o_result=${1} ;;\
21648 \ esac\
21649 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21650 && mv -f "$cfgfile.tmp" "$cfgfile" \
21651 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21652 test 0 -eq $? || _lt_function_replace_fail=:
21653
21654
21655 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21656 func_xform ()\
21657 {\
21658 func_xform_result=${1%.*}.lo\
21659 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21660 && mv -f "$cfgfile.tmp" "$cfgfile" \
21661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21662 test 0 -eq $? || _lt_function_replace_fail=:
21663
21664
21665 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21666 func_arith ()\
21667 {\
21668 func_arith_result=$(( $* ))\
21669 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21670 && mv -f "$cfgfile.tmp" "$cfgfile" \
21671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21672 test 0 -eq $? || _lt_function_replace_fail=:
21673
21674
21675 sed -e '/^func_len ()$/,/^} # func_len /c\
21676 func_len ()\
21677 {\
21678 func_len_result=${#1}\
21679 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21680 && mv -f "$cfgfile.tmp" "$cfgfile" \
21681 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21682 test 0 -eq $? || _lt_function_replace_fail=:
21683
21684 fi
21685
21686 if test x"$lt_shell_append" = xyes; then
21687 sed -e '/^func_append ()$/,/^} # func_append /c\
21688 func_append ()\
21689 {\
21690 eval "${1}+=\\${2}"\
21691 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21692 && mv -f "$cfgfile.tmp" "$cfgfile" \
21693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21694 test 0 -eq $? || _lt_function_replace_fail=:
21695
21696
21697 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21698 func_append_quoted ()\
21699 {\
21700 \ func_quote_for_eval "${2}"\
21701 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21702 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21703 && mv -f "$cfgfile.tmp" "$cfgfile" \
21704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21705 test 0 -eq $? || _lt_function_replace_fail=:
21706
21707
21708 # Save a `func_append' function call where possible by direct use of '+='
21709 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21710 && mv -f "$cfgfile.tmp" "$cfgfile" \
21711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21712 test 0 -eq $? || _lt_function_replace_fail=:
21713 else
21714 # Save a `func_append' function call even when '+=' is not available
21715 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21716 && mv -f "$cfgfile.tmp" "$cfgfile" \
21717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21718 test 0 -eq $? || _lt_function_replace_fail=:
21719 fi
21720
21721 if test x"$_lt_function_replace_fail" = x":"; then
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21723 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21724 fi
21725
21726
21727 mv -f "$cfgfile" "$ofile" ||
21728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21729 chmod +x "$ofile"
21730
21731 ;;
21732
21733 esac
21734 done # for ac_tag
21735
21736
21737 as_fn_exit 0
21738 _ACEOF
21739 ac_clean_files=$ac_clean_files_save
21740
21741 test $ac_write_fail = 0 ||
21742 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21743
21744
21745 # configure is writing to config.log, and then calls config.status.
21746 # config.status does its own redirection, appending to config.log.
21747 # Unfortunately, on DOS this fails, as config.log is still kept open
21748 # by configure, so config.status won't be able to write to it; its
21749 # output is simply discarded. So we exec the FD to /dev/null,
21750 # effectively closing config.log, so it can be properly (re)opened and
21751 # appended to by config.status. When coming back to configure, we
21752 # need to make the FD available again.
21753 if test "$no_create" != yes; then
21754 ac_cs_success=:
21755 ac_config_status_args=
21756 test "$silent" = yes &&
21757 ac_config_status_args="$ac_config_status_args --quiet"
21758 exec 5>/dev/null
21759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21760 exec 5>>config.log
21761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21762 # would make configure fail if this is the last instruction.
21763 $ac_cs_success || as_fn_exit 1
21764 fi
21765 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21767 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21768 fi
21769
21770
21771 echo ""
21772 echo " prefix: $prefix"
21773 echo " exec_prefix: $exec_prefix"
21774 echo " libdir: $libdir"
21775 echo " includedir: $includedir"
21776
21777 echo ""
21778 echo " CFLAGS: $CFLAGS"
21779 echo " CXXFLAGS: $CXXFLAGS"
21780 echo " Macros: $DEFINES"
21781
21782 echo ""
21783 echo " Run '${MAKE-make}' to build xf86-video-ati"
21784 echo ""
21785