configure revision 1.1.1.11 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-ati 22.0.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='xf86-video-ati'
624 PACKAGE_TARNAME='xf86-video-ati'
625 PACKAGE_VERSION='22.0.0'
626 PACKAGE_STRING='xf86-video-ati 22.0.0'
627 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 DRIVER_NAME
668 moduledir
669 PCIACCESS_LIBS
670 PCIACCESS_CFLAGS
671 GLAMOR_FALSE
672 GLAMOR_TRUE
673 GBM_LIBS
674 GBM_CFLAGS
675 LIBGLAMOR_EGL_LIBS
676 LIBGLAMOR_EGL_CFLAGS
677 LIBGLAMOR_LIBS
678 LIBGLAMOR_CFLAGS
679 LIBGL_LIBS
680 LIBGL_CFLAGS
681 LIBUDEV_FALSE
682 LIBUDEV_TRUE
683 LIBUDEV_LIBS
684 LIBUDEV_CFLAGS
685 configdir
686 HAS_XORG_CONF_DIR_FALSE
687 HAS_XORG_CONF_DIR_TRUE
688 HAVE_XEXTPROTO_71_FALSE
689 HAVE_XEXTPROTO_71_TRUE
690 XEXT_LIBS
691 XEXT_CFLAGS
692 XORG_LIBS
693 XORG_CFLAGS
694 LIBDRM_RADEON_LIBS
695 LIBDRM_RADEON_CFLAGS
696 LIBDRM_LIBS
697 LIBDRM_CFLAGS
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 DLLTOOL
709 OBJDUMP
710 FILECMD
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 EGREP
718 GREP
719 LIBTOOL
720 MAN_SUBSTS
721 XORG_MAN_PAGE
722 ADMIN_MAN_DIR
723 DRIVER_MAN_DIR
724 MISC_MAN_DIR
725 FILE_MAN_DIR
726 LIB_MAN_DIR
727 APP_MAN_DIR
728 ADMIN_MAN_SUFFIX
729 DRIVER_MAN_SUFFIX
730 MISC_MAN_SUFFIX
731 FILE_MAN_SUFFIX
732 LIB_MAN_SUFFIX
733 APP_MAN_SUFFIX
734 SED
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 INSTALL_CMD
744 PKG_CONFIG_LIBDIR
745 PKG_CONFIG_PATH
746 PKG_CONFIG
747 CHANGELOG_CMD
748 STRICT_CFLAGS
749 CWARNFLAGS
750 BASE_CFLAGS
751 am__fastdepCC_FALSE
752 am__fastdepCC_TRUE
753 CCDEPMODE
754 am__nodep
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__include
759 DEPDIR
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 AM_BACKSLASH
768 AM_DEFAULT_VERBOSITY
769 AM_DEFAULT_V
770 AM_V
771 CSCOPE
772 ETAGS
773 CTAGS
774 am__untar
775 am__tar
776 AMTAR
777 am__leading_dot
778 SET_MAKE
779 AWK
780 mkdir_p
781 MKDIR_P
782 INSTALL_STRIP_PROGRAM
783 STRIP
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 runstatedir
817 localstatedir
818 sharedstatedir
819 sysconfdir
820 datadir
821 datarootdir
822 libexecdir
823 sbindir
824 bindir
825 program_transform_name
826 prefix
827 exec_prefix
828 PACKAGE_URL
829 PACKAGE_BUGREPORT
830 PACKAGE_STRING
831 PACKAGE_VERSION
832 PACKAGE_TARNAME
833 PACKAGE_NAME
834 PATH_SEPARATOR
835 SHELL
836 am__quote'
837 ac_subst_files=''
838 ac_user_opts='
839 enable_option_checking
840 enable_silent_rules
841 enable_largefile
842 enable_dependency_tracking
843 enable_selective_werror
844 enable_strict_compilation
845 enable_static
846 enable_shared
847 with_pic
848 enable_fast_install
849 with_aix_soname
850 with_gnu_ld
851 with_sysroot
852 enable_libtool_lock
853 with_xorg_module_dir
854 with_xorg_conf_dir
855 enable_udev
856 enable_glamor
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 PKG_CONFIG
867 PKG_CONFIG_PATH
868 PKG_CONFIG_LIBDIR
869 LT_SYS_LIBRARY_PATH
870 LIBDRM_CFLAGS
871 LIBDRM_LIBS
872 LIBDRM_RADEON_CFLAGS
873 LIBDRM_RADEON_LIBS
874 XORG_CFLAGS
875 XORG_LIBS
876 XEXT_CFLAGS
877 XEXT_LIBS
878 LIBUDEV_CFLAGS
879 LIBUDEV_LIBS
880 LIBGL_CFLAGS
881 LIBGL_LIBS
882 LIBGLAMOR_CFLAGS
883 LIBGLAMOR_LIBS
884 LIBGLAMOR_EGL_CFLAGS
885 LIBGLAMOR_EGL_LIBS
886 GBM_CFLAGS
887 GBM_LIBS
888 PCIACCESS_CFLAGS
889 PCIACCESS_LIBS'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 runstatedir='${localstatedir}/run'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
940
941 ac_prev=
942 ac_dashdash=
943 for ac_option
944 do
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
948 ac_prev=
949 continue
950 fi
951
952 case $ac_option in
953 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 *=) ac_optarg= ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 case $ac_dashdash$ac_option in
959 --)
960 ac_dashdash=yes ;;
961
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
966
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
971
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
978
979 --config-cache | -C)
980 cache_file=config.cache ;;
981
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
986
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
993
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: \`$ac_useropt'"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1019
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1055
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1060
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1090
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1147
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1164
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -runstatedir | --runstatedir | --runstatedi | --runstated \
1180 | --runstate | --runstat | --runsta | --runst | --runs \
1181 | --run | --ru | --r)
1182 ac_prev=runstatedir ;;
1183 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1184 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1185 | --run=* | --ru=* | --r=*)
1186 runstatedir=$ac_optarg ;;
1187
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
1192 sbindir=$ac_optarg ;;
1193
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
1203 sharedstatedir=$ac_optarg ;;
1204
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
1208 site=$ac_optarg ;;
1209
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1214
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1221
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1226
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1229
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1232
1233 -with-* | --with-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: \`$ac_useropt'"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=\$ac_optarg ;;
1248
1249 -without-* | --without-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: \`$ac_useropt'"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=no ;;
1264
1265 --x)
1266 # Obsolete; use --with-x.
1267 with_x=yes ;;
1268
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274 x_includes=$ac_optarg ;;
1275
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281 x_libraries=$ac_optarg ;;
1282
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1285 ;;
1286
1287 *=*)
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293 esac
1294 eval $ac_envvar=\$ac_optarg
1295 export $ac_envvar ;;
1296
1297 *)
1298 # FIXME: should be removed in autoconf 3.0.
1299 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303 ;;
1304
1305 esac
1306 done
1307
1308 if test -n "$ac_prev"; then
1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $? "missing argument to $ac_option"
1311 fi
1312
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1315 no) ;;
1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 esac
1319 fi
1320
1321 # Check all directory arguments for consistency.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir runstatedir
1326 do
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1329 case $ac_val in
1330 */ )
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1333 esac
1334 # Be sure to have absolute directory names.
1335 case $ac_val in
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 esac
1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340 done
1341
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1348
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1355 fi
1356 fi
1357
1358 ac_tool_prefix=
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361 test "$silent" = yes && exec 6>/dev/null
1362
1363
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $? "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $? "pwd does not report name of working directory"
1370
1371
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 printf "%s\n" X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\).*/{
1395 s//\1/
1396 q
1397 }
1398 s/.*/./; q'`
1399 srcdir=$ac_confdir
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 srcdir=..
1402 fi
1403 else
1404 ac_srcdir_defaulted=no
1405 fi
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 fi
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417 fi
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1430
1431 #
1432 # Report the --help message.
1433 #
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures xf86-video-ati 22.0.0 to adapt to many kinds of systems.
1439
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445 Defaults for the options are specified in brackets.
1446
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking ...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1463
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1468
1469 For better control, use the options below.
1470
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1493
1494 cat <<\_ACEOF
1495
1496 Program names:
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500
1501 System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 _ACEOF
1505 fi
1506
1507 if test -n "$ac_init_help"; then
1508 case $ac_init_help in
1509 short | recursive ) echo "Configuration of xf86-video-ati 22.0.0:";;
1510 esac
1511 cat <<\_ACEOF
1512
1513 Optional Features:
1514 --disable-option-checking ignore unrecognized --enable/--with options
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-silent-rules less verbose build output (undo: "make V=1")
1518 --disable-silent-rules verbose build output (undo: "make V=0")
1519 --disable-largefile omit support for large files
1520 --enable-dependency-tracking
1521 do not reject slow dependency extractors
1522 --disable-dependency-tracking
1523 speeds up one-time build
1524 --disable-selective-werror
1525 Turn off selective compiler errors. (default:
1526 enabled)
1527 --enable-strict-compilation
1528 Enable all warnings from compiler and make them
1529 errors (default: disabled)
1530 --enable-static[=PKGS] build static libraries [default=no]
1531 --enable-shared[=PKGS] build shared libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535 --disable-udev Disable libudev support [default=auto]
1536 --disable-glamor Disable glamor, a new GL-based acceleration
1537 [default=enabled]
1538
1539 Optional Packages:
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1543 both]
1544 --with-aix-soname=aix|svr4|both
1545 shared library versioning (aka "SONAME") variant to
1546 provide on AIX, [default=aix].
1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1549 compiler's sysroot if not specified).
1550 --with-xorg-module-dir=DIR
1551 Default xorg module directory
1552 [[default=$libdir/xorg/modules]]
1553 --with-xorg-conf-dir=DIR
1554 Default xorg.conf.d directory
1555 [[default=${prefix}/share/X11/xorg.conf.d]]
1556
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1565 PKG_CONFIG path to pkg-config utility
1566 PKG_CONFIG_PATH
1567 directories to add to pkg-config's search path
1568 PKG_CONFIG_LIBDIR
1569 path overriding pkg-config's built-in search path
1570 LT_SYS_LIBRARY_PATH
1571 User-defined run-time library search path.
1572 LIBDRM_CFLAGS
1573 C compiler flags for LIBDRM, overriding pkg-config
1574 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1575 LIBDRM_RADEON_CFLAGS
1576 C compiler flags for LIBDRM_RADEON, overriding pkg-config
1577 LIBDRM_RADEON_LIBS
1578 linker flags for LIBDRM_RADEON, overriding pkg-config
1579 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1580 XORG_LIBS linker flags for XORG, overriding pkg-config
1581 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1582 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1583 LIBUDEV_CFLAGS
1584 C compiler flags for LIBUDEV, overriding pkg-config
1585 LIBUDEV_LIBS
1586 linker flags for LIBUDEV, overriding pkg-config
1587 LIBGL_CFLAGS
1588 C compiler flags for LIBGL, overriding pkg-config
1589 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1590 LIBGLAMOR_CFLAGS
1591 C compiler flags for LIBGLAMOR, overriding pkg-config
1592 LIBGLAMOR_LIBS
1593 linker flags for LIBGLAMOR, overriding pkg-config
1594 LIBGLAMOR_EGL_CFLAGS
1595 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1596 LIBGLAMOR_EGL_LIBS
1597 linker flags for LIBGLAMOR_EGL, overriding pkg-config
1598 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config
1599 GBM_LIBS linker flags for GBM, overriding pkg-config
1600 PCIACCESS_CFLAGS
1601 C compiler flags for PCIACCESS, overriding pkg-config
1602 PCIACCESS_LIBS
1603 linker flags for PCIACCESS, overriding pkg-config
1604
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1607
1608 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
1609 _ACEOF
1610 ac_status=$?
1611 fi
1612
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618 continue
1619 ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638 .) # We are building in place.
1639 ac_srcdir=.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for configure.gnu first; this name is used for a wrapper for
1655 # Metaconfig's "Configure" on case-insensitive file systems.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1662 else
1663 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1666 done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671 cat <<\_ACEOF
1672 xf86-video-ati configure 22.0.0
1673 generated by GNU Autoconf 2.71
1674
1675 Copyright (C) 2021 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679 exit
1680 fi
1681
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1685
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest.beam
1693 if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 printf "%s\n" "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext
1712 then :
1713 ac_retval=0
1714 else $as_nop
1715 printf "%s\n" "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_compile
1724
1725 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1726 # ------------------------------------------------------------------
1727 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1728 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1729 ac_fn_check_decl ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 as_decl_name=`echo $2|sed 's/ *(.*//'`
1733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1734 printf %s "checking whether $as_decl_name is declared... " >&6; }
1735 if eval test \${$3+y}
1736 then :
1737 printf %s "(cached) " >&6
1738 else $as_nop
1739 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1740 eval ac_save_FLAGS=\$$6
1741 as_fn_append $6 " $5"
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 $4
1745 int
1746 main (void)
1747 {
1748 #ifndef $as_decl_name
1749 #ifdef __cplusplus
1750 (void) $as_decl_use;
1751 #else
1752 (void) $as_decl_name;
1753 #endif
1754 #endif
1755
1756 ;
1757 return 0;
1758 }
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"
1761 then :
1762 eval "$3=yes"
1763 else $as_nop
1764 eval "$3=no"
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1767 eval $6=\$ac_save_FLAGS
1768
1769 fi
1770 eval ac_res=\$$3
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 printf "%s\n" "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_check_decl
1776
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 printf %s "checking for $2... " >&6; }
1786 if eval test \${$3+y}
1787 then :
1788 printf %s "(cached) " >&6
1789 else $as_nop
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"
1796 then :
1797 eval "$3=yes"
1798 else $as_nop
1799 eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 printf "%s\n" "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_header_compile
1809
1810 # ac_fn_c_try_link LINENO
1811 # -----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_c_try_link ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1817 if { { ac_try="$ac_link"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 printf "%s\n" "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest$ac_exeext && {
1836 test "$cross_compiling" = yes ||
1837 test -x conftest$ac_exeext
1838 }
1839 then :
1840 ac_retval=0
1841 else $as_nop
1842 printf "%s\n" "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849 # interfere with the next link command; also delete a directory that is
1850 # left behind by Apple's compiler. We do this before executing the actions.
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855 } # ac_fn_c_try_link
1856
1857 # ac_fn_c_check_func LINENO FUNC VAR
1858 # ----------------------------------
1859 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1860 ac_fn_c_check_func ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 printf %s "checking for $2... " >&6; }
1865 if eval test \${$3+y}
1866 then :
1867 printf %s "(cached) " >&6
1868 else $as_nop
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1874
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (void); below. */
1877
1878 #include <limits.h>
1879 #undef $2
1880
1881 /* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1884 #ifdef __cplusplus
1885 extern "C"
1886 #endif
1887 char $2 (void);
1888 /* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891 #if defined __stub_$2 || defined __stub___$2
1892 choke me
1893 #endif
1894
1895 int
1896 main (void)
1897 {
1898 return $2 ();
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_link "$LINENO"
1904 then :
1905 eval "$3=yes"
1906 else $as_nop
1907 eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1910 conftest$ac_exeext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 printf "%s\n" "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917 } # ac_fn_c_check_func
1918 ac_configure_args_raw=
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 *\'*)
1923 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 esac
1925 as_fn_append ac_configure_args_raw " '$ac_arg'"
1926 done
1927
1928 case $ac_configure_args_raw in
1929 *$as_nl*)
1930 ac_safe_unquote= ;;
1931 *)
1932 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1933 ac_unsafe_a="$ac_unsafe_z#~"
1934 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1935 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1936 esac
1937
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by xf86-video-ati $as_me 22.0.0, which was
1943 generated by GNU Autoconf 2.71. Invocation command line was
1944
1945 $ $0$ac_configure_args_raw
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977 IFS=$as_save_IFS
1978 case $as_dir in #(((
1979 '') as_dir=./ ;;
1980 */) ;;
1981 *) as_dir=$as_dir/ ;;
1982 esac
1983 printf "%s\n" "PATH: $as_dir"
1984 done
1985 IFS=$as_save_IFS
1986
1987 } >&5
1988
1989 cat >&5 <<_ACEOF
1990
1991
1992 ## ----------- ##
1993 ## Core tests. ##
1994 ## ----------- ##
1995
1996 _ACEOF
1997
1998
1999 # Keep a trace of the command line.
2000 # Strip out --no-create and --no-recursion so they do not pile up.
2001 # Strip out --silent because we don't want to record it for future runs.
2002 # Also quote any args containing shell meta-characters.
2003 # Make two passes to allow for proper duplicate-argument suppression.
2004 ac_configure_args=
2005 ac_configure_args0=
2006 ac_configure_args1=
2007 ac_must_keep_next=false
2008 for ac_pass in 1 2
2009 do
2010 for ac_arg
2011 do
2012 case $ac_arg in
2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2015 | -silent | --silent | --silen | --sile | --sil)
2016 continue ;;
2017 *\'*)
2018 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 esac
2020 case $ac_pass in
2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2022 2)
2023 as_fn_append ac_configure_args1 " '$ac_arg'"
2024 if test $ac_must_keep_next = true; then
2025 ac_must_keep_next=false # Got value, back to normal.
2026 else
2027 case $ac_arg in
2028 *=* | --config-cache | -C | -disable-* | --disable-* \
2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2031 | -with-* | --with-* | -without-* | --without-* | --x)
2032 case "$ac_configure_args0 " in
2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2034 esac
2035 ;;
2036 -* ) ac_must_keep_next=true ;;
2037 esac
2038 fi
2039 as_fn_append ac_configure_args " '$ac_arg'"
2040 ;;
2041 esac
2042 done
2043 done
2044 { ac_configure_args0=; unset ac_configure_args0;}
2045 { ac_configure_args1=; unset ac_configure_args1;}
2046
2047 # When interrupted or exit'd, cleanup temporary files, and complete
2048 # config.log. We remove comments because anyway the quotes in there
2049 # would cause problems or look ugly.
2050 # WARNING: Use '\'' to represent an apostrophe within the trap.
2051 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2052 trap 'exit_status=$?
2053 # Sanitize IFS.
2054 IFS=" "" $as_nl"
2055 # Save into config.log some information that might help in debugging.
2056 {
2057 echo
2058
2059 printf "%s\n" "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2062 echo
2063 # The following way of writing the cache mishandles newlines in values,
2064 (
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
2080 (set) 2>&1 |
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2083 sed -n \
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
2087 *)
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089 ;;
2090 esac |
2091 sort
2092 )
2093 echo
2094
2095 printf "%s\n" "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2098 echo
2099 for ac_var in $ac_subst_vars
2100 do
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 printf "%s\n" "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2108
2109 if test -n "$ac_subst_files"; then
2110 printf "%s\n" "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2113 echo
2114 for ac_var in $ac_subst_files
2115 do
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 printf "%s\n" "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2123 fi
2124
2125 if test -s confdefs.h; then
2126 printf "%s\n" "## ----------- ##
2127 ## confdefs.h. ##
2128 ## ----------- ##"
2129 echo
2130 cat confdefs.h
2131 echo
2132 fi
2133 test "$ac_signal" != 0 &&
2134 printf "%s\n" "$as_me: caught signal $ac_signal"
2135 printf "%s\n" "$as_me: exit $exit_status"
2136 } >&5
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 exit $exit_status
2140 ' 0
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 done
2144 ac_signal=0
2145
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2148
2149 printf "%s\n" "/* confdefs.h */" > confdefs.h
2150
2151 # Predefined preprocessor variables.
2152
2153 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2154
2155 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2156
2157 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2158
2159 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2160
2161 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2162
2163 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2164
2165
2166 # Let the site file select an alternate cache file if it wants to.
2167 # Prefer an explicitly selected file to automatically selected ones.
2168 if test -n "$CONFIG_SITE"; then
2169 ac_site_files="$CONFIG_SITE"
2170 elif test "x$prefix" != xNONE; then
2171 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2172 else
2173 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2174 fi
2175
2176 for ac_site_file in $ac_site_files
2177 do
2178 case $ac_site_file in #(
2179 */*) :
2180 ;; #(
2181 *) :
2182 ac_site_file=./$ac_site_file ;;
2183 esac
2184 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2186 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2187 sed 's/^/| /' "$ac_site_file" >&5
2188 . "$ac_site_file" \
2189 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2191 as_fn_error $? "failed to load site script $ac_site_file
2192 See \`config.log' for more details" "$LINENO" 5; }
2193 fi
2194 done
2195
2196 if test -r "$cache_file"; then
2197 # Some versions of bash will fail to source /dev/null (special files
2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2201 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2202 case $cache_file in
2203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204 *) . "./$cache_file";;
2205 esac
2206 fi
2207 else
2208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2209 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2210 >$cache_file
2211 fi
2212
2213 # Test code for whether the C compiler supports C89 (global declarations)
2214 ac_c_conftest_c89_globals='
2215 /* Does the compiler advertise C89 conformance?
2216 Do not test the value of __STDC__, because some compilers set it to 0
2217 while being otherwise adequately conformant. */
2218 #if !defined __STDC__
2219 # error "Compiler does not advertise C89 conformance"
2220 #endif
2221
2222 #include <stddef.h>
2223 #include <stdarg.h>
2224 struct stat;
2225 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2226 struct buf { int x; };
2227 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2228 static char *e (char **p, int i)
2229 {
2230 return p[i];
2231 }
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2233 {
2234 char *s;
2235 va_list v;
2236 va_start (v,p);
2237 s = g (p, va_arg (v,int));
2238 va_end (v);
2239 return s;
2240 }
2241
2242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2243 function prototypes and stuff, but not \xHH hex character constants.
2244 These do not provoke an error unfortunately, instead are silently treated
2245 as an "x". The following induces an error, until -std is added to get
2246 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2247 array size at least. It is necessary to write \x00 == 0 to get something
2248 that is true only with -std. */
2249 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2250
2251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2252 inside strings and character constants. */
2253 #define FOO(x) '\''x'\''
2254 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2255
2256 int test (int i, double x);
2257 struct s1 {int (*f) (int a);};
2258 struct s2 {int (*f) (double a);};
2259 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2260 int, int);'
2261
2262 # Test code for whether the C compiler supports C89 (body of main).
2263 ac_c_conftest_c89_main='
2264 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2265 '
2266
2267 # Test code for whether the C compiler supports C99 (global declarations)
2268 ac_c_conftest_c99_globals='
2269 // Does the compiler advertise C99 conformance?
2270 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2271 # error "Compiler does not advertise C99 conformance"
2272 #endif
2273
2274 #include <stdbool.h>
2275 extern int puts (const char *);
2276 extern int printf (const char *, ...);
2277 extern int dprintf (int, const char *, ...);
2278 extern void *malloc (size_t);
2279 extern void free (void *);
2280
2281 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2282 // dprintf is used instead of fprintf to avoid needing to declare
2283 // FILE and stderr.
2284 #define debug(...) dprintf (2, __VA_ARGS__)
2285 #define showlist(...) puts (#__VA_ARGS__)
2286 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2287 static void
2288 test_varargs_macros (void)
2289 {
2290 int x = 1234;
2291 int y = 5678;
2292 debug ("Flag");
2293 debug ("X = %d\n", x);
2294 showlist (The first, second, and third items.);
2295 report (x>y, "x is %d but y is %d", x, y);
2296 }
2297
2298 // Check long long types.
2299 #define BIG64 18446744073709551615ull
2300 #define BIG32 4294967295ul
2301 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2302 #if !BIG_OK
2303 #error "your preprocessor is broken"
2304 #endif
2305 #if BIG_OK
2306 #else
2307 #error "your preprocessor is broken"
2308 #endif
2309 static long long int bignum = -9223372036854775807LL;
2310 static unsigned long long int ubignum = BIG64;
2311
2312 struct incomplete_array
2313 {
2314 int datasize;
2315 double data[];
2316 };
2317
2318 struct named_init {
2319 int number;
2320 const wchar_t *name;
2321 double average;
2322 };
2323
2324 typedef const char *ccp;
2325
2326 static inline int
2327 test_restrict (ccp restrict text)
2328 {
2329 // See if C++-style comments work.
2330 // Iterate through items via the restricted pointer.
2331 // Also check for declarations in for loops.
2332 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2333 continue;
2334 return 0;
2335 }
2336
2337 // Check varargs and va_copy.
2338 static bool
2339 test_varargs (const char *format, ...)
2340 {
2341 va_list args;
2342 va_start (args, format);
2343 va_list args_copy;
2344 va_copy (args_copy, args);
2345
2346 const char *str = "";
2347 int number = 0;
2348 float fnumber = 0;
2349
2350 while (*format)
2351 {
2352 switch (*format++)
2353 {
2354 case '\''s'\'': // string
2355 str = va_arg (args_copy, const char *);
2356 break;
2357 case '\''d'\'': // int
2358 number = va_arg (args_copy, int);
2359 break;
2360 case '\''f'\'': // float
2361 fnumber = va_arg (args_copy, double);
2362 break;
2363 default:
2364 break;
2365 }
2366 }
2367 va_end (args_copy);
2368 va_end (args);
2369
2370 return *str && number && fnumber;
2371 }
2372 '
2373
2374 # Test code for whether the C compiler supports C99 (body of main).
2375 ac_c_conftest_c99_main='
2376 // Check bool.
2377 _Bool success = false;
2378 success |= (argc != 0);
2379
2380 // Check restrict.
2381 if (test_restrict ("String literal") == 0)
2382 success = true;
2383 char *restrict newvar = "Another string";
2384
2385 // Check varargs.
2386 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2387 test_varargs_macros ();
2388
2389 // Check flexible array members.
2390 struct incomplete_array *ia =
2391 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2392 ia->datasize = 10;
2393 for (int i = 0; i < ia->datasize; ++i)
2394 ia->data[i] = i * 1.234;
2395
2396 // Check named initializers.
2397 struct named_init ni = {
2398 .number = 34,
2399 .name = L"Test wide string",
2400 .average = 543.34343,
2401 };
2402
2403 ni.number = 58;
2404
2405 int dynamic_array[ni.number];
2406 dynamic_array[0] = argv[0][0];
2407 dynamic_array[ni.number - 1] = 543;
2408
2409 // work around unused variable warnings
2410 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2411 || dynamic_array[ni.number - 1] != 543);
2412 '
2413
2414 # Test code for whether the C compiler supports C11 (global declarations)
2415 ac_c_conftest_c11_globals='
2416 // Does the compiler advertise C11 conformance?
2417 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2418 # error "Compiler does not advertise C11 conformance"
2419 #endif
2420
2421 // Check _Alignas.
2422 char _Alignas (double) aligned_as_double;
2423 char _Alignas (0) no_special_alignment;
2424 extern char aligned_as_int;
2425 char _Alignas (0) _Alignas (int) aligned_as_int;
2426
2427 // Check _Alignof.
2428 enum
2429 {
2430 int_alignment = _Alignof (int),
2431 int_array_alignment = _Alignof (int[100]),
2432 char_alignment = _Alignof (char)
2433 };
2434 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2435
2436 // Check _Noreturn.
2437 int _Noreturn does_not_return (void) { for (;;) continue; }
2438
2439 // Check _Static_assert.
2440 struct test_static_assert
2441 {
2442 int x;
2443 _Static_assert (sizeof (int) <= sizeof (long int),
2444 "_Static_assert does not work in struct");
2445 long int y;
2446 };
2447
2448 // Check UTF-8 literals.
2449 #define u8 syntax error!
2450 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2451
2452 // Check duplicate typedefs.
2453 typedef long *long_ptr;
2454 typedef long int *long_ptr;
2455 typedef long_ptr long_ptr;
2456
2457 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2458 struct anonymous
2459 {
2460 union {
2461 struct { int i; int j; };
2462 struct { int k; long int l; } w;
2463 };
2464 int m;
2465 } v1;
2466 '
2467
2468 # Test code for whether the C compiler supports C11 (body of main).
2469 ac_c_conftest_c11_main='
2470 _Static_assert ((offsetof (struct anonymous, i)
2471 == offsetof (struct anonymous, w.k)),
2472 "Anonymous union alignment botch");
2473 v1.i = 2;
2474 v1.w.k = 5;
2475 ok |= v1.i != 5;
2476 '
2477
2478 # Test code for whether the C compiler supports C11 (complete).
2479 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2480 ${ac_c_conftest_c99_globals}
2481 ${ac_c_conftest_c11_globals}
2482
2483 int
2484 main (int argc, char **argv)
2485 {
2486 int ok = 0;
2487 ${ac_c_conftest_c89_main}
2488 ${ac_c_conftest_c99_main}
2489 ${ac_c_conftest_c11_main}
2490 return ok;
2491 }
2492 "
2493
2494 # Test code for whether the C compiler supports C99 (complete).
2495 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2496 ${ac_c_conftest_c99_globals}
2497
2498 int
2499 main (int argc, char **argv)
2500 {
2501 int ok = 0;
2502 ${ac_c_conftest_c89_main}
2503 ${ac_c_conftest_c99_main}
2504 return ok;
2505 }
2506 "
2507
2508 # Test code for whether the C compiler supports C89 (complete).
2509 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2510
2511 int
2512 main (int argc, char **argv)
2513 {
2514 int ok = 0;
2515 ${ac_c_conftest_c89_main}
2516 return ok;
2517 }
2518 "
2519
2520 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2521 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2522 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2523 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2524 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2525 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2526 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2527 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2528 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2529
2530 # Auxiliary files required by this configure script.
2531 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2532
2533 # Locations in which to look for auxiliary files.
2534 ac_aux_dir_candidates="${srcdir}/."
2535
2536 # Search for a directory containing all of the required auxiliary files,
2537 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2538 # If we don't find one directory that contains all the files we need,
2539 # we report the set of missing files from the *first* directory in
2540 # $ac_aux_dir_candidates and give up.
2541 ac_missing_aux_files=""
2542 ac_first_candidate=:
2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 as_found=false
2546 for as_dir in $ac_aux_dir_candidates
2547 do
2548 IFS=$as_save_IFS
2549 case $as_dir in #(((
2550 '') as_dir=./ ;;
2551 */) ;;
2552 *) as_dir=$as_dir/ ;;
2553 esac
2554 as_found=:
2555
2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2557 ac_aux_dir_found=yes
2558 ac_install_sh=
2559 for ac_aux in $ac_aux_files
2560 do
2561 # As a special case, if "install-sh" is required, that requirement
2562 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2563 # and $ac_install_sh is set appropriately for whichever one is found.
2564 if test x"$ac_aux" = x"install-sh"
2565 then
2566 if test -f "${as_dir}install-sh"; then
2567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2568 ac_install_sh="${as_dir}install-sh -c"
2569 elif test -f "${as_dir}install.sh"; then
2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2571 ac_install_sh="${as_dir}install.sh -c"
2572 elif test -f "${as_dir}shtool"; then
2573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2574 ac_install_sh="${as_dir}shtool install -c"
2575 else
2576 ac_aux_dir_found=no
2577 if $ac_first_candidate; then
2578 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2579 else
2580 break
2581 fi
2582 fi
2583 else
2584 if test -f "${as_dir}${ac_aux}"; then
2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2586 else
2587 ac_aux_dir_found=no
2588 if $ac_first_candidate; then
2589 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2590 else
2591 break
2592 fi
2593 fi
2594 fi
2595 done
2596 if test "$ac_aux_dir_found" = yes; then
2597 ac_aux_dir="$as_dir"
2598 break
2599 fi
2600 ac_first_candidate=false
2601
2602 as_found=false
2603 done
2604 IFS=$as_save_IFS
2605 if $as_found
2606 then :
2607
2608 else $as_nop
2609 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2610 fi
2611
2612
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 if test -f "${ac_aux_dir}config.guess"; then
2618 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2619 fi
2620 if test -f "${ac_aux_dir}config.sub"; then
2621 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2622 fi
2623 if test -f "$ac_aux_dir/configure"; then
2624 ac_configure="$SHELL ${ac_aux_dir}configure"
2625 fi
2626
2627 # Check that the precious variables saved in the cache have kept the same
2628 # value.
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632 eval ac_new_set=\$ac_env_${ac_var}_set
2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634 eval ac_new_val=\$ac_env_${ac_var}_value
2635 case $ac_old_set,$ac_new_set in
2636 set,)
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2640 ,set)
2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2644 ,);;
2645 *)
2646 if test "x$ac_old_val" != "x$ac_new_val"; then
2647 # differences in whitespace do not lead to failure.
2648 ac_old_val_w=`echo x $ac_old_val`
2649 ac_new_val_w=`echo x $ac_new_val`
2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653 ac_cache_corrupted=:
2654 else
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657 eval $ac_var=\$ac_old_val
2658 fi
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2660 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2662 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2663 fi;;
2664 esac
2665 # Pass precious variables to config.status.
2666 if test "$ac_new_set" = set; then
2667 case $ac_new_val in
2668 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669 *) ac_arg=$ac_var=$ac_new_val ;;
2670 esac
2671 case " $ac_configure_args " in
2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2674 esac
2675 fi
2676 done
2677 if $ac_cache_corrupted; then
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2682 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2683 and start over" "$LINENO" 5
2684 fi
2685 ## -------------------- ##
2686 ## Main body of script. ##
2687 ## -------------------- ##
2688
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694
2695
2696
2697
2698 ac_config_headers="$ac_config_headers config.h"
2699
2700
2701
2702
2703
2704 # Initialize Automake
2705 am__api_version='1.16'
2706
2707
2708
2709 # Find a good install program. We prefer a C program (faster),
2710 # so one script is as good as another. But avoid the broken or
2711 # incompatible versions:
2712 # SysV /etc/install, /usr/sbin/install
2713 # SunOS /usr/etc/install
2714 # IRIX /sbin/install
2715 # AIX /bin/install
2716 # AmigaOS /C/install, which installs bootblocks on floppy discs
2717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2720 # OS/2's system install, which has a completely different semantic
2721 # ./install, which can be erroneously created by make from ./install.sh.
2722 # Reject install programs that cannot install multiple files.
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2724 printf %s "checking for a BSD-compatible install... " >&6; }
2725 if test -z "$INSTALL"; then
2726 if test ${ac_cv_path_install+y}
2727 then :
2728 printf %s "(cached) " >&6
2729 else $as_nop
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 case $as_dir in #(((
2735 '') as_dir=./ ;;
2736 */) ;;
2737 *) as_dir=$as_dir/ ;;
2738 esac
2739 # Account for fact that we put trailing slashes in our PATH walk.
2740 case $as_dir in #((
2741 ./ | /[cC]/* | \
2742 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2743 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2744 /usr/ucb/* ) ;;
2745 *)
2746 # OSF1 and SCO ODT 3.0 have their own names for install.
2747 # Don't use installbsd from OSF since it installs stuff as root
2748 # by default.
2749 for ac_prog in ginstall scoinst install; do
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2752 if test $ac_prog = install &&
2753 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2754 # AIX install. It has an incompatible calling convention.
2755 :
2756 elif test $ac_prog = install &&
2757 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2758 # program-specific install script used by HP pwplus--don't use.
2759 :
2760 else
2761 rm -rf conftest.one conftest.two conftest.dir
2762 echo one > conftest.one
2763 echo two > conftest.two
2764 mkdir conftest.dir
2765 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2766 test -s conftest.one && test -s conftest.two &&
2767 test -s conftest.dir/conftest.one &&
2768 test -s conftest.dir/conftest.two
2769 then
2770 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2771 break 3
2772 fi
2773 fi
2774 fi
2775 done
2776 done
2777 ;;
2778 esac
2779
2780 done
2781 IFS=$as_save_IFS
2782
2783 rm -rf conftest.one conftest.two conftest.dir
2784
2785 fi
2786 if test ${ac_cv_path_install+y}; then
2787 INSTALL=$ac_cv_path_install
2788 else
2789 # As a last resort, use the slow shell script. Don't cache a
2790 # value for INSTALL within a source directory, because that will
2791 # break other packages using the cache if that directory is
2792 # removed, or if the value is a relative name.
2793 INSTALL=$ac_install_sh
2794 fi
2795 fi
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2797 printf "%s\n" "$INSTALL" >&6; }
2798
2799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2800 # It thinks the first close brace ends the variable substitution.
2801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2802
2803 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2804
2805 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2806
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2808 printf %s "checking whether build environment is sane... " >&6; }
2809 # Reject unsafe characters in $srcdir or the absolute working directory
2810 # name. Accept space and tab only in the latter.
2811 am_lf='
2812 '
2813 case `pwd` in
2814 *[\\\"\#\$\&\'\`$am_lf]*)
2815 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2816 esac
2817 case $srcdir in
2818 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2819 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2820 esac
2821
2822 # Do 'set' in a subshell so we don't clobber the current shell's
2823 # arguments. Must try -L first in case configure is actually a
2824 # symlink; some systems play weird games with the mod time of symlinks
2825 # (eg FreeBSD returns the mod time of the symlink's containing
2826 # directory).
2827 if (
2828 am_has_slept=no
2829 for am_try in 1 2; do
2830 echo "timestamp, slept: $am_has_slept" > conftest.file
2831 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2832 if test "$*" = "X"; then
2833 # -L didn't work.
2834 set X `ls -t "$srcdir/configure" conftest.file`
2835 fi
2836 if test "$*" != "X $srcdir/configure conftest.file" \
2837 && test "$*" != "X conftest.file $srcdir/configure"; then
2838
2839 # If neither matched, then we have a broken ls. This can happen
2840 # if, for instance, CONFIG_SHELL is bash and it inherits a
2841 # broken ls alias from the environment. This has actually
2842 # happened. Such a system could not be considered "sane".
2843 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2844 alias in your environment" "$LINENO" 5
2845 fi
2846 if test "$2" = conftest.file || test $am_try -eq 2; then
2847 break
2848 fi
2849 # Just in case.
2850 sleep 1
2851 am_has_slept=yes
2852 done
2853 test "$2" = conftest.file
2854 )
2855 then
2856 # Ok.
2857 :
2858 else
2859 as_fn_error $? "newly created file is older than distributed files!
2860 Check your system clock" "$LINENO" 5
2861 fi
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 printf "%s\n" "yes" >&6; }
2864 # If we didn't sleep, we still need to ensure time stamps of config.status and
2865 # generated files are strictly newer.
2866 am_sleep_pid=
2867 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2868 ( sleep 1 ) &
2869 am_sleep_pid=$!
2870 fi
2871
2872 rm -f conftest.file
2873
2874 test "$program_prefix" != NONE &&
2875 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2876 # Use a double $ so make ignores it.
2877 test "$program_suffix" != NONE &&
2878 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2879 # Double any \ or $.
2880 # By default was `s,x,x', remove it if useless.
2881 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2882 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2883
2884
2885 # Expand $ac_aux_dir to an absolute path.
2886 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2887
2888
2889 if test x"${MISSING+set}" != xset; then
2890 MISSING="\${SHELL} '$am_aux_dir/missing'"
2891 fi
2892 # Use eval to expand $SHELL
2893 if eval "$MISSING --is-lightweight"; then
2894 am_missing_run="$MISSING "
2895 else
2896 am_missing_run=
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2898 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2899 fi
2900
2901 if test x"${install_sh+set}" != xset; then
2902 case $am_aux_dir in
2903 *\ * | *\ *)
2904 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2905 *)
2906 install_sh="\${SHELL} $am_aux_dir/install-sh"
2907 esac
2908 fi
2909
2910 # Installed binaries are usually stripped using 'strip' when the user
2911 # run "make install-strip". However 'strip' might not be the right
2912 # tool to use in cross-compilation environments, therefore Automake
2913 # will honor the 'STRIP' environment variable to overrule this program.
2914 if test "$cross_compiling" != no; then
2915 if test -n "$ac_tool_prefix"; then
2916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2917 set dummy ${ac_tool_prefix}strip; ac_word=$2
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 printf %s "checking for $ac_word... " >&6; }
2920 if test ${ac_cv_prog_STRIP+y}
2921 then :
2922 printf %s "(cached) " >&6
2923 else $as_nop
2924 if test -n "$STRIP"; then
2925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 case $as_dir in #(((
2932 '') as_dir=./ ;;
2933 */) ;;
2934 *) as_dir=$as_dir/ ;;
2935 esac
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 STRIP=$ac_cv_prog_STRIP
2949 if test -n "$STRIP"; then
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2951 printf "%s\n" "$STRIP" >&6; }
2952 else
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 printf "%s\n" "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$ac_cv_prog_STRIP"; then
2960 ac_ct_STRIP=$STRIP
2961 # Extract the first word of "strip", so it can be a program name with args.
2962 set dummy strip; ac_word=$2
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 printf %s "checking for $ac_word... " >&6; }
2965 if test ${ac_cv_prog_ac_ct_STRIP+y}
2966 then :
2967 printf %s "(cached) " >&6
2968 else $as_nop
2969 if test -n "$ac_ct_STRIP"; then
2970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 case $as_dir in #(((
2977 '') as_dir=./ ;;
2978 */) ;;
2979 *) as_dir=$as_dir/ ;;
2980 esac
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_ac_ct_STRIP="strip"
2984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994 if test -n "$ac_ct_STRIP"; then
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2996 printf "%s\n" "$ac_ct_STRIP" >&6; }
2997 else
2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 printf "%s\n" "no" >&6; }
3000 fi
3001
3002 if test "x$ac_ct_STRIP" = x; then
3003 STRIP=":"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 STRIP=$ac_ct_STRIP
3012 fi
3013 else
3014 STRIP="$ac_cv_prog_STRIP"
3015 fi
3016
3017 fi
3018 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3022 printf %s "checking for a race-free mkdir -p... " >&6; }
3023 if test -z "$MKDIR_P"; then
3024 if test ${ac_cv_path_mkdir+y}
3025 then :
3026 printf %s "(cached) " >&6
3027 else $as_nop
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3030 do
3031 IFS=$as_save_IFS
3032 case $as_dir in #(((
3033 '') as_dir=./ ;;
3034 */) ;;
3035 *) as_dir=$as_dir/ ;;
3036 esac
3037 for ac_prog in mkdir gmkdir; do
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3040 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3041 'mkdir ('*'coreutils) '* | \
3042 'BusyBox '* | \
3043 'mkdir (fileutils) '4.1*)
3044 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3045 break 3;;
3046 esac
3047 done
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053
3054 test -d ./--version && rmdir ./--version
3055 if test ${ac_cv_path_mkdir+y}; then
3056 MKDIR_P="$ac_cv_path_mkdir -p"
3057 else
3058 # As a last resort, use the slow shell script. Don't cache a
3059 # value for MKDIR_P within a source directory, because that will
3060 # break other packages using the cache if that directory is
3061 # removed, or if the value is a relative name.
3062 MKDIR_P="$ac_install_sh -d"
3063 fi
3064 fi
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3066 printf "%s\n" "$MKDIR_P" >&6; }
3067
3068 for ac_prog in gawk mawk nawk awk
3069 do
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 printf %s "checking for $ac_word... " >&6; }
3074 if test ${ac_cv_prog_AWK+y}
3075 then :
3076 printf %s "(cached) " >&6
3077 else $as_nop
3078 if test -n "$AWK"; then
3079 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 case $as_dir in #(((
3086 '') as_dir=./ ;;
3087 */) ;;
3088 *) as_dir=$as_dir/ ;;
3089 esac
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_AWK="$ac_prog"
3093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 AWK=$ac_cv_prog_AWK
3103 if test -n "$AWK"; then
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105 printf "%s\n" "$AWK" >&6; }
3106 else
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 printf "%s\n" "no" >&6; }
3109 fi
3110
3111
3112 test -n "$AWK" && break
3113 done
3114
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117 set x ${MAKE-make}
3118 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3120 then :
3121 printf %s "(cached) " >&6
3122 else $as_nop
3123 cat >conftest.make <<\_ACEOF
3124 SHELL = /bin/sh
3125 all:
3126 @echo '@@@%%%=$(MAKE)=@@@%%%'
3127 _ACEOF
3128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3129 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3130 *@@@%%%=?*=@@@%%%*)
3131 eval ac_cv_prog_make_${ac_make}_set=yes;;
3132 *)
3133 eval ac_cv_prog_make_${ac_make}_set=no;;
3134 esac
3135 rm -f conftest.make
3136 fi
3137 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 printf "%s\n" "yes" >&6; }
3140 SET_MAKE=
3141 else
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 printf "%s\n" "no" >&6; }
3144 SET_MAKE="MAKE=${MAKE-make}"
3145 fi
3146
3147 rm -rf .tst 2>/dev/null
3148 mkdir .tst 2>/dev/null
3149 if test -d .tst; then
3150 am__leading_dot=.
3151 else
3152 am__leading_dot=_
3153 fi
3154 rmdir .tst 2>/dev/null
3155
3156 # Check whether --enable-silent-rules was given.
3157 if test ${enable_silent_rules+y}
3158 then :
3159 enableval=$enable_silent_rules;
3160 fi
3161
3162 case $enable_silent_rules in # (((
3163 yes) AM_DEFAULT_VERBOSITY=0;;
3164 no) AM_DEFAULT_VERBOSITY=1;;
3165 *) AM_DEFAULT_VERBOSITY=1;;
3166 esac
3167 am_make=${MAKE-make}
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3169 printf %s "checking whether $am_make supports nested variables... " >&6; }
3170 if test ${am_cv_make_support_nested_variables+y}
3171 then :
3172 printf %s "(cached) " >&6
3173 else $as_nop
3174 if printf "%s\n" 'TRUE=$(BAR$(V))
3175 BAR0=false
3176 BAR1=true
3177 V=1
3178 am__doit:
3179 @$(TRUE)
3180 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3181 am_cv_make_support_nested_variables=yes
3182 else
3183 am_cv_make_support_nested_variables=no
3184 fi
3185 fi
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3187 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3188 if test $am_cv_make_support_nested_variables = yes; then
3189 AM_V='$(V)'
3190 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3191 else
3192 AM_V=$AM_DEFAULT_VERBOSITY
3193 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3194 fi
3195 AM_BACKSLASH='\'
3196
3197 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3198 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3199 # is not polluted with repeated "-I."
3200 am__isrc=' -I$(srcdir)'
3201 # test to see if srcdir already configured
3202 if test -f $srcdir/config.status; then
3203 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3204 fi
3205 fi
3206
3207 # test whether we have cygpath
3208 if test -z "$CYGPATH_W"; then
3209 if (cygpath --version) >/dev/null 2>/dev/null; then
3210 CYGPATH_W='cygpath -w'
3211 else
3212 CYGPATH_W=echo
3213 fi
3214 fi
3215
3216
3217 # Define the identity of the package.
3218 PACKAGE='xf86-video-ati'
3219 VERSION='22.0.0'
3220
3221
3222 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3223
3224
3225 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3226
3227 # Some tools Automake needs.
3228
3229 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3230
3231
3232 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3233
3234
3235 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3236
3237
3238 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3239
3240
3241 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3242
3243 # For better backward compatibility. To be removed once Automake 1.9.x
3244 # dies out for good. For more background, see:
3245 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3246 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3247 mkdir_p='$(MKDIR_P)'
3248
3249 # We need awk for the "check" target (and possibly the TAP driver). The
3250 # system "awk" is bad on some platforms.
3251 # Always define AMTAR for backward compatibility. Yes, it's still used
3252 # in the wild :-( We should find a proper way to deprecate it ...
3253 AMTAR='$${TAR-tar}'
3254
3255
3256 # We'll loop over all known methods to create a tar archive until one works.
3257 _am_tools='gnutar pax cpio none'
3258
3259 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3260
3261
3262
3263
3264
3265 # Variables for tags utilities; see am/tags.am
3266 if test -z "$CTAGS"; then
3267 CTAGS=ctags
3268 fi
3269
3270 if test -z "$ETAGS"; then
3271 ETAGS=etags
3272 fi
3273
3274 if test -z "$CSCOPE"; then
3275 CSCOPE=cscope
3276 fi
3277
3278
3279
3280 # POSIX will say in a future version that running "rm -f" with no argument
3281 # is OK; and we want to be able to make that assumption in our Makefile
3282 # recipes. So use an aggressive probe to check that the usage we want is
3283 # actually supported "in the wild" to an acceptable degree.
3284 # See automake bug#10828.
3285 # To make any issue more visible, cause the running configure to be aborted
3286 # by default if the 'rm' program in use doesn't match our expectations; the
3287 # user can still override this though.
3288 if rm -f && rm -fr && rm -rf; then : OK; else
3289 cat >&2 <<'END'
3290 Oops!
3291
3292 Your 'rm' program seems unable to run without file operands specified
3293 on the command line, even when the '-f' option is present. This is contrary
3294 to the behaviour of most rm programs out there, and not conforming with
3295 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3296
3297 Please tell bug-automake@gnu.org about your system, including the value
3298 of your $PATH and any error possibly output before this message. This
3299 can help us improve future automake versions.
3300
3301 END
3302 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3303 echo 'Configuration will proceed anyway, since you have set the' >&2
3304 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3305 echo >&2
3306 else
3307 cat >&2 <<'END'
3308 Aborting the configuration process, to ensure you take notice of the issue.
3309
3310 You can download and install GNU coreutils to get an 'rm' implementation
3311 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3312
3313 If you want to complete the configuration process using your problematic
3314 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3315 to "yes", and re-run configure.
3316
3317 END
3318 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3319 fi
3320 fi
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331 DEPDIR="${am__leading_dot}deps"
3332
3333 ac_config_commands="$ac_config_commands depfiles"
3334
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3336 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3337 cat > confinc.mk << 'END'
3338 am__doit:
3339 @echo this is the am__doit target >confinc.out
3340 .PHONY: am__doit
3341 END
3342 am__include="#"
3343 am__quote=
3344 # BSD make does it like this.
3345 echo '.include "confinc.mk" # ignored' > confmf.BSD
3346 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3347 echo 'include confinc.mk # ignored' > confmf.GNU
3348 _am_result=no
3349 for s in GNU BSD; do
3350 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3351 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 case $?:`cat confinc.out 2>/dev/null` in #(
3356 '0:this is the am__doit target') :
3357 case $s in #(
3358 BSD) :
3359 am__include='.include' am__quote='"' ;; #(
3360 *) :
3361 am__include='include' am__quote='' ;;
3362 esac ;; #(
3363 *) :
3364 ;;
3365 esac
3366 if test "$am__include" != "#"; then
3367 _am_result="yes ($s style)"
3368 break
3369 fi
3370 done
3371 rm -f confinc.* confmf.*
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3373 printf "%s\n" "${_am_result}" >&6; }
3374
3375 # Check whether --enable-dependency-tracking was given.
3376 if test ${enable_dependency_tracking+y}
3377 then :
3378 enableval=$enable_dependency_tracking;
3379 fi
3380
3381 if test "x$enable_dependency_tracking" != xno; then
3382 am_depcomp="$ac_aux_dir/depcomp"
3383 AMDEPBACKSLASH='\'
3384 am__nodep='_no'
3385 fi
3386 if test "x$enable_dependency_tracking" != xno; then
3387 AMDEP_TRUE=
3388 AMDEP_FALSE='#'
3389 else
3390 AMDEP_TRUE='#'
3391 AMDEP_FALSE=
3392 fi
3393
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 printf %s "checking for $ac_word... " >&6; }
3405 if test ${ac_cv_prog_CC+y}
3406 then :
3407 printf %s "(cached) " >&6
3408 else $as_nop
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415 IFS=$as_save_IFS
3416 case $as_dir in #(((
3417 '') as_dir=./ ;;
3418 */) ;;
3419 *) as_dir=$as_dir/ ;;
3420 esac
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427 done
3428 done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 printf "%s\n" "$CC" >&6; }
3437 else
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 printf "%s\n" "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$ac_cv_prog_CC"; then
3445 ac_ct_CC=$CC
3446 # Extract the first word of "gcc", so it can be a program name with args.
3447 set dummy gcc; ac_word=$2
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 printf %s "checking for $ac_word... " >&6; }
3450 if test ${ac_cv_prog_ac_ct_CC+y}
3451 then :
3452 printf %s "(cached) " >&6
3453 else $as_nop
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3459 do
3460 IFS=$as_save_IFS
3461 case $as_dir in #(((
3462 '') as_dir=./ ;;
3463 */) ;;
3464 *) as_dir=$as_dir/ ;;
3465 esac
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_ac_ct_CC="gcc"
3469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3479 if test -n "$ac_ct_CC"; then
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3481 printf "%s\n" "$ac_ct_CC" >&6; }
3482 else
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 printf "%s\n" "no" >&6; }
3485 fi
3486
3487 if test "x$ac_ct_CC" = x; then
3488 CC=""
3489 else
3490 case $cross_compiling:$ac_tool_warned in
3491 yes:)
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494 ac_tool_warned=yes ;;
3495 esac
3496 CC=$ac_ct_CC
3497 fi
3498 else
3499 CC="$ac_cv_prog_CC"
3500 fi
3501
3502 if test -z "$CC"; then
3503 if test -n "$ac_tool_prefix"; then
3504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3505 set dummy ${ac_tool_prefix}cc; ac_word=$2
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 printf %s "checking for $ac_word... " >&6; }
3508 if test ${ac_cv_prog_CC+y}
3509 then :
3510 printf %s "(cached) " >&6
3511 else $as_nop
3512 if test -n "$CC"; then
3513 ac_cv_prog_CC="$CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 case $as_dir in #(((
3520 '') as_dir=./ ;;
3521 */) ;;
3522 *) as_dir=$as_dir/ ;;
3523 esac
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_CC="${ac_tool_prefix}cc"
3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 CC=$ac_cv_prog_CC
3537 if test -n "$CC"; then
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 printf "%s\n" "$CC" >&6; }
3540 else
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 printf "%s\n" "no" >&6; }
3543 fi
3544
3545
3546 fi
3547 fi
3548 if test -z "$CC"; then
3549 # Extract the first word of "cc", so it can be a program name with args.
3550 set dummy cc; ac_word=$2
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 printf %s "checking for $ac_word... " >&6; }
3553 if test ${ac_cv_prog_CC+y}
3554 then :
3555 printf %s "(cached) " >&6
3556 else $as_nop
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 else
3560 ac_prog_rejected=no
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 case $as_dir in #(((
3566 '') as_dir=./ ;;
3567 */) ;;
3568 *) as_dir=$as_dir/ ;;
3569 esac
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3572 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3573 ac_prog_rejected=yes
3574 continue
3575 fi
3576 ac_cv_prog_CC="cc"
3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 if test $ac_prog_rejected = yes; then
3585 # We found a bogon in the path, so make sure we never use it.
3586 set dummy $ac_cv_prog_CC
3587 shift
3588 if test $# != 0; then
3589 # We chose a different compiler from the bogus one.
3590 # However, it has the same basename, so the bogon will be chosen
3591 # first if we set CC to just the basename; use the full file name.
3592 shift
3593 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3594 fi
3595 fi
3596 fi
3597 fi
3598 CC=$ac_cv_prog_CC
3599 if test -n "$CC"; then
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 printf "%s\n" "$CC" >&6; }
3602 else
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 printf "%s\n" "no" >&6; }
3605 fi
3606
3607
3608 fi
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 for ac_prog in cl.exe
3612 do
3613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 printf %s "checking for $ac_word... " >&6; }
3617 if test ${ac_cv_prog_CC+y}
3618 then :
3619 printf %s "(cached) " >&6
3620 else $as_nop
3621 if test -n "$CC"; then
3622 ac_cv_prog_CC="$CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627 IFS=$as_save_IFS
3628 case $as_dir in #(((
3629 '') as_dir=./ ;;
3630 */) ;;
3631 *) as_dir=$as_dir/ ;;
3632 esac
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639 done
3640 done
3641 IFS=$as_save_IFS
3642
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 printf "%s\n" "$CC" >&6; }
3649 else
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 printf "%s\n" "no" >&6; }
3652 fi
3653
3654
3655 test -n "$CC" && break
3656 done
3657 fi
3658 if test -z "$CC"; then
3659 ac_ct_CC=$CC
3660 for ac_prog in cl.exe
3661 do
3662 # Extract the first word of "$ac_prog", so it can be a program name with args.
3663 set dummy $ac_prog; ac_word=$2
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 printf %s "checking for $ac_word... " >&6; }
3666 if test ${ac_cv_prog_ac_ct_CC+y}
3667 then :
3668 printf %s "(cached) " >&6
3669 else $as_nop
3670 if test -n "$ac_ct_CC"; then
3671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676 IFS=$as_save_IFS
3677 case $as_dir in #(((
3678 '') as_dir=./ ;;
3679 */) ;;
3680 *) as_dir=$as_dir/ ;;
3681 esac
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_ac_ct_CC="$ac_prog"
3685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3686 break 2
3687 fi
3688 done
3689 done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 printf "%s\n" "$ac_ct_CC" >&6; }
3698 else
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 printf "%s\n" "no" >&6; }
3701 fi
3702
3703
3704 test -n "$ac_ct_CC" && break
3705 done
3706
3707 if test "x$ac_ct_CC" = x; then
3708 CC=""
3709 else
3710 case $cross_compiling:$ac_tool_warned in
3711 yes:)
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned=yes ;;
3715 esac
3716 CC=$ac_ct_CC
3717 fi
3718 fi
3719
3720 fi
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}clang; ac_word=$2
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 printf %s "checking for $ac_word... " >&6; }
3727 if test ${ac_cv_prog_CC+y}
3728 then :
3729 printf %s "(cached) " >&6
3730 else $as_nop
3731 if test -n "$CC"; then
3732 ac_cv_prog_CC="$CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 case $as_dir in #(((
3739 '') as_dir=./ ;;
3740 */) ;;
3741 *) as_dir=$as_dir/ ;;
3742 esac
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CC="${ac_tool_prefix}clang"
3746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749 done
3750 done
3751 IFS=$as_save_IFS
3752
3753 fi
3754 fi
3755 CC=$ac_cv_prog_CC
3756 if test -n "$CC"; then
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 printf "%s\n" "$CC" >&6; }
3759 else
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 printf "%s\n" "no" >&6; }
3762 fi
3763
3764
3765 fi
3766 if test -z "$ac_cv_prog_CC"; then
3767 ac_ct_CC=$CC
3768 # Extract the first word of "clang", so it can be a program name with args.
3769 set dummy clang; ac_word=$2
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 printf %s "checking for $ac_word... " >&6; }
3772 if test ${ac_cv_prog_ac_ct_CC+y}
3773 then :
3774 printf %s "(cached) " >&6
3775 else $as_nop
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 case $as_dir in #(((
3784 '') as_dir=./ ;;
3785 */) ;;
3786 *) as_dir=$as_dir/ ;;
3787 esac
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_ac_ct_CC="clang"
3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794 done
3795 done
3796 IFS=$as_save_IFS
3797
3798 fi
3799 fi
3800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3801 if test -n "$ac_ct_CC"; then
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803 printf "%s\n" "$ac_ct_CC" >&6; }
3804 else
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 printf "%s\n" "no" >&6; }
3807 fi
3808
3809 if test "x$ac_ct_CC" = x; then
3810 CC=""
3811 else
3812 case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818 CC=$ac_ct_CC
3819 fi
3820 else
3821 CC="$ac_cv_prog_CC"
3822 fi
3823
3824 fi
3825
3826
3827 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details" "$LINENO" 5; }
3831
3832 # Provide some information about the compiler.
3833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion -version; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 printf "%s\n" "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 fi
3852 rm -f conftest.er1 conftest.err
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3856
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main (void)
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874 printf %s "checking whether the C compiler works... " >&6; }
3875 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3882 do
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3889
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 printf "%s\n" "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }
3901 then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3906 # Autoconf.
3907 for ac_file in $ac_files ''
3908 do
3909 test -f "$ac_file" || continue
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912 ;;
3913 [ab].out )
3914 # We found the default executable, but exeext='' is most
3915 # certainly right.
3916 break;;
3917 *.* )
3918 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3919 then :; else
3920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 fi
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3926 # actually working.
3927 break;;
3928 * )
3929 break;;
3930 esac
3931 done
3932 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933
3934 else $as_nop
3935 ac_file=''
3936 fi
3937 if test -z "$ac_file"
3938 then :
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 printf "%s\n" "no" >&6; }
3941 printf "%s\n" "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error 77 "C compiler cannot create executables
3947 See \`config.log' for more details" "$LINENO" 5; }
3948 else $as_nop
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 printf "%s\n" "yes" >&6; }
3951 fi
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3953 printf %s "checking for C compiler default output file name... " >&6; }
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3955 printf "%s\n" "$ac_file" >&6; }
3956 ac_exeext=$ac_cv_exeext
3957
3958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3959 ac_clean_files=$ac_clean_files_save
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 printf %s "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 printf "%s\n" "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }
3973 then :
3974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3976 # work properly (i.e., refer to `conftest.exe'), while it won't with
3977 # `rm'.
3978 for ac_file in conftest.exe conftest conftest.*; do
3979 test -f "$ac_file" || continue
3980 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983 break;;
3984 * ) break;;
3985 esac
3986 done
3987 else $as_nop
3988 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3991 See \`config.log' for more details" "$LINENO" 5; }
3992 fi
3993 rm -f conftest conftest$ac_cv_exeext
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995 printf "%s\n" "$ac_cv_exeext" >&6; }
3996
3997 rm -f conftest.$ac_ext
3998 EXEEXT=$ac_cv_exeext
3999 ac_exeext=$EXEEXT
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <stdio.h>
4003 int
4004 main (void)
4005 {
4006 FILE *f = fopen ("conftest.out", "w");
4007 return ferror (f) || fclose (f) != 0;
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 ac_clean_files="$ac_clean_files conftest.out"
4014 # Check that the compiler produces executables we can run. If not, either
4015 # the compiler is broken, or we cross compile.
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017 printf %s "checking whether we are cross compiling... " >&6; }
4018 if test "$cross_compiling" != yes; then
4019 { { ac_try="$ac_link"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 printf "%s\n" "$ac_try_echo"; } >&5
4026 (eval "$ac_link") 2>&5
4027 ac_status=$?
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }
4030 if { ac_try='./conftest$ac_cv_exeext'
4031 { { case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 printf "%s\n" "$ac_try_echo"; } >&5
4037 (eval "$ac_try") 2>&5
4038 ac_status=$?
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; }; then
4041 cross_compiling=no
4042 else
4043 if test "$cross_compiling" = maybe; then
4044 cross_compiling=yes
4045 else
4046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error 77 "cannot run C compiled programs.
4049 If you meant to cross compile, use \`--host'.
4050 See \`config.log' for more details" "$LINENO" 5; }
4051 fi
4052 fi
4053 fi
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055 printf "%s\n" "$cross_compiling" >&6; }
4056
4057 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4058 ac_clean_files=$ac_clean_files_save
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4060 printf %s "checking for suffix of object files... " >&6; }
4061 if test ${ac_cv_objext+y}
4062 then :
4063 printf %s "(cached) " >&6
4064 else $as_nop
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067
4068 int
4069 main (void)
4070 {
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 rm -f conftest.o conftest.obj
4077 if { { ac_try="$ac_compile"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 printf "%s\n" "$ac_try_echo"; } >&5
4084 (eval "$ac_compile") 2>&5
4085 ac_status=$?
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }
4088 then :
4089 for ac_file in conftest.o conftest.obj conftest.*; do
4090 test -f "$ac_file" || continue;
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 break;;
4095 esac
4096 done
4097 else $as_nop
4098 printf "%s\n" "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4103 as_fn_error $? "cannot compute suffix of object files: cannot compile
4104 See \`config.log' for more details" "$LINENO" 5; }
4105 fi
4106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4107 fi
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4109 printf "%s\n" "$ac_cv_objext" >&6; }
4110 OBJEXT=$ac_cv_objext
4111 ac_objext=$OBJEXT
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4113 printf %s "checking whether the compiler supports GNU C... " >&6; }
4114 if test ${ac_cv_c_compiler_gnu+y}
4115 then :
4116 printf %s "(cached) " >&6
4117 else $as_nop
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main (void)
4123 {
4124 #ifndef __GNUC__
4125 choke me
4126 #endif
4127
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"
4133 then :
4134 ac_compiler_gnu=yes
4135 else $as_nop
4136 ac_compiler_gnu=no
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140
4141 fi
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146 if test $ac_compiler_gnu = yes; then
4147 GCC=yes
4148 else
4149 GCC=
4150 fi
4151 ac_test_CFLAGS=${CFLAGS+y}
4152 ac_save_CFLAGS=$CFLAGS
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4154 printf %s "checking whether $CC accepts -g... " >&6; }
4155 if test ${ac_cv_prog_cc_g+y}
4156 then :
4157 printf %s "(cached) " >&6
4158 else $as_nop
4159 ac_save_c_werror_flag=$ac_c_werror_flag
4160 ac_c_werror_flag=yes
4161 ac_cv_prog_cc_g=no
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main (void)
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"
4175 then :
4176 ac_cv_prog_cc_g=yes
4177 else $as_nop
4178 CFLAGS=""
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181
4182 int
4183 main (void)
4184 {
4185
4186 ;
4187 return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"
4191 then :
4192
4193 else $as_nop
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198
4199 int
4200 main (void)
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"
4208 then :
4209 ac_cv_prog_cc_g=yes
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4216 ac_c_werror_flag=$ac_save_c_werror_flag
4217 fi
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4220 if test $ac_test_CFLAGS; then
4221 CFLAGS=$ac_save_CFLAGS
4222 elif test $ac_cv_prog_cc_g = yes; then
4223 if test "$GCC" = yes; then
4224 CFLAGS="-g -O2"
4225 else
4226 CFLAGS="-g"
4227 fi
4228 else
4229 if test "$GCC" = yes; then
4230 CFLAGS="-O2"
4231 else
4232 CFLAGS=
4233 fi
4234 fi
4235 ac_prog_cc_stdc=no
4236 if test x$ac_prog_cc_stdc = xno
4237 then :
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4239 printf %s "checking for $CC option to enable C11 features... " >&6; }
4240 if test ${ac_cv_prog_cc_c11+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else $as_nop
4244 ac_cv_prog_cc_c11=no
4245 ac_save_CC=$CC
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 $ac_c_conftest_c11_program
4249 _ACEOF
4250 for ac_arg in '' -std=gnu11
4251 do
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"
4254 then :
4255 ac_cv_prog_cc_c11=$ac_arg
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.beam
4258 test "x$ac_cv_prog_cc_c11" != "xno" && break
4259 done
4260 rm -f conftest.$ac_ext
4261 CC=$ac_save_CC
4262 fi
4263
4264 if test "x$ac_cv_prog_cc_c11" = xno
4265 then :
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267 printf "%s\n" "unsupported" >&6; }
4268 else $as_nop
4269 if test "x$ac_cv_prog_cc_c11" = x
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 printf "%s\n" "none needed" >&6; }
4273 else $as_nop
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4275 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4276 CC="$CC $ac_cv_prog_cc_c11"
4277 fi
4278 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4279 ac_prog_cc_stdc=c11
4280 fi
4281 fi
4282 if test x$ac_prog_cc_stdc = xno
4283 then :
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4285 printf %s "checking for $CC option to enable C99 features... " >&6; }
4286 if test ${ac_cv_prog_cc_c99+y}
4287 then :
4288 printf %s "(cached) " >&6
4289 else $as_nop
4290 ac_cv_prog_cc_c99=no
4291 ac_save_CC=$CC
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 $ac_c_conftest_c99_program
4295 _ACEOF
4296 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4297 do
4298 CC="$ac_save_CC $ac_arg"
4299 if ac_fn_c_try_compile "$LINENO"
4300 then :
4301 ac_cv_prog_cc_c99=$ac_arg
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext conftest.beam
4304 test "x$ac_cv_prog_cc_c99" != "xno" && break
4305 done
4306 rm -f conftest.$ac_ext
4307 CC=$ac_save_CC
4308 fi
4309
4310 if test "x$ac_cv_prog_cc_c99" = xno
4311 then :
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313 printf "%s\n" "unsupported" >&6; }
4314 else $as_nop
4315 if test "x$ac_cv_prog_cc_c99" = x
4316 then :
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318 printf "%s\n" "none needed" >&6; }
4319 else $as_nop
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4321 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4322 CC="$CC $ac_cv_prog_cc_c99"
4323 fi
4324 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4325 ac_prog_cc_stdc=c99
4326 fi
4327 fi
4328 if test x$ac_prog_cc_stdc = xno
4329 then :
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4331 printf %s "checking for $CC option to enable C89 features... " >&6; }
4332 if test ${ac_cv_prog_cc_c89+y}
4333 then :
4334 printf %s "(cached) " >&6
4335 else $as_nop
4336 ac_cv_prog_cc_c89=no
4337 ac_save_CC=$CC
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340 $ac_c_conftest_c89_program
4341 _ACEOF
4342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4343 do
4344 CC="$ac_save_CC $ac_arg"
4345 if ac_fn_c_try_compile "$LINENO"
4346 then :
4347 ac_cv_prog_cc_c89=$ac_arg
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.beam
4350 test "x$ac_cv_prog_cc_c89" != "xno" && break
4351 done
4352 rm -f conftest.$ac_ext
4353 CC=$ac_save_CC
4354 fi
4355
4356 if test "x$ac_cv_prog_cc_c89" = xno
4357 then :
4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4359 printf "%s\n" "unsupported" >&6; }
4360 else $as_nop
4361 if test "x$ac_cv_prog_cc_c89" = x
4362 then :
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4364 printf "%s\n" "none needed" >&6; }
4365 else $as_nop
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4367 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4368 CC="$CC $ac_cv_prog_cc_c89"
4369 fi
4370 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4371 ac_prog_cc_stdc=c89
4372 fi
4373 fi
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4388 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4389 if test ${am_cv_prog_cc_c_o+y}
4390 then :
4391 printf %s "(cached) " >&6
4392 else $as_nop
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395
4396 int
4397 main (void)
4398 {
4399
4400 ;
4401 return 0;
4402 }
4403 _ACEOF
4404 # Make sure it works both with $CC and with simple cc.
4405 # Following AC_PROG_CC_C_O, we do the test twice because some
4406 # compilers refuse to overwrite an existing .o file with -o,
4407 # though they will create one.
4408 am_cv_prog_cc_c_o=yes
4409 for am_i in 1 2; do
4410 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4411 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } \
4415 && test -f conftest2.$ac_objext; then
4416 : OK
4417 else
4418 am_cv_prog_cc_c_o=no
4419 break
4420 fi
4421 done
4422 rm -f core conftest*
4423 unset am_i
4424 fi
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4426 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4427 if test "$am_cv_prog_cc_c_o" != yes; then
4428 # Losing compiler, so override with the script.
4429 # FIXME: It is wrong to rewrite CC.
4430 # But if we don't then we get into trouble of one sort or another.
4431 # A longer-term fix would be to have automake use am__CC in this case,
4432 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4433 CC="$am_aux_dir/compile $CC"
4434 fi
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442 depcc="$CC" am_compiler_list=
4443
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445 printf %s "checking dependency style of $depcc... " >&6; }
4446 if test ${am_cv_CC_dependencies_compiler_type+y}
4447 then :
4448 printf %s "(cached) " >&6
4449 else $as_nop
4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451 # We make a subdir and do the tests there. Otherwise we can end up
4452 # making bogus files that we don't know about and never remove. For
4453 # instance it was reported that on HP-UX the gcc test will end up
4454 # making a dummy file named 'D' -- because '-MD' means "put the output
4455 # in D".
4456 rm -rf conftest.dir
4457 mkdir conftest.dir
4458 # Copy depcomp to subdir because otherwise we won't find it if we're
4459 # using a relative directory.
4460 cp "$am_depcomp" conftest.dir
4461 cd conftest.dir
4462 # We will build objects and dependencies in a subdirectory because
4463 # it helps to detect inapplicable dependency modes. For instance
4464 # both Tru64's cc and ICC support -MD to output dependencies as a
4465 # side effect of compilation, but ICC will put the dependencies in
4466 # the current directory while Tru64 will put them in the object
4467 # directory.
4468 mkdir sub
4469
4470 am_cv_CC_dependencies_compiler_type=none
4471 if test "$am_compiler_list" = ""; then
4472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4473 fi
4474 am__universal=false
4475 case " $depcc " in #(
4476 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4477 esac
4478
4479 for depmode in $am_compiler_list; do
4480 # Setup a source with many dependencies, because some compilers
4481 # like to wrap large dependency lists on column 80 (with \), and
4482 # we should not choose a depcomp mode which is confused by this.
4483 #
4484 # We need to recreate these files for each test, as the compiler may
4485 # overwrite some of them when testing with obscure command lines.
4486 # This happens at least with the AIX C compiler.
4487 : > sub/conftest.c
4488 for i in 1 2 3 4 5 6; do
4489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491 # Solaris 10 /bin/sh.
4492 echo '/* dummy */' > sub/conftst$i.h
4493 done
4494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495
4496 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497 # mode. It turns out that the SunPro C++ compiler does not properly
4498 # handle '-M -o', and we need to detect this. Also, some Intel
4499 # versions had trouble with output in subdirs.
4500 am__obj=sub/conftest.${OBJEXT-o}
4501 am__minus_obj="-o $am__obj"
4502 case $depmode in
4503 gcc)
4504 # This depmode causes a compiler race in universal mode.
4505 test "$am__universal" = false || continue
4506 ;;
4507 nosideeffect)
4508 # After this tag, mechanisms are not by side-effect, so they'll
4509 # only be used when explicitly requested.
4510 if test "x$enable_dependency_tracking" = xyes; then
4511 continue
4512 else
4513 break
4514 fi
4515 ;;
4516 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517 # This compiler won't grok '-c -o', but also, the minuso test has
4518 # not run yet. These depmodes are late enough in the game, and
4519 # so weak that their functioning should not be impacted.
4520 am__obj=conftest.${OBJEXT-o}
4521 am__minus_obj=
4522 ;;
4523 none) break ;;
4524 esac
4525 if depmode=$depmode \
4526 source=sub/conftest.c object=$am__obj \
4527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529 >/dev/null 2>conftest.err &&
4530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534 # icc doesn't choke on unknown options, it will just issue warnings
4535 # or remarks (even with -Werror). So we grep stderr for any message
4536 # that says an option was ignored or not supported.
4537 # When given -MP, icc 7.0 and 7.1 complain thusly:
4538 # icc: Command line warning: ignoring option '-M'; no argument required
4539 # The diagnosis changed in icc 8.0:
4540 # icc: Command line remark: option '-MP' not supported
4541 if (grep 'ignoring option' conftest.err ||
4542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543 am_cv_CC_dependencies_compiler_type=$depmode
4544 break
4545 fi
4546 fi
4547 done
4548
4549 cd ..
4550 rm -rf conftest.dir
4551 else
4552 am_cv_CC_dependencies_compiler_type=none
4553 fi
4554
4555 fi
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4557 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4559
4560 if
4561 test "x$enable_dependency_tracking" != xno \
4562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563 am__fastdepCC_TRUE=
4564 am__fastdepCC_FALSE='#'
4565 else
4566 am__fastdepCC_TRUE='#'
4567 am__fastdepCC_FALSE=
4568 fi
4569
4570
4571
4572 # Check whether --enable-largefile was given.
4573 if test ${enable_largefile+y}
4574 then :
4575 enableval=$enable_largefile;
4576 fi
4577
4578 if test "$enable_largefile" != no; then
4579
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4581 printf %s "checking for special C compiler options needed for large files... " >&6; }
4582 if test ${ac_cv_sys_largefile_CC+y}
4583 then :
4584 printf %s "(cached) " >&6
4585 else $as_nop
4586 ac_cv_sys_largefile_CC=no
4587 if test "$GCC" != yes; then
4588 ac_save_CC=$CC
4589 while :; do
4590 # IRIX 6.2 and later do not support large files by default,
4591 # so use the C compiler's -n32 option if that helps.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #include <sys/types.h>
4595 /* Check that off_t can represent 2**63 - 1 correctly.
4596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4597 since some C++ compilers masquerading as C compilers
4598 incorrectly reject 9223372036854775807. */
4599 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4601 && LARGE_OFF_T % 2147483647 == 1)
4602 ? 1 : -1];
4603 int
4604 main (void)
4605 {
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"
4612 then :
4613 break
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam
4616 CC="$CC -n32"
4617 if ac_fn_c_try_compile "$LINENO"
4618 then :
4619 ac_cv_sys_largefile_CC=' -n32'; break
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.beam
4622 break
4623 done
4624 CC=$ac_save_CC
4625 rm -f conftest.$ac_ext
4626 fi
4627 fi
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4629 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4630 if test "$ac_cv_sys_largefile_CC" != no; then
4631 CC=$CC$ac_cv_sys_largefile_CC
4632 fi
4633
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4635 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4636 if test ${ac_cv_sys_file_offset_bits+y}
4637 then :
4638 printf %s "(cached) " >&6
4639 else $as_nop
4640 while :; do
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <sys/types.h>
4644 /* Check that off_t can represent 2**63 - 1 correctly.
4645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4646 since some C++ compilers masquerading as C compilers
4647 incorrectly reject 9223372036854775807. */
4648 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4650 && LARGE_OFF_T % 2147483647 == 1)
4651 ? 1 : -1];
4652 int
4653 main (void)
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"
4661 then :
4662 ac_cv_sys_file_offset_bits=no; break
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #define _FILE_OFFSET_BITS 64
4668 #include <sys/types.h>
4669 /* Check that off_t can represent 2**63 - 1 correctly.
4670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4671 since some C++ compilers masquerading as C compilers
4672 incorrectly reject 9223372036854775807. */
4673 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4675 && LARGE_OFF_T % 2147483647 == 1)
4676 ? 1 : -1];
4677 int
4678 main (void)
4679 {
4680
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_compile "$LINENO"
4686 then :
4687 ac_cv_sys_file_offset_bits=64; break
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4690 ac_cv_sys_file_offset_bits=unknown
4691 break
4692 done
4693 fi
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4695 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4696 case $ac_cv_sys_file_offset_bits in #(
4697 no | unknown) ;;
4698 *)
4699 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4700 ;;
4701 esac
4702 rm -rf conftest*
4703 if test $ac_cv_sys_file_offset_bits = unknown; then
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4705 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4706 if test ${ac_cv_sys_large_files+y}
4707 then :
4708 printf %s "(cached) " >&6
4709 else $as_nop
4710 while :; do
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <sys/types.h>
4714 /* Check that off_t can represent 2**63 - 1 correctly.
4715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4716 since some C++ compilers masquerading as C compilers
4717 incorrectly reject 9223372036854775807. */
4718 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4720 && LARGE_OFF_T % 2147483647 == 1)
4721 ? 1 : -1];
4722 int
4723 main (void)
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"
4731 then :
4732 ac_cv_sys_large_files=no; break
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #define _LARGE_FILES 1
4738 #include <sys/types.h>
4739 /* Check that off_t can represent 2**63 - 1 correctly.
4740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4741 since some C++ compilers masquerading as C compilers
4742 incorrectly reject 9223372036854775807. */
4743 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4745 && LARGE_OFF_T % 2147483647 == 1)
4746 ? 1 : -1];
4747 int
4748 main (void)
4749 {
4750
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"
4756 then :
4757 ac_cv_sys_large_files=1; break
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4760 ac_cv_sys_large_files=unknown
4761 break
4762 done
4763 fi
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4765 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4766 case $ac_cv_sys_large_files in #(
4767 no | unknown) ;;
4768 *)
4769 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4770 ;;
4771 esac
4772 rm -rf conftest*
4773 fi
4774 fi
4775
4776
4777 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4790 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4791 if test ${ac_cv_c_undeclared_builtin_options+y}
4792 then :
4793 printf %s "(cached) " >&6
4794 else $as_nop
4795 ac_save_CFLAGS=$CFLAGS
4796 ac_cv_c_undeclared_builtin_options='cannot detect'
4797 for ac_arg in '' -fno-builtin; do
4798 CFLAGS="$ac_save_CFLAGS $ac_arg"
4799 # This test program should *not* compile successfully.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802
4803 int
4804 main (void)
4805 {
4806 (void) strchr;
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"
4812 then :
4813
4814 else $as_nop
4815 # This test program should compile successfully.
4816 # No library function is consistently available on
4817 # freestanding implementations, so test against a dummy
4818 # declaration. Include always-available headers on the
4819 # off chance that they somehow elicit warnings.
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <float.h>
4823 #include <limits.h>
4824 #include <stdarg.h>
4825 #include <stddef.h>
4826 extern void ac_decl (int, char *);
4827
4828 int
4829 main (void)
4830 {
4831 (void) ac_decl (0, (char *) 0);
4832 (void) ac_decl;
4833
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"
4839 then :
4840 if test x"$ac_arg" = x
4841 then :
4842 ac_cv_c_undeclared_builtin_options='none needed'
4843 else $as_nop
4844 ac_cv_c_undeclared_builtin_options=$ac_arg
4845 fi
4846 break
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4851 done
4852 CFLAGS=$ac_save_CFLAGS
4853
4854 fi
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4856 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4857 case $ac_cv_c_undeclared_builtin_options in #(
4858 'cannot detect') :
4859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4860 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4861 as_fn_error $? "cannot make $CC report undeclared builtins
4862 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4863 'none needed') :
4864 ac_c_undeclared_builtin_options='' ;; #(
4865 *) :
4866 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4867 esac
4868
4869 ac_header= ac_cache=
4870 for ac_item in $ac_header_c_list
4871 do
4872 if test $ac_cache; then
4873 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4874 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4875 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4876 fi
4877 ac_header= ac_cache=
4878 elif test $ac_header; then
4879 ac_cache=$ac_item
4880 else
4881 ac_header=$ac_item
4882 fi
4883 done
4884
4885
4886
4887
4888
4889
4890
4891
4892 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4893 then :
4894
4895 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4896
4897 fi
4898
4899
4900
4901
4902 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4903 if test "x$ac_cv_have_decl___clang__" = xyes
4904 then :
4905 CLANGCC="yes"
4906 else $as_nop
4907 CLANGCC="no"
4908 fi
4909 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4910 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4911 then :
4912 INTELCC="yes"
4913 else $as_nop
4914 INTELCC="no"
4915 fi
4916 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4917 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4918 then :
4919 SUNCC="yes"
4920 else $as_nop
4921 SUNCC="no"
4922 fi
4923
4924
4925
4926
4927
4928
4929
4930
4931 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 printf %s "checking for $ac_word... " >&6; }
4937 if test ${ac_cv_path_PKG_CONFIG+y}
4938 then :
4939 printf %s "(cached) " >&6
4940 else $as_nop
4941 case $PKG_CONFIG in
4942 [\\/]* | ?:[\\/]*)
4943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4944 ;;
4945 *)
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 case $as_dir in #(((
4951 '') as_dir=./ ;;
4952 */) ;;
4953 *) as_dir=$as_dir/ ;;
4954 esac
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4957 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961 done
4962 done
4963 IFS=$as_save_IFS
4964
4965 ;;
4966 esac
4967 fi
4968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4969 if test -n "$PKG_CONFIG"; then
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4971 printf "%s\n" "$PKG_CONFIG" >&6; }
4972 else
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 printf "%s\n" "no" >&6; }
4975 fi
4976
4977
4978 fi
4979 if test -z "$ac_cv_path_PKG_CONFIG"; then
4980 ac_pt_PKG_CONFIG=$PKG_CONFIG
4981 # Extract the first word of "pkg-config", so it can be a program name with args.
4982 set dummy pkg-config; ac_word=$2
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 printf %s "checking for $ac_word... " >&6; }
4985 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4986 then :
4987 printf %s "(cached) " >&6
4988 else $as_nop
4989 case $ac_pt_PKG_CONFIG in
4990 [\\/]* | ?:[\\/]*)
4991 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4992 ;;
4993 *)
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997 IFS=$as_save_IFS
4998 case $as_dir in #(((
4999 '') as_dir=./ ;;
5000 */) ;;
5001 *) as_dir=$as_dir/ ;;
5002 esac
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5005 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 ;;
5014 esac
5015 fi
5016 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5017 if test -n "$ac_pt_PKG_CONFIG"; then
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5019 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5020 else
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 printf "%s\n" "no" >&6; }
5023 fi
5024
5025 if test "x$ac_pt_PKG_CONFIG" = x; then
5026 PKG_CONFIG=""
5027 else
5028 case $cross_compiling:$ac_tool_warned in
5029 yes:)
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032 ac_tool_warned=yes ;;
5033 esac
5034 PKG_CONFIG=$ac_pt_PKG_CONFIG
5035 fi
5036 else
5037 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5038 fi
5039
5040 fi
5041 if test -n "$PKG_CONFIG"; then
5042 _pkg_min_version=0.9.0
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5044 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5045 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 printf "%s\n" "yes" >&6; }
5048 else
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 printf "%s\n" "no" >&6; }
5051 PKG_CONFIG=""
5052 fi
5053 fi
5054
5055
5056 # Make sure we can run config.sub.
5057 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5058 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5059
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5061 printf %s "checking build system type... " >&6; }
5062 if test ${ac_cv_build+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 ac_build_alias=$build_alias
5067 test "x$ac_build_alias" = x &&
5068 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5069 test "x$ac_build_alias" = x &&
5070 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5071 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5072 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5073
5074 fi
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5076 printf "%s\n" "$ac_cv_build" >&6; }
5077 case $ac_cv_build in
5078 *-*-*) ;;
5079 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5080 esac
5081 build=$ac_cv_build
5082 ac_save_IFS=$IFS; IFS='-'
5083 set x $ac_cv_build
5084 shift
5085 build_cpu=$1
5086 build_vendor=$2
5087 shift; shift
5088 # Remember, the first character of IFS is used to create $*,
5089 # except with old shells:
5090 build_os=$*
5091 IFS=$ac_save_IFS
5092 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5093
5094
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5096 printf %s "checking host system type... " >&6; }
5097 if test ${ac_cv_host+y}
5098 then :
5099 printf %s "(cached) " >&6
5100 else $as_nop
5101 if test "x$host_alias" = x; then
5102 ac_cv_host=$ac_cv_build
5103 else
5104 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5105 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5106 fi
5107
5108 fi
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5110 printf "%s\n" "$ac_cv_host" >&6; }
5111 case $ac_cv_host in
5112 *-*-*) ;;
5113 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5114 esac
5115 host=$ac_cv_host
5116 ac_save_IFS=$IFS; IFS='-'
5117 set x $ac_cv_host
5118 shift
5119 host_cpu=$1
5120 host_vendor=$2
5121 shift; shift
5122 # Remember, the first character of IFS is used to create $*,
5123 # except with old shells:
5124 host_os=$*
5125 IFS=$ac_save_IFS
5126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5127
5128
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5130 printf %s "checking for a sed that does not truncate output... " >&6; }
5131 if test ${ac_cv_path_SED+y}
5132 then :
5133 printf %s "(cached) " >&6
5134 else $as_nop
5135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5136 for ac_i in 1 2 3 4 5 6 7; do
5137 ac_script="$ac_script$as_nl$ac_script"
5138 done
5139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5140 { ac_script=; unset ac_script;}
5141 if test -z "$SED"; then
5142 ac_path_SED_found=false
5143 # Loop through the user's path and test for each of PROGNAME-LIST
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 case $as_dir in #(((
5149 '') as_dir=./ ;;
5150 */) ;;
5151 *) as_dir=$as_dir/ ;;
5152 esac
5153 for ac_prog in sed gsed
5154 do
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5157 as_fn_executable_p "$ac_path_SED" || continue
5158 # Check for GNU ac_path_SED and select it if it is found.
5159 # Check for GNU $ac_path_SED
5160 case `"$ac_path_SED" --version 2>&1` in
5161 *GNU*)
5162 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5163 *)
5164 ac_count=0
5165 printf %s 0123456789 >"conftest.in"
5166 while :
5167 do
5168 cat "conftest.in" "conftest.in" >"conftest.tmp"
5169 mv "conftest.tmp" "conftest.in"
5170 cp "conftest.in" "conftest.nl"
5171 printf "%s\n" '' >> "conftest.nl"
5172 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174 as_fn_arith $ac_count + 1 && ac_count=$as_val
5175 if test $ac_count -gt ${ac_path_SED_max-0}; then
5176 # Best one so far, save it but keep looking for a better one
5177 ac_cv_path_SED="$ac_path_SED"
5178 ac_path_SED_max=$ac_count
5179 fi
5180 # 10*(2^10) chars as input seems more than enough
5181 test $ac_count -gt 10 && break
5182 done
5183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184 esac
5185
5186 $ac_path_SED_found && break 3
5187 done
5188 done
5189 done
5190 IFS=$as_save_IFS
5191 if test -z "$ac_cv_path_SED"; then
5192 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5193 fi
5194 else
5195 ac_cv_path_SED=$SED
5196 fi
5197
5198 fi
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5200 printf "%s\n" "$ac_cv_path_SED" >&6; }
5201 SED="$ac_cv_path_SED"
5202 rm -f conftest.sed
5203
5204
5205
5206
5207
5208
5209 # Check whether --enable-selective-werror was given.
5210 if test ${enable_selective_werror+y}
5211 then :
5212 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5213 else $as_nop
5214 SELECTIVE_WERROR=yes
5215 fi
5216
5217
5218
5219
5220
5221 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5222 if test "x$SUNCC" = "xyes"; then
5223 BASE_CFLAGS="-v"
5224 else
5225 BASE_CFLAGS=""
5226 fi
5227
5228 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5249 then :
5250 printf %s "(cached) " >&6
5251 else $as_nop
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 int i;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258 xorg_cv_cc_flag_unknown_warning_option=yes
5259 else $as_nop
5260 xorg_cv_cc_flag_unknown_warning_option=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263 fi
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267 CFLAGS="$xorg_testset_save_CFLAGS"
5268 fi
5269
5270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273 fi
5274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 int i;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"
5286 then :
5287 xorg_cv_cc_flag_unused_command_line_argument=yes
5288 else $as_nop
5289 xorg_cv_cc_flag_unused_command_line_argument=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 fi
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296 CFLAGS="$xorg_testset_save_CFLAGS"
5297 fi
5298
5299 found="no"
5300
5301 if test $found = "no" ; then
5302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304 fi
5305
5306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308 fi
5309
5310 CFLAGS="$CFLAGS -Wall"
5311
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5313 printf %s "checking if $CC supports -Wall... " >&6; }
5314 cacheid=xorg_cv_cc_flag__Wall
5315 if eval test \${$cacheid+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int i;
5322 int
5323 main (void)
5324 {
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_link "$LINENO"
5331 then :
5332 eval $cacheid=yes
5333 else $as_nop
5334 eval $cacheid=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5337 conftest$ac_exeext conftest.$ac_ext
5338 fi
5339
5340
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343 eval supported=\$$cacheid
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 printf "%s\n" "$supported" >&6; }
5346 if test "$supported" = "yes" ; then
5347 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5348 found="yes"
5349 fi
5350 fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5373 then :
5374 printf %s "(cached) " >&6
5375 else $as_nop
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 int i;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"
5381 then :
5382 xorg_cv_cc_flag_unknown_warning_option=yes
5383 else $as_nop
5384 xorg_cv_cc_flag_unknown_warning_option=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391 CFLAGS="$xorg_testset_save_CFLAGS"
5392 fi
5393
5394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 fi
5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else $as_nop
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 int i;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"
5410 then :
5411 xorg_cv_cc_flag_unused_command_line_argument=yes
5412 else $as_nop
5413 xorg_cv_cc_flag_unused_command_line_argument=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416 fi
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420 CFLAGS="$xorg_testset_save_CFLAGS"
5421 fi
5422
5423 found="no"
5424
5425 if test $found = "no" ; then
5426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428 fi
5429
5430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432 fi
5433
5434 CFLAGS="$CFLAGS -Wpointer-arith"
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5437 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5438 cacheid=xorg_cv_cc_flag__Wpointer_arith
5439 if eval test \${$cacheid+y}
5440 then :
5441 printf %s "(cached) " >&6
5442 else $as_nop
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 int i;
5446 int
5447 main (void)
5448 {
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_link "$LINENO"
5455 then :
5456 eval $cacheid=yes
5457 else $as_nop
5458 eval $cacheid=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461 conftest$ac_exeext conftest.$ac_ext
5462 fi
5463
5464
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467 eval supported=\$$cacheid
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469 printf "%s\n" "$supported" >&6; }
5470 if test "$supported" = "yes" ; then
5471 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5472 found="yes"
5473 fi
5474 fi
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 xorg_testset_save_CFLAGS="$CFLAGS"
5491
5492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5496 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5497 then :
5498 printf %s "(cached) " >&6
5499 else $as_nop
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 int i;
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"
5505 then :
5506 xorg_cv_cc_flag_unknown_warning_option=yes
5507 else $as_nop
5508 xorg_cv_cc_flag_unknown_warning_option=no
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5511 fi
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5515 CFLAGS="$xorg_testset_save_CFLAGS"
5516 fi
5517
5518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5521 fi
5522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else $as_nop
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 int i;
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"
5534 then :
5535 xorg_cv_cc_flag_unused_command_line_argument=yes
5536 else $as_nop
5537 xorg_cv_cc_flag_unused_command_line_argument=no
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5540 fi
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5544 CFLAGS="$xorg_testset_save_CFLAGS"
5545 fi
5546
5547 found="no"
5548
5549 if test $found = "no" ; then
5550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552 fi
5553
5554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5556 fi
5557
5558 CFLAGS="$CFLAGS -Wmissing-declarations"
5559
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5561 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5562 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5563 if eval test \${$cacheid+y}
5564 then :
5565 printf %s "(cached) " >&6
5566 else $as_nop
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 int i;
5570 int
5571 main (void)
5572 {
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_link "$LINENO"
5579 then :
5580 eval $cacheid=yes
5581 else $as_nop
5582 eval $cacheid=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5585 conftest$ac_exeext conftest.$ac_ext
5586 fi
5587
5588
5589 CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591 eval supported=\$$cacheid
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593 printf "%s\n" "$supported" >&6; }
5594 if test "$supported" = "yes" ; then
5595 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5596 found="yes"
5597 fi
5598 fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else $as_nop
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"
5629 then :
5630 xorg_cv_cc_flag_unknown_warning_option=yes
5631 else $as_nop
5632 xorg_cv_cc_flag_unknown_warning_option=no
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5635 fi
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5639 CFLAGS="$xorg_testset_save_CFLAGS"
5640 fi
5641
5642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5645 fi
5646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5650 then :
5651 printf %s "(cached) " >&6
5652 else $as_nop
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 int i;
5656 _ACEOF
5657 if ac_fn_c_try_compile "$LINENO"
5658 then :
5659 xorg_cv_cc_flag_unused_command_line_argument=yes
5660 else $as_nop
5661 xorg_cv_cc_flag_unused_command_line_argument=no
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5664 fi
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5668 CFLAGS="$xorg_testset_save_CFLAGS"
5669 fi
5670
5671 found="no"
5672
5673 if test $found = "no" ; then
5674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676 fi
5677
5678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680 fi
5681
5682 CFLAGS="$CFLAGS -Wformat=2"
5683
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5685 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5686 cacheid=xorg_cv_cc_flag__Wformat_2
5687 if eval test \${$cacheid+y}
5688 then :
5689 printf %s "(cached) " >&6
5690 else $as_nop
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 int i;
5694 int
5695 main (void)
5696 {
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_link "$LINENO"
5703 then :
5704 eval $cacheid=yes
5705 else $as_nop
5706 eval $cacheid=no
5707 fi
5708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5709 conftest$ac_exeext conftest.$ac_ext
5710 fi
5711
5712
5713 CFLAGS="$xorg_testset_save_CFLAGS"
5714
5715 eval supported=\$$cacheid
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5717 printf "%s\n" "$supported" >&6; }
5718 if test "$supported" = "yes" ; then
5719 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5720 found="yes"
5721 fi
5722 fi
5723
5724 if test $found = "no" ; then
5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 fi
5728
5729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731 fi
5732
5733 CFLAGS="$CFLAGS -Wformat"
5734
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5736 printf %s "checking if $CC supports -Wformat... " >&6; }
5737 cacheid=xorg_cv_cc_flag__Wformat
5738 if eval test \${$cacheid+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 int i;
5745 int
5746 main (void)
5747 {
5748
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_link "$LINENO"
5754 then :
5755 eval $cacheid=yes
5756 else $as_nop
5757 eval $cacheid=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5760 conftest$ac_exeext conftest.$ac_ext
5761 fi
5762
5763
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765
5766 eval supported=\$$cacheid
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5768 printf "%s\n" "$supported" >&6; }
5769 if test "$supported" = "yes" ; then
5770 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5771 found="yes"
5772 fi
5773 fi
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 int i;
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"
5806 then :
5807 xorg_cv_cc_flag_unknown_warning_option=yes
5808 else $as_nop
5809 xorg_cv_cc_flag_unknown_warning_option=no
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812 fi
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816 CFLAGS="$xorg_testset_save_CFLAGS"
5817 fi
5818
5819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822 fi
5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5827 then :
5828 printf %s "(cached) " >&6
5829 else $as_nop
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int i;
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"
5835 then :
5836 xorg_cv_cc_flag_unused_command_line_argument=yes
5837 else $as_nop
5838 xorg_cv_cc_flag_unused_command_line_argument=no
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5841 fi
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5846 fi
5847
5848 found="no"
5849
5850 if test $found = "no" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854
5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 fi
5858
5859 CFLAGS="$CFLAGS -Wstrict-prototypes"
5860
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5862 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5863 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5864 if eval test \${$cacheid+y}
5865 then :
5866 printf %s "(cached) " >&6
5867 else $as_nop
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 int
5872 main (void)
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"
5880 then :
5881 eval $cacheid=yes
5882 else $as_nop
5883 eval $cacheid=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886 conftest$ac_exeext conftest.$ac_ext
5887 fi
5888
5889
5890 CFLAGS="$xorg_testset_save_CFLAGS"
5891
5892 eval supported=\$$cacheid
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5894 printf "%s\n" "$supported" >&6; }
5895 if test "$supported" = "yes" ; then
5896 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5897 found="yes"
5898 fi
5899 fi
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 xorg_testset_save_CFLAGS="$CFLAGS"
5916
5917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5921 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5922 then :
5923 printf %s "(cached) " >&6
5924 else $as_nop
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 int i;
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"
5930 then :
5931 xorg_cv_cc_flag_unknown_warning_option=yes
5932 else $as_nop
5933 xorg_cv_cc_flag_unknown_warning_option=no
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936 fi
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940 CFLAGS="$xorg_testset_save_CFLAGS"
5941 fi
5942
5943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946 fi
5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5951 then :
5952 printf %s "(cached) " >&6
5953 else $as_nop
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int i;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"
5959 then :
5960 xorg_cv_cc_flag_unused_command_line_argument=yes
5961 else $as_nop
5962 xorg_cv_cc_flag_unused_command_line_argument=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965 fi
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969 CFLAGS="$xorg_testset_save_CFLAGS"
5970 fi
5971
5972 found="no"
5973
5974 if test $found = "no" ; then
5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 fi
5978
5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981 fi
5982
5983 CFLAGS="$CFLAGS -Wmissing-prototypes"
5984
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5986 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5987 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5988 if eval test \${$cacheid+y}
5989 then :
5990 printf %s "(cached) " >&6
5991 else $as_nop
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 int
5996 main (void)
5997 {
5998
5999 ;
6000 return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_link "$LINENO"
6004 then :
6005 eval $cacheid=yes
6006 else $as_nop
6007 eval $cacheid=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6010 conftest$ac_exeext conftest.$ac_ext
6011 fi
6012
6013
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016 eval supported=\$$cacheid
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018 printf "%s\n" "$supported" >&6; }
6019 if test "$supported" = "yes" ; then
6020 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6021 found="yes"
6022 fi
6023 fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6046 then :
6047 printf %s "(cached) " >&6
6048 else $as_nop
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 int i;
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"
6054 then :
6055 xorg_cv_cc_flag_unknown_warning_option=yes
6056 else $as_nop
6057 xorg_cv_cc_flag_unknown_warning_option=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 fi
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064 CFLAGS="$xorg_testset_save_CFLAGS"
6065 fi
6066
6067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070 fi
6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6075 then :
6076 printf %s "(cached) " >&6
6077 else $as_nop
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 int i;
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"
6083 then :
6084 xorg_cv_cc_flag_unused_command_line_argument=yes
6085 else $as_nop
6086 xorg_cv_cc_flag_unused_command_line_argument=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089 fi
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 found="no"
6097
6098 if test $found = "no" ; then
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105 fi
6106
6107 CFLAGS="$CFLAGS -Wnested-externs"
6108
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6110 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6111 cacheid=xorg_cv_cc_flag__Wnested_externs
6112 if eval test \${$cacheid+y}
6113 then :
6114 printf %s "(cached) " >&6
6115 else $as_nop
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 int
6120 main (void)
6121 {
6122
6123 ;
6124 return 0;
6125 }
6126 _ACEOF
6127 if ac_fn_c_try_link "$LINENO"
6128 then :
6129 eval $cacheid=yes
6130 else $as_nop
6131 eval $cacheid=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134 conftest$ac_exeext conftest.$ac_ext
6135 fi
6136
6137
6138 CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140 eval supported=\$$cacheid
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142 printf "%s\n" "$supported" >&6; }
6143 if test "$supported" = "yes" ; then
6144 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6145 found="yes"
6146 fi
6147 fi
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163 xorg_testset_save_CFLAGS="$CFLAGS"
6164
6165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6168 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6169 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6170 then :
6171 printf %s "(cached) " >&6
6172 else $as_nop
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 int i;
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"
6178 then :
6179 xorg_cv_cc_flag_unknown_warning_option=yes
6180 else $as_nop
6181 xorg_cv_cc_flag_unknown_warning_option=no
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6184 fi
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188 CFLAGS="$xorg_testset_save_CFLAGS"
6189 fi
6190
6191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194 fi
6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6199 then :
6200 printf %s "(cached) " >&6
6201 else $as_nop
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6204 int i;
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"
6207 then :
6208 xorg_cv_cc_flag_unused_command_line_argument=yes
6209 else $as_nop
6210 xorg_cv_cc_flag_unused_command_line_argument=no
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6213 fi
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6215 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6217 CFLAGS="$xorg_testset_save_CFLAGS"
6218 fi
6219
6220 found="no"
6221
6222 if test $found = "no" ; then
6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 fi
6226
6227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 fi
6230
6231 CFLAGS="$CFLAGS -Wbad-function-cast"
6232
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6234 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6235 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6236 if eval test \${$cacheid+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else $as_nop
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 int i;
6243 int
6244 main (void)
6245 {
6246
6247 ;
6248 return 0;
6249 }
6250 _ACEOF
6251 if ac_fn_c_try_link "$LINENO"
6252 then :
6253 eval $cacheid=yes
6254 else $as_nop
6255 eval $cacheid=no
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6258 conftest$ac_exeext conftest.$ac_ext
6259 fi
6260
6261
6262 CFLAGS="$xorg_testset_save_CFLAGS"
6263
6264 eval supported=\$$cacheid
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6266 printf "%s\n" "$supported" >&6; }
6267 if test "$supported" = "yes" ; then
6268 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6269 found="yes"
6270 fi
6271 fi
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 xorg_testset_save_CFLAGS="$CFLAGS"
6288
6289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6292 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6293 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6294 then :
6295 printf %s "(cached) " >&6
6296 else $as_nop
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 int i;
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"
6302 then :
6303 xorg_cv_cc_flag_unknown_warning_option=yes
6304 else $as_nop
6305 xorg_cv_cc_flag_unknown_warning_option=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6308 fi
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6310 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6312 CFLAGS="$xorg_testset_save_CFLAGS"
6313 fi
6314
6315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 fi
6319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6321 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6322 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6323 then :
6324 printf %s "(cached) " >&6
6325 else $as_nop
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 int i;
6329 _ACEOF
6330 if ac_fn_c_try_compile "$LINENO"
6331 then :
6332 xorg_cv_cc_flag_unused_command_line_argument=yes
6333 else $as_nop
6334 xorg_cv_cc_flag_unused_command_line_argument=no
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6337 fi
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6339 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6341 CFLAGS="$xorg_testset_save_CFLAGS"
6342 fi
6343
6344 found="no"
6345
6346 if test $found = "no" ; then
6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349 fi
6350
6351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353 fi
6354
6355 CFLAGS="$CFLAGS -Wold-style-definition"
6356
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6358 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6359 cacheid=xorg_cv_cc_flag__Wold_style_definition
6360 if eval test \${$cacheid+y}
6361 then :
6362 printf %s "(cached) " >&6
6363 else $as_nop
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 int i;
6367 int
6368 main (void)
6369 {
6370
6371 ;
6372 return 0;
6373 }
6374 _ACEOF
6375 if ac_fn_c_try_link "$LINENO"
6376 then :
6377 eval $cacheid=yes
6378 else $as_nop
6379 eval $cacheid=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6382 conftest$ac_exeext conftest.$ac_ext
6383 fi
6384
6385
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388 eval supported=\$$cacheid
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6390 printf "%s\n" "$supported" >&6; }
6391 if test "$supported" = "yes" ; then
6392 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6393 found="yes"
6394 fi
6395 fi
6396
6397 if test $found = "no" ; then
6398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400 fi
6401
6402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6404 fi
6405
6406 CFLAGS="$CFLAGS -fd"
6407
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6409 printf %s "checking if $CC supports -fd... " >&6; }
6410 cacheid=xorg_cv_cc_flag__fd
6411 if eval test \${$cacheid+y}
6412 then :
6413 printf %s "(cached) " >&6
6414 else $as_nop
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 int i;
6418 int
6419 main (void)
6420 {
6421
6422 ;
6423 return 0;
6424 }
6425 _ACEOF
6426 if ac_fn_c_try_link "$LINENO"
6427 then :
6428 eval $cacheid=yes
6429 else $as_nop
6430 eval $cacheid=no
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6433 conftest$ac_exeext conftest.$ac_ext
6434 fi
6435
6436
6437 CFLAGS="$xorg_testset_save_CFLAGS"
6438
6439 eval supported=\$$cacheid
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6441 printf "%s\n" "$supported" >&6; }
6442 if test "$supported" = "yes" ; then
6443 BASE_CFLAGS="$BASE_CFLAGS -fd"
6444 found="yes"
6445 fi
6446 fi
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462 xorg_testset_save_CFLAGS="$CFLAGS"
6463
6464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6468 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6469 then :
6470 printf %s "(cached) " >&6
6471 else $as_nop
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"
6477 then :
6478 xorg_cv_cc_flag_unknown_warning_option=yes
6479 else $as_nop
6480 xorg_cv_cc_flag_unknown_warning_option=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6483 fi
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6488 fi
6489
6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493 fi
6494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6498 then :
6499 printf %s "(cached) " >&6
6500 else $as_nop
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"
6506 then :
6507 xorg_cv_cc_flag_unused_command_line_argument=yes
6508 else $as_nop
6509 xorg_cv_cc_flag_unused_command_line_argument=no
6510 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6512 fi
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6516 CFLAGS="$xorg_testset_save_CFLAGS"
6517 fi
6518
6519 found="no"
6520
6521 if test $found = "no" ; then
6522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524 fi
6525
6526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6528 fi
6529
6530 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6531
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6533 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6534 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6535 if eval test \${$cacheid+y}
6536 then :
6537 printf %s "(cached) " >&6
6538 else $as_nop
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 int
6543 main (void)
6544 {
6545
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_link "$LINENO"
6551 then :
6552 eval $cacheid=yes
6553 else $as_nop
6554 eval $cacheid=no
6555 fi
6556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6557 conftest$ac_exeext conftest.$ac_ext
6558 fi
6559
6560
6561 CFLAGS="$xorg_testset_save_CFLAGS"
6562
6563 eval supported=\$$cacheid
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6565 printf "%s\n" "$supported" >&6; }
6566 if test "$supported" = "yes" ; then
6567 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6568 found="yes"
6569 fi
6570 fi
6571
6572
6573
6574
6575
6576 # This chunk adds additional warnings that could catch undesired effects.
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6597 then :
6598 printf %s "(cached) " >&6
6599 else $as_nop
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 int i;
6603 _ACEOF
6604 if ac_fn_c_try_compile "$LINENO"
6605 then :
6606 xorg_cv_cc_flag_unknown_warning_option=yes
6607 else $as_nop
6608 xorg_cv_cc_flag_unknown_warning_option=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611 fi
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615 CFLAGS="$xorg_testset_save_CFLAGS"
6616 fi
6617
6618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621 fi
6622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626 then :
6627 printf %s "(cached) " >&6
6628 else $as_nop
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int i;
6632 _ACEOF
6633 if ac_fn_c_try_compile "$LINENO"
6634 then :
6635 xorg_cv_cc_flag_unused_command_line_argument=yes
6636 else $as_nop
6637 xorg_cv_cc_flag_unused_command_line_argument=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6640 fi
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6644 CFLAGS="$xorg_testset_save_CFLAGS"
6645 fi
6646
6647 found="no"
6648
6649 if test $found = "no" ; then
6650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652 fi
6653
6654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 fi
6657
6658 CFLAGS="$CFLAGS -Wunused"
6659
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6661 printf %s "checking if $CC supports -Wunused... " >&6; }
6662 cacheid=xorg_cv_cc_flag__Wunused
6663 if eval test \${$cacheid+y}
6664 then :
6665 printf %s "(cached) " >&6
6666 else $as_nop
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 int i;
6670 int
6671 main (void)
6672 {
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_link "$LINENO"
6679 then :
6680 eval $cacheid=yes
6681 else $as_nop
6682 eval $cacheid=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685 conftest$ac_exeext conftest.$ac_ext
6686 fi
6687
6688
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691 eval supported=\$$cacheid
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693 printf "%s\n" "$supported" >&6; }
6694 if test "$supported" = "yes" ; then
6695 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6696 found="yes"
6697 fi
6698 fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else $as_nop
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"
6729 then :
6730 xorg_cv_cc_flag_unknown_warning_option=yes
6731 else $as_nop
6732 xorg_cv_cc_flag_unknown_warning_option=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735 fi
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739 CFLAGS="$xorg_testset_save_CFLAGS"
6740 fi
6741
6742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745 fi
6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750 then :
6751 printf %s "(cached) " >&6
6752 else $as_nop
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"
6758 then :
6759 xorg_cv_cc_flag_unused_command_line_argument=yes
6760 else $as_nop
6761 xorg_cv_cc_flag_unused_command_line_argument=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6764 fi
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6766 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769 fi
6770
6771 found="no"
6772
6773 if test $found = "no" ; then
6774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776 fi
6777
6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780 fi
6781
6782 CFLAGS="$CFLAGS -Wuninitialized"
6783
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6785 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6786 cacheid=xorg_cv_cc_flag__Wuninitialized
6787 if eval test \${$cacheid+y}
6788 then :
6789 printf %s "(cached) " >&6
6790 else $as_nop
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 int i;
6794 int
6795 main (void)
6796 {
6797
6798 ;
6799 return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"
6803 then :
6804 eval $cacheid=yes
6805 else $as_nop
6806 eval $cacheid=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809 conftest$ac_exeext conftest.$ac_ext
6810 fi
6811
6812
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815 eval supported=\$$cacheid
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817 printf "%s\n" "$supported" >&6; }
6818 if test "$supported" = "yes" ; then
6819 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6820 found="yes"
6821 fi
6822 fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845 then :
6846 printf %s "(cached) " >&6
6847 else $as_nop
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 int i;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"
6853 then :
6854 xorg_cv_cc_flag_unknown_warning_option=yes
6855 else $as_nop
6856 xorg_cv_cc_flag_unknown_warning_option=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859 fi
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863 CFLAGS="$xorg_testset_save_CFLAGS"
6864 fi
6865
6866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869 fi
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else $as_nop
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"
6882 then :
6883 xorg_cv_cc_flag_unused_command_line_argument=yes
6884 else $as_nop
6885 xorg_cv_cc_flag_unused_command_line_argument=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888 fi
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892 CFLAGS="$xorg_testset_save_CFLAGS"
6893 fi
6894
6895 found="no"
6896
6897 if test $found = "no" ; then
6898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900 fi
6901
6902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 fi
6905
6906 CFLAGS="$CFLAGS -Wshadow"
6907
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6909 printf %s "checking if $CC supports -Wshadow... " >&6; }
6910 cacheid=xorg_cv_cc_flag__Wshadow
6911 if eval test \${$cacheid+y}
6912 then :
6913 printf %s "(cached) " >&6
6914 else $as_nop
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 int i;
6918 int
6919 main (void)
6920 {
6921
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"
6927 then :
6928 eval $cacheid=yes
6929 else $as_nop
6930 eval $cacheid=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933 conftest$ac_exeext conftest.$ac_ext
6934 fi
6935
6936
6937 CFLAGS="$xorg_testset_save_CFLAGS"
6938
6939 eval supported=\$$cacheid
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6941 printf "%s\n" "$supported" >&6; }
6942 if test "$supported" = "yes" ; then
6943 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6944 found="yes"
6945 fi
6946 fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 xorg_testset_save_CFLAGS="$CFLAGS"
6963
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6969 then :
6970 printf %s "(cached) " >&6
6971 else $as_nop
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 int i;
6975 _ACEOF
6976 if ac_fn_c_try_compile "$LINENO"
6977 then :
6978 xorg_cv_cc_flag_unknown_warning_option=yes
6979 else $as_nop
6980 xorg_cv_cc_flag_unknown_warning_option=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983 fi
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 fi
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6998 then :
6999 printf %s "(cached) " >&6
7000 else $as_nop
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 int i;
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"
7006 then :
7007 xorg_cv_cc_flag_unused_command_line_argument=yes
7008 else $as_nop
7009 xorg_cv_cc_flag_unused_command_line_argument=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7012 fi
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7016 CFLAGS="$xorg_testset_save_CFLAGS"
7017 fi
7018
7019 found="no"
7020
7021 if test $found = "no" ; then
7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024 fi
7025
7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 fi
7029
7030 CFLAGS="$CFLAGS -Wmissing-noreturn"
7031
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7033 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7034 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7035 if eval test \${$cacheid+y}
7036 then :
7037 printf %s "(cached) " >&6
7038 else $as_nop
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 int i;
7042 int
7043 main (void)
7044 {
7045
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"
7051 then :
7052 eval $cacheid=yes
7053 else $as_nop
7054 eval $cacheid=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7057 conftest$ac_exeext conftest.$ac_ext
7058 fi
7059
7060
7061 CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063 eval supported=\$$cacheid
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065 printf "%s\n" "$supported" >&6; }
7066 if test "$supported" = "yes" ; then
7067 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7068 found="yes"
7069 fi
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086 xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7093 then :
7094 printf %s "(cached) " >&6
7095 else $as_nop
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 int i;
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"
7101 then :
7102 xorg_cv_cc_flag_unknown_warning_option=yes
7103 else $as_nop
7104 xorg_cv_cc_flag_unknown_warning_option=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107 fi
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111 CFLAGS="$xorg_testset_save_CFLAGS"
7112 fi
7113
7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7122 then :
7123 printf %s "(cached) " >&6
7124 else $as_nop
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 int i;
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"
7130 then :
7131 xorg_cv_cc_flag_unused_command_line_argument=yes
7132 else $as_nop
7133 xorg_cv_cc_flag_unused_command_line_argument=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 found="no"
7144
7145 if test $found = "no" ; then
7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 fi
7149
7150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152 fi
7153
7154 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7155
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7157 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7158 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7159 if eval test \${$cacheid+y}
7160 then :
7161 printf %s "(cached) " >&6
7162 else $as_nop
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 int i;
7166 int
7167 main (void)
7168 {
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"
7175 then :
7176 eval $cacheid=yes
7177 else $as_nop
7178 eval $cacheid=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181 conftest$ac_exeext conftest.$ac_ext
7182 fi
7183
7184
7185 CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187 eval supported=\$$cacheid
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189 printf "%s\n" "$supported" >&6; }
7190 if test "$supported" = "yes" ; then
7191 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7192 found="yes"
7193 fi
7194 fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210 xorg_testset_save_CFLAGS="$CFLAGS"
7211
7212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7216 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7217 then :
7218 printf %s "(cached) " >&6
7219 else $as_nop
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 int i;
7223 _ACEOF
7224 if ac_fn_c_try_compile "$LINENO"
7225 then :
7226 xorg_cv_cc_flag_unknown_warning_option=yes
7227 else $as_nop
7228 xorg_cv_cc_flag_unknown_warning_option=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7231 fi
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7235 CFLAGS="$xorg_testset_save_CFLAGS"
7236 fi
7237
7238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7241 fi
7242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7245 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7246 then :
7247 printf %s "(cached) " >&6
7248 else $as_nop
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 int i;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"
7254 then :
7255 xorg_cv_cc_flag_unused_command_line_argument=yes
7256 else $as_nop
7257 xorg_cv_cc_flag_unused_command_line_argument=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7260 fi
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7264 CFLAGS="$xorg_testset_save_CFLAGS"
7265 fi
7266
7267 found="no"
7268
7269 if test $found = "no" ; then
7270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272 fi
7273
7274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7276 fi
7277
7278 CFLAGS="$CFLAGS -Wredundant-decls"
7279
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7281 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7282 cacheid=xorg_cv_cc_flag__Wredundant_decls
7283 if eval test \${$cacheid+y}
7284 then :
7285 printf %s "(cached) " >&6
7286 else $as_nop
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 int i;
7290 int
7291 main (void)
7292 {
7293
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 if ac_fn_c_try_link "$LINENO"
7299 then :
7300 eval $cacheid=yes
7301 else $as_nop
7302 eval $cacheid=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7305 conftest$ac_exeext conftest.$ac_ext
7306 fi
7307
7308
7309 CFLAGS="$xorg_testset_save_CFLAGS"
7310
7311 eval supported=\$$cacheid
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7313 printf "%s\n" "$supported" >&6; }
7314 if test "$supported" = "yes" ; then
7315 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7316 found="yes"
7317 fi
7318 fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7340 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7341 then :
7342 printf %s "(cached) " >&6
7343 else $as_nop
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 int i;
7347 _ACEOF
7348 if ac_fn_c_try_compile "$LINENO"
7349 then :
7350 xorg_cv_cc_flag_unknown_warning_option=yes
7351 else $as_nop
7352 xorg_cv_cc_flag_unknown_warning_option=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7355 fi
7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7359 CFLAGS="$xorg_testset_save_CFLAGS"
7360 fi
7361
7362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365 fi
7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7370 then :
7371 printf %s "(cached) " >&6
7372 else $as_nop
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375 int i;
7376 _ACEOF
7377 if ac_fn_c_try_compile "$LINENO"
7378 then :
7379 xorg_cv_cc_flag_unused_command_line_argument=yes
7380 else $as_nop
7381 xorg_cv_cc_flag_unused_command_line_argument=no
7382 fi
7383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7384 fi
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7388 CFLAGS="$xorg_testset_save_CFLAGS"
7389 fi
7390
7391 found="no"
7392
7393 if test $found = "no" ; then
7394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396 fi
7397
7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7400 fi
7401
7402 CFLAGS="$CFLAGS -Wlogical-op"
7403
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7405 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7406 cacheid=xorg_cv_cc_flag__Wlogical_op
7407 if eval test \${$cacheid+y}
7408 then :
7409 printf %s "(cached) " >&6
7410 else $as_nop
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 int
7415 main (void)
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_c_try_link "$LINENO"
7423 then :
7424 eval $cacheid=yes
7425 else $as_nop
7426 eval $cacheid=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7429 conftest$ac_exeext conftest.$ac_ext
7430 fi
7431
7432
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434
7435 eval supported=\$$cacheid
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7437 printf "%s\n" "$supported" >&6; }
7438 if test "$supported" = "yes" ; then
7439 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7440 found="yes"
7441 fi
7442 fi
7443
7444
7445
7446 # These are currently disabled because they are noisy. They will be enabled
7447 # in the future once the codebase is sufficiently modernized to silence
7448 # them. For now, I don't want them to drown out the other warnings.
7449 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7450 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7451 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7452
7453 # Turn some warnings into errors, so we don't accidentally get successful builds
7454 # when there are problems that should be fixed.
7455
7456 if test "x$SELECTIVE_WERROR" = "xyes" ; then
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7477 then :
7478 printf %s "(cached) " >&6
7479 else $as_nop
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 int i;
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"
7485 then :
7486 xorg_cv_cc_flag_unknown_warning_option=yes
7487 else $as_nop
7488 xorg_cv_cc_flag_unknown_warning_option=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7491 fi
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7493 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7495 CFLAGS="$xorg_testset_save_CFLAGS"
7496 fi
7497
7498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501 fi
7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7504 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7505 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else $as_nop
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 int i;
7512 _ACEOF
7513 if ac_fn_c_try_compile "$LINENO"
7514 then :
7515 xorg_cv_cc_flag_unused_command_line_argument=yes
7516 else $as_nop
7517 xorg_cv_cc_flag_unused_command_line_argument=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7520 fi
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7524 CFLAGS="$xorg_testset_save_CFLAGS"
7525 fi
7526
7527 found="no"
7528
7529 if test $found = "no" ; then
7530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532 fi
7533
7534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536 fi
7537
7538 CFLAGS="$CFLAGS -Werror=implicit"
7539
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7541 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7542 cacheid=xorg_cv_cc_flag__Werror_implicit
7543 if eval test \${$cacheid+y}
7544 then :
7545 printf %s "(cached) " >&6
7546 else $as_nop
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 int i;
7550 int
7551 main (void)
7552 {
7553
7554 ;
7555 return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_link "$LINENO"
7559 then :
7560 eval $cacheid=yes
7561 else $as_nop
7562 eval $cacheid=no
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7565 conftest$ac_exeext conftest.$ac_ext
7566 fi
7567
7568
7569 CFLAGS="$xorg_testset_save_CFLAGS"
7570
7571 eval supported=\$$cacheid
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7573 printf "%s\n" "$supported" >&6; }
7574 if test "$supported" = "yes" ; then
7575 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7576 found="yes"
7577 fi
7578 fi
7579
7580 if test $found = "no" ; then
7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 fi
7588
7589 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7590
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7592 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7593 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7594 if eval test \${$cacheid+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else $as_nop
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 int
7602 main (void)
7603 {
7604
7605 ;
7606 return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_link "$LINENO"
7610 then :
7611 eval $cacheid=yes
7612 else $as_nop
7613 eval $cacheid=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616 conftest$ac_exeext conftest.$ac_ext
7617 fi
7618
7619
7620 CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622 eval supported=\$$cacheid
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624 printf "%s\n" "$supported" >&6; }
7625 if test "$supported" = "yes" ; then
7626 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7627 found="yes"
7628 fi
7629 fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652 then :
7653 printf %s "(cached) " >&6
7654 else $as_nop
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"
7660 then :
7661 xorg_cv_cc_flag_unknown_warning_option=yes
7662 else $as_nop
7663 xorg_cv_cc_flag_unknown_warning_option=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666 fi
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670 CFLAGS="$xorg_testset_save_CFLAGS"
7671 fi
7672
7673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676 fi
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681 then :
7682 printf %s "(cached) " >&6
7683 else $as_nop
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 int i;
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"
7689 then :
7690 xorg_cv_cc_flag_unused_command_line_argument=yes
7691 else $as_nop
7692 xorg_cv_cc_flag_unused_command_line_argument=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7695 fi
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699 CFLAGS="$xorg_testset_save_CFLAGS"
7700 fi
7701
7702 found="no"
7703
7704 if test $found = "no" ; then
7705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707 fi
7708
7709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 fi
7712
7713 CFLAGS="$CFLAGS -Werror=nonnull"
7714
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7716 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7717 cacheid=xorg_cv_cc_flag__Werror_nonnull
7718 if eval test \${$cacheid+y}
7719 then :
7720 printf %s "(cached) " >&6
7721 else $as_nop
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 int i;
7725 int
7726 main (void)
7727 {
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"
7734 then :
7735 eval $cacheid=yes
7736 else $as_nop
7737 eval $cacheid=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7740 conftest$ac_exeext conftest.$ac_ext
7741 fi
7742
7743
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746 eval supported=\$$cacheid
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748 printf "%s\n" "$supported" >&6; }
7749 if test "$supported" = "yes" ; then
7750 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7751 found="yes"
7752 fi
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else $as_nop
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"
7784 then :
7785 xorg_cv_cc_flag_unknown_warning_option=yes
7786 else $as_nop
7787 xorg_cv_cc_flag_unknown_warning_option=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790 fi
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else $as_nop
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 int i;
7811 _ACEOF
7812 if ac_fn_c_try_compile "$LINENO"
7813 then :
7814 xorg_cv_cc_flag_unused_command_line_argument=yes
7815 else $as_nop
7816 xorg_cv_cc_flag_unused_command_line_argument=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819 fi
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823 CFLAGS="$xorg_testset_save_CFLAGS"
7824 fi
7825
7826 found="no"
7827
7828 if test $found = "no" ; then
7829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831 fi
7832
7833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835 fi
7836
7837 CFLAGS="$CFLAGS -Werror=init-self"
7838
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7840 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7841 cacheid=xorg_cv_cc_flag__Werror_init_self
7842 if eval test \${$cacheid+y}
7843 then :
7844 printf %s "(cached) " >&6
7845 else $as_nop
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 int i;
7849 int
7850 main (void)
7851 {
7852
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"
7858 then :
7859 eval $cacheid=yes
7860 else $as_nop
7861 eval $cacheid=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864 conftest$ac_exeext conftest.$ac_ext
7865 fi
7866
7867
7868 CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870 eval supported=\$$cacheid
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872 printf "%s\n" "$supported" >&6; }
7873 if test "$supported" = "yes" ; then
7874 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7875 found="yes"
7876 fi
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else $as_nop
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 int i;
7906 _ACEOF
7907 if ac_fn_c_try_compile "$LINENO"
7908 then :
7909 xorg_cv_cc_flag_unknown_warning_option=yes
7910 else $as_nop
7911 xorg_cv_cc_flag_unknown_warning_option=no
7912 fi
7913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914 fi
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7919 fi
7920
7921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 fi
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929 then :
7930 printf %s "(cached) " >&6
7931 else $as_nop
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"
7937 then :
7938 xorg_cv_cc_flag_unused_command_line_argument=yes
7939 else $as_nop
7940 xorg_cv_cc_flag_unused_command_line_argument=no
7941 fi
7942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7943 fi
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947 CFLAGS="$xorg_testset_save_CFLAGS"
7948 fi
7949
7950 found="no"
7951
7952 if test $found = "no" ; then
7953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955 fi
7956
7957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959 fi
7960
7961 CFLAGS="$CFLAGS -Werror=main"
7962
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7964 printf %s "checking if $CC supports -Werror=main... " >&6; }
7965 cacheid=xorg_cv_cc_flag__Werror_main
7966 if eval test \${$cacheid+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else $as_nop
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 int i;
7973 int
7974 main (void)
7975 {
7976
7977 ;
7978 return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"
7982 then :
7983 eval $cacheid=yes
7984 else $as_nop
7985 eval $cacheid=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988 conftest$ac_exeext conftest.$ac_ext
7989 fi
7990
7991
7992 CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994 eval supported=\$$cacheid
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996 printf "%s\n" "$supported" >&6; }
7997 if test "$supported" = "yes" ; then
7998 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7999 found="yes"
8000 fi
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017 xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else $as_nop
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 int i;
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"
8032 then :
8033 xorg_cv_cc_flag_unknown_warning_option=yes
8034 else $as_nop
8035 xorg_cv_cc_flag_unknown_warning_option=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 fi
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042 CFLAGS="$xorg_testset_save_CFLAGS"
8043 fi
8044
8045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048 fi
8049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053 then :
8054 printf %s "(cached) " >&6
8055 else $as_nop
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 int i;
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"
8061 then :
8062 xorg_cv_cc_flag_unused_command_line_argument=yes
8063 else $as_nop
8064 xorg_cv_cc_flag_unused_command_line_argument=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067 fi
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8071 CFLAGS="$xorg_testset_save_CFLAGS"
8072 fi
8073
8074 found="no"
8075
8076 if test $found = "no" ; then
8077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079 fi
8080
8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083 fi
8084
8085 CFLAGS="$CFLAGS -Werror=missing-braces"
8086
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8088 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8089 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8090 if eval test \${$cacheid+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else $as_nop
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 int i;
8097 int
8098 main (void)
8099 {
8100
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"
8106 then :
8107 eval $cacheid=yes
8108 else $as_nop
8109 eval $cacheid=no
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112 conftest$ac_exeext conftest.$ac_ext
8113 fi
8114
8115
8116 CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118 eval supported=\$$cacheid
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120 printf "%s\n" "$supported" >&6; }
8121 if test "$supported" = "yes" ; then
8122 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8123 found="yes"
8124 fi
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141 xorg_testset_save_CFLAGS="$CFLAGS"
8142
8143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8148 then :
8149 printf %s "(cached) " >&6
8150 else $as_nop
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 int i;
8154 _ACEOF
8155 if ac_fn_c_try_compile "$LINENO"
8156 then :
8157 xorg_cv_cc_flag_unknown_warning_option=yes
8158 else $as_nop
8159 xorg_cv_cc_flag_unknown_warning_option=no
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8162 fi
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8164 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8166 CFLAGS="$xorg_testset_save_CFLAGS"
8167 fi
8168
8169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172 fi
8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8175 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8176 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8177 then :
8178 printf %s "(cached) " >&6
8179 else $as_nop
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 int i;
8183 _ACEOF
8184 if ac_fn_c_try_compile "$LINENO"
8185 then :
8186 xorg_cv_cc_flag_unused_command_line_argument=yes
8187 else $as_nop
8188 xorg_cv_cc_flag_unused_command_line_argument=no
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8191 fi
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8193 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8195 CFLAGS="$xorg_testset_save_CFLAGS"
8196 fi
8197
8198 found="no"
8199
8200 if test $found = "no" ; then
8201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203 fi
8204
8205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8207 fi
8208
8209 CFLAGS="$CFLAGS -Werror=sequence-point"
8210
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8212 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8213 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8214 if eval test \${$cacheid+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else $as_nop
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 int i;
8221 int
8222 main (void)
8223 {
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"
8230 then :
8231 eval $cacheid=yes
8232 else $as_nop
8233 eval $cacheid=no
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8236 conftest$ac_exeext conftest.$ac_ext
8237 fi
8238
8239
8240 CFLAGS="$xorg_testset_save_CFLAGS"
8241
8242 eval supported=\$$cacheid
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244 printf "%s\n" "$supported" >&6; }
8245 if test "$supported" = "yes" ; then
8246 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8247 found="yes"
8248 fi
8249 fi
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265 xorg_testset_save_CFLAGS="$CFLAGS"
8266
8267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8271 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8272 then :
8273 printf %s "(cached) " >&6
8274 else $as_nop
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277 int i;
8278 _ACEOF
8279 if ac_fn_c_try_compile "$LINENO"
8280 then :
8281 xorg_cv_cc_flag_unknown_warning_option=yes
8282 else $as_nop
8283 xorg_cv_cc_flag_unknown_warning_option=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8286 fi
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8290 CFLAGS="$xorg_testset_save_CFLAGS"
8291 fi
8292
8293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296 fi
8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8301 then :
8302 printf %s "(cached) " >&6
8303 else $as_nop
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 int i;
8307 _ACEOF
8308 if ac_fn_c_try_compile "$LINENO"
8309 then :
8310 xorg_cv_cc_flag_unused_command_line_argument=yes
8311 else $as_nop
8312 xorg_cv_cc_flag_unused_command_line_argument=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8315 fi
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8319 CFLAGS="$xorg_testset_save_CFLAGS"
8320 fi
8321
8322 found="no"
8323
8324 if test $found = "no" ; then
8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327 fi
8328
8329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8331 fi
8332
8333 CFLAGS="$CFLAGS -Werror=return-type"
8334
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8336 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8337 cacheid=xorg_cv_cc_flag__Werror_return_type
8338 if eval test \${$cacheid+y}
8339 then :
8340 printf %s "(cached) " >&6
8341 else $as_nop
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 int i;
8345 int
8346 main (void)
8347 {
8348
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_link "$LINENO"
8354 then :
8355 eval $cacheid=yes
8356 else $as_nop
8357 eval $cacheid=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8360 conftest$ac_exeext conftest.$ac_ext
8361 fi
8362
8363
8364 CFLAGS="$xorg_testset_save_CFLAGS"
8365
8366 eval supported=\$$cacheid
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8368 printf "%s\n" "$supported" >&6; }
8369 if test "$supported" = "yes" ; then
8370 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8371 found="yes"
8372 fi
8373 fi
8374
8375 if test $found = "no" ; then
8376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378 fi
8379
8380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382 fi
8383
8384 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8385
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8387 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8388 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8389 if eval test \${$cacheid+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 int i;
8396 int
8397 main (void)
8398 {
8399
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_link "$LINENO"
8405 then :
8406 eval $cacheid=yes
8407 else $as_nop
8408 eval $cacheid=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8411 conftest$ac_exeext conftest.$ac_ext
8412 fi
8413
8414
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417 eval supported=\$$cacheid
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419 printf "%s\n" "$supported" >&6; }
8420 if test "$supported" = "yes" ; then
8421 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8422 found="yes"
8423 fi
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else $as_nop
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 int i;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"
8455 then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else $as_nop
8458 xorg_cv_cc_flag_unknown_warning_option=no
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461 fi
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465 CFLAGS="$xorg_testset_save_CFLAGS"
8466 fi
8467
8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471 fi
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else $as_nop
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 int i;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"
8484 then :
8485 xorg_cv_cc_flag_unused_command_line_argument=yes
8486 else $as_nop
8487 xorg_cv_cc_flag_unused_command_line_argument=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8495 fi
8496
8497 found="no"
8498
8499 if test $found = "no" ; then
8500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502 fi
8503
8504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506 fi
8507
8508 CFLAGS="$CFLAGS -Werror=trigraphs"
8509
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8511 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8512 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8513 if eval test \${$cacheid+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else $as_nop
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 int
8521 main (void)
8522 {
8523
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 if ac_fn_c_try_link "$LINENO"
8529 then :
8530 eval $cacheid=yes
8531 else $as_nop
8532 eval $cacheid=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8535 conftest$ac_exeext conftest.$ac_ext
8536 fi
8537
8538
8539 CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541 eval supported=\$$cacheid
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543 printf "%s\n" "$supported" >&6; }
8544 if test "$supported" = "yes" ; then
8545 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8546 found="yes"
8547 fi
8548 fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else $as_nop
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 int i;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"
8579 then :
8580 xorg_cv_cc_flag_unknown_warning_option=yes
8581 else $as_nop
8582 xorg_cv_cc_flag_unknown_warning_option=no
8583 fi
8584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585 fi
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589 CFLAGS="$xorg_testset_save_CFLAGS"
8590 fi
8591
8592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595 fi
8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else $as_nop
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int i;
8606 _ACEOF
8607 if ac_fn_c_try_compile "$LINENO"
8608 then :
8609 xorg_cv_cc_flag_unused_command_line_argument=yes
8610 else $as_nop
8611 xorg_cv_cc_flag_unused_command_line_argument=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8614 fi
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618 CFLAGS="$xorg_testset_save_CFLAGS"
8619 fi
8620
8621 found="no"
8622
8623 if test $found = "no" ; then
8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626 fi
8627
8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 fi
8631
8632 CFLAGS="$CFLAGS -Werror=array-bounds"
8633
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8635 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8636 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8637 if eval test \${$cacheid+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else $as_nop
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 int i;
8644 int
8645 main (void)
8646 {
8647
8648 ;
8649 return 0;
8650 }
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"
8653 then :
8654 eval $cacheid=yes
8655 else $as_nop
8656 eval $cacheid=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8659 conftest$ac_exeext conftest.$ac_ext
8660 fi
8661
8662
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665 eval supported=\$$cacheid
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667 printf "%s\n" "$supported" >&6; }
8668 if test "$supported" = "yes" ; then
8669 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8670 found="yes"
8671 fi
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688 xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else $as_nop
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int i;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"
8703 then :
8704 xorg_cv_cc_flag_unknown_warning_option=yes
8705 else $as_nop
8706 xorg_cv_cc_flag_unknown_warning_option=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709 fi
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8714 fi
8715
8716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719 fi
8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724 then :
8725 printf %s "(cached) " >&6
8726 else $as_nop
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"
8732 then :
8733 xorg_cv_cc_flag_unused_command_line_argument=yes
8734 else $as_nop
8735 xorg_cv_cc_flag_unused_command_line_argument=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 found="no"
8746
8747 if test $found = "no" ; then
8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750 fi
8751
8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754 fi
8755
8756 CFLAGS="$CFLAGS -Werror=write-strings"
8757
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8759 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8760 cacheid=xorg_cv_cc_flag__Werror_write_strings
8761 if eval test \${$cacheid+y}
8762 then :
8763 printf %s "(cached) " >&6
8764 else $as_nop
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 int i;
8768 int
8769 main (void)
8770 {
8771
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_link "$LINENO"
8777 then :
8778 eval $cacheid=yes
8779 else $as_nop
8780 eval $cacheid=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783 conftest$ac_exeext conftest.$ac_ext
8784 fi
8785
8786
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789 eval supported=\$$cacheid
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791 printf "%s\n" "$supported" >&6; }
8792 if test "$supported" = "yes" ; then
8793 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8794 found="yes"
8795 fi
8796 fi
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812 xorg_testset_save_CFLAGS="$CFLAGS"
8813
8814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8819 then :
8820 printf %s "(cached) " >&6
8821 else $as_nop
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 int i;
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"
8827 then :
8828 xorg_cv_cc_flag_unknown_warning_option=yes
8829 else $as_nop
8830 xorg_cv_cc_flag_unknown_warning_option=no
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8833 fi
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8837 CFLAGS="$xorg_testset_save_CFLAGS"
8838 fi
8839
8840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843 fi
8844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8848 then :
8849 printf %s "(cached) " >&6
8850 else $as_nop
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"
8856 then :
8857 xorg_cv_cc_flag_unused_command_line_argument=yes
8858 else $as_nop
8859 xorg_cv_cc_flag_unused_command_line_argument=no
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8862 fi
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8866 CFLAGS="$xorg_testset_save_CFLAGS"
8867 fi
8868
8869 found="no"
8870
8871 if test $found = "no" ; then
8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874 fi
8875
8876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8878 fi
8879
8880 CFLAGS="$CFLAGS -Werror=address"
8881
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8883 printf %s "checking if $CC supports -Werror=address... " >&6; }
8884 cacheid=xorg_cv_cc_flag__Werror_address
8885 if eval test \${$cacheid+y}
8886 then :
8887 printf %s "(cached) " >&6
8888 else $as_nop
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 int i;
8892 int
8893 main (void)
8894 {
8895
8896 ;
8897 return 0;
8898 }
8899 _ACEOF
8900 if ac_fn_c_try_link "$LINENO"
8901 then :
8902 eval $cacheid=yes
8903 else $as_nop
8904 eval $cacheid=no
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8907 conftest$ac_exeext conftest.$ac_ext
8908 fi
8909
8910
8911 CFLAGS="$xorg_testset_save_CFLAGS"
8912
8913 eval supported=\$$cacheid
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8915 printf "%s\n" "$supported" >&6; }
8916 if test "$supported" = "yes" ; then
8917 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8918 found="yes"
8919 fi
8920 fi
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936 xorg_testset_save_CFLAGS="$CFLAGS"
8937
8938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8942 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8943 then :
8944 printf %s "(cached) " >&6
8945 else $as_nop
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8948 int i;
8949 _ACEOF
8950 if ac_fn_c_try_compile "$LINENO"
8951 then :
8952 xorg_cv_cc_flag_unknown_warning_option=yes
8953 else $as_nop
8954 xorg_cv_cc_flag_unknown_warning_option=no
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8957 fi
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8961 CFLAGS="$xorg_testset_save_CFLAGS"
8962 fi
8963
8964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967 fi
8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else $as_nop
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 int i;
8978 _ACEOF
8979 if ac_fn_c_try_compile "$LINENO"
8980 then :
8981 xorg_cv_cc_flag_unused_command_line_argument=yes
8982 else $as_nop
8983 xorg_cv_cc_flag_unused_command_line_argument=no
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8986 fi
8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8991 fi
8992
8993 found="no"
8994
8995 if test $found = "no" ; then
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999
9000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002 fi
9003
9004 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9005
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9007 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9008 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9009 if eval test \${$cacheid+y}
9010 then :
9011 printf %s "(cached) " >&6
9012 else $as_nop
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 int i;
9016 int
9017 main (void)
9018 {
9019
9020 ;
9021 return 0;
9022 }
9023 _ACEOF
9024 if ac_fn_c_try_link "$LINENO"
9025 then :
9026 eval $cacheid=yes
9027 else $as_nop
9028 eval $cacheid=no
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9031 conftest$ac_exeext conftest.$ac_ext
9032 fi
9033
9034
9035 CFLAGS="$xorg_testset_save_CFLAGS"
9036
9037 eval supported=\$$cacheid
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9039 printf "%s\n" "$supported" >&6; }
9040 if test "$supported" = "yes" ; then
9041 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9042 found="yes"
9043 fi
9044 fi
9045
9046 if test $found = "no" ; then
9047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049 fi
9050
9051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053 fi
9054
9055 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9056
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9058 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9059 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9060 if eval test \${$cacheid+y}
9061 then :
9062 printf %s "(cached) " >&6
9063 else $as_nop
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 int i;
9067 int
9068 main (void)
9069 {
9070
9071 ;
9072 return 0;
9073 }
9074 _ACEOF
9075 if ac_fn_c_try_link "$LINENO"
9076 then :
9077 eval $cacheid=yes
9078 else $as_nop
9079 eval $cacheid=no
9080 fi
9081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9082 conftest$ac_exeext conftest.$ac_ext
9083 fi
9084
9085
9086 CFLAGS="$xorg_testset_save_CFLAGS"
9087
9088 eval supported=\$$cacheid
9089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9090 printf "%s\n" "$supported" >&6; }
9091 if test "$supported" = "yes" ; then
9092 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9093 found="yes"
9094 fi
9095 fi
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111 xorg_testset_save_CFLAGS="$CFLAGS"
9112
9113 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9116 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9117 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9118 then :
9119 printf %s "(cached) " >&6
9120 else $as_nop
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123 int i;
9124 _ACEOF
9125 if ac_fn_c_try_compile "$LINENO"
9126 then :
9127 xorg_cv_cc_flag_unknown_warning_option=yes
9128 else $as_nop
9129 xorg_cv_cc_flag_unknown_warning_option=no
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9132 fi
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9136 CFLAGS="$xorg_testset_save_CFLAGS"
9137 fi
9138
9139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142 fi
9143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9147 then :
9148 printf %s "(cached) " >&6
9149 else $as_nop
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9152 int i;
9153 _ACEOF
9154 if ac_fn_c_try_compile "$LINENO"
9155 then :
9156 xorg_cv_cc_flag_unused_command_line_argument=yes
9157 else $as_nop
9158 xorg_cv_cc_flag_unused_command_line_argument=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9161 fi
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9163 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9165 CFLAGS="$xorg_testset_save_CFLAGS"
9166 fi
9167
9168 found="no"
9169
9170 if test $found = "no" ; then
9171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173 fi
9174
9175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177 fi
9178
9179 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9180
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9182 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9183 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9184 if eval test \${$cacheid+y}
9185 then :
9186 printf %s "(cached) " >&6
9187 else $as_nop
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 int i;
9191 int
9192 main (void)
9193 {
9194
9195 ;
9196 return 0;
9197 }
9198 _ACEOF
9199 if ac_fn_c_try_link "$LINENO"
9200 then :
9201 eval $cacheid=yes
9202 else $as_nop
9203 eval $cacheid=no
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9206 conftest$ac_exeext conftest.$ac_ext
9207 fi
9208
9209
9210 CFLAGS="$xorg_testset_save_CFLAGS"
9211
9212 eval supported=\$$cacheid
9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9214 printf "%s\n" "$supported" >&6; }
9215 if test "$supported" = "yes" ; then
9216 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9217 found="yes"
9218 fi
9219 fi
9220
9221 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9222 else
9223 { printf "%s\n" "$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
9224 printf "%s\n" "$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;}
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238 xorg_testset_save_CFLAGS="$CFLAGS"
9239
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9245 then :
9246 printf %s "(cached) " >&6
9247 else $as_nop
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 int i;
9251 _ACEOF
9252 if ac_fn_c_try_compile "$LINENO"
9253 then :
9254 xorg_cv_cc_flag_unknown_warning_option=yes
9255 else $as_nop
9256 xorg_cv_cc_flag_unknown_warning_option=no
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259 fi
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9263 CFLAGS="$xorg_testset_save_CFLAGS"
9264 fi
9265
9266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269 fi
9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else $as_nop
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 _ACEOF
9281 if ac_fn_c_try_compile "$LINENO"
9282 then :
9283 xorg_cv_cc_flag_unused_command_line_argument=yes
9284 else $as_nop
9285 xorg_cv_cc_flag_unused_command_line_argument=no
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288 fi
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9292 CFLAGS="$xorg_testset_save_CFLAGS"
9293 fi
9294
9295 found="no"
9296
9297 if test $found = "no" ; then
9298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300 fi
9301
9302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304 fi
9305
9306 CFLAGS="$CFLAGS -Wimplicit"
9307
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9309 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9310 cacheid=xorg_cv_cc_flag__Wimplicit
9311 if eval test \${$cacheid+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else $as_nop
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 int i;
9318 int
9319 main (void)
9320 {
9321
9322 ;
9323 return 0;
9324 }
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"
9327 then :
9328 eval $cacheid=yes
9329 else $as_nop
9330 eval $cacheid=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9333 conftest$ac_exeext conftest.$ac_ext
9334 fi
9335
9336
9337 CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339 eval supported=\$$cacheid
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341 printf "%s\n" "$supported" >&6; }
9342 if test "$supported" = "yes" ; then
9343 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9344 found="yes"
9345 fi
9346 fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369 then :
9370 printf %s "(cached) " >&6
9371 else $as_nop
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 int i;
9375 _ACEOF
9376 if ac_fn_c_try_compile "$LINENO"
9377 then :
9378 xorg_cv_cc_flag_unknown_warning_option=yes
9379 else $as_nop
9380 xorg_cv_cc_flag_unknown_warning_option=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383 fi
9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9385 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9387 CFLAGS="$xorg_testset_save_CFLAGS"
9388 fi
9389
9390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393 fi
9394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9397 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9398 then :
9399 printf %s "(cached) " >&6
9400 else $as_nop
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 int i;
9404 _ACEOF
9405 if ac_fn_c_try_compile "$LINENO"
9406 then :
9407 xorg_cv_cc_flag_unused_command_line_argument=yes
9408 else $as_nop
9409 xorg_cv_cc_flag_unused_command_line_argument=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9412 fi
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417 fi
9418
9419 found="no"
9420
9421 if test $found = "no" ; then
9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428 fi
9429
9430 CFLAGS="$CFLAGS -Wnonnull"
9431
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9433 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9434 cacheid=xorg_cv_cc_flag__Wnonnull
9435 if eval test \${$cacheid+y}
9436 then :
9437 printf %s "(cached) " >&6
9438 else $as_nop
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 int
9443 main (void)
9444 {
9445
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 if ac_fn_c_try_link "$LINENO"
9451 then :
9452 eval $cacheid=yes
9453 else $as_nop
9454 eval $cacheid=no
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9457 conftest$ac_exeext conftest.$ac_ext
9458 fi
9459
9460
9461 CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463 eval supported=\$$cacheid
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465 printf "%s\n" "$supported" >&6; }
9466 if test "$supported" = "yes" ; then
9467 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9468 found="yes"
9469 fi
9470 fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else $as_nop
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"
9501 then :
9502 xorg_cv_cc_flag_unknown_warning_option=yes
9503 else $as_nop
9504 xorg_cv_cc_flag_unknown_warning_option=no
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507 fi
9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511 CFLAGS="$xorg_testset_save_CFLAGS"
9512 fi
9513
9514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517 fi
9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9522 then :
9523 printf %s "(cached) " >&6
9524 else $as_nop
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 int i;
9528 _ACEOF
9529 if ac_fn_c_try_compile "$LINENO"
9530 then :
9531 xorg_cv_cc_flag_unused_command_line_argument=yes
9532 else $as_nop
9533 xorg_cv_cc_flag_unused_command_line_argument=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9536 fi
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541 fi
9542
9543 found="no"
9544
9545 if test $found = "no" ; then
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 fi
9549
9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 fi
9553
9554 CFLAGS="$CFLAGS -Winit-self"
9555
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9557 printf %s "checking if $CC supports -Winit-self... " >&6; }
9558 cacheid=xorg_cv_cc_flag__Winit_self
9559 if eval test \${$cacheid+y}
9560 then :
9561 printf %s "(cached) " >&6
9562 else $as_nop
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 int i;
9566 int
9567 main (void)
9568 {
9569
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"
9575 then :
9576 eval $cacheid=yes
9577 else $as_nop
9578 eval $cacheid=no
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581 conftest$ac_exeext conftest.$ac_ext
9582 fi
9583
9584
9585 CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587 eval supported=\$$cacheid
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589 printf "%s\n" "$supported" >&6; }
9590 if test "$supported" = "yes" ; then
9591 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9592 found="yes"
9593 fi
9594 fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617 then :
9618 printf %s "(cached) " >&6
9619 else $as_nop
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"
9625 then :
9626 xorg_cv_cc_flag_unknown_warning_option=yes
9627 else $as_nop
9628 xorg_cv_cc_flag_unknown_warning_option=no
9629 fi
9630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631 fi
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635 CFLAGS="$xorg_testset_save_CFLAGS"
9636 fi
9637
9638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641 fi
9642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646 then :
9647 printf %s "(cached) " >&6
9648 else $as_nop
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 int i;
9652 _ACEOF
9653 if ac_fn_c_try_compile "$LINENO"
9654 then :
9655 xorg_cv_cc_flag_unused_command_line_argument=yes
9656 else $as_nop
9657 xorg_cv_cc_flag_unused_command_line_argument=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9660 fi
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665 fi
9666
9667 found="no"
9668
9669 if test $found = "no" ; then
9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676 fi
9677
9678 CFLAGS="$CFLAGS -Wmain"
9679
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9681 printf %s "checking if $CC supports -Wmain... " >&6; }
9682 cacheid=xorg_cv_cc_flag__Wmain
9683 if eval test \${$cacheid+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else $as_nop
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 int
9691 main (void)
9692 {
9693
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"
9699 then :
9700 eval $cacheid=yes
9701 else $as_nop
9702 eval $cacheid=no
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9705 conftest$ac_exeext conftest.$ac_ext
9706 fi
9707
9708
9709 CFLAGS="$xorg_testset_save_CFLAGS"
9710
9711 eval supported=\$$cacheid
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9713 printf "%s\n" "$supported" >&6; }
9714 if test "$supported" = "yes" ; then
9715 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9716 found="yes"
9717 fi
9718 fi
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734 xorg_testset_save_CFLAGS="$CFLAGS"
9735
9736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9740 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9741 then :
9742 printf %s "(cached) " >&6
9743 else $as_nop
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 int i;
9747 _ACEOF
9748 if ac_fn_c_try_compile "$LINENO"
9749 then :
9750 xorg_cv_cc_flag_unknown_warning_option=yes
9751 else $as_nop
9752 xorg_cv_cc_flag_unknown_warning_option=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 fi
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760 fi
9761
9762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765 fi
9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9770 then :
9771 printf %s "(cached) " >&6
9772 else $as_nop
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int i;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"
9778 then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 else $as_nop
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784 fi
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789 fi
9790
9791 found="no"
9792
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 fi
9797
9798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 fi
9801
9802 CFLAGS="$CFLAGS -Wmissing-braces"
9803
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9805 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9806 cacheid=xorg_cv_cc_flag__Wmissing_braces
9807 if eval test \${$cacheid+y}
9808 then :
9809 printf %s "(cached) " >&6
9810 else $as_nop
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 int i;
9814 int
9815 main (void)
9816 {
9817
9818 ;
9819 return 0;
9820 }
9821 _ACEOF
9822 if ac_fn_c_try_link "$LINENO"
9823 then :
9824 eval $cacheid=yes
9825 else $as_nop
9826 eval $cacheid=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829 conftest$ac_exeext conftest.$ac_ext
9830 fi
9831
9832
9833 CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835 eval supported=\$$cacheid
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837 printf "%s\n" "$supported" >&6; }
9838 if test "$supported" = "yes" ; then
9839 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9840 found="yes"
9841 fi
9842 fi
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858 xorg_testset_save_CFLAGS="$CFLAGS"
9859
9860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9864 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9865 then :
9866 printf %s "(cached) " >&6
9867 else $as_nop
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 int i;
9871 _ACEOF
9872 if ac_fn_c_try_compile "$LINENO"
9873 then :
9874 xorg_cv_cc_flag_unknown_warning_option=yes
9875 else $as_nop
9876 xorg_cv_cc_flag_unknown_warning_option=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879 fi
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 fi
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894 then :
9895 printf %s "(cached) " >&6
9896 else $as_nop
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 int i;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"
9902 then :
9903 xorg_cv_cc_flag_unused_command_line_argument=yes
9904 else $as_nop
9905 xorg_cv_cc_flag_unused_command_line_argument=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9908 fi
9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9912 CFLAGS="$xorg_testset_save_CFLAGS"
9913 fi
9914
9915 found="no"
9916
9917 if test $found = "no" ; then
9918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920 fi
9921
9922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924 fi
9925
9926 CFLAGS="$CFLAGS -Wsequence-point"
9927
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9929 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9930 cacheid=xorg_cv_cc_flag__Wsequence_point
9931 if eval test \${$cacheid+y}
9932 then :
9933 printf %s "(cached) " >&6
9934 else $as_nop
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 int
9939 main (void)
9940 {
9941
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 if ac_fn_c_try_link "$LINENO"
9947 then :
9948 eval $cacheid=yes
9949 else $as_nop
9950 eval $cacheid=no
9951 fi
9952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953 conftest$ac_exeext conftest.$ac_ext
9954 fi
9955
9956
9957 CFLAGS="$xorg_testset_save_CFLAGS"
9958
9959 eval supported=\$$cacheid
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9961 printf "%s\n" "$supported" >&6; }
9962 if test "$supported" = "yes" ; then
9963 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9964 found="yes"
9965 fi
9966 fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 xorg_testset_save_CFLAGS="$CFLAGS"
9983
9984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9988 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9989 then :
9990 printf %s "(cached) " >&6
9991 else $as_nop
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 int i;
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"
9997 then :
9998 xorg_cv_cc_flag_unknown_warning_option=yes
9999 else $as_nop
10000 xorg_cv_cc_flag_unknown_warning_option=no
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003 fi
10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007 CFLAGS="$xorg_testset_save_CFLAGS"
10008 fi
10009
10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013 fi
10014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10018 then :
10019 printf %s "(cached) " >&6
10020 else $as_nop
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10023 int i;
10024 _ACEOF
10025 if ac_fn_c_try_compile "$LINENO"
10026 then :
10027 xorg_cv_cc_flag_unused_command_line_argument=yes
10028 else $as_nop
10029 xorg_cv_cc_flag_unused_command_line_argument=no
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10032 fi
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036 CFLAGS="$xorg_testset_save_CFLAGS"
10037 fi
10038
10039 found="no"
10040
10041 if test $found = "no" ; then
10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044 fi
10045
10046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 fi
10049
10050 CFLAGS="$CFLAGS -Wreturn-type"
10051
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10053 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10054 cacheid=xorg_cv_cc_flag__Wreturn_type
10055 if eval test \${$cacheid+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else $as_nop
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 int i;
10062 int
10063 main (void)
10064 {
10065
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"
10071 then :
10072 eval $cacheid=yes
10073 else $as_nop
10074 eval $cacheid=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077 conftest$ac_exeext conftest.$ac_ext
10078 fi
10079
10080
10081 CFLAGS="$xorg_testset_save_CFLAGS"
10082
10083 eval supported=\$$cacheid
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10085 printf "%s\n" "$supported" >&6; }
10086 if test "$supported" = "yes" ; then
10087 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10088 found="yes"
10089 fi
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106 xorg_testset_save_CFLAGS="$CFLAGS"
10107
10108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10113 then :
10114 printf %s "(cached) " >&6
10115 else $as_nop
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"
10121 then :
10122 xorg_cv_cc_flag_unknown_warning_option=yes
10123 else $as_nop
10124 xorg_cv_cc_flag_unknown_warning_option=no
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127 fi
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131 CFLAGS="$xorg_testset_save_CFLAGS"
10132 fi
10133
10134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137 fi
10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142 then :
10143 printf %s "(cached) " >&6
10144 else $as_nop
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 int i;
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"
10150 then :
10151 xorg_cv_cc_flag_unused_command_line_argument=yes
10152 else $as_nop
10153 xorg_cv_cc_flag_unused_command_line_argument=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10156 fi
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 found="no"
10164
10165 if test $found = "no" ; then
10166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168 fi
10169
10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 fi
10173
10174 CFLAGS="$CFLAGS -Wtrigraphs"
10175
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10177 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10178 cacheid=xorg_cv_cc_flag__Wtrigraphs
10179 if eval test \${$cacheid+y}
10180 then :
10181 printf %s "(cached) " >&6
10182 else $as_nop
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 int
10187 main (void)
10188 {
10189
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"
10195 then :
10196 eval $cacheid=yes
10197 else $as_nop
10198 eval $cacheid=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201 conftest$ac_exeext conftest.$ac_ext
10202 fi
10203
10204
10205 CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207 eval supported=\$$cacheid
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209 printf "%s\n" "$supported" >&6; }
10210 if test "$supported" = "yes" ; then
10211 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10212 found="yes"
10213 fi
10214 fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230 xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10237 then :
10238 printf %s "(cached) " >&6
10239 else $as_nop
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 int i;
10243 _ACEOF
10244 if ac_fn_c_try_compile "$LINENO"
10245 then :
10246 xorg_cv_cc_flag_unknown_warning_option=yes
10247 else $as_nop
10248 xorg_cv_cc_flag_unknown_warning_option=no
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251 fi
10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10255 CFLAGS="$xorg_testset_save_CFLAGS"
10256 fi
10257
10258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261 fi
10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10266 then :
10267 printf %s "(cached) " >&6
10268 else $as_nop
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 int i;
10272 _ACEOF
10273 if ac_fn_c_try_compile "$LINENO"
10274 then :
10275 xorg_cv_cc_flag_unused_command_line_argument=yes
10276 else $as_nop
10277 xorg_cv_cc_flag_unused_command_line_argument=no
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10280 fi
10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284 CFLAGS="$xorg_testset_save_CFLAGS"
10285 fi
10286
10287 found="no"
10288
10289 if test $found = "no" ; then
10290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292 fi
10293
10294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296 fi
10297
10298 CFLAGS="$CFLAGS -Warray-bounds"
10299
10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10301 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10302 cacheid=xorg_cv_cc_flag__Warray_bounds
10303 if eval test \${$cacheid+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else $as_nop
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 int
10311 main (void)
10312 {
10313
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"
10319 then :
10320 eval $cacheid=yes
10321 else $as_nop
10322 eval $cacheid=no
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10325 conftest$ac_exeext conftest.$ac_ext
10326 fi
10327
10328
10329 CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331 eval supported=\$$cacheid
10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333 printf "%s\n" "$supported" >&6; }
10334 if test "$supported" = "yes" ; then
10335 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10336 found="yes"
10337 fi
10338 fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else $as_nop
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int i;
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"
10369 then :
10370 xorg_cv_cc_flag_unknown_warning_option=yes
10371 else $as_nop
10372 xorg_cv_cc_flag_unknown_warning_option=no
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375 fi
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380 fi
10381
10382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385 fi
10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else $as_nop
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 int i;
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"
10398 then :
10399 xorg_cv_cc_flag_unused_command_line_argument=yes
10400 else $as_nop
10401 xorg_cv_cc_flag_unused_command_line_argument=no
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10404 fi
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408 CFLAGS="$xorg_testset_save_CFLAGS"
10409 fi
10410
10411 found="no"
10412
10413 if test $found = "no" ; then
10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416 fi
10417
10418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420 fi
10421
10422 CFLAGS="$CFLAGS -Wwrite-strings"
10423
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10425 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10426 cacheid=xorg_cv_cc_flag__Wwrite_strings
10427 if eval test \${$cacheid+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 int i;
10434 int
10435 main (void)
10436 {
10437
10438 ;
10439 return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_c_try_link "$LINENO"
10443 then :
10444 eval $cacheid=yes
10445 else $as_nop
10446 eval $cacheid=no
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449 conftest$ac_exeext conftest.$ac_ext
10450 fi
10451
10452
10453 CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455 eval supported=\$$cacheid
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457 printf "%s\n" "$supported" >&6; }
10458 if test "$supported" = "yes" ; then
10459 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10460 found="yes"
10461 fi
10462 fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478 xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485 then :
10486 printf %s "(cached) " >&6
10487 else $as_nop
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 int i;
10491 _ACEOF
10492 if ac_fn_c_try_compile "$LINENO"
10493 then :
10494 xorg_cv_cc_flag_unknown_warning_option=yes
10495 else $as_nop
10496 xorg_cv_cc_flag_unknown_warning_option=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499 fi
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504 fi
10505
10506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509 fi
10510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514 then :
10515 printf %s "(cached) " >&6
10516 else $as_nop
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519 int i;
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"
10522 then :
10523 xorg_cv_cc_flag_unused_command_line_argument=yes
10524 else $as_nop
10525 xorg_cv_cc_flag_unused_command_line_argument=no
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528 fi
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10532 CFLAGS="$xorg_testset_save_CFLAGS"
10533 fi
10534
10535 found="no"
10536
10537 if test $found = "no" ; then
10538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540 fi
10541
10542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544 fi
10545
10546 CFLAGS="$CFLAGS -Waddress"
10547
10548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10549 printf %s "checking if $CC supports -Waddress... " >&6; }
10550 cacheid=xorg_cv_cc_flag__Waddress
10551 if eval test \${$cacheid+y}
10552 then :
10553 printf %s "(cached) " >&6
10554 else $as_nop
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 int i;
10558 int
10559 main (void)
10560 {
10561
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"
10567 then :
10568 eval $cacheid=yes
10569 else $as_nop
10570 eval $cacheid=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573 conftest$ac_exeext conftest.$ac_ext
10574 fi
10575
10576
10577 CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579 eval supported=\$$cacheid
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581 printf "%s\n" "$supported" >&6; }
10582 if test "$supported" = "yes" ; then
10583 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10584 found="yes"
10585 fi
10586 fi
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602 xorg_testset_save_CFLAGS="$CFLAGS"
10603
10604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10608 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10609 then :
10610 printf %s "(cached) " >&6
10611 else $as_nop
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614 int i;
10615 _ACEOF
10616 if ac_fn_c_try_compile "$LINENO"
10617 then :
10618 xorg_cv_cc_flag_unknown_warning_option=yes
10619 else $as_nop
10620 xorg_cv_cc_flag_unknown_warning_option=no
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10623 fi
10624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10627 CFLAGS="$xorg_testset_save_CFLAGS"
10628 fi
10629
10630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10633 fi
10634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10638 then :
10639 printf %s "(cached) " >&6
10640 else $as_nop
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 int i;
10644 _ACEOF
10645 if ac_fn_c_try_compile "$LINENO"
10646 then :
10647 xorg_cv_cc_flag_unused_command_line_argument=yes
10648 else $as_nop
10649 xorg_cv_cc_flag_unused_command_line_argument=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10652 fi
10653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10654 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10656 CFLAGS="$xorg_testset_save_CFLAGS"
10657 fi
10658
10659 found="no"
10660
10661 if test $found = "no" ; then
10662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10664 fi
10665
10666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10668 fi
10669
10670 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10671
10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10673 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10674 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10675 if eval test \${$cacheid+y}
10676 then :
10677 printf %s "(cached) " >&6
10678 else $as_nop
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 int i;
10682 int
10683 main (void)
10684 {
10685
10686 ;
10687 return 0;
10688 }
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"
10691 then :
10692 eval $cacheid=yes
10693 else $as_nop
10694 eval $cacheid=no
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10697 conftest$ac_exeext conftest.$ac_ext
10698 fi
10699
10700
10701 CFLAGS="$xorg_testset_save_CFLAGS"
10702
10703 eval supported=\$$cacheid
10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10705 printf "%s\n" "$supported" >&6; }
10706 if test "$supported" = "yes" ; then
10707 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10708 found="yes"
10709 fi
10710 fi
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726 xorg_testset_save_CFLAGS="$CFLAGS"
10727
10728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10732 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10733 then :
10734 printf %s "(cached) " >&6
10735 else $as_nop
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 int i;
10739 _ACEOF
10740 if ac_fn_c_try_compile "$LINENO"
10741 then :
10742 xorg_cv_cc_flag_unknown_warning_option=yes
10743 else $as_nop
10744 xorg_cv_cc_flag_unknown_warning_option=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10747 fi
10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10749 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10751 CFLAGS="$xorg_testset_save_CFLAGS"
10752 fi
10753
10754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10757 fi
10758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10760 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10761 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10762 then :
10763 printf %s "(cached) " >&6
10764 else $as_nop
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 int i;
10768 _ACEOF
10769 if ac_fn_c_try_compile "$LINENO"
10770 then :
10771 xorg_cv_cc_flag_unused_command_line_argument=yes
10772 else $as_nop
10773 xorg_cv_cc_flag_unused_command_line_argument=no
10774 fi
10775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10776 fi
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10778 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10780 CFLAGS="$xorg_testset_save_CFLAGS"
10781 fi
10782
10783 found="no"
10784
10785 if test $found = "no" ; then
10786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10788 fi
10789
10790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10792 fi
10793
10794 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10795
10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10797 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10798 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10799 if eval test \${$cacheid+y}
10800 then :
10801 printf %s "(cached) " >&6
10802 else $as_nop
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805 int i;
10806 int
10807 main (void)
10808 {
10809
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"
10815 then :
10816 eval $cacheid=yes
10817 else $as_nop
10818 eval $cacheid=no
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10821 conftest$ac_exeext conftest.$ac_ext
10822 fi
10823
10824
10825 CFLAGS="$xorg_testset_save_CFLAGS"
10826
10827 eval supported=\$$cacheid
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10829 printf "%s\n" "$supported" >&6; }
10830 if test "$supported" = "yes" ; then
10831 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10832 found="yes"
10833 fi
10834 fi
10835
10836
10837 fi
10838
10839
10840
10841
10842
10843
10844
10845 CWARNFLAGS="$BASE_CFLAGS"
10846 if test "x$GCC" = xyes ; then
10847 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10848 fi
10849
10850
10851
10852
10853
10854
10855
10856
10857 # Check whether --enable-strict-compilation was given.
10858 if test ${enable_strict_compilation+y}
10859 then :
10860 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10861 else $as_nop
10862 STRICT_COMPILE=no
10863 fi
10864
10865
10866
10867
10868
10869
10870 STRICT_CFLAGS=""
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884 xorg_testset_save_CFLAGS="$CFLAGS"
10885
10886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10890 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10891 then :
10892 printf %s "(cached) " >&6
10893 else $as_nop
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 int i;
10897 _ACEOF
10898 if ac_fn_c_try_compile "$LINENO"
10899 then :
10900 xorg_cv_cc_flag_unknown_warning_option=yes
10901 else $as_nop
10902 xorg_cv_cc_flag_unknown_warning_option=no
10903 fi
10904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10905 fi
10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10909 CFLAGS="$xorg_testset_save_CFLAGS"
10910 fi
10911
10912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10915 fi
10916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10920 then :
10921 printf %s "(cached) " >&6
10922 else $as_nop
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 int i;
10926 _ACEOF
10927 if ac_fn_c_try_compile "$LINENO"
10928 then :
10929 xorg_cv_cc_flag_unused_command_line_argument=yes
10930 else $as_nop
10931 xorg_cv_cc_flag_unused_command_line_argument=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10934 fi
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10936 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10938 CFLAGS="$xorg_testset_save_CFLAGS"
10939 fi
10940
10941 found="no"
10942
10943 if test $found = "no" ; then
10944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10946 fi
10947
10948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10950 fi
10951
10952 CFLAGS="$CFLAGS -pedantic"
10953
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10955 printf %s "checking if $CC supports -pedantic... " >&6; }
10956 cacheid=xorg_cv_cc_flag__pedantic
10957 if eval test \${$cacheid+y}
10958 then :
10959 printf %s "(cached) " >&6
10960 else $as_nop
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963 int i;
10964 int
10965 main (void)
10966 {
10967
10968 ;
10969 return 0;
10970 }
10971 _ACEOF
10972 if ac_fn_c_try_link "$LINENO"
10973 then :
10974 eval $cacheid=yes
10975 else $as_nop
10976 eval $cacheid=no
10977 fi
10978 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10979 conftest$ac_exeext conftest.$ac_ext
10980 fi
10981
10982
10983 CFLAGS="$xorg_testset_save_CFLAGS"
10984
10985 eval supported=\$$cacheid
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10987 printf "%s\n" "$supported" >&6; }
10988 if test "$supported" = "yes" ; then
10989 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10990 found="yes"
10991 fi
10992 fi
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008 xorg_testset_save_CFLAGS="$CFLAGS"
11009
11010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11014 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11015 then :
11016 printf %s "(cached) " >&6
11017 else $as_nop
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 int i;
11021 _ACEOF
11022 if ac_fn_c_try_compile "$LINENO"
11023 then :
11024 xorg_cv_cc_flag_unknown_warning_option=yes
11025 else $as_nop
11026 xorg_cv_cc_flag_unknown_warning_option=no
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11029 fi
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11031 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11033 CFLAGS="$xorg_testset_save_CFLAGS"
11034 fi
11035
11036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11039 fi
11040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11042 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11043 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11044 then :
11045 printf %s "(cached) " >&6
11046 else $as_nop
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049 int i;
11050 _ACEOF
11051 if ac_fn_c_try_compile "$LINENO"
11052 then :
11053 xorg_cv_cc_flag_unused_command_line_argument=yes
11054 else $as_nop
11055 xorg_cv_cc_flag_unused_command_line_argument=no
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11058 fi
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11060 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11062 CFLAGS="$xorg_testset_save_CFLAGS"
11063 fi
11064
11065 found="no"
11066
11067 if test $found = "no" ; then
11068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070 fi
11071
11072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074 fi
11075
11076 CFLAGS="$CFLAGS -Werror"
11077
11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11079 printf %s "checking if $CC supports -Werror... " >&6; }
11080 cacheid=xorg_cv_cc_flag__Werror
11081 if eval test \${$cacheid+y}
11082 then :
11083 printf %s "(cached) " >&6
11084 else $as_nop
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 int i;
11088 int
11089 main (void)
11090 {
11091
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_link "$LINENO"
11097 then :
11098 eval $cacheid=yes
11099 else $as_nop
11100 eval $cacheid=no
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11103 conftest$ac_exeext conftest.$ac_ext
11104 fi
11105
11106
11107 CFLAGS="$xorg_testset_save_CFLAGS"
11108
11109 eval supported=\$$cacheid
11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11111 printf "%s\n" "$supported" >&6; }
11112 if test "$supported" = "yes" ; then
11113 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11114 found="yes"
11115 fi
11116 fi
11117
11118 if test $found = "no" ; then
11119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11121 fi
11122
11123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11125 fi
11126
11127 CFLAGS="$CFLAGS -errwarn"
11128
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11130 printf %s "checking if $CC supports -errwarn... " >&6; }
11131 cacheid=xorg_cv_cc_flag__errwarn
11132 if eval test \${$cacheid+y}
11133 then :
11134 printf %s "(cached) " >&6
11135 else $as_nop
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138 int i;
11139 int
11140 main (void)
11141 {
11142
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"
11148 then :
11149 eval $cacheid=yes
11150 else $as_nop
11151 eval $cacheid=no
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11154 conftest$ac_exeext conftest.$ac_ext
11155 fi
11156
11157
11158 CFLAGS="$xorg_testset_save_CFLAGS"
11159
11160 eval supported=\$$cacheid
11161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11162 printf "%s\n" "$supported" >&6; }
11163 if test "$supported" = "yes" ; then
11164 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11165 found="yes"
11166 fi
11167 fi
11168
11169
11170
11171 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11172 # activate it with -Werror, so we add it here explicitly.
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186 xorg_testset_save_CFLAGS="$CFLAGS"
11187
11188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11191 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11192 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11193 then :
11194 printf %s "(cached) " >&6
11195 else $as_nop
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198 int i;
11199 _ACEOF
11200 if ac_fn_c_try_compile "$LINENO"
11201 then :
11202 xorg_cv_cc_flag_unknown_warning_option=yes
11203 else $as_nop
11204 xorg_cv_cc_flag_unknown_warning_option=no
11205 fi
11206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11207 fi
11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11209 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11211 CFLAGS="$xorg_testset_save_CFLAGS"
11212 fi
11213
11214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11217 fi
11218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11222 then :
11223 printf %s "(cached) " >&6
11224 else $as_nop
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 int i;
11228 _ACEOF
11229 if ac_fn_c_try_compile "$LINENO"
11230 then :
11231 xorg_cv_cc_flag_unused_command_line_argument=yes
11232 else $as_nop
11233 xorg_cv_cc_flag_unused_command_line_argument=no
11234 fi
11235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11236 fi
11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11240 CFLAGS="$xorg_testset_save_CFLAGS"
11241 fi
11242
11243 found="no"
11244
11245 if test $found = "no" ; then
11246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11248 fi
11249
11250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11252 fi
11253
11254 CFLAGS="$CFLAGS -Werror=attributes"
11255
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11257 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11258 cacheid=xorg_cv_cc_flag__Werror_attributes
11259 if eval test \${$cacheid+y}
11260 then :
11261 printf %s "(cached) " >&6
11262 else $as_nop
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265 int i;
11266 int
11267 main (void)
11268 {
11269
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"
11275 then :
11276 eval $cacheid=yes
11277 else $as_nop
11278 eval $cacheid=no
11279 fi
11280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11281 conftest$ac_exeext conftest.$ac_ext
11282 fi
11283
11284
11285 CFLAGS="$xorg_testset_save_CFLAGS"
11286
11287 eval supported=\$$cacheid
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11289 printf "%s\n" "$supported" >&6; }
11290 if test "$supported" = "yes" ; then
11291 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11292 found="yes"
11293 fi
11294 fi
11295
11296
11297
11298 if test "x$STRICT_COMPILE" = "xyes"; then
11299 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11300 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11301 fi
11302
11303
11304
11305
11306
11307
11308
11309
11310 cat >>confdefs.h <<_ACEOF
11311 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11312 _ACEOF
11313
11314 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11315 if test "x$PVM" = "x"; then
11316 PVM="0"
11317 fi
11318
11319 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11320
11321 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11322 if test "x$PVP" = "x"; then
11323 PVP="0"
11324 fi
11325
11326 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11327
11328
11329
11330 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11331 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11332 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11333 touch \$(top_srcdir)/ChangeLog; \
11334 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11335
11336
11337
11338
11339 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11340 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11341 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11342 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11343 touch \$(top_srcdir)/INSTALL; \
11344 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11345
11346
11347
11348
11349
11350
11351 case $host_os in
11352 solaris*)
11353 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11354 # check for a man page file found in later versions that use
11355 # traditional section numbers instead
11356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11357 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11358 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11359 then :
11360 printf %s "(cached) " >&6
11361 else $as_nop
11362 test "$cross_compiling" = yes &&
11363 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11364 if test -r "/usr/share/man/man7/attributes.7"; then
11365 ac_cv_file__usr_share_man_man7_attributes_7=yes
11366 else
11367 ac_cv_file__usr_share_man_man7_attributes_7=no
11368 fi
11369 fi
11370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11371 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11372 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11373 then :
11374 SYSV_MAN_SECTIONS=false
11375 else $as_nop
11376 SYSV_MAN_SECTIONS=true
11377 fi
11378
11379 ;;
11380 *) SYSV_MAN_SECTIONS=false ;;
11381 esac
11382
11383 if test x$APP_MAN_SUFFIX = x ; then
11384 APP_MAN_SUFFIX=1
11385 fi
11386 if test x$APP_MAN_DIR = x ; then
11387 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11388 fi
11389
11390 if test x$LIB_MAN_SUFFIX = x ; then
11391 LIB_MAN_SUFFIX=3
11392 fi
11393 if test x$LIB_MAN_DIR = x ; then
11394 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11395 fi
11396
11397 if test x$FILE_MAN_SUFFIX = x ; then
11398 case $SYSV_MAN_SECTIONS in
11399 true) FILE_MAN_SUFFIX=4 ;;
11400 *) FILE_MAN_SUFFIX=5 ;;
11401 esac
11402 fi
11403 if test x$FILE_MAN_DIR = x ; then
11404 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11405 fi
11406
11407 if test x$MISC_MAN_SUFFIX = x ; then
11408 case $SYSV_MAN_SECTIONS in
11409 true) MISC_MAN_SUFFIX=5 ;;
11410 *) MISC_MAN_SUFFIX=7 ;;
11411 esac
11412 fi
11413 if test x$MISC_MAN_DIR = x ; then
11414 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11415 fi
11416
11417 if test x$DRIVER_MAN_SUFFIX = x ; then
11418 case $SYSV_MAN_SECTIONS in
11419 true) DRIVER_MAN_SUFFIX=7 ;;
11420 *) DRIVER_MAN_SUFFIX=4 ;;
11421 esac
11422 fi
11423 if test x$DRIVER_MAN_DIR = x ; then
11424 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11425 fi
11426
11427 if test x$ADMIN_MAN_SUFFIX = x ; then
11428 case $SYSV_MAN_SECTIONS in
11429 true) ADMIN_MAN_SUFFIX=1m ;;
11430 *) ADMIN_MAN_SUFFIX=8 ;;
11431 esac
11432 fi
11433 if test x$ADMIN_MAN_DIR = x ; then
11434 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11435 fi
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451 XORG_MAN_PAGE="X Version 11"
11452
11453 MAN_SUBSTS="\
11454 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11455 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11456 -e 's|__xservername__|Xorg|g' \
11457 -e 's|__xconfigfile__|xorg.conf|g' \
11458 -e 's|__projectroot__|\$(prefix)|g' \
11459 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11460 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11461 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11462 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11463 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11464 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11465 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11466
11467
11468
11469 # Check whether --enable-silent-rules was given.
11470 if test ${enable_silent_rules+y}
11471 then :
11472 enableval=$enable_silent_rules;
11473 fi
11474
11475 case $enable_silent_rules in # (((
11476 yes) AM_DEFAULT_VERBOSITY=0;;
11477 no) AM_DEFAULT_VERBOSITY=1;;
11478 *) AM_DEFAULT_VERBOSITY=0;;
11479 esac
11480 am_make=${MAKE-make}
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11482 printf %s "checking whether $am_make supports nested variables... " >&6; }
11483 if test ${am_cv_make_support_nested_variables+y}
11484 then :
11485 printf %s "(cached) " >&6
11486 else $as_nop
11487 if printf "%s\n" 'TRUE=$(BAR$(V))
11488 BAR0=false
11489 BAR1=true
11490 V=1
11491 am__doit:
11492 @$(TRUE)
11493 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11494 am_cv_make_support_nested_variables=yes
11495 else
11496 am_cv_make_support_nested_variables=no
11497 fi
11498 fi
11499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11500 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11501 if test $am_cv_make_support_nested_variables = yes; then
11502 AM_V='$(V)'
11503 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11504 else
11505 AM_V=$AM_DEFAULT_VERBOSITY
11506 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11507 fi
11508 AM_BACKSLASH='\'
11509
11510
11511
11512
11513 # Initialize libtool
11514 # Check whether --enable-static was given.
11515 if test ${enable_static+y}
11516 then :
11517 enableval=$enable_static; p=${PACKAGE-default}
11518 case $enableval in
11519 yes) enable_static=yes ;;
11520 no) enable_static=no ;;
11521 *)
11522 enable_static=no
11523 # Look at the argument we got. We use all the common list separators.
11524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11525 for pkg in $enableval; do
11526 IFS=$lt_save_ifs
11527 if test "X$pkg" = "X$p"; then
11528 enable_static=yes
11529 fi
11530 done
11531 IFS=$lt_save_ifs
11532 ;;
11533 esac
11534 else $as_nop
11535 enable_static=no
11536 fi
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546 case `pwd` in
11547 *\ * | *\ *)
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11549 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11550 esac
11551
11552
11553
11554 macro_version='2.4.7'
11555 macro_revision='2.4.7'
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570 ltmain=$ac_aux_dir/ltmain.sh
11571
11572 # Backslashify metacharacters that are still active within
11573 # double-quoted strings.
11574 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11575
11576 # Same as above, but do not quote variable references.
11577 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11578
11579 # Sed substitution to delay expansion of an escaped shell variable in a
11580 # double_quote_subst'ed string.
11581 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11582
11583 # Sed substitution to delay expansion of an escaped single quote.
11584 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11585
11586 # Sed substitution to avoid accidental globbing in evaled expressions
11587 no_glob_subst='s/\*/\\\*/g'
11588
11589 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11590 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11591 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11592
11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11594 printf %s "checking how to print strings... " >&6; }
11595 # Test print first, because it will be a builtin if present.
11596 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11597 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11598 ECHO='print -r --'
11599 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11600 ECHO='printf %s\n'
11601 else
11602 # Use this function as a fallback that always works.
11603 func_fallback_echo ()
11604 {
11605 eval 'cat <<_LTECHO_EOF
11606 $1
11607 _LTECHO_EOF'
11608 }
11609 ECHO='func_fallback_echo'
11610 fi
11611
11612 # func_echo_all arg...
11613 # Invoke $ECHO with all args, space-separated.
11614 func_echo_all ()
11615 {
11616 $ECHO ""
11617 }
11618
11619 case $ECHO in
11620 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11621 printf "%s\n" "printf" >&6; } ;;
11622 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11623 printf "%s\n" "print -r" >&6; } ;;
11624 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11625 printf "%s\n" "cat" >&6; } ;;
11626 esac
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11642 printf %s "checking for a sed that does not truncate output... " >&6; }
11643 if test ${ac_cv_path_SED+y}
11644 then :
11645 printf %s "(cached) " >&6
11646 else $as_nop
11647 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11648 for ac_i in 1 2 3 4 5 6 7; do
11649 ac_script="$ac_script$as_nl$ac_script"
11650 done
11651 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11652 { ac_script=; unset ac_script;}
11653 if test -z "$SED"; then
11654 ac_path_SED_found=false
11655 # Loop through the user's path and test for each of PROGNAME-LIST
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11658 do
11659 IFS=$as_save_IFS
11660 case $as_dir in #(((
11661 '') as_dir=./ ;;
11662 */) ;;
11663 *) as_dir=$as_dir/ ;;
11664 esac
11665 for ac_prog in sed gsed
11666 do
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11669 as_fn_executable_p "$ac_path_SED" || continue
11670 # Check for GNU ac_path_SED and select it if it is found.
11671 # Check for GNU $ac_path_SED
11672 case `"$ac_path_SED" --version 2>&1` in
11673 *GNU*)
11674 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11675 *)
11676 ac_count=0
11677 printf %s 0123456789 >"conftest.in"
11678 while :
11679 do
11680 cat "conftest.in" "conftest.in" >"conftest.tmp"
11681 mv "conftest.tmp" "conftest.in"
11682 cp "conftest.in" "conftest.nl"
11683 printf "%s\n" '' >> "conftest.nl"
11684 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11686 as_fn_arith $ac_count + 1 && ac_count=$as_val
11687 if test $ac_count -gt ${ac_path_SED_max-0}; then
11688 # Best one so far, save it but keep looking for a better one
11689 ac_cv_path_SED="$ac_path_SED"
11690 ac_path_SED_max=$ac_count
11691 fi
11692 # 10*(2^10) chars as input seems more than enough
11693 test $ac_count -gt 10 && break
11694 done
11695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11696 esac
11697
11698 $ac_path_SED_found && break 3
11699 done
11700 done
11701 done
11702 IFS=$as_save_IFS
11703 if test -z "$ac_cv_path_SED"; then
11704 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11705 fi
11706 else
11707 ac_cv_path_SED=$SED
11708 fi
11709
11710 fi
11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11712 printf "%s\n" "$ac_cv_path_SED" >&6; }
11713 SED="$ac_cv_path_SED"
11714 rm -f conftest.sed
11715
11716 test -z "$SED" && SED=sed
11717 Xsed="$SED -e 1s/^X//"
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11730 printf %s "checking for grep that handles long lines and -e... " >&6; }
11731 if test ${ac_cv_path_GREP+y}
11732 then :
11733 printf %s "(cached) " >&6
11734 else $as_nop
11735 if test -z "$GREP"; then
11736 ac_path_GREP_found=false
11737 # Loop through the user's path and test for each of PROGNAME-LIST
11738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11740 do
11741 IFS=$as_save_IFS
11742 case $as_dir in #(((
11743 '') as_dir=./ ;;
11744 */) ;;
11745 *) as_dir=$as_dir/ ;;
11746 esac
11747 for ac_prog in grep ggrep
11748 do
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11751 as_fn_executable_p "$ac_path_GREP" || continue
11752 # Check for GNU ac_path_GREP and select it if it is found.
11753 # Check for GNU $ac_path_GREP
11754 case `"$ac_path_GREP" --version 2>&1` in
11755 *GNU*)
11756 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11757 *)
11758 ac_count=0
11759 printf %s 0123456789 >"conftest.in"
11760 while :
11761 do
11762 cat "conftest.in" "conftest.in" >"conftest.tmp"
11763 mv "conftest.tmp" "conftest.in"
11764 cp "conftest.in" "conftest.nl"
11765 printf "%s\n" 'GREP' >> "conftest.nl"
11766 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11768 as_fn_arith $ac_count + 1 && ac_count=$as_val
11769 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11770 # Best one so far, save it but keep looking for a better one
11771 ac_cv_path_GREP="$ac_path_GREP"
11772 ac_path_GREP_max=$ac_count
11773 fi
11774 # 10*(2^10) chars as input seems more than enough
11775 test $ac_count -gt 10 && break
11776 done
11777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11778 esac
11779
11780 $ac_path_GREP_found && break 3
11781 done
11782 done
11783 done
11784 IFS=$as_save_IFS
11785 if test -z "$ac_cv_path_GREP"; then
11786 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11787 fi
11788 else
11789 ac_cv_path_GREP=$GREP
11790 fi
11791
11792 fi
11793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11794 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11795 GREP="$ac_cv_path_GREP"
11796
11797
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11799 printf %s "checking for egrep... " >&6; }
11800 if test ${ac_cv_path_EGREP+y}
11801 then :
11802 printf %s "(cached) " >&6
11803 else $as_nop
11804 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11805 then ac_cv_path_EGREP="$GREP -E"
11806 else
11807 if test -z "$EGREP"; then
11808 ac_path_EGREP_found=false
11809 # Loop through the user's path and test for each of PROGNAME-LIST
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11812 do
11813 IFS=$as_save_IFS
11814 case $as_dir in #(((
11815 '') as_dir=./ ;;
11816 */) ;;
11817 *) as_dir=$as_dir/ ;;
11818 esac
11819 for ac_prog in egrep
11820 do
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11823 as_fn_executable_p "$ac_path_EGREP" || continue
11824 # Check for GNU ac_path_EGREP and select it if it is found.
11825 # Check for GNU $ac_path_EGREP
11826 case `"$ac_path_EGREP" --version 2>&1` in
11827 *GNU*)
11828 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11829 *)
11830 ac_count=0
11831 printf %s 0123456789 >"conftest.in"
11832 while :
11833 do
11834 cat "conftest.in" "conftest.in" >"conftest.tmp"
11835 mv "conftest.tmp" "conftest.in"
11836 cp "conftest.in" "conftest.nl"
11837 printf "%s\n" 'EGREP' >> "conftest.nl"
11838 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11840 as_fn_arith $ac_count + 1 && ac_count=$as_val
11841 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11842 # Best one so far, save it but keep looking for a better one
11843 ac_cv_path_EGREP="$ac_path_EGREP"
11844 ac_path_EGREP_max=$ac_count
11845 fi
11846 # 10*(2^10) chars as input seems more than enough
11847 test $ac_count -gt 10 && break
11848 done
11849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11850 esac
11851
11852 $ac_path_EGREP_found && break 3
11853 done
11854 done
11855 done
11856 IFS=$as_save_IFS
11857 if test -z "$ac_cv_path_EGREP"; then
11858 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11859 fi
11860 else
11861 ac_cv_path_EGREP=$EGREP
11862 fi
11863
11864 fi
11865 fi
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11867 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11868 EGREP="$ac_cv_path_EGREP"
11869
11870
11871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11872 printf %s "checking for fgrep... " >&6; }
11873 if test ${ac_cv_path_FGREP+y}
11874 then :
11875 printf %s "(cached) " >&6
11876 else $as_nop
11877 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11878 then ac_cv_path_FGREP="$GREP -F"
11879 else
11880 if test -z "$FGREP"; then
11881 ac_path_FGREP_found=false
11882 # Loop through the user's path and test for each of PROGNAME-LIST
11883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11885 do
11886 IFS=$as_save_IFS
11887 case $as_dir in #(((
11888 '') as_dir=./ ;;
11889 */) ;;
11890 *) as_dir=$as_dir/ ;;
11891 esac
11892 for ac_prog in fgrep
11893 do
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11896 as_fn_executable_p "$ac_path_FGREP" || continue
11897 # Check for GNU ac_path_FGREP and select it if it is found.
11898 # Check for GNU $ac_path_FGREP
11899 case `"$ac_path_FGREP" --version 2>&1` in
11900 *GNU*)
11901 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11902 *)
11903 ac_count=0
11904 printf %s 0123456789 >"conftest.in"
11905 while :
11906 do
11907 cat "conftest.in" "conftest.in" >"conftest.tmp"
11908 mv "conftest.tmp" "conftest.in"
11909 cp "conftest.in" "conftest.nl"
11910 printf "%s\n" 'FGREP' >> "conftest.nl"
11911 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11913 as_fn_arith $ac_count + 1 && ac_count=$as_val
11914 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11915 # Best one so far, save it but keep looking for a better one
11916 ac_cv_path_FGREP="$ac_path_FGREP"
11917 ac_path_FGREP_max=$ac_count
11918 fi
11919 # 10*(2^10) chars as input seems more than enough
11920 test $ac_count -gt 10 && break
11921 done
11922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11923 esac
11924
11925 $ac_path_FGREP_found && break 3
11926 done
11927 done
11928 done
11929 IFS=$as_save_IFS
11930 if test -z "$ac_cv_path_FGREP"; then
11931 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11932 fi
11933 else
11934 ac_cv_path_FGREP=$FGREP
11935 fi
11936
11937 fi
11938 fi
11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11940 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11941 FGREP="$ac_cv_path_FGREP"
11942
11943
11944 test -z "$GREP" && GREP=grep
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 # Check whether --with-gnu-ld was given.
11965 if test ${with_gnu_ld+y}
11966 then :
11967 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11968 else $as_nop
11969 with_gnu_ld=no
11970 fi
11971
11972 ac_prog=ld
11973 if test yes = "$GCC"; then
11974 # Check if gcc -print-prog-name=ld gives a path.
11975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11976 printf %s "checking for ld used by $CC... " >&6; }
11977 case $host in
11978 *-*-mingw*)
11979 # gcc leaves a trailing carriage return, which upsets mingw
11980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11981 *)
11982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11983 esac
11984 case $ac_prog in
11985 # Accept absolute paths.
11986 [\\/]* | ?:[\\/]*)
11987 re_direlt='/[^/][^/]*/\.\./'
11988 # Canonicalize the pathname of ld
11989 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11990 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11991 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11992 done
11993 test -z "$LD" && LD=$ac_prog
11994 ;;
11995 "")
11996 # If it fails, then pretend we aren't using GCC.
11997 ac_prog=ld
11998 ;;
11999 *)
12000 # If it is relative, then search for the first ld in PATH.
12001 with_gnu_ld=unknown
12002 ;;
12003 esac
12004 elif test yes = "$with_gnu_ld"; then
12005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12006 printf %s "checking for GNU ld... " >&6; }
12007 else
12008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12009 printf %s "checking for non-GNU ld... " >&6; }
12010 fi
12011 if test ${lt_cv_path_LD+y}
12012 then :
12013 printf %s "(cached) " >&6
12014 else $as_nop
12015 if test -z "$LD"; then
12016 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12017 for ac_dir in $PATH; do
12018 IFS=$lt_save_ifs
12019 test -z "$ac_dir" && ac_dir=.
12020 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12021 lt_cv_path_LD=$ac_dir/$ac_prog
12022 # Check to see if the program is GNU ld. I'd rather use --version,
12023 # but apparently some variants of GNU ld only accept -v.
12024 # Break only if it was the GNU/non-GNU ld that we prefer.
12025 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12026 *GNU* | *'with BFD'*)
12027 test no != "$with_gnu_ld" && break
12028 ;;
12029 *)
12030 test yes != "$with_gnu_ld" && break
12031 ;;
12032 esac
12033 fi
12034 done
12035 IFS=$lt_save_ifs
12036 else
12037 lt_cv_path_LD=$LD # Let the user override the test with a path.
12038 fi
12039 fi
12040
12041 LD=$lt_cv_path_LD
12042 if test -n "$LD"; then
12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12044 printf "%s\n" "$LD" >&6; }
12045 else
12046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 printf "%s\n" "no" >&6; }
12048 fi
12049 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12051 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12052 if test ${lt_cv_prog_gnu_ld+y}
12053 then :
12054 printf %s "(cached) " >&6
12055 else $as_nop
12056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12057 case `$LD -v 2>&1 </dev/null` in
12058 *GNU* | *'with BFD'*)
12059 lt_cv_prog_gnu_ld=yes
12060 ;;
12061 *)
12062 lt_cv_prog_gnu_ld=no
12063 ;;
12064 esac
12065 fi
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12067 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12068 with_gnu_ld=$lt_cv_prog_gnu_ld
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12079 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12080 if test ${lt_cv_path_NM+y}
12081 then :
12082 printf %s "(cached) " >&6
12083 else $as_nop
12084 if test -n "$NM"; then
12085 # Let the user override the test.
12086 lt_cv_path_NM=$NM
12087 else
12088 lt_nm_to_check=${ac_tool_prefix}nm
12089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12090 lt_nm_to_check="$lt_nm_to_check nm"
12091 fi
12092 for lt_tmp_nm in $lt_nm_to_check; do
12093 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12095 IFS=$lt_save_ifs
12096 test -z "$ac_dir" && ac_dir=.
12097 tmp_nm=$ac_dir/$lt_tmp_nm
12098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12099 # Check to see if the nm accepts a BSD-compat flag.
12100 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12101 # nm: unknown option "B" ignored
12102 # Tru64's nm complains that /dev/null is an invalid object file
12103 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12104 case $build_os in
12105 mingw*) lt_bad_file=conftest.nm/nofile ;;
12106 *) lt_bad_file=/dev/null ;;
12107 esac
12108 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12109 *$lt_bad_file* | *'Invalid file or object type'*)
12110 lt_cv_path_NM="$tmp_nm -B"
12111 break 2
12112 ;;
12113 *)
12114 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12115 */dev/null*)
12116 lt_cv_path_NM="$tmp_nm -p"
12117 break 2
12118 ;;
12119 *)
12120 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12121 continue # so that we can try to find one that supports BSD flags
12122 ;;
12123 esac
12124 ;;
12125 esac
12126 fi
12127 done
12128 IFS=$lt_save_ifs
12129 done
12130 : ${lt_cv_path_NM=no}
12131 fi
12132 fi
12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12134 printf "%s\n" "$lt_cv_path_NM" >&6; }
12135 if test no != "$lt_cv_path_NM"; then
12136 NM=$lt_cv_path_NM
12137 else
12138 # Didn't find any BSD compatible name lister, look for dumpbin.
12139 if test -n "$DUMPBIN"; then :
12140 # Let the user override the test.
12141 else
12142 if test -n "$ac_tool_prefix"; then
12143 for ac_prog in dumpbin "link -dump"
12144 do
12145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 printf %s "checking for $ac_word... " >&6; }
12149 if test ${ac_cv_prog_DUMPBIN+y}
12150 then :
12151 printf %s "(cached) " >&6
12152 else $as_nop
12153 if test -n "$DUMPBIN"; then
12154 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 case $as_dir in #(((
12161 '') as_dir=./ ;;
12162 */) ;;
12163 *) as_dir=$as_dir/ ;;
12164 esac
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12167 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12169 break 2
12170 fi
12171 done
12172 done
12173 IFS=$as_save_IFS
12174
12175 fi
12176 fi
12177 DUMPBIN=$ac_cv_prog_DUMPBIN
12178 if test -n "$DUMPBIN"; then
12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12180 printf "%s\n" "$DUMPBIN" >&6; }
12181 else
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 printf "%s\n" "no" >&6; }
12184 fi
12185
12186
12187 test -n "$DUMPBIN" && break
12188 done
12189 fi
12190 if test -z "$DUMPBIN"; then
12191 ac_ct_DUMPBIN=$DUMPBIN
12192 for ac_prog in dumpbin "link -dump"
12193 do
12194 # Extract the first word of "$ac_prog", so it can be a program name with args.
12195 set dummy $ac_prog; ac_word=$2
12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 printf %s "checking for $ac_word... " >&6; }
12198 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12199 then :
12200 printf %s "(cached) " >&6
12201 else $as_nop
12202 if test -n "$ac_ct_DUMPBIN"; then
12203 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12204 else
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $PATH
12207 do
12208 IFS=$as_save_IFS
12209 case $as_dir in #(((
12210 '') as_dir=./ ;;
12211 */) ;;
12212 *) as_dir=$as_dir/ ;;
12213 esac
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12216 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12218 break 2
12219 fi
12220 done
12221 done
12222 IFS=$as_save_IFS
12223
12224 fi
12225 fi
12226 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12227 if test -n "$ac_ct_DUMPBIN"; then
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12229 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12230 else
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 printf "%s\n" "no" >&6; }
12233 fi
12234
12235
12236 test -n "$ac_ct_DUMPBIN" && break
12237 done
12238
12239 if test "x$ac_ct_DUMPBIN" = x; then
12240 DUMPBIN=":"
12241 else
12242 case $cross_compiling:$ac_tool_warned in
12243 yes:)
12244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12245 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12246 ac_tool_warned=yes ;;
12247 esac
12248 DUMPBIN=$ac_ct_DUMPBIN
12249 fi
12250 fi
12251
12252 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12253 *COFF*)
12254 DUMPBIN="$DUMPBIN -symbols -headers"
12255 ;;
12256 *)
12257 DUMPBIN=:
12258 ;;
12259 esac
12260 fi
12261
12262 if test : != "$DUMPBIN"; then
12263 NM=$DUMPBIN
12264 fi
12265 fi
12266 test -z "$NM" && NM=nm
12267
12268
12269
12270
12271
12272
12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12274 printf %s "checking the name lister ($NM) interface... " >&6; }
12275 if test ${lt_cv_nm_interface+y}
12276 then :
12277 printf %s "(cached) " >&6
12278 else $as_nop
12279 lt_cv_nm_interface="BSD nm"
12280 echo "int some_variable = 0;" > conftest.$ac_ext
12281 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12282 (eval "$ac_compile" 2>conftest.err)
12283 cat conftest.err >&5
12284 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12285 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12286 cat conftest.err >&5
12287 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12288 cat conftest.out >&5
12289 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12290 lt_cv_nm_interface="MS dumpbin"
12291 fi
12292 rm -f conftest*
12293 fi
12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12295 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12296
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12298 printf %s "checking whether ln -s works... " >&6; }
12299 LN_S=$as_ln_s
12300 if test "$LN_S" = "ln -s"; then
12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 printf "%s\n" "yes" >&6; }
12303 else
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12305 printf "%s\n" "no, using $LN_S" >&6; }
12306 fi
12307
12308 # find the maximum length of command line arguments
12309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12310 printf %s "checking the maximum length of command line arguments... " >&6; }
12311 if test ${lt_cv_sys_max_cmd_len+y}
12312 then :
12313 printf %s "(cached) " >&6
12314 else $as_nop
12315 i=0
12316 teststring=ABCD
12317
12318 case $build_os in
12319 msdosdjgpp*)
12320 # On DJGPP, this test can blow up pretty badly due to problems in libc
12321 # (any single argument exceeding 2000 bytes causes a buffer overrun
12322 # during glob expansion). Even if it were fixed, the result of this
12323 # check would be larger than it should be.
12324 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12325 ;;
12326
12327 gnu*)
12328 # Under GNU Hurd, this test is not required because there is
12329 # no limit to the length of command line arguments.
12330 # Libtool will interpret -1 as no limit whatsoever
12331 lt_cv_sys_max_cmd_len=-1;
12332 ;;
12333
12334 cygwin* | mingw* | cegcc*)
12335 # On Win9x/ME, this test blows up -- it succeeds, but takes
12336 # about 5 minutes as the teststring grows exponentially.
12337 # Worse, since 9x/ME are not pre-emptively multitasking,
12338 # you end up with a "frozen" computer, even though with patience
12339 # the test eventually succeeds (with a max line length of 256k).
12340 # Instead, let's just punt: use the minimum linelength reported by
12341 # all of the supported platforms: 8192 (on NT/2K/XP).
12342 lt_cv_sys_max_cmd_len=8192;
12343 ;;
12344
12345 mint*)
12346 # On MiNT this can take a long time and run out of memory.
12347 lt_cv_sys_max_cmd_len=8192;
12348 ;;
12349
12350 mint*)
12351 # On MiNT this can take a long time and run out of memory.
12352 lt_cv_sys_max_cmd_len=8192;
12353 ;;
12354
12355 amigaos*)
12356 # On AmigaOS with pdksh, this test takes hours, literally.
12357 # So we just punt and use a minimum line length of 8192.
12358 lt_cv_sys_max_cmd_len=8192;
12359 ;;
12360
12361 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12362 # This has been around since 386BSD, at least. Likely further.
12363 if test -x /sbin/sysctl; then
12364 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12365 elif test -x /usr/sbin/sysctl; then
12366 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12367 else
12368 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12369 fi
12370 # And add a safety zone
12371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12373 ;;
12374
12375 interix*)
12376 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12377 lt_cv_sys_max_cmd_len=196608
12378 ;;
12379
12380 os2*)
12381 # The test takes a long time on OS/2.
12382 lt_cv_sys_max_cmd_len=8192
12383 ;;
12384
12385 osf*)
12386 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12387 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12388 # nice to cause kernel panics so lets avoid the loop below.
12389 # First set a reasonable default.
12390 lt_cv_sys_max_cmd_len=16384
12391 #
12392 if test -x /sbin/sysconfig; then
12393 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12394 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12395 esac
12396 fi
12397 ;;
12398 sco3.2v5*)
12399 lt_cv_sys_max_cmd_len=102400
12400 ;;
12401 sysv5* | sco5v6* | sysv4.2uw2*)
12402 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12403 if test -n "$kargmax"; then
12404 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12405 else
12406 lt_cv_sys_max_cmd_len=32768
12407 fi
12408 ;;
12409 *)
12410 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12411 if test -n "$lt_cv_sys_max_cmd_len" && \
12412 test undefined != "$lt_cv_sys_max_cmd_len"; then
12413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12415 else
12416 # Make teststring a little bigger before we do anything with it.
12417 # a 1K string should be a reasonable start.
12418 for i in 1 2 3 4 5 6 7 8; do
12419 teststring=$teststring$teststring
12420 done
12421 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12422 # If test is not a shell built-in, we'll probably end up computing a
12423 # maximum length that is only half of the actual maximum length, but
12424 # we can't tell.
12425 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12426 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12427 test 17 != "$i" # 1/2 MB should be enough
12428 do
12429 i=`expr $i + 1`
12430 teststring=$teststring$teststring
12431 done
12432 # Only check the string length outside the loop.
12433 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12434 teststring=
12435 # Add a significant safety factor because C++ compilers can tack on
12436 # massive amounts of additional arguments before passing them to the
12437 # linker. It appears as though 1/2 is a usable value.
12438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12439 fi
12440 ;;
12441 esac
12442
12443 fi
12444
12445 if test -n "$lt_cv_sys_max_cmd_len"; then
12446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12447 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12448 else
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12450 printf "%s\n" "none" >&6; }
12451 fi
12452 max_cmd_len=$lt_cv_sys_max_cmd_len
12453
12454
12455
12456
12457
12458
12459 : ${CP="cp -f"}
12460 : ${MV="mv -f"}
12461 : ${RM="rm -f"}
12462
12463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12464 lt_unset=unset
12465 else
12466 lt_unset=false
12467 fi
12468
12469
12470
12471
12472
12473 # test EBCDIC or ASCII
12474 case `echo X|tr X '\101'` in
12475 A) # ASCII based system
12476 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12477 lt_SP2NL='tr \040 \012'
12478 lt_NL2SP='tr \015\012 \040\040'
12479 ;;
12480 *) # EBCDIC based system
12481 lt_SP2NL='tr \100 \n'
12482 lt_NL2SP='tr \r\n \100\100'
12483 ;;
12484 esac
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12495 printf %s "checking how to convert $build file names to $host format... " >&6; }
12496 if test ${lt_cv_to_host_file_cmd+y}
12497 then :
12498 printf %s "(cached) " >&6
12499 else $as_nop
12500 case $host in
12501 *-*-mingw* )
12502 case $build in
12503 *-*-mingw* ) # actually msys
12504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12505 ;;
12506 *-*-cygwin* )
12507 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12508 ;;
12509 * ) # otherwise, assume *nix
12510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12511 ;;
12512 esac
12513 ;;
12514 *-*-cygwin* )
12515 case $build in
12516 *-*-mingw* ) # actually msys
12517 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12518 ;;
12519 *-*-cygwin* )
12520 lt_cv_to_host_file_cmd=func_convert_file_noop
12521 ;;
12522 * ) # otherwise, assume *nix
12523 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12524 ;;
12525 esac
12526 ;;
12527 * ) # unhandled hosts (and "normal" native builds)
12528 lt_cv_to_host_file_cmd=func_convert_file_noop
12529 ;;
12530 esac
12531
12532 fi
12533
12534 to_host_file_cmd=$lt_cv_to_host_file_cmd
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12536 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12537
12538
12539
12540
12541
12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12543 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12544 if test ${lt_cv_to_tool_file_cmd+y}
12545 then :
12546 printf %s "(cached) " >&6
12547 else $as_nop
12548 #assume ordinary cross tools, or native build.
12549 lt_cv_to_tool_file_cmd=func_convert_file_noop
12550 case $host in
12551 *-*-mingw* )
12552 case $build in
12553 *-*-mingw* ) # actually msys
12554 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12555 ;;
12556 esac
12557 ;;
12558 esac
12559
12560 fi
12561
12562 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12564 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12565
12566
12567
12568
12569
12570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12571 printf %s "checking for $LD option to reload object files... " >&6; }
12572 if test ${lt_cv_ld_reload_flag+y}
12573 then :
12574 printf %s "(cached) " >&6
12575 else $as_nop
12576 lt_cv_ld_reload_flag='-r'
12577 fi
12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12579 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12580 reload_flag=$lt_cv_ld_reload_flag
12581 case $reload_flag in
12582 "" | " "*) ;;
12583 *) reload_flag=" $reload_flag" ;;
12584 esac
12585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12586 case $host_os in
12587 cygwin* | mingw* | pw32* | cegcc*)
12588 if test yes != "$GCC"; then
12589 reload_cmds=false
12590 fi
12591 ;;
12592 darwin*)
12593 if test yes = "$GCC"; then
12594 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12595 else
12596 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12597 fi
12598 ;;
12599 esac
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609 if test -n "$ac_tool_prefix"; then
12610 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12611 set dummy ${ac_tool_prefix}file; ac_word=$2
12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 printf %s "checking for $ac_word... " >&6; }
12614 if test ${ac_cv_prog_FILECMD+y}
12615 then :
12616 printf %s "(cached) " >&6
12617 else $as_nop
12618 if test -n "$FILECMD"; then
12619 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12620 else
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12623 do
12624 IFS=$as_save_IFS
12625 case $as_dir in #(((
12626 '') as_dir=./ ;;
12627 */) ;;
12628 *) as_dir=$as_dir/ ;;
12629 esac
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12632 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12634 break 2
12635 fi
12636 done
12637 done
12638 IFS=$as_save_IFS
12639
12640 fi
12641 fi
12642 FILECMD=$ac_cv_prog_FILECMD
12643 if test -n "$FILECMD"; then
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12645 printf "%s\n" "$FILECMD" >&6; }
12646 else
12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 printf "%s\n" "no" >&6; }
12649 fi
12650
12651
12652 fi
12653 if test -z "$ac_cv_prog_FILECMD"; then
12654 ac_ct_FILECMD=$FILECMD
12655 # Extract the first word of "file", so it can be a program name with args.
12656 set dummy file; ac_word=$2
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 printf %s "checking for $ac_word... " >&6; }
12659 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12660 then :
12661 printf %s "(cached) " >&6
12662 else $as_nop
12663 if test -n "$ac_ct_FILECMD"; then
12664 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669 IFS=$as_save_IFS
12670 case $as_dir in #(((
12671 '') as_dir=./ ;;
12672 */) ;;
12673 *) as_dir=$as_dir/ ;;
12674 esac
12675 for ac_exec_ext in '' $ac_executable_extensions; do
12676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12677 ac_cv_prog_ac_ct_FILECMD="file"
12678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12679 break 2
12680 fi
12681 done
12682 done
12683 IFS=$as_save_IFS
12684
12685 fi
12686 fi
12687 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12688 if test -n "$ac_ct_FILECMD"; then
12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12690 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12691 else
12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 printf "%s\n" "no" >&6; }
12694 fi
12695
12696 if test "x$ac_ct_FILECMD" = x; then
12697 FILECMD=":"
12698 else
12699 case $cross_compiling:$ac_tool_warned in
12700 yes:)
12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12702 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12703 ac_tool_warned=yes ;;
12704 esac
12705 FILECMD=$ac_ct_FILECMD
12706 fi
12707 else
12708 FILECMD="$ac_cv_prog_FILECMD"
12709 fi
12710
12711
12712
12713
12714
12715
12716
12717 if test -n "$ac_tool_prefix"; then
12718 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12719 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721 printf %s "checking for $ac_word... " >&6; }
12722 if test ${ac_cv_prog_OBJDUMP+y}
12723 then :
12724 printf %s "(cached) " >&6
12725 else $as_nop
12726 if test -n "$OBJDUMP"; then
12727 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12728 else
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12731 do
12732 IFS=$as_save_IFS
12733 case $as_dir in #(((
12734 '') as_dir=./ ;;
12735 */) ;;
12736 *) as_dir=$as_dir/ ;;
12737 esac
12738 for ac_exec_ext in '' $ac_executable_extensions; do
12739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12740 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12742 break 2
12743 fi
12744 done
12745 done
12746 IFS=$as_save_IFS
12747
12748 fi
12749 fi
12750 OBJDUMP=$ac_cv_prog_OBJDUMP
12751 if test -n "$OBJDUMP"; then
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12753 printf "%s\n" "$OBJDUMP" >&6; }
12754 else
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 printf "%s\n" "no" >&6; }
12757 fi
12758
12759
12760 fi
12761 if test -z "$ac_cv_prog_OBJDUMP"; then
12762 ac_ct_OBJDUMP=$OBJDUMP
12763 # Extract the first word of "objdump", so it can be a program name with args.
12764 set dummy objdump; ac_word=$2
12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 printf %s "checking for $ac_word... " >&6; }
12767 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12768 then :
12769 printf %s "(cached) " >&6
12770 else $as_nop
12771 if test -n "$ac_ct_OBJDUMP"; then
12772 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12773 else
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12776 do
12777 IFS=$as_save_IFS
12778 case $as_dir in #(((
12779 '') as_dir=./ ;;
12780 */) ;;
12781 *) as_dir=$as_dir/ ;;
12782 esac
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12785 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12787 break 2
12788 fi
12789 done
12790 done
12791 IFS=$as_save_IFS
12792
12793 fi
12794 fi
12795 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12796 if test -n "$ac_ct_OBJDUMP"; then
12797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12798 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12799 else
12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 printf "%s\n" "no" >&6; }
12802 fi
12803
12804 if test "x$ac_ct_OBJDUMP" = x; then
12805 OBJDUMP="false"
12806 else
12807 case $cross_compiling:$ac_tool_warned in
12808 yes:)
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12811 ac_tool_warned=yes ;;
12812 esac
12813 OBJDUMP=$ac_ct_OBJDUMP
12814 fi
12815 else
12816 OBJDUMP="$ac_cv_prog_OBJDUMP"
12817 fi
12818
12819 test -z "$OBJDUMP" && OBJDUMP=objdump
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12830 printf %s "checking how to recognize dependent libraries... " >&6; }
12831 if test ${lt_cv_deplibs_check_method+y}
12832 then :
12833 printf %s "(cached) " >&6
12834 else $as_nop
12835 lt_cv_file_magic_cmd='$MAGIC_CMD'
12836 lt_cv_file_magic_test_file=
12837 lt_cv_deplibs_check_method='unknown'
12838 # Need to set the preceding variable on all platforms that support
12839 # interlibrary dependencies.
12840 # 'none' -- dependencies not supported.
12841 # 'unknown' -- same as none, but documents that we really don't know.
12842 # 'pass_all' -- all dependencies passed with no checks.
12843 # 'test_compile' -- check by making test program.
12844 # 'file_magic [[regex]]' -- check by looking for files in library path
12845 # that responds to the $file_magic_cmd with a given extended regex.
12846 # If you have 'file' or equivalent on your system and you're not sure
12847 # whether 'pass_all' will *always* work, you probably want this one.
12848
12849 case $host_os in
12850 aix[4-9]*)
12851 lt_cv_deplibs_check_method=pass_all
12852 ;;
12853
12854 beos*)
12855 lt_cv_deplibs_check_method=pass_all
12856 ;;
12857
12858 bsdi[45]*)
12859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12860 lt_cv_file_magic_cmd='$FILECMD -L'
12861 lt_cv_file_magic_test_file=/shlib/libc.so
12862 ;;
12863
12864 cygwin*)
12865 # func_win32_libid is a shell function defined in ltmain.sh
12866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12867 lt_cv_file_magic_cmd='func_win32_libid'
12868 ;;
12869
12870 mingw* | pw32*)
12871 # Base MSYS/MinGW do not provide the 'file' command needed by
12872 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12873 # unless we find 'file', for example because we are cross-compiling.
12874 if ( file / ) >/dev/null 2>&1; then
12875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12876 lt_cv_file_magic_cmd='func_win32_libid'
12877 else
12878 # Keep this pattern in sync with the one in func_win32_libid.
12879 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12880 lt_cv_file_magic_cmd='$OBJDUMP -f'
12881 fi
12882 ;;
12883
12884 cegcc*)
12885 # use the weaker test based on 'objdump'. See mingw*.
12886 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12887 lt_cv_file_magic_cmd='$OBJDUMP -f'
12888 ;;
12889
12890 darwin* | rhapsody*)
12891 lt_cv_deplibs_check_method=pass_all
12892 ;;
12893
12894 freebsd* | dragonfly* | midnightbsd*)
12895 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12896 case $host_cpu in
12897 i*86 )
12898 # Not sure whether the presence of OpenBSD here was a mistake.
12899 # Let's accept both of them until this is cleared up.
12900 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12901 lt_cv_file_magic_cmd=$FILECMD
12902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12903 ;;
12904 esac
12905 else
12906 lt_cv_deplibs_check_method=pass_all
12907 fi
12908 ;;
12909
12910 haiku*)
12911 lt_cv_deplibs_check_method=pass_all
12912 ;;
12913
12914 hpux10.20* | hpux11*)
12915 lt_cv_file_magic_cmd=$FILECMD
12916 case $host_cpu in
12917 ia64*)
12918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12919 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12920 ;;
12921 hppa*64*)
12922 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]'
12923 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12924 ;;
12925 *)
12926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12927 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12928 ;;
12929 esac
12930 ;;
12931
12932 interix[3-9]*)
12933 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12935 ;;
12936
12937 irix5* | irix6* | nonstopux*)
12938 case $LD in
12939 *-32|*"-32 ") libmagic=32-bit;;
12940 *-n32|*"-n32 ") libmagic=N32;;
12941 *-64|*"-64 ") libmagic=64-bit;;
12942 *) libmagic=never-match;;
12943 esac
12944 lt_cv_deplibs_check_method=pass_all
12945 ;;
12946
12947 # This must be glibc/ELF.
12948 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12949 lt_cv_deplibs_check_method=pass_all
12950 ;;
12951
12952 netbsd*)
12953 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12955 else
12956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12957 fi
12958 ;;
12959
12960 newos6*)
12961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12962 lt_cv_file_magic_cmd=$FILECMD
12963 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12964 ;;
12965
12966 *nto* | *qnx*)
12967 lt_cv_deplibs_check_method=pass_all
12968 ;;
12969
12970 openbsd* | bitrig*)
12971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12973 else
12974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12975 fi
12976 ;;
12977
12978 osf3* | osf4* | osf5*)
12979 lt_cv_deplibs_check_method=pass_all
12980 ;;
12981
12982 rdos*)
12983 lt_cv_deplibs_check_method=pass_all
12984 ;;
12985
12986 solaris*)
12987 lt_cv_deplibs_check_method=pass_all
12988 ;;
12989
12990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12991 lt_cv_deplibs_check_method=pass_all
12992 ;;
12993
12994 sysv4 | sysv4.3*)
12995 case $host_vendor in
12996 motorola)
12997 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]'
12998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12999 ;;
13000 ncr)
13001 lt_cv_deplibs_check_method=pass_all
13002 ;;
13003 sequent)
13004 lt_cv_file_magic_cmd='/bin/file'
13005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13006 ;;
13007 sni)
13008 lt_cv_file_magic_cmd='/bin/file'
13009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13010 lt_cv_file_magic_test_file=/lib/libc.so
13011 ;;
13012 siemens)
13013 lt_cv_deplibs_check_method=pass_all
13014 ;;
13015 pc)
13016 lt_cv_deplibs_check_method=pass_all
13017 ;;
13018 esac
13019 ;;
13020
13021 tpf*)
13022 lt_cv_deplibs_check_method=pass_all
13023 ;;
13024 os2*)
13025 lt_cv_deplibs_check_method=pass_all
13026 ;;
13027 esac
13028
13029 fi
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13031 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13032
13033 file_magic_glob=
13034 want_nocaseglob=no
13035 if test "$build" = "$host"; then
13036 case $host_os in
13037 mingw* | pw32*)
13038 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13039 want_nocaseglob=yes
13040 else
13041 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13042 fi
13043 ;;
13044 esac
13045 fi
13046
13047 file_magic_cmd=$lt_cv_file_magic_cmd
13048 deplibs_check_method=$lt_cv_deplibs_check_method
13049 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072 if test -n "$ac_tool_prefix"; then
13073 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13074 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 printf %s "checking for $ac_word... " >&6; }
13077 if test ${ac_cv_prog_DLLTOOL+y}
13078 then :
13079 printf %s "(cached) " >&6
13080 else $as_nop
13081 if test -n "$DLLTOOL"; then
13082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13083 else
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13086 do
13087 IFS=$as_save_IFS
13088 case $as_dir in #(((
13089 '') as_dir=./ ;;
13090 */) ;;
13091 *) as_dir=$as_dir/ ;;
13092 esac
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13095 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13097 break 2
13098 fi
13099 done
13100 done
13101 IFS=$as_save_IFS
13102
13103 fi
13104 fi
13105 DLLTOOL=$ac_cv_prog_DLLTOOL
13106 if test -n "$DLLTOOL"; then
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13108 printf "%s\n" "$DLLTOOL" >&6; }
13109 else
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 printf "%s\n" "no" >&6; }
13112 fi
13113
13114
13115 fi
13116 if test -z "$ac_cv_prog_DLLTOOL"; then
13117 ac_ct_DLLTOOL=$DLLTOOL
13118 # Extract the first word of "dlltool", so it can be a program name with args.
13119 set dummy dlltool; ac_word=$2
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 printf %s "checking for $ac_word... " >&6; }
13122 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13123 then :
13124 printf %s "(cached) " >&6
13125 else $as_nop
13126 if test -n "$ac_ct_DLLTOOL"; then
13127 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13128 else
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13131 do
13132 IFS=$as_save_IFS
13133 case $as_dir in #(((
13134 '') as_dir=./ ;;
13135 */) ;;
13136 *) as_dir=$as_dir/ ;;
13137 esac
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13140 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13142 break 2
13143 fi
13144 done
13145 done
13146 IFS=$as_save_IFS
13147
13148 fi
13149 fi
13150 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13151 if test -n "$ac_ct_DLLTOOL"; then
13152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13153 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13154 else
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 printf "%s\n" "no" >&6; }
13157 fi
13158
13159 if test "x$ac_ct_DLLTOOL" = x; then
13160 DLLTOOL="false"
13161 else
13162 case $cross_compiling:$ac_tool_warned in
13163 yes:)
13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13166 ac_tool_warned=yes ;;
13167 esac
13168 DLLTOOL=$ac_ct_DLLTOOL
13169 fi
13170 else
13171 DLLTOOL="$ac_cv_prog_DLLTOOL"
13172 fi
13173
13174 test -z "$DLLTOOL" && DLLTOOL=dlltool
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13186 printf %s "checking how to associate runtime and link libraries... " >&6; }
13187 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13188 then :
13189 printf %s "(cached) " >&6
13190 else $as_nop
13191 lt_cv_sharedlib_from_linklib_cmd='unknown'
13192
13193 case $host_os in
13194 cygwin* | mingw* | pw32* | cegcc*)
13195 # two different shell functions defined in ltmain.sh;
13196 # decide which one to use based on capabilities of $DLLTOOL
13197 case `$DLLTOOL --help 2>&1` in
13198 *--identify-strict*)
13199 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13200 ;;
13201 *)
13202 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13203 ;;
13204 esac
13205 ;;
13206 *)
13207 # fallback: assume linklib IS sharedlib
13208 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13209 ;;
13210 esac
13211
13212 fi
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13214 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13215 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13216 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13217
13218
13219
13220
13221
13222
13223
13224 if test -n "$ac_tool_prefix"; then
13225 for ac_prog in ar
13226 do
13227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 printf %s "checking for $ac_word... " >&6; }
13231 if test ${ac_cv_prog_AR+y}
13232 then :
13233 printf %s "(cached) " >&6
13234 else $as_nop
13235 if test -n "$AR"; then
13236 ac_cv_prog_AR="$AR" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13240 do
13241 IFS=$as_save_IFS
13242 case $as_dir in #(((
13243 '') as_dir=./ ;;
13244 */) ;;
13245 *) as_dir=$as_dir/ ;;
13246 esac
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13249 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13251 break 2
13252 fi
13253 done
13254 done
13255 IFS=$as_save_IFS
13256
13257 fi
13258 fi
13259 AR=$ac_cv_prog_AR
13260 if test -n "$AR"; then
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13262 printf "%s\n" "$AR" >&6; }
13263 else
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 printf "%s\n" "no" >&6; }
13266 fi
13267
13268
13269 test -n "$AR" && break
13270 done
13271 fi
13272 if test -z "$AR"; then
13273 ac_ct_AR=$AR
13274 for ac_prog in ar
13275 do
13276 # Extract the first word of "$ac_prog", so it can be a program name with args.
13277 set dummy $ac_prog; ac_word=$2
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 printf %s "checking for $ac_word... " >&6; }
13280 if test ${ac_cv_prog_ac_ct_AR+y}
13281 then :
13282 printf %s "(cached) " >&6
13283 else $as_nop
13284 if test -n "$ac_ct_AR"; then
13285 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13286 else
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13289 do
13290 IFS=$as_save_IFS
13291 case $as_dir in #(((
13292 '') as_dir=./ ;;
13293 */) ;;
13294 *) as_dir=$as_dir/ ;;
13295 esac
13296 for ac_exec_ext in '' $ac_executable_extensions; do
13297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13298 ac_cv_prog_ac_ct_AR="$ac_prog"
13299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13300 break 2
13301 fi
13302 done
13303 done
13304 IFS=$as_save_IFS
13305
13306 fi
13307 fi
13308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13309 if test -n "$ac_ct_AR"; then
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13311 printf "%s\n" "$ac_ct_AR" >&6; }
13312 else
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 printf "%s\n" "no" >&6; }
13315 fi
13316
13317
13318 test -n "$ac_ct_AR" && break
13319 done
13320
13321 if test "x$ac_ct_AR" = x; then
13322 AR="false"
13323 else
13324 case $cross_compiling:$ac_tool_warned in
13325 yes:)
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13327 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13328 ac_tool_warned=yes ;;
13329 esac
13330 AR=$ac_ct_AR
13331 fi
13332 fi
13333
13334 : ${AR=ar}
13335
13336
13337
13338
13339
13340
13341 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13342 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13343 # higher priority because thats what people were doing historically (setting
13344 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13345 # variable obsoleted/removed.
13346
13347 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13348 lt_ar_flags=$AR_FLAGS
13349
13350
13351
13352
13353
13354
13355 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13356 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13357
13358
13359
13360
13361
13362
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13364 printf %s "checking for archiver @FILE support... " >&6; }
13365 if test ${lt_cv_ar_at_file+y}
13366 then :
13367 printf %s "(cached) " >&6
13368 else $as_nop
13369 lt_cv_ar_at_file=no
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13372
13373 int
13374 main (void)
13375 {
13376
13377 ;
13378 return 0;
13379 }
13380 _ACEOF
13381 if ac_fn_c_try_compile "$LINENO"
13382 then :
13383 echo conftest.$ac_objext > conftest.lst
13384 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13386 (eval $lt_ar_try) 2>&5
13387 ac_status=$?
13388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389 test $ac_status = 0; }
13390 if test 0 -eq "$ac_status"; then
13391 # Ensure the archiver fails upon bogus file names.
13392 rm -f conftest.$ac_objext libconftest.a
13393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13394 (eval $lt_ar_try) 2>&5
13395 ac_status=$?
13396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397 test $ac_status = 0; }
13398 if test 0 -ne "$ac_status"; then
13399 lt_cv_ar_at_file=@
13400 fi
13401 fi
13402 rm -f conftest.* libconftest.a
13403
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13406
13407 fi
13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13409 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13410
13411 if test no = "$lt_cv_ar_at_file"; then
13412 archiver_list_spec=
13413 else
13414 archiver_list_spec=$lt_cv_ar_at_file
13415 fi
13416
13417
13418
13419
13420
13421
13422
13423 if test -n "$ac_tool_prefix"; then
13424 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13425 set dummy ${ac_tool_prefix}strip; ac_word=$2
13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 printf %s "checking for $ac_word... " >&6; }
13428 if test ${ac_cv_prog_STRIP+y}
13429 then :
13430 printf %s "(cached) " >&6
13431 else $as_nop
13432 if test -n "$STRIP"; then
13433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13434 else
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13437 do
13438 IFS=$as_save_IFS
13439 case $as_dir in #(((
13440 '') as_dir=./ ;;
13441 */) ;;
13442 *) as_dir=$as_dir/ ;;
13443 esac
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13448 break 2
13449 fi
13450 done
13451 done
13452 IFS=$as_save_IFS
13453
13454 fi
13455 fi
13456 STRIP=$ac_cv_prog_STRIP
13457 if test -n "$STRIP"; then
13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13459 printf "%s\n" "$STRIP" >&6; }
13460 else
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 printf "%s\n" "no" >&6; }
13463 fi
13464
13465
13466 fi
13467 if test -z "$ac_cv_prog_STRIP"; then
13468 ac_ct_STRIP=$STRIP
13469 # Extract the first word of "strip", so it can be a program name with args.
13470 set dummy strip; ac_word=$2
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472 printf %s "checking for $ac_word... " >&6; }
13473 if test ${ac_cv_prog_ac_ct_STRIP+y}
13474 then :
13475 printf %s "(cached) " >&6
13476 else $as_nop
13477 if test -n "$ac_ct_STRIP"; then
13478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13479 else
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483 IFS=$as_save_IFS
13484 case $as_dir in #(((
13485 '') as_dir=./ ;;
13486 */) ;;
13487 *) as_dir=$as_dir/ ;;
13488 esac
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13491 ac_cv_prog_ac_ct_STRIP="strip"
13492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13493 break 2
13494 fi
13495 done
13496 done
13497 IFS=$as_save_IFS
13498
13499 fi
13500 fi
13501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13502 if test -n "$ac_ct_STRIP"; then
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13504 printf "%s\n" "$ac_ct_STRIP" >&6; }
13505 else
13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 printf "%s\n" "no" >&6; }
13508 fi
13509
13510 if test "x$ac_ct_STRIP" = x; then
13511 STRIP=":"
13512 else
13513 case $cross_compiling:$ac_tool_warned in
13514 yes:)
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517 ac_tool_warned=yes ;;
13518 esac
13519 STRIP=$ac_ct_STRIP
13520 fi
13521 else
13522 STRIP="$ac_cv_prog_STRIP"
13523 fi
13524
13525 test -z "$STRIP" && STRIP=:
13526
13527
13528
13529
13530
13531
13532 if test -n "$ac_tool_prefix"; then
13533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536 printf %s "checking for $ac_word... " >&6; }
13537 if test ${ac_cv_prog_RANLIB+y}
13538 then :
13539 printf %s "(cached) " >&6
13540 else $as_nop
13541 if test -n "$RANLIB"; then
13542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547 IFS=$as_save_IFS
13548 case $as_dir in #(((
13549 '') as_dir=./ ;;
13550 */) ;;
13551 *) as_dir=$as_dir/ ;;
13552 esac
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13555 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13557 break 2
13558 fi
13559 done
13560 done
13561 IFS=$as_save_IFS
13562
13563 fi
13564 fi
13565 RANLIB=$ac_cv_prog_RANLIB
13566 if test -n "$RANLIB"; then
13567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13568 printf "%s\n" "$RANLIB" >&6; }
13569 else
13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 printf "%s\n" "no" >&6; }
13572 fi
13573
13574
13575 fi
13576 if test -z "$ac_cv_prog_RANLIB"; then
13577 ac_ct_RANLIB=$RANLIB
13578 # Extract the first word of "ranlib", so it can be a program name with args.
13579 set dummy ranlib; ac_word=$2
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 printf %s "checking for $ac_word... " >&6; }
13582 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13583 then :
13584 printf %s "(cached) " >&6
13585 else $as_nop
13586 if test -n "$ac_ct_RANLIB"; then
13587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13588 else
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13591 do
13592 IFS=$as_save_IFS
13593 case $as_dir in #(((
13594 '') as_dir=./ ;;
13595 */) ;;
13596 *) as_dir=$as_dir/ ;;
13597 esac
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13600 ac_cv_prog_ac_ct_RANLIB="ranlib"
13601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13602 break 2
13603 fi
13604 done
13605 done
13606 IFS=$as_save_IFS
13607
13608 fi
13609 fi
13610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13611 if test -n "$ac_ct_RANLIB"; then
13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13613 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13614 else
13615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 printf "%s\n" "no" >&6; }
13617 fi
13618
13619 if test "x$ac_ct_RANLIB" = x; then
13620 RANLIB=":"
13621 else
13622 case $cross_compiling:$ac_tool_warned in
13623 yes:)
13624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13625 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13626 ac_tool_warned=yes ;;
13627 esac
13628 RANLIB=$ac_ct_RANLIB
13629 fi
13630 else
13631 RANLIB="$ac_cv_prog_RANLIB"
13632 fi
13633
13634 test -z "$RANLIB" && RANLIB=:
13635
13636
13637
13638
13639
13640
13641 # Determine commands to create old-style static archives.
13642 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13643 old_postinstall_cmds='chmod 644 $oldlib'
13644 old_postuninstall_cmds=
13645
13646 if test -n "$RANLIB"; then
13647 case $host_os in
13648 bitrig* | openbsd*)
13649 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13650 ;;
13651 *)
13652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13653 ;;
13654 esac
13655 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13656 fi
13657
13658 case $host_os in
13659 darwin*)
13660 lock_old_archive_extraction=yes ;;
13661 *)
13662 lock_old_archive_extraction=no ;;
13663 esac
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703 # If no C compiler was specified, use CC.
13704 LTCC=${LTCC-"$CC"}
13705
13706 # If no C compiler flags were specified, use CFLAGS.
13707 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13708
13709 # Allow CC to be a program name with arguments.
13710 compiler=$CC
13711
13712
13713 # Check for command to grab the raw symbol name followed by C symbol from nm.
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13715 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13716 if test ${lt_cv_sys_global_symbol_pipe+y}
13717 then :
13718 printf %s "(cached) " >&6
13719 else $as_nop
13720
13721 # These are sane defaults that work on at least a few old systems.
13722 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13723
13724 # Character class describing NM global symbol codes.
13725 symcode='[BCDEGRST]'
13726
13727 # Regexp to match symbols that can be accessed directly from C.
13728 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13729
13730 # Define system-specific variables.
13731 case $host_os in
13732 aix*)
13733 symcode='[BCDT]'
13734 ;;
13735 cygwin* | mingw* | pw32* | cegcc*)
13736 symcode='[ABCDGISTW]'
13737 ;;
13738 hpux*)
13739 if test ia64 = "$host_cpu"; then
13740 symcode='[ABCDEGRST]'
13741 fi
13742 ;;
13743 irix* | nonstopux*)
13744 symcode='[BCDEGRST]'
13745 ;;
13746 osf*)
13747 symcode='[BCDEGQRST]'
13748 ;;
13749 solaris*)
13750 symcode='[BDRT]'
13751 ;;
13752 sco3.2v5*)
13753 symcode='[DT]'
13754 ;;
13755 sysv4.2uw2*)
13756 symcode='[DT]'
13757 ;;
13758 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13759 symcode='[ABDT]'
13760 ;;
13761 sysv4)
13762 symcode='[DFNSTU]'
13763 ;;
13764 esac
13765
13766 # If we're using GNU nm, then use its standard symbol codes.
13767 case `$NM -V 2>&1` in
13768 *GNU* | *'with BFD'*)
13769 symcode='[ABCDGIRSTW]' ;;
13770 esac
13771
13772 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13773 # Gets list of data symbols to import.
13774 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13775 # Adjust the below global symbol transforms to fixup imported variables.
13776 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13777 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13778 lt_c_name_lib_hook="\
13779 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13780 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13781 else
13782 # Disable hooks by default.
13783 lt_cv_sys_global_symbol_to_import=
13784 lt_cdecl_hook=
13785 lt_c_name_hook=
13786 lt_c_name_lib_hook=
13787 fi
13788
13789 # Transform an extracted symbol line into a proper C declaration.
13790 # Some systems (esp. on ia64) link data and code symbols differently,
13791 # so use this general approach.
13792 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13793 $lt_cdecl_hook\
13794 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13795 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13796
13797 # Transform an extracted symbol line into symbol name and symbol address
13798 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13799 $lt_c_name_hook\
13800 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13801 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13802
13803 # Transform an extracted symbol line into symbol name with lib prefix and
13804 # symbol address.
13805 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13806 $lt_c_name_lib_hook\
13807 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13808 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13809 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13810
13811 # Handle CRLF in mingw tool chain
13812 opt_cr=
13813 case $build_os in
13814 mingw*)
13815 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13816 ;;
13817 esac
13818
13819 # Try without a prefix underscore, then with it.
13820 for ac_symprfx in "" "_"; do
13821
13822 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13823 symxfrm="\\1 $ac_symprfx\\2 \\2"
13824
13825 # Write the raw and C identifiers.
13826 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13827 # Fake it for dumpbin and say T for any non-static function,
13828 # D for any global variable and I for any imported variable.
13829 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13830 # which start with @ or ?.
13831 lt_cv_sys_global_symbol_pipe="$AWK '"\
13832 " {last_section=section; section=\$ 3};"\
13833 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13834 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13835 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13836 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13837 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13838 " \$ 0!~/External *\|/{next};"\
13839 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13840 " {if(hide[section]) next};"\
13841 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13842 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13843 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13844 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13845 " ' prfx=^$ac_symprfx"
13846 else
13847 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13848 fi
13849 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13850
13851 # Check to see that the pipe works correctly.
13852 pipe_works=no
13853
13854 rm -f conftest*
13855 cat > conftest.$ac_ext <<_LT_EOF
13856 #ifdef __cplusplus
13857 extern "C" {
13858 #endif
13859 char nm_test_var;
13860 void nm_test_func(void);
13861 void nm_test_func(void){}
13862 #ifdef __cplusplus
13863 }
13864 #endif
13865 int main(){nm_test_var='a';nm_test_func();return(0);}
13866 _LT_EOF
13867
13868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13869 (eval $ac_compile) 2>&5
13870 ac_status=$?
13871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872 test $ac_status = 0; }; then
13873 # Now try to grab the symbols.
13874 nlist=conftest.nm
13875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13876 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13877 ac_status=$?
13878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13879 test $ac_status = 0; } && test -s "$nlist"; then
13880 # Try sorting and uniquifying the output.
13881 if sort "$nlist" | uniq > "$nlist"T; then
13882 mv -f "$nlist"T "$nlist"
13883 else
13884 rm -f "$nlist"T
13885 fi
13886
13887 # Make sure that we snagged all the symbols we need.
13888 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13889 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13890 cat <<_LT_EOF > conftest.$ac_ext
13891 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13892 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13893 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13894 relocations are performed -- see ld's documentation on pseudo-relocs. */
13895 # define LT_DLSYM_CONST
13896 #elif defined __osf__
13897 /* This system does not cope well with relocations in const data. */
13898 # define LT_DLSYM_CONST
13899 #else
13900 # define LT_DLSYM_CONST const
13901 #endif
13902
13903 #ifdef __cplusplus
13904 extern "C" {
13905 #endif
13906
13907 _LT_EOF
13908 # Now generate the symbol file.
13909 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13910
13911 cat <<_LT_EOF >> conftest.$ac_ext
13912
13913 /* The mapping between symbol names and symbols. */
13914 LT_DLSYM_CONST struct {
13915 const char *name;
13916 void *address;
13917 }
13918 lt__PROGRAM__LTX_preloaded_symbols[] =
13919 {
13920 { "@PROGRAM@", (void *) 0 },
13921 _LT_EOF
13922 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13923 cat <<\_LT_EOF >> conftest.$ac_ext
13924 {0, (void *) 0}
13925 };
13926
13927 /* This works around a problem in FreeBSD linker */
13928 #ifdef FREEBSD_WORKAROUND
13929 static const void *lt_preloaded_setup() {
13930 return lt__PROGRAM__LTX_preloaded_symbols;
13931 }
13932 #endif
13933
13934 #ifdef __cplusplus
13935 }
13936 #endif
13937 _LT_EOF
13938 # Now try linking the two files.
13939 mv conftest.$ac_objext conftstm.$ac_objext
13940 lt_globsym_save_LIBS=$LIBS
13941 lt_globsym_save_CFLAGS=$CFLAGS
13942 LIBS=conftstm.$ac_objext
13943 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13945 (eval $ac_link) 2>&5
13946 ac_status=$?
13947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13949 pipe_works=yes
13950 fi
13951 LIBS=$lt_globsym_save_LIBS
13952 CFLAGS=$lt_globsym_save_CFLAGS
13953 else
13954 echo "cannot find nm_test_func in $nlist" >&5
13955 fi
13956 else
13957 echo "cannot find nm_test_var in $nlist" >&5
13958 fi
13959 else
13960 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13961 fi
13962 else
13963 echo "$progname: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 fi
13966 rm -rf conftest* conftst*
13967
13968 # Do not use the global_symbol_pipe unless it works.
13969 if test yes = "$pipe_works"; then
13970 break
13971 else
13972 lt_cv_sys_global_symbol_pipe=
13973 fi
13974 done
13975
13976 fi
13977
13978 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13979 lt_cv_sys_global_symbol_to_cdecl=
13980 fi
13981 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13983 printf "%s\n" "failed" >&6; }
13984 else
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13986 printf "%s\n" "ok" >&6; }
13987 fi
13988
13989 # Response file support.
13990 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13991 nm_file_list_spec='@'
13992 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13993 nm_file_list_spec='@'
13994 fi
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14033 printf %s "checking for sysroot... " >&6; }
14034
14035 # Check whether --with-sysroot was given.
14036 if test ${with_sysroot+y}
14037 then :
14038 withval=$with_sysroot;
14039 else $as_nop
14040 with_sysroot=no
14041 fi
14042
14043
14044 lt_sysroot=
14045 case $with_sysroot in #(
14046 yes)
14047 if test yes = "$GCC"; then
14048 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14049 fi
14050 ;; #(
14051 /*)
14052 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14053 ;; #(
14054 no|'')
14055 ;; #(
14056 *)
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14058 printf "%s\n" "$with_sysroot" >&6; }
14059 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14060 ;;
14061 esac
14062
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14064 printf "%s\n" "${lt_sysroot:-no}" >&6; }
14065
14066
14067
14068
14069
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14071 printf %s "checking for a working dd... " >&6; }
14072 if test ${ac_cv_path_lt_DD+y}
14073 then :
14074 printf %s "(cached) " >&6
14075 else $as_nop
14076 printf 0123456789abcdef0123456789abcdef >conftest.i
14077 cat conftest.i conftest.i >conftest2.i
14078 : ${lt_DD:=$DD}
14079 if test -z "$lt_DD"; then
14080 ac_path_lt_DD_found=false
14081 # Loop through the user's path and test for each of PROGNAME-LIST
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14084 do
14085 IFS=$as_save_IFS
14086 case $as_dir in #(((
14087 '') as_dir=./ ;;
14088 */) ;;
14089 *) as_dir=$as_dir/ ;;
14090 esac
14091 for ac_prog in dd
14092 do
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14095 as_fn_executable_p "$ac_path_lt_DD" || continue
14096 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14097 cmp -s conftest.i conftest.out \
14098 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14099 fi
14100 $ac_path_lt_DD_found && break 3
14101 done
14102 done
14103 done
14104 IFS=$as_save_IFS
14105 if test -z "$ac_cv_path_lt_DD"; then
14106 :
14107 fi
14108 else
14109 ac_cv_path_lt_DD=$lt_DD
14110 fi
14111
14112 rm -f conftest.i conftest2.i conftest.out
14113 fi
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14115 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14116
14117
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14119 printf %s "checking how to truncate binary pipes... " >&6; }
14120 if test ${lt_cv_truncate_bin+y}
14121 then :
14122 printf %s "(cached) " >&6
14123 else $as_nop
14124 printf 0123456789abcdef0123456789abcdef >conftest.i
14125 cat conftest.i conftest.i >conftest2.i
14126 lt_cv_truncate_bin=
14127 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14128 cmp -s conftest.i conftest.out \
14129 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14130 fi
14131 rm -f conftest.i conftest2.i conftest.out
14132 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
14133 fi
14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14135 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14136
14137
14138
14139
14140
14141
14142
14143 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14144 func_cc_basename ()
14145 {
14146 for cc_temp in $*""; do
14147 case $cc_temp in
14148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14150 \-*) ;;
14151 *) break;;
14152 esac
14153 done
14154 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14155 }
14156
14157 # Check whether --enable-libtool-lock was given.
14158 if test ${enable_libtool_lock+y}
14159 then :
14160 enableval=$enable_libtool_lock;
14161 fi
14162
14163 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14164
14165 # Some flags need to be propagated to the compiler or linker for good
14166 # libtool support.
14167 case $host in
14168 ia64-*-hpux*)
14169 # Find out what ABI is being produced by ac_compile, and set mode
14170 # options accordingly.
14171 echo 'int i;' > conftest.$ac_ext
14172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14173 (eval $ac_compile) 2>&5
14174 ac_status=$?
14175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14176 test $ac_status = 0; }; then
14177 case `$FILECMD conftest.$ac_objext` in
14178 *ELF-32*)
14179 HPUX_IA64_MODE=32
14180 ;;
14181 *ELF-64*)
14182 HPUX_IA64_MODE=64
14183 ;;
14184 esac
14185 fi
14186 rm -rf conftest*
14187 ;;
14188 *-*-irix6*)
14189 # Find out what ABI is being produced by ac_compile, and set linker
14190 # options accordingly.
14191 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14193 (eval $ac_compile) 2>&5
14194 ac_status=$?
14195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14196 test $ac_status = 0; }; then
14197 if test yes = "$lt_cv_prog_gnu_ld"; then
14198 case `$FILECMD conftest.$ac_objext` in
14199 *32-bit*)
14200 LD="${LD-ld} -melf32bsmip"
14201 ;;
14202 *N32*)
14203 LD="${LD-ld} -melf32bmipn32"
14204 ;;
14205 *64-bit*)
14206 LD="${LD-ld} -melf64bmip"
14207 ;;
14208 esac
14209 else
14210 case `$FILECMD conftest.$ac_objext` in
14211 *32-bit*)
14212 LD="${LD-ld} -32"
14213 ;;
14214 *N32*)
14215 LD="${LD-ld} -n32"
14216 ;;
14217 *64-bit*)
14218 LD="${LD-ld} -64"
14219 ;;
14220 esac
14221 fi
14222 fi
14223 rm -rf conftest*
14224 ;;
14225
14226 mips64*-*linux*)
14227 # Find out what ABI is being produced by ac_compile, and set linker
14228 # options accordingly.
14229 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14231 (eval $ac_compile) 2>&5
14232 ac_status=$?
14233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14234 test $ac_status = 0; }; then
14235 emul=elf
14236 case `$FILECMD conftest.$ac_objext` in
14237 *32-bit*)
14238 emul="${emul}32"
14239 ;;
14240 *64-bit*)
14241 emul="${emul}64"
14242 ;;
14243 esac
14244 case `$FILECMD conftest.$ac_objext` in
14245 *MSB*)
14246 emul="${emul}btsmip"
14247 ;;
14248 *LSB*)
14249 emul="${emul}ltsmip"
14250 ;;
14251 esac
14252 case `$FILECMD conftest.$ac_objext` in
14253 *N32*)
14254 emul="${emul}n32"
14255 ;;
14256 esac
14257 LD="${LD-ld} -m $emul"
14258 fi
14259 rm -rf conftest*
14260 ;;
14261
14262 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14263 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14264 # Find out what ABI is being produced by ac_compile, and set linker
14265 # options accordingly. Note that the listed cases only cover the
14266 # situations where additional linker options are needed (such as when
14267 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14268 # vice versa); the common cases where no linker options are needed do
14269 # not appear in the list.
14270 echo 'int i;' > conftest.$ac_ext
14271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14272 (eval $ac_compile) 2>&5
14273 ac_status=$?
14274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14275 test $ac_status = 0; }; then
14276 case `$FILECMD conftest.o` in
14277 *32-bit*)
14278 case $host in
14279 x86_64-*kfreebsd*-gnu)
14280 LD="${LD-ld} -m elf_i386_fbsd"
14281 ;;
14282 x86_64-*linux*)
14283 case `$FILECMD conftest.o` in
14284 *x86-64*)
14285 LD="${LD-ld} -m elf32_x86_64"
14286 ;;
14287 *)
14288 LD="${LD-ld} -m elf_i386"
14289 ;;
14290 esac
14291 ;;
14292 powerpc64le-*linux*)
14293 LD="${LD-ld} -m elf32lppclinux"
14294 ;;
14295 powerpc64-*linux*)
14296 LD="${LD-ld} -m elf32ppclinux"
14297 ;;
14298 s390x-*linux*)
14299 LD="${LD-ld} -m elf_s390"
14300 ;;
14301 sparc64-*linux*)
14302 LD="${LD-ld} -m elf32_sparc"
14303 ;;
14304 esac
14305 ;;
14306 *64-bit*)
14307 case $host in
14308 x86_64-*kfreebsd*-gnu)
14309 LD="${LD-ld} -m elf_x86_64_fbsd"
14310 ;;
14311 x86_64-*linux*)
14312 LD="${LD-ld} -m elf_x86_64"
14313 ;;
14314 powerpcle-*linux*|powerpc64le-*linux*)
14315 LD="${LD-ld} -m elf64lppc"
14316 ;;
14317 powerpc-*linux*|powerpc64-*linux*)
14318 LD="${LD-ld} -m elf64ppc"
14319 ;;
14320 s390*-*linux*|s390*-*tpf*)
14321 LD="${LD-ld} -m elf64_s390"
14322 ;;
14323 sparc*-*linux*)
14324 LD="${LD-ld} -m elf64_sparc"
14325 ;;
14326 esac
14327 ;;
14328 esac
14329 fi
14330 rm -rf conftest*
14331 ;;
14332
14333 *-*-sco3.2v5*)
14334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14335 SAVE_CFLAGS=$CFLAGS
14336 CFLAGS="$CFLAGS -belf"
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14338 printf %s "checking whether the C compiler needs -belf... " >&6; }
14339 if test ${lt_cv_cc_needs_belf+y}
14340 then :
14341 printf %s "(cached) " >&6
14342 else $as_nop
14343 ac_ext=c
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351
14352 int
14353 main (void)
14354 {
14355
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"
14361 then :
14362 lt_cv_cc_needs_belf=yes
14363 else $as_nop
14364 lt_cv_cc_needs_belf=no
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14367 conftest$ac_exeext conftest.$ac_ext
14368 ac_ext=c
14369 ac_cpp='$CPP $CPPFLAGS'
14370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14373
14374 fi
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14376 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14377 if test yes != "$lt_cv_cc_needs_belf"; then
14378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14379 CFLAGS=$SAVE_CFLAGS
14380 fi
14381 ;;
14382 *-*solaris*)
14383 # Find out what ABI is being produced by ac_compile, and set linker
14384 # options accordingly.
14385 echo 'int i;' > conftest.$ac_ext
14386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14387 (eval $ac_compile) 2>&5
14388 ac_status=$?
14389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14390 test $ac_status = 0; }; then
14391 case `$FILECMD conftest.o` in
14392 *64-bit*)
14393 case $lt_cv_prog_gnu_ld in
14394 yes*)
14395 case $host in
14396 i?86-*-solaris*|x86_64-*-solaris*)
14397 LD="${LD-ld} -m elf_x86_64"
14398 ;;
14399 sparc*-*-solaris*)
14400 LD="${LD-ld} -m elf64_sparc"
14401 ;;
14402 esac
14403 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14404 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14405 LD=${LD-ld}_sol2
14406 fi
14407 ;;
14408 *)
14409 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14410 LD="${LD-ld} -64"
14411 fi
14412 ;;
14413 esac
14414 ;;
14415 esac
14416 fi
14417 rm -rf conftest*
14418 ;;
14419 esac
14420
14421 need_locks=$enable_libtool_lock
14422
14423 if test -n "$ac_tool_prefix"; then
14424 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14425 set dummy ${ac_tool_prefix}mt; ac_word=$2
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427 printf %s "checking for $ac_word... " >&6; }
14428 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14429 then :
14430 printf %s "(cached) " >&6
14431 else $as_nop
14432 if test -n "$MANIFEST_TOOL"; then
14433 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14434 else
14435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436 for as_dir in $PATH
14437 do
14438 IFS=$as_save_IFS
14439 case $as_dir in #(((
14440 '') as_dir=./ ;;
14441 */) ;;
14442 *) as_dir=$as_dir/ ;;
14443 esac
14444 for ac_exec_ext in '' $ac_executable_extensions; do
14445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14446 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14448 break 2
14449 fi
14450 done
14451 done
14452 IFS=$as_save_IFS
14453
14454 fi
14455 fi
14456 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14457 if test -n "$MANIFEST_TOOL"; then
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14459 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14460 else
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 printf "%s\n" "no" >&6; }
14463 fi
14464
14465
14466 fi
14467 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14468 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14469 # Extract the first word of "mt", so it can be a program name with args.
14470 set dummy mt; ac_word=$2
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 printf %s "checking for $ac_word... " >&6; }
14473 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14474 then :
14475 printf %s "(cached) " >&6
14476 else $as_nop
14477 if test -n "$ac_ct_MANIFEST_TOOL"; then
14478 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14482 do
14483 IFS=$as_save_IFS
14484 case $as_dir in #(((
14485 '') as_dir=./ ;;
14486 */) ;;
14487 *) as_dir=$as_dir/ ;;
14488 esac
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14491 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14493 break 2
14494 fi
14495 done
14496 done
14497 IFS=$as_save_IFS
14498
14499 fi
14500 fi
14501 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14502 if test -n "$ac_ct_MANIFEST_TOOL"; then
14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14504 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14505 else
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 printf "%s\n" "no" >&6; }
14508 fi
14509
14510 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14511 MANIFEST_TOOL=":"
14512 else
14513 case $cross_compiling:$ac_tool_warned in
14514 yes:)
14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14517 ac_tool_warned=yes ;;
14518 esac
14519 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14520 fi
14521 else
14522 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14523 fi
14524
14525 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14527 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14528 if test ${lt_cv_path_mainfest_tool+y}
14529 then :
14530 printf %s "(cached) " >&6
14531 else $as_nop
14532 lt_cv_path_mainfest_tool=no
14533 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14534 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14535 cat conftest.err >&5
14536 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14537 lt_cv_path_mainfest_tool=yes
14538 fi
14539 rm -f conftest*
14540 fi
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14542 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14543 if test yes != "$lt_cv_path_mainfest_tool"; then
14544 MANIFEST_TOOL=:
14545 fi
14546
14547
14548
14549
14550
14551
14552 case $host_os in
14553 rhapsody* | darwin*)
14554 if test -n "$ac_tool_prefix"; then
14555 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14556 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14558 printf %s "checking for $ac_word... " >&6; }
14559 if test ${ac_cv_prog_DSYMUTIL+y}
14560 then :
14561 printf %s "(cached) " >&6
14562 else $as_nop
14563 if test -n "$DSYMUTIL"; then
14564 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14565 else
14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14568 do
14569 IFS=$as_save_IFS
14570 case $as_dir in #(((
14571 '') as_dir=./ ;;
14572 */) ;;
14573 *) as_dir=$as_dir/ ;;
14574 esac
14575 for ac_exec_ext in '' $ac_executable_extensions; do
14576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14577 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14579 break 2
14580 fi
14581 done
14582 done
14583 IFS=$as_save_IFS
14584
14585 fi
14586 fi
14587 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14588 if test -n "$DSYMUTIL"; then
14589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14590 printf "%s\n" "$DSYMUTIL" >&6; }
14591 else
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 printf "%s\n" "no" >&6; }
14594 fi
14595
14596
14597 fi
14598 if test -z "$ac_cv_prog_DSYMUTIL"; then
14599 ac_ct_DSYMUTIL=$DSYMUTIL
14600 # Extract the first word of "dsymutil", so it can be a program name with args.
14601 set dummy dsymutil; ac_word=$2
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14603 printf %s "checking for $ac_word... " >&6; }
14604 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14605 then :
14606 printf %s "(cached) " >&6
14607 else $as_nop
14608 if test -n "$ac_ct_DSYMUTIL"; then
14609 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14613 do
14614 IFS=$as_save_IFS
14615 case $as_dir in #(((
14616 '') as_dir=./ ;;
14617 */) ;;
14618 *) as_dir=$as_dir/ ;;
14619 esac
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14622 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14624 break 2
14625 fi
14626 done
14627 done
14628 IFS=$as_save_IFS
14629
14630 fi
14631 fi
14632 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14633 if test -n "$ac_ct_DSYMUTIL"; then
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14635 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14636 else
14637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 printf "%s\n" "no" >&6; }
14639 fi
14640
14641 if test "x$ac_ct_DSYMUTIL" = x; then
14642 DSYMUTIL=":"
14643 else
14644 case $cross_compiling:$ac_tool_warned in
14645 yes:)
14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14647 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14648 ac_tool_warned=yes ;;
14649 esac
14650 DSYMUTIL=$ac_ct_DSYMUTIL
14651 fi
14652 else
14653 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14654 fi
14655
14656 if test -n "$ac_tool_prefix"; then
14657 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14658 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14660 printf %s "checking for $ac_word... " >&6; }
14661 if test ${ac_cv_prog_NMEDIT+y}
14662 then :
14663 printf %s "(cached) " >&6
14664 else $as_nop
14665 if test -n "$NMEDIT"; then
14666 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14667 else
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14670 do
14671 IFS=$as_save_IFS
14672 case $as_dir in #(((
14673 '') as_dir=./ ;;
14674 */) ;;
14675 *) as_dir=$as_dir/ ;;
14676 esac
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14679 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14681 break 2
14682 fi
14683 done
14684 done
14685 IFS=$as_save_IFS
14686
14687 fi
14688 fi
14689 NMEDIT=$ac_cv_prog_NMEDIT
14690 if test -n "$NMEDIT"; then
14691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14692 printf "%s\n" "$NMEDIT" >&6; }
14693 else
14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14695 printf "%s\n" "no" >&6; }
14696 fi
14697
14698
14699 fi
14700 if test -z "$ac_cv_prog_NMEDIT"; then
14701 ac_ct_NMEDIT=$NMEDIT
14702 # Extract the first word of "nmedit", so it can be a program name with args.
14703 set dummy nmedit; ac_word=$2
14704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705 printf %s "checking for $ac_word... " >&6; }
14706 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14707 then :
14708 printf %s "(cached) " >&6
14709 else $as_nop
14710 if test -n "$ac_ct_NMEDIT"; then
14711 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14712 else
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14715 do
14716 IFS=$as_save_IFS
14717 case $as_dir in #(((
14718 '') as_dir=./ ;;
14719 */) ;;
14720 *) as_dir=$as_dir/ ;;
14721 esac
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14726 break 2
14727 fi
14728 done
14729 done
14730 IFS=$as_save_IFS
14731
14732 fi
14733 fi
14734 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14735 if test -n "$ac_ct_NMEDIT"; then
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14737 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14738 else
14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 printf "%s\n" "no" >&6; }
14741 fi
14742
14743 if test "x$ac_ct_NMEDIT" = x; then
14744 NMEDIT=":"
14745 else
14746 case $cross_compiling:$ac_tool_warned in
14747 yes:)
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14750 ac_tool_warned=yes ;;
14751 esac
14752 NMEDIT=$ac_ct_NMEDIT
14753 fi
14754 else
14755 NMEDIT="$ac_cv_prog_NMEDIT"
14756 fi
14757
14758 if test -n "$ac_tool_prefix"; then
14759 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14760 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14762 printf %s "checking for $ac_word... " >&6; }
14763 if test ${ac_cv_prog_LIPO+y}
14764 then :
14765 printf %s "(cached) " >&6
14766 else $as_nop
14767 if test -n "$LIPO"; then
14768 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14769 else
14770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771 for as_dir in $PATH
14772 do
14773 IFS=$as_save_IFS
14774 case $as_dir in #(((
14775 '') as_dir=./ ;;
14776 */) ;;
14777 *) as_dir=$as_dir/ ;;
14778 esac
14779 for ac_exec_ext in '' $ac_executable_extensions; do
14780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14781 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14783 break 2
14784 fi
14785 done
14786 done
14787 IFS=$as_save_IFS
14788
14789 fi
14790 fi
14791 LIPO=$ac_cv_prog_LIPO
14792 if test -n "$LIPO"; then
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14794 printf "%s\n" "$LIPO" >&6; }
14795 else
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 printf "%s\n" "no" >&6; }
14798 fi
14799
14800
14801 fi
14802 if test -z "$ac_cv_prog_LIPO"; then
14803 ac_ct_LIPO=$LIPO
14804 # Extract the first word of "lipo", so it can be a program name with args.
14805 set dummy lipo; ac_word=$2
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14807 printf %s "checking for $ac_word... " >&6; }
14808 if test ${ac_cv_prog_ac_ct_LIPO+y}
14809 then :
14810 printf %s "(cached) " >&6
14811 else $as_nop
14812 if test -n "$ac_ct_LIPO"; then
14813 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14814 else
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14817 do
14818 IFS=$as_save_IFS
14819 case $as_dir in #(((
14820 '') as_dir=./ ;;
14821 */) ;;
14822 *) as_dir=$as_dir/ ;;
14823 esac
14824 for ac_exec_ext in '' $ac_executable_extensions; do
14825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14826 ac_cv_prog_ac_ct_LIPO="lipo"
14827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14828 break 2
14829 fi
14830 done
14831 done
14832 IFS=$as_save_IFS
14833
14834 fi
14835 fi
14836 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14837 if test -n "$ac_ct_LIPO"; then
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14839 printf "%s\n" "$ac_ct_LIPO" >&6; }
14840 else
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842 printf "%s\n" "no" >&6; }
14843 fi
14844
14845 if test "x$ac_ct_LIPO" = x; then
14846 LIPO=":"
14847 else
14848 case $cross_compiling:$ac_tool_warned in
14849 yes:)
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14852 ac_tool_warned=yes ;;
14853 esac
14854 LIPO=$ac_ct_LIPO
14855 fi
14856 else
14857 LIPO="$ac_cv_prog_LIPO"
14858 fi
14859
14860 if test -n "$ac_tool_prefix"; then
14861 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14862 set dummy ${ac_tool_prefix}otool; ac_word=$2
14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14864 printf %s "checking for $ac_word... " >&6; }
14865 if test ${ac_cv_prog_OTOOL+y}
14866 then :
14867 printf %s "(cached) " >&6
14868 else $as_nop
14869 if test -n "$OTOOL"; then
14870 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14871 else
14872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14873 for as_dir in $PATH
14874 do
14875 IFS=$as_save_IFS
14876 case $as_dir in #(((
14877 '') as_dir=./ ;;
14878 */) ;;
14879 *) as_dir=$as_dir/ ;;
14880 esac
14881 for ac_exec_ext in '' $ac_executable_extensions; do
14882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14883 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14885 break 2
14886 fi
14887 done
14888 done
14889 IFS=$as_save_IFS
14890
14891 fi
14892 fi
14893 OTOOL=$ac_cv_prog_OTOOL
14894 if test -n "$OTOOL"; then
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14896 printf "%s\n" "$OTOOL" >&6; }
14897 else
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899 printf "%s\n" "no" >&6; }
14900 fi
14901
14902
14903 fi
14904 if test -z "$ac_cv_prog_OTOOL"; then
14905 ac_ct_OTOOL=$OTOOL
14906 # Extract the first word of "otool", so it can be a program name with args.
14907 set dummy otool; ac_word=$2
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14909 printf %s "checking for $ac_word... " >&6; }
14910 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14911 then :
14912 printf %s "(cached) " >&6
14913 else $as_nop
14914 if test -n "$ac_ct_OTOOL"; then
14915 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14916 else
14917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14919 do
14920 IFS=$as_save_IFS
14921 case $as_dir in #(((
14922 '') as_dir=./ ;;
14923 */) ;;
14924 *) as_dir=$as_dir/ ;;
14925 esac
14926 for ac_exec_ext in '' $ac_executable_extensions; do
14927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14928 ac_cv_prog_ac_ct_OTOOL="otool"
14929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14930 break 2
14931 fi
14932 done
14933 done
14934 IFS=$as_save_IFS
14935
14936 fi
14937 fi
14938 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14939 if test -n "$ac_ct_OTOOL"; then
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14941 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14942 else
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 printf "%s\n" "no" >&6; }
14945 fi
14946
14947 if test "x$ac_ct_OTOOL" = x; then
14948 OTOOL=":"
14949 else
14950 case $cross_compiling:$ac_tool_warned in
14951 yes:)
14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14954 ac_tool_warned=yes ;;
14955 esac
14956 OTOOL=$ac_ct_OTOOL
14957 fi
14958 else
14959 OTOOL="$ac_cv_prog_OTOOL"
14960 fi
14961
14962 if test -n "$ac_tool_prefix"; then
14963 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14964 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14966 printf %s "checking for $ac_word... " >&6; }
14967 if test ${ac_cv_prog_OTOOL64+y}
14968 then :
14969 printf %s "(cached) " >&6
14970 else $as_nop
14971 if test -n "$OTOOL64"; then
14972 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14973 else
14974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14975 for as_dir in $PATH
14976 do
14977 IFS=$as_save_IFS
14978 case $as_dir in #(((
14979 '') as_dir=./ ;;
14980 */) ;;
14981 *) as_dir=$as_dir/ ;;
14982 esac
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14985 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14987 break 2
14988 fi
14989 done
14990 done
14991 IFS=$as_save_IFS
14992
14993 fi
14994 fi
14995 OTOOL64=$ac_cv_prog_OTOOL64
14996 if test -n "$OTOOL64"; then
14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14998 printf "%s\n" "$OTOOL64" >&6; }
14999 else
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001 printf "%s\n" "no" >&6; }
15002 fi
15003
15004
15005 fi
15006 if test -z "$ac_cv_prog_OTOOL64"; then
15007 ac_ct_OTOOL64=$OTOOL64
15008 # Extract the first word of "otool64", so it can be a program name with args.
15009 set dummy otool64; ac_word=$2
15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 printf %s "checking for $ac_word... " >&6; }
15012 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15013 then :
15014 printf %s "(cached) " >&6
15015 else $as_nop
15016 if test -n "$ac_ct_OTOOL64"; then
15017 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15018 else
15019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15021 do
15022 IFS=$as_save_IFS
15023 case $as_dir in #(((
15024 '') as_dir=./ ;;
15025 */) ;;
15026 *) as_dir=$as_dir/ ;;
15027 esac
15028 for ac_exec_ext in '' $ac_executable_extensions; do
15029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15030 ac_cv_prog_ac_ct_OTOOL64="otool64"
15031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15032 break 2
15033 fi
15034 done
15035 done
15036 IFS=$as_save_IFS
15037
15038 fi
15039 fi
15040 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15041 if test -n "$ac_ct_OTOOL64"; then
15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15043 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15044 else
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046 printf "%s\n" "no" >&6; }
15047 fi
15048
15049 if test "x$ac_ct_OTOOL64" = x; then
15050 OTOOL64=":"
15051 else
15052 case $cross_compiling:$ac_tool_warned in
15053 yes:)
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15055 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15056 ac_tool_warned=yes ;;
15057 esac
15058 OTOOL64=$ac_ct_OTOOL64
15059 fi
15060 else
15061 OTOOL64="$ac_cv_prog_OTOOL64"
15062 fi
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15091 printf %s "checking for -single_module linker flag... " >&6; }
15092 if test ${lt_cv_apple_cc_single_mod+y}
15093 then :
15094 printf %s "(cached) " >&6
15095 else $as_nop
15096 lt_cv_apple_cc_single_mod=no
15097 if test -z "$LT_MULTI_MODULE"; then
15098 # By default we will add the -single_module flag. You can override
15099 # by either setting the environment variable LT_MULTI_MODULE
15100 # non-empty at configure time, or by adding -multi_module to the
15101 # link flags.
15102 rm -rf libconftest.dylib*
15103 echo "int foo(void){return 1;}" > conftest.c
15104 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15105 -dynamiclib -Wl,-single_module conftest.c" >&5
15106 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15107 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15108 _lt_result=$?
15109 # If there is a non-empty error log, and "single_module"
15110 # appears in it, assume the flag caused a linker warning
15111 if test -s conftest.err && $GREP single_module conftest.err; then
15112 cat conftest.err >&5
15113 # Otherwise, if the output was created with a 0 exit code from
15114 # the compiler, it worked.
15115 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15116 lt_cv_apple_cc_single_mod=yes
15117 else
15118 cat conftest.err >&5
15119 fi
15120 rm -rf libconftest.dylib*
15121 rm -f conftest.*
15122 fi
15123 fi
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15125 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15126
15127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15128 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15129 if test ${lt_cv_ld_exported_symbols_list+y}
15130 then :
15131 printf %s "(cached) " >&6
15132 else $as_nop
15133 lt_cv_ld_exported_symbols_list=no
15134 save_LDFLAGS=$LDFLAGS
15135 echo "_main" > conftest.sym
15136 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139
15140 int
15141 main (void)
15142 {
15143
15144 ;
15145 return 0;
15146 }
15147 _ACEOF
15148 if ac_fn_c_try_link "$LINENO"
15149 then :
15150 lt_cv_ld_exported_symbols_list=yes
15151 else $as_nop
15152 lt_cv_ld_exported_symbols_list=no
15153 fi
15154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15155 conftest$ac_exeext conftest.$ac_ext
15156 LDFLAGS=$save_LDFLAGS
15157
15158 fi
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15160 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15161
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15163 printf %s "checking for -force_load linker flag... " >&6; }
15164 if test ${lt_cv_ld_force_load+y}
15165 then :
15166 printf %s "(cached) " >&6
15167 else $as_nop
15168 lt_cv_ld_force_load=no
15169 cat > conftest.c << _LT_EOF
15170 int forced_loaded() { return 2;}
15171 _LT_EOF
15172 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15173 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15174 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15175 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15176 echo "$RANLIB libconftest.a" >&5
15177 $RANLIB libconftest.a 2>&5
15178 cat > conftest.c << _LT_EOF
15179 int main() { return 0;}
15180 _LT_EOF
15181 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15182 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15183 _lt_result=$?
15184 if test -s conftest.err && $GREP force_load conftest.err; then
15185 cat conftest.err >&5
15186 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15187 lt_cv_ld_force_load=yes
15188 else
15189 cat conftest.err >&5
15190 fi
15191 rm -f conftest.err libconftest.a conftest conftest.c
15192 rm -rf conftest.dSYM
15193
15194 fi
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15196 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15197 case $host_os in
15198 rhapsody* | darwin1.[012])
15199 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15200 darwin1.*)
15201 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15202 darwin*)
15203 case $MACOSX_DEPLOYMENT_TARGET,$host in
15204 10.[012],*|,*powerpc*-darwin[5-8]*)
15205 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15206 *)
15207 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15208 esac
15209 ;;
15210 esac
15211 if test yes = "$lt_cv_apple_cc_single_mod"; then
15212 _lt_dar_single_mod='$single_module'
15213 fi
15214 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15215 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15216 else
15217 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15218 fi
15219 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15220 _lt_dsymutil='~$DSYMUTIL $lib || :'
15221 else
15222 _lt_dsymutil=
15223 fi
15224 ;;
15225 esac
15226
15227 # func_munge_path_list VARIABLE PATH
15228 # -----------------------------------
15229 # VARIABLE is name of variable containing _space_ separated list of
15230 # directories to be munged by the contents of PATH, which is string
15231 # having a format:
15232 # "DIR[:DIR]:"
15233 # string "DIR[ DIR]" will be prepended to VARIABLE
15234 # ":DIR[:DIR]"
15235 # string "DIR[ DIR]" will be appended to VARIABLE
15236 # "DIRP[:DIRP]::[DIRA:]DIRA"
15237 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15238 # "DIRA[ DIRA]" will be appended to VARIABLE
15239 # "DIR[:DIR]"
15240 # VARIABLE will be replaced by "DIR[ DIR]"
15241 func_munge_path_list ()
15242 {
15243 case x$2 in
15244 x)
15245 ;;
15246 *:)
15247 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15248 ;;
15249 x:*)
15250 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15251 ;;
15252 *::*)
15253 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15254 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15255 ;;
15256 *)
15257 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15258 ;;
15259 esac
15260 }
15261
15262 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15263 "
15264 if test "x$ac_cv_header_dlfcn_h" = xyes
15265 then :
15266 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15267
15268 fi
15269
15270
15271
15272
15273
15274 # Set options
15275
15276
15277
15278 enable_dlopen=no
15279
15280
15281 enable_win32_dll=no
15282
15283
15284 # Check whether --enable-shared was given.
15285 if test ${enable_shared+y}
15286 then :
15287 enableval=$enable_shared; p=${PACKAGE-default}
15288 case $enableval in
15289 yes) enable_shared=yes ;;
15290 no) enable_shared=no ;;
15291 *)
15292 enable_shared=no
15293 # Look at the argument we got. We use all the common list separators.
15294 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15295 for pkg in $enableval; do
15296 IFS=$lt_save_ifs
15297 if test "X$pkg" = "X$p"; then
15298 enable_shared=yes
15299 fi
15300 done
15301 IFS=$lt_save_ifs
15302 ;;
15303 esac
15304 else $as_nop
15305 enable_shared=yes
15306 fi
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318 # Check whether --with-pic was given.
15319 if test ${with_pic+y}
15320 then :
15321 withval=$with_pic; lt_p=${PACKAGE-default}
15322 case $withval in
15323 yes|no) pic_mode=$withval ;;
15324 *)
15325 pic_mode=default
15326 # Look at the argument we got. We use all the common list separators.
15327 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15328 for lt_pkg in $withval; do
15329 IFS=$lt_save_ifs
15330 if test "X$lt_pkg" = "X$lt_p"; then
15331 pic_mode=yes
15332 fi
15333 done
15334 IFS=$lt_save_ifs
15335 ;;
15336 esac
15337 else $as_nop
15338 pic_mode=default
15339 fi
15340
15341
15342
15343
15344
15345
15346
15347
15348 # Check whether --enable-fast-install was given.
15349 if test ${enable_fast_install+y}
15350 then :
15351 enableval=$enable_fast_install; p=${PACKAGE-default}
15352 case $enableval in
15353 yes) enable_fast_install=yes ;;
15354 no) enable_fast_install=no ;;
15355 *)
15356 enable_fast_install=no
15357 # Look at the argument we got. We use all the common list separators.
15358 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15359 for pkg in $enableval; do
15360 IFS=$lt_save_ifs
15361 if test "X$pkg" = "X$p"; then
15362 enable_fast_install=yes
15363 fi
15364 done
15365 IFS=$lt_save_ifs
15366 ;;
15367 esac
15368 else $as_nop
15369 enable_fast_install=yes
15370 fi
15371
15372
15373
15374
15375
15376
15377
15378
15379 shared_archive_member_spec=
15380 case $host,$enable_shared in
15381 power*-*-aix[5-9]*,yes)
15382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15383 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15384
15385 # Check whether --with-aix-soname was given.
15386 if test ${with_aix_soname+y}
15387 then :
15388 withval=$with_aix_soname; case $withval in
15389 aix|svr4|both)
15390 ;;
15391 *)
15392 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15393 ;;
15394 esac
15395 lt_cv_with_aix_soname=$with_aix_soname
15396 else $as_nop
15397 if test ${lt_cv_with_aix_soname+y}
15398 then :
15399 printf %s "(cached) " >&6
15400 else $as_nop
15401 lt_cv_with_aix_soname=aix
15402 fi
15403
15404 with_aix_soname=$lt_cv_with_aix_soname
15405 fi
15406
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15408 printf "%s\n" "$with_aix_soname" >&6; }
15409 if test aix != "$with_aix_soname"; then
15410 # For the AIX way of multilib, we name the shared archive member
15411 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15412 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15413 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15414 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15415 if test 64 = "${OBJECT_MODE-32}"; then
15416 shared_archive_member_spec=shr_64
15417 else
15418 shared_archive_member_spec=shr
15419 fi
15420 fi
15421 ;;
15422 *)
15423 with_aix_soname=aix
15424 ;;
15425 esac
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436 # This can be used to rebuild libtool when needed
15437 LIBTOOL_DEPS=$ltmain
15438
15439 # Always use our own libtool.
15440 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471 test -z "$LN_S" && LN_S="ln -s"
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486 if test -n "${ZSH_VERSION+set}"; then
15487 setopt NO_GLOB_SUBST
15488 fi
15489
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15491 printf %s "checking for objdir... " >&6; }
15492 if test ${lt_cv_objdir+y}
15493 then :
15494 printf %s "(cached) " >&6
15495 else $as_nop
15496 rm -f .libs 2>/dev/null
15497 mkdir .libs 2>/dev/null
15498 if test -d .libs; then
15499 lt_cv_objdir=.libs
15500 else
15501 # MS-DOS does not allow filenames that begin with a dot.
15502 lt_cv_objdir=_libs
15503 fi
15504 rmdir .libs 2>/dev/null
15505 fi
15506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15507 printf "%s\n" "$lt_cv_objdir" >&6; }
15508 objdir=$lt_cv_objdir
15509
15510
15511
15512
15513
15514 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15515
15516
15517
15518
15519 case $host_os in
15520 aix3*)
15521 # AIX sometimes has problems with the GCC collect2 program. For some
15522 # reason, if we set the COLLECT_NAMES environment variable, the problems
15523 # vanish in a puff of smoke.
15524 if test set != "${COLLECT_NAMES+set}"; then
15525 COLLECT_NAMES=
15526 export COLLECT_NAMES
15527 fi
15528 ;;
15529 esac
15530
15531 # Global variables:
15532 ofile=libtool
15533 can_build_shared=yes
15534
15535 # All known linkers require a '.a' archive for static linking (except MSVC and
15536 # ICC, which need '.lib').
15537 libext=a
15538
15539 with_gnu_ld=$lt_cv_prog_gnu_ld
15540
15541 old_CC=$CC
15542 old_CFLAGS=$CFLAGS
15543
15544 # Set sane defaults for various variables
15545 test -z "$CC" && CC=cc
15546 test -z "$LTCC" && LTCC=$CC
15547 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15548 test -z "$LD" && LD=ld
15549 test -z "$ac_objext" && ac_objext=o
15550
15551 func_cc_basename $compiler
15552 cc_basename=$func_cc_basename_result
15553
15554
15555 # Only perform the check for file, if the check method requires it
15556 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15557 case $deplibs_check_method in
15558 file_magic*)
15559 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15561 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15562 if test ${lt_cv_path_MAGIC_CMD+y}
15563 then :
15564 printf %s "(cached) " >&6
15565 else $as_nop
15566 case $MAGIC_CMD in
15567 [\\/*] | ?:[\\/]*)
15568 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15569 ;;
15570 *)
15571 lt_save_MAGIC_CMD=$MAGIC_CMD
15572 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15574 for ac_dir in $ac_dummy; do
15575 IFS=$lt_save_ifs
15576 test -z "$ac_dir" && ac_dir=.
15577 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15578 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15579 if test -n "$file_magic_test_file"; then
15580 case $deplibs_check_method in
15581 "file_magic "*)
15582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15583 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15585 $EGREP "$file_magic_regex" > /dev/null; then
15586 :
15587 else
15588 cat <<_LT_EOF 1>&2
15589
15590 *** Warning: the command libtool uses to detect shared libraries,
15591 *** $file_magic_cmd, produces output that libtool cannot recognize.
15592 *** The result is that libtool may fail to recognize shared libraries
15593 *** as such. This will affect the creation of libtool libraries that
15594 *** depend on shared libraries, but programs linked with such libtool
15595 *** libraries will work regardless of this problem. Nevertheless, you
15596 *** may want to report the problem to your system manager and/or to
15597 *** bug-libtool@gnu.org
15598
15599 _LT_EOF
15600 fi ;;
15601 esac
15602 fi
15603 break
15604 fi
15605 done
15606 IFS=$lt_save_ifs
15607 MAGIC_CMD=$lt_save_MAGIC_CMD
15608 ;;
15609 esac
15610 fi
15611
15612 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15613 if test -n "$MAGIC_CMD"; then
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15615 printf "%s\n" "$MAGIC_CMD" >&6; }
15616 else
15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618 printf "%s\n" "no" >&6; }
15619 fi
15620
15621
15622
15623
15624
15625 if test -z "$lt_cv_path_MAGIC_CMD"; then
15626 if test -n "$ac_tool_prefix"; then
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15628 printf %s "checking for file... " >&6; }
15629 if test ${lt_cv_path_MAGIC_CMD+y}
15630 then :
15631 printf %s "(cached) " >&6
15632 else $as_nop
15633 case $MAGIC_CMD in
15634 [\\/*] | ?:[\\/]*)
15635 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15636 ;;
15637 *)
15638 lt_save_MAGIC_CMD=$MAGIC_CMD
15639 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15641 for ac_dir in $ac_dummy; do
15642 IFS=$lt_save_ifs
15643 test -z "$ac_dir" && ac_dir=.
15644 if test -f "$ac_dir/file"; then
15645 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15646 if test -n "$file_magic_test_file"; then
15647 case $deplibs_check_method in
15648 "file_magic "*)
15649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15650 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15652 $EGREP "$file_magic_regex" > /dev/null; then
15653 :
15654 else
15655 cat <<_LT_EOF 1>&2
15656
15657 *** Warning: the command libtool uses to detect shared libraries,
15658 *** $file_magic_cmd, produces output that libtool cannot recognize.
15659 *** The result is that libtool may fail to recognize shared libraries
15660 *** as such. This will affect the creation of libtool libraries that
15661 *** depend on shared libraries, but programs linked with such libtool
15662 *** libraries will work regardless of this problem. Nevertheless, you
15663 *** may want to report the problem to your system manager and/or to
15664 *** bug-libtool@gnu.org
15665
15666 _LT_EOF
15667 fi ;;
15668 esac
15669 fi
15670 break
15671 fi
15672 done
15673 IFS=$lt_save_ifs
15674 MAGIC_CMD=$lt_save_MAGIC_CMD
15675 ;;
15676 esac
15677 fi
15678
15679 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15680 if test -n "$MAGIC_CMD"; then
15681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15682 printf "%s\n" "$MAGIC_CMD" >&6; }
15683 else
15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685 printf "%s\n" "no" >&6; }
15686 fi
15687
15688
15689 else
15690 MAGIC_CMD=:
15691 fi
15692 fi
15693
15694 fi
15695 ;;
15696 esac
15697
15698 # Use C for the default configuration in the libtool script
15699
15700 lt_save_CC=$CC
15701 ac_ext=c
15702 ac_cpp='$CPP $CPPFLAGS'
15703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15706
15707
15708 # Source file extension for C test sources.
15709 ac_ext=c
15710
15711 # Object file extension for compiled C test sources.
15712 objext=o
15713 objext=$objext
15714
15715 # Code to be used in simple compile tests
15716 lt_simple_compile_test_code="int some_variable = 0;"
15717
15718 # Code to be used in simple link tests
15719 lt_simple_link_test_code='int main(){return(0);}'
15720
15721
15722
15723
15724
15725
15726
15727 # If no C compiler was specified, use CC.
15728 LTCC=${LTCC-"$CC"}
15729
15730 # If no C compiler flags were specified, use CFLAGS.
15731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15732
15733 # Allow CC to be a program name with arguments.
15734 compiler=$CC
15735
15736 # Save the default compiler, since it gets overwritten when the other
15737 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15738 compiler_DEFAULT=$CC
15739
15740 # save warnings/boilerplate of simple test code
15741 ac_outfile=conftest.$ac_objext
15742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15744 _lt_compiler_boilerplate=`cat conftest.err`
15745 $RM conftest*
15746
15747 ac_outfile=conftest.$ac_objext
15748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15750 _lt_linker_boilerplate=`cat conftest.err`
15751 $RM -r conftest*
15752
15753
15754 ## CAVEAT EMPTOR:
15755 ## There is no encapsulation within the following macros, do not change
15756 ## the running order or otherwise move them around unless you know exactly
15757 ## what you are doing...
15758 if test -n "$compiler"; then
15759
15760 lt_prog_compiler_no_builtin_flag=
15761
15762 if test yes = "$GCC"; then
15763 case $cc_basename in
15764 nvcc*)
15765 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15766 *)
15767 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15768 esac
15769
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15771 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15772 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15773 then :
15774 printf %s "(cached) " >&6
15775 else $as_nop
15776 lt_cv_prog_compiler_rtti_exceptions=no
15777 ac_outfile=conftest.$ac_objext
15778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15779 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15780 # Insert the option either (1) after the last *FLAGS variable, or
15781 # (2) before a word containing "conftest.", or (3) at the end.
15782 # Note that $ac_compile itself does not contain backslashes and begins
15783 # with a dollar sign (not a hyphen), so the echo should work correctly.
15784 # The option is referenced via a variable to avoid confusing sed.
15785 lt_compile=`echo "$ac_compile" | $SED \
15786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15788 -e 's:$: $lt_compiler_flag:'`
15789 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15790 (eval "$lt_compile" 2>conftest.err)
15791 ac_status=$?
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 if (exit $ac_status) && test -s "$ac_outfile"; then
15795 # The compiler can only warn and ignore the option if not recognized
15796 # So say no if there are warnings other than the usual output.
15797 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15799 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15800 lt_cv_prog_compiler_rtti_exceptions=yes
15801 fi
15802 fi
15803 $RM conftest*
15804
15805 fi
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15807 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15808
15809 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15810 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15811 else
15812 :
15813 fi
15814
15815 fi
15816
15817
15818
15819
15820
15821
15822 lt_prog_compiler_wl=
15823 lt_prog_compiler_pic=
15824 lt_prog_compiler_static=
15825
15826
15827 if test yes = "$GCC"; then
15828 lt_prog_compiler_wl='-Wl,'
15829 lt_prog_compiler_static='-static'
15830
15831 case $host_os in
15832 aix*)
15833 # All AIX code is PIC.
15834 if test ia64 = "$host_cpu"; then
15835 # AIX 5 now supports IA64 processor
15836 lt_prog_compiler_static='-Bstatic'
15837 fi
15838 lt_prog_compiler_pic='-fPIC'
15839 ;;
15840
15841 amigaos*)
15842 case $host_cpu in
15843 powerpc)
15844 # see comment about AmigaOS4 .so support
15845 lt_prog_compiler_pic='-fPIC'
15846 ;;
15847 m68k)
15848 # FIXME: we need at least 68020 code to build shared libraries, but
15849 # adding the '-m68020' flag to GCC prevents building anything better,
15850 # like '-m68040'.
15851 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15852 ;;
15853 esac
15854 ;;
15855
15856 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15857 # PIC is the default for these OSes.
15858 ;;
15859
15860 mingw* | cygwin* | pw32* | os2* | cegcc*)
15861 # This hack is so that the source file can tell whether it is being
15862 # built for inclusion in a dll (and should export symbols for example).
15863 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15864 # (--disable-auto-import) libraries
15865 lt_prog_compiler_pic='-DDLL_EXPORT'
15866 case $host_os in
15867 os2*)
15868 lt_prog_compiler_static='$wl-static'
15869 ;;
15870 esac
15871 ;;
15872
15873 darwin* | rhapsody*)
15874 # PIC is the default on this platform
15875 # Common symbols not allowed in MH_DYLIB files
15876 lt_prog_compiler_pic='-fno-common'
15877 ;;
15878
15879 haiku*)
15880 # PIC is the default for Haiku.
15881 # The "-static" flag exists, but is broken.
15882 lt_prog_compiler_static=
15883 ;;
15884
15885 hpux*)
15886 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15887 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15888 # sets the default TLS model and affects inlining.
15889 case $host_cpu in
15890 hppa*64*)
15891 # +Z the default
15892 ;;
15893 *)
15894 lt_prog_compiler_pic='-fPIC'
15895 ;;
15896 esac
15897 ;;
15898
15899 interix[3-9]*)
15900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15901 # Instead, we relocate shared libraries at runtime.
15902 ;;
15903
15904 msdosdjgpp*)
15905 # Just because we use GCC doesn't mean we suddenly get shared libraries
15906 # on systems that don't support them.
15907 lt_prog_compiler_can_build_shared=no
15908 enable_shared=no
15909 ;;
15910
15911 *nto* | *qnx*)
15912 # QNX uses GNU C++, but need to define -shared option too, otherwise
15913 # it will coredump.
15914 lt_prog_compiler_pic='-fPIC -shared'
15915 ;;
15916
15917 sysv4*MP*)
15918 if test -d /usr/nec; then
15919 lt_prog_compiler_pic=-Kconform_pic
15920 fi
15921 ;;
15922
15923 *)
15924 lt_prog_compiler_pic='-fPIC'
15925 ;;
15926 esac
15927
15928 case $cc_basename in
15929 nvcc*) # Cuda Compiler Driver 2.2
15930 lt_prog_compiler_wl='-Xlinker '
15931 if test -n "$lt_prog_compiler_pic"; then
15932 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15933 fi
15934 ;;
15935 esac
15936 else
15937 # PORTME Check for flag to pass linker flags through the system compiler.
15938 case $host_os in
15939 aix*)
15940 lt_prog_compiler_wl='-Wl,'
15941 if test ia64 = "$host_cpu"; then
15942 # AIX 5 now supports IA64 processor
15943 lt_prog_compiler_static='-Bstatic'
15944 else
15945 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15946 fi
15947 ;;
15948
15949 darwin* | rhapsody*)
15950 # PIC is the default on this platform
15951 # Common symbols not allowed in MH_DYLIB files
15952 lt_prog_compiler_pic='-fno-common'
15953 case $cc_basename in
15954 nagfor*)
15955 # NAG Fortran compiler
15956 lt_prog_compiler_wl='-Wl,-Wl,,'
15957 lt_prog_compiler_pic='-PIC'
15958 lt_prog_compiler_static='-Bstatic'
15959 ;;
15960 esac
15961 ;;
15962
15963 mingw* | cygwin* | pw32* | os2* | cegcc*)
15964 # This hack is so that the source file can tell whether it is being
15965 # built for inclusion in a dll (and should export symbols for example).
15966 lt_prog_compiler_pic='-DDLL_EXPORT'
15967 case $host_os in
15968 os2*)
15969 lt_prog_compiler_static='$wl-static'
15970 ;;
15971 esac
15972 ;;
15973
15974 hpux9* | hpux10* | hpux11*)
15975 lt_prog_compiler_wl='-Wl,'
15976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15977 # not for PA HP-UX.
15978 case $host_cpu in
15979 hppa*64*|ia64*)
15980 # +Z the default
15981 ;;
15982 *)
15983 lt_prog_compiler_pic='+Z'
15984 ;;
15985 esac
15986 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15987 lt_prog_compiler_static='$wl-a ${wl}archive'
15988 ;;
15989
15990 irix5* | irix6* | nonstopux*)
15991 lt_prog_compiler_wl='-Wl,'
15992 # PIC (with -KPIC) is the default.
15993 lt_prog_compiler_static='-non_shared'
15994 ;;
15995
15996 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15997 case $cc_basename in
15998 # old Intel for x86_64, which still supported -KPIC.
15999 ecc*)
16000 lt_prog_compiler_wl='-Wl,'
16001 lt_prog_compiler_pic='-KPIC'
16002 lt_prog_compiler_static='-static'
16003 ;;
16004 # icc used to be incompatible with GCC.
16005 # ICC 10 doesn't accept -KPIC any more.
16006 icc* | ifort*)
16007 lt_prog_compiler_wl='-Wl,'
16008 lt_prog_compiler_pic='-fPIC'
16009 lt_prog_compiler_static='-static'
16010 ;;
16011 # Lahey Fortran 8.1.
16012 lf95*)
16013 lt_prog_compiler_wl='-Wl,'
16014 lt_prog_compiler_pic='--shared'
16015 lt_prog_compiler_static='--static'
16016 ;;
16017 nagfor*)
16018 # NAG Fortran compiler
16019 lt_prog_compiler_wl='-Wl,-Wl,,'
16020 lt_prog_compiler_pic='-PIC'
16021 lt_prog_compiler_static='-Bstatic'
16022 ;;
16023 tcc*)
16024 # Fabrice Bellard et al's Tiny C Compiler
16025 lt_prog_compiler_wl='-Wl,'
16026 lt_prog_compiler_pic='-fPIC'
16027 lt_prog_compiler_static='-static'
16028 ;;
16029 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16030 # Portland Group compilers (*not* the Pentium gcc compiler,
16031 # which looks to be a dead project)
16032 lt_prog_compiler_wl='-Wl,'
16033 lt_prog_compiler_pic='-fpic'
16034 lt_prog_compiler_static='-Bstatic'
16035 ;;
16036 ccc*)
16037 lt_prog_compiler_wl='-Wl,'
16038 # All Alpha code is PIC.
16039 lt_prog_compiler_static='-non_shared'
16040 ;;
16041 xl* | bgxl* | bgf* | mpixl*)
16042 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16043 lt_prog_compiler_wl='-Wl,'
16044 lt_prog_compiler_pic='-qpic'
16045 lt_prog_compiler_static='-qstaticlink'
16046 ;;
16047 *)
16048 case `$CC -V 2>&1 | $SED 5q` in
16049 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16050 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16051 lt_prog_compiler_pic='-KPIC'
16052 lt_prog_compiler_static='-Bstatic'
16053 lt_prog_compiler_wl=''
16054 ;;
16055 *Sun\ F* | *Sun*Fortran*)
16056 lt_prog_compiler_pic='-KPIC'
16057 lt_prog_compiler_static='-Bstatic'
16058 lt_prog_compiler_wl='-Qoption ld '
16059 ;;
16060 *Sun\ C*)
16061 # Sun C 5.9
16062 lt_prog_compiler_pic='-KPIC'
16063 lt_prog_compiler_static='-Bstatic'
16064 lt_prog_compiler_wl='-Wl,'
16065 ;;
16066 *Intel*\ [CF]*Compiler*)
16067 lt_prog_compiler_wl='-Wl,'
16068 lt_prog_compiler_pic='-fPIC'
16069 lt_prog_compiler_static='-static'
16070 ;;
16071 *Portland\ Group*)
16072 lt_prog_compiler_wl='-Wl,'
16073 lt_prog_compiler_pic='-fpic'
16074 lt_prog_compiler_static='-Bstatic'
16075 ;;
16076 esac
16077 ;;
16078 esac
16079 ;;
16080
16081 newsos6)
16082 lt_prog_compiler_pic='-KPIC'
16083 lt_prog_compiler_static='-Bstatic'
16084 ;;
16085
16086 *nto* | *qnx*)
16087 # QNX uses GNU C++, but need to define -shared option too, otherwise
16088 # it will coredump.
16089 lt_prog_compiler_pic='-fPIC -shared'
16090 ;;
16091
16092 osf3* | osf4* | osf5*)
16093 lt_prog_compiler_wl='-Wl,'
16094 # All OSF/1 code is PIC.
16095 lt_prog_compiler_static='-non_shared'
16096 ;;
16097
16098 rdos*)
16099 lt_prog_compiler_static='-non_shared'
16100 ;;
16101
16102 solaris*)
16103 lt_prog_compiler_pic='-KPIC'
16104 lt_prog_compiler_static='-Bstatic'
16105 case $cc_basename in
16106 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16107 lt_prog_compiler_wl='-Qoption ld ';;
16108 *)
16109 lt_prog_compiler_wl='-Wl,';;
16110 esac
16111 ;;
16112
16113 sunos4*)
16114 lt_prog_compiler_wl='-Qoption ld '
16115 lt_prog_compiler_pic='-PIC'
16116 lt_prog_compiler_static='-Bstatic'
16117 ;;
16118
16119 sysv4 | sysv4.2uw2* | sysv4.3*)
16120 lt_prog_compiler_wl='-Wl,'
16121 lt_prog_compiler_pic='-KPIC'
16122 lt_prog_compiler_static='-Bstatic'
16123 ;;
16124
16125 sysv4*MP*)
16126 if test -d /usr/nec; then
16127 lt_prog_compiler_pic='-Kconform_pic'
16128 lt_prog_compiler_static='-Bstatic'
16129 fi
16130 ;;
16131
16132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16133 lt_prog_compiler_wl='-Wl,'
16134 lt_prog_compiler_pic='-KPIC'
16135 lt_prog_compiler_static='-Bstatic'
16136 ;;
16137
16138 unicos*)
16139 lt_prog_compiler_wl='-Wl,'
16140 lt_prog_compiler_can_build_shared=no
16141 ;;
16142
16143 uts4*)
16144 lt_prog_compiler_pic='-pic'
16145 lt_prog_compiler_static='-Bstatic'
16146 ;;
16147
16148 *)
16149 lt_prog_compiler_can_build_shared=no
16150 ;;
16151 esac
16152 fi
16153
16154 case $host_os in
16155 # For platforms that do not support PIC, -DPIC is meaningless:
16156 *djgpp*)
16157 lt_prog_compiler_pic=
16158 ;;
16159 *)
16160 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16161 ;;
16162 esac
16163
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16165 printf %s "checking for $compiler option to produce PIC... " >&6; }
16166 if test ${lt_cv_prog_compiler_pic+y}
16167 then :
16168 printf %s "(cached) " >&6
16169 else $as_nop
16170 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
16171 fi
16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16173 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16174 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16175
16176 #
16177 # Check to make sure the PIC flag actually works.
16178 #
16179 if test -n "$lt_prog_compiler_pic"; then
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16181 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16182 if test ${lt_cv_prog_compiler_pic_works+y}
16183 then :
16184 printf %s "(cached) " >&6
16185 else $as_nop
16186 lt_cv_prog_compiler_pic_works=no
16187 ac_outfile=conftest.$ac_objext
16188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16189 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
16190 # Insert the option either (1) after the last *FLAGS variable, or
16191 # (2) before a word containing "conftest.", or (3) at the end.
16192 # Note that $ac_compile itself does not contain backslashes and begins
16193 # with a dollar sign (not a hyphen), so the echo should work correctly.
16194 # The option is referenced via a variable to avoid confusing sed.
16195 lt_compile=`echo "$ac_compile" | $SED \
16196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16198 -e 's:$: $lt_compiler_flag:'`
16199 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16200 (eval "$lt_compile" 2>conftest.err)
16201 ac_status=$?
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 if (exit $ac_status) && test -s "$ac_outfile"; then
16205 # The compiler can only warn and ignore the option if not recognized
16206 # So say no if there are warnings other than the usual output.
16207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16209 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16210 lt_cv_prog_compiler_pic_works=yes
16211 fi
16212 fi
16213 $RM conftest*
16214
16215 fi
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16217 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16218
16219 if test yes = "$lt_cv_prog_compiler_pic_works"; then
16220 case $lt_prog_compiler_pic in
16221 "" | " "*) ;;
16222 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16223 esac
16224 else
16225 lt_prog_compiler_pic=
16226 lt_prog_compiler_can_build_shared=no
16227 fi
16228
16229 fi
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241 #
16242 # Check to make sure the static flag actually works.
16243 #
16244 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16246 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16247 if test ${lt_cv_prog_compiler_static_works+y}
16248 then :
16249 printf %s "(cached) " >&6
16250 else $as_nop
16251 lt_cv_prog_compiler_static_works=no
16252 save_LDFLAGS=$LDFLAGS
16253 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16254 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16255 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16256 # The linker can only warn and ignore the option if not recognized
16257 # So say no if there are warnings
16258 if test -s conftest.err; then
16259 # Append any errors to the config.log.
16260 cat conftest.err 1>&5
16261 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16263 if diff conftest.exp conftest.er2 >/dev/null; then
16264 lt_cv_prog_compiler_static_works=yes
16265 fi
16266 else
16267 lt_cv_prog_compiler_static_works=yes
16268 fi
16269 fi
16270 $RM -r conftest*
16271 LDFLAGS=$save_LDFLAGS
16272
16273 fi
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16275 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16276
16277 if test yes = "$lt_cv_prog_compiler_static_works"; then
16278 :
16279 else
16280 lt_prog_compiler_static=
16281 fi
16282
16283
16284
16285
16286
16287
16288
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16290 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16291 if test ${lt_cv_prog_compiler_c_o+y}
16292 then :
16293 printf %s "(cached) " >&6
16294 else $as_nop
16295 lt_cv_prog_compiler_c_o=no
16296 $RM -r conftest 2>/dev/null
16297 mkdir conftest
16298 cd conftest
16299 mkdir out
16300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16301
16302 lt_compiler_flag="-o out/conftest2.$ac_objext"
16303 # Insert the option either (1) after the last *FLAGS variable, or
16304 # (2) before a word containing "conftest.", or (3) at the end.
16305 # Note that $ac_compile itself does not contain backslashes and begins
16306 # with a dollar sign (not a hyphen), so the echo should work correctly.
16307 lt_compile=`echo "$ac_compile" | $SED \
16308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16310 -e 's:$: $lt_compiler_flag:'`
16311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16312 (eval "$lt_compile" 2>out/conftest.err)
16313 ac_status=$?
16314 cat out/conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16317 then
16318 # The compiler can only warn and ignore the option if not recognized
16319 # So say no if there are warnings
16320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16323 lt_cv_prog_compiler_c_o=yes
16324 fi
16325 fi
16326 chmod u+w . 2>&5
16327 $RM conftest*
16328 # SGI C++ compiler will create directory out/ii_files/ for
16329 # template instantiation
16330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16331 $RM out/* && rmdir out
16332 cd ..
16333 $RM -r conftest
16334 $RM conftest*
16335
16336 fi
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16338 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16339
16340
16341
16342
16343
16344
16345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16346 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16347 if test ${lt_cv_prog_compiler_c_o+y}
16348 then :
16349 printf %s "(cached) " >&6
16350 else $as_nop
16351 lt_cv_prog_compiler_c_o=no
16352 $RM -r conftest 2>/dev/null
16353 mkdir conftest
16354 cd conftest
16355 mkdir out
16356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16357
16358 lt_compiler_flag="-o out/conftest2.$ac_objext"
16359 # Insert the option either (1) after the last *FLAGS variable, or
16360 # (2) before a word containing "conftest.", or (3) at the end.
16361 # Note that $ac_compile itself does not contain backslashes and begins
16362 # with a dollar sign (not a hyphen), so the echo should work correctly.
16363 lt_compile=`echo "$ac_compile" | $SED \
16364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16366 -e 's:$: $lt_compiler_flag:'`
16367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16368 (eval "$lt_compile" 2>out/conftest.err)
16369 ac_status=$?
16370 cat out/conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16373 then
16374 # The compiler can only warn and ignore the option if not recognized
16375 # So say no if there are warnings
16376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16379 lt_cv_prog_compiler_c_o=yes
16380 fi
16381 fi
16382 chmod u+w . 2>&5
16383 $RM conftest*
16384 # SGI C++ compiler will create directory out/ii_files/ for
16385 # template instantiation
16386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16387 $RM out/* && rmdir out
16388 cd ..
16389 $RM -r conftest
16390 $RM conftest*
16391
16392 fi
16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16394 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16395
16396
16397
16398
16399 hard_links=nottested
16400 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16401 # do not overwrite the value of need_locks provided by the user
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16403 printf %s "checking if we can lock with hard links... " >&6; }
16404 hard_links=yes
16405 $RM conftest*
16406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16407 touch conftest.a
16408 ln conftest.a conftest.b 2>&5 || hard_links=no
16409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16411 printf "%s\n" "$hard_links" >&6; }
16412 if test no = "$hard_links"; then
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16414 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16415 need_locks=warn
16416 fi
16417 else
16418 need_locks=no
16419 fi
16420
16421
16422
16423
16424
16425
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16427 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16428
16429 runpath_var=
16430 allow_undefined_flag=
16431 always_export_symbols=no
16432 archive_cmds=
16433 archive_expsym_cmds=
16434 compiler_needs_object=no
16435 enable_shared_with_static_runtimes=no
16436 export_dynamic_flag_spec=
16437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16438 hardcode_automatic=no
16439 hardcode_direct=no
16440 hardcode_direct_absolute=no
16441 hardcode_libdir_flag_spec=
16442 hardcode_libdir_separator=
16443 hardcode_minus_L=no
16444 hardcode_shlibpath_var=unsupported
16445 inherit_rpath=no
16446 link_all_deplibs=unknown
16447 module_cmds=
16448 module_expsym_cmds=
16449 old_archive_from_new_cmds=
16450 old_archive_from_expsyms_cmds=
16451 thread_safe_flag_spec=
16452 whole_archive_flag_spec=
16453 # include_expsyms should be a list of space-separated symbols to be *always*
16454 # included in the symbol list
16455 include_expsyms=
16456 # exclude_expsyms can be an extended regexp of symbols to exclude
16457 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16458 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16459 # as well as any symbol that contains 'd'.
16460 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16461 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16462 # platforms (ab)use it in PIC code, but their linkers get confused if
16463 # the symbol is explicitly referenced. Since portable code cannot
16464 # rely on this symbol name, it's probably fine to never include it in
16465 # preloaded symbol tables.
16466 # Exclude shared library initialization/finalization symbols.
16467 extract_expsyms_cmds=
16468
16469 case $host_os in
16470 cygwin* | mingw* | pw32* | cegcc*)
16471 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16472 # When not using gcc, we currently assume that we are using
16473 # Microsoft Visual C++ or Intel C++ Compiler.
16474 if test yes != "$GCC"; then
16475 with_gnu_ld=no
16476 fi
16477 ;;
16478 interix*)
16479 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16480 with_gnu_ld=yes
16481 ;;
16482 openbsd* | bitrig*)
16483 with_gnu_ld=no
16484 ;;
16485 esac
16486
16487 ld_shlibs=yes
16488
16489 # On some targets, GNU ld is compatible enough with the native linker
16490 # that we're better off using the native interface for both.
16491 lt_use_gnu_ld_interface=no
16492 if test yes = "$with_gnu_ld"; then
16493 case $host_os in
16494 aix*)
16495 # The AIX port of GNU ld has always aspired to compatibility
16496 # with the native linker. However, as the warning in the GNU ld
16497 # block says, versions before 2.19.5* couldn't really create working
16498 # shared libraries, regardless of the interface used.
16499 case `$LD -v 2>&1` in
16500 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16501 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16502 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16503 *)
16504 lt_use_gnu_ld_interface=yes
16505 ;;
16506 esac
16507 ;;
16508 *)
16509 lt_use_gnu_ld_interface=yes
16510 ;;
16511 esac
16512 fi
16513
16514 if test yes = "$lt_use_gnu_ld_interface"; then
16515 # If archive_cmds runs LD, not CC, wlarc should be empty
16516 wlarc='$wl'
16517
16518 # Set some defaults for GNU ld with shared library support. These
16519 # are reset later if shared libraries are not supported. Putting them
16520 # here allows them to be overridden if necessary.
16521 runpath_var=LD_RUN_PATH
16522 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16523 export_dynamic_flag_spec='$wl--export-dynamic'
16524 # ancient GNU ld didn't support --whole-archive et. al.
16525 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16526 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16527 else
16528 whole_archive_flag_spec=
16529 fi
16530 supports_anon_versioning=no
16531 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16532 *GNU\ gold*) supports_anon_versioning=yes ;;
16533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16536 *\ 2.11.*) ;; # other 2.11 versions
16537 *) supports_anon_versioning=yes ;;
16538 esac
16539
16540 # See if GNU ld supports shared libraries.
16541 case $host_os in
16542 aix[3-9]*)
16543 # On AIX/PPC, the GNU linker is very broken
16544 if test ia64 != "$host_cpu"; then
16545 ld_shlibs=no
16546 cat <<_LT_EOF 1>&2
16547
16548 *** Warning: the GNU linker, at least up to release 2.19, is reported
16549 *** to be unable to reliably create shared libraries on AIX.
16550 *** Therefore, libtool is disabling shared libraries support. If you
16551 *** really care for shared libraries, you may want to install binutils
16552 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16553 *** You will then need to restart the configuration process.
16554
16555 _LT_EOF
16556 fi
16557 ;;
16558
16559 amigaos*)
16560 case $host_cpu in
16561 powerpc)
16562 # see comment about AmigaOS4 .so support
16563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16564 archive_expsym_cmds=''
16565 ;;
16566 m68k)
16567 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)'
16568 hardcode_libdir_flag_spec='-L$libdir'
16569 hardcode_minus_L=yes
16570 ;;
16571 esac
16572 ;;
16573
16574 beos*)
16575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16576 allow_undefined_flag=unsupported
16577 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16578 # support --undefined. This deserves some investigation. FIXME
16579 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16580 else
16581 ld_shlibs=no
16582 fi
16583 ;;
16584
16585 cygwin* | mingw* | pw32* | cegcc*)
16586 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16587 # as there is no search path for DLLs.
16588 hardcode_libdir_flag_spec='-L$libdir'
16589 export_dynamic_flag_spec='$wl--export-all-symbols'
16590 allow_undefined_flag=unsupported
16591 always_export_symbols=no
16592 enable_shared_with_static_runtimes=yes
16593 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'
16594 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16595
16596 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16598 # If the export-symbols file already is a .def file, use it as
16599 # is; otherwise, prepend EXPORTS...
16600 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16601 cp $export_symbols $output_objdir/$soname.def;
16602 else
16603 echo EXPORTS > $output_objdir/$soname.def;
16604 cat $export_symbols >> $output_objdir/$soname.def;
16605 fi~
16606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16607 else
16608 ld_shlibs=no
16609 fi
16610 ;;
16611
16612 haiku*)
16613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16614 link_all_deplibs=yes
16615 ;;
16616
16617 os2*)
16618 hardcode_libdir_flag_spec='-L$libdir'
16619 hardcode_minus_L=yes
16620 allow_undefined_flag=unsupported
16621 shrext_cmds=.dll
16622 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16625 $ECHO EXPORTS >> $output_objdir/$libname.def~
16626 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16627 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16628 emximp -o $lib $output_objdir/$libname.def'
16629 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16632 $ECHO EXPORTS >> $output_objdir/$libname.def~
16633 prefix_cmds="$SED"~
16634 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16635 prefix_cmds="$prefix_cmds -e 1d";
16636 fi~
16637 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16638 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16639 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16640 emximp -o $lib $output_objdir/$libname.def'
16641 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16642 enable_shared_with_static_runtimes=yes
16643 file_list_spec='@'
16644 ;;
16645
16646 interix[3-9]*)
16647 hardcode_direct=no
16648 hardcode_shlibpath_var=no
16649 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16650 export_dynamic_flag_spec='$wl-E'
16651 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16652 # Instead, shared libraries are loaded at an image base (0x10000000 by
16653 # default) and relocated if they conflict, which is a slow very memory
16654 # consuming and fragmenting process. To avoid this, we pick a random,
16655 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16656 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16658 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'
16659 ;;
16660
16661 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16662 tmp_diet=no
16663 if test linux-dietlibc = "$host_os"; then
16664 case $cc_basename in
16665 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16666 esac
16667 fi
16668 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16669 && test no = "$tmp_diet"
16670 then
16671 tmp_addflag=' $pic_flag'
16672 tmp_sharedflag='-shared'
16673 case $cc_basename,$host_cpu in
16674 pgcc*) # Portland Group C compiler
16675 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'
16676 tmp_addflag=' $pic_flag'
16677 ;;
16678 pgf77* | pgf90* | pgf95* | pgfortran*)
16679 # Portland Group f77 and f90 compilers
16680 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'
16681 tmp_addflag=' $pic_flag -Mnomain' ;;
16682 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16683 tmp_addflag=' -i_dynamic' ;;
16684 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16685 tmp_addflag=' -i_dynamic -nofor_main' ;;
16686 ifc* | ifort*) # Intel Fortran compiler
16687 tmp_addflag=' -nofor_main' ;;
16688 lf95*) # Lahey Fortran 8.1
16689 whole_archive_flag_spec=
16690 tmp_sharedflag='--shared' ;;
16691 nagfor*) # NAGFOR 5.3
16692 tmp_sharedflag='-Wl,-shared' ;;
16693 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16694 tmp_sharedflag='-qmkshrobj'
16695 tmp_addflag= ;;
16696 nvcc*) # Cuda Compiler Driver 2.2
16697 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'
16698 compiler_needs_object=yes
16699 ;;
16700 esac
16701 case `$CC -V 2>&1 | $SED 5q` in
16702 *Sun\ C*) # Sun C 5.9
16703 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'
16704 compiler_needs_object=yes
16705 tmp_sharedflag='-G' ;;
16706 *Sun\ F*) # Sun Fortran 8.3
16707 tmp_sharedflag='-G' ;;
16708 esac
16709 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16710
16711 if test yes = "$supports_anon_versioning"; then
16712 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16713 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16714 echo "local: *; };" >> $output_objdir/$libname.ver~
16715 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16716 fi
16717
16718 case $cc_basename in
16719 tcc*)
16720 export_dynamic_flag_spec='-rdynamic'
16721 ;;
16722 xlf* | bgf* | bgxlf* | mpixlf*)
16723 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16724 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16725 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16726 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16727 if test yes = "$supports_anon_versioning"; then
16728 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16729 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16730 echo "local: *; };" >> $output_objdir/$libname.ver~
16731 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16732 fi
16733 ;;
16734 esac
16735 else
16736 ld_shlibs=no
16737 fi
16738 ;;
16739
16740 netbsd*)
16741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16742 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16743 wlarc=
16744 else
16745 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16746 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16747 fi
16748 ;;
16749
16750 solaris*)
16751 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16752 ld_shlibs=no
16753 cat <<_LT_EOF 1>&2
16754
16755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16756 *** create shared libraries on Solaris systems. Therefore, libtool
16757 *** is disabling shared libraries support. We urge you to upgrade GNU
16758 *** binutils to release 2.9.1 or newer. Another option is to modify
16759 *** your PATH or compiler configuration so that the native linker is
16760 *** used, and then restart.
16761
16762 _LT_EOF
16763 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16765 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16766 else
16767 ld_shlibs=no
16768 fi
16769 ;;
16770
16771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16772 case `$LD -v 2>&1` in
16773 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16774 ld_shlibs=no
16775 cat <<_LT_EOF 1>&2
16776
16777 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16778 *** reliably create shared libraries on SCO systems. Therefore, libtool
16779 *** is disabling shared libraries support. We urge you to upgrade GNU
16780 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16781 *** your PATH or compiler configuration so that the native linker is
16782 *** used, and then restart.
16783
16784 _LT_EOF
16785 ;;
16786 *)
16787 # For security reasons, it is highly recommended that you always
16788 # use absolute paths for naming shared libraries, and exclude the
16789 # DT_RUNPATH tag from executables and libraries. But doing so
16790 # requires that you compile everything twice, which is a pain.
16791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16795 else
16796 ld_shlibs=no
16797 fi
16798 ;;
16799 esac
16800 ;;
16801
16802 sunos4*)
16803 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16804 wlarc=
16805 hardcode_direct=yes
16806 hardcode_shlibpath_var=no
16807 ;;
16808
16809 *)
16810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16812 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16813 else
16814 ld_shlibs=no
16815 fi
16816 ;;
16817 esac
16818
16819 if test no = "$ld_shlibs"; then
16820 runpath_var=
16821 hardcode_libdir_flag_spec=
16822 export_dynamic_flag_spec=
16823 whole_archive_flag_spec=
16824 fi
16825 else
16826 # PORTME fill in a description of your system's linker (not GNU ld)
16827 case $host_os in
16828 aix3*)
16829 allow_undefined_flag=unsupported
16830 always_export_symbols=yes
16831 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'
16832 # Note: this linker hardcodes the directories in LIBPATH if there
16833 # are no directories specified by -L.
16834 hardcode_minus_L=yes
16835 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16836 # Neither direct hardcoding nor static linking is supported with a
16837 # broken collect2.
16838 hardcode_direct=unsupported
16839 fi
16840 ;;
16841
16842 aix[4-9]*)
16843 if test ia64 = "$host_cpu"; then
16844 # On IA64, the linker does run time linking by default, so we don't
16845 # have to do anything special.
16846 aix_use_runtimelinking=no
16847 exp_sym_flag='-Bexport'
16848 no_entry_flag=
16849 else
16850 # If we're using GNU nm, then we don't want the "-C" option.
16851 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16852 # Without the "-l" option, or with the "-B" option, AIX nm treats
16853 # weak defined symbols like other global defined symbols, whereas
16854 # GNU nm marks them as "W".
16855 # While the 'weak' keyword is ignored in the Export File, we need
16856 # it in the Import File for the 'aix-soname' feature, so we have
16857 # to replace the "-B" option with "-P" for AIX nm.
16858 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16859 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16860 else
16861 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16862 fi
16863 aix_use_runtimelinking=no
16864
16865 # Test if we are trying to use run time linking or normal
16866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16867 # have runtime linking enabled, and use it for executables.
16868 # For shared libraries, we enable/disable runtime linking
16869 # depending on the kind of the shared library created -
16870 # when "with_aix_soname,aix_use_runtimelinking" is:
16871 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16872 # "aix,yes" lib.so shared, rtl:yes, for executables
16873 # lib.a static archive
16874 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16875 # lib.a(lib.so.V) shared, rtl:no, for executables
16876 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16877 # lib.a(lib.so.V) shared, rtl:no
16878 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16879 # lib.a static archive
16880 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16881 for ld_flag in $LDFLAGS; do
16882 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16883 aix_use_runtimelinking=yes
16884 break
16885 fi
16886 done
16887 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16888 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16889 # so we don't have lib.a shared libs to link our executables.
16890 # We have to force runtime linking in this case.
16891 aix_use_runtimelinking=yes
16892 LDFLAGS="$LDFLAGS -Wl,-brtl"
16893 fi
16894 ;;
16895 esac
16896
16897 exp_sym_flag='-bexport'
16898 no_entry_flag='-bnoentry'
16899 fi
16900
16901 # When large executables or shared objects are built, AIX ld can
16902 # have problems creating the table of contents. If linking a library
16903 # or program results in "error TOC overflow" add -mminimal-toc to
16904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16906
16907 archive_cmds=''
16908 hardcode_direct=yes
16909 hardcode_direct_absolute=yes
16910 hardcode_libdir_separator=':'
16911 link_all_deplibs=yes
16912 file_list_spec='$wl-f,'
16913 case $with_aix_soname,$aix_use_runtimelinking in
16914 aix,*) ;; # traditional, no import file
16915 svr4,* | *,yes) # use import file
16916 # The Import File defines what to hardcode.
16917 hardcode_direct=no
16918 hardcode_direct_absolute=no
16919 ;;
16920 esac
16921
16922 if test yes = "$GCC"; then
16923 case $host_os in aix4.[012]|aix4.[012].*)
16924 # We only want to do this on AIX 4.2 and lower, the check
16925 # below for broken collect2 doesn't work under 4.3+
16926 collect2name=`$CC -print-prog-name=collect2`
16927 if test -f "$collect2name" &&
16928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16929 then
16930 # We have reworked collect2
16931 :
16932 else
16933 # We have old collect2
16934 hardcode_direct=unsupported
16935 # It fails to find uninstalled libraries when the uninstalled
16936 # path is not listed in the libpath. Setting hardcode_minus_L
16937 # to unsupported forces relinking
16938 hardcode_minus_L=yes
16939 hardcode_libdir_flag_spec='-L$libdir'
16940 hardcode_libdir_separator=
16941 fi
16942 ;;
16943 esac
16944 shared_flag='-shared'
16945 if test yes = "$aix_use_runtimelinking"; then
16946 shared_flag="$shared_flag "'$wl-G'
16947 fi
16948 # Need to ensure runtime linking is disabled for the traditional
16949 # shared library, or the linker may eventually find shared libraries
16950 # /with/ Import File - we do not want to mix them.
16951 shared_flag_aix='-shared'
16952 shared_flag_svr4='-shared $wl-G'
16953 else
16954 # not using gcc
16955 if test ia64 = "$host_cpu"; then
16956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16957 # chokes on -Wl,-G. The following line is correct:
16958 shared_flag='-G'
16959 else
16960 if test yes = "$aix_use_runtimelinking"; then
16961 shared_flag='$wl-G'
16962 else
16963 shared_flag='$wl-bM:SRE'
16964 fi
16965 shared_flag_aix='$wl-bM:SRE'
16966 shared_flag_svr4='$wl-G'
16967 fi
16968 fi
16969
16970 export_dynamic_flag_spec='$wl-bexpall'
16971 # It seems that -bexpall does not export symbols beginning with
16972 # underscore (_), so it is better to generate a list of symbols to export.
16973 always_export_symbols=yes
16974 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16975 # Warning - without using the other runtime loading flags (-brtl),
16976 # -berok will link without error, but may produce a broken library.
16977 allow_undefined_flag='-berok'
16978 # Determine the default libpath from the value encoded in an
16979 # empty executable.
16980 if test set = "${lt_cv_aix_libpath+set}"; then
16981 aix_libpath=$lt_cv_aix_libpath
16982 else
16983 if test ${lt_cv_aix_libpath_+y}
16984 then :
16985 printf %s "(cached) " >&6
16986 else $as_nop
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16989
16990 int
16991 main (void)
16992 {
16993
16994 ;
16995 return 0;
16996 }
16997 _ACEOF
16998 if ac_fn_c_try_link "$LINENO"
16999 then :
17000
17001 lt_aix_libpath_sed='
17002 /Import File Strings/,/^$/ {
17003 /^0/ {
17004 s/^0 *\([^ ]*\) *$/\1/
17005 p
17006 }
17007 }'
17008 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17009 # Check for a 64-bit object if we didn't find anything.
17010 if test -z "$lt_cv_aix_libpath_"; then
17011 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17012 fi
17013 fi
17014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17015 conftest$ac_exeext conftest.$ac_ext
17016 if test -z "$lt_cv_aix_libpath_"; then
17017 lt_cv_aix_libpath_=/usr/lib:/lib
17018 fi
17019
17020 fi
17021
17022 aix_libpath=$lt_cv_aix_libpath_
17023 fi
17024
17025 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17026 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17027 else
17028 if test ia64 = "$host_cpu"; then
17029 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17030 allow_undefined_flag="-z nodefs"
17031 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"
17032 else
17033 # Determine the default libpath from the value encoded in an
17034 # empty executable.
17035 if test set = "${lt_cv_aix_libpath+set}"; then
17036 aix_libpath=$lt_cv_aix_libpath
17037 else
17038 if test ${lt_cv_aix_libpath_+y}
17039 then :
17040 printf %s "(cached) " >&6
17041 else $as_nop
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044
17045 int
17046 main (void)
17047 {
17048
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_link "$LINENO"
17054 then :
17055
17056 lt_aix_libpath_sed='
17057 /Import File Strings/,/^$/ {
17058 /^0/ {
17059 s/^0 *\([^ ]*\) *$/\1/
17060 p
17061 }
17062 }'
17063 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17064 # Check for a 64-bit object if we didn't find anything.
17065 if test -z "$lt_cv_aix_libpath_"; then
17066 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17067 fi
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17070 conftest$ac_exeext conftest.$ac_ext
17071 if test -z "$lt_cv_aix_libpath_"; then
17072 lt_cv_aix_libpath_=/usr/lib:/lib
17073 fi
17074
17075 fi
17076
17077 aix_libpath=$lt_cv_aix_libpath_
17078 fi
17079
17080 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17081 # Warning - without using the other run time loading flags,
17082 # -berok will link without error, but may produce a broken library.
17083 no_undefined_flag=' $wl-bernotok'
17084 allow_undefined_flag=' $wl-berok'
17085 if test yes = "$with_gnu_ld"; then
17086 # We only use this code for GNU lds that support --whole-archive.
17087 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17088 else
17089 # Exported symbols can be pulled into shared objects from archives
17090 whole_archive_flag_spec='$convenience'
17091 fi
17092 archive_cmds_need_lc=yes
17093 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17094 # -brtl affects multiple linker settings, -berok does not and is overridden later
17095 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17096 if test svr4 != "$with_aix_soname"; then
17097 # This is similar to how AIX traditionally builds its shared libraries.
17098 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17099 fi
17100 if test aix != "$with_aix_soname"; then
17101 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17102 else
17103 # used by -dlpreopen to get the symbols
17104 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17105 fi
17106 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17107 fi
17108 fi
17109 ;;
17110
17111 amigaos*)
17112 case $host_cpu in
17113 powerpc)
17114 # see comment about AmigaOS4 .so support
17115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17116 archive_expsym_cmds=''
17117 ;;
17118 m68k)
17119 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)'
17120 hardcode_libdir_flag_spec='-L$libdir'
17121 hardcode_minus_L=yes
17122 ;;
17123 esac
17124 ;;
17125
17126 bsdi[45]*)
17127 export_dynamic_flag_spec=-rdynamic
17128 ;;
17129
17130 cygwin* | mingw* | pw32* | cegcc*)
17131 # When not using gcc, we currently assume that we are using
17132 # Microsoft Visual C++ or Intel C++ Compiler.
17133 # hardcode_libdir_flag_spec is actually meaningless, as there is
17134 # no search path for DLLs.
17135 case $cc_basename in
17136 cl* | icl*)
17137 # Native MSVC or ICC
17138 hardcode_libdir_flag_spec=' '
17139 allow_undefined_flag=unsupported
17140 always_export_symbols=yes
17141 file_list_spec='@'
17142 # Tell ltmain to make .lib files, not .a files.
17143 libext=lib
17144 # Tell ltmain to make .dll files, not .so files.
17145 shrext_cmds=.dll
17146 # FIXME: Setting linknames here is a bad hack.
17147 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17148 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17149 cp "$export_symbols" "$output_objdir/$soname.def";
17150 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17151 else
17152 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17153 fi~
17154 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17155 linknames='
17156 # The linker will not automatically build a static lib if we build a DLL.
17157 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17158 enable_shared_with_static_runtimes=yes
17159 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17161 # Don't use ranlib
17162 old_postinstall_cmds='chmod 644 $oldlib'
17163 postlink_cmds='lt_outputfile="@OUTPUT@"~
17164 lt_tool_outputfile="@TOOL_OUTPUT@"~
17165 case $lt_outputfile in
17166 *.exe|*.EXE) ;;
17167 *)
17168 lt_outputfile=$lt_outputfile.exe
17169 lt_tool_outputfile=$lt_tool_outputfile.exe
17170 ;;
17171 esac~
17172 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17174 $RM "$lt_outputfile.manifest";
17175 fi'
17176 ;;
17177 *)
17178 # Assume MSVC and ICC wrapper
17179 hardcode_libdir_flag_spec=' '
17180 allow_undefined_flag=unsupported
17181 # Tell ltmain to make .lib files, not .a files.
17182 libext=lib
17183 # Tell ltmain to make .dll files, not .so files.
17184 shrext_cmds=.dll
17185 # FIXME: Setting linknames here is a bad hack.
17186 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17187 # The linker will automatically build a .lib file if we build a DLL.
17188 old_archive_from_new_cmds='true'
17189 # FIXME: Should let the user specify the lib program.
17190 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17191 enable_shared_with_static_runtimes=yes
17192 ;;
17193 esac
17194 ;;
17195
17196 darwin* | rhapsody*)
17197
17198
17199 archive_cmds_need_lc=no
17200 hardcode_direct=no
17201 hardcode_automatic=yes
17202 hardcode_shlibpath_var=unsupported
17203 if test yes = "$lt_cv_ld_force_load"; then
17204 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\"`'
17205
17206 else
17207 whole_archive_flag_spec=''
17208 fi
17209 link_all_deplibs=yes
17210 allow_undefined_flag=$_lt_dar_allow_undefined
17211 case $cc_basename in
17212 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17213 *) _lt_dar_can_shared=$GCC ;;
17214 esac
17215 if test yes = "$_lt_dar_can_shared"; then
17216 output_verbose_link_cmd=func_echo_all
17217 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17218 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17219 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"
17220 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"
17221
17222 else
17223 ld_shlibs=no
17224 fi
17225
17226 ;;
17227
17228 dgux*)
17229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17230 hardcode_libdir_flag_spec='-L$libdir'
17231 hardcode_shlibpath_var=no
17232 ;;
17233
17234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17235 # support. Future versions do this automatically, but an explicit c++rt0.o
17236 # does not break anything, and helps significantly (at the cost of a little
17237 # extra space).
17238 freebsd2.2*)
17239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17240 hardcode_libdir_flag_spec='-R$libdir'
17241 hardcode_direct=yes
17242 hardcode_shlibpath_var=no
17243 ;;
17244
17245 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17246 freebsd2.*)
17247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248 hardcode_direct=yes
17249 hardcode_minus_L=yes
17250 hardcode_shlibpath_var=no
17251 ;;
17252
17253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17254 freebsd* | dragonfly* | midnightbsd*)
17255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17256 hardcode_libdir_flag_spec='-R$libdir'
17257 hardcode_direct=yes
17258 hardcode_shlibpath_var=no
17259 ;;
17260
17261 hpux9*)
17262 if test yes = "$GCC"; then
17263 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17264 else
17265 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17266 fi
17267 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17268 hardcode_libdir_separator=:
17269 hardcode_direct=yes
17270
17271 # hardcode_minus_L: Not really in the search PATH,
17272 # but as the default location of the library.
17273 hardcode_minus_L=yes
17274 export_dynamic_flag_spec='$wl-E'
17275 ;;
17276
17277 hpux10*)
17278 if test yes,no = "$GCC,$with_gnu_ld"; then
17279 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17280 else
17281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17282 fi
17283 if test no = "$with_gnu_ld"; then
17284 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17285 hardcode_libdir_separator=:
17286 hardcode_direct=yes
17287 hardcode_direct_absolute=yes
17288 export_dynamic_flag_spec='$wl-E'
17289 # hardcode_minus_L: Not really in the search PATH,
17290 # but as the default location of the library.
17291 hardcode_minus_L=yes
17292 fi
17293 ;;
17294
17295 hpux11*)
17296 if test yes,no = "$GCC,$with_gnu_ld"; then
17297 case $host_cpu in
17298 hppa*64*)
17299 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17300 ;;
17301 ia64*)
17302 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17303 ;;
17304 *)
17305 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17306 ;;
17307 esac
17308 else
17309 case $host_cpu in
17310 hppa*64*)
17311 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17312 ;;
17313 ia64*)
17314 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17315 ;;
17316 *)
17317
17318 # Older versions of the 11.00 compiler do not understand -b yet
17319 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17321 printf %s "checking if $CC understands -b... " >&6; }
17322 if test ${lt_cv_prog_compiler__b+y}
17323 then :
17324 printf %s "(cached) " >&6
17325 else $as_nop
17326 lt_cv_prog_compiler__b=no
17327 save_LDFLAGS=$LDFLAGS
17328 LDFLAGS="$LDFLAGS -b"
17329 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17331 # The linker can only warn and ignore the option if not recognized
17332 # So say no if there are warnings
17333 if test -s conftest.err; then
17334 # Append any errors to the config.log.
17335 cat conftest.err 1>&5
17336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17338 if diff conftest.exp conftest.er2 >/dev/null; then
17339 lt_cv_prog_compiler__b=yes
17340 fi
17341 else
17342 lt_cv_prog_compiler__b=yes
17343 fi
17344 fi
17345 $RM -r conftest*
17346 LDFLAGS=$save_LDFLAGS
17347
17348 fi
17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17350 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17351
17352 if test yes = "$lt_cv_prog_compiler__b"; then
17353 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17354 else
17355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17356 fi
17357
17358 ;;
17359 esac
17360 fi
17361 if test no = "$with_gnu_ld"; then
17362 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17363 hardcode_libdir_separator=:
17364
17365 case $host_cpu in
17366 hppa*64*|ia64*)
17367 hardcode_direct=no
17368 hardcode_shlibpath_var=no
17369 ;;
17370 *)
17371 hardcode_direct=yes
17372 hardcode_direct_absolute=yes
17373 export_dynamic_flag_spec='$wl-E'
17374
17375 # hardcode_minus_L: Not really in the search PATH,
17376 # but as the default location of the library.
17377 hardcode_minus_L=yes
17378 ;;
17379 esac
17380 fi
17381 ;;
17382
17383 irix5* | irix6* | nonstopux*)
17384 if test yes = "$GCC"; then
17385 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'
17386 # Try to use the -exported_symbol ld option, if it does not
17387 # work, assume that -exports_file does not work either and
17388 # implicitly export all symbols.
17389 # This should be the same for all languages, so no per-tag cache variable.
17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17391 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17392 if test ${lt_cv_irix_exported_symbol+y}
17393 then :
17394 printf %s "(cached) " >&6
17395 else $as_nop
17396 save_LDFLAGS=$LDFLAGS
17397 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399 /* end confdefs.h. */
17400 int foo (void) { return 0; }
17401 _ACEOF
17402 if ac_fn_c_try_link "$LINENO"
17403 then :
17404 lt_cv_irix_exported_symbol=yes
17405 else $as_nop
17406 lt_cv_irix_exported_symbol=no
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17409 conftest$ac_exeext conftest.$ac_ext
17410 LDFLAGS=$save_LDFLAGS
17411 fi
17412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17413 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17414 if test yes = "$lt_cv_irix_exported_symbol"; then
17415 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'
17416 fi
17417 else
17418 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'
17419 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'
17420 fi
17421 archive_cmds_need_lc='no'
17422 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17423 hardcode_libdir_separator=:
17424 inherit_rpath=yes
17425 link_all_deplibs=yes
17426 ;;
17427
17428 linux*)
17429 case $cc_basename in
17430 tcc*)
17431 # Fabrice Bellard et al's Tiny C Compiler
17432 ld_shlibs=yes
17433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17434 ;;
17435 esac
17436 ;;
17437
17438 netbsd*)
17439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17441 else
17442 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17443 fi
17444 hardcode_libdir_flag_spec='-R$libdir'
17445 hardcode_direct=yes
17446 hardcode_shlibpath_var=no
17447 ;;
17448
17449 newsos6)
17450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451 hardcode_direct=yes
17452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17453 hardcode_libdir_separator=:
17454 hardcode_shlibpath_var=no
17455 ;;
17456
17457 *nto* | *qnx*)
17458 ;;
17459
17460 openbsd* | bitrig*)
17461 if test -f /usr/libexec/ld.so; then
17462 hardcode_direct=yes
17463 hardcode_shlibpath_var=no
17464 hardcode_direct_absolute=yes
17465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17468 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17469 export_dynamic_flag_spec='$wl-E'
17470 else
17471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17472 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17473 fi
17474 else
17475 ld_shlibs=no
17476 fi
17477 ;;
17478
17479 os2*)
17480 hardcode_libdir_flag_spec='-L$libdir'
17481 hardcode_minus_L=yes
17482 allow_undefined_flag=unsupported
17483 shrext_cmds=.dll
17484 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17485 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17486 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17487 $ECHO EXPORTS >> $output_objdir/$libname.def~
17488 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17489 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17490 emximp -o $lib $output_objdir/$libname.def'
17491 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17492 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17493 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17494 $ECHO EXPORTS >> $output_objdir/$libname.def~
17495 prefix_cmds="$SED"~
17496 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17497 prefix_cmds="$prefix_cmds -e 1d";
17498 fi~
17499 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17500 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17501 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17502 emximp -o $lib $output_objdir/$libname.def'
17503 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17504 enable_shared_with_static_runtimes=yes
17505 file_list_spec='@'
17506 ;;
17507
17508 osf3*)
17509 if test yes = "$GCC"; then
17510 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17511 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'
17512 else
17513 allow_undefined_flag=' -expect_unresolved \*'
17514 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'
17515 fi
17516 archive_cmds_need_lc='no'
17517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17518 hardcode_libdir_separator=:
17519 ;;
17520
17521 osf4* | osf5*) # as osf3* with the addition of -msym flag
17522 if test yes = "$GCC"; then
17523 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17524 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'
17525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17526 else
17527 allow_undefined_flag=' -expect_unresolved \*'
17528 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'
17529 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~
17530 $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'
17531
17532 # Both c and cxx compiler support -rpath directly
17533 hardcode_libdir_flag_spec='-rpath $libdir'
17534 fi
17535 archive_cmds_need_lc='no'
17536 hardcode_libdir_separator=:
17537 ;;
17538
17539 solaris*)
17540 no_undefined_flag=' -z defs'
17541 if test yes = "$GCC"; then
17542 wlarc='$wl'
17543 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17544 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17545 $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'
17546 else
17547 case `$CC -V 2>&1` in
17548 *"Compilers 5.0"*)
17549 wlarc=''
17550 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17552 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17553 ;;
17554 *)
17555 wlarc='$wl'
17556 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17558 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17559 ;;
17560 esac
17561 fi
17562 hardcode_libdir_flag_spec='-R$libdir'
17563 hardcode_shlibpath_var=no
17564 case $host_os in
17565 solaris2.[0-5] | solaris2.[0-5].*) ;;
17566 *)
17567 # The compiler driver will combine and reorder linker options,
17568 # but understands '-z linker_flag'. GCC discards it without '$wl',
17569 # but is careful enough not to reorder.
17570 # Supported since Solaris 2.6 (maybe 2.5.1?)
17571 if test yes = "$GCC"; then
17572 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17573 else
17574 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17575 fi
17576 ;;
17577 esac
17578 link_all_deplibs=yes
17579 ;;
17580
17581 sunos4*)
17582 if test sequent = "$host_vendor"; then
17583 # Use $CC to link under sequent, because it throws in some extra .o
17584 # files that make .init and .fini sections work.
17585 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17586 else
17587 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17588 fi
17589 hardcode_libdir_flag_spec='-L$libdir'
17590 hardcode_direct=yes
17591 hardcode_minus_L=yes
17592 hardcode_shlibpath_var=no
17593 ;;
17594
17595 sysv4)
17596 case $host_vendor in
17597 sni)
17598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_direct=yes # is this really true???
17600 ;;
17601 siemens)
17602 ## LD is ld it makes a PLAMLIB
17603 ## CC just makes a GrossModule.
17604 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17605 reload_cmds='$CC -r -o $output$reload_objs'
17606 hardcode_direct=no
17607 ;;
17608 motorola)
17609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17610 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17611 ;;
17612 esac
17613 runpath_var='LD_RUN_PATH'
17614 hardcode_shlibpath_var=no
17615 ;;
17616
17617 sysv4.3*)
17618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_shlibpath_var=no
17620 export_dynamic_flag_spec='-Bexport'
17621 ;;
17622
17623 sysv4*MP*)
17624 if test -d /usr/nec; then
17625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_shlibpath_var=no
17627 runpath_var=LD_RUN_PATH
17628 hardcode_runpath_var=yes
17629 ld_shlibs=yes
17630 fi
17631 ;;
17632
17633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17634 no_undefined_flag='$wl-z,text'
17635 archive_cmds_need_lc=no
17636 hardcode_shlibpath_var=no
17637 runpath_var='LD_RUN_PATH'
17638
17639 if test yes = "$GCC"; then
17640 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17641 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 else
17643 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17644 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17645 fi
17646 ;;
17647
17648 sysv5* | sco3.2v5* | sco5v6*)
17649 # Note: We CANNOT use -z defs as we might desire, because we do not
17650 # link with -lc, and that would cause any symbols used from libc to
17651 # always be unresolved, which means just about no library would
17652 # ever link correctly. If we're not using GNU ld we use -z text
17653 # though, which does catch some bad symbols but isn't as heavy-handed
17654 # as -z defs.
17655 no_undefined_flag='$wl-z,text'
17656 allow_undefined_flag='$wl-z,nodefs'
17657 archive_cmds_need_lc=no
17658 hardcode_shlibpath_var=no
17659 hardcode_libdir_flag_spec='$wl-R,$libdir'
17660 hardcode_libdir_separator=':'
17661 link_all_deplibs=yes
17662 export_dynamic_flag_spec='$wl-Bexport'
17663 runpath_var='LD_RUN_PATH'
17664
17665 if test yes = "$GCC"; then
17666 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17667 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 else
17669 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17670 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17671 fi
17672 ;;
17673
17674 uts4*)
17675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676 hardcode_libdir_flag_spec='-L$libdir'
17677 hardcode_shlibpath_var=no
17678 ;;
17679
17680 *)
17681 ld_shlibs=no
17682 ;;
17683 esac
17684
17685 if test sni = "$host_vendor"; then
17686 case $host in
17687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17688 export_dynamic_flag_spec='$wl-Blargedynsym'
17689 ;;
17690 esac
17691 fi
17692 fi
17693
17694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17695 printf "%s\n" "$ld_shlibs" >&6; }
17696 test no = "$ld_shlibs" && can_build_shared=no
17697
17698 with_gnu_ld=$with_gnu_ld
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714 #
17715 # Do we need to explicitly link libc?
17716 #
17717 case "x$archive_cmds_need_lc" in
17718 x|xyes)
17719 # Assume -lc should be added
17720 archive_cmds_need_lc=yes
17721
17722 if test yes,yes = "$GCC,$enable_shared"; then
17723 case $archive_cmds in
17724 *'~'*)
17725 # FIXME: we may have to deal with multi-command sequences.
17726 ;;
17727 '$CC '*)
17728 # Test whether the compiler implicitly links with -lc since on some
17729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17730 # to ld, don't add -lc before -lgcc.
17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17732 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17733 if test ${lt_cv_archive_cmds_need_lc+y}
17734 then :
17735 printf %s "(cached) " >&6
17736 else $as_nop
17737 $RM conftest*
17738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17739
17740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17741 (eval $ac_compile) 2>&5
17742 ac_status=$?
17743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17744 test $ac_status = 0; } 2>conftest.err; then
17745 soname=conftest
17746 lib=conftest
17747 libobjs=conftest.$ac_objext
17748 deplibs=
17749 wl=$lt_prog_compiler_wl
17750 pic_flag=$lt_prog_compiler_pic
17751 compiler_flags=-v
17752 linker_flags=-v
17753 verstring=
17754 output_objdir=.
17755 libname=conftest
17756 lt_save_allow_undefined_flag=$allow_undefined_flag
17757 allow_undefined_flag=
17758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17759 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17760 ac_status=$?
17761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17762 test $ac_status = 0; }
17763 then
17764 lt_cv_archive_cmds_need_lc=no
17765 else
17766 lt_cv_archive_cmds_need_lc=yes
17767 fi
17768 allow_undefined_flag=$lt_save_allow_undefined_flag
17769 else
17770 cat conftest.err 1>&5
17771 fi
17772 $RM conftest*
17773
17774 fi
17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17776 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17777 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17778 ;;
17779 esac
17780 fi
17781 ;;
17782 esac
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17936 printf %s "checking dynamic linker characteristics... " >&6; }
17937
17938 if test yes = "$GCC"; then
17939 case $host_os in
17940 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17941 *) lt_awk_arg='/^libraries:/' ;;
17942 esac
17943 case $host_os in
17944 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17945 *) lt_sed_strip_eq='s|=/|/|g' ;;
17946 esac
17947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17948 case $lt_search_path_spec in
17949 *\;*)
17950 # if the path contains ";" then we assume it to be the separator
17951 # otherwise default to the standard path separator (i.e. ":") - it is
17952 # assumed that no part of a normal pathname contains ";" but that should
17953 # okay in the real world where ";" in dirpaths is itself problematic.
17954 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17955 ;;
17956 *)
17957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17958 ;;
17959 esac
17960 # Ok, now we have the path, separated by spaces, we can step through it
17961 # and add multilib dir if necessary...
17962 lt_tmp_lt_search_path_spec=
17963 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17964 # ...but if some path component already ends with the multilib dir we assume
17965 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17966 case "$lt_multi_os_dir; $lt_search_path_spec " in
17967 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17968 lt_multi_os_dir=
17969 ;;
17970 esac
17971 for lt_sys_path in $lt_search_path_spec; do
17972 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17974 elif test -n "$lt_multi_os_dir"; then
17975 test -d "$lt_sys_path" && \
17976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17977 fi
17978 done
17979 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17980 BEGIN {RS = " "; FS = "/|\n";} {
17981 lt_foo = "";
17982 lt_count = 0;
17983 for (lt_i = NF; lt_i > 0; lt_i--) {
17984 if ($lt_i != "" && $lt_i != ".") {
17985 if ($lt_i == "..") {
17986 lt_count++;
17987 } else {
17988 if (lt_count == 0) {
17989 lt_foo = "/" $lt_i lt_foo;
17990 } else {
17991 lt_count--;
17992 }
17993 }
17994 }
17995 }
17996 if (lt_foo != "") { lt_freq[lt_foo]++; }
17997 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17998 }'`
17999 # AWK program above erroneously prepends '/' to C:/dos/paths
18000 # for these hosts.
18001 case $host_os in
18002 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18003 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18004 esac
18005 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18006 else
18007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18008 fi
18009 library_names_spec=
18010 libname_spec='lib$name'
18011 soname_spec=
18012 shrext_cmds=.so
18013 postinstall_cmds=
18014 postuninstall_cmds=
18015 finish_cmds=
18016 finish_eval=
18017 shlibpath_var=
18018 shlibpath_overrides_runpath=unknown
18019 version_type=none
18020 dynamic_linker="$host_os ld.so"
18021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18022 need_lib_prefix=unknown
18023 hardcode_into_libs=no
18024
18025 # when you set need_version to no, make sure it does not cause -set_version
18026 # flags to be left without arguments
18027 need_version=unknown
18028
18029
18030
18031 case $host_os in
18032 aix3*)
18033 version_type=linux # correct to gnu/linux during the next big refactor
18034 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18035 shlibpath_var=LIBPATH
18036
18037 # AIX 3 has no versioning support, so we append a major version to the name.
18038 soname_spec='$libname$release$shared_ext$major'
18039 ;;
18040
18041 aix[4-9]*)
18042 version_type=linux # correct to gnu/linux during the next big refactor
18043 need_lib_prefix=no
18044 need_version=no
18045 hardcode_into_libs=yes
18046 if test ia64 = "$host_cpu"; then
18047 # AIX 5 supports IA64
18048 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18049 shlibpath_var=LD_LIBRARY_PATH
18050 else
18051 # With GCC up to 2.95.x, collect2 would create an import file
18052 # for dependence libraries. The import file would start with
18053 # the line '#! .'. This would cause the generated library to
18054 # depend on '.', always an invalid library. This was fixed in
18055 # development snapshots of GCC prior to 3.0.
18056 case $host_os in
18057 aix4 | aix4.[01] | aix4.[01].*)
18058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18059 echo ' yes '
18060 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18061 :
18062 else
18063 can_build_shared=no
18064 fi
18065 ;;
18066 esac
18067 # Using Import Files as archive members, it is possible to support
18068 # filename-based versioning of shared library archives on AIX. While
18069 # this would work for both with and without runtime linking, it will
18070 # prevent static linking of such archives. So we do filename-based
18071 # shared library versioning with .so extension only, which is used
18072 # when both runtime linking and shared linking is enabled.
18073 # Unfortunately, runtime linking may impact performance, so we do
18074 # not want this to be the default eventually. Also, we use the
18075 # versioned .so libs for executables only if there is the -brtl
18076 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18077 # To allow for filename-based versioning support, we need to create
18078 # libNAME.so.V as an archive file, containing:
18079 # *) an Import File, referring to the versioned filename of the
18080 # archive as well as the shared archive member, telling the
18081 # bitwidth (32 or 64) of that shared object, and providing the
18082 # list of exported symbols of that shared object, eventually
18083 # decorated with the 'weak' keyword
18084 # *) the shared object with the F_LOADONLY flag set, to really avoid
18085 # it being seen by the linker.
18086 # At run time we better use the real file rather than another symlink,
18087 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18088
18089 case $with_aix_soname,$aix_use_runtimelinking in
18090 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18091 # soname into executable. Probably we can add versioning support to
18092 # collect2, so additional links can be useful in future.
18093 aix,yes) # traditional libtool
18094 dynamic_linker='AIX unversionable lib.so'
18095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18096 # instead of lib<name>.a to let people know that these are not
18097 # typical AIX shared libraries.
18098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18099 ;;
18100 aix,no) # traditional AIX only
18101 dynamic_linker='AIX lib.a(lib.so.V)'
18102 # We preserve .a as extension for shared libraries through AIX4.2
18103 # and later when we are not doing run time linking.
18104 library_names_spec='$libname$release.a $libname.a'
18105 soname_spec='$libname$release$shared_ext$major'
18106 ;;
18107 svr4,*) # full svr4 only
18108 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18109 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18110 # We do not specify a path in Import Files, so LIBPATH fires.
18111 shlibpath_overrides_runpath=yes
18112 ;;
18113 *,yes) # both, prefer svr4
18114 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18115 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18116 # unpreferred sharedlib libNAME.a needs extra handling
18117 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18118 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18119 # We do not specify a path in Import Files, so LIBPATH fires.
18120 shlibpath_overrides_runpath=yes
18121 ;;
18122 *,no) # both, prefer aix
18123 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18124 library_names_spec='$libname$release.a $libname.a'
18125 soname_spec='$libname$release$shared_ext$major'
18126 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18127 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18128 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18129 ;;
18130 esac
18131 shlibpath_var=LIBPATH
18132 fi
18133 ;;
18134
18135 amigaos*)
18136 case $host_cpu in
18137 powerpc)
18138 # Since July 2007 AmigaOS4 officially supports .so libraries.
18139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18141 ;;
18142 m68k)
18143 library_names_spec='$libname.ixlibrary $libname.a'
18144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18145 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18146 ;;
18147 esac
18148 ;;
18149
18150 beos*)
18151 library_names_spec='$libname$shared_ext'
18152 dynamic_linker="$host_os ld.so"
18153 shlibpath_var=LIBRARY_PATH
18154 ;;
18155
18156 bsdi[45]*)
18157 version_type=linux # correct to gnu/linux during the next big refactor
18158 need_version=no
18159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18160 soname_spec='$libname$release$shared_ext$major'
18161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18162 shlibpath_var=LD_LIBRARY_PATH
18163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18165 # the default ld.so.conf also contains /usr/contrib/lib and
18166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18167 # libtool to hard-code these into programs
18168 ;;
18169
18170 cygwin* | mingw* | pw32* | cegcc*)
18171 version_type=windows
18172 shrext_cmds=.dll
18173 need_version=no
18174 need_lib_prefix=no
18175
18176 case $GCC,$cc_basename in
18177 yes,*)
18178 # gcc
18179 library_names_spec='$libname.dll.a'
18180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18181 postinstall_cmds='base_file=`basename \$file`~
18182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18183 dldir=$destdir/`dirname \$dlpath`~
18184 test -d \$dldir || mkdir -p \$dldir~
18185 $install_prog $dir/$dlname \$dldir/$dlname~
18186 chmod a+x \$dldir/$dlname~
18187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18189 fi'
18190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18191 dlpath=$dir/\$dldll~
18192 $RM \$dlpath'
18193 shlibpath_overrides_runpath=yes
18194
18195 case $host_os in
18196 cygwin*)
18197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18198 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18199
18200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18201 ;;
18202 mingw* | cegcc*)
18203 # MinGW DLLs use traditional 'lib' prefix
18204 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18205 ;;
18206 pw32*)
18207 # pw32 DLLs use 'pw' prefix rather than 'lib'
18208 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18209 ;;
18210 esac
18211 dynamic_linker='Win32 ld.exe'
18212 ;;
18213
18214 *,cl* | *,icl*)
18215 # Native MSVC or ICC
18216 libname_spec='$name'
18217 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18218 library_names_spec='$libname.dll.lib'
18219
18220 case $build_os in
18221 mingw*)
18222 sys_lib_search_path_spec=
18223 lt_save_ifs=$IFS
18224 IFS=';'
18225 for lt_path in $LIB
18226 do
18227 IFS=$lt_save_ifs
18228 # Let DOS variable expansion print the short 8.3 style file name.
18229 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18230 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18231 done
18232 IFS=$lt_save_ifs
18233 # Convert to MSYS style.
18234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18235 ;;
18236 cygwin*)
18237 # Convert to unix form, then to dos form, then back to unix form
18238 # but this time dos style (no spaces!) so that the unix form looks
18239 # like /cygdrive/c/PROGRA~1:/cygdr...
18240 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18241 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18242 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18243 ;;
18244 *)
18245 sys_lib_search_path_spec=$LIB
18246 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18247 # It is most probably a Windows format PATH.
18248 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18249 else
18250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18251 fi
18252 # FIXME: find the short name or the path components, as spaces are
18253 # common. (e.g. "Program Files" -> "PROGRA~1")
18254 ;;
18255 esac
18256
18257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18258 postinstall_cmds='base_file=`basename \$file`~
18259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18260 dldir=$destdir/`dirname \$dlpath`~
18261 test -d \$dldir || mkdir -p \$dldir~
18262 $install_prog $dir/$dlname \$dldir/$dlname'
18263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18264 dlpath=$dir/\$dldll~
18265 $RM \$dlpath'
18266 shlibpath_overrides_runpath=yes
18267 dynamic_linker='Win32 link.exe'
18268 ;;
18269
18270 *)
18271 # Assume MSVC and ICC wrapper
18272 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18273 dynamic_linker='Win32 ld.exe'
18274 ;;
18275 esac
18276 # FIXME: first we should search . and the directory the executable is in
18277 shlibpath_var=PATH
18278 ;;
18279
18280 darwin* | rhapsody*)
18281 dynamic_linker="$host_os dyld"
18282 version_type=darwin
18283 need_lib_prefix=no
18284 need_version=no
18285 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
18286 soname_spec='$libname$release$major$shared_ext'
18287 shlibpath_overrides_runpath=yes
18288 shlibpath_var=DYLD_LIBRARY_PATH
18289 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
18290
18291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18293 ;;
18294
18295 dgux*)
18296 version_type=linux # correct to gnu/linux during the next big refactor
18297 need_lib_prefix=no
18298 need_version=no
18299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18300 soname_spec='$libname$release$shared_ext$major'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 ;;
18303
18304 freebsd* | dragonfly* | midnightbsd*)
18305 # DragonFly does not have aout. When/if they implement a new
18306 # versioning mechanism, adjust this.
18307 if test -x /usr/bin/objformat; then
18308 objformat=`/usr/bin/objformat`
18309 else
18310 case $host_os in
18311 freebsd[23].*) objformat=aout ;;
18312 *) objformat=elf ;;
18313 esac
18314 fi
18315 # Handle Gentoo/FreeBSD as it was Linux
18316 case $host_vendor in
18317 gentoo)
18318 version_type=linux ;;
18319 *)
18320 version_type=freebsd-$objformat ;;
18321 esac
18322
18323 case $version_type in
18324 freebsd-elf*)
18325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18326 soname_spec='$libname$release$shared_ext$major'
18327 need_version=no
18328 need_lib_prefix=no
18329 ;;
18330 freebsd-*)
18331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18332 need_version=yes
18333 ;;
18334 linux)
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18336 soname_spec='${libname}${release}${shared_ext}$major'
18337 need_lib_prefix=no
18338 need_version=no
18339 ;;
18340 esac
18341 shlibpath_var=LD_LIBRARY_PATH
18342 case $host_os in
18343 freebsd2.*)
18344 shlibpath_overrides_runpath=yes
18345 ;;
18346 freebsd3.[01]* | freebsdelf3.[01]*)
18347 shlibpath_overrides_runpath=yes
18348 hardcode_into_libs=yes
18349 ;;
18350 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18351 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18352 shlibpath_overrides_runpath=no
18353 hardcode_into_libs=yes
18354 ;;
18355 *) # from 4.6 on, and DragonFly
18356 shlibpath_overrides_runpath=yes
18357 hardcode_into_libs=yes
18358 ;;
18359 esac
18360 ;;
18361
18362 haiku*)
18363 version_type=linux # correct to gnu/linux during the next big refactor
18364 need_lib_prefix=no
18365 need_version=no
18366 dynamic_linker="$host_os runtime_loader"
18367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18368 soname_spec='$libname$release$shared_ext$major'
18369 shlibpath_var=LIBRARY_PATH
18370 shlibpath_overrides_runpath=no
18371 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18372 hardcode_into_libs=yes
18373 ;;
18374
18375 hpux9* | hpux10* | hpux11*)
18376 # Give a soname corresponding to the major version so that dld.sl refuses to
18377 # link against other versions.
18378 version_type=sunos
18379 need_lib_prefix=no
18380 need_version=no
18381 case $host_cpu in
18382 ia64*)
18383 shrext_cmds='.so'
18384 hardcode_into_libs=yes
18385 dynamic_linker="$host_os dld.so"
18386 shlibpath_var=LD_LIBRARY_PATH
18387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18389 soname_spec='$libname$release$shared_ext$major'
18390 if test 32 = "$HPUX_IA64_MODE"; then
18391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18392 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18393 else
18394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18395 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18396 fi
18397 ;;
18398 hppa*64*)
18399 shrext_cmds='.sl'
18400 hardcode_into_libs=yes
18401 dynamic_linker="$host_os dld.sl"
18402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18405 soname_spec='$libname$release$shared_ext$major'
18406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18408 ;;
18409 *)
18410 shrext_cmds='.sl'
18411 dynamic_linker="$host_os dld.sl"
18412 shlibpath_var=SHLIB_PATH
18413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18415 soname_spec='$libname$release$shared_ext$major'
18416 ;;
18417 esac
18418 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18419 postinstall_cmds='chmod 555 $lib'
18420 # or fails outright, so override atomically:
18421 install_override_mode=555
18422 ;;
18423
18424 interix[3-9]*)
18425 version_type=linux # correct to gnu/linux during the next big refactor
18426 need_lib_prefix=no
18427 need_version=no
18428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18429 soname_spec='$libname$release$shared_ext$major'
18430 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 shlibpath_overrides_runpath=no
18433 hardcode_into_libs=yes
18434 ;;
18435
18436 irix5* | irix6* | nonstopux*)
18437 case $host_os in
18438 nonstopux*) version_type=nonstopux ;;
18439 *)
18440 if test yes = "$lt_cv_prog_gnu_ld"; then
18441 version_type=linux # correct to gnu/linux during the next big refactor
18442 else
18443 version_type=irix
18444 fi ;;
18445 esac
18446 need_lib_prefix=no
18447 need_version=no
18448 soname_spec='$libname$release$shared_ext$major'
18449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18450 case $host_os in
18451 irix5* | nonstopux*)
18452 libsuff= shlibsuff=
18453 ;;
18454 *)
18455 case $LD in # libtool.m4 will add one of these switches to LD
18456 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18457 libsuff= shlibsuff= libmagic=32-bit;;
18458 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18459 libsuff=32 shlibsuff=N32 libmagic=N32;;
18460 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18461 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18462 *) libsuff= shlibsuff= libmagic=never-match;;
18463 esac
18464 ;;
18465 esac
18466 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18467 shlibpath_overrides_runpath=no
18468 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18469 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18470 hardcode_into_libs=yes
18471 ;;
18472
18473 # No shared lib support for Linux oldld, aout, or coff.
18474 linux*oldld* | linux*aout* | linux*coff*)
18475 dynamic_linker=no
18476 ;;
18477
18478 linux*android*)
18479 version_type=none # Android doesn't support versioned libraries.
18480 need_lib_prefix=no
18481 need_version=no
18482 library_names_spec='$libname$release$shared_ext'
18483 soname_spec='$libname$release$shared_ext'
18484 finish_cmds=
18485 shlibpath_var=LD_LIBRARY_PATH
18486 shlibpath_overrides_runpath=yes
18487
18488 # This implies no fast_install, which is unacceptable.
18489 # Some rework will be needed to allow for fast_install
18490 # before this can be enabled.
18491 hardcode_into_libs=yes
18492
18493 dynamic_linker='Android linker'
18494 # Don't embed -rpath directories since the linker doesn't support them.
18495 hardcode_libdir_flag_spec='-L$libdir'
18496 ;;
18497
18498 # This must be glibc/ELF.
18499 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18500 version_type=linux # correct to gnu/linux during the next big refactor
18501 need_lib_prefix=no
18502 need_version=no
18503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18504 soname_spec='$libname$release$shared_ext$major'
18505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18506 shlibpath_var=LD_LIBRARY_PATH
18507 shlibpath_overrides_runpath=no
18508
18509 # Some binutils ld are patched to set DT_RUNPATH
18510 if test ${lt_cv_shlibpath_overrides_runpath+y}
18511 then :
18512 printf %s "(cached) " >&6
18513 else $as_nop
18514 lt_cv_shlibpath_overrides_runpath=no
18515 save_LDFLAGS=$LDFLAGS
18516 save_libdir=$libdir
18517 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18518 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h. */
18521
18522 int
18523 main (void)
18524 {
18525
18526 ;
18527 return 0;
18528 }
18529 _ACEOF
18530 if ac_fn_c_try_link "$LINENO"
18531 then :
18532 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18533 then :
18534 lt_cv_shlibpath_overrides_runpath=yes
18535 fi
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18538 conftest$ac_exeext conftest.$ac_ext
18539 LDFLAGS=$save_LDFLAGS
18540 libdir=$save_libdir
18541
18542 fi
18543
18544 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18545
18546 # This implies no fast_install, which is unacceptable.
18547 # Some rework will be needed to allow for fast_install
18548 # before this can be enabled.
18549 hardcode_into_libs=yes
18550
18551 # Ideally, we could use ldconfig to report *all* directores which are
18552 # searched for libraries, however this is still not possible. Aside from not
18553 # being certain /sbin/ldconfig is available, command
18554 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18555 # even though it is searched at run-time. Try to do the best guess by
18556 # appending ld.so.conf contents (and includes) to the search path.
18557 if test -f /etc/ld.so.conf; then
18558 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' ' '`
18559 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18560 fi
18561
18562 # We used to test for /lib/ld.so.1 and disable shared libraries on
18563 # powerpc, because MkLinux only supported shared libraries with the
18564 # GNU dynamic linker. Since this was broken with cross compilers,
18565 # most powerpc-linux boxes support dynamic linking these days and
18566 # people can always --disable-shared, the test was removed, and we
18567 # assume the GNU/Linux dynamic linker is in use.
18568 dynamic_linker='GNU/Linux ld.so'
18569 ;;
18570
18571 netbsd*)
18572 version_type=sunos
18573 need_lib_prefix=no
18574 need_version=no
18575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18576 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18578 dynamic_linker='NetBSD (a.out) ld.so'
18579 else
18580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18581 soname_spec='$libname$release$shared_ext$major'
18582 dynamic_linker='NetBSD ld.elf_so'
18583 fi
18584 shlibpath_var=LD_LIBRARY_PATH
18585 shlibpath_overrides_runpath=yes
18586 hardcode_into_libs=yes
18587 ;;
18588
18589 newsos6)
18590 version_type=linux # correct to gnu/linux during the next big refactor
18591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 shlibpath_overrides_runpath=yes
18594 ;;
18595
18596 *nto* | *qnx*)
18597 version_type=qnx
18598 need_lib_prefix=no
18599 need_version=no
18600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18601 soname_spec='$libname$release$shared_ext$major'
18602 shlibpath_var=LD_LIBRARY_PATH
18603 shlibpath_overrides_runpath=no
18604 hardcode_into_libs=yes
18605 dynamic_linker='ldqnx.so'
18606 ;;
18607
18608 openbsd* | bitrig*)
18609 version_type=sunos
18610 sys_lib_dlsearch_path_spec=/usr/lib
18611 need_lib_prefix=no
18612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18613 need_version=no
18614 else
18615 need_version=yes
18616 fi
18617 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18619 shlibpath_var=LD_LIBRARY_PATH
18620 shlibpath_overrides_runpath=yes
18621 ;;
18622
18623 os2*)
18624 libname_spec='$name'
18625 version_type=windows
18626 shrext_cmds=.dll
18627 need_version=no
18628 need_lib_prefix=no
18629 # OS/2 can only load a DLL with a base name of 8 characters or less.
18630 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18631 v=$($ECHO $release$versuffix | tr -d .-);
18632 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18633 $ECHO $n$v`$shared_ext'
18634 library_names_spec='${libname}_dll.$libext'
18635 dynamic_linker='OS/2 ld.exe'
18636 shlibpath_var=BEGINLIBPATH
18637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18639 postinstall_cmds='base_file=`basename \$file`~
18640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18641 dldir=$destdir/`dirname \$dlpath`~
18642 test -d \$dldir || mkdir -p \$dldir~
18643 $install_prog $dir/$dlname \$dldir/$dlname~
18644 chmod a+x \$dldir/$dlname~
18645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18647 fi'
18648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18649 dlpath=$dir/\$dldll~
18650 $RM \$dlpath'
18651 ;;
18652
18653 osf3* | osf4* | osf5*)
18654 version_type=osf
18655 need_lib_prefix=no
18656 need_version=no
18657 soname_spec='$libname$release$shared_ext$major'
18658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18659 shlibpath_var=LD_LIBRARY_PATH
18660 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18662 ;;
18663
18664 rdos*)
18665 dynamic_linker=no
18666 ;;
18667
18668 solaris*)
18669 version_type=linux # correct to gnu/linux during the next big refactor
18670 need_lib_prefix=no
18671 need_version=no
18672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18673 soname_spec='$libname$release$shared_ext$major'
18674 shlibpath_var=LD_LIBRARY_PATH
18675 shlibpath_overrides_runpath=yes
18676 hardcode_into_libs=yes
18677 # ldd complains unless libraries are executable
18678 postinstall_cmds='chmod +x $lib'
18679 ;;
18680
18681 sunos4*)
18682 version_type=sunos
18683 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18684 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 shlibpath_overrides_runpath=yes
18687 if test yes = "$with_gnu_ld"; then
18688 need_lib_prefix=no
18689 fi
18690 need_version=yes
18691 ;;
18692
18693 sysv4 | sysv4.3*)
18694 version_type=linux # correct to gnu/linux during the next big refactor
18695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18696 soname_spec='$libname$release$shared_ext$major'
18697 shlibpath_var=LD_LIBRARY_PATH
18698 case $host_vendor in
18699 sni)
18700 shlibpath_overrides_runpath=no
18701 need_lib_prefix=no
18702 runpath_var=LD_RUN_PATH
18703 ;;
18704 siemens)
18705 need_lib_prefix=no
18706 ;;
18707 motorola)
18708 need_lib_prefix=no
18709 need_version=no
18710 shlibpath_overrides_runpath=no
18711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18712 ;;
18713 esac
18714 ;;
18715
18716 sysv4*MP*)
18717 if test -d /usr/nec; then
18718 version_type=linux # correct to gnu/linux during the next big refactor
18719 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18720 soname_spec='$libname$shared_ext.$major'
18721 shlibpath_var=LD_LIBRARY_PATH
18722 fi
18723 ;;
18724
18725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18726 version_type=sco
18727 need_lib_prefix=no
18728 need_version=no
18729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18730 soname_spec='$libname$release$shared_ext$major'
18731 shlibpath_var=LD_LIBRARY_PATH
18732 shlibpath_overrides_runpath=yes
18733 hardcode_into_libs=yes
18734 if test yes = "$with_gnu_ld"; then
18735 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18736 else
18737 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18738 case $host_os in
18739 sco3.2v5*)
18740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18741 ;;
18742 esac
18743 fi
18744 sys_lib_dlsearch_path_spec='/usr/lib'
18745 ;;
18746
18747 tpf*)
18748 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18749 version_type=linux # correct to gnu/linux during the next big refactor
18750 need_lib_prefix=no
18751 need_version=no
18752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18753 shlibpath_var=LD_LIBRARY_PATH
18754 shlibpath_overrides_runpath=no
18755 hardcode_into_libs=yes
18756 ;;
18757
18758 uts4*)
18759 version_type=linux # correct to gnu/linux during the next big refactor
18760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18761 soname_spec='$libname$release$shared_ext$major'
18762 shlibpath_var=LD_LIBRARY_PATH
18763 ;;
18764
18765 *)
18766 dynamic_linker=no
18767 ;;
18768 esac
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18770 printf "%s\n" "$dynamic_linker" >&6; }
18771 test no = "$dynamic_linker" && can_build_shared=no
18772
18773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18774 if test yes = "$GCC"; then
18775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18776 fi
18777
18778 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18779 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18780 fi
18781
18782 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18783 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18784 fi
18785
18786 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18787 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18788
18789 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18790 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18791
18792 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18793 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18892 printf %s "checking how to hardcode library paths into programs... " >&6; }
18893 hardcode_action=
18894 if test -n "$hardcode_libdir_flag_spec" ||
18895 test -n "$runpath_var" ||
18896 test yes = "$hardcode_automatic"; then
18897
18898 # We can hardcode non-existent directories.
18899 if test no != "$hardcode_direct" &&
18900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18901 # have to relink, otherwise we might link with an installed library
18902 # when we should be linking with a yet-to-be-installed one
18903 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18904 test no != "$hardcode_minus_L"; then
18905 # Linking always hardcodes the temporary library directory.
18906 hardcode_action=relink
18907 else
18908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18909 hardcode_action=immediate
18910 fi
18911 else
18912 # We cannot hardcode anything, or else we can only hardcode existing
18913 # directories.
18914 hardcode_action=unsupported
18915 fi
18916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18917 printf "%s\n" "$hardcode_action" >&6; }
18918
18919 if test relink = "$hardcode_action" ||
18920 test yes = "$inherit_rpath"; then
18921 # Fast installation is not supported
18922 enable_fast_install=no
18923 elif test yes = "$shlibpath_overrides_runpath" ||
18924 test no = "$enable_shared"; then
18925 # Fast installation is not necessary
18926 enable_fast_install=needless
18927 fi
18928
18929
18930
18931
18932
18933
18934 if test yes != "$enable_dlopen"; then
18935 enable_dlopen=unknown
18936 enable_dlopen_self=unknown
18937 enable_dlopen_self_static=unknown
18938 else
18939 lt_cv_dlopen=no
18940 lt_cv_dlopen_libs=
18941
18942 case $host_os in
18943 beos*)
18944 lt_cv_dlopen=load_add_on
18945 lt_cv_dlopen_libs=
18946 lt_cv_dlopen_self=yes
18947 ;;
18948
18949 mingw* | pw32* | cegcc*)
18950 lt_cv_dlopen=LoadLibrary
18951 lt_cv_dlopen_libs=
18952 ;;
18953
18954 cygwin*)
18955 lt_cv_dlopen=dlopen
18956 lt_cv_dlopen_libs=
18957 ;;
18958
18959 darwin*)
18960 # if libdl is installed we need to link against it
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18962 printf %s "checking for dlopen in -ldl... " >&6; }
18963 if test ${ac_cv_lib_dl_dlopen+y}
18964 then :
18965 printf %s "(cached) " >&6
18966 else $as_nop
18967 ac_check_lib_save_LIBS=$LIBS
18968 LIBS="-ldl $LIBS"
18969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970 /* end confdefs.h. */
18971
18972 /* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply.
18975 The 'extern "C"' is for builds by C++ compilers;
18976 although this is not generally supported in C code supporting it here
18977 has little cost and some practical benefit (sr 110532). */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char dlopen (void);
18982 int
18983 main (void)
18984 {
18985 return dlopen ();
18986 ;
18987 return 0;
18988 }
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"
18991 then :
18992 ac_cv_lib_dl_dlopen=yes
18993 else $as_nop
18994 ac_cv_lib_dl_dlopen=no
18995 fi
18996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18997 conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
18999 fi
19000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19001 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19002 if test "x$ac_cv_lib_dl_dlopen" = xyes
19003 then :
19004 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19005 else $as_nop
19006
19007 lt_cv_dlopen=dyld
19008 lt_cv_dlopen_libs=
19009 lt_cv_dlopen_self=yes
19010
19011 fi
19012
19013 ;;
19014
19015 tpf*)
19016 # Don't try to run any link tests for TPF. We know it's impossible
19017 # because TPF is a cross-compiler, and we know how we open DSOs.
19018 lt_cv_dlopen=dlopen
19019 lt_cv_dlopen_libs=
19020 lt_cv_dlopen_self=no
19021 ;;
19022
19023 *)
19024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19025 if test "x$ac_cv_func_shl_load" = xyes
19026 then :
19027 lt_cv_dlopen=shl_load
19028 else $as_nop
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19030 printf %s "checking for shl_load in -ldld... " >&6; }
19031 if test ${ac_cv_lib_dld_shl_load+y}
19032 then :
19033 printf %s "(cached) " >&6
19034 else $as_nop
19035 ac_check_lib_save_LIBS=$LIBS
19036 LIBS="-ldld $LIBS"
19037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19038 /* end confdefs.h. */
19039
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply.
19043 The 'extern "C"' is for builds by C++ compilers;
19044 although this is not generally supported in C code supporting it here
19045 has little cost and some practical benefit (sr 110532). */
19046 #ifdef __cplusplus
19047 extern "C"
19048 #endif
19049 char shl_load (void);
19050 int
19051 main (void)
19052 {
19053 return shl_load ();
19054 ;
19055 return 0;
19056 }
19057 _ACEOF
19058 if ac_fn_c_try_link "$LINENO"
19059 then :
19060 ac_cv_lib_dld_shl_load=yes
19061 else $as_nop
19062 ac_cv_lib_dld_shl_load=no
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19065 conftest$ac_exeext conftest.$ac_ext
19066 LIBS=$ac_check_lib_save_LIBS
19067 fi
19068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19069 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19070 if test "x$ac_cv_lib_dld_shl_load" = xyes
19071 then :
19072 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19073 else $as_nop
19074 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19075 if test "x$ac_cv_func_dlopen" = xyes
19076 then :
19077 lt_cv_dlopen=dlopen
19078 else $as_nop
19079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19080 printf %s "checking for dlopen in -ldl... " >&6; }
19081 if test ${ac_cv_lib_dl_dlopen+y}
19082 then :
19083 printf %s "(cached) " >&6
19084 else $as_nop
19085 ac_check_lib_save_LIBS=$LIBS
19086 LIBS="-ldl $LIBS"
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19089
19090 /* Override any GCC internal prototype to avoid an error.
19091 Use char because int might match the return type of a GCC
19092 builtin and then its argument prototype would still apply.
19093 The 'extern "C"' is for builds by C++ compilers;
19094 although this is not generally supported in C code supporting it here
19095 has little cost and some practical benefit (sr 110532). */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char dlopen (void);
19100 int
19101 main (void)
19102 {
19103 return dlopen ();
19104 ;
19105 return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_link "$LINENO"
19109 then :
19110 ac_cv_lib_dl_dlopen=yes
19111 else $as_nop
19112 ac_cv_lib_dl_dlopen=no
19113 fi
19114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19115 conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19117 fi
19118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19119 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19120 if test "x$ac_cv_lib_dl_dlopen" = xyes
19121 then :
19122 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19123 else $as_nop
19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19125 printf %s "checking for dlopen in -lsvld... " >&6; }
19126 if test ${ac_cv_lib_svld_dlopen+y}
19127 then :
19128 printf %s "(cached) " >&6
19129 else $as_nop
19130 ac_check_lib_save_LIBS=$LIBS
19131 LIBS="-lsvld $LIBS"
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19134
19135 /* Override any GCC internal prototype to avoid an error.
19136 Use char because int might match the return type of a GCC
19137 builtin and then its argument prototype would still apply.
19138 The 'extern "C"' is for builds by C++ compilers;
19139 although this is not generally supported in C code supporting it here
19140 has little cost and some practical benefit (sr 110532). */
19141 #ifdef __cplusplus
19142 extern "C"
19143 #endif
19144 char dlopen (void);
19145 int
19146 main (void)
19147 {
19148 return dlopen ();
19149 ;
19150 return 0;
19151 }
19152 _ACEOF
19153 if ac_fn_c_try_link "$LINENO"
19154 then :
19155 ac_cv_lib_svld_dlopen=yes
19156 else $as_nop
19157 ac_cv_lib_svld_dlopen=no
19158 fi
19159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19160 conftest$ac_exeext conftest.$ac_ext
19161 LIBS=$ac_check_lib_save_LIBS
19162 fi
19163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19164 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19165 if test "x$ac_cv_lib_svld_dlopen" = xyes
19166 then :
19167 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19168 else $as_nop
19169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19170 printf %s "checking for dld_link in -ldld... " >&6; }
19171 if test ${ac_cv_lib_dld_dld_link+y}
19172 then :
19173 printf %s "(cached) " >&6
19174 else $as_nop
19175 ac_check_lib_save_LIBS=$LIBS
19176 LIBS="-ldld $LIBS"
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19179
19180 /* Override any GCC internal prototype to avoid an error.
19181 Use char because int might match the return type of a GCC
19182 builtin and then its argument prototype would still apply.
19183 The 'extern "C"' is for builds by C++ compilers;
19184 although this is not generally supported in C code supporting it here
19185 has little cost and some practical benefit (sr 110532). */
19186 #ifdef __cplusplus
19187 extern "C"
19188 #endif
19189 char dld_link (void);
19190 int
19191 main (void)
19192 {
19193 return dld_link ();
19194 ;
19195 return 0;
19196 }
19197 _ACEOF
19198 if ac_fn_c_try_link "$LINENO"
19199 then :
19200 ac_cv_lib_dld_dld_link=yes
19201 else $as_nop
19202 ac_cv_lib_dld_dld_link=no
19203 fi
19204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19205 conftest$ac_exeext conftest.$ac_ext
19206 LIBS=$ac_check_lib_save_LIBS
19207 fi
19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19209 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19210 if test "x$ac_cv_lib_dld_dld_link" = xyes
19211 then :
19212 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19213 fi
19214
19215
19216 fi
19217
19218
19219 fi
19220
19221
19222 fi
19223
19224
19225 fi
19226
19227
19228 fi
19229
19230 ;;
19231 esac
19232
19233 if test no = "$lt_cv_dlopen"; then
19234 enable_dlopen=no
19235 else
19236 enable_dlopen=yes
19237 fi
19238
19239 case $lt_cv_dlopen in
19240 dlopen)
19241 save_CPPFLAGS=$CPPFLAGS
19242 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19243
19244 save_LDFLAGS=$LDFLAGS
19245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19246
19247 save_LIBS=$LIBS
19248 LIBS="$lt_cv_dlopen_libs $LIBS"
19249
19250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19251 printf %s "checking whether a program can dlopen itself... " >&6; }
19252 if test ${lt_cv_dlopen_self+y}
19253 then :
19254 printf %s "(cached) " >&6
19255 else $as_nop
19256 if test yes = "$cross_compiling"; then :
19257 lt_cv_dlopen_self=cross
19258 else
19259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19260 lt_status=$lt_dlunknown
19261 cat > conftest.$ac_ext <<_LT_EOF
19262 #line $LINENO "configure"
19263 #include "confdefs.h"
19264
19265 #if HAVE_DLFCN_H
19266 #include <dlfcn.h>
19267 #endif
19268
19269 #include <stdio.h>
19270
19271 #ifdef RTLD_GLOBAL
19272 # define LT_DLGLOBAL RTLD_GLOBAL
19273 #else
19274 # ifdef DL_GLOBAL
19275 # define LT_DLGLOBAL DL_GLOBAL
19276 # else
19277 # define LT_DLGLOBAL 0
19278 # endif
19279 #endif
19280
19281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19282 find out it does not work in some platform. */
19283 #ifndef LT_DLLAZY_OR_NOW
19284 # ifdef RTLD_LAZY
19285 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19286 # else
19287 # ifdef DL_LAZY
19288 # define LT_DLLAZY_OR_NOW DL_LAZY
19289 # else
19290 # ifdef RTLD_NOW
19291 # define LT_DLLAZY_OR_NOW RTLD_NOW
19292 # else
19293 # ifdef DL_NOW
19294 # define LT_DLLAZY_OR_NOW DL_NOW
19295 # else
19296 # define LT_DLLAZY_OR_NOW 0
19297 # endif
19298 # endif
19299 # endif
19300 # endif
19301 #endif
19302
19303 /* When -fvisibility=hidden is used, assume the code has been annotated
19304 correspondingly for the symbols needed. */
19305 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19306 int fnord () __attribute__((visibility("default")));
19307 #endif
19308
19309 int fnord () { return 42; }
19310 int main ()
19311 {
19312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19313 int status = $lt_dlunknown;
19314
19315 if (self)
19316 {
19317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19318 else
19319 {
19320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19321 else puts (dlerror ());
19322 }
19323 /* dlclose (self); */
19324 }
19325 else
19326 puts (dlerror ());
19327
19328 return status;
19329 }
19330 _LT_EOF
19331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19332 (eval $ac_link) 2>&5
19333 ac_status=$?
19334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19335 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19336 (./conftest; exit; ) >&5 2>/dev/null
19337 lt_status=$?
19338 case x$lt_status in
19339 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19340 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19341 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19342 esac
19343 else :
19344 # compilation failed
19345 lt_cv_dlopen_self=no
19346 fi
19347 fi
19348 rm -fr conftest*
19349
19350
19351 fi
19352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19353 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19354
19355 if test yes = "$lt_cv_dlopen_self"; then
19356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19358 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19359 if test ${lt_cv_dlopen_self_static+y}
19360 then :
19361 printf %s "(cached) " >&6
19362 else $as_nop
19363 if test yes = "$cross_compiling"; then :
19364 lt_cv_dlopen_self_static=cross
19365 else
19366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19367 lt_status=$lt_dlunknown
19368 cat > conftest.$ac_ext <<_LT_EOF
19369 #line $LINENO "configure"
19370 #include "confdefs.h"
19371
19372 #if HAVE_DLFCN_H
19373 #include <dlfcn.h>
19374 #endif
19375
19376 #include <stdio.h>
19377
19378 #ifdef RTLD_GLOBAL
19379 # define LT_DLGLOBAL RTLD_GLOBAL
19380 #else
19381 # ifdef DL_GLOBAL
19382 # define LT_DLGLOBAL DL_GLOBAL
19383 # else
19384 # define LT_DLGLOBAL 0
19385 # endif
19386 #endif
19387
19388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19389 find out it does not work in some platform. */
19390 #ifndef LT_DLLAZY_OR_NOW
19391 # ifdef RTLD_LAZY
19392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19393 # else
19394 # ifdef DL_LAZY
19395 # define LT_DLLAZY_OR_NOW DL_LAZY
19396 # else
19397 # ifdef RTLD_NOW
19398 # define LT_DLLAZY_OR_NOW RTLD_NOW
19399 # else
19400 # ifdef DL_NOW
19401 # define LT_DLLAZY_OR_NOW DL_NOW
19402 # else
19403 # define LT_DLLAZY_OR_NOW 0
19404 # endif
19405 # endif
19406 # endif
19407 # endif
19408 #endif
19409
19410 /* When -fvisibility=hidden is used, assume the code has been annotated
19411 correspondingly for the symbols needed. */
19412 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19413 int fnord () __attribute__((visibility("default")));
19414 #endif
19415
19416 int fnord () { return 42; }
19417 int main ()
19418 {
19419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19420 int status = $lt_dlunknown;
19421
19422 if (self)
19423 {
19424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19425 else
19426 {
19427 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19428 else puts (dlerror ());
19429 }
19430 /* dlclose (self); */
19431 }
19432 else
19433 puts (dlerror ());
19434
19435 return status;
19436 }
19437 _LT_EOF
19438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19439 (eval $ac_link) 2>&5
19440 ac_status=$?
19441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19442 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19443 (./conftest; exit; ) >&5 2>/dev/null
19444 lt_status=$?
19445 case x$lt_status in
19446 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19447 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19448 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19449 esac
19450 else :
19451 # compilation failed
19452 lt_cv_dlopen_self_static=no
19453 fi
19454 fi
19455 rm -fr conftest*
19456
19457
19458 fi
19459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19460 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19461 fi
19462
19463 CPPFLAGS=$save_CPPFLAGS
19464 LDFLAGS=$save_LDFLAGS
19465 LIBS=$save_LIBS
19466 ;;
19467 esac
19468
19469 case $lt_cv_dlopen_self in
19470 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19471 *) enable_dlopen_self=unknown ;;
19472 esac
19473
19474 case $lt_cv_dlopen_self_static in
19475 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19476 *) enable_dlopen_self_static=unknown ;;
19477 esac
19478 fi
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496 striplib=
19497 old_striplib=
19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19499 printf %s "checking whether stripping libraries is possible... " >&6; }
19500 if test -z "$STRIP"; then
19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19502 printf "%s\n" "no" >&6; }
19503 else
19504 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19505 old_striplib="$STRIP --strip-debug"
19506 striplib="$STRIP --strip-unneeded"
19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19508 printf "%s\n" "yes" >&6; }
19509 else
19510 case $host_os in
19511 darwin*)
19512 # FIXME - insert some real tests, host_os isn't really good enough
19513 striplib="$STRIP -x"
19514 old_striplib="$STRIP -S"
19515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19516 printf "%s\n" "yes" >&6; }
19517 ;;
19518 freebsd*)
19519 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19520 old_striplib="$STRIP --strip-debug"
19521 striplib="$STRIP --strip-unneeded"
19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19523 printf "%s\n" "yes" >&6; }
19524 else
19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19526 printf "%s\n" "no" >&6; }
19527 fi
19528 ;;
19529 *)
19530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19531 printf "%s\n" "no" >&6; }
19532 ;;
19533 esac
19534 fi
19535 fi
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548 # Report what library types will actually be built
19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19550 printf %s "checking if libtool supports shared libraries... " >&6; }
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19552 printf "%s\n" "$can_build_shared" >&6; }
19553
19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19555 printf %s "checking whether to build shared libraries... " >&6; }
19556 test no = "$can_build_shared" && enable_shared=no
19557
19558 # On AIX, shared libraries and static libraries use the same namespace, and
19559 # are all built from PIC.
19560 case $host_os in
19561 aix3*)
19562 test yes = "$enable_shared" && enable_static=no
19563 if test -n "$RANLIB"; then
19564 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19565 postinstall_cmds='$RANLIB $lib'
19566 fi
19567 ;;
19568
19569 aix[4-9]*)
19570 if test ia64 != "$host_cpu"; then
19571 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19572 yes,aix,yes) ;; # shared object as lib.so file only
19573 yes,svr4,*) ;; # shared object as lib.so archive member only
19574 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19575 esac
19576 fi
19577 ;;
19578 esac
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19580 printf "%s\n" "$enable_shared" >&6; }
19581
19582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19583 printf %s "checking whether to build static libraries... " >&6; }
19584 # Make sure either enable_shared or enable_static is yes.
19585 test yes = "$enable_shared" || enable_static=yes
19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19587 printf "%s\n" "$enable_static" >&6; }
19588
19589
19590
19591
19592 fi
19593 ac_ext=c
19594 ac_cpp='$CPP $CPPFLAGS'
19595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19598
19599 CC=$lt_save_CC
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615 ac_config_commands="$ac_config_commands libtool"
19616
19617
19618
19619
19620 # Only expand once:
19621
19622
19623
19624 # Checks for programs.
19625
19626
19627 if test "x$GCC" = "xyes"; then
19628 CPPFLAGS="$CPPFLAGS -Wall"
19629 fi
19630
19631
19632
19633 # Define a configure option for an alternate module directory
19634
19635 # Check whether --with-xorg-module-dir was given.
19636 if test ${with_xorg_module_dir+y}
19637 then :
19638 withval=$with_xorg_module_dir; moduledir="$withval"
19639 else $as_nop
19640 moduledir="$libdir/xorg/modules"
19641 fi
19642
19643
19644 # Store the list of server defined optional extensions in REQUIRED_MODULES
19645
19646
19647 SAVE_CFLAGS="$CFLAGS"
19648 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19651
19652 #include "xorg-server.h"
19653 #if !defined RANDR
19654 #error RANDR not defined
19655 #endif
19656
19657 int
19658 main (void)
19659 {
19660
19661 ;
19662 return 0;
19663 }
19664 _ACEOF
19665 if ac_fn_c_try_compile "$LINENO"
19666 then :
19667 _EXT_CHECK=yes
19668 else $as_nop
19669 _EXT_CHECK=no
19670 fi
19671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19672 CFLAGS="$SAVE_CFLAGS"
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19674 printf %s "checking if RANDR is defined... " >&6; }
19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19676 printf "%s\n" "$_EXT_CHECK" >&6; }
19677 if test "$_EXT_CHECK" != no; then
19678 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19679 fi
19680
19681
19682
19683 SAVE_CFLAGS="$CFLAGS"
19684 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686 /* end confdefs.h. */
19687
19688 #include "xorg-server.h"
19689 #if !defined RENDER
19690 #error RENDER not defined
19691 #endif
19692
19693 int
19694 main (void)
19695 {
19696
19697 ;
19698 return 0;
19699 }
19700 _ACEOF
19701 if ac_fn_c_try_compile "$LINENO"
19702 then :
19703 _EXT_CHECK=yes
19704 else $as_nop
19705 _EXT_CHECK=no
19706 fi
19707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19708 CFLAGS="$SAVE_CFLAGS"
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19710 printf %s "checking if RENDER is defined... " >&6; }
19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19712 printf "%s\n" "$_EXT_CHECK" >&6; }
19713 if test "$_EXT_CHECK" != no; then
19714 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19715 fi
19716
19717
19718
19719 SAVE_CFLAGS="$CFLAGS"
19720 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723
19724 #include "xorg-server.h"
19725 #if !defined XV
19726 #error XV not defined
19727 #endif
19728
19729 int
19730 main (void)
19731 {
19732
19733 ;
19734 return 0;
19735 }
19736 _ACEOF
19737 if ac_fn_c_try_compile "$LINENO"
19738 then :
19739 _EXT_CHECK=yes
19740 else $as_nop
19741 _EXT_CHECK=no
19742 fi
19743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19744 CFLAGS="$SAVE_CFLAGS"
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19746 printf %s "checking if XV is defined... " >&6; }
19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19748 printf "%s\n" "$_EXT_CHECK" >&6; }
19749 if test "$_EXT_CHECK" != no; then
19750 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19751 fi
19752
19753
19754
19755 SAVE_CFLAGS="$CFLAGS"
19756 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19758 /* end confdefs.h. */
19759
19760 #include "xorg-server.h"
19761 #if !defined DPMSExtension
19762 #error DPMSExtension not defined
19763 #endif
19764
19765 int
19766 main (void)
19767 {
19768
19769 ;
19770 return 0;
19771 }
19772 _ACEOF
19773 if ac_fn_c_try_compile "$LINENO"
19774 then :
19775 _EXT_CHECK=yes
19776 else $as_nop
19777 _EXT_CHECK=no
19778 fi
19779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19780 CFLAGS="$SAVE_CFLAGS"
19781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19782 printf %s "checking if DPMSExtension is defined... " >&6; }
19783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19784 printf "%s\n" "$_EXT_CHECK" >&6; }
19785 if test "$_EXT_CHECK" != no; then
19786 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19787 fi
19788
19789
19790 # Checks for libraries.
19791
19792 pkg_failed=no
19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
19794 printf %s "checking for LIBDRM... " >&6; }
19795
19796 if test -n "$LIBDRM_CFLAGS"; then
19797 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
19798 elif test -n "$PKG_CONFIG"; then
19799 if test -n "$PKG_CONFIG" && \
19800 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
19801 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
19802 ac_status=$?
19803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19804 test $ac_status = 0; }; then
19805 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null`
19806 test "x$?" != "x0" && pkg_failed=yes
19807 else
19808 pkg_failed=yes
19809 fi
19810 else
19811 pkg_failed=untried
19812 fi
19813 if test -n "$LIBDRM_LIBS"; then
19814 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
19815 elif test -n "$PKG_CONFIG"; then
19816 if test -n "$PKG_CONFIG" && \
19817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
19818 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
19819 ac_status=$?
19820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19821 test $ac_status = 0; }; then
19822 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null`
19823 test "x$?" != "x0" && pkg_failed=yes
19824 else
19825 pkg_failed=yes
19826 fi
19827 else
19828 pkg_failed=untried
19829 fi
19830
19831
19832
19833 if test $pkg_failed = yes; then
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19835 printf "%s\n" "no" >&6; }
19836
19837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19838 _pkg_short_errors_supported=yes
19839 else
19840 _pkg_short_errors_supported=no
19841 fi
19842 if test $_pkg_short_errors_supported = yes; then
19843 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
19844 else
19845 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
19846 fi
19847 # Put the nasty error message in config.log where it belongs
19848 echo "$LIBDRM_PKG_ERRORS" >&5
19849
19850 as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met:
19851
19852 $LIBDRM_PKG_ERRORS
19853
19854 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19855 installed software in a non-standard prefix.
19856
19857 Alternatively, you may set the environment variables LIBDRM_CFLAGS
19858 and LIBDRM_LIBS to avoid the need to call pkg-config.
19859 See the pkg-config man page for more details." "$LINENO" 5
19860 elif test $pkg_failed = untried; then
19861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 printf "%s\n" "no" >&6; }
19863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19864 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19865 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19866 is in your PATH or set the PKG_CONFIG environment variable to the full
19867 path to pkg-config.
19868
19869 Alternatively, you may set the environment variables LIBDRM_CFLAGS
19870 and LIBDRM_LIBS to avoid the need to call pkg-config.
19871 See the pkg-config man page for more details.
19872
19873 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19874 See \`config.log' for more details" "$LINENO" 5; }
19875 else
19876 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
19877 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
19878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879 printf "%s\n" "yes" >&6; }
19880
19881 fi
19882
19883 pkg_failed=no
19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
19885 printf %s "checking for LIBDRM_RADEON... " >&6; }
19886
19887 if test -n "$LIBDRM_RADEON_CFLAGS"; then
19888 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
19889 elif test -n "$PKG_CONFIG"; then
19890 if test -n "$PKG_CONFIG" && \
19891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19892 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19893 ac_status=$?
19894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19895 test $ac_status = 0; }; then
19896 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null`
19897 test "x$?" != "x0" && pkg_failed=yes
19898 else
19899 pkg_failed=yes
19900 fi
19901 else
19902 pkg_failed=untried
19903 fi
19904 if test -n "$LIBDRM_RADEON_LIBS"; then
19905 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
19906 elif test -n "$PKG_CONFIG"; then
19907 if test -n "$PKG_CONFIG" && \
19908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19909 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19910 ac_status=$?
19911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19912 test $ac_status = 0; }; then
19913 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null`
19914 test "x$?" != "x0" && pkg_failed=yes
19915 else
19916 pkg_failed=yes
19917 fi
19918 else
19919 pkg_failed=untried
19920 fi
19921
19922
19923
19924 if test $pkg_failed = yes; then
19925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19926 printf "%s\n" "no" >&6; }
19927
19928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19929 _pkg_short_errors_supported=yes
19930 else
19931 _pkg_short_errors_supported=no
19932 fi
19933 if test $_pkg_short_errors_supported = yes; then
19934 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19935 else
19936 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19937 fi
19938 # Put the nasty error message in config.log where it belongs
19939 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
19940
19941 as_fn_error $? "Package requirements (libdrm_radeon) were not met:
19942
19943 $LIBDRM_RADEON_PKG_ERRORS
19944
19945 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19946 installed software in a non-standard prefix.
19947
19948 Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19949 and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19950 See the pkg-config man page for more details." "$LINENO" 5
19951 elif test $pkg_failed = untried; then
19952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19953 printf "%s\n" "no" >&6; }
19954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19956 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19957 is in your PATH or set the PKG_CONFIG environment variable to the full
19958 path to pkg-config.
19959
19960 Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19961 and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19962 See the pkg-config man page for more details.
19963
19964 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19965 See \`config.log' for more details" "$LINENO" 5; }
19966 else
19967 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
19968 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19970 printf "%s\n" "yes" >&6; }
19971
19972 fi
19973
19974 # Obtain compiler/linker options for the driver dependencies
19975
19976 pkg_failed=no
19977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19978 printf %s "checking for XORG... " >&6; }
19979
19980 if test -n "$XORG_CFLAGS"; then
19981 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19982 elif test -n "$PKG_CONFIG"; then
19983 if test -n "$PKG_CONFIG" && \
19984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19985 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19986 ac_status=$?
19987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19988 test $ac_status = 0; }; then
19989 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19990 test "x$?" != "x0" && pkg_failed=yes
19991 else
19992 pkg_failed=yes
19993 fi
19994 else
19995 pkg_failed=untried
19996 fi
19997 if test -n "$XORG_LIBS"; then
19998 pkg_cv_XORG_LIBS="$XORG_LIBS"
19999 elif test -n "$PKG_CONFIG"; then
20000 if test -n "$PKG_CONFIG" && \
20001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
20002 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
20003 ac_status=$?
20004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20005 test $ac_status = 0; }; then
20006 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
20007 test "x$?" != "x0" && pkg_failed=yes
20008 else
20009 pkg_failed=yes
20010 fi
20011 else
20012 pkg_failed=untried
20013 fi
20014
20015
20016
20017 if test $pkg_failed = yes; then
20018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20019 printf "%s\n" "no" >&6; }
20020
20021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20022 _pkg_short_errors_supported=yes
20023 else
20024 _pkg_short_errors_supported=no
20025 fi
20026 if test $_pkg_short_errors_supported = yes; then
20027 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
20028 else
20029 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
20030 fi
20031 # Put the nasty error message in config.log where it belongs
20032 echo "$XORG_PKG_ERRORS" >&5
20033
20034 as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
20035
20036 $XORG_PKG_ERRORS
20037
20038 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20039 installed software in a non-standard prefix.
20040
20041 Alternatively, you may set the environment variables XORG_CFLAGS
20042 and XORG_LIBS to avoid the need to call pkg-config.
20043 See the pkg-config man page for more details." "$LINENO" 5
20044 elif test $pkg_failed = untried; then
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 printf "%s\n" "no" >&6; }
20047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20049 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20050 is in your PATH or set the PKG_CONFIG environment variable to the full
20051 path to pkg-config.
20052
20053 Alternatively, you may set the environment variables XORG_CFLAGS
20054 and XORG_LIBS to avoid the need to call pkg-config.
20055 See the pkg-config man page for more details.
20056
20057 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20058 See \`config.log' for more details" "$LINENO" 5; }
20059 else
20060 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20061 XORG_LIBS=$pkg_cv_XORG_LIBS
20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20063 printf "%s\n" "yes" >&6; }
20064
20065 fi
20066
20067 pkg_failed=no
20068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
20069 printf %s "checking for XEXT... " >&6; }
20070
20071 if test -n "$XEXT_CFLAGS"; then
20072 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20073 elif test -n "$PKG_CONFIG"; then
20074 if test -n "$PKG_CONFIG" && \
20075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20076 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20077 ac_status=$?
20078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20079 test $ac_status = 0; }; then
20080 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
20081 test "x$?" != "x0" && pkg_failed=yes
20082 else
20083 pkg_failed=yes
20084 fi
20085 else
20086 pkg_failed=untried
20087 fi
20088 if test -n "$XEXT_LIBS"; then
20089 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20090 elif test -n "$PKG_CONFIG"; then
20091 if test -n "$PKG_CONFIG" && \
20092 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20093 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20094 ac_status=$?
20095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20096 test $ac_status = 0; }; then
20097 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
20098 test "x$?" != "x0" && pkg_failed=yes
20099 else
20100 pkg_failed=yes
20101 fi
20102 else
20103 pkg_failed=untried
20104 fi
20105
20106
20107
20108 if test $pkg_failed = yes; then
20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20110 printf "%s\n" "no" >&6; }
20111
20112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20113 _pkg_short_errors_supported=yes
20114 else
20115 _pkg_short_errors_supported=no
20116 fi
20117 if test $_pkg_short_errors_supported = yes; then
20118 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20119 else
20120 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20121 fi
20122 # Put the nasty error message in config.log where it belongs
20123 echo "$XEXT_PKG_ERRORS" >&5
20124
20125 HAVE_XEXTPROTO_71="no"
20126 elif test $pkg_failed = untried; then
20127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20128 printf "%s\n" "no" >&6; }
20129 HAVE_XEXTPROTO_71="no"
20130 else
20131 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20132 XEXT_LIBS=$pkg_cv_XEXT_LIBS
20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20134 printf "%s\n" "yes" >&6; }
20135 HAVE_XEXTPROTO_71="yes";
20136 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
20137
20138 fi
20139 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
20140 HAVE_XEXTPROTO_71_TRUE=
20141 HAVE_XEXTPROTO_71_FALSE='#'
20142 else
20143 HAVE_XEXTPROTO_71_TRUE='#'
20144 HAVE_XEXTPROTO_71_FALSE=
20145 fi
20146
20147
20148 # Section "OutputClass" is only supported as of xserver 1.16
20149 if test -n "$PKG_CONFIG" && \
20150 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
20151 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
20152 ac_status=$?
20153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20154 test $ac_status = 0; }; then
20155 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
20156 else
20157 sysconfigdir=""
20158 fi
20159 if test "x$sysconfigdir" != "x"; then
20160 HAS_XORG_CONF_DIR_TRUE=
20161 HAS_XORG_CONF_DIR_FALSE='#'
20162 else
20163 HAS_XORG_CONF_DIR_TRUE='#'
20164 HAS_XORG_CONF_DIR_FALSE=
20165 fi
20166
20167
20168 # Define a configure option for an alternate X Server configuration directory
20169
20170 # Check whether --with-xorg-conf-dir was given.
20171 if test ${with_xorg_conf_dir+y}
20172 then :
20173 withval=$with_xorg_conf_dir; configdir="$withval"
20174 else $as_nop
20175 configdir='${prefix}/share/X11/xorg.conf.d'
20176 fi
20177
20178
20179
20180 # Check whether --enable-udev was given.
20181 if test ${enable_udev+y}
20182 then :
20183 enableval=$enable_udev; enable_udev="$enableval"
20184 else $as_nop
20185 enable_udev=auto
20186 fi
20187
20188 if test "x$enable_udev" != "xno"; then
20189
20190 pkg_failed=no
20191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
20192 printf %s "checking for LIBUDEV... " >&6; }
20193
20194 if test -n "$LIBUDEV_CFLAGS"; then
20195 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
20196 elif test -n "$PKG_CONFIG"; then
20197 if test -n "$PKG_CONFIG" && \
20198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20199 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20200 ac_status=$?
20201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20202 test $ac_status = 0; }; then
20203 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
20204 test "x$?" != "x0" && pkg_failed=yes
20205 else
20206 pkg_failed=yes
20207 fi
20208 else
20209 pkg_failed=untried
20210 fi
20211 if test -n "$LIBUDEV_LIBS"; then
20212 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
20213 elif test -n "$PKG_CONFIG"; then
20214 if test -n "$PKG_CONFIG" && \
20215 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20216 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20217 ac_status=$?
20218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20219 test $ac_status = 0; }; then
20220 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
20221 test "x$?" != "x0" && pkg_failed=yes
20222 else
20223 pkg_failed=yes
20224 fi
20225 else
20226 pkg_failed=untried
20227 fi
20228
20229
20230
20231 if test $pkg_failed = yes; then
20232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20233 printf "%s\n" "no" >&6; }
20234
20235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20236 _pkg_short_errors_supported=yes
20237 else
20238 _pkg_short_errors_supported=no
20239 fi
20240 if test $_pkg_short_errors_supported = yes; then
20241 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
20242 else
20243 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
20244 fi
20245 # Put the nasty error message in config.log where it belongs
20246 echo "$LIBUDEV_PKG_ERRORS" >&5
20247
20248 LIBUDEV=no
20249 elif test $pkg_failed = untried; then
20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20251 printf "%s\n" "no" >&6; }
20252 LIBUDEV=no
20253 else
20254 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
20255 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
20256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20257 printf "%s\n" "yes" >&6; }
20258 LIBUDEV=yes
20259 fi
20260 if test "x$LIBUDEV" = xyes; then
20261
20262 printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h
20263
20264 elif test "x$enable_udev" != "xauto"; then
20265 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
20266 fi
20267 fi
20268 if test x$LIBUDEV = xyes; then
20269 LIBUDEV_TRUE=
20270 LIBUDEV_FALSE='#'
20271 else
20272 LIBUDEV_TRUE='#'
20273 LIBUDEV_FALSE=
20274 fi
20275
20276
20277 SAVE_CPPFLAGS="$CPPFLAGS"
20278 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20279
20280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
20281 printf %s "checking whether to include GLAMOR support... " >&6; }
20282 # Check whether --enable-glamor was given.
20283 if test ${enable_glamor+y}
20284 then :
20285 enableval=$enable_glamor; GLAMOR="$enableval"
20286 else $as_nop
20287 GLAMOR=yes
20288 fi
20289
20290
20291 if test "x$GLAMOR" != "xno"; then
20292 for ac_header in glamor.h
20293 do :
20294 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
20295 "
20296 if test "x$ac_cv_header_glamor_h" = xyes
20297 then :
20298 printf "%s\n" "#define HAVE_GLAMOR_H 1" >>confdefs.h
20299 GLAMOR_H="yes"
20300 else $as_nop
20301 GLAMOR_H="no"
20302 fi
20303
20304 done
20305
20306 if test "x$GLAMOR_H" = xyes; then
20307 ac_fn_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
20308 #include \"glamor.h\"
20309 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20310 if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes
20311 then :
20312 GLAMOR_XSERVER="yes"
20313 else $as_nop
20314 GLAMOR_XSERVER="no"
20315 fi
20316
20317 ac_fn_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
20318 #include \"glamor.h\"
20319 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20320 if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes
20321 then :
20322
20323 printf "%s\n" "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
20324
20325 fi
20326
20327 ac_fn_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
20328 #include \"glamor.h\"
20329 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20330 if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes
20331 then :
20332
20333 printf "%s\n" "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
20334
20335 fi
20336
20337 ac_fn_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\"
20338 #include \"glamor.h\"
20339 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20340 if test "x$ac_cv_have_decl_glamor_finish" = xyes
20341 then :
20342
20343 printf "%s\n" "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h
20344
20345 else $as_nop
20346
20347 pkg_failed=no
20348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5
20349 printf %s "checking for LIBGL... " >&6; }
20350
20351 if test -n "$LIBGL_CFLAGS"; then
20352 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
20353 elif test -n "$PKG_CONFIG"; then
20354 if test -n "$PKG_CONFIG" && \
20355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
20356 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
20357 ac_status=$?
20358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20359 test $ac_status = 0; }; then
20360 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
20361 test "x$?" != "x0" && pkg_failed=yes
20362 else
20363 pkg_failed=yes
20364 fi
20365 else
20366 pkg_failed=untried
20367 fi
20368 if test -n "$LIBGL_LIBS"; then
20369 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
20370 elif test -n "$PKG_CONFIG"; then
20371 if test -n "$PKG_CONFIG" && \
20372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
20373 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
20374 ac_status=$?
20375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20376 test $ac_status = 0; }; then
20377 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
20378 test "x$?" != "x0" && pkg_failed=yes
20379 else
20380 pkg_failed=yes
20381 fi
20382 else
20383 pkg_failed=untried
20384 fi
20385
20386
20387
20388 if test $pkg_failed = yes; then
20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20390 printf "%s\n" "no" >&6; }
20391
20392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20393 _pkg_short_errors_supported=yes
20394 else
20395 _pkg_short_errors_supported=no
20396 fi
20397 if test $_pkg_short_errors_supported = yes; then
20398 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
20399 else
20400 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
20401 fi
20402 # Put the nasty error message in config.log where it belongs
20403 echo "$LIBGL_PKG_ERRORS" >&5
20404
20405 as_fn_error $? "Package requirements (gl) were not met:
20406
20407 $LIBGL_PKG_ERRORS
20408
20409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20410 installed software in a non-standard prefix.
20411
20412 Alternatively, you may set the environment variables LIBGL_CFLAGS
20413 and LIBGL_LIBS to avoid the need to call pkg-config.
20414 See the pkg-config man page for more details." "$LINENO" 5
20415 elif test $pkg_failed = untried; then
20416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20417 printf "%s\n" "no" >&6; }
20418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20419 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20420 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20421 is in your PATH or set the PKG_CONFIG environment variable to the full
20422 path to pkg-config.
20423
20424 Alternatively, you may set the environment variables LIBGL_CFLAGS
20425 and LIBGL_LIBS to avoid the need to call pkg-config.
20426 See the pkg-config man page for more details.
20427
20428 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20429 See \`config.log' for more details" "$LINENO" 5; }
20430 else
20431 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
20432 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
20433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20434 printf "%s\n" "yes" >&6; }
20435
20436 fi
20437 fi
20438 fi
20439
20440 if test "x$GLAMOR_XSERVER" != xyes; then
20441
20442 pkg_failed=no
20443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
20444 printf %s "checking for LIBGLAMOR... " >&6; }
20445
20446 if test -n "$LIBGLAMOR_CFLAGS"; then
20447 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
20448 elif test -n "$PKG_CONFIG"; then
20449 if test -n "$PKG_CONFIG" && \
20450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20451 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20452 ac_status=$?
20453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; }; then
20455 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
20456 test "x$?" != "x0" && pkg_failed=yes
20457 else
20458 pkg_failed=yes
20459 fi
20460 else
20461 pkg_failed=untried
20462 fi
20463 if test -n "$LIBGLAMOR_LIBS"; then
20464 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
20465 elif test -n "$PKG_CONFIG"; then
20466 if test -n "$PKG_CONFIG" && \
20467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20468 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20469 ac_status=$?
20470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471 test $ac_status = 0; }; then
20472 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
20473 test "x$?" != "x0" && pkg_failed=yes
20474 else
20475 pkg_failed=yes
20476 fi
20477 else
20478 pkg_failed=untried
20479 fi
20480
20481
20482
20483 if test $pkg_failed = yes; then
20484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20485 printf "%s\n" "no" >&6; }
20486
20487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20488 _pkg_short_errors_supported=yes
20489 else
20490 _pkg_short_errors_supported=no
20491 fi
20492 if test $_pkg_short_errors_supported = yes; then
20493 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20494 else
20495 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20496 fi
20497 # Put the nasty error message in config.log where it belongs
20498 echo "$LIBGLAMOR_PKG_ERRORS" >&5
20499
20500 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
20501
20502 $LIBGLAMOR_PKG_ERRORS
20503
20504 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20505 installed software in a non-standard prefix.
20506
20507 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20508 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20509 See the pkg-config man page for more details." "$LINENO" 5
20510 elif test $pkg_failed = untried; then
20511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20512 printf "%s\n" "no" >&6; }
20513 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20514 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20515 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20516 is in your PATH or set the PKG_CONFIG environment variable to the full
20517 path to pkg-config.
20518
20519 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20520 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20521 See the pkg-config man page for more details.
20522
20523 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20524 See \`config.log' for more details" "$LINENO" 5; }
20525 else
20526 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
20527 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
20528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20529 printf "%s\n" "yes" >&6; }
20530
20531 fi
20532
20533 pkg_failed=no
20534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
20535 printf %s "checking for LIBGLAMOR_EGL... " >&6; }
20536
20537 if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
20538 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
20539 elif test -n "$PKG_CONFIG"; then
20540 if test -n "$PKG_CONFIG" && \
20541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20542 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20543 ac_status=$?
20544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20545 test $ac_status = 0; }; then
20546 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
20547 test "x$?" != "x0" && pkg_failed=yes
20548 else
20549 pkg_failed=yes
20550 fi
20551 else
20552 pkg_failed=untried
20553 fi
20554 if test -n "$LIBGLAMOR_EGL_LIBS"; then
20555 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
20556 elif test -n "$PKG_CONFIG"; then
20557 if test -n "$PKG_CONFIG" && \
20558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20559 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20560 ac_status=$?
20561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20562 test $ac_status = 0; }; then
20563 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
20564 test "x$?" != "x0" && pkg_failed=yes
20565 else
20566 pkg_failed=yes
20567 fi
20568 else
20569 pkg_failed=untried
20570 fi
20571
20572
20573
20574 if test $pkg_failed = yes; then
20575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20576 printf "%s\n" "no" >&6; }
20577
20578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20579 _pkg_short_errors_supported=yes
20580 else
20581 _pkg_short_errors_supported=no
20582 fi
20583 if test $_pkg_short_errors_supported = yes; then
20584 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
20585 else
20586 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
20587 fi
20588 # Put the nasty error message in config.log where it belongs
20589 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
20590
20591 as_fn_error $? "Package requirements (glamor-egl) were not met:
20592
20593 $LIBGLAMOR_EGL_PKG_ERRORS
20594
20595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20596 installed software in a non-standard prefix.
20597
20598 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20599 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20600 See the pkg-config man page for more details." "$LINENO" 5
20601 elif test $pkg_failed = untried; then
20602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603 printf "%s\n" "no" >&6; }
20604 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20606 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20607 is in your PATH or set the PKG_CONFIG environment variable to the full
20608 path to pkg-config.
20609
20610 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20611 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20612 See the pkg-config man page for more details.
20613
20614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20615 See \`config.log' for more details" "$LINENO" 5; }
20616 else
20617 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
20618 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
20619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20620 printf "%s\n" "yes" >&6; }
20621
20622 fi
20623 fi
20624
20625
20626 pkg_failed=no
20627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
20628 printf %s "checking for GBM... " >&6; }
20629
20630 if test -n "$GBM_CFLAGS"; then
20631 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
20632 elif test -n "$PKG_CONFIG"; then
20633 if test -n "$PKG_CONFIG" && \
20634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5
20635 ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5
20636 ac_status=$?
20637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20638 test $ac_status = 0; }; then
20639 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 10.6" 2>/dev/null`
20640 test "x$?" != "x0" && pkg_failed=yes
20641 else
20642 pkg_failed=yes
20643 fi
20644 else
20645 pkg_failed=untried
20646 fi
20647 if test -n "$GBM_LIBS"; then
20648 pkg_cv_GBM_LIBS="$GBM_LIBS"
20649 elif test -n "$PKG_CONFIG"; then
20650 if test -n "$PKG_CONFIG" && \
20651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5
20652 ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5
20653 ac_status=$?
20654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20655 test $ac_status = 0; }; then
20656 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm >= 10.6" 2>/dev/null`
20657 test "x$?" != "x0" && pkg_failed=yes
20658 else
20659 pkg_failed=yes
20660 fi
20661 else
20662 pkg_failed=untried
20663 fi
20664
20665
20666
20667 if test $pkg_failed = yes; then
20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20669 printf "%s\n" "no" >&6; }
20670
20671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20672 _pkg_short_errors_supported=yes
20673 else
20674 _pkg_short_errors_supported=no
20675 fi
20676 if test $_pkg_short_errors_supported = yes; then
20677 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 10.6" 2>&1`
20678 else
20679 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 10.6" 2>&1`
20680 fi
20681 # Put the nasty error message in config.log where it belongs
20682 echo "$GBM_PKG_ERRORS" >&5
20683
20684 as_fn_error $? "Package requirements (gbm >= 10.6) were not met:
20685
20686 $GBM_PKG_ERRORS
20687
20688 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20689 installed software in a non-standard prefix.
20690
20691 Alternatively, you may set the environment variables GBM_CFLAGS
20692 and GBM_LIBS to avoid the need to call pkg-config.
20693 See the pkg-config man page for more details." "$LINENO" 5
20694 elif test $pkg_failed = untried; then
20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20696 printf "%s\n" "no" >&6; }
20697 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20698 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20699 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20700 is in your PATH or set the PKG_CONFIG environment variable to the full
20701 path to pkg-config.
20702
20703 Alternatively, you may set the environment variables GBM_CFLAGS
20704 and GBM_LIBS to avoid the need to call pkg-config.
20705 See the pkg-config man page for more details.
20706
20707 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20708 See \`config.log' for more details" "$LINENO" 5; }
20709 else
20710 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
20711 GBM_LIBS=$pkg_cv_GBM_LIBS
20712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20713 printf "%s\n" "yes" >&6; }
20714
20715 fi
20716
20717
20718 printf "%s\n" "#define USE_GLAMOR 1" >>confdefs.h
20719
20720 else
20721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
20722 printf "%s\n" "$GLAMOR" >&6; }
20723 fi
20724 if test x$GLAMOR != xno; then
20725 GLAMOR_TRUE=
20726 GLAMOR_FALSE='#'
20727 else
20728 GLAMOR_TRUE='#'
20729 GLAMOR_FALSE=
20730 fi
20731
20732
20733 ac_fn_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h>
20734 #include <regionstr.h>
20735 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20736 if test "x$ac_cv_have_decl_RegionDuplicate" = xyes
20737 then :
20738
20739 printf "%s\n" "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h
20740
20741 fi
20742
20743 ac_fn_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
20744 #include <X11/Xfuncproto.h>
20745 #include <X11/extensions/renderproto.h>
20746 #include <xorg-server.h>
20747 #include <picture.h>
20748 #include <glyphstr.h>
20749 #include <fbpict.h>
20750 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20751 if test "x$ac_cv_have_decl_fbGlyphs" = xyes
20752 then :
20753
20754 printf "%s\n" "#define HAVE_FBGLYPHS 1" >>confdefs.h
20755
20756 fi
20757
20758 ac_fn_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
20759 #include <xf86Cursor.h>
20760 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20761 if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes
20762 then :
20763
20764 printf "%s\n" "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
20765
20766 fi
20767
20768 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
20769 #include <X11/Xfuncproto.h>
20770 #include <xorg-server.h>
20771 #include <screenint.h>
20772 "
20773 if test "x$ac_cv_header_misyncshm_h" = xyes
20774 then :
20775 printf "%s\n" "#define HAVE_MISYNCSHM_H 1" >>confdefs.h
20776
20777 fi
20778
20779
20780 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
20781 #include <X11/Xproto.h>
20782 #include \"xorg-server.h\"
20783 #include <X11/X.h>
20784 "
20785 if test "x$ac_cv_header_present_h" = xyes
20786 then :
20787 printf "%s\n" "#define HAVE_PRESENT_H 1" >>confdefs.h
20788
20789 fi
20790
20791
20792 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
20793 #include <xorg-server.h>
20794 "
20795 if test "x$ac_cv_header_dri3_h" = xyes
20796 then :
20797 printf "%s\n" "#define HAVE_DRI3_H 1" >>confdefs.h
20798
20799 fi
20800
20801
20802 CPPFLAGS="$SAVE_CPPFLAGS"
20803
20804
20805 pkg_failed=no
20806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20807 printf %s "checking for PCIACCESS... " >&6; }
20808
20809 if test -n "$PCIACCESS_CFLAGS"; then
20810 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20811 elif test -n "$PKG_CONFIG"; then
20812 if test -n "$PKG_CONFIG" && \
20813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20814 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20815 ac_status=$?
20816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20817 test $ac_status = 0; }; then
20818 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20819 test "x$?" != "x0" && pkg_failed=yes
20820 else
20821 pkg_failed=yes
20822 fi
20823 else
20824 pkg_failed=untried
20825 fi
20826 if test -n "$PCIACCESS_LIBS"; then
20827 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20828 elif test -n "$PKG_CONFIG"; then
20829 if test -n "$PKG_CONFIG" && \
20830 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20831 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20832 ac_status=$?
20833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20834 test $ac_status = 0; }; then
20835 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20836 test "x$?" != "x0" && pkg_failed=yes
20837 else
20838 pkg_failed=yes
20839 fi
20840 else
20841 pkg_failed=untried
20842 fi
20843
20844
20845
20846 if test $pkg_failed = yes; then
20847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848 printf "%s\n" "no" >&6; }
20849
20850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20851 _pkg_short_errors_supported=yes
20852 else
20853 _pkg_short_errors_supported=no
20854 fi
20855 if test $_pkg_short_errors_supported = yes; then
20856 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20857 else
20858 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20859 fi
20860 # Put the nasty error message in config.log where it belongs
20861 echo "$PCIACCESS_PKG_ERRORS" >&5
20862
20863 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
20864
20865 $PCIACCESS_PKG_ERRORS
20866
20867 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20868 installed software in a non-standard prefix.
20869
20870 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20871 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20872 See the pkg-config man page for more details." "$LINENO" 5
20873 elif test $pkg_failed = untried; then
20874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20875 printf "%s\n" "no" >&6; }
20876 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20877 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20878 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20879 is in your PATH or set the PKG_CONFIG environment variable to the full
20880 path to pkg-config.
20881
20882 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20883 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20884 See the pkg-config man page for more details.
20885
20886 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20887 See \`config.log' for more details" "$LINENO" 5; }
20888 else
20889 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20890 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20892 printf "%s\n" "yes" >&6; }
20893
20894 fi
20895 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20896
20897 # Checks for headers/macros for byte swapping
20898 # Known variants:
20899 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
20900 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
20901 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
20902 # and a fallback to local macros if none of the above are found
20903
20904 # if <byteswap.h> is found, assume it's the correct version
20905 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
20906 if test "x$ac_cv_header_byteswap_h" = xyes
20907 then :
20908 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
20909
20910 fi
20911
20912
20913 # if <sys/endian.h> is found, have to check which version
20914 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
20915 if test "x$ac_cv_header_sys_endian_h" = xyes
20916 then :
20917 HAVE_SYS_ENDIAN_H="yes"
20918 else $as_nop
20919 HAVE_SYS_ENDIAN_H="no"
20920 fi
20921
20922
20923 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
20924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
20925 printf %s "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927 /* end confdefs.h. */
20928
20929 #include <sys/types.h>
20930 #include <sys/endian.h>
20931
20932 int
20933 main (void)
20934 {
20935
20936 int a = 1, b;
20937 b = __swap16(a);
20938
20939 ;
20940 return 0;
20941 }
20942
20943 _ACEOF
20944 if ac_fn_c_try_link "$LINENO"
20945 then :
20946 SYS_ENDIAN__SWAP='yes'
20947 else $as_nop
20948 SYS_ENDIAN__SWAP='no'
20949 fi
20950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20951 conftest$ac_exeext conftest.$ac_ext
20952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
20953 printf "%s\n" "$SYS_ENDIAN__SWAP" >&6; }
20954
20955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
20956 printf %s "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20959
20960 #include <sys/types.h>
20961 #include <sys/endian.h>
20962
20963 int
20964 main (void)
20965 {
20966
20967 int a = 1, b;
20968 b = bswap16(a);
20969
20970 ;
20971 return 0;
20972 }
20973
20974 _ACEOF
20975 if ac_fn_c_try_link "$LINENO"
20976 then :
20977 SYS_ENDIAN_BSWAP='yes'
20978 else $as_nop
20979 SYS_ENDIAN_BSWAP='no'
20980 fi
20981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20982 conftest$ac_exeext conftest.$ac_ext
20983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
20984 printf "%s\n" "$SYS_ENDIAN_BSWAP" >&6; }
20985
20986 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
20987 USE_SYS_ENDIAN_H=yes
20988 BSWAP=bswap
20989 else
20990 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
20991 USE_SYS_ENDIAN_H=yes
20992 BSWAP=__swap
20993 else
20994 USE_SYS_ENDIAN_H=no
20995 fi
20996 fi
20997
20998 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
20999
21000 printf "%s\n" "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
21001
21002
21003 printf "%s\n" "#define bswap_16 ${BSWAP}16" >>confdefs.h
21004
21005
21006 printf "%s\n" "#define bswap_32 ${BSWAP}32" >>confdefs.h
21007
21008
21009 printf "%s\n" "#define bswap_64 ${BSWAP}64" >>confdefs.h
21010
21011 fi
21012 fi
21013
21014
21015
21016 DRIVER_NAME=ati
21017
21018
21019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
21020 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
21021 Please install that driver as well for mach64-based cards.
21022 " >&5
21023 printf "%s\n" "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
21024 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
21025 Please install that driver as well for mach64-based cards.
21026 " >&6;}
21027
21028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
21029 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
21030 Please install that driver as well for rage128-based cards.
21031 " >&5
21032 printf "%s\n" "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
21033 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
21034 Please install that driver as well for rage128-based cards.
21035 " >&6;}
21036
21037 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
21038
21039 cat >confcache <<\_ACEOF
21040 # This file is a shell script that caches the results of configure
21041 # tests run on this system so they can be shared between configure
21042 # scripts and configure runs, see configure's option --config-cache.
21043 # It is not useful on other systems. If it contains results you don't
21044 # want to keep, you may remove or edit it.
21045 #
21046 # config.status only pays attention to the cache file if you give it
21047 # the --recheck option to rerun configure.
21048 #
21049 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21050 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21051 # following values.
21052
21053 _ACEOF
21054
21055 # The following way of writing the cache mishandles newlines in values,
21056 # but we know of no workaround that is simple, portable, and efficient.
21057 # So, we kill variables containing newlines.
21058 # Ultrix sh set writes to stderr and can't be redirected directly,
21059 # and sets the high bit in the cache file unless we assign to the vars.
21060 (
21061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21062 eval ac_val=\$$ac_var
21063 case $ac_val in #(
21064 *${as_nl}*)
21065 case $ac_var in #(
21066 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21067 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21068 esac
21069 case $ac_var in #(
21070 _ | IFS | as_nl) ;; #(
21071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21072 *) { eval $ac_var=; unset $ac_var;} ;;
21073 esac ;;
21074 esac
21075 done
21076
21077 (set) 2>&1 |
21078 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21079 *${as_nl}ac_space=\ *)
21080 # `set' does not quote correctly, so add quotes: double-quote
21081 # substitution turns \\\\ into \\, and sed turns \\ into \.
21082 sed -n \
21083 "s/'/'\\\\''/g;
21084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21085 ;; #(
21086 *)
21087 # `set' quotes correctly as required by POSIX, so do not add quotes.
21088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21089 ;;
21090 esac |
21091 sort
21092 ) |
21093 sed '
21094 /^ac_cv_env_/b end
21095 t clear
21096 :clear
21097 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21098 t end
21099 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21100 :end' >>confcache
21101 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21102 if test -w "$cache_file"; then
21103 if test "x$cache_file" != "x/dev/null"; then
21104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21105 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21106 if test ! -f "$cache_file" || test -h "$cache_file"; then
21107 cat confcache >"$cache_file"
21108 else
21109 case $cache_file in #(
21110 */* | ?:*)
21111 mv -f confcache "$cache_file"$$ &&
21112 mv -f "$cache_file"$$ "$cache_file" ;; #(
21113 *)
21114 mv -f confcache "$cache_file" ;;
21115 esac
21116 fi
21117 fi
21118 else
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21120 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21121 fi
21122 fi
21123 rm -f confcache
21124
21125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21126 # Let make expand exec_prefix.
21127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21128
21129 DEFS=-DHAVE_CONFIG_H
21130
21131 ac_libobjs=
21132 ac_ltlibobjs=
21133 U=
21134 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21135 # 1. Remove the extension, and $U if already installed.
21136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21137 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21139 # will be set to the directory where LIBOBJS objects are built.
21140 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21141 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21142 done
21143 LIBOBJS=$ac_libobjs
21144
21145 LTLIBOBJS=$ac_ltlibobjs
21146
21147
21148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21149 printf %s "checking that generated files are newer than configure... " >&6; }
21150 if test -n "$am_sleep_pid"; then
21151 # Hide warnings about reused PIDs.
21152 wait $am_sleep_pid 2>/dev/null
21153 fi
21154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21155 printf "%s\n" "done" >&6; }
21156 if test -n "$EXEEXT"; then
21157 am__EXEEXT_TRUE=
21158 am__EXEEXT_FALSE='#'
21159 else
21160 am__EXEEXT_TRUE='#'
21161 am__EXEEXT_FALSE=
21162 fi
21163
21164 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21165 as_fn_error $? "conditional \"AMDEP\" was never defined.
21166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21167 fi
21168 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21169 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21171 fi
21172 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
21173 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
21174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21175 fi
21176 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
21177 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
21178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21179 fi
21180 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
21181 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
21182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21183 fi
21184 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
21185 as_fn_error $? "conditional \"GLAMOR\" was never defined.
21186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21187 fi
21188
21189 : "${CONFIG_STATUS=./config.status}"
21190 ac_write_fail=0
21191 ac_clean_files_save=$ac_clean_files
21192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21194 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21195 as_write_fail=0
21196 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21197 #! $SHELL
21198 # Generated by $as_me.
21199 # Run this file to recreate the current configuration.
21200 # Compiler output produced by configure, useful for debugging
21201 # configure, is in config.log if it exists.
21202
21203 debug=false
21204 ac_cs_recheck=false
21205 ac_cs_silent=false
21206
21207 SHELL=\${CONFIG_SHELL-$SHELL}
21208 export SHELL
21209 _ASEOF
21210 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21211 ## -------------------- ##
21212 ## M4sh Initialization. ##
21213 ## -------------------- ##
21214
21215 # Be more Bourne compatible
21216 DUALCASE=1; export DUALCASE # for MKS sh
21217 as_nop=:
21218 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21219 then :
21220 emulate sh
21221 NULLCMD=:
21222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21223 # is contrary to our usage. Disable this feature.
21224 alias -g '${1+"$@"}'='"$@"'
21225 setopt NO_GLOB_SUBST
21226 else $as_nop
21227 case `(set -o) 2>/dev/null` in #(
21228 *posix*) :
21229 set -o posix ;; #(
21230 *) :
21231 ;;
21232 esac
21233 fi
21234
21235
21236
21237 # Reset variables that may have inherited troublesome values from
21238 # the environment.
21239
21240 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21241 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21242 # side effect of setting IFS to empty, thus disabling word splitting.)
21243 # Quoting is to prevent editors from complaining about space-tab.
21244 as_nl='
21245 '
21246 export as_nl
21247 IFS=" "" $as_nl"
21248
21249 PS1='$ '
21250 PS2='> '
21251 PS4='+ '
21252
21253 # Ensure predictable behavior from utilities with locale-dependent output.
21254 LC_ALL=C
21255 export LC_ALL
21256 LANGUAGE=C
21257 export LANGUAGE
21258
21259 # We cannot yet rely on "unset" to work, but we need these variables
21260 # to be unset--not just set to an empty or harmless value--now, to
21261 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21262 # also avoids known problems related to "unset" and subshell syntax
21263 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21264 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21265 do eval test \${$as_var+y} \
21266 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21267 done
21268
21269 # Ensure that fds 0, 1, and 2 are open.
21270 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21271 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21272 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21273
21274 # The user is always right.
21275 if ${PATH_SEPARATOR+false} :; then
21276 PATH_SEPARATOR=:
21277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21279 PATH_SEPARATOR=';'
21280 }
21281 fi
21282
21283
21284 # Find who we are. Look in the path if we contain no directory separator.
21285 as_myself=
21286 case $0 in #((
21287 *[\\/]* ) as_myself=$0 ;;
21288 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21289 for as_dir in $PATH
21290 do
21291 IFS=$as_save_IFS
21292 case $as_dir in #(((
21293 '') as_dir=./ ;;
21294 */) ;;
21295 *) as_dir=$as_dir/ ;;
21296 esac
21297 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21298 done
21299 IFS=$as_save_IFS
21300
21301 ;;
21302 esac
21303 # We did not find ourselves, most probably we were run as `sh COMMAND'
21304 # in which case we are not to be found in the path.
21305 if test "x$as_myself" = x; then
21306 as_myself=$0
21307 fi
21308 if test ! -f "$as_myself"; then
21309 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21310 exit 1
21311 fi
21312
21313
21314
21315 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21316 # ----------------------------------------
21317 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21318 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21319 # script with STATUS, using 1 if that was 0.
21320 as_fn_error ()
21321 {
21322 as_status=$1; test $as_status -eq 0 && as_status=1
21323 if test "$4"; then
21324 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21326 fi
21327 printf "%s\n" "$as_me: error: $2" >&2
21328 as_fn_exit $as_status
21329 } # as_fn_error
21330
21331
21332
21333 # as_fn_set_status STATUS
21334 # -----------------------
21335 # Set $? to STATUS, without forking.
21336 as_fn_set_status ()
21337 {
21338 return $1
21339 } # as_fn_set_status
21340
21341 # as_fn_exit STATUS
21342 # -----------------
21343 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21344 as_fn_exit ()
21345 {
21346 set +e
21347 as_fn_set_status $1
21348 exit $1
21349 } # as_fn_exit
21350
21351 # as_fn_unset VAR
21352 # ---------------
21353 # Portably unset VAR.
21354 as_fn_unset ()
21355 {
21356 { eval $1=; unset $1;}
21357 }
21358 as_unset=as_fn_unset
21359
21360 # as_fn_append VAR VALUE
21361 # ----------------------
21362 # Append the text in VALUE to the end of the definition contained in VAR. Take
21363 # advantage of any shell optimizations that allow amortized linear growth over
21364 # repeated appends, instead of the typical quadratic growth present in naive
21365 # implementations.
21366 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21367 then :
21368 eval 'as_fn_append ()
21369 {
21370 eval $1+=\$2
21371 }'
21372 else $as_nop
21373 as_fn_append ()
21374 {
21375 eval $1=\$$1\$2
21376 }
21377 fi # as_fn_append
21378
21379 # as_fn_arith ARG...
21380 # ------------------
21381 # Perform arithmetic evaluation on the ARGs, and store the result in the
21382 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21383 # must be portable across $(()) and expr.
21384 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21385 then :
21386 eval 'as_fn_arith ()
21387 {
21388 as_val=$(( $* ))
21389 }'
21390 else $as_nop
21391 as_fn_arith ()
21392 {
21393 as_val=`expr "$@" || test $? -eq 1`
21394 }
21395 fi # as_fn_arith
21396
21397
21398 if expr a : '\(a\)' >/dev/null 2>&1 &&
21399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21400 as_expr=expr
21401 else
21402 as_expr=false
21403 fi
21404
21405 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21406 as_basename=basename
21407 else
21408 as_basename=false
21409 fi
21410
21411 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21412 as_dirname=dirname
21413 else
21414 as_dirname=false
21415 fi
21416
21417 as_me=`$as_basename -- "$0" ||
21418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21419 X"$0" : 'X\(//\)$' \| \
21420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21421 printf "%s\n" X/"$0" |
21422 sed '/^.*\/\([^/][^/]*\)\/*$/{
21423 s//\1/
21424 q
21425 }
21426 /^X\/\(\/\/\)$/{
21427 s//\1/
21428 q
21429 }
21430 /^X\/\(\/\).*/{
21431 s//\1/
21432 q
21433 }
21434 s/.*/./; q'`
21435
21436 # Avoid depending upon Character Ranges.
21437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21440 as_cr_digits='0123456789'
21441 as_cr_alnum=$as_cr_Letters$as_cr_digits
21442
21443
21444 # Determine whether it's possible to make 'echo' print without a newline.
21445 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21446 # for compatibility with existing Makefiles.
21447 ECHO_C= ECHO_N= ECHO_T=
21448 case `echo -n x` in #(((((
21449 -n*)
21450 case `echo 'xy\c'` in
21451 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21452 xy) ECHO_C='\c';;
21453 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21454 ECHO_T=' ';;
21455 esac;;
21456 *)
21457 ECHO_N='-n';;
21458 esac
21459
21460 # For backward compatibility with old third-party macros, we provide
21461 # the shell variables $as_echo and $as_echo_n. New code should use
21462 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21463 as_echo='printf %s\n'
21464 as_echo_n='printf %s'
21465
21466 rm -f conf$$ conf$$.exe conf$$.file
21467 if test -d conf$$.dir; then
21468 rm -f conf$$.dir/conf$$.file
21469 else
21470 rm -f conf$$.dir
21471 mkdir conf$$.dir 2>/dev/null
21472 fi
21473 if (echo >conf$$.file) 2>/dev/null; then
21474 if ln -s conf$$.file conf$$ 2>/dev/null; then
21475 as_ln_s='ln -s'
21476 # ... but there are two gotchas:
21477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21479 # In both cases, we have to default to `cp -pR'.
21480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21481 as_ln_s='cp -pR'
21482 elif ln conf$$.file conf$$ 2>/dev/null; then
21483 as_ln_s=ln
21484 else
21485 as_ln_s='cp -pR'
21486 fi
21487 else
21488 as_ln_s='cp -pR'
21489 fi
21490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21491 rmdir conf$$.dir 2>/dev/null
21492
21493
21494 # as_fn_mkdir_p
21495 # -------------
21496 # Create "$as_dir" as a directory, including parents if necessary.
21497 as_fn_mkdir_p ()
21498 {
21499
21500 case $as_dir in #(
21501 -*) as_dir=./$as_dir;;
21502 esac
21503 test -d "$as_dir" || eval $as_mkdir_p || {
21504 as_dirs=
21505 while :; do
21506 case $as_dir in #(
21507 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21508 *) as_qdir=$as_dir;;
21509 esac
21510 as_dirs="'$as_qdir' $as_dirs"
21511 as_dir=`$as_dirname -- "$as_dir" ||
21512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21513 X"$as_dir" : 'X\(//\)[^/]' \| \
21514 X"$as_dir" : 'X\(//\)$' \| \
21515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21516 printf "%s\n" X"$as_dir" |
21517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21518 s//\1/
21519 q
21520 }
21521 /^X\(\/\/\)[^/].*/{
21522 s//\1/
21523 q
21524 }
21525 /^X\(\/\/\)$/{
21526 s//\1/
21527 q
21528 }
21529 /^X\(\/\).*/{
21530 s//\1/
21531 q
21532 }
21533 s/.*/./; q'`
21534 test -d "$as_dir" && break
21535 done
21536 test -z "$as_dirs" || eval "mkdir $as_dirs"
21537 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21538
21539
21540 } # as_fn_mkdir_p
21541 if mkdir -p . 2>/dev/null; then
21542 as_mkdir_p='mkdir -p "$as_dir"'
21543 else
21544 test -d ./-p && rmdir ./-p
21545 as_mkdir_p=false
21546 fi
21547
21548
21549 # as_fn_executable_p FILE
21550 # -----------------------
21551 # Test if FILE is an executable regular file.
21552 as_fn_executable_p ()
21553 {
21554 test -f "$1" && test -x "$1"
21555 } # as_fn_executable_p
21556 as_test_x='test -x'
21557 as_executable_p=as_fn_executable_p
21558
21559 # Sed expression to map a string onto a valid CPP name.
21560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21561
21562 # Sed expression to map a string onto a valid variable name.
21563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21564
21565
21566 exec 6>&1
21567 ## ----------------------------------- ##
21568 ## Main body of $CONFIG_STATUS script. ##
21569 ## ----------------------------------- ##
21570 _ASEOF
21571 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21572
21573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21574 # Save the log message, to keep $0 and so on meaningful, and to
21575 # report actual input values of CONFIG_FILES etc. instead of their
21576 # values after options handling.
21577 ac_log="
21578 This file was extended by xf86-video-ati $as_me 22.0.0, which was
21579 generated by GNU Autoconf 2.71. Invocation command line was
21580
21581 CONFIG_FILES = $CONFIG_FILES
21582 CONFIG_HEADERS = $CONFIG_HEADERS
21583 CONFIG_LINKS = $CONFIG_LINKS
21584 CONFIG_COMMANDS = $CONFIG_COMMANDS
21585 $ $0 $@
21586
21587 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21588 "
21589
21590 _ACEOF
21591
21592 case $ac_config_files in *"
21593 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21594 esac
21595
21596 case $ac_config_headers in *"
21597 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21598 esac
21599
21600
21601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21602 # Files that config.status was made for.
21603 config_files="$ac_config_files"
21604 config_headers="$ac_config_headers"
21605 config_commands="$ac_config_commands"
21606
21607 _ACEOF
21608
21609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21610 ac_cs_usage="\
21611 \`$as_me' instantiates files and other configuration actions
21612 from templates according to the current configuration. Unless the files
21613 and actions are specified as TAGs, all are instantiated by default.
21614
21615 Usage: $0 [OPTION]... [TAG]...
21616
21617 -h, --help print this help, then exit
21618 -V, --version print version number and configuration settings, then exit
21619 --config print configuration, then exit
21620 -q, --quiet, --silent
21621 do not print progress messages
21622 -d, --debug don't remove temporary files
21623 --recheck update $as_me by reconfiguring in the same conditions
21624 --file=FILE[:TEMPLATE]
21625 instantiate the configuration file FILE
21626 --header=FILE[:TEMPLATE]
21627 instantiate the configuration header FILE
21628
21629 Configuration files:
21630 $config_files
21631
21632 Configuration headers:
21633 $config_headers
21634
21635 Configuration commands:
21636 $config_commands
21637
21638 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>."
21639
21640 _ACEOF
21641 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21642 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21644 ac_cs_config='$ac_cs_config_escaped'
21645 ac_cs_version="\\
21646 xf86-video-ati config.status 22.0.0
21647 configured by $0, generated by GNU Autoconf 2.71,
21648 with options \\"\$ac_cs_config\\"
21649
21650 Copyright (C) 2021 Free Software Foundation, Inc.
21651 This config.status script is free software; the Free Software Foundation
21652 gives unlimited permission to copy, distribute and modify it."
21653
21654 ac_pwd='$ac_pwd'
21655 srcdir='$srcdir'
21656 INSTALL='$INSTALL'
21657 MKDIR_P='$MKDIR_P'
21658 AWK='$AWK'
21659 test -n "\$AWK" || AWK=awk
21660 _ACEOF
21661
21662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21663 # The default lists apply if the user does not specify any file.
21664 ac_need_defaults=:
21665 while test $# != 0
21666 do
21667 case $1 in
21668 --*=?*)
21669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21671 ac_shift=:
21672 ;;
21673 --*=)
21674 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21675 ac_optarg=
21676 ac_shift=:
21677 ;;
21678 *)
21679 ac_option=$1
21680 ac_optarg=$2
21681 ac_shift=shift
21682 ;;
21683 esac
21684
21685 case $ac_option in
21686 # Handling of the options.
21687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21688 ac_cs_recheck=: ;;
21689 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21690 printf "%s\n" "$ac_cs_version"; exit ;;
21691 --config | --confi | --conf | --con | --co | --c )
21692 printf "%s\n" "$ac_cs_config"; exit ;;
21693 --debug | --debu | --deb | --de | --d | -d )
21694 debug=: ;;
21695 --file | --fil | --fi | --f )
21696 $ac_shift
21697 case $ac_optarg in
21698 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21699 '') as_fn_error $? "missing file argument" ;;
21700 esac
21701 as_fn_append CONFIG_FILES " '$ac_optarg'"
21702 ac_need_defaults=false;;
21703 --header | --heade | --head | --hea )
21704 $ac_shift
21705 case $ac_optarg in
21706 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21707 esac
21708 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21709 ac_need_defaults=false;;
21710 --he | --h)
21711 # Conflict between --help and --header
21712 as_fn_error $? "ambiguous option: \`$1'
21713 Try \`$0 --help' for more information.";;
21714 --help | --hel | -h )
21715 printf "%s\n" "$ac_cs_usage"; exit ;;
21716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21717 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21718 ac_cs_silent=: ;;
21719
21720 # This is an error.
21721 -*) as_fn_error $? "unrecognized option: \`$1'
21722 Try \`$0 --help' for more information." ;;
21723
21724 *) as_fn_append ac_config_targets " $1"
21725 ac_need_defaults=false ;;
21726
21727 esac
21728 shift
21729 done
21730
21731 ac_configure_extra_args=
21732
21733 if $ac_cs_silent; then
21734 exec 6>/dev/null
21735 ac_configure_extra_args="$ac_configure_extra_args --silent"
21736 fi
21737
21738 _ACEOF
21739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21740 if \$ac_cs_recheck; then
21741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21742 shift
21743 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21744 CONFIG_SHELL='$SHELL'
21745 export CONFIG_SHELL
21746 exec "\$@"
21747 fi
21748
21749 _ACEOF
21750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21751 exec 5>>config.log
21752 {
21753 echo
21754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21755 ## Running $as_me. ##
21756 _ASBOX
21757 printf "%s\n" "$ac_log"
21758 } >&5
21759
21760 _ACEOF
21761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21762 #
21763 # INIT-COMMANDS
21764 #
21765 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21766
21767
21768 # The HP-UX ksh and POSIX shell print the target directory to stdout
21769 # if CDPATH is set.
21770 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21771
21772 sed_quote_subst='$sed_quote_subst'
21773 double_quote_subst='$double_quote_subst'
21774 delay_variable_subst='$delay_variable_subst'
21775 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21776 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21777 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21778 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21779 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21780 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21781 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21782 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21783 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21784 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21785 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21786 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21787 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21788 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21789 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21790 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21791 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21792 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21793 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21794 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21795 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21796 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21797 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21798 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21799 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21800 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21801 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21802 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21803 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21804 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21805 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21806 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21807 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21808 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21809 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21810 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21811 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21812 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21813 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21814 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21815 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21816 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21817 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21818 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21819 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21820 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21821 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21822 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21823 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21824 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21825 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21826 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21827 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21828 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21829 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21830 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21831 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21832 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21833 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21834 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21835 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"`'
21836 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21837 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21838 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21839 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21840 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21841 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21842 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21843 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21844 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21845 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21846 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21847 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21848 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21849 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21850 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21851 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21852 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21853 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21854 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21855 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21856 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21857 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21858 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21859 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21860 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21861 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21862 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21863 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21864 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21865 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21866 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21867 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21868 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21869 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21870 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21871 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21872 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21873 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21874 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21875 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21876 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21877 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21878 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21879 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21880 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21881 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21882 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21883 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21884 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21885 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21886 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21887 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21888 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21889 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21890 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21891 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21892 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21893 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21894 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21895 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21896 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21897 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21898 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21899 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21900 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21901 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21902 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21903 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21904 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21905 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21906 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21907 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21908 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21909 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21910 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21911 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21912
21913 LTCC='$LTCC'
21914 LTCFLAGS='$LTCFLAGS'
21915 compiler='$compiler_DEFAULT'
21916
21917 # A function that is used when there is no print builtin or printf.
21918 func_fallback_echo ()
21919 {
21920 eval 'cat <<_LTECHO_EOF
21921 \$1
21922 _LTECHO_EOF'
21923 }
21924
21925 # Quote evaled strings.
21926 for var in SHELL \
21927 ECHO \
21928 PATH_SEPARATOR \
21929 SED \
21930 GREP \
21931 EGREP \
21932 FGREP \
21933 LD \
21934 NM \
21935 LN_S \
21936 lt_SP2NL \
21937 lt_NL2SP \
21938 reload_flag \
21939 FILECMD \
21940 OBJDUMP \
21941 deplibs_check_method \
21942 file_magic_cmd \
21943 file_magic_glob \
21944 want_nocaseglob \
21945 DLLTOOL \
21946 sharedlib_from_linklib_cmd \
21947 AR \
21948 archiver_list_spec \
21949 STRIP \
21950 RANLIB \
21951 CC \
21952 CFLAGS \
21953 compiler \
21954 lt_cv_sys_global_symbol_pipe \
21955 lt_cv_sys_global_symbol_to_cdecl \
21956 lt_cv_sys_global_symbol_to_import \
21957 lt_cv_sys_global_symbol_to_c_name_address \
21958 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21959 lt_cv_nm_interface \
21960 nm_file_list_spec \
21961 lt_cv_truncate_bin \
21962 lt_prog_compiler_no_builtin_flag \
21963 lt_prog_compiler_pic \
21964 lt_prog_compiler_wl \
21965 lt_prog_compiler_static \
21966 lt_cv_prog_compiler_c_o \
21967 need_locks \
21968 MANIFEST_TOOL \
21969 DSYMUTIL \
21970 NMEDIT \
21971 LIPO \
21972 OTOOL \
21973 OTOOL64 \
21974 shrext_cmds \
21975 export_dynamic_flag_spec \
21976 whole_archive_flag_spec \
21977 compiler_needs_object \
21978 with_gnu_ld \
21979 allow_undefined_flag \
21980 no_undefined_flag \
21981 hardcode_libdir_flag_spec \
21982 hardcode_libdir_separator \
21983 exclude_expsyms \
21984 include_expsyms \
21985 file_list_spec \
21986 variables_saved_for_relink \
21987 libname_spec \
21988 library_names_spec \
21989 soname_spec \
21990 install_override_mode \
21991 finish_eval \
21992 old_striplib \
21993 striplib; do
21994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21995 *[\\\\\\\`\\"\\\$]*)
21996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21997 ;;
21998 *)
21999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22000 ;;
22001 esac
22002 done
22003
22004 # Double-quote double-evaled strings.
22005 for var in reload_cmds \
22006 old_postinstall_cmds \
22007 old_postuninstall_cmds \
22008 old_archive_cmds \
22009 extract_expsyms_cmds \
22010 old_archive_from_new_cmds \
22011 old_archive_from_expsyms_cmds \
22012 archive_cmds \
22013 archive_expsym_cmds \
22014 module_cmds \
22015 module_expsym_cmds \
22016 export_symbols_cmds \
22017 prelink_cmds \
22018 postlink_cmds \
22019 postinstall_cmds \
22020 postuninstall_cmds \
22021 finish_cmds \
22022 sys_lib_search_path_spec \
22023 configure_time_dlsearch_path \
22024 configure_time_lt_sys_library_path; do
22025 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22026 *[\\\\\\\`\\"\\\$]*)
22027 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22028 ;;
22029 *)
22030 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22031 ;;
22032 esac
22033 done
22034
22035 ac_aux_dir='$ac_aux_dir'
22036
22037 # See if we are running on zsh, and set the options that allow our
22038 # commands through without removal of \ escapes INIT.
22039 if test -n "\${ZSH_VERSION+set}"; then
22040 setopt NO_GLOB_SUBST
22041 fi
22042
22043
22044 PACKAGE='$PACKAGE'
22045 VERSION='$VERSION'
22046 RM='$RM'
22047 ofile='$ofile'
22048
22049
22050
22051
22052 _ACEOF
22053
22054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22055
22056 # Handling of arguments.
22057 for ac_config_target in $ac_config_targets
22058 do
22059 case $ac_config_target in
22060 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22062 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22063 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22064 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22065 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22066 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
22067
22068 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22069 esac
22070 done
22071
22072
22073 # If the user did not use the arguments to specify the items to instantiate,
22074 # then the envvar interface is used. Set only those that are not.
22075 # We use the long form for the default assignment because of an extremely
22076 # bizarre bug on SunOS 4.1.3.
22077 if $ac_need_defaults; then
22078 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22079 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22080 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22081 fi
22082
22083 # Have a temporary directory for convenience. Make it in the build tree
22084 # simply because there is no reason against having it here, and in addition,
22085 # creating and moving files from /tmp can sometimes cause problems.
22086 # Hook for its removal unless debugging.
22087 # Note that there is a small window in which the directory will not be cleaned:
22088 # after its creation but before its name has been assigned to `$tmp'.
22089 $debug ||
22090 {
22091 tmp= ac_tmp=
22092 trap 'exit_status=$?
22093 : "${ac_tmp:=$tmp}"
22094 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22095 ' 0
22096 trap 'as_fn_exit 1' 1 2 13 15
22097 }
22098 # Create a (secure) tmp directory for tmp files.
22099
22100 {
22101 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22102 test -d "$tmp"
22103 } ||
22104 {
22105 tmp=./conf$$-$RANDOM
22106 (umask 077 && mkdir "$tmp")
22107 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22108 ac_tmp=$tmp
22109
22110 # Set up the scripts for CONFIG_FILES section.
22111 # No need to generate them if there are no CONFIG_FILES.
22112 # This happens for instance with `./config.status config.h'.
22113 if test -n "$CONFIG_FILES"; then
22114
22115
22116 ac_cr=`echo X | tr X '\015'`
22117 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22118 # But we know of no other shell where ac_cr would be empty at this
22119 # point, so we can use a bashism as a fallback.
22120 if test "x$ac_cr" = x; then
22121 eval ac_cr=\$\'\\r\'
22122 fi
22123 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22124 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22125 ac_cs_awk_cr='\\r'
22126 else
22127 ac_cs_awk_cr=$ac_cr
22128 fi
22129
22130 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22131 _ACEOF
22132
22133
22134 {
22135 echo "cat >conf$$subs.awk <<_ACEOF" &&
22136 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22137 echo "_ACEOF"
22138 } >conf$$subs.sh ||
22139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22140 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22141 ac_delim='%!_!# '
22142 for ac_last_try in false false false false false :; do
22143 . ./conf$$subs.sh ||
22144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22145
22146 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22147 if test $ac_delim_n = $ac_delim_num; then
22148 break
22149 elif $ac_last_try; then
22150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22151 else
22152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22153 fi
22154 done
22155 rm -f conf$$subs.sh
22156
22157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22158 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22159 _ACEOF
22160 sed -n '
22161 h
22162 s/^/S["/; s/!.*/"]=/
22163 p
22164 g
22165 s/^[^!]*!//
22166 :repl
22167 t repl
22168 s/'"$ac_delim"'$//
22169 t delim
22170 :nl
22171 h
22172 s/\(.\{148\}\)..*/\1/
22173 t more1
22174 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22175 p
22176 n
22177 b repl
22178 :more1
22179 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22180 p
22181 g
22182 s/.\{148\}//
22183 t nl
22184 :delim
22185 h
22186 s/\(.\{148\}\)..*/\1/
22187 t more2
22188 s/["\\]/\\&/g; s/^/"/; s/$/"/
22189 p
22190 b
22191 :more2
22192 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22193 p
22194 g
22195 s/.\{148\}//
22196 t delim
22197 ' <conf$$subs.awk | sed '
22198 /^[^""]/{
22199 N
22200 s/\n//
22201 }
22202 ' >>$CONFIG_STATUS || ac_write_fail=1
22203 rm -f conf$$subs.awk
22204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22205 _ACAWK
22206 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22207 for (key in S) S_is_set[key] = 1
22208 FS = ""
22209
22210 }
22211 {
22212 line = $ 0
22213 nfields = split(line, field, "@")
22214 substed = 0
22215 len = length(field[1])
22216 for (i = 2; i < nfields; i++) {
22217 key = field[i]
22218 keylen = length(key)
22219 if (S_is_set[key]) {
22220 value = S[key]
22221 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22222 len += length(value) + length(field[++i])
22223 substed = 1
22224 } else
22225 len += 1 + keylen
22226 }
22227
22228 print line
22229 }
22230
22231 _ACAWK
22232 _ACEOF
22233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22234 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22235 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22236 else
22237 cat
22238 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22239 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22240 _ACEOF
22241
22242 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22243 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22244 # trailing colons and then remove the whole line if VPATH becomes empty
22245 # (actually we leave an empty line to preserve line numbers).
22246 if test "x$srcdir" = x.; then
22247 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22248 h
22249 s///
22250 s/^/:/
22251 s/[ ]*$/:/
22252 s/:\$(srcdir):/:/g
22253 s/:\${srcdir}:/:/g
22254 s/:@srcdir@:/:/g
22255 s/^:*//
22256 s/:*$//
22257 x
22258 s/\(=[ ]*\).*/\1/
22259 G
22260 s/\n//
22261 s/^[^=]*=[ ]*$//
22262 }'
22263 fi
22264
22265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22266 fi # test -n "$CONFIG_FILES"
22267
22268 # Set up the scripts for CONFIG_HEADERS section.
22269 # No need to generate them if there are no CONFIG_HEADERS.
22270 # This happens for instance with `./config.status Makefile'.
22271 if test -n "$CONFIG_HEADERS"; then
22272 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22273 BEGIN {
22274 _ACEOF
22275
22276 # Transform confdefs.h into an awk script `defines.awk', embedded as
22277 # here-document in config.status, that substitutes the proper values into
22278 # config.h.in to produce config.h.
22279
22280 # Create a delimiter string that does not exist in confdefs.h, to ease
22281 # handling of long lines.
22282 ac_delim='%!_!# '
22283 for ac_last_try in false false :; do
22284 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22285 if test -z "$ac_tt"; then
22286 break
22287 elif $ac_last_try; then
22288 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22289 else
22290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22291 fi
22292 done
22293
22294 # For the awk script, D is an array of macro values keyed by name,
22295 # likewise P contains macro parameters if any. Preserve backslash
22296 # newline sequences.
22297
22298 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22299 sed -n '
22300 s/.\{148\}/&'"$ac_delim"'/g
22301 t rset
22302 :rset
22303 s/^[ ]*#[ ]*define[ ][ ]*/ /
22304 t def
22305 d
22306 :def
22307 s/\\$//
22308 t bsnl
22309 s/["\\]/\\&/g
22310 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22311 D["\1"]=" \3"/p
22312 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22313 d
22314 :bsnl
22315 s/["\\]/\\&/g
22316 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22317 D["\1"]=" \3\\\\\\n"\\/p
22318 t cont
22319 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22320 t cont
22321 d
22322 :cont
22323 n
22324 s/.\{148\}/&'"$ac_delim"'/g
22325 t clear
22326 :clear
22327 s/\\$//
22328 t bsnlc
22329 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22330 d
22331 :bsnlc
22332 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22333 b cont
22334 ' <confdefs.h | sed '
22335 s/'"$ac_delim"'/"\\\
22336 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22337
22338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22339 for (key in D) D_is_set[key] = 1
22340 FS = ""
22341 }
22342 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22343 line = \$ 0
22344 split(line, arg, " ")
22345 if (arg[1] == "#") {
22346 defundef = arg[2]
22347 mac1 = arg[3]
22348 } else {
22349 defundef = substr(arg[1], 2)
22350 mac1 = arg[2]
22351 }
22352 split(mac1, mac2, "(") #)
22353 macro = mac2[1]
22354 prefix = substr(line, 1, index(line, defundef) - 1)
22355 if (D_is_set[macro]) {
22356 # Preserve the white space surrounding the "#".
22357 print prefix "define", macro P[macro] D[macro]
22358 next
22359 } else {
22360 # Replace #undef with comments. This is necessary, for example,
22361 # in the case of _POSIX_SOURCE, which is predefined and required
22362 # on some systems where configure will not decide to define it.
22363 if (defundef == "undef") {
22364 print "/*", prefix defundef, macro, "*/"
22365 next
22366 }
22367 }
22368 }
22369 { print }
22370 _ACAWK
22371 _ACEOF
22372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22373 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22374 fi # test -n "$CONFIG_HEADERS"
22375
22376
22377 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22378 shift
22379 for ac_tag
22380 do
22381 case $ac_tag in
22382 :[FHLC]) ac_mode=$ac_tag; continue;;
22383 esac
22384 case $ac_mode$ac_tag in
22385 :[FHL]*:*);;
22386 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22387 :[FH]-) ac_tag=-:-;;
22388 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22389 esac
22390 ac_save_IFS=$IFS
22391 IFS=:
22392 set x $ac_tag
22393 IFS=$ac_save_IFS
22394 shift
22395 ac_file=$1
22396 shift
22397
22398 case $ac_mode in
22399 :L) ac_source=$1;;
22400 :[FH])
22401 ac_file_inputs=
22402 for ac_f
22403 do
22404 case $ac_f in
22405 -) ac_f="$ac_tmp/stdin";;
22406 *) # Look for the file first in the build tree, then in the source tree
22407 # (if the path is not absolute). The absolute path cannot be DOS-style,
22408 # because $ac_f cannot contain `:'.
22409 test -f "$ac_f" ||
22410 case $ac_f in
22411 [\\/$]*) false;;
22412 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22413 esac ||
22414 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22415 esac
22416 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22417 as_fn_append ac_file_inputs " '$ac_f'"
22418 done
22419
22420 # Let's still pretend it is `configure' which instantiates (i.e., don't
22421 # use $as_me), people would be surprised to read:
22422 # /* config.h. Generated by config.status. */
22423 configure_input='Generated from '`
22424 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22425 `' by configure.'
22426 if test x"$ac_file" != x-; then
22427 configure_input="$ac_file. $configure_input"
22428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22429 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22430 fi
22431 # Neutralize special characters interpreted by sed in replacement strings.
22432 case $configure_input in #(
22433 *\&* | *\|* | *\\* )
22434 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22435 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22436 *) ac_sed_conf_input=$configure_input;;
22437 esac
22438
22439 case $ac_tag in
22440 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22442 esac
22443 ;;
22444 esac
22445
22446 ac_dir=`$as_dirname -- "$ac_file" ||
22447 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22448 X"$ac_file" : 'X\(//\)[^/]' \| \
22449 X"$ac_file" : 'X\(//\)$' \| \
22450 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22451 printf "%s\n" X"$ac_file" |
22452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22453 s//\1/
22454 q
22455 }
22456 /^X\(\/\/\)[^/].*/{
22457 s//\1/
22458 q
22459 }
22460 /^X\(\/\/\)$/{
22461 s//\1/
22462 q
22463 }
22464 /^X\(\/\).*/{
22465 s//\1/
22466 q
22467 }
22468 s/.*/./; q'`
22469 as_dir="$ac_dir"; as_fn_mkdir_p
22470 ac_builddir=.
22471
22472 case "$ac_dir" in
22473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22474 *)
22475 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22476 # A ".." for each directory in $ac_dir_suffix.
22477 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22478 case $ac_top_builddir_sub in
22479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22481 esac ;;
22482 esac
22483 ac_abs_top_builddir=$ac_pwd
22484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22485 # for backward compatibility:
22486 ac_top_builddir=$ac_top_build_prefix
22487
22488 case $srcdir in
22489 .) # We are building in place.
22490 ac_srcdir=.
22491 ac_top_srcdir=$ac_top_builddir_sub
22492 ac_abs_top_srcdir=$ac_pwd ;;
22493 [\\/]* | ?:[\\/]* ) # Absolute name.
22494 ac_srcdir=$srcdir$ac_dir_suffix;
22495 ac_top_srcdir=$srcdir
22496 ac_abs_top_srcdir=$srcdir ;;
22497 *) # Relative name.
22498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22499 ac_top_srcdir=$ac_top_build_prefix$srcdir
22500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22501 esac
22502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22503
22504
22505 case $ac_mode in
22506 :F)
22507 #
22508 # CONFIG_FILE
22509 #
22510
22511 case $INSTALL in
22512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22513 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22514 esac
22515 ac_MKDIR_P=$MKDIR_P
22516 case $MKDIR_P in
22517 [\\/$]* | ?:[\\/]* ) ;;
22518 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22519 esac
22520 _ACEOF
22521
22522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22523 # If the template does not know about datarootdir, expand it.
22524 # FIXME: This hack should be removed a few years after 2.60.
22525 ac_datarootdir_hack=; ac_datarootdir_seen=
22526 ac_sed_dataroot='
22527 /datarootdir/ {
22528 p
22529 q
22530 }
22531 /@datadir@/p
22532 /@docdir@/p
22533 /@infodir@/p
22534 /@localedir@/p
22535 /@mandir@/p'
22536 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22537 *datarootdir*) ac_datarootdir_seen=yes;;
22538 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22540 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22541 _ACEOF
22542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22543 ac_datarootdir_hack='
22544 s&@datadir@&$datadir&g
22545 s&@docdir@&$docdir&g
22546 s&@infodir@&$infodir&g
22547 s&@localedir@&$localedir&g
22548 s&@mandir@&$mandir&g
22549 s&\\\${datarootdir}&$datarootdir&g' ;;
22550 esac
22551 _ACEOF
22552
22553 # Neutralize VPATH when `$srcdir' = `.'.
22554 # Shell code in configure.ac might set extrasub.
22555 # FIXME: do we really want to maintain this feature?
22556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22557 ac_sed_extra="$ac_vpsub
22558 $extrasub
22559 _ACEOF
22560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22561 :t
22562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22563 s|@configure_input@|$ac_sed_conf_input|;t t
22564 s&@top_builddir@&$ac_top_builddir_sub&;t t
22565 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22566 s&@srcdir@&$ac_srcdir&;t t
22567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22568 s&@top_srcdir@&$ac_top_srcdir&;t t
22569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22570 s&@builddir@&$ac_builddir&;t t
22571 s&@abs_builddir@&$ac_abs_builddir&;t t
22572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22573 s&@INSTALL@&$ac_INSTALL&;t t
22574 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22575 $ac_datarootdir_hack
22576 "
22577 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22578 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22579
22580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22581 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22583 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22585 which seems to be undefined. Please make sure it is defined" >&5
22586 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22587 which seems to be undefined. Please make sure it is defined" >&2;}
22588
22589 rm -f "$ac_tmp/stdin"
22590 case $ac_file in
22591 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22592 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22593 esac \
22594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22595 ;;
22596 :H)
22597 #
22598 # CONFIG_HEADER
22599 #
22600 if test x"$ac_file" != x-; then
22601 {
22602 printf "%s\n" "/* $configure_input */" >&1 \
22603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22604 } >"$ac_tmp/config.h" \
22605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22606 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22608 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22609 else
22610 rm -f "$ac_file"
22611 mv "$ac_tmp/config.h" "$ac_file" \
22612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22613 fi
22614 else
22615 printf "%s\n" "/* $configure_input */" >&1 \
22616 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22617 || as_fn_error $? "could not create -" "$LINENO" 5
22618 fi
22619 # Compute "$ac_file"'s index in $config_headers.
22620 _am_arg="$ac_file"
22621 _am_stamp_count=1
22622 for _am_header in $config_headers :; do
22623 case $_am_header in
22624 $_am_arg | $_am_arg:* )
22625 break ;;
22626 * )
22627 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22628 esac
22629 done
22630 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22631 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632 X"$_am_arg" : 'X\(//\)[^/]' \| \
22633 X"$_am_arg" : 'X\(//\)$' \| \
22634 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22635 printf "%s\n" X"$_am_arg" |
22636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22637 s//\1/
22638 q
22639 }
22640 /^X\(\/\/\)[^/].*/{
22641 s//\1/
22642 q
22643 }
22644 /^X\(\/\/\)$/{
22645 s//\1/
22646 q
22647 }
22648 /^X\(\/\).*/{
22649 s//\1/
22650 q
22651 }
22652 s/.*/./; q'`/stamp-h$_am_stamp_count
22653 ;;
22654
22655 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22656 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22657 ;;
22658 esac
22659
22660
22661 case $ac_file$ac_mode in
22662 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22663 # Older Autoconf quotes --file arguments for eval, but not when files
22664 # are listed without --file. Let's play safe and only enable the eval
22665 # if we detect the quoting.
22666 # TODO: see whether this extra hack can be removed once we start
22667 # requiring Autoconf 2.70 or later.
22668 case $CONFIG_FILES in #(
22669 *\'*) :
22670 eval set x "$CONFIG_FILES" ;; #(
22671 *) :
22672 set x $CONFIG_FILES ;; #(
22673 *) :
22674 ;;
22675 esac
22676 shift
22677 # Used to flag and report bootstrapping failures.
22678 am_rc=0
22679 for am_mf
22680 do
22681 # Strip MF so we end up with the name of the file.
22682 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22683 # Check whether this is an Automake generated Makefile which includes
22684 # dependency-tracking related rules and includes.
22685 # Grep'ing the whole file directly is not great: AIX grep has a line
22686 # limit of 2048, but all sed's we know have understand at least 4000.
22687 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22688 || continue
22689 am_dirpart=`$as_dirname -- "$am_mf" ||
22690 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22691 X"$am_mf" : 'X\(//\)[^/]' \| \
22692 X"$am_mf" : 'X\(//\)$' \| \
22693 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22694 printf "%s\n" X"$am_mf" |
22695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22696 s//\1/
22697 q
22698 }
22699 /^X\(\/\/\)[^/].*/{
22700 s//\1/
22701 q
22702 }
22703 /^X\(\/\/\)$/{
22704 s//\1/
22705 q
22706 }
22707 /^X\(\/\).*/{
22708 s//\1/
22709 q
22710 }
22711 s/.*/./; q'`
22712 am_filepart=`$as_basename -- "$am_mf" ||
22713 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22714 X"$am_mf" : 'X\(//\)$' \| \
22715 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22716 printf "%s\n" X/"$am_mf" |
22717 sed '/^.*\/\([^/][^/]*\)\/*$/{
22718 s//\1/
22719 q
22720 }
22721 /^X\/\(\/\/\)$/{
22722 s//\1/
22723 q
22724 }
22725 /^X\/\(\/\).*/{
22726 s//\1/
22727 q
22728 }
22729 s/.*/./; q'`
22730 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22731 && sed -e '/# am--include-marker/d' "$am_filepart" \
22732 | $MAKE -f - am--depfiles" >&5
22733 (cd "$am_dirpart" \
22734 && sed -e '/# am--include-marker/d' "$am_filepart" \
22735 | $MAKE -f - am--depfiles) >&5 2>&5
22736 ac_status=$?
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } || am_rc=$?
22739 done
22740 if test $am_rc -ne 0; then
22741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22742 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22743 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22744 for automatic dependency tracking. If GNU make was not used, consider
22745 re-running the configure script with MAKE=\"gmake\" (or whatever is
22746 necessary). You can also try re-running configure with the
22747 '--disable-dependency-tracking' option to at least be able to build
22748 the package (albeit without support for automatic dependency tracking).
22749 See \`config.log' for more details" "$LINENO" 5; }
22750 fi
22751 { am_dirpart=; unset am_dirpart;}
22752 { am_filepart=; unset am_filepart;}
22753 { am_mf=; unset am_mf;}
22754 { am_rc=; unset am_rc;}
22755 rm -f conftest-deps.mk
22756 }
22757 ;;
22758 "libtool":C)
22759
22760 # See if we are running on zsh, and set the options that allow our
22761 # commands through without removal of \ escapes.
22762 if test -n "${ZSH_VERSION+set}"; then
22763 setopt NO_GLOB_SUBST
22764 fi
22765
22766 cfgfile=${ofile}T
22767 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22768 $RM "$cfgfile"
22769
22770 cat <<_LT_EOF >> "$cfgfile"
22771 #! $SHELL
22772 # Generated automatically by $as_me ($PACKAGE) $VERSION
22773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22774 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22775
22776 # Provide generalized library-building support services.
22777 # Written by Gordon Matzigkeit, 1996
22778
22779 # Copyright (C) 2014 Free Software Foundation, Inc.
22780 # This is free software; see the source for copying conditions. There is NO
22781 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22782
22783 # GNU Libtool is free software; you can redistribute it and/or modify
22784 # it under the terms of the GNU General Public License as published by
22785 # the Free Software Foundation; either version 2 of of the License, or
22786 # (at your option) any later version.
22787 #
22788 # As a special exception to the GNU General Public License, if you
22789 # distribute this file as part of a program or library that is built
22790 # using GNU Libtool, you may include this file under the same
22791 # distribution terms that you use for the rest of that program.
22792 #
22793 # GNU Libtool is distributed in the hope that it will be useful, but
22794 # WITHOUT ANY WARRANTY; without even the implied warranty of
22795 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22796 # GNU General Public License for more details.
22797 #
22798 # You should have received a copy of the GNU General Public License
22799 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22800
22801
22802 # The names of the tagged configurations supported by this script.
22803 available_tags=''
22804
22805 # Configured defaults for sys_lib_dlsearch_path munging.
22806 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22807
22808 # ### BEGIN LIBTOOL CONFIG
22809
22810 # Whether or not to build static libraries.
22811 build_old_libs=$enable_static
22812
22813 # Which release of libtool.m4 was used?
22814 macro_version=$macro_version
22815 macro_revision=$macro_revision
22816
22817 # Whether or not to build shared libraries.
22818 build_libtool_libs=$enable_shared
22819
22820 # What type of objects to build.
22821 pic_mode=$pic_mode
22822
22823 # Whether or not to optimize for fast installation.
22824 fast_install=$enable_fast_install
22825
22826 # Shared archive member basename,for filename based shared library versioning on AIX.
22827 shared_archive_member_spec=$shared_archive_member_spec
22828
22829 # Shell to use when invoking shell scripts.
22830 SHELL=$lt_SHELL
22831
22832 # An echo program that protects backslashes.
22833 ECHO=$lt_ECHO
22834
22835 # The PATH separator for the build system.
22836 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22837
22838 # The host system.
22839 host_alias=$host_alias
22840 host=$host
22841 host_os=$host_os
22842
22843 # The build system.
22844 build_alias=$build_alias
22845 build=$build
22846 build_os=$build_os
22847
22848 # A sed program that does not truncate output.
22849 SED=$lt_SED
22850
22851 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22852 Xsed="\$SED -e 1s/^X//"
22853
22854 # A grep program that handles long lines.
22855 GREP=$lt_GREP
22856
22857 # An ERE matcher.
22858 EGREP=$lt_EGREP
22859
22860 # A literal string matcher.
22861 FGREP=$lt_FGREP
22862
22863 # A BSD- or MS-compatible name lister.
22864 NM=$lt_NM
22865
22866 # Whether we need soft or hard links.
22867 LN_S=$lt_LN_S
22868
22869 # What is the maximum length of a command?
22870 max_cmd_len=$max_cmd_len
22871
22872 # Object file suffix (normally "o").
22873 objext=$ac_objext
22874
22875 # Executable file suffix (normally "").
22876 exeext=$exeext
22877
22878 # whether the shell understands "unset".
22879 lt_unset=$lt_unset
22880
22881 # turn spaces into newlines.
22882 SP2NL=$lt_lt_SP2NL
22883
22884 # turn newlines into spaces.
22885 NL2SP=$lt_lt_NL2SP
22886
22887 # convert \$build file names to \$host format.
22888 to_host_file_cmd=$lt_cv_to_host_file_cmd
22889
22890 # convert \$build files to toolchain format.
22891 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22892
22893 # A file(cmd) program that detects file types.
22894 FILECMD=$lt_FILECMD
22895
22896 # An object symbol dumper.
22897 OBJDUMP=$lt_OBJDUMP
22898
22899 # Method to check whether dependent libraries are shared objects.
22900 deplibs_check_method=$lt_deplibs_check_method
22901
22902 # Command to use when deplibs_check_method = "file_magic".
22903 file_magic_cmd=$lt_file_magic_cmd
22904
22905 # How to find potential files when deplibs_check_method = "file_magic".
22906 file_magic_glob=$lt_file_magic_glob
22907
22908 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22909 want_nocaseglob=$lt_want_nocaseglob
22910
22911 # DLL creation program.
22912 DLLTOOL=$lt_DLLTOOL
22913
22914 # Command to associate shared and link libraries.
22915 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22916
22917 # The archiver.
22918 AR=$lt_AR
22919
22920 # Flags to create an archive (by configure).
22921 lt_ar_flags=$lt_ar_flags
22922
22923 # Flags to create an archive.
22924 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22925
22926 # How to feed a file listing to the archiver.
22927 archiver_list_spec=$lt_archiver_list_spec
22928
22929 # A symbol stripping program.
22930 STRIP=$lt_STRIP
22931
22932 # Commands used to install an old-style archive.
22933 RANLIB=$lt_RANLIB
22934 old_postinstall_cmds=$lt_old_postinstall_cmds
22935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22936
22937 # Whether to use a lock for old archive extraction.
22938 lock_old_archive_extraction=$lock_old_archive_extraction
22939
22940 # A C compiler.
22941 LTCC=$lt_CC
22942
22943 # LTCC compiler flags.
22944 LTCFLAGS=$lt_CFLAGS
22945
22946 # Take the output of nm and produce a listing of raw symbols and C names.
22947 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22948
22949 # Transform the output of nm in a proper C declaration.
22950 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22951
22952 # Transform the output of nm into a list of symbols to manually relocate.
22953 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22954
22955 # Transform the output of nm in a C name address pair.
22956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22957
22958 # Transform the output of nm in a C name address pair when lib prefix is needed.
22959 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22960
22961 # The name lister interface.
22962 nm_interface=$lt_lt_cv_nm_interface
22963
22964 # Specify filename containing input files for \$NM.
22965 nm_file_list_spec=$lt_nm_file_list_spec
22966
22967 # The root where to search for dependent libraries,and where our libraries should be installed.
22968 lt_sysroot=$lt_sysroot
22969
22970 # Command to truncate a binary pipe.
22971 lt_truncate_bin=$lt_lt_cv_truncate_bin
22972
22973 # The name of the directory that contains temporary libtool files.
22974 objdir=$objdir
22975
22976 # Used to examine libraries when file_magic_cmd begins with "file".
22977 MAGIC_CMD=$MAGIC_CMD
22978
22979 # Must we lock files when doing compilation?
22980 need_locks=$lt_need_locks
22981
22982 # Manifest tool.
22983 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22984
22985 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22986 DSYMUTIL=$lt_DSYMUTIL
22987
22988 # Tool to change global to local symbols on Mac OS X.
22989 NMEDIT=$lt_NMEDIT
22990
22991 # Tool to manipulate fat objects and archives on Mac OS X.
22992 LIPO=$lt_LIPO
22993
22994 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22995 OTOOL=$lt_OTOOL
22996
22997 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22998 OTOOL64=$lt_OTOOL64
22999
23000 # Old archive suffix (normally "a").
23001 libext=$libext
23002
23003 # Shared library suffix (normally ".so").
23004 shrext_cmds=$lt_shrext_cmds
23005
23006 # The commands to extract the exported symbol list from a shared archive.
23007 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23008
23009 # Variables whose values should be saved in libtool wrapper scripts and
23010 # restored at link time.
23011 variables_saved_for_relink=$lt_variables_saved_for_relink
23012
23013 # Do we need the "lib" prefix for modules?
23014 need_lib_prefix=$need_lib_prefix
23015
23016 # Do we need a version for libraries?
23017 need_version=$need_version
23018
23019 # Library versioning type.
23020 version_type=$version_type
23021
23022 # Shared library runtime path variable.
23023 runpath_var=$runpath_var
23024
23025 # Shared library path variable.
23026 shlibpath_var=$shlibpath_var
23027
23028 # Is shlibpath searched before the hard-coded library search path?
23029 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23030
23031 # Format of library name prefix.
23032 libname_spec=$lt_libname_spec
23033
23034 # List of archive names. First name is the real one, the rest are links.
23035 # The last name is the one that the linker finds with -lNAME
23036 library_names_spec=$lt_library_names_spec
23037
23038 # The coded name of the library, if different from the real name.
23039 soname_spec=$lt_soname_spec
23040
23041 # Permission mode override for installation of shared libraries.
23042 install_override_mode=$lt_install_override_mode
23043
23044 # Command to use after installation of a shared archive.
23045 postinstall_cmds=$lt_postinstall_cmds
23046
23047 # Command to use after uninstallation of a shared archive.
23048 postuninstall_cmds=$lt_postuninstall_cmds
23049
23050 # Commands used to finish a libtool library installation in a directory.
23051 finish_cmds=$lt_finish_cmds
23052
23053 # As "finish_cmds", except a single script fragment to be evaled but
23054 # not shown.
23055 finish_eval=$lt_finish_eval
23056
23057 # Whether we should hardcode library paths into libraries.
23058 hardcode_into_libs=$hardcode_into_libs
23059
23060 # Compile-time system search path for libraries.
23061 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23062
23063 # Detected run-time system search path for libraries.
23064 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23065
23066 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23067 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23068
23069 # Whether dlopen is supported.
23070 dlopen_support=$enable_dlopen
23071
23072 # Whether dlopen of programs is supported.
23073 dlopen_self=$enable_dlopen_self
23074
23075 # Whether dlopen of statically linked programs is supported.
23076 dlopen_self_static=$enable_dlopen_self_static
23077
23078 # Commands to strip libraries.
23079 old_striplib=$lt_old_striplib
23080 striplib=$lt_striplib
23081
23082
23083 # The linker used to build libraries.
23084 LD=$lt_LD
23085
23086 # How to create reloadable object files.
23087 reload_flag=$lt_reload_flag
23088 reload_cmds=$lt_reload_cmds
23089
23090 # Commands used to build an old-style archive.
23091 old_archive_cmds=$lt_old_archive_cmds
23092
23093 # A language specific compiler.
23094 CC=$lt_compiler
23095
23096 # Is the compiler the GNU compiler?
23097 with_gcc=$GCC
23098
23099 # Compiler flag to turn off builtin functions.
23100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23101
23102 # Additional compiler flags for building library objects.
23103 pic_flag=$lt_lt_prog_compiler_pic
23104
23105 # How to pass a linker flag through the compiler.
23106 wl=$lt_lt_prog_compiler_wl
23107
23108 # Compiler flag to prevent dynamic linking.
23109 link_static_flag=$lt_lt_prog_compiler_static
23110
23111 # Does compiler simultaneously support -c and -o options?
23112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23113
23114 # Whether or not to add -lc for building shared libraries.
23115 build_libtool_need_lc=$archive_cmds_need_lc
23116
23117 # Whether or not to disallow shared libs when runtime libs are static.
23118 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23119
23120 # Compiler flag to allow reflexive dlopens.
23121 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23122
23123 # Compiler flag to generate shared objects directly from archives.
23124 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23125
23126 # Whether the compiler copes with passing no objects directly.
23127 compiler_needs_object=$lt_compiler_needs_object
23128
23129 # Create an old-style archive from a shared archive.
23130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23131
23132 # Create a temporary old-style archive to link instead of a shared archive.
23133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23134
23135 # Commands used to build a shared archive.
23136 archive_cmds=$lt_archive_cmds
23137 archive_expsym_cmds=$lt_archive_expsym_cmds
23138
23139 # Commands used to build a loadable module if different from building
23140 # a shared archive.
23141 module_cmds=$lt_module_cmds
23142 module_expsym_cmds=$lt_module_expsym_cmds
23143
23144 # Whether we are building with GNU ld or not.
23145 with_gnu_ld=$lt_with_gnu_ld
23146
23147 # Flag that allows shared libraries with undefined symbols to be built.
23148 allow_undefined_flag=$lt_allow_undefined_flag
23149
23150 # Flag that enforces no undefined symbols.
23151 no_undefined_flag=$lt_no_undefined_flag
23152
23153 # Flag to hardcode \$libdir into a binary during linking.
23154 # This must work even if \$libdir does not exist
23155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23156
23157 # Whether we need a single "-rpath" flag with a separated argument.
23158 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23159
23160 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23161 # DIR into the resulting binary.
23162 hardcode_direct=$hardcode_direct
23163
23164 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23165 # DIR into the resulting binary and the resulting library dependency is
23166 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23167 # library is relocated.
23168 hardcode_direct_absolute=$hardcode_direct_absolute
23169
23170 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23171 # into the resulting binary.
23172 hardcode_minus_L=$hardcode_minus_L
23173
23174 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23175 # into the resulting binary.
23176 hardcode_shlibpath_var=$hardcode_shlibpath_var
23177
23178 # Set to "yes" if building a shared library automatically hardcodes DIR
23179 # into the library and all subsequent libraries and executables linked
23180 # against it.
23181 hardcode_automatic=$hardcode_automatic
23182
23183 # Set to yes if linker adds runtime paths of dependent libraries
23184 # to runtime path list.
23185 inherit_rpath=$inherit_rpath
23186
23187 # Whether libtool must link a program against all its dependency libraries.
23188 link_all_deplibs=$link_all_deplibs
23189
23190 # Set to "yes" if exported symbols are required.
23191 always_export_symbols=$always_export_symbols
23192
23193 # The commands to list exported symbols.
23194 export_symbols_cmds=$lt_export_symbols_cmds
23195
23196 # Symbols that should not be listed in the preloaded symbols.
23197 exclude_expsyms=$lt_exclude_expsyms
23198
23199 # Symbols that must always be exported.
23200 include_expsyms=$lt_include_expsyms
23201
23202 # Commands necessary for linking programs (against libraries) with templates.
23203 prelink_cmds=$lt_prelink_cmds
23204
23205 # Commands necessary for finishing linking programs.
23206 postlink_cmds=$lt_postlink_cmds
23207
23208 # Specify filename containing input files.
23209 file_list_spec=$lt_file_list_spec
23210
23211 # How to hardcode a shared library path into an executable.
23212 hardcode_action=$hardcode_action
23213
23214 # ### END LIBTOOL CONFIG
23215
23216 _LT_EOF
23217
23218 cat <<'_LT_EOF' >> "$cfgfile"
23219
23220 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23221
23222 # func_munge_path_list VARIABLE PATH
23223 # -----------------------------------
23224 # VARIABLE is name of variable containing _space_ separated list of
23225 # directories to be munged by the contents of PATH, which is string
23226 # having a format:
23227 # "DIR[:DIR]:"
23228 # string "DIR[ DIR]" will be prepended to VARIABLE
23229 # ":DIR[:DIR]"
23230 # string "DIR[ DIR]" will be appended to VARIABLE
23231 # "DIRP[:DIRP]::[DIRA:]DIRA"
23232 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23233 # "DIRA[ DIRA]" will be appended to VARIABLE
23234 # "DIR[:DIR]"
23235 # VARIABLE will be replaced by "DIR[ DIR]"
23236 func_munge_path_list ()
23237 {
23238 case x$2 in
23239 x)
23240 ;;
23241 *:)
23242 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23243 ;;
23244 x:*)
23245 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23246 ;;
23247 *::*)
23248 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23249 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23250 ;;
23251 *)
23252 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23253 ;;
23254 esac
23255 }
23256
23257
23258 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23259 func_cc_basename ()
23260 {
23261 for cc_temp in $*""; do
23262 case $cc_temp in
23263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23265 \-*) ;;
23266 *) break;;
23267 esac
23268 done
23269 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23270 }
23271
23272
23273 # ### END FUNCTIONS SHARED WITH CONFIGURE
23274
23275 _LT_EOF
23276
23277 case $host_os in
23278 aix3*)
23279 cat <<\_LT_EOF >> "$cfgfile"
23280 # AIX sometimes has problems with the GCC collect2 program. For some
23281 # reason, if we set the COLLECT_NAMES environment variable, the problems
23282 # vanish in a puff of smoke.
23283 if test set != "${COLLECT_NAMES+set}"; then
23284 COLLECT_NAMES=
23285 export COLLECT_NAMES
23286 fi
23287 _LT_EOF
23288 ;;
23289 esac
23290
23291
23292
23293 ltmain=$ac_aux_dir/ltmain.sh
23294
23295
23296 # We use sed instead of cat because bash on DJGPP gets confused if
23297 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23298 # text mode, it properly converts lines to CR/LF. This bash problem
23299 # is reportedly fixed, but why not run on old versions too?
23300 $SED '$q' "$ltmain" >> "$cfgfile" \
23301 || (rm -f "$cfgfile"; exit 1)
23302
23303 mv -f "$cfgfile" "$ofile" ||
23304 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23305 chmod +x "$ofile"
23306
23307 ;;
23308
23309 esac
23310 done # for ac_tag
23311
23312
23313 as_fn_exit 0
23314 _ACEOF
23315 ac_clean_files=$ac_clean_files_save
23316
23317 test $ac_write_fail = 0 ||
23318 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23319
23320
23321 # configure is writing to config.log, and then calls config.status.
23322 # config.status does its own redirection, appending to config.log.
23323 # Unfortunately, on DOS this fails, as config.log is still kept open
23324 # by configure, so config.status won't be able to write to it; its
23325 # output is simply discarded. So we exec the FD to /dev/null,
23326 # effectively closing config.log, so it can be properly (re)opened and
23327 # appended to by config.status. When coming back to configure, we
23328 # need to make the FD available again.
23329 if test "$no_create" != yes; then
23330 ac_cs_success=:
23331 ac_config_status_args=
23332 test "$silent" = yes &&
23333 ac_config_status_args="$ac_config_status_args --quiet"
23334 exec 5>/dev/null
23335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23336 exec 5>>config.log
23337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23338 # would make configure fail if this is the last instruction.
23339 $ac_cs_success || as_fn_exit 1
23340 fi
23341 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23343 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23344 fi
23345
23346
23347 echo ""
23348 echo " prefix: $prefix"
23349 echo " exec_prefix: $exec_prefix"
23350 echo " libdir: $libdir"
23351 echo " includedir: $includedir"
23352 echo " configdir: $configdir"
23353
23354 echo ""
23355 echo " CFLAGS: $CFLAGS"
23356 echo " CXXFLAGS: $CXXFLAGS"
23357 echo " Macros: $DEFINES"
23358
23359 echo ""
23360 echo " Run '${MAKE-make}' to build xf86-video-ati"
23361 echo ""
23362
23363